(function (_, kotlin_com_github_UstadMobile_door_door_runtime, kotlin_kotlin, kotlin_app_cash_paging_paging_common, kotlin_io_ktor_ktor_client_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_io_ktor_ktor_http, kotlin_io_github_aakira_napier) {
  'use strict';
  //region block: imports
  var imul = Math.imul;
  var RoomDatabase = kotlin_com_github_UstadMobile_door_door_runtime.$_$.w1;
  var protoOf = kotlin_kotlin.$_$.uc;
  var classMeta = kotlin_kotlin.$_$.jb;
  var setMetadataFor = kotlin_kotlin.$_$.vc;
  var VOID = kotlin_kotlin.$_$.f;
  var DoorJsImplClasses = kotlin_com_github_UstadMobile_door_door_runtime.$_$.y1;
  var getKClass = kotlin_kotlin.$_$.e;
  var objectMeta = kotlin_kotlin.$_$.tc;
  var listOf = kotlin_kotlin.$_$.i8;
  var ReplicationFieldMetaData = kotlin_com_github_UstadMobile_door_door_runtime.$_$.t1;
  var listOf_0 = kotlin_kotlin.$_$.j8;
  var RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.m2;
  var Order_INSTEAD_OF_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.r2;
  var Event_INSERT_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.n2;
  var On_RECEIVEVIEW_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.p2;
  var Trigger = kotlin_com_github_UstadMobile_door_door_runtime.$_$.a;
  var ReplicationEntityMetaData = kotlin_com_github_UstadMobile_door_door_runtime.$_$.s1;
  var to = kotlin_kotlin.$_$.ij;
  var Order_AFTER_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.q2;
  var On_ENTITY_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.o2;
  var mapOf = kotlin_kotlin.$_$.m8;
  var DoorDatabaseMetadata = kotlin_com_github_UstadMobile_door_door_runtime.$_$.d;
  var LazyThreadSafetyMode_NONE_getInstance = kotlin_kotlin.$_$.h;
  var lazy = kotlin_kotlin.$_$.zi;
  var KProperty1 = kotlin_kotlin.$_$.td;
  var getPropertyCallableRef = kotlin_kotlin.$_$.sb;
  var lazy_0 = kotlin_kotlin.$_$.aj;
  var NodeEventManagerJs = kotlin_com_github_UstadMobile_door_door_runtime.$_$.j1;
  var DoorDatabaseWrapper = kotlin_com_github_UstadMobile_door_door_runtime.$_$.f2;
  var get_rootDatabase = kotlin_com_github_UstadMobile_door_door_runtime.$_$.p;
  var get_nodeIdAuthCache = kotlin_com_github_UstadMobile_door_door_runtime.$_$.n;
  var NodeIdAuthCache = kotlin_com_github_UstadMobile_door_door_runtime.$_$.z1;
  var equals = kotlin_kotlin.$_$.mb;
  var doorDatabaseMetadata = kotlin_com_github_UstadMobile_door_door_runtime.$_$.h;
  var DoorPrimaryKeyManager = kotlin_com_github_UstadMobile_door_door_runtime.$_$.g2;
  var getKClassFromExpression = kotlin_kotlin.$_$.d;
  var copyToArray = kotlin_kotlin.$_$.e7;
  var InvalidationTracker = kotlin_com_github_UstadMobile_door_door_runtime.$_$.u1;
  var RoomDatabaseJdbcImplHelper = kotlin_com_github_UstadMobile_door_door_runtime.$_$.v1;
  var mutableLinkedListOf = kotlin_com_github_UstadMobile_door_door_runtime.$_$.m;
  var Unit_instance = kotlin_kotlin.$_$.m5;
  var DoorDatabaseJdbc = kotlin_com_github_UstadMobile_door_door_runtime.$_$.d2;
  var RoomJdbcImpl = kotlin_com_github_UstadMobile_door_door_runtime.$_$.x1;
  var RepositoryHelper = kotlin_com_github_UstadMobile_door_door_runtime.$_$.j2;
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2;
  var DoorDatabaseRepository = kotlin_com_github_UstadMobile_door_door_runtime.$_$.e2;
  var EntityInsertionAdapter = kotlin_com_github_UstadMobile_door_door_runtime.$_$.h2;
  var THROW_CCE = kotlin_kotlin.$_$.ci;
  var CoroutineImpl = kotlin_kotlin.$_$.ta;
  var get_doorPrimaryKeyManager = kotlin_com_github_UstadMobile_door_door_runtime.$_$.k;
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
  var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.fa;
  var Long = kotlin_kotlin.$_$.vh;
  var systemTimeInMillis = kotlin_com_github_UstadMobile_door_door_runtime.$_$.b2;
  var mapNextRow = kotlin_com_github_UstadMobile_door_door_runtime.$_$.a1;
  var PreparedStatement = kotlin_com_github_UstadMobile_door_door_runtime.$_$.h1;
  var isInterface = kotlin_kotlin.$_$.ec;
  var executeQueryAsyncKmp = kotlin_com_github_UstadMobile_door_door_runtime.$_$.v2;
  var useResults = kotlin_com_github_UstadMobile_door_door_runtime.$_$.g1;
  var mapRows = kotlin_com_github_UstadMobile_door_door_runtime.$_$.b1;
  var getFloatNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.x;
  var PreparedStatementConfig = kotlin_com_github_UstadMobile_door_door_runtime.$_$.i2;
  var prepareAndUseStatementAsync = kotlin_com_github_UstadMobile_door_door_runtime.$_$.s2;
  var DoorLimitOffsetPagingSource = kotlin_com_github_UstadMobile_door_door_runtime.$_$.l1;
  var createArrayOrProxyArrayOf = kotlin_com_github_UstadMobile_door_door_runtime.$_$.e;
  var executeUpdateAsyncKmp = kotlin_com_github_UstadMobile_door_door_runtime.$_$.w2;
  var doorFlow = kotlin_com_github_UstadMobile_door_door_runtime.$_$.u;
  var LoadParams = kotlin_app_cash_paging_paging_common.$_$.d;
  var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.j;
  var setRepoUrl = kotlin_com_github_UstadMobile_door_door_runtime.$_$.r;
  var doorNodeIdHeader = kotlin_com_github_UstadMobile_door_door_runtime.$_$.j;
  var header = kotlin_io_ktor_ktor_client_core.$_$.l;
  var Companion_getInstance = kotlin_kotlin.$_$.g5;
  var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i1;
  var parameter = kotlin_io_ktor_ktor_client_core.$_$.m;
  var StringCompanionObject_instance = kotlin_kotlin.$_$.a5;
  var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b1;
  var IntCompanionObject_instance = kotlin_kotlin.$_$.y4;
  var serializer_1 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e1;
  var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a1;
  var pagingSourceLoadParameters = kotlin_com_github_UstadMobile_door_door_runtime.$_$.o;
  var Companion_getInstance_0 = kotlin_io_ktor_ktor_http.$_$.g;
  var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.q;
  var onClientRepoDoorMessageHttpResponse = kotlin_com_github_UstadMobile_door_door_runtime.$_$.x2;
  var endOfPaginationReached = kotlin_com_github_UstadMobile_door_door_runtime.$_$.r1;
  var Napier_getInstance = kotlin_io_github_aakira_napier.$_$.g;
  var Companion_instance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.z2;
  var Exception = kotlin_kotlin.$_$.rh;
  var withRepoChangeMonitorAsync = kotlin_com_github_UstadMobile_door_door_runtime.$_$.y2;
  var RepoDaoFlowHelper = kotlin_com_github_UstadMobile_door_door_runtime.$_$.v;
  var DoorRepositoryReplicatePullPagingSource = kotlin_com_github_UstadMobile_door_door_runtime.$_$.o1;
  var prepareAndUseStatementAsync_0 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.t2;
  var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x;
  var bodyAsText = kotlin_io_ktor_ktor_client_core.$_$.a;
  var BooleanCompanionObject_instance = kotlin_kotlin.$_$.u4;
  var serializer_2 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h1;
  var getIntNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.y;
  var getBooleanNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.w;
  var setFloatNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.d1;
  var mapNextRow_0 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.z;
  var OutgoingReplication = kotlin_com_github_UstadMobile_door_door_runtime.$_$.c;
  var SyncNode = kotlin_com_github_UstadMobile_door_door_runtime.$_$.l2;
  var setLongNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.f1;
  var setBooleanNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.c1;
  var setIntNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.e1;
  var dbType = kotlin_com_github_UstadMobile_door_door_runtime.$_$.g;
  var Companion_getInstance_1 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.b3;
  var emptyList = kotlin_kotlin.$_$.i7;
  var numberRangeToNumber = kotlin_kotlin.$_$.mc;
  var Pair = kotlin_kotlin.$_$.zh;
  var DoorMigrationStatementList = kotlin_com_github_UstadMobile_door_door_runtime.$_$.i1;
  var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u2;
  var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
  var LongSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
  var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f;
  var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p2;
  var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q2;
  var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z2;
  var objectCreate = kotlin_kotlin.$_$.sc;
  var getBooleanHashCode = kotlin_kotlin.$_$.pb;
  var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
  var getStringHashCode = kotlin_kotlin.$_$.tb;
  var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
  var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
  var getNumberHashCode = kotlin_kotlin.$_$.rb;
  var hashCode = kotlin_kotlin.$_$.ub;
  var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n2;
  var enumEntries = kotlin_kotlin.$_$.xa;
  var Enum = kotlin_kotlin.$_$.ph;
  var throwArrayMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y2;
  var ensureNotNull = kotlin_kotlin.$_$.ui;
  var ByteSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
  var toString = kotlin_kotlin.$_$.hj;
  var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f1;
  var trimIndent = kotlin_kotlin.$_$.bh;
  var SyncNodeIdCallback = kotlin_com_github_UstadMobile_door_door_runtime.$_$.k2;
  //endregion
  //region block: pre-declaration
  setMetadataFor(UmAppDatabase, 'UmAppDatabase', classMeta, RoomDatabase, VOID, VOID, VOID, VOID, [0, 1]);
  setMetadataFor(UmAppDatabaseJsImplementations, 'UmAppDatabaseJsImplementations', objectMeta, DoorJsImplClasses);
  setMetadataFor(UmAppDatabase_DoorMetadata, 'UmAppDatabase_DoorMetadata', classMeta, DoorDatabaseMetadata, VOID, UmAppDatabase_DoorMetadata);
  setMetadataFor(UmAppDatabase_DoorWrapper, 'UmAppDatabase_DoorWrapper', classMeta, UmAppDatabase, [UmAppDatabase, DoorDatabaseWrapper], VOID, VOID, VOID, [0, 1]);
  setMetadataFor(UmAppDatabase_JdbcImpl, 'UmAppDatabase_JdbcImpl', classMeta, UmAppDatabase, [UmAppDatabase, DoorDatabaseJdbc, RoomJdbcImpl], VOID, VOID, VOID, [0, 1]);
  setMetadataFor(Companion, 'Companion', objectMeta);
  setMetadataFor(UmAppDatabase_Repo, 'UmAppDatabase_Repo', classMeta, UmAppDatabase, [UmAppDatabase, DoorDatabaseRepository], VOID, VOID, VOID, [0, 1]);
  setMetadataFor(CacheLockJoinDao, 'CacheLockJoinDao', classMeta, VOID, VOID, VOID, VOID, VOID, [0, 3, 1, 2]);
  setMetadataFor(CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CacheLockJoinDao_JdbcImpl, 'CacheLockJoinDao_JdbcImpl', classMeta, CacheLockJoinDao, VOID, VOID, VOID, VOID, [1, 0, 3, 2]);
  setMetadataFor(ClazzAssignmentDao, 'ClazzAssignmentDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 4, 2]);
  setMetadataFor($upsertListAsyncCOROUTINE$1, '$upsertListAsyncCOROUTINE$1', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$2, '$insertAsyncCOROUTINE$2', classMeta, CoroutineImpl);
  setMetadataFor(ClazzAssignmentDao_DoorWrapper, 'ClazzAssignmentDao_DoorWrapper', classMeta, ClazzAssignmentDao, VOID, VOID, VOID, VOID, [1, 3, 4, 2]);
  setMetadataFor(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda, 'ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda, 'ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda, 'ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda, 'ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda, 'ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda, 'ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda, 'ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda, 'ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda, 'ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda, 'ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda, 'ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda, 'ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda, 'ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$4, '$insertAsyncCOROUTINE$4', classMeta, CoroutineImpl);
  setMetadataFor($updateActiveByListCOROUTINE$7, '$updateActiveByListCOROUTINE$7', classMeta, CoroutineImpl);
  setMetadataFor(ClazzAssignmentDao_JdbcImpl, 'ClazzAssignmentDao_JdbcImpl', classMeta, ClazzAssignmentDao, VOID, VOID, VOID, VOID, [1, 3, 4, 2]);
  setMetadataFor(ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda, 'ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda, 'ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzAssignmentDao_Repo$upsertListAsync$slambda, 'ClazzAssignmentDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzAssignmentDao_Repo$updateActiveByList$slambda, 'ClazzAssignmentDao_Repo$updateActiveByList$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda, 'ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzAssignmentDao_Repo$insertAsync$slambda, 'ClazzAssignmentDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($getSubmitterUidsByClazzOrGroupSetUidCOROUTINE$14, '$getSubmitterUidsByClazzOrGroupSetUidCOROUTINE$14', classMeta, CoroutineImpl);
  setMetadataFor($getSubmitterUidsAndNameByClazzOrGroupSetUidCOROUTINE$15, '$getSubmitterUidsAndNameByClazzOrGroupSetUidCOROUTINE$15', classMeta, CoroutineImpl);
  setMetadataFor($getSubmitterUidCOROUTINE$17, '$getSubmitterUidCOROUTINE$17', classMeta, CoroutineImpl);
  setMetadataFor($findByUidWithBlockAsyncCOROUTINE$22, '$findByUidWithBlockAsyncCOROUTINE$22', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$27, '$insertAsyncCOROUTINE$27', classMeta, CoroutineImpl);
  setMetadataFor(ClazzAssignmentDao_Repo, 'ClazzAssignmentDao_Repo', classMeta, ClazzAssignmentDao, VOID, VOID, VOID, VOID, [1, 3, 4, 2]);
  setMetadataFor(ClazzDao, 'ClazzDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor($insertAsyncCOROUTINE$28, '$insertAsyncCOROUTINE$28', classMeta, CoroutineImpl);
  setMetadataFor(ClazzDao_DoorWrapper, 'ClazzDao_DoorWrapper', classMeta, ClazzDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda, 'ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda, 'ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda, 'ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda, 'ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda, 'ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda, 'ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda, 'ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda, 'ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzDao_JdbcImpl$updateAsync$slambda, 'ClazzDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzDao_JdbcImpl$findByClazzCode$slambda, 'ClazzDao_JdbcImpl$findByClazzCode$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzDao_JdbcImpl$findByUidAsync$slambda, 'ClazzDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzDao_JdbcImpl$findByUidAsFlow$slambda, 'ClazzDao_JdbcImpl$findByUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda, 'ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzDao_JdbcImpl$findClazzesWithPermission$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda, 'ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda, 'ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda, 'ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda, 'ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda, 'ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda, 'ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$29, '$insertAsyncCOROUTINE$29', classMeta, CoroutineImpl);
  setMetadataFor($updateAsyncCOROUTINE$30, '$updateAsyncCOROUTINE$30', classMeta, CoroutineImpl);
  setMetadataFor(ClazzDao_JdbcImpl, 'ClazzDao_JdbcImpl', classMeta, ClazzDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(ClazzDao_Repo$findByUidAsFlow$slambda, 'ClazzDao_Repo$findByUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzDao_Repo$updateAsync$slambda, 'ClazzDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzDao_Repo$findClazzesWithPermission$slambda, 'ClazzDao_Repo$findClazzesWithPermission$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda, 'ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzDao_Repo$getClazzWithDisplayDetails$slambda, 'ClazzDao_Repo$getClazzWithDisplayDetails$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzDao_Repo$getTitleByUidAsFlow$slambda, 'ClazzDao_Repo$getTitleByUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda, 'ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzDao_Repo$getClazzNameAsFlow$slambda, 'ClazzDao_Repo$getClazzNameAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzDao_Repo$insertAsync$slambda, 'ClazzDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findByClazzCodeCOROUTINE$32, '$findByClazzCodeCOROUTINE$32', classMeta, CoroutineImpl);
  setMetadataFor($findByUidAsyncCOROUTINE$34, '$findByUidAsyncCOROUTINE$34', classMeta, CoroutineImpl);
  setMetadataFor($findByUidWithHolidayCalendarAsyncCOROUTINE$36, '$findByUidWithHolidayCalendarAsyncCOROUTINE$36', classMeta, CoroutineImpl);
  setMetadataFor($updateAsyncCOROUTINE$37, '$updateAsyncCOROUTINE$37', classMeta, CoroutineImpl);
  setMetadataFor($getClazzTimeZoneByClazzUidAsyncCOROUTINE$39, '$getClazzTimeZoneByClazzUidAsyncCOROUTINE$39', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$42, '$insertAsyncCOROUTINE$42', classMeta, CoroutineImpl);
  setMetadataFor(ClazzDao_Repo, 'ClazzDao_Repo', classMeta, ClazzDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(ClazzEnrolmentDao, 'ClazzEnrolmentDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 4, 9, 2, 10, 5]);
  setMetadataFor($insertAsyncCOROUTINE$43, '$insertAsyncCOROUTINE$43', classMeta, CoroutineImpl);
  setMetadataFor(ClazzEnrolmentDao_DoorWrapper, 'ClazzEnrolmentDao_DoorWrapper', classMeta, ClazzEnrolmentDao, VOID, VOID, VOID, VOID, [1, 3, 4, 9, 2, 10, 5]);
  setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda, 'ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda, 'ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda, 'ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda, 'ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda, 'ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda, 'ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda, 'ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda, 'ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda, 'ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda, 'ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda, 'ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda, 'ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$44, '$insertAsyncCOROUTINE$44', classMeta, CoroutineImpl);
  setMetadataFor($updateAsyncCOROUTINE$45, '$updateAsyncCOROUTINE$45', classMeta, CoroutineImpl);
  setMetadataFor(ClazzEnrolmentDao_JdbcImpl, 'ClazzEnrolmentDao_JdbcImpl', classMeta, ClazzEnrolmentDao, VOID, VOID, VOID, VOID, [1, 3, 4, 9, 2, 10, 5]);
  setMetadataFor(ClazzEnrolmentDao_Repo$updateAsync$slambda, 'ClazzEnrolmentDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda, 'ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda, 'ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzEnrolmentDao_Repo$insertAsync$slambda, 'ClazzEnrolmentDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findEnrolmentWithLeavingReasonCOROUTINE$47, '$findEnrolmentWithLeavingReasonCOROUTINE$47', classMeta, CoroutineImpl);
  setMetadataFor($updateAsyncCOROUTINE$48, '$updateAsyncCOROUTINE$48', classMeta, CoroutineImpl);
  setMetadataFor($getAllEnrolmentsAtTimeByClazzAndPersonCOROUTINE$51, '$getAllEnrolmentsAtTimeByClazzAndPersonCOROUTINE$51', classMeta, CoroutineImpl);
  setMetadataFor($getClazzNameAndPersonNameCOROUTINE$60, '$getClazzNameAndPersonNameCOROUTINE$60', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$62, '$insertAsyncCOROUTINE$62', classMeta, CoroutineImpl);
  setMetadataFor(ClazzEnrolmentDao_Repo, 'ClazzEnrolmentDao_Repo', classMeta, ClazzEnrolmentDao, VOID, VOID, VOID, VOID, [1, 3, 4, 9, 2, 10, 5]);
  setMetadataFor(ClazzLogAttendanceRecordDao, 'ClazzLogAttendanceRecordDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor($upsertListAsyncCOROUTINE$64, '$upsertListAsyncCOROUTINE$64', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$65, '$insertAsyncCOROUTINE$65', classMeta, CoroutineImpl);
  setMetadataFor(ClazzLogAttendanceRecordDao_DoorWrapper, 'ClazzLogAttendanceRecordDao_DoorWrapper', classMeta, ClazzLogAttendanceRecordDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda, 'ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$66, '$insertAsyncCOROUTINE$66', classMeta, CoroutineImpl);
  setMetadataFor(ClazzLogAttendanceRecordDao_JdbcImpl, 'ClazzLogAttendanceRecordDao_JdbcImpl', classMeta, ClazzLogAttendanceRecordDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda, 'ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda, 'ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findByClazzAndTimeCOROUTINE$68, '$findByClazzAndTimeCOROUTINE$68', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$69, '$insertAsyncCOROUTINE$69', classMeta, CoroutineImpl);
  setMetadataFor(ClazzLogAttendanceRecordDao_Repo, 'ClazzLogAttendanceRecordDao_Repo', classMeta, ClazzLogAttendanceRecordDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(ClazzLogDao, 'ClazzLogDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 5]);
  setMetadataFor($upsertListAsyncCOROUTINE$70, '$upsertListAsyncCOROUTINE$70', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$71, '$insertAsyncCOROUTINE$71', classMeta, CoroutineImpl);
  setMetadataFor(ClazzLogDao_DoorWrapper, 'ClazzLogDao_DoorWrapper', classMeta, ClazzLogDao, VOID, VOID, VOID, VOID, [1, 2, 5]);
  setMetadataFor(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda, 'ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda, 'ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda, 'ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda, 'ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda, 'ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda, 'ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$72, '$insertAsyncCOROUTINE$72', classMeta, CoroutineImpl);
  setMetadataFor(ClazzLogDao_JdbcImpl, 'ClazzLogDao_JdbcImpl', classMeta, ClazzLogDao, VOID, VOID, VOID, VOID, [1, 2, 5]);
  setMetadataFor(ClazzLogDao_Repo$findByClazzUidAsFactory$slambda, 'ClazzLogDao_Repo$findByClazzUidAsFactory$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzLogDao_Repo$upsertListAsync$slambda, 'ClazzLogDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzLogDao_Repo$insertAsync$slambda, 'ClazzLogDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findByClazzUidAsyncCOROUTINE$75, '$findByClazzUidAsyncCOROUTINE$75', classMeta, CoroutineImpl);
  setMetadataFor($findMostRecentClazzLogToEditUidCOROUTINE$78, '$findMostRecentClazzLogToEditUidCOROUTINE$78', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$79, '$insertAsyncCOROUTINE$79', classMeta, CoroutineImpl);
  setMetadataFor(ClazzLogDao_Repo, 'ClazzLogDao_Repo', classMeta, ClazzLogDao, VOID, VOID, VOID, VOID, [1, 2, 5]);
  setMetadataFor(CommentsDao, 'CommentsDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 2]);
  setMetadataFor($insertAsyncCOROUTINE$80, '$insertAsyncCOROUTINE$80', classMeta, CoroutineImpl);
  setMetadataFor(CommentsDao_DoorWrapper, 'CommentsDao_DoorWrapper', classMeta, CommentsDao, VOID, VOID, VOID, VOID, [1, 3, 2]);
  setMetadataFor(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda, 'CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda, 'CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda, 'CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda, 'CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda, 'CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda, 'CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CommentsDao_JdbcImpl$_insertAdapterComments_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda, 'CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor($insertAsyncCOROUTINE$81, '$insertAsyncCOROUTINE$81', classMeta, CoroutineImpl);
  setMetadataFor($updateDeletedByCommentUidCOROUTINE$82, '$updateDeletedByCommentUidCOROUTINE$82', classMeta, CoroutineImpl);
  setMetadataFor(CommentsDao_JdbcImpl, 'CommentsDao_JdbcImpl', classMeta, CommentsDao, VOID, VOID, VOID, VOID, [1, 3, 2]);
  setMetadataFor(CommentsDao_Repo$insertAsync$slambda, 'CommentsDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CommentsDao_Repo$updateDeletedByCommentUid$slambda, 'CommentsDao_Repo$updateDeletedByCommentUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda, 'CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda, 'CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda, 'CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$83, '$insertAsyncCOROUTINE$83', classMeta, CoroutineImpl);
  setMetadataFor(CommentsDao_Repo, 'CommentsDao_Repo', classMeta, CommentsDao, VOID, VOID, VOID, VOID, [1, 3, 2]);
  setMetadataFor(ContentCategoryDao, 'ContentCategoryDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$86, '$insertAsyncCOROUTINE$86', classMeta, CoroutineImpl);
  setMetadataFor(ContentCategoryDao_DoorWrapper, 'ContentCategoryDao_DoorWrapper', classMeta, ContentCategoryDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$87, '$insertAsyncCOROUTINE$87', classMeta, CoroutineImpl);
  setMetadataFor(ContentCategoryDao_JdbcImpl, 'ContentCategoryDao_JdbcImpl', classMeta, ContentCategoryDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentCategoryDao_Repo$insertAsync$slambda, 'ContentCategoryDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$88, '$insertAsyncCOROUTINE$88', classMeta, CoroutineImpl);
  setMetadataFor(ContentCategoryDao_Repo, 'ContentCategoryDao_Repo', classMeta, ContentCategoryDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentCategorySchemaDao, 'ContentCategorySchemaDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$89, '$insertAsyncCOROUTINE$89', classMeta, CoroutineImpl);
  setMetadataFor(ContentCategorySchemaDao_DoorWrapper, 'ContentCategorySchemaDao_DoorWrapper', classMeta, ContentCategorySchemaDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$90, '$insertAsyncCOROUTINE$90', classMeta, CoroutineImpl);
  setMetadataFor(ContentCategorySchemaDao_JdbcImpl, 'ContentCategorySchemaDao_JdbcImpl', classMeta, ContentCategorySchemaDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentCategorySchemaDao_Repo$insertAsync$slambda, 'ContentCategorySchemaDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$91, '$insertAsyncCOROUTINE$91', classMeta, CoroutineImpl);
  setMetadataFor(ContentCategorySchemaDao_Repo, 'ContentCategorySchemaDao_Repo', classMeta, ContentCategorySchemaDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryContentCategoryJoinDao, 'ContentEntryContentCategoryJoinDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$92, '$insertAsyncCOROUTINE$92', classMeta, CoroutineImpl);
  setMetadataFor(ContentEntryContentCategoryJoinDao_DoorWrapper, 'ContentEntryContentCategoryJoinDao_DoorWrapper', classMeta, ContentEntryContentCategoryJoinDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$93, '$insertAsyncCOROUTINE$93', classMeta, CoroutineImpl);
  setMetadataFor(ContentEntryContentCategoryJoinDao_JdbcImpl, 'ContentEntryContentCategoryJoinDao_JdbcImpl', classMeta, ContentEntryContentCategoryJoinDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda, 'ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$94, '$insertAsyncCOROUTINE$94', classMeta, CoroutineImpl);
  setMetadataFor(ContentEntryContentCategoryJoinDao_Repo, 'ContentEntryContentCategoryJoinDao_Repo', classMeta, ContentEntryContentCategoryJoinDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryDao, 'ContentEntryDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($upsertAsyncCOROUTINE$96, '$upsertAsyncCOROUTINE$96', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$97, '$insertAsyncCOROUTINE$97', classMeta, CoroutineImpl);
  setMetadataFor(ContentEntryDao_DoorWrapper, 'ContentEntryDao_DoorWrapper', classMeta, ContentEntryDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda, 'ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda, 'ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda, 'ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda, 'ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda, 'ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda, 'ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda, 'ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryDao_JdbcImpl$findByUidAsync$slambda, 'ContentEntryDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda, 'ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda, 'ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda, 'ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(ContentEntryDao_JdbcImpl$getContentFromMyCourses$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(ContentEntryDao_JdbcImpl$getContentByOwner$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor($insertAsyncCOROUTINE$98, '$insertAsyncCOROUTINE$98', classMeta, CoroutineImpl);
  setMetadataFor(ContentEntryDao_JdbcImpl, 'ContentEntryDao_JdbcImpl', classMeta, ContentEntryDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryDao_Repo$upsertAsync$slambda, 'ContentEntryDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda, 'ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda, 'ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryDao_Repo$insertAsync$slambda, 'ContentEntryDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findByUidAsyncCOROUTINE$100, '$findByUidAsyncCOROUTINE$100', classMeta, CoroutineImpl);
  setMetadataFor($findByUidWithEditDetailsCOROUTINE$102, '$findByUidWithEditDetailsCOROUTINE$102', classMeta, CoroutineImpl);
  setMetadataFor($findTitleByUidAsyncCOROUTINE$103, '$findTitleByUidAsyncCOROUTINE$103', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$112, '$insertAsyncCOROUTINE$112', classMeta, CoroutineImpl);
  setMetadataFor(ContentEntryDao_Repo, 'ContentEntryDao_Repo', classMeta, ContentEntryDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryImportJobDao, 'ContentEntryImportJobDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 3]);
  setMetadataFor(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda, 'ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda, 'ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ContentEntryImportJobDao_JdbcImpl, 'ContentEntryImportJobDao_JdbcImpl', classMeta, ContentEntryImportJobDao, VOID, VOID, VOID, VOID, [1, 2, 3]);
  setMetadataFor(ContentEntryParentChildJoinDao, 'ContentEntryParentChildJoinDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 0, 3]);
  setMetadataFor($insertAsyncCOROUTINE$119, '$insertAsyncCOROUTINE$119', classMeta, CoroutineImpl);
  setMetadataFor(ContentEntryParentChildJoinDao_DoorWrapper, 'ContentEntryParentChildJoinDao_DoorWrapper', classMeta, ContentEntryParentChildJoinDao, VOID, VOID, VOID, VOID, [1, 0, 3]);
  setMetadataFor(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda, 'ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda, 'ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$120, '$insertAsyncCOROUTINE$120', classMeta, CoroutineImpl);
  setMetadataFor($moveListOfEntriesToNewParentCOROUTINE$121, '$moveListOfEntriesToNewParentCOROUTINE$121', classMeta, CoroutineImpl);
  setMetadataFor($setEntriesDeletedCOROUTINE$122, '$setEntriesDeletedCOROUTINE$122', classMeta, CoroutineImpl);
  setMetadataFor(ContentEntryParentChildJoinDao_JdbcImpl, 'ContentEntryParentChildJoinDao_JdbcImpl', classMeta, ContentEntryParentChildJoinDao, VOID, VOID, VOID, VOID, [1, 0, 3]);
  setMetadataFor(ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda, 'ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda, 'ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ContentEntryParentChildJoinDao_Repo$insertAsync$slambda, 'ContentEntryParentChildJoinDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$126, '$insertAsyncCOROUTINE$126', classMeta, CoroutineImpl);
  setMetadataFor(ContentEntryParentChildJoinDao_Repo, 'ContentEntryParentChildJoinDao_Repo', classMeta, ContentEntryParentChildJoinDao, VOID, VOID, VOID, VOID, [1, 0, 3]);
  setMetadataFor(ContentEntryPicture2Dao, 'ContentEntryPicture2Dao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 4]);
  setMetadataFor(ContentEntryPicture2Dao_DoorWrapper, 'ContentEntryPicture2Dao_DoorWrapper', classMeta, ContentEntryPicture2Dao, VOID, VOID, VOID, VOID, [1, 4]);
  setMetadataFor(ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda, 'ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($updateUriCOROUTINE$127, '$updateUriCOROUTINE$127', classMeta, CoroutineImpl);
  setMetadataFor(ContentEntryPicture2Dao_JdbcImpl, 'ContentEntryPicture2Dao_JdbcImpl', classMeta, ContentEntryPicture2Dao, VOID, VOID, VOID, VOID, [1, 4]);
  setMetadataFor(ContentEntryPicture2Dao_Repo$upsertListAsync$slambda, 'ContentEntryPicture2Dao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ContentEntryPicture2Dao_Repo$updateUri$slambda, 'ContentEntryPicture2Dao_Repo$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ContentEntryPicture2Dao_Repo, 'ContentEntryPicture2Dao_Repo', classMeta, ContentEntryPicture2Dao, VOID, VOID, VOID, VOID, [1, 4]);
  setMetadataFor(ContentEntryPictureDao, 'ContentEntryPictureDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$128, '$insertAsyncCOROUTINE$128', classMeta, CoroutineImpl);
  setMetadataFor(ContentEntryPictureDao_DoorWrapper, 'ContentEntryPictureDao_DoorWrapper', classMeta, ContentEntryPictureDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$129, '$insertAsyncCOROUTINE$129', classMeta, CoroutineImpl);
  setMetadataFor(ContentEntryPictureDao_JdbcImpl, 'ContentEntryPictureDao_JdbcImpl', classMeta, ContentEntryPictureDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryPictureDao_Repo$insertAsync$slambda, 'ContentEntryPictureDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$132, '$insertAsyncCOROUTINE$132', classMeta, CoroutineImpl);
  setMetadataFor(ContentEntryPictureDao_Repo, 'ContentEntryPictureDao_Repo', classMeta, ContentEntryPictureDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryRelatedEntryJoinDao, 'ContentEntryRelatedEntryJoinDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$133, '$insertAsyncCOROUTINE$133', classMeta, CoroutineImpl);
  setMetadataFor(ContentEntryRelatedEntryJoinDao_DoorWrapper, 'ContentEntryRelatedEntryJoinDao_DoorWrapper', classMeta, ContentEntryRelatedEntryJoinDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$134, '$insertAsyncCOROUTINE$134', classMeta, CoroutineImpl);
  setMetadataFor(ContentEntryRelatedEntryJoinDao_JdbcImpl, 'ContentEntryRelatedEntryJoinDao_JdbcImpl', classMeta, ContentEntryRelatedEntryJoinDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda, 'ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$136, '$insertAsyncCOROUTINE$136', classMeta, CoroutineImpl);
  setMetadataFor(ContentEntryRelatedEntryJoinDao_Repo, 'ContentEntryRelatedEntryJoinDao_Repo', classMeta, ContentEntryRelatedEntryJoinDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryVersionDao, 'ContentEntryVersionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 0]);
  setMetadataFor(ContentEntryVersionDao_DoorWrapper, 'ContentEntryVersionDao_DoorWrapper', classMeta, ContentEntryVersionDao, VOID, VOID, VOID, VOID, [1, 2, 0]);
  setMetadataFor(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda, 'ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda, 'ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda, 'ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda, 'ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda, 'ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($updateTransferJobItemEtagCOROUTINE$139, '$updateTransferJobItemEtagCOROUTINE$139', classMeta, CoroutineImpl);
  setMetadataFor(ContentEntryVersionDao_JdbcImpl, 'ContentEntryVersionDao_JdbcImpl', classMeta, ContentEntryVersionDao, VOID, VOID, VOID, VOID, [1, 2, 0]);
  setMetadataFor(ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda, 'ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda, 'ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findByUidAsyncCOROUTINE$140, '$findByUidAsyncCOROUTINE$140', classMeta, CoroutineImpl);
  setMetadataFor($findLatestVersionUidByContentEntryUidEntityCOROUTINE$142, '$findLatestVersionUidByContentEntryUidEntityCOROUTINE$142', classMeta, CoroutineImpl);
  setMetadataFor(ContentEntryVersionDao_Repo, 'ContentEntryVersionDao_Repo', classMeta, ContentEntryVersionDao, VOID, VOID, VOID, VOID, [1, 2, 0]);
  setMetadataFor(CourseAssignmentMarkDao, 'CourseAssignmentMarkDao', classMeta, VOID, VOID, VOID, VOID, VOID, [2, 3, 1]);
  setMetadataFor($insertAsyncCOROUTINE$144, '$insertAsyncCOROUTINE$144', classMeta, CoroutineImpl);
  setMetadataFor(CourseAssignmentMarkDao_DoorWrapper, 'CourseAssignmentMarkDao_DoorWrapper', classMeta, CourseAssignmentMarkDao, VOID, VOID, VOID, VOID, [2, 3, 1]);
  setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda, 'CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda, 'CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda, 'CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda, 'CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$145, '$insertAsyncCOROUTINE$145', classMeta, CoroutineImpl);
  setMetadataFor(CourseAssignmentMarkDao_JdbcImpl, 'CourseAssignmentMarkDao_JdbcImpl', classMeta, CourseAssignmentMarkDao, VOID, VOID, VOID, VOID, [1, 2, 3]);
  setMetadataFor(CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda, 'CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda, 'CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseAssignmentMarkDao_Repo$insertAsync$slambda, 'CourseAssignmentMarkDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$148, '$insertAsyncCOROUTINE$148', classMeta, CoroutineImpl);
  setMetadataFor(CourseAssignmentMarkDao_Repo, 'CourseAssignmentMarkDao_Repo', classMeta, CourseAssignmentMarkDao, VOID, VOID, VOID, VOID, [2, 3, 1]);
  setMetadataFor(CourseAssignmentSubmissionDao, 'CourseAssignmentSubmissionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor($insertAsyncCOROUTINE$150, '$insertAsyncCOROUTINE$150', classMeta, CoroutineImpl);
  setMetadataFor(CourseAssignmentSubmissionDao_DoorWrapper, 'CourseAssignmentSubmissionDao_DoorWrapper', classMeta, CourseAssignmentSubmissionDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$151, '$insertAsyncCOROUTINE$151', classMeta, CoroutineImpl);
  setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl, 'CourseAssignmentSubmissionDao_JdbcImpl', classMeta, CourseAssignmentSubmissionDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda, 'CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda, 'CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseAssignmentSubmissionDao_Repo$insertAsync$slambda, 'CourseAssignmentSubmissionDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($doesUserHaveSubmissionsCOROUTINE$153, '$doesUserHaveSubmissionsCOROUTINE$153', classMeta, CoroutineImpl);
  setMetadataFor($checkNoSubmissionsMadeAsyncCOROUTINE$157, '$checkNoSubmissionsMadeAsyncCOROUTINE$157', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$158, '$insertAsyncCOROUTINE$158', classMeta, CoroutineImpl);
  setMetadataFor(CourseAssignmentSubmissionDao_Repo, 'CourseAssignmentSubmissionDao_Repo', classMeta, CourseAssignmentSubmissionDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(CourseAssignmentSubmissionFileDao, 'CourseAssignmentSubmissionFileDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor($insertListAsyncCOROUTINE$159, '$insertListAsyncCOROUTINE$159', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$160, '$insertAsyncCOROUTINE$160', classMeta, CoroutineImpl);
  setMetadataFor(CourseAssignmentSubmissionFileDao_DoorWrapper, 'CourseAssignmentSubmissionFileDao_DoorWrapper', classMeta, CourseAssignmentSubmissionFileDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$161, '$insertAsyncCOROUTINE$161', classMeta, CoroutineImpl);
  setMetadataFor($updateUriCOROUTINE$162, '$updateUriCOROUTINE$162', classMeta, CoroutineImpl);
  setMetadataFor($setDeletedCOROUTINE$163, '$setDeletedCOROUTINE$163', classMeta, CoroutineImpl);
  setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl, 'CourseAssignmentSubmissionFileDao_JdbcImpl', classMeta, CourseAssignmentSubmissionFileDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda, 'CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda, 'CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda, 'CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda, 'CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda, 'CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda, 'CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$164, '$insertAsyncCOROUTINE$164', classMeta, CoroutineImpl);
  setMetadataFor(CourseAssignmentSubmissionFileDao_Repo, 'CourseAssignmentSubmissionFileDao_Repo', classMeta, CourseAssignmentSubmissionFileDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(CourseBlockDao, 'CourseBlockDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 3, 9]);
  setMetadataFor($upsertListAsyncCOROUTINE$166, '$upsertListAsyncCOROUTINE$166', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$167, '$insertAsyncCOROUTINE$167', classMeta, CoroutineImpl);
  setMetadataFor(CourseBlockDao_DoorWrapper, 'CourseBlockDao_DoorWrapper', classMeta, CourseBlockDao, VOID, VOID, VOID, VOID, [1, 2, 3, 9]);
  setMetadataFor(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda, 'CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda, 'CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda, 'CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda, 'CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda, 'CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda, 'CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda, 'CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseBlockDao_JdbcImpl$updateActiveByUid$slambda, 'CourseBlockDao_JdbcImpl$updateActiveByUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda, 'CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda, 'CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda, 'CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda, 'CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$169, '$insertAsyncCOROUTINE$169', classMeta, CoroutineImpl);
  setMetadataFor($updateActiveByUidCOROUTINE$171, '$updateActiveByUidCOROUTINE$171', classMeta, CoroutineImpl);
  setMetadataFor(CourseBlockDao_JdbcImpl, 'CourseBlockDao_JdbcImpl', classMeta, CourseBlockDao, VOID, VOID, VOID, VOID, [1, 2, 3, 9]);
  setMetadataFor(CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda, 'CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda, 'CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseBlockDao_Repo$updateActiveByUid$slambda, 'CourseBlockDao_Repo$updateActiveByUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseBlockDao_Repo$upsertListAsync$slambda, 'CourseBlockDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda, 'CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseBlockDao_Repo$findByClazzUidAsFlow$slambda, 'CourseBlockDao_Repo$findByClazzUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseBlockDao_Repo$insertAsync$slambda, 'CourseBlockDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findAllCourseBlockByClazzUidAsyncCOROUTINE$176, '$findAllCourseBlockByClazzUidAsyncCOROUTINE$176', classMeta, CoroutineImpl);
  setMetadataFor($findCourseBlockAndClazzUidByDiscussionPostUidCOROUTINE$177, '$findCourseBlockAndClazzUidByDiscussionPostUidCOROUTINE$177', classMeta, CoroutineImpl);
  setMetadataFor($findClazzUidByCourseBlockUidCOROUTINE$179, '$findClazzUidByCourseBlockUidCOROUTINE$179', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$183, '$insertAsyncCOROUTINE$183', classMeta, CoroutineImpl);
  setMetadataFor(CourseBlockDao_Repo, 'CourseBlockDao_Repo', classMeta, CourseBlockDao, VOID, VOID, VOID, VOID, [1, 2, 3, 9]);
  setMetadataFor(CourseBlockPictureDao, 'CourseBlockPictureDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 4]);
  setMetadataFor(CourseBlockPictureDao_DoorWrapper, 'CourseBlockPictureDao_DoorWrapper', classMeta, CourseBlockPictureDao, VOID, VOID, VOID, VOID, [1, 4]);
  setMetadataFor(CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseBlockPictureDao_JdbcImpl$updateUri$slambda, 'CourseBlockPictureDao_JdbcImpl$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($updateUriCOROUTINE$184, '$updateUriCOROUTINE$184', classMeta, CoroutineImpl);
  setMetadataFor(CourseBlockPictureDao_JdbcImpl, 'CourseBlockPictureDao_JdbcImpl', classMeta, CourseBlockPictureDao, VOID, VOID, VOID, VOID, [1, 4]);
  setMetadataFor(CourseBlockPictureDao_Repo$upsertListAsync$slambda, 'CourseBlockPictureDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseBlockPictureDao_Repo$updateUri$slambda, 'CourseBlockPictureDao_Repo$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseBlockPictureDao_Repo, 'CourseBlockPictureDao_Repo', classMeta, CourseBlockPictureDao, VOID, VOID, VOID, VOID, [1, 4]);
  setMetadataFor(CourseGroupMemberDao, 'CourseGroupMemberDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 5]);
  setMetadataFor($upsertListAsyncCOROUTINE$186, '$upsertListAsyncCOROUTINE$186', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$187, '$insertAsyncCOROUTINE$187', classMeta, CoroutineImpl);
  setMetadataFor(CourseGroupMemberDao_DoorWrapper, 'CourseGroupMemberDao_DoorWrapper', classMeta, CourseGroupMemberDao, VOID, VOID, VOID, VOID, [1, 2, 5]);
  setMetadataFor(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda, 'CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda, 'CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda, 'CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda, 'CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$188, '$insertAsyncCOROUTINE$188', classMeta, CoroutineImpl);
  setMetadataFor(CourseGroupMemberDao_JdbcImpl, 'CourseGroupMemberDao_JdbcImpl', classMeta, CourseGroupMemberDao, VOID, VOID, VOID, VOID, [1, 2, 5]);
  setMetadataFor(CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda, 'CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseGroupMemberDao_Repo$upsertListAsync$slambda, 'CourseGroupMemberDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseGroupMemberDao_Repo$insertAsync$slambda, 'CourseGroupMemberDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findByCourseGroupSetAndClazzCOROUTINE$191, '$findByCourseGroupSetAndClazzCOROUTINE$191', classMeta, CoroutineImpl);
  setMetadataFor($findByCourseGroupSetAndGroupNumAsyncCOROUTINE$194, '$findByCourseGroupSetAndGroupNumAsyncCOROUTINE$194', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$195, '$insertAsyncCOROUTINE$195', classMeta, CoroutineImpl);
  setMetadataFor(CourseGroupMemberDao_Repo, 'CourseGroupMemberDao_Repo', classMeta, CourseGroupMemberDao, VOID, VOID, VOID, VOID, [1, 2, 5]);
  setMetadataFor(CourseGroupSetDao, 'CourseGroupSetDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($upsertAsyncCOROUTINE$196, '$upsertAsyncCOROUTINE$196', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$197, '$insertAsyncCOROUTINE$197', classMeta, CoroutineImpl);
  setMetadataFor(CourseGroupSetDao_DoorWrapper, 'CourseGroupSetDao_DoorWrapper', classMeta, CourseGroupSetDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda, 'CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda, 'CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda, 'CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda, 'CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda, 'CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$198, '$insertAsyncCOROUTINE$198', classMeta, CoroutineImpl);
  setMetadataFor(CourseGroupSetDao_JdbcImpl, 'CourseGroupSetDao_JdbcImpl', classMeta, CourseGroupSetDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda, 'CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseGroupSetDao_Repo$upsertAsync$slambda, 'CourseGroupSetDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseGroupSetDao_Repo$insertAsync$slambda, 'CourseGroupSetDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findByUidAsyncCOROUTINE$202, '$findByUidAsyncCOROUTINE$202', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$203, '$insertAsyncCOROUTINE$203', classMeta, CoroutineImpl);
  setMetadataFor(CourseGroupSetDao_Repo, 'CourseGroupSetDao_Repo', classMeta, CourseGroupSetDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CoursePermissionDao, 'CoursePermissionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [2, 1, 3, 4]);
  setMetadataFor($upsertAsyncCOROUTINE$204, '$upsertAsyncCOROUTINE$204', classMeta, CoroutineImpl);
  setMetadataFor(CoursePermissionDao_DoorWrapper, 'CoursePermissionDao_DoorWrapper', classMeta, CoursePermissionDao, VOID, VOID, VOID, VOID, [2, 1, 3, 4]);
  setMetadataFor(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda, 'CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda, 'CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda, 'CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda, 'CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda, 'CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda, 'CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CoursePermissionDao_JdbcImpl$setDeleted$slambda, 'CoursePermissionDao_JdbcImpl$setDeleted$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda, 'CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda, 'CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($setDeletedCOROUTINE$205, '$setDeletedCOROUTINE$205', classMeta, CoroutineImpl);
  setMetadataFor(CoursePermissionDao_JdbcImpl, 'CoursePermissionDao_JdbcImpl', classMeta, CoursePermissionDao, VOID, VOID, VOID, VOID, [1, 2, 3, 4]);
  setMetadataFor(CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda, 'CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda, 'CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CoursePermissionDao_Repo$upsertAsync$slambda, 'CoursePermissionDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CoursePermissionDao_Repo$setDeleted$slambda, 'CoursePermissionDao_Repo$setDeleted$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda, 'CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda, 'CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda, 'CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda, 'CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findByUidAndClazzUidCOROUTINE$206, '$findByUidAndClazzUidCOROUTINE$206', classMeta, CoroutineImpl);
  setMetadataFor($userHasEnrolmentEditPermissionCOROUTINE$208, '$userHasEnrolmentEditPermissionCOROUTINE$208', classMeta, CoroutineImpl);
  setMetadataFor($personHasPermissionWithClazzPairAsyncCOROUTINE$210, '$personHasPermissionWithClazzPairAsyncCOROUTINE$210', classMeta, CoroutineImpl);
  setMetadataFor($personHasPermissionWithClazzAsync2COROUTINE$211, '$personHasPermissionWithClazzAsync2COROUTINE$211', classMeta, CoroutineImpl);
  setMetadataFor(CoursePermissionDao_Repo, 'CoursePermissionDao_Repo', classMeta, CoursePermissionDao, VOID, VOID, VOID, VOID, [2, 1, 3, 4]);
  setMetadataFor(CoursePictureDao, 'CoursePictureDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 4]);
  setMetadataFor($upsertAsyncCOROUTINE$213, '$upsertAsyncCOROUTINE$213', classMeta, CoroutineImpl);
  setMetadataFor(CoursePictureDao_DoorWrapper, 'CoursePictureDao_DoorWrapper', classMeta, CoursePictureDao, VOID, VOID, VOID, VOID, [1, 4]);
  setMetadataFor(CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CoursePictureDao_JdbcImpl$updateUri$slambda, 'CoursePictureDao_JdbcImpl$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($updateUriCOROUTINE$214, '$updateUriCOROUTINE$214', classMeta, CoroutineImpl);
  setMetadataFor(CoursePictureDao_JdbcImpl, 'CoursePictureDao_JdbcImpl', classMeta, CoursePictureDao, VOID, VOID, VOID, VOID, [1, 4]);
  setMetadataFor(CoursePictureDao_Repo$upsertAsync$slambda, 'CoursePictureDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CoursePictureDao_Repo$updateUri$slambda, 'CoursePictureDao_Repo$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CoursePictureDao_Repo, 'CoursePictureDao_Repo', classMeta, CoursePictureDao, VOID, VOID, VOID, VOID, [1, 4]);
  setMetadataFor(CourseTerminologyDao, 'CourseTerminologyDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($upsertAsyncCOROUTINE$215, '$upsertAsyncCOROUTINE$215', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$216, '$insertAsyncCOROUTINE$216', classMeta, CoroutineImpl);
  setMetadataFor(CourseTerminologyDao_DoorWrapper, 'CourseTerminologyDao_DoorWrapper', classMeta, CourseTerminologyDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda, 'CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda, 'CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda, 'CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda, 'CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda, 'CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($upsertAsyncCOROUTINE$217, '$upsertAsyncCOROUTINE$217', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$218, '$insertAsyncCOROUTINE$218', classMeta, CoroutineImpl);
  setMetadataFor(CourseTerminologyDao_JdbcImpl, 'CourseTerminologyDao_JdbcImpl', classMeta, CourseTerminologyDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda, 'CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(CourseTerminologyDao_Repo$upsertAsync$slambda, 'CourseTerminologyDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(CourseTerminologyDao_Repo$insertAsync$slambda, 'CourseTerminologyDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($getTerminologyForClazzCOROUTINE$220, '$getTerminologyForClazzCOROUTINE$220', classMeta, CoroutineImpl);
  setMetadataFor($getTerminologyForAssignmentCOROUTINE$221, '$getTerminologyForAssignmentCOROUTINE$221', classMeta, CoroutineImpl);
  setMetadataFor($findByUidAsyncCOROUTINE$222, '$findByUidAsyncCOROUTINE$222', classMeta, CoroutineImpl);
  setMetadataFor($upsertAsyncCOROUTINE$224, '$upsertAsyncCOROUTINE$224', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$225, '$insertAsyncCOROUTINE$225', classMeta, CoroutineImpl);
  setMetadataFor(CourseTerminologyDao_Repo, 'CourseTerminologyDao_Repo', classMeta, CourseTerminologyDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(DeletedItemDao, 'DeletedItemDao', classMeta, VOID, VOID, VOID, VOID, VOID, [3, 2]);
  setMetadataFor(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda, 'DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda, 'DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda, 'DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(DeletedItemDao_JdbcImpl$updateStatusByUids$slambda, 'DeletedItemDao_JdbcImpl$updateStatusByUids$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertDeletedItemForContentEntryParentChildJoinCOROUTINE$226, '$insertDeletedItemForContentEntryParentChildJoinCOROUTINE$226', classMeta, CoroutineImpl);
  setMetadataFor($updateStatusByUidsCOROUTINE$227, '$updateStatusByUidsCOROUTINE$227', classMeta, CoroutineImpl);
  setMetadataFor(DeletedItemDao_JdbcImpl, 'DeletedItemDao_JdbcImpl', classMeta, DeletedItemDao, VOID, VOID, VOID, VOID, [3, 2]);
  setMetadataFor(DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda, 'DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(DeletedItemDao_Repo$findDeletedItemsForUser$slambda, 'DeletedItemDao_Repo$findDeletedItemsForUser$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(DeletedItemDao_Repo$updateStatusByUids$slambda, 'DeletedItemDao_Repo$updateStatusByUids$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(DeletedItemDao_Repo, 'DeletedItemDao_Repo', classMeta, DeletedItemDao, VOID, VOID, VOID, VOID, [3, 2]);
  setMetadataFor(DiscussionPostDao, 'DiscussionPostDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor($upsertAsyncCOROUTINE$229, '$upsertAsyncCOROUTINE$229', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$230, '$insertAsyncCOROUTINE$230', classMeta, CoroutineImpl);
  setMetadataFor(DiscussionPostDao_DoorWrapper, 'DiscussionPostDao_DoorWrapper', classMeta, DiscussionPostDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda, 'DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda, 'DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda, 'DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda, 'DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda, 'DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(DiscussionPostDao_JdbcImpl$findByUid$slambda, 'DiscussionPostDao_JdbcImpl$findByUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda, 'DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda, 'DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$231, '$insertAsyncCOROUTINE$231', classMeta, CoroutineImpl);
  setMetadataFor($setDeletedAsyncCOROUTINE$233, '$setDeletedAsyncCOROUTINE$233', classMeta, CoroutineImpl);
  setMetadataFor(DiscussionPostDao_JdbcImpl, 'DiscussionPostDao_JdbcImpl', classMeta, DiscussionPostDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda, 'DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda, 'DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(DiscussionPostDao_Repo$upsertAsync$slambda, 'DiscussionPostDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(DiscussionPostDao_Repo$setDeletedAsync$slambda, 'DiscussionPostDao_Repo$setDeletedAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(DiscussionPostDao_Repo$insertAsync$slambda, 'DiscussionPostDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findByUidCOROUTINE$237, '$findByUidCOROUTINE$237', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$240, '$insertAsyncCOROUTINE$240', classMeta, CoroutineImpl);
  setMetadataFor(DiscussionPostDao_Repo, 'DiscussionPostDao_Repo', classMeta, DiscussionPostDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(EnrolmentRequestDao, 'EnrolmentRequestDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 2]);
  setMetadataFor($insertCOROUTINE$241, '$insertCOROUTINE$241', classMeta, CoroutineImpl);
  setMetadataFor(EnrolmentRequestDao_DoorWrapper, 'EnrolmentRequestDao_DoorWrapper', classMeta, EnrolmentRequestDao, VOID, VOID, VOID, VOID, [1, 3, 2]);
  setMetadataFor(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda, 'EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda, 'EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda, 'EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda, 'EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda, 'EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(EnrolmentRequestDao_JdbcImpl$updateStatus$slambda, 'EnrolmentRequestDao_JdbcImpl$updateStatus$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor($updateStatusCOROUTINE$242, '$updateStatusCOROUTINE$242', classMeta, CoroutineImpl);
  setMetadataFor(EnrolmentRequestDao_JdbcImpl, 'EnrolmentRequestDao_JdbcImpl', classMeta, EnrolmentRequestDao, VOID, VOID, VOID, VOID, [1, 3, 2]);
  setMetadataFor(EnrolmentRequestDao_Repo$insert$slambda, 'EnrolmentRequestDao_Repo$insert$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda, 'EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(EnrolmentRequestDao_Repo$updateStatus$slambda, 'EnrolmentRequestDao_Repo$updateStatus$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda, 'EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($hasPendingRequestsCOROUTINE$244, '$hasPendingRequestsCOROUTINE$244', classMeta, CoroutineImpl);
  setMetadataFor(EnrolmentRequestDao_Repo, 'EnrolmentRequestDao_Repo', classMeta, EnrolmentRequestDao, VOID, VOID, VOID, VOID, [1, 3, 2]);
  setMetadataFor(ErrorReportDao, 'ErrorReportDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ErrorReportDao_DoorWrapper, 'ErrorReportDao_DoorWrapper', classMeta, ErrorReportDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ErrorReportDao_JdbcImpl, 'ErrorReportDao_JdbcImpl', classMeta, ErrorReportDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ErrorReportDao_Repo, 'ErrorReportDao_Repo', classMeta, ErrorReportDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ExternalAppPermissionDao, 'ExternalAppPermissionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 2]);
  setMetadataFor(ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ExternalAppPermissionDao_JdbcImpl, 'ExternalAppPermissionDao_JdbcImpl', classMeta, ExternalAppPermissionDao, VOID, VOID, VOID, VOID, [1, 3, 2]);
  setMetadataFor(HolidayCalendarDao, 'HolidayCalendarDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$251, '$insertAsyncCOROUTINE$251', classMeta, CoroutineImpl);
  setMetadataFor(HolidayCalendarDao_DoorWrapper, 'HolidayCalendarDao_DoorWrapper', classMeta, HolidayCalendarDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$252, '$insertAsyncCOROUTINE$252', classMeta, CoroutineImpl);
  setMetadataFor(HolidayCalendarDao_JdbcImpl, 'HolidayCalendarDao_JdbcImpl', classMeta, HolidayCalendarDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(HolidayCalendarDao_Repo$insertAsync$slambda, 'HolidayCalendarDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$257, '$insertAsyncCOROUTINE$257', classMeta, CoroutineImpl);
  setMetadataFor(HolidayCalendarDao_Repo, 'HolidayCalendarDao_Repo', classMeta, HolidayCalendarDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(HolidayDao, 'HolidayDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$259, '$insertAsyncCOROUTINE$259', classMeta, CoroutineImpl);
  setMetadataFor(HolidayDao_DoorWrapper, 'HolidayDao_DoorWrapper', classMeta, HolidayDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$261, '$insertAsyncCOROUTINE$261', classMeta, CoroutineImpl);
  setMetadataFor(HolidayDao_JdbcImpl, 'HolidayDao_JdbcImpl', classMeta, HolidayDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(HolidayDao_Repo$insertAsync$slambda, 'HolidayDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$263, '$insertAsyncCOROUTINE$263', classMeta, CoroutineImpl);
  setMetadataFor(HolidayDao_Repo, 'HolidayDao_Repo', classMeta, HolidayDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(LanguageDao, 'LanguageDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor($insertAsyncCOROUTINE$265, '$insertAsyncCOROUTINE$265', classMeta, CoroutineImpl);
  setMetadataFor(LanguageDao_DoorWrapper, 'LanguageDao_DoorWrapper', classMeta, LanguageDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$266, '$insertAsyncCOROUTINE$266', classMeta, CoroutineImpl);
  setMetadataFor(LanguageDao_JdbcImpl, 'LanguageDao_JdbcImpl', classMeta, LanguageDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(LanguageDao_Repo$insertAsync$slambda, 'LanguageDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$272, '$insertAsyncCOROUTINE$272', classMeta, CoroutineImpl);
  setMetadataFor(LanguageDao_Repo, 'LanguageDao_Repo', classMeta, LanguageDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(LanguageVariantDao, 'LanguageVariantDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$273, '$insertAsyncCOROUTINE$273', classMeta, CoroutineImpl);
  setMetadataFor(LanguageVariantDao_DoorWrapper, 'LanguageVariantDao_DoorWrapper', classMeta, LanguageVariantDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$274, '$insertAsyncCOROUTINE$274', classMeta, CoroutineImpl);
  setMetadataFor(LanguageVariantDao_JdbcImpl, 'LanguageVariantDao_JdbcImpl', classMeta, LanguageVariantDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(LanguageVariantDao_Repo$insertAsync$slambda, 'LanguageVariantDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$275, '$insertAsyncCOROUTINE$275', classMeta, CoroutineImpl);
  setMetadataFor(LanguageVariantDao_Repo, 'LanguageVariantDao_Repo', classMeta, LanguageVariantDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(LeavingReasonDao, 'LeavingReasonDao', classMeta, VOID, VOID, VOID, VOID, VOID, [0, 1]);
  setMetadataFor($insertAsyncCOROUTINE$277, '$insertAsyncCOROUTINE$277', classMeta, CoroutineImpl);
  setMetadataFor(LeavingReasonDao_DoorWrapper, 'LeavingReasonDao_DoorWrapper', classMeta, LeavingReasonDao, VOID, VOID, VOID, VOID, [0, 1]);
  setMetadataFor(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(LeavingReasonDao_JdbcImpl$findByUidAsync$slambda, 'LeavingReasonDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$278, '$insertAsyncCOROUTINE$278', classMeta, CoroutineImpl);
  setMetadataFor(LeavingReasonDao_JdbcImpl, 'LeavingReasonDao_JdbcImpl', classMeta, LeavingReasonDao, VOID, VOID, VOID, VOID, [1, 0]);
  setMetadataFor(LeavingReasonDao_Repo$insertAsync$slambda, 'LeavingReasonDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findByUidAsyncCOROUTINE$281, '$findByUidAsyncCOROUTINE$281', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$285, '$insertAsyncCOROUTINE$285', classMeta, CoroutineImpl);
  setMetadataFor(LeavingReasonDao_Repo, 'LeavingReasonDao_Repo', classMeta, LeavingReasonDao, VOID, VOID, VOID, VOID, [0, 1]);
  setMetadataFor(MessageDao, 'MessageDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertCOROUTINE$286, '$insertCOROUTINE$286', classMeta, CoroutineImpl);
  setMetadataFor(MessageDao_DoorWrapper, 'MessageDao_DoorWrapper', classMeta, MessageDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda, 'MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda, 'MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda, 'MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda, 'MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(MessageDao_JdbcImpl$_insertAdapterMessage_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(MessageDao_JdbcImpl, 'MessageDao_JdbcImpl', classMeta, MessageDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda, 'MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(MessageDao_Repo$conversationsForUserAsPagingSource$slambda, 'MessageDao_Repo$conversationsForUserAsPagingSource$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(MessageDao_Repo$insert$slambda, 'MessageDao_Repo$insert$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(MessageDao_Repo, 'MessageDao_Repo', classMeta, MessageDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(OfflineItemDao, 'OfflineItemDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(OfflineItemDao_DoorWrapper, 'OfflineItemDao_DoorWrapper', classMeta, OfflineItemDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda, 'OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda, 'OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(OfflineItemDao_JdbcImpl, 'OfflineItemDao_JdbcImpl', classMeta, OfflineItemDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(OfflineItemDao_Repo, 'OfflineItemDao_Repo', classMeta, OfflineItemDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(OutgoingReplicationDao, 'OutgoingReplicationDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 0]);
  setMetadataFor(OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(OutgoingReplicationDao_JdbcImpl, 'OutgoingReplicationDao_JdbcImpl', classMeta, OutgoingReplicationDao, VOID, VOID, VOID, VOID, [1, 0]);
  setMetadataFor(PeerReviewerAllocationDao, 'PeerReviewerAllocationDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 3]);
  setMetadataFor($upsertListCOROUTINE$292, '$upsertListCOROUTINE$292', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$293, '$insertAsyncCOROUTINE$293', classMeta, CoroutineImpl);
  setMetadataFor(PeerReviewerAllocationDao_DoorWrapper, 'PeerReviewerAllocationDao_DoorWrapper', classMeta, PeerReviewerAllocationDao, VOID, VOID, VOID, VOID, [1, 2, 3]);
  setMetadataFor(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda, 'PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda, 'PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$294, '$insertAsyncCOROUTINE$294', classMeta, CoroutineImpl);
  setMetadataFor($updateActiveByUidCOROUTINE$295, '$updateActiveByUidCOROUTINE$295', classMeta, CoroutineImpl);
  setMetadataFor(PeerReviewerAllocationDao_JdbcImpl, 'PeerReviewerAllocationDao_JdbcImpl', classMeta, PeerReviewerAllocationDao, VOID, VOID, VOID, VOID, [1, 2, 3]);
  setMetadataFor(PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda, 'PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(PeerReviewerAllocationDao_Repo$upsertList$slambda, 'PeerReviewerAllocationDao_Repo$upsertList$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(PeerReviewerAllocationDao_Repo$insertAsync$slambda, 'PeerReviewerAllocationDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($getAllPeerReviewerAllocationsByClazzUidCOROUTINE$297, '$getAllPeerReviewerAllocationsByClazzUidCOROUTINE$297', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$298, '$insertAsyncCOROUTINE$298', classMeta, CoroutineImpl);
  setMetadataFor(PeerReviewerAllocationDao_Repo, 'PeerReviewerAllocationDao_Repo', classMeta, PeerReviewerAllocationDao, VOID, VOID, VOID, VOID, [1, 2, 3]);
  setMetadataFor(PersonAuth2Dao, 'PersonAuth2Dao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonAuth2Dao_DoorWrapper, 'PersonAuth2Dao_DoorWrapper', classMeta, PersonAuth2Dao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$299, '$insertAsyncCOROUTINE$299', classMeta, CoroutineImpl);
  setMetadataFor(PersonAuth2Dao_JdbcImpl, 'PersonAuth2Dao_JdbcImpl', classMeta, PersonAuth2Dao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonAuth2Dao_Repo$insertAsync$slambda, 'PersonAuth2Dao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$300, '$insertAsyncCOROUTINE$300', classMeta, CoroutineImpl);
  setMetadataFor(PersonAuth2Dao_Repo, 'PersonAuth2Dao_Repo', classMeta, PersonAuth2Dao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonAuthDao, 'PersonAuthDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$303, '$insertAsyncCOROUTINE$303', classMeta, CoroutineImpl);
  setMetadataFor(PersonAuthDao_JdbcImpl, 'PersonAuthDao_JdbcImpl', classMeta, PersonAuthDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(PersonDao, 'PersonDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 3]);
  setMetadataFor($insertAsyncCOROUTINE$309, '$insertAsyncCOROUTINE$309', classMeta, CoroutineImpl);
  setMetadataFor(PersonDao_DoorWrapper, 'PersonDao_DoorWrapper', classMeta, PersonDao, VOID, VOID, VOID, VOID, [1, 2, 3]);
  setMetadataFor(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda, 'PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda, 'PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda, 'PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda, 'PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonDao_JdbcImpl$getNamesByUid$slambda$slambda, 'PersonDao_JdbcImpl$getNamesByUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonDao_JdbcImpl$_insertAdapterPerson_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonDao_JdbcImpl$updateAsync$slambda, 'PersonDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonDao_JdbcImpl$countUsername$slambda, 'PersonDao_JdbcImpl$countUsername$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonDao_JdbcImpl$findByUidWithPicture$slambda, 'PersonDao_JdbcImpl$findByUidWithPicture$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda, 'PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(PersonDao_JdbcImpl$findByUidAsync$slambda, 'PersonDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda, 'PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(PersonDao_JdbcImpl$getNamesByUid$slambda, 'PersonDao_JdbcImpl$getNamesByUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(PersonDao_JdbcImpl$getNamesByUidAsync$slambda, 'PersonDao_JdbcImpl$getNamesByUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonDao_JdbcImpl$updateUsername$slambda, 'PersonDao_JdbcImpl$updateUsername$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$312, '$insertAsyncCOROUTINE$312', classMeta, CoroutineImpl);
  setMetadataFor($updateAsyncCOROUTINE$313, '$updateAsyncCOROUTINE$313', classMeta, CoroutineImpl);
  setMetadataFor(PersonDao_JdbcImpl, 'PersonDao_JdbcImpl', classMeta, PersonDao, VOID, VOID, VOID, VOID, [1, 2, 3]);
  setMetadataFor(PersonDao_Repo$updateAsync$slambda, 'PersonDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda, 'PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda, 'PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(PersonDao_Repo$getNamesByUid$slambda, 'PersonDao_Repo$getNamesByUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(PersonDao_Repo$updateUsername$slambda, 'PersonDao_Repo$updateUsername$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(PersonDao_Repo$insertAsync$slambda, 'PersonDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($countUsernameCOROUTINE$314, '$countUsernameCOROUTINE$314', classMeta, CoroutineImpl);
  setMetadataFor($findByUidWithPictureCOROUTINE$319, '$findByUidWithPictureCOROUTINE$319', classMeta, CoroutineImpl);
  setMetadataFor($findByUidAsyncCOROUTINE$320, '$findByUidAsyncCOROUTINE$320', classMeta, CoroutineImpl);
  setMetadataFor($updateAsyncCOROUTINE$321, '$updateAsyncCOROUTINE$321', classMeta, CoroutineImpl);
  setMetadataFor($getNamesByUidAsyncCOROUTINE$324, '$getNamesByUidAsyncCOROUTINE$324', classMeta, CoroutineImpl);
  setMetadataFor($updateUsernameCOROUTINE$325, '$updateUsernameCOROUTINE$325', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$327, '$insertAsyncCOROUTINE$327', classMeta, CoroutineImpl);
  setMetadataFor(PersonDao_Repo, 'PersonDao_Repo', classMeta, PersonDao, VOID, VOID, VOID, VOID, [1, 2, 3]);
  setMetadataFor(PersonGroupDao, 'PersonGroupDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$328, '$insertAsyncCOROUTINE$328', classMeta, CoroutineImpl);
  setMetadataFor(PersonGroupDao_DoorWrapper, 'PersonGroupDao_DoorWrapper', classMeta, PersonGroupDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$329, '$insertAsyncCOROUTINE$329', classMeta, CoroutineImpl);
  setMetadataFor(PersonGroupDao_JdbcImpl, 'PersonGroupDao_JdbcImpl', classMeta, PersonGroupDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonGroupDao_Repo$insertAsync$slambda, 'PersonGroupDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$334, '$insertAsyncCOROUTINE$334', classMeta, CoroutineImpl);
  setMetadataFor(PersonGroupDao_Repo, 'PersonGroupDao_Repo', classMeta, PersonGroupDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonGroupMemberDao, 'PersonGroupMemberDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 4]);
  setMetadataFor($insertAsyncCOROUTINE$335, '$insertAsyncCOROUTINE$335', classMeta, CoroutineImpl);
  setMetadataFor(PersonGroupMemberDao_DoorWrapper, 'PersonGroupMemberDao_DoorWrapper', classMeta, PersonGroupMemberDao, VOID, VOID, VOID, VOID, [1, 2, 4]);
  setMetadataFor(PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$336, '$insertAsyncCOROUTINE$336', classMeta, CoroutineImpl);
  setMetadataFor(PersonGroupMemberDao_JdbcImpl, 'PersonGroupMemberDao_JdbcImpl', classMeta, PersonGroupMemberDao, VOID, VOID, VOID, VOID, [1, 2, 4]);
  setMetadataFor(PersonGroupMemberDao_Repo$insertAsync$slambda, 'PersonGroupMemberDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$342, '$insertAsyncCOROUTINE$342', classMeta, CoroutineImpl);
  setMetadataFor(PersonGroupMemberDao_Repo, 'PersonGroupMemberDao_Repo', classMeta, PersonGroupMemberDao, VOID, VOID, VOID, VOID, [1, 2, 4]);
  setMetadataFor(PersonParentJoinDao, 'PersonParentJoinDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor($upsertAsyncCOROUTINE$343, '$upsertAsyncCOROUTINE$343', classMeta, CoroutineImpl);
  setMetadataFor(PersonParentJoinDao_DoorWrapper, 'PersonParentJoinDao_DoorWrapper', classMeta, PersonParentJoinDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonParentJoinDao_JdbcImpl$updateAsync$slambda, 'PersonParentJoinDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda, 'PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda, 'PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($upsertAsyncCOROUTINE$344, '$upsertAsyncCOROUTINE$344', classMeta, CoroutineImpl);
  setMetadataFor($updateAsyncCOROUTINE$345, '$updateAsyncCOROUTINE$345', classMeta, CoroutineImpl);
  setMetadataFor(PersonParentJoinDao_JdbcImpl, 'PersonParentJoinDao_JdbcImpl', classMeta, PersonParentJoinDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(PersonParentJoinDao_Repo$upsertAsync$slambda, 'PersonParentJoinDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(PersonParentJoinDao_Repo$updateAsync$slambda, 'PersonParentJoinDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($upsertAsyncCOROUTINE$346, '$upsertAsyncCOROUTINE$346', classMeta, CoroutineImpl);
  setMetadataFor($findByUidWithMinorAsyncCOROUTINE$347, '$findByUidWithMinorAsyncCOROUTINE$347', classMeta, CoroutineImpl);
  setMetadataFor($isMinorApprovedCOROUTINE$352, '$isMinorApprovedCOROUTINE$352', classMeta, CoroutineImpl);
  setMetadataFor(PersonParentJoinDao_Repo, 'PersonParentJoinDao_Repo', classMeta, PersonParentJoinDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(PersonPictureDao, 'PersonPictureDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 4]);
  setMetadataFor($upsertCOROUTINE$353, '$upsertCOROUTINE$353', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$354, '$insertAsyncCOROUTINE$354', classMeta, CoroutineImpl);
  setMetadataFor(PersonPictureDao_DoorWrapper, 'PersonPictureDao_DoorWrapper', classMeta, PersonPictureDao, VOID, VOID, VOID, VOID, [1, 2, 4]);
  setMetadataFor(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda, 'PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonPictureDao_JdbcImpl$updateUri$slambda, 'PersonPictureDao_JdbcImpl$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda, 'PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$355, '$insertAsyncCOROUTINE$355', classMeta, CoroutineImpl);
  setMetadataFor($updateUriCOROUTINE$358, '$updateUriCOROUTINE$358', classMeta, CoroutineImpl);
  setMetadataFor($updateTransferJobItemEtagCOROUTINE$359, '$updateTransferJobItemEtagCOROUTINE$359', classMeta, CoroutineImpl);
  setMetadataFor(PersonPictureDao_JdbcImpl, 'PersonPictureDao_JdbcImpl', classMeta, PersonPictureDao, VOID, VOID, VOID, VOID, [1, 2, 4]);
  setMetadataFor(PersonPictureDao_Repo$upsert$slambda, 'PersonPictureDao_Repo$upsert$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(PersonPictureDao_Repo$updateUri$slambda, 'PersonPictureDao_Repo$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(PersonPictureDao_Repo$updateTransferJobItemEtag$slambda, 'PersonPictureDao_Repo$updateTransferJobItemEtag$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(PersonPictureDao_Repo$insertAsync$slambda, 'PersonPictureDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findByPersonUidAsyncCOROUTINE$360, '$findByPersonUidAsyncCOROUTINE$360', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$361, '$insertAsyncCOROUTINE$361', classMeta, CoroutineImpl);
  setMetadataFor(PersonPictureDao_Repo, 'PersonPictureDao_Repo', classMeta, PersonPictureDao, VOID, VOID, VOID, VOID, [1, 2, 4]);
  setMetadataFor(ReportDao, 'ReportDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor($insertAsyncCOROUTINE$362, '$insertAsyncCOROUTINE$362', classMeta, CoroutineImpl);
  setMetadataFor(ReportDao_DoorWrapper, 'ReportDao_DoorWrapper', classMeta, ReportDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(ReportDao_JdbcImpl$_insertAdapterReport_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ReportDao_JdbcImpl$_insertAdapterReport_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$363, '$insertAsyncCOROUTINE$363', classMeta, CoroutineImpl);
  setMetadataFor(ReportDao_JdbcImpl, 'ReportDao_JdbcImpl', classMeta, ReportDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(ReportDao_Repo$insertAsync$slambda, 'ReportDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$367, '$insertAsyncCOROUTINE$367', classMeta, CoroutineImpl);
  setMetadataFor(ReportDao_Repo, 'ReportDao_Repo', classMeta, ReportDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(ScheduleDao, 'ScheduleDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor($upsertListAsyncCOROUTINE$368, '$upsertListAsyncCOROUTINE$368', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$369, '$insertAsyncCOROUTINE$369', classMeta, CoroutineImpl);
  setMetadataFor(ScheduleDao_DoorWrapper, 'ScheduleDao_DoorWrapper', classMeta, ScheduleDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ScheduleDao_JdbcImpl$updateScheduleActivated$slambda, 'ScheduleDao_JdbcImpl$updateScheduleActivated$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda, 'ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$370, '$insertAsyncCOROUTINE$370', classMeta, CoroutineImpl);
  setMetadataFor($updateScheduleActivatedCOROUTINE$372, '$updateScheduleActivatedCOROUTINE$372', classMeta, CoroutineImpl);
  setMetadataFor(ScheduleDao_JdbcImpl, 'ScheduleDao_JdbcImpl', classMeta, ScheduleDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(ScheduleDao_Repo$upsertListAsync$slambda, 'ScheduleDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ScheduleDao_Repo$updateScheduleActivated$slambda, 'ScheduleDao_Repo$updateScheduleActivated$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ScheduleDao_Repo$insertAsync$slambda, 'ScheduleDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findAllSchedulesByClazzUidAsyncCOROUTINE$375, '$findAllSchedulesByClazzUidAsyncCOROUTINE$375', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$376, '$insertAsyncCOROUTINE$376', classMeta, CoroutineImpl);
  setMetadataFor(ScheduleDao_Repo, 'ScheduleDao_Repo', classMeta, ScheduleDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(ScopedGrantDao, 'ScopedGrantDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$377, '$insertAsyncCOROUTINE$377', classMeta, CoroutineImpl);
  setMetadataFor(ScopedGrantDao_DoorWrapper, 'ScopedGrantDao_DoorWrapper', classMeta, ScopedGrantDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$379, '$insertAsyncCOROUTINE$379', classMeta, CoroutineImpl);
  setMetadataFor(ScopedGrantDao_JdbcImpl, 'ScopedGrantDao_JdbcImpl', classMeta, ScopedGrantDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ScopedGrantDao_Repo$insertAsync$slambda, 'ScopedGrantDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$380, '$insertAsyncCOROUTINE$380', classMeta, CoroutineImpl);
  setMetadataFor(ScopedGrantDao_Repo, 'ScopedGrantDao_Repo', classMeta, ScopedGrantDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SiteDao, 'SiteDao', classMeta, VOID, VOID, VOID, VOID, VOID, [0, 1]);
  setMetadataFor(SiteDao_DoorWrapper, 'SiteDao_DoorWrapper', classMeta, SiteDao, VOID, VOID, VOID, VOID, [0, 1]);
  setMetadataFor(SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda, 'SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SiteDao_JdbcImpl$_insertAdapterSite_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SiteDao_JdbcImpl$_insertAdapterSite_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SiteDao_JdbcImpl$updateAsync$slambda, 'SiteDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SiteDao_JdbcImpl$getSiteAsync$slambda, 'SiteDao_JdbcImpl$getSiteAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SiteDao_JdbcImpl$getSiteAsFlow$slambda, 'SiteDao_JdbcImpl$getSiteAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($updateAsyncCOROUTINE$383, '$updateAsyncCOROUTINE$383', classMeta, CoroutineImpl);
  setMetadataFor(SiteDao_JdbcImpl, 'SiteDao_JdbcImpl', classMeta, SiteDao, VOID, VOID, VOID, VOID, [1, 0]);
  setMetadataFor(SiteDao_Repo$getSiteAsFlow$slambda, 'SiteDao_Repo$getSiteAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(SiteDao_Repo$updateAsync$slambda, 'SiteDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($getSiteAsyncCOROUTINE$384, '$getSiteAsyncCOROUTINE$384', classMeta, CoroutineImpl);
  setMetadataFor(SiteDao_Repo, 'SiteDao_Repo', classMeta, SiteDao, VOID, VOID, VOID, VOID, [0, 1]);
  setMetadataFor(SiteTermsDao, 'SiteTermsDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 0, 3]);
  setMetadataFor($upsertListCOROUTINE$388, '$upsertListCOROUTINE$388', classMeta, CoroutineImpl);
  setMetadataFor(SiteTermsDao_DoorWrapper, 'SiteTermsDao_DoorWrapper', classMeta, SiteTermsDao, VOID, VOID, VOID, VOID, [1, 0, 3]);
  setMetadataFor(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda, 'SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda, 'SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(SiteTermsDao_JdbcImpl$findAllTerms$slambda, 'SiteTermsDao_JdbcImpl$findAllTerms$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda, 'SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda, 'SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SiteTermsDao_JdbcImpl, 'SiteTermsDao_JdbcImpl', classMeta, SiteTermsDao, VOID, VOID, VOID, VOID, [1, 0, 3]);
  setMetadataFor(SiteTermsDao_Repo$findAllTermsAsListFlow$slambda, 'SiteTermsDao_Repo$findAllTermsAsListFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(SiteTermsDao_Repo$upsertList$slambda, 'SiteTermsDao_Repo$upsertList$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findAllTermsCOROUTINE$395, '$findAllTermsCOROUTINE$395', classMeta, CoroutineImpl);
  setMetadataFor($findAvailableSiteTermLanguagesCOROUTINE$397, '$findAvailableSiteTermLanguagesCOROUTINE$397', classMeta, CoroutineImpl);
  setMetadataFor($findLatestByLanguageCOROUTINE$398, '$findLatestByLanguageCOROUTINE$398', classMeta, CoroutineImpl);
  setMetadataFor(SiteTermsDao_Repo, 'SiteTermsDao_Repo', classMeta, SiteTermsDao, VOID, VOID, VOID, VOID, [1, 0, 3]);
  setMetadataFor(StudentResultDao, 'StudentResultDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(StudentResultDao_DoorWrapper, 'StudentResultDao_DoorWrapper', classMeta, StudentResultDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StudentResultDao_JdbcImpl, 'StudentResultDao_JdbcImpl', classMeta, StudentResultDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(StudentResultDao_Repo, 'StudentResultDao_Repo', classMeta, StudentResultDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(SyncNodeDao, 'SyncNodeDao', classMeta, VOID, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SyncNodeDao_JdbcImpl, 'SyncNodeDao_JdbcImpl', classMeta, SyncNodeDao, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(SystemPermissionDao, 'SystemPermissionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [2, 1, 3]);
  setMetadataFor($upsertAsyncCOROUTINE$402, '$upsertAsyncCOROUTINE$402', classMeta, CoroutineImpl);
  setMetadataFor(SystemPermissionDao_DoorWrapper, 'SystemPermissionDao_DoorWrapper', classMeta, SystemPermissionDao, VOID, VOID, VOID, VOID, [2, 1, 3]);
  setMetadataFor(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda, 'SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda, 'SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda, 'SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda, 'SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda, 'SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(SystemPermissionDao_JdbcImpl$findByPersonUid$slambda, 'SystemPermissionDao_JdbcImpl$findByPersonUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda, 'SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda, 'SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda, 'SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda, 'SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda, 'SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(SystemPermissionDao_JdbcImpl, 'SystemPermissionDao_JdbcImpl', classMeta, SystemPermissionDao, VOID, VOID, VOID, VOID, [1, 2, 3]);
  setMetadataFor(SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda, 'SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda, 'SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda, 'SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda, 'SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(SystemPermissionDao_Repo$upsertAsync$slambda, 'SystemPermissionDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findByPersonUidCOROUTINE$405, '$findByPersonUidCOROUTINE$405', classMeta, CoroutineImpl);
  setMetadataFor($personHasSystemPermissionCOROUTINE$406, '$personHasSystemPermissionCOROUTINE$406', classMeta, CoroutineImpl);
  setMetadataFor($personHasSystemPermissionPairCOROUTINE$407, '$personHasSystemPermissionPairCOROUTINE$407', classMeta, CoroutineImpl);
  setMetadataFor(SystemPermissionDao_Repo, 'SystemPermissionDao_Repo', classMeta, SystemPermissionDao, VOID, VOID, VOID, VOID, [2, 1, 3]);
  setMetadataFor(TransferJobDao, 'TransferJobDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda, 'TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda, 'TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda, 'TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertCOROUTINE$408, '$insertCOROUTINE$408', classMeta, CoroutineImpl);
  setMetadataFor(TransferJobDao_JdbcImpl, 'TransferJobDao_JdbcImpl', classMeta, TransferJobDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(TransferJobErrorDao, 'TransferJobErrorDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(TransferJobErrorDao_JdbcImpl, 'TransferJobErrorDao_JdbcImpl', classMeta, TransferJobErrorDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(TransferJobItemDao, 'TransferJobItemDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda, 'TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(TransferJobItemDao_JdbcImpl$updateStatus$slambda, 'TransferJobItemDao_JdbcImpl$updateStatus$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda, 'TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda, 'TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertCOROUTINE$411, '$insertCOROUTINE$411', classMeta, CoroutineImpl);
  setMetadataFor($updateTransferredProgressCOROUTINE$412, '$updateTransferredProgressCOROUTINE$412', classMeta, CoroutineImpl);
  setMetadataFor($updateStatusCOROUTINE$413, '$updateStatusCOROUTINE$413', classMeta, CoroutineImpl);
  setMetadataFor($insertOutgoingReplicationForTransferJobItemIfDoneCOROUTINE$414, '$insertOutgoingReplicationForTransferJobItemIfDoneCOROUTINE$414', classMeta, CoroutineImpl);
  setMetadataFor($updateStatusIfNotCompleteForAllInJobCOROUTINE$415, '$updateStatusIfNotCompleteForAllInJobCOROUTINE$415', classMeta, CoroutineImpl);
  setMetadataFor(TransferJobItemDao_JdbcImpl, 'TransferJobItemDao_JdbcImpl', classMeta, TransferJobItemDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(UserSessionDao, 'UserSessionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 0, 4, 5, 2]);
  setMetadataFor($insertSessionCOROUTINE$416, '$insertSessionCOROUTINE$416', classMeta, CoroutineImpl);
  setMetadataFor(UserSessionDao_DoorWrapper, 'UserSessionDao_DoorWrapper', classMeta, UserSessionDao, VOID, VOID, VOID, VOID, [1, 0, 4, 5, 2]);
  setMetadataFor(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda, 'UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda, 'UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda, 'UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda, 'UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(UserSessionDao_JdbcImpl$endSession$slambda, 'UserSessionDao_JdbcImpl$endSession$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertSessionCOROUTINE$417, '$insertSessionCOROUTINE$417', classMeta, CoroutineImpl);
  setMetadataFor($endSessionCOROUTINE$418, '$endSessionCOROUTINE$418', classMeta, CoroutineImpl);
  setMetadataFor(UserSessionDao_JdbcImpl, 'UserSessionDao_JdbcImpl', classMeta, UserSessionDao, VOID, VOID, VOID, VOID, [1, 0, 4, 5, 2]);
  setMetadataFor(UserSessionDao_Repo$insertSession$slambda, 'UserSessionDao_Repo$insertSession$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(UserSessionDao_Repo$endSession$slambda, 'UserSessionDao_Repo$endSession$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertSessionCOROUTINE$420, '$insertSessionCOROUTINE$420', classMeta, CoroutineImpl);
  setMetadataFor($findAllLocalSessionsAsyncCOROUTINE$422, '$findAllLocalSessionsAsyncCOROUTINE$422', classMeta, CoroutineImpl);
  setMetadataFor($countAllLocalSessionsAsyncCOROUTINE$424, '$countAllLocalSessionsAsyncCOROUTINE$424', classMeta, CoroutineImpl);
  setMetadataFor(UserSessionDao_Repo, 'UserSessionDao_Repo', classMeta, UserSessionDao, VOID, VOID, VOID, VOID, [1, 0, 4, 5, 2]);
  setMetadataFor(ActivityEntityDao, 'ActivityEntityDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 5]);
  setMetadataFor(ActivityEntityDao_DoorWrapper, 'ActivityEntityDao_DoorWrapper', classMeta, ActivityEntityDao, VOID, VOID, VOID, VOID, [1, 3, 5]);
  setMetadataFor(ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda, 'ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda, 'ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($updateIfMoreInfoChangedCOROUTINE$428, '$updateIfMoreInfoChangedCOROUTINE$428', classMeta, CoroutineImpl);
  setMetadataFor($updateIfNotYetDefinedCOROUTINE$429, '$updateIfNotYetDefinedCOROUTINE$429', classMeta, CoroutineImpl);
  setMetadataFor(ActivityEntityDao_JdbcImpl, 'ActivityEntityDao_JdbcImpl', classMeta, ActivityEntityDao, VOID, VOID, VOID, VOID, [1, 3, 5]);
  setMetadataFor(ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda, 'ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda, 'ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ActivityEntityDao_Repo$updateIfNotYetDefined$slambda, 'ActivityEntityDao_Repo$updateIfNotYetDefined$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ActivityEntityDao_Repo, 'ActivityEntityDao_Repo', classMeta, ActivityEntityDao, VOID, VOID, VOID, VOID, [1, 3, 5]);
  setMetadataFor(ActivityExtensionDao, 'ActivityExtensionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ActivityExtensionDao_DoorWrapper, 'ActivityExtensionDao_DoorWrapper', classMeta, ActivityExtensionDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ActivityExtensionDao_JdbcImpl, 'ActivityExtensionDao_JdbcImpl', classMeta, ActivityExtensionDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ActivityExtensionDao_Repo$upsertListAsync$slambda, 'ActivityExtensionDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ActivityExtensionDao_Repo, 'ActivityExtensionDao_Repo', classMeta, ActivityExtensionDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ActivityInteractionDao, 'ActivityInteractionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ActivityInteractionDao_DoorWrapper, 'ActivityInteractionDao_DoorWrapper', classMeta, ActivityInteractionDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda, 'ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ActivityInteractionDao_JdbcImpl, 'ActivityInteractionDao_JdbcImpl', classMeta, ActivityInteractionDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda, 'ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findActivityUidsWithInteractionEntitiesAsyncCOROUTINE$432, '$findActivityUidsWithInteractionEntitiesAsyncCOROUTINE$432', classMeta, CoroutineImpl);
  setMetadataFor(ActivityInteractionDao_Repo, 'ActivityInteractionDao_Repo', classMeta, ActivityInteractionDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ActivityLangMapEntryDao, 'ActivityLangMapEntryDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 6, 4]);
  setMetadataFor(ActivityLangMapEntryDao_DoorWrapper, 'ActivityLangMapEntryDao_DoorWrapper', classMeta, ActivityLangMapEntryDao, VOID, VOID, VOID, VOID, [1, 6, 4]);
  setMetadataFor(ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda, 'ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda, 'ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($upsertIfInteractionEntityExistsCOROUTINE$434, '$upsertIfInteractionEntityExistsCOROUTINE$434', classMeta, CoroutineImpl);
  setMetadataFor($updateIfChangedCOROUTINE$435, '$updateIfChangedCOROUTINE$435', classMeta, CoroutineImpl);
  setMetadataFor(ActivityLangMapEntryDao_JdbcImpl, 'ActivityLangMapEntryDao_JdbcImpl', classMeta, ActivityLangMapEntryDao, VOID, VOID, VOID, VOID, [1, 6, 4]);
  setMetadataFor(ActivityLangMapEntryDao_Repo$upsertList$slambda, 'ActivityLangMapEntryDao_Repo$upsertList$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ActivityLangMapEntryDao_Repo$updateIfChanged$slambda, 'ActivityLangMapEntryDao_Repo$updateIfChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ActivityLangMapEntryDao_Repo, 'ActivityLangMapEntryDao_Repo', classMeta, ActivityLangMapEntryDao, VOID, VOID, VOID, VOID, [1, 6, 4]);
  setMetadataFor(ActorDao, 'ActorDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 2]);
  setMetadataFor($insertOrIgnoreListAsyncCOROUTINE$437, '$insertOrIgnoreListAsyncCOROUTINE$437', classMeta, CoroutineImpl);
  setMetadataFor($upsertListAsyncCOROUTINE$438, '$upsertListAsyncCOROUTINE$438', classMeta, CoroutineImpl);
  setMetadataFor(ActorDao_DoorWrapper, 'ActorDao_DoorWrapper', classMeta, ActorDao, VOID, VOID, VOID, VOID, [1, 3, 2]);
  setMetadataFor(ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ActorDao_JdbcImpl$updateIfNameChanged$slambda, 'ActorDao_JdbcImpl$updateIfNameChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda, 'ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($updateIfNameChangedCOROUTINE$439, '$updateIfNameChangedCOROUTINE$439', classMeta, CoroutineImpl);
  setMetadataFor(ActorDao_JdbcImpl, 'ActorDao_JdbcImpl', classMeta, ActorDao, VOID, VOID, VOID, VOID, [1, 3, 2]);
  setMetadataFor(ActorDao_Repo$insertOrIgnoreListAsync$slambda, 'ActorDao_Repo$insertOrIgnoreListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ActorDao_Repo$upsertListAsync$slambda, 'ActorDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ActorDao_Repo$updateIfNameChanged$slambda, 'ActorDao_Repo$updateIfNameChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findUidAndEtagByListAsyncCOROUTINE$442, '$findUidAndEtagByListAsyncCOROUTINE$442', classMeta, CoroutineImpl);
  setMetadataFor(ActorDao_Repo, 'ActorDao_Repo', classMeta, ActorDao, VOID, VOID, VOID, VOID, [1, 3, 2]);
  setMetadataFor(GroupMemberActorJoinDao, 'GroupMemberActorJoinDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(GroupMemberActorJoinDao_DoorWrapper, 'GroupMemberActorJoinDao_DoorWrapper', classMeta, GroupMemberActorJoinDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda, 'GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($updateLastModifiedTimeIfNeededAsyncCOROUTINE$444, '$updateLastModifiedTimeIfNeededAsyncCOROUTINE$444', classMeta, CoroutineImpl);
  setMetadataFor(GroupMemberActorJoinDao_JdbcImpl, 'GroupMemberActorJoinDao_JdbcImpl', classMeta, GroupMemberActorJoinDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda, 'GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(GroupMemberActorJoinDao_Repo$upsertListAsync$slambda, 'GroupMemberActorJoinDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda, 'GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(GroupMemberActorJoinDao_Repo, 'GroupMemberActorJoinDao_Repo', classMeta, GroupMemberActorJoinDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(StateDeleteCommandDao, 'StateDeleteCommandDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StateDeleteCommandDao_DoorWrapper, 'StateDeleteCommandDao_DoorWrapper', classMeta, StateDeleteCommandDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StateDeleteCommandDao_JdbcImpl, 'StateDeleteCommandDao_JdbcImpl', classMeta, StateDeleteCommandDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StateDeleteCommandDao_Repo, 'StateDeleteCommandDao_Repo', classMeta, StateDeleteCommandDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StateEntityDao, 'StateEntityDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 4, 6, 5]);
  setMetadataFor(StateEntityDao_DoorWrapper, 'StateEntityDao_DoorWrapper', classMeta, StateEntityDao, VOID, VOID, VOID, VOID, [1, 4, 6, 5]);
  setMetadataFor(StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StateEntityDao_JdbcImpl, 'StateEntityDao_JdbcImpl', classMeta, StateEntityDao, VOID, VOID, VOID, VOID, [1, 4, 6, 5]);
  setMetadataFor(StateEntityDao_Repo, 'StateEntityDao_Repo', classMeta, StateEntityDao, VOID, VOID, VOID, VOID, [1, 4, 6, 5]);
  setMetadataFor(StatementContextActivityJoinDao, 'StatementContextActivityJoinDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(StatementContextActivityJoinDao_DoorWrapper, 'StatementContextActivityJoinDao_DoorWrapper', classMeta, StatementContextActivityJoinDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StatementContextActivityJoinDao_JdbcImpl, 'StatementContextActivityJoinDao_JdbcImpl', classMeta, StatementContextActivityJoinDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda, 'StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(StatementContextActivityJoinDao_Repo, 'StatementContextActivityJoinDao_Repo', classMeta, StatementContextActivityJoinDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(StatementDao, 'StatementDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 3, 10]);
  setMetadataFor(StatementDao_DoorWrapper, 'StatementDao_DoorWrapper', classMeta, StatementDao, VOID, VOID, VOID, VOID, [1, 2, 3, 10]);
  setMetadataFor(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda, 'StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda, 'StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda, 'StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(StatementDao_JdbcImpl, 'StatementDao_JdbcImpl', classMeta, StatementDao, VOID, VOID, VOID, VOID, [1, 2, 3, 10]);
  setMetadataFor(StatementDao_Repo$insertOrIgnoreListAsync$slambda, 'StatementDao_Repo$insertOrIgnoreListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda, 'StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findStatusForStudentsInClazzCOROUTINE$459, '$findStatusForStudentsInClazzCOROUTINE$459', classMeta, CoroutineImpl);
  setMetadataFor(StatementDao_Repo, 'StatementDao_Repo', classMeta, StatementDao, VOID, VOID, VOID, VOID, [1, 2, 3, 10]);
  setMetadataFor(StatementEntityJsonDao, 'StatementEntityJsonDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(StatementEntityJsonDao_DoorWrapper, 'StatementEntityJsonDao_DoorWrapper', classMeta, StatementEntityJsonDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StatementEntityJsonDao_JdbcImpl, 'StatementEntityJsonDao_JdbcImpl', classMeta, StatementEntityJsonDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda, 'StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(StatementEntityJsonDao_Repo, 'StatementEntityJsonDao_Repo', classMeta, StatementEntityJsonDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(VerbDao, 'VerbDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(VerbDao_DoorWrapper, 'VerbDao_DoorWrapper', classMeta, VerbDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(VerbDao_JdbcImpl, 'VerbDao_JdbcImpl', classMeta, VerbDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(VerbDao_Repo$insertOrIgnoreAsync$slambda, 'VerbDao_Repo$insertOrIgnoreAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(VerbDao_Repo, 'VerbDao_Repo', classMeta, VerbDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(VerbLangMapEntryDao, 'VerbLangMapEntryDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(VerbLangMapEntryDao_DoorWrapper, 'VerbLangMapEntryDao_DoorWrapper', classMeta, VerbLangMapEntryDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(VerbLangMapEntryDao_JdbcImpl, 'VerbLangMapEntryDao_JdbcImpl', classMeta, VerbLangMapEntryDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(VerbLangMapEntryDao_Repo$upsertList$slambda, 'VerbLangMapEntryDao_Repo$upsertList$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(VerbLangMapEntryDao_Repo, 'VerbLangMapEntryDao_Repo', classMeta, VerbLangMapEntryDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(XapiSessionEntityDao, 'XapiSessionEntityDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 5]);
  setMetadataFor(XapiSessionEntityDao_DoorWrapper, 'XapiSessionEntityDao_DoorWrapper', classMeta, XapiSessionEntityDao, VOID, VOID, VOID, VOID, [1, 3, 5]);
  setMetadataFor(XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda, 'XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($updateLatestAsCompleteCOROUTINE$465, '$updateLatestAsCompleteCOROUTINE$465', classMeta, CoroutineImpl);
  setMetadataFor(XapiSessionEntityDao_JdbcImpl, 'XapiSessionEntityDao_JdbcImpl', classMeta, XapiSessionEntityDao, VOID, VOID, VOID, VOID, [1, 3, 5]);
  setMetadataFor(XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda, 'XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(XapiSessionEntityDao_Repo, 'XapiSessionEntityDao_Repo', classMeta, XapiSessionEntityDao, VOID, VOID, VOID, VOID, [1, 3, 5]);
  setMetadataFor(PermissionFlags, 'PermissionFlags', objectMeta);
  setMetadataFor(ClazzAssignmentDaoCommon, 'ClazzAssignmentDaoCommon', objectMeta);
  setMetadataFor(ClazzDaoCommon, 'ClazzDaoCommon', objectMeta);
  setMetadataFor(ClazzEnrolmentDaoCommon, 'ClazzEnrolmentDaoCommon', objectMeta);
  setMetadataFor(ContentEntryDaoCommon, 'ContentEntryDaoCommon', objectMeta);
  setMetadataFor(CourseAssignmentMarkDaoCommon, 'CourseAssignmentMarkDaoCommon', objectMeta);
  setMetadataFor($deactivateByUidsCOROUTINE$468, '$deactivateByUidsCOROUTINE$468', classMeta, CoroutineImpl);
  setMetadataFor(CourseGroupSetDaoConstants, 'CourseGroupSetDaoConstants', objectMeta);
  setMetadataFor(LanguageDaoCommon, 'LanguageDaoCommon', objectMeta);
  setMetadataFor($deactivateByUidsCOROUTINE$469, '$deactivateByUidsCOROUTINE$469', classMeta, CoroutineImpl);
  setMetadataFor(PersonDaoCommon, 'PersonDaoCommon', objectMeta);
  setMetadataFor($deactivateByUidsCOROUTINE$470, '$deactivateByUidsCOROUTINE$470', classMeta, CoroutineImpl);
  setMetadataFor(ActorUidEtagAndLastMod, 'ActorUidEtagAndLastMod', classMeta, VOID, VOID, ActorUidEtagAndLastMod);
  setMetadataFor(Companion_0, 'Companion', objectMeta);
  setMetadataFor($serializer, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(AssignmentPermissionAndActiveUserSubmitterUid, 'AssignmentPermissionAndActiveUserSubmitterUid', classMeta, VOID, VOID, AssignmentPermissionAndActiveUserSubmitterUid, VOID, {0: $serializer_getInstance});
  setMetadataFor(Companion_1, 'Companion', objectMeta);
  setMetadataFor($serializer_0, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(AssignmentSubmitterUidAndName, 'AssignmentSubmitterUidAndName', classMeta, VOID, VOID, AssignmentSubmitterUidAndName, VOID, {0: $serializer_getInstance_0});
  setMetadataFor(Companion_2, 'Companion', objectMeta);
  setMetadataFor($serializer_1, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(BlockStatus, 'BlockStatus', classMeta, VOID, VOID, BlockStatus, VOID, {0: $serializer_getInstance_1});
  setMetadataFor(Companion_3, 'Companion', objectMeta);
  setMetadataFor($serializer_2, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzAndDetailPermissions, 'ClazzAndDetailPermissions', classMeta, VOID, VOID, ClazzAndDetailPermissions, VOID, {0: $serializer_getInstance_2});
  setMetadataFor(ClazzAndDisplayDetails, 'ClazzAndDisplayDetails', classMeta, VOID, VOID, ClazzAndDisplayDetails);
  setMetadataFor(Companion_4, 'Companion', objectMeta);
  setMetadataFor($serializer_3, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzAssignmentAndBlock, 'ClazzAssignmentAndBlock', classMeta, VOID, VOID, ClazzAssignmentAndBlock, VOID, {0: $serializer_getInstance_3});
  setMetadataFor(Companion_5, 'Companion', objectMeta);
  setMetadataFor($serializer_4, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzEnrolmentAndPersonDetailDetails, 'ClazzEnrolmentAndPersonDetailDetails', classMeta, VOID, VOID, ClazzEnrolmentAndPersonDetailDetails, VOID, {0: $serializer_getInstance_4});
  setMetadataFor(Companion_6, 'Companion', objectMeta);
  setMetadataFor($serializer_5, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzNameAndTerminology, 'ClazzNameAndTerminology', classMeta, VOID, VOID, ClazzNameAndTerminology, VOID, {0: $serializer_getInstance_5});
  setMetadataFor(Companion_7, 'Companion', objectMeta);
  setMetadataFor($serializer_6, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CommentsAndName, 'CommentsAndName', classMeta, VOID, VOID, CommentsAndName, VOID, {0: $serializer_getInstance_6});
  setMetadataFor(Companion_8, 'Companion', objectMeta);
  setMetadataFor($serializer_7, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryAndContentJob, 'ContentEntryAndContentJob', classMeta, VOID, VOID, ContentEntryAndContentJob, VOID, {0: $serializer_getInstance_7});
  setMetadataFor(Companion_9, 'Companion', objectMeta);
  setMetadataFor($serializer_8, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryAndDetail, 'ContentEntryAndDetail', classMeta, VOID, VOID, ContentEntryAndDetail, VOID, {0: $serializer_getInstance_8});
  setMetadataFor(ContentEntryAndListDetail, 'ContentEntryAndListDetail', classMeta, VOID, VOID, ContentEntryAndListDetail);
  setMetadataFor(Companion_10, 'Companion', objectMeta);
  setMetadataFor($serializer_9, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryAndPicture, 'ContentEntryAndPicture', classMeta, VOID, VOID, ContentEntryAndPicture, VOID, {0: $serializer_getInstance_9});
  setMetadataFor(Companion_11, 'Companion', objectMeta);
  setMetadataFor($serializer_10, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryImportJobProgress, 'ContentEntryImportJobProgress', classMeta, VOID, VOID, ContentEntryImportJobProgress, VOID, {0: $serializer_getInstance_10});
  setMetadataFor(Companion_12, 'Companion', objectMeta);
  setMetadataFor($serializer_11, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseAssignmentMarkAndMarkerName, 'CourseAssignmentMarkAndMarkerName', classMeta, VOID, VOID, CourseAssignmentMarkAndMarkerName, VOID, {0: $serializer_getInstance_11});
  setMetadataFor(Companion_13, 'Companion', objectMeta);
  setMetadataFor($serializer_12, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseAssignmentSubmissionFileAndTransferJob, 'CourseAssignmentSubmissionFileAndTransferJob', classMeta, VOID, VOID, CourseAssignmentSubmissionFileAndTransferJob, VOID, {0: $serializer_getInstance_12});
  setMetadataFor(Companion_14, 'Companion', objectMeta);
  setMetadataFor($serializer_13, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseBlockAndAssignment, 'CourseBlockAndAssignment', classMeta, VOID, VOID, CourseBlockAndAssignment, VOID, {0: $serializer_getInstance_13});
  setMetadataFor(Companion_15, 'Companion', objectMeta);
  setMetadataFor($serializer_14, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseBlockAndDbEntities, 'CourseBlockAndDbEntities', classMeta, VOID, VOID, CourseBlockAndDbEntities, VOID, {0: $serializer_getInstance_14});
  setMetadataFor(Companion_16, 'Companion', objectMeta);
  setMetadataFor($serializer_15, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseBlockAndDisplayDetails, 'CourseBlockAndDisplayDetails', classMeta, VOID, VOID, CourseBlockAndDisplayDetails, VOID, {0: $serializer_getInstance_15});
  setMetadataFor(Companion_17, 'Companion', objectMeta);
  setMetadataFor($serializer_16, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseBlockAndEditEntities, 'CourseBlockAndEditEntities', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_16});
  setMetadataFor(Companion_18, 'Companion', objectMeta);
  setMetadataFor($serializer_17, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseBlockAndGradebookDisplayDetails, 'CourseBlockAndGradebookDisplayDetails', classMeta, VOID, VOID, CourseBlockAndGradebookDisplayDetails, VOID, {0: $serializer_getInstance_17});
  setMetadataFor(Companion_19, 'Companion', objectMeta);
  setMetadataFor($serializer_18, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseBlockAndPicture, 'CourseBlockAndPicture', classMeta, VOID, VOID, CourseBlockAndPicture, VOID, {0: $serializer_getInstance_18});
  setMetadataFor(Companion_20, 'Companion', objectMeta);
  setMetadataFor($serializer_19, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseBlockUidAndClazzUid, 'CourseBlockUidAndClazzUid', classMeta, VOID, VOID, CourseBlockUidAndClazzUid, VOID, {0: $serializer_getInstance_19});
  setMetadataFor(Companion_21, 'Companion', objectMeta);
  setMetadataFor($serializer_20, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseGroupMemberAndPerson, 'CourseGroupMemberAndPerson', classMeta, VOID, VOID, CourseGroupMemberAndPerson, VOID, {0: $serializer_getInstance_20});
  setMetadataFor(Companion_22, 'Companion', objectMeta);
  setMetadataFor($serializer_21, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseNameAndPersonName, 'CourseNameAndPersonName', classMeta, VOID, VOID, CourseNameAndPersonName, VOID, {0: $serializer_getInstance_21});
  setMetadataFor(CoursePermissionAndListDetail, 'CoursePermissionAndListDetail', classMeta, VOID, VOID, CoursePermissionAndListDetail);
  setMetadataFor(Companion_23, 'Companion', objectMeta);
  setMetadataFor($serializer_22, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(DiscussionPostAndPosterNames, 'DiscussionPostAndPosterNames', classMeta, VOID, VOID, DiscussionPostAndPosterNames, VOID, {0: $serializer_getInstance_22});
  setMetadataFor(Companion_24, 'Companion', objectMeta);
  setMetadataFor($serializer_23, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(EditAndViewPermission, 'EditAndViewPermission', classMeta, VOID, VOID, EditAndViewPermission, VOID, {0: $serializer_getInstance_23});
  setMetadataFor(Companion_25, 'Companion', objectMeta);
  setMetadataFor($serializer_24, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(EnrolmentRequestAndCoursePic, 'EnrolmentRequestAndCoursePic', classMeta, VOID, VOID, EnrolmentRequestAndCoursePic, VOID, {0: $serializer_getInstance_24});
  setMetadataFor(EnrolmentRequestAndPersonDetails, 'EnrolmentRequestAndPersonDetails', classMeta, VOID, VOID, EnrolmentRequestAndPersonDetails);
  setMetadataFor(Companion_26, 'Companion', objectMeta);
  setMetadataFor($serializer_25, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(MessageAndOtherPerson, 'MessageAndOtherPerson', classMeta, VOID, VOID, MessageAndOtherPerson, VOID, {0: $serializer_getInstance_25});
  setMetadataFor(Companion_27, 'Companion', objectMeta);
  setMetadataFor($serializer_26, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(OfflineItemAndState, 'OfflineItemAndState', classMeta, VOID, VOID, OfflineItemAndState, VOID, {0: $serializer_getInstance_26});
  setMetadataFor(Companion_28, 'Companion', objectMeta);
  setMetadataFor($serializer_27, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PermissionPair, 'PermissionPair', classMeta, VOID, VOID, PermissionPair, VOID, {0: $serializer_getInstance_27});
  setMetadataFor(Companion_29, 'Companion', objectMeta);
  setMetadataFor($serializer_28, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PermissionTriple, 'PermissionTriple', classMeta, VOID, VOID, PermissionTriple, VOID, {0: $serializer_getInstance_28});
  setMetadataFor(Companion_30, 'Companion', objectMeta);
  setMetadataFor($serializer_29, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonAndClazzLogAttendanceRecord, 'PersonAndClazzLogAttendanceRecord', classMeta, VOID, VOID, PersonAndClazzLogAttendanceRecord, VOID, {0: $serializer_getInstance_29});
  setMetadataFor(Companion_31, 'Companion', objectMeta);
  setMetadataFor($serializer_30, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonAndClazzMemberListDetails, 'PersonAndClazzMemberListDetails', classMeta, VOID, VOID, PersonAndClazzMemberListDetails, VOID, {0: $serializer_getInstance_30});
  setMetadataFor(PersonAndListDisplayDetails, 'PersonAndListDisplayDetails', classMeta, VOID, VOID, PersonAndListDisplayDetails);
  setMetadataFor(Companion_32, 'Companion', objectMeta);
  setMetadataFor($serializer_31, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonAndPicture, 'PersonAndPicture', classMeta, VOID, VOID, PersonAndPicture, VOID, {0: $serializer_getInstance_31});
  setMetadataFor(Companion_33, 'Companion', objectMeta);
  setMetadataFor($serializer_32, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonNames, 'PersonNames', classMeta, VOID, VOID, PersonNames, VOID, {0: $serializer_getInstance_32});
  setMetadataFor(SiteTermsAndLangName, 'SiteTermsAndLangName', classMeta);
  setMetadataFor(Companion_34, 'Companion', objectMeta);
  setMetadataFor($serializer_33, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(StudentAndBlockStatuses, 'StudentAndBlockStatuses', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_33});
  setMetadataFor(Companion_35, 'Companion', objectMeta);
  setMetadataFor($serializer_34, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(SubmissionAndFiles, 'SubmissionAndFiles', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_34});
  setMetadataFor(Companion_36, 'Companion', objectMeta);
  setMetadataFor($serializer_35, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(TransferJobAndTotals, 'TransferJobAndTotals', classMeta, VOID, VOID, TransferJobAndTotals, VOID, {0: $serializer_getInstance_35});
  setMetadataFor(Companion_37, 'Companion', objectMeta);
  setMetadataFor(TransferJobItemStatus, 'TransferJobItemStatus', classMeta, Enum);
  setMetadataFor(Companion_38, 'Companion', objectMeta);
  setMetadataFor($serializer_36, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(AssignmentProgressSummary, 'AssignmentProgressSummary', classMeta, VOID, VOID, AssignmentProgressSummary, VOID, {0: $serializer_getInstance_36});
  setMetadataFor(Companion_39, 'Companion', objectMeta);
  setMetadataFor($serializer_37, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(AssignmentSubmitterAndAllocations, 'AssignmentSubmitterAndAllocations', classMeta, VOID, VOID, AssignmentSubmitterAndAllocations, VOID, {0: $serializer_getInstance_37});
  setMetadataFor(Companion_40, 'Companion', objectMeta);
  setMetadataFor($serializer_38, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(AssignmentSubmitterSummary, 'AssignmentSubmitterSummary', classMeta, VOID, VOID, AssignmentSubmitterSummary, VOID, {0: $serializer_getInstance_38});
  setMetadataFor(Companion_41, 'Companion', objectMeta);
  setMetadataFor($serializer_39, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(AverageCourseAssignmentMark, 'AverageCourseAssignmentMark', classMeta, VOID, VOID, AverageCourseAssignmentMark, VOID, {0: $serializer_getInstance_39});
  setMetadataFor(Companion_42, 'Companion', objectMeta);
  setMetadataFor(CacheLockJoin, 'CacheLockJoin', classMeta);
  setMetadataFor(Companion_43, 'Companion', objectMeta);
  setMetadataFor($serializer_40, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(Clazz, 'Clazz', classMeta, VOID, VOID, Clazz, VOID, {0: $serializer_getInstance_40});
  setMetadataFor(Companion_44, 'Companion', objectMeta);
  setMetadataFor($serializer_41, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzAssignment, 'ClazzAssignment', classMeta, VOID, VOID, ClazzAssignment, VOID, {0: $serializer_getInstance_41});
  setMetadataFor(Companion_45, 'Companion', objectMeta);
  setMetadataFor($serializer_42, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzAssignmentCourseBlockAndSubmitterUid, 'ClazzAssignmentCourseBlockAndSubmitterUid', classMeta, VOID, VOID, ClazzAssignmentCourseBlockAndSubmitterUid, VOID, {0: $serializer_getInstance_42});
  setMetadataFor(Companion_46, 'Companion', objectMeta);
  setMetadataFor($serializer_43, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzEnrolment, 'ClazzEnrolment', classMeta, VOID, VOID, ClazzEnrolment, VOID, {0: $serializer_getInstance_43});
  setMetadataFor(Companion_47, 'Companion', objectMeta);
  setMetadataFor($serializer_44, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzEnrolmentWithLeavingReason, 'ClazzEnrolmentWithLeavingReason', classMeta, ClazzEnrolment, VOID, ClazzEnrolmentWithLeavingReason, VOID, {0: $serializer_getInstance_44});
  setMetadataFor(Companion_48, 'Companion', objectMeta);
  setMetadataFor($serializer_45, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzLog, 'ClazzLog', classMeta, VOID, VOID, ClazzLog, VOID, {0: $serializer_getInstance_45});
  setMetadataFor(Companion_49, 'Companion', objectMeta);
  setMetadataFor($serializer_46, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzLogAttendanceRecord, 'ClazzLogAttendanceRecord', classMeta, VOID, VOID, ClazzLogAttendanceRecord, VOID, {0: $serializer_getInstance_46});
  setMetadataFor(Companion_50, 'Companion', objectMeta);
  setMetadataFor($serializer_47, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzWithHolidayCalendarAndAndTerminology, 'ClazzWithHolidayCalendarAndAndTerminology', classMeta, Clazz, VOID, ClazzWithHolidayCalendarAndAndTerminology, VOID, {0: $serializer_getInstance_47});
  setMetadataFor(Companion_51, 'Companion', objectMeta);
  setMetadataFor($serializer_48, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzWithListDisplayDetails, 'ClazzWithListDisplayDetails', classMeta, Clazz, VOID, ClazzWithListDisplayDetails, VOID, {0: $serializer_getInstance_48});
  setMetadataFor(Companion_52, 'Companion', objectMeta);
  setMetadataFor($serializer_49, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(Comments, 'Comments', classMeta, VOID, VOID, Comments, VOID, {0: $serializer_getInstance_49});
  setMetadataFor(Companion_53, 'Companion', objectMeta);
  setMetadataFor($serializer_50, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentCategory, 'ContentCategory', classMeta, VOID, VOID, ContentCategory, VOID, {0: $serializer_getInstance_50});
  setMetadataFor(Companion_54, 'Companion', objectMeta);
  setMetadataFor($serializer_51, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentCategorySchema, 'ContentCategorySchema', classMeta, VOID, VOID, ContentCategorySchema, VOID, {0: $serializer_getInstance_51});
  setMetadataFor(Companion_55, 'Companion', objectMeta);
  setMetadataFor($serializer_52, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntry, 'ContentEntry', classMeta, VOID, VOID, ContentEntry, VOID, {0: $serializer_getInstance_52});
  setMetadataFor(ContentEntryButtonModel, 'ContentEntryButtonModel', classMeta, VOID, VOID, ContentEntryButtonModel);
  setMetadataFor(Companion_56, 'Companion', objectMeta);
  setMetadataFor($serializer_53, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryContentCategoryJoin, 'ContentEntryContentCategoryJoin', classMeta, VOID, VOID, ContentEntryContentCategoryJoin, VOID, {0: $serializer_getInstance_53});
  setMetadataFor(Companion_57, 'Companion', objectMeta);
  setMetadataFor($serializer_54, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryImportJob, 'ContentEntryImportJob', classMeta, VOID, VOID, ContentEntryImportJob, VOID, {0: $serializer_getInstance_54});
  setMetadataFor(Companion_58, 'Companion', objectMeta);
  setMetadataFor($serializer_55, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryParentChildJoin, 'ContentEntryParentChildJoin', classMeta, VOID, VOID, ContentEntryParentChildJoin, VOID, {0: $serializer_getInstance_55});
  setMetadataFor(Companion_59, 'Companion', objectMeta);
  setMetadataFor($serializer_56, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryPicture, 'ContentEntryPicture', classMeta, VOID, VOID, ContentEntryPicture, VOID, {0: $serializer_getInstance_56});
  setMetadataFor(Companion_60, 'Companion', objectMeta);
  setMetadataFor($serializer_57, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryPicture2, 'ContentEntryPicture2', classMeta, VOID, VOID, ContentEntryPicture2, VOID, {0: $serializer_getInstance_57});
  setMetadataFor(Companion_61, 'Companion', objectMeta);
  setMetadataFor($serializer_58, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryRelatedEntryJoin, 'ContentEntryRelatedEntryJoin', classMeta, VOID, VOID, ContentEntryRelatedEntryJoin, VOID, {0: $serializer_getInstance_58});
  setMetadataFor(Companion_62, 'Companion', objectMeta);
  setMetadataFor($serializer_59, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryRelatedEntryJoinWithLanguage, 'ContentEntryRelatedEntryJoinWithLanguage', classMeta, ContentEntryRelatedEntryJoin, VOID, ContentEntryRelatedEntryJoinWithLanguage, VOID, {0: $serializer_getInstance_59});
  setMetadataFor(Companion_63, 'Companion', objectMeta);
  setMetadataFor($serializer_60, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryStatementScoreProgress, 'ContentEntryStatementScoreProgress', classMeta, VOID, VOID, ContentEntryStatementScoreProgress, VOID, {0: $serializer_getInstance_60});
  setMetadataFor(Companion_64, 'Companion', objectMeta);
  setMetadataFor($serializer_61, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryVersion, 'ContentEntryVersion', classMeta, VOID, VOID, ContentEntryVersion, VOID, {0: $serializer_getInstance_61});
  setMetadataFor(Companion_65, 'Companion', objectMeta);
  setMetadataFor($serializer_62, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryWithLanguage, 'ContentEntryWithLanguage', classMeta, ContentEntry, VOID, ContentEntryWithLanguage, VOID, {0: $serializer_getInstance_62});
  setMetadataFor(Companion_66, 'Companion', objectMeta);
  setMetadataFor($serializer_63, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentJob, 'ContentJob', classMeta, VOID, VOID, ContentJob, VOID, {0: $serializer_getInstance_63});
  setMetadataFor(Companion_67, 'Companion', objectMeta);
  setMetadataFor($serializer_64, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseAssignmentMark, 'CourseAssignmentMark', classMeta, VOID, VOID, CourseAssignmentMark, VOID, {0: $serializer_getInstance_64});
  setMetadataFor(Companion_68, 'Companion', objectMeta);
  setMetadataFor($serializer_65, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseAssignmentSubmission, 'CourseAssignmentSubmission', classMeta, VOID, VOID, CourseAssignmentSubmission, VOID, {0: $serializer_getInstance_65});
  setMetadataFor(Companion_69, 'Companion', objectMeta);
  setMetadataFor($serializer_66, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseAssignmentSubmissionFile, 'CourseAssignmentSubmissionFile', classMeta, VOID, VOID, CourseAssignmentSubmissionFile, VOID, {0: $serializer_getInstance_66});
  setMetadataFor(Companion_70, 'Companion', objectMeta);
  setMetadataFor($serializer_67, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseBlock, 'CourseBlock', classMeta, VOID, VOID, CourseBlock, VOID, {0: $serializer_getInstance_67});
  setMetadataFor(Companion_71, 'Companion', objectMeta);
  setMetadataFor($serializer_68, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseBlockPicture, 'CourseBlockPicture', classMeta, VOID, VOID, CourseBlockPicture, VOID, {0: $serializer_getInstance_68});
  setMetadataFor(Companion_72, 'Companion', objectMeta);
  setMetadataFor($serializer_69, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseGroupMember, 'CourseGroupMember', classMeta, VOID, VOID, CourseGroupMember, VOID, {0: $serializer_getInstance_69});
  setMetadataFor(Companion_73, 'Companion', objectMeta);
  setMetadataFor($serializer_70, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseGroupMemberAndName, 'CourseGroupMemberAndName', classMeta, VOID, VOID, CourseGroupMemberAndName, VOID, {0: $serializer_getInstance_70});
  setMetadataFor(Companion_74, 'Companion', objectMeta);
  setMetadataFor($serializer_71, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseGroupSet, 'CourseGroupSet', classMeta, VOID, VOID, CourseGroupSet, VOID, {0: $serializer_getInstance_71});
  setMetadataFor(Companion_75, 'Companion', objectMeta);
  setMetadataFor($serializer_72, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CoursePermission, 'CoursePermission', classMeta, VOID, VOID, CoursePermission, VOID, {0: $serializer_getInstance_72});
  setMetadataFor(Companion_76, 'Companion', objectMeta);
  setMetadataFor($serializer_73, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CoursePicture, 'CoursePicture', classMeta, VOID, VOID, CoursePicture, VOID, {0: $serializer_getInstance_73});
  setMetadataFor(Companion_77, 'Companion', objectMeta);
  setMetadataFor($serializer_74, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseTerminology, 'CourseTerminology', classMeta, VOID, VOID, CourseTerminology, VOID, {0: $serializer_getInstance_74});
  setMetadataFor(Companion_78, 'Companion', objectMeta);
  setMetadataFor($serializer_75, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(DeletedItem, 'DeletedItem', classMeta, VOID, VOID, DeletedItem, VOID, {0: $serializer_getInstance_75});
  setMetadataFor(Companion_79, 'Companion', objectMeta);
  setMetadataFor($serializer_76, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(DiscussionPost, 'DiscussionPost', classMeta, VOID, VOID, DiscussionPost, VOID, {0: $serializer_getInstance_76});
  setMetadataFor(Companion_80, 'Companion', objectMeta);
  setMetadataFor($serializer_77, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(DiscussionPostWithDetails, 'DiscussionPostWithDetails', classMeta, DiscussionPost, VOID, DiscussionPostWithDetails, VOID, {0: $serializer_getInstance_77});
  setMetadataFor(Companion_81, 'Companion', objectMeta);
  setMetadataFor($serializer_78, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(EnrolmentRequest, 'EnrolmentRequest', classMeta, VOID, VOID, EnrolmentRequest, VOID, {0: $serializer_getInstance_78});
  setMetadataFor(ErrorReport, 'ErrorReport', classMeta, VOID, VOID, ErrorReport);
  setMetadataFor(Companion_82, 'Companion', objectMeta);
  setMetadataFor($serializer_79, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ExternalAppPermission, 'ExternalAppPermission', classMeta, VOID, VOID, ExternalAppPermission, VOID, {0: $serializer_getInstance_79});
  setMetadataFor(Companion_83, 'Companion', objectMeta);
  setMetadataFor($serializer_80, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(Holiday, 'Holiday', classMeta, VOID, VOID, Holiday, VOID, {0: $serializer_getInstance_80});
  setMetadataFor(Companion_84, 'Companion', objectMeta);
  setMetadataFor($serializer_81, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(HolidayCalendar, 'HolidayCalendar', classMeta, VOID, VOID, HolidayCalendar, VOID, {0: $serializer_getInstance_81});
  setMetadataFor(Companion_85, 'Companion', objectMeta);
  setMetadataFor($serializer_82, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(HolidayCalendarWithNumEntries, 'HolidayCalendarWithNumEntries', classMeta, HolidayCalendar, VOID, HolidayCalendarWithNumEntries, VOID, {0: $serializer_getInstance_82});
  setMetadataFor(Companion_86, 'Companion', objectMeta);
  setMetadataFor($serializer_83, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(Language, 'Language', classMeta, VOID, VOID, Language, VOID, {0: $serializer_getInstance_83});
  setMetadataFor(Companion_87, 'Companion', objectMeta);
  setMetadataFor($serializer_84, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(LanguageVariant, 'LanguageVariant', classMeta, VOID, VOID, LanguageVariant, VOID, {0: $serializer_getInstance_84});
  setMetadataFor(Companion_88, 'Companion', objectMeta);
  setMetadataFor($serializer_85, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(LeavingReason, 'LeavingReason', classMeta, VOID, VOID, LeavingReason, VOID, {0: $serializer_getInstance_85});
  setMetadataFor(Companion_89, 'Companion', objectMeta);
  setMetadataFor($serializer_86, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(Message, 'Message', classMeta, VOID, VOID, Message, VOID, {0: $serializer_getInstance_86});
  setMetadataFor(Companion_90, 'Companion', objectMeta);
  setMetadataFor($serializer_87, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(OfflineItem, 'OfflineItem', classMeta, VOID, VOID, OfflineItem, VOID, {0: $serializer_getInstance_87});
  setMetadataFor(Companion_91, 'Companion', objectMeta);
  setMetadataFor($serializer_88, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PeerReviewerAllocation, 'PeerReviewerAllocation', classMeta, VOID, VOID, PeerReviewerAllocation, VOID, {0: $serializer_getInstance_88});
  setMetadataFor(Companion_92, 'Companion', objectMeta);
  setMetadataFor($serializer_89, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(Person, 'Person', classMeta, VOID, VOID, Person, VOID, {0: $serializer_getInstance_89});
  setMetadataFor(Companion_93, 'Companion', objectMeta);
  setMetadataFor($serializer_90, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonAndDisplayDetail, 'PersonAndDisplayDetail', classMeta, VOID, VOID, PersonAndDisplayDetail, VOID, {0: $serializer_getInstance_90});
  setMetadataFor(Companion_94, 'Companion', objectMeta);
  setMetadataFor($serializer_91, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonAuth, 'PersonAuth', classMeta, VOID, VOID, PersonAuth, VOID, {0: $serializer_getInstance_91});
  setMetadataFor(Companion_95, 'Companion', objectMeta);
  setMetadataFor(PersonAuth2, 'PersonAuth2', classMeta, VOID, VOID, PersonAuth2);
  setMetadataFor(Companion_96, 'Companion', objectMeta);
  setMetadataFor($serializer_92, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonGroup, 'PersonGroup', classMeta, VOID, VOID, PersonGroup, VOID, {0: $serializer_getInstance_92});
  setMetadataFor(Companion_97, 'Companion', objectMeta);
  setMetadataFor($serializer_93, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonGroupMember, 'PersonGroupMember', classMeta, VOID, VOID, PersonGroupMember, VOID, {0: $serializer_getInstance_93});
  setMetadataFor(Companion_98, 'Companion', objectMeta);
  setMetadataFor($serializer_94, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonParentJoin, 'PersonParentJoin', classMeta, VOID, VOID, PersonParentJoin, VOID, {0: $serializer_getInstance_94});
  setMetadataFor(Companion_99, 'Companion', objectMeta);
  setMetadataFor($serializer_95, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonParentJoinAndMinorPerson, 'PersonParentJoinAndMinorPerson', classMeta, VOID, VOID, PersonParentJoinAndMinorPerson, VOID, {0: $serializer_getInstance_95});
  setMetadataFor(Companion_100, 'Companion', objectMeta);
  setMetadataFor($serializer_96, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonPicture, 'PersonPicture', classMeta, VOID, VOID, PersonPicture, VOID, {0: $serializer_getInstance_96});
  setMetadataFor(Companion_101, 'Companion', objectMeta);
  setMetadataFor($serializer_97, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(Report, 'Report', classMeta, VOID, VOID, Report, VOID, {0: $serializer_getInstance_97});
  setMetadataFor(Companion_102, 'Companion', objectMeta);
  setMetadataFor($serializer_98, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ReportFilter, 'ReportFilter', classMeta, VOID, VOID, ReportFilter, VOID, {0: $serializer_getInstance_98});
  setMetadataFor(Companion_103, 'Companion', objectMeta);
  setMetadataFor(Companion_104, 'Companion', objectMeta);
  setMetadataFor($serializer_99, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(Schedule, 'Schedule', classMeta, VOID, VOID, Schedule, VOID, {0: $serializer_getInstance_99});
  setMetadataFor(Companion_105, 'Companion', objectMeta);
  setMetadataFor($serializer_100, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ScopedGrant, 'ScopedGrant', classMeta, VOID, VOID, ScopedGrant, VOID, {0: $serializer_getInstance_100});
  setMetadataFor(Companion_106, 'Companion', objectMeta);
  setMetadataFor($serializer_101, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(Site, 'Site', classMeta, VOID, VOID, Site, VOID, {0: $serializer_getInstance_101});
  setMetadataFor(Companion_107, 'Companion', objectMeta);
  setMetadataFor($serializer_102, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(SiteTerms, 'SiteTerms', classMeta, VOID, VOID, SiteTerms, VOID, {0: $serializer_getInstance_102});
  setMetadataFor(Companion_108, 'Companion', objectMeta);
  setMetadataFor($serializer_103, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(SiteTermsWithLanguage, 'SiteTermsWithLanguage', classMeta, SiteTerms, VOID, SiteTermsWithLanguage, VOID, {0: $serializer_getInstance_103});
  setMetadataFor(Companion_109, 'Companion', objectMeta);
  setMetadataFor($serializer_104, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(StudentResult, 'StudentResult', classMeta, VOID, VOID, StudentResult, VOID, {0: $serializer_getInstance_104});
  setMetadataFor(Companion_110, 'Companion', objectMeta);
  setMetadataFor($serializer_105, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(SystemPermission, 'SystemPermission', classMeta, VOID, VOID, SystemPermission, VOID, {0: $serializer_getInstance_105});
  setMetadataFor(Companion_111, 'Companion', objectMeta);
  setMetadataFor($serializer_106, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(TransferJob, 'TransferJob', classMeta, VOID, VOID, TransferJob, VOID, {0: $serializer_getInstance_106});
  setMetadataFor(Companion_112, 'Companion', objectMeta);
  setMetadataFor($serializer_107, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(TransferJobError, 'TransferJobError', classMeta, VOID, VOID, TransferJobError, VOID, {0: $serializer_getInstance_107});
  setMetadataFor(Companion_113, 'Companion', objectMeta);
  setMetadataFor($serializer_108, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(TransferJobItem, 'TransferJobItem', classMeta, VOID, VOID, TransferJobItem, VOID, {0: $serializer_getInstance_108});
  setMetadataFor(Companion_114, 'Companion', objectMeta);
  setMetadataFor($serializer_109, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(UidAndLabel, 'UidAndLabel', classMeta, VOID, VOID, UidAndLabel, VOID, {0: $serializer_getInstance_109});
  setMetadataFor(Companion_115, 'Companion', objectMeta);
  setMetadataFor($serializer_110, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(UmAccount, 'UmAccount', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_110});
  setMetadataFor(Companion_116, 'Companion', objectMeta);
  setMetadataFor($serializer_111, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(UserSession, 'UserSession', classMeta, VOID, VOID, UserSession, VOID, {0: $serializer_getInstance_111});
  setMetadataFor(UserSessionAndPerson, 'UserSessionAndPerson', classMeta, VOID, VOID, UserSessionAndPerson);
  setMetadataFor(Companion_117, 'Companion', objectMeta);
  setMetadataFor($serializer_112, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ActivityEntity, 'ActivityEntity', classMeta, VOID, VOID, ActivityEntity, VOID, {0: $serializer_getInstance_112});
  setMetadataFor(Companion_118, 'Companion', objectMeta);
  setMetadataFor(ActivityExtensionEntity, 'ActivityExtensionEntity', classMeta, VOID, VOID, ActivityExtensionEntity);
  setMetadataFor(Companion_119, 'Companion', objectMeta);
  setMetadataFor($serializer_113, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ActivityInteractionEntity, 'ActivityInteractionEntity', classMeta, VOID, VOID, ActivityInteractionEntity, VOID, {0: $serializer_getInstance_113});
  setMetadataFor(Companion_120, 'Companion', objectMeta);
  setMetadataFor($serializer_114, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ActivityLangMapEntry, 'ActivityLangMapEntry', classMeta, VOID, VOID, ActivityLangMapEntry, VOID, {0: $serializer_getInstance_114});
  setMetadataFor(Companion_121, 'Companion', objectMeta);
  setMetadataFor($serializer_115, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ActorEntity, 'ActorEntity', classMeta, VOID, VOID, ActorEntity, VOID, {0: $serializer_getInstance_115});
  setMetadataFor(Companion_122, 'Companion', objectMeta);
  setMetadataFor($serializer_116, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(GroupMemberActorJoin, 'GroupMemberActorJoin', classMeta, VOID, VOID, GroupMemberActorJoin, VOID, {0: $serializer_getInstance_116});
  setMetadataFor(Companion_123, 'Companion', objectMeta);
  setMetadataFor($serializer_117, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(StateDeleteCommand, 'StateDeleteCommand', classMeta, VOID, VOID, StateDeleteCommand, VOID, {0: $serializer_getInstance_117});
  setMetadataFor(Companion_124, 'Companion', objectMeta);
  setMetadataFor($serializer_118, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(StateEntity, 'StateEntity', classMeta, VOID, VOID, StateEntity, VOID, {0: $serializer_getInstance_118});
  setMetadataFor(Companion_125, 'Companion', objectMeta);
  setMetadataFor(StatementContextActivityJoin, 'StatementContextActivityJoin', classMeta, VOID, VOID, StatementContextActivityJoin);
  setMetadataFor(Companion_126, 'Companion', objectMeta);
  setMetadataFor($serializer_119, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(StatementEntity, 'StatementEntity', classMeta, VOID, VOID, StatementEntity, VOID, {0: $serializer_getInstance_119});
  setMetadataFor(Companion_127, 'Companion', objectMeta);
  setMetadataFor($serializer_120, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(StatementEntityJson, 'StatementEntityJson', classMeta, VOID, VOID, StatementEntityJson, VOID, {0: $serializer_getInstance_120});
  setMetadataFor(Companion_128, 'Companion', objectMeta);
  setMetadataFor($serializer_121, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(VerbEntity, 'VerbEntity', classMeta, VOID, VOID, VerbEntity, VOID, {0: $serializer_getInstance_121});
  setMetadataFor(Companion_129, 'Companion', objectMeta);
  setMetadataFor($serializer_122, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(VerbLangMapEntry, 'VerbLangMapEntry', classMeta, VOID, VOID, VerbLangMapEntry, VOID, {0: $serializer_getInstance_122});
  setMetadataFor(XapiEntityObjectTypeFlags, 'XapiEntityObjectTypeFlags', objectMeta);
  setMetadataFor(Companion_130, 'Companion', objectMeta);
  setMetadataFor($serializer_123, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(XapiSessionEntity, 'XapiSessionEntity', classMeta, VOID, VOID, XapiSessionEntity, VOID, {0: $serializer_getInstance_123});
  //endregion
  function UmAppDatabase() {
    RoomDatabase.call(this);
  }
  function UmAppDatabaseJsImplementations() {
    UmAppDatabaseJsImplementations_instance = this;
    DoorJsImplClasses.call(this);
    this.q7f_1 = getKClass(UmAppDatabase);
    this.r7f_1 = getKClass(UmAppDatabase_JdbcImpl);
    this.s7f_1 = getKClass(UmAppDatabase_DoorWrapper);
    this.t7f_1 = getKClass(UmAppDatabase_Repo);
    this.u7f_1 = new UmAppDatabase_DoorMetadata();
  }
  protoOf(UmAppDatabaseJsImplementations).o6x = function () {
    return this.q7f_1;
  };
  protoOf(UmAppDatabaseJsImplementations).p6x = function () {
    return this.r7f_1;
  };
  protoOf(UmAppDatabaseJsImplementations).r6x = function () {
    return this.s7f_1;
  };
  protoOf(UmAppDatabaseJsImplementations).q6x = function () {
    return this.t7f_1;
  };
  protoOf(UmAppDatabaseJsImplementations).m70 = function () {
    return this.u7f_1;
  };
  var UmAppDatabaseJsImplementations_instance;
  function UmAppDatabaseJsImplementations_getInstance() {
    if (UmAppDatabaseJsImplementations_instance == null)
      new UmAppDatabaseJsImplementations();
    return UmAppDatabaseJsImplementations_instance;
  }
  function UmAppDatabase_DoorMetadata$replicateEntities$delegate$lambda() {
    var tmp = listOf('clazzLogUid');
    var tmp_0 = listOf_0([new ReplicationFieldMetaData('clazzLogClazzUid', -5, false), new ReplicationFieldMetaData('logDate', -5, false), new ReplicationFieldMetaData('timeRecorded', -5, false), new ReplicationFieldMetaData('clazzLogDone', 16, false), new ReplicationFieldMetaData('cancellationNote', -1, true), new ReplicationFieldMetaData('clazzLogCancelled', 16, false), new ReplicationFieldMetaData('clazzLogNumPresent', 4, false), new ReplicationFieldMetaData('clazzLogNumAbsent', 4, false), new ReplicationFieldMetaData('clazzLogNumPartial', 4, false), new ReplicationFieldMetaData('clazzLogScheduleUid', -5, false), new ReplicationFieldMetaData('clazzLogStatusFlag', 4, false), new ReplicationFieldMetaData('clazzLogMSQN', -5, false), new ReplicationFieldMetaData('clazzLogLCSN', -5, false), new ReplicationFieldMetaData('clazzLogLCB', 4, false), new ReplicationFieldMetaData('clazzLogLastChangedTime', -5, false), new ReplicationFieldMetaData('clazzLogUid', -5, false)]);
    var tmp_1 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_2 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_3 = [Event_INSERT_getInstance()];
    var tmp_4 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_5 = ['REPLACE INTO ClazzLog (clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime) VALUES( CAST(NEW.clazzLogUid AS BIGINT), CAST(NEW.clazzLogClazzUid AS BIGINT), CAST(NEW.logDate AS BIGINT), CAST(NEW.timeRecorded AS BIGINT), NEW.clazzLogDone, NEW.cancellationNote, NEW.clazzLogCancelled, NEW.clazzLogNumPresent, NEW.clazzLogNumAbsent, NEW.clazzLogNumPartial, CAST(NEW.clazzLogScheduleUid AS BIGINT), NEW.clazzLogStatusFlag, CAST(NEW.clazzLogMSQN AS BIGINT), CAST(NEW.clazzLogLCSN AS BIGINT), NEW.clazzLogLCB, CAST(NEW.clazzLogLastChangedTime AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$8 = ['INSERT INTO ClazzLog (clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime) VALUES( CAST(NEW.clazzLogUid AS BIGINT), CAST(NEW.clazzLogClazzUid AS BIGINT), CAST(NEW.logDate AS BIGINT), CAST(NEW.timeRecorded AS BIGINT), NEW.clazzLogDone, NEW.cancellationNote, NEW.clazzLogCancelled, NEW.clazzLogNumPresent, NEW.clazzLogNumAbsent, NEW.clazzLogNumPartial, CAST(NEW.clazzLogScheduleUid AS BIGINT), NEW.clazzLogStatusFlag, CAST(NEW.clazzLogMSQN AS BIGINT), CAST(NEW.clazzLogLCSN AS BIGINT), NEW.clazzLogLCB, CAST(NEW.clazzLogLastChangedTime AS BIGINT))  ON CONFLICT(clazzLogUid)  DO UPDATE SET clazzLogClazzUid = NEW.clazzLogClazzUid, logDate = NEW.logDate, timeRecorded = NEW.timeRecorded, clazzLogDone = NEW.clazzLogDone, cancellationNote = NEW.cancellationNote, clazzLogCancelled = NEW.clazzLogCancelled, clazzLogNumPresent = NEW.clazzLogNumPresent, clazzLogNumAbsent = NEW.clazzLogNumAbsent, clazzLogNumPartial = NEW.clazzLogNumPartial, clazzLogScheduleUid = NEW.clazzLogScheduleUid, clazzLogStatusFlag = NEW.clazzLogStatusFlag, clazzLogMSQN = NEW.clazzLogMSQN, clazzLogLCSN = NEW.clazzLogLCSN, clazzLogLCB = NEW.clazzLogLCB, clazzLogLastChangedTime = NEW.clazzLogLastChangedTime '];
    var tmp_6 = to(14, new ReplicationEntityMetaData(14, 'ClazzLog', 'ClazzLog_ReceiveView', tmp, 'clazzLogLastChangedTime', tmp_0, 1000, tmp_1, listOf(new Trigger('clazzlog_remote_insert', tmp_2, tmp_3, tmp_4, tmp_5, tmp$ret$8, 'SELECT \n                   CAST(NEW.clazzLogLastChangedTime AS BIGINT) >\n                       COALESCE((SELECT ClazzLog_Existing.clazzLogLastChangedTime\n                                   FROM ClazzLog ClazzLog_Existing\n                                  WHERE ClazzLog_Existing.clazzLogUid = NEW.clazzLogUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.clazzLogLastChangedTime AS BIGINT) >\n                       COALESCE((SELECT ClazzLog_Existing.clazzLogLastChangedTime\n                                   FROM ClazzLog ClazzLog_Existing\n                                  WHERE ClazzLog_Existing.clazzLogUid = NEW.clazzLogUid), 0)\n                   '))));
    var tmp_7 = listOf('clazzLogAttendanceRecordUid');
    var tmp_8 = listOf_0([new ReplicationFieldMetaData('clazzLogAttendanceRecordClazzLogUid', -5, false), new ReplicationFieldMetaData('clazzLogAttendanceRecordPersonUid', -5, false), new ReplicationFieldMetaData('attendanceStatus', 4, false), new ReplicationFieldMetaData('clazzLogAttendanceRecordMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('clazzLogAttendanceRecordLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('clazzLogAttendanceRecordLastChangedBy', 4, false), new ReplicationFieldMetaData('clazzLogAttendanceRecordLastChangedTime', -5, false), new ReplicationFieldMetaData('clazzLogAttendanceRecordUid', -5, false)]);
    var tmp_9 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_10 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_11 = [Event_INSERT_getInstance()];
    var tmp_12 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_13 = ['REPLACE INTO ClazzLogAttendanceRecord (clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES( CAST(NEW.clazzLogAttendanceRecordUid AS BIGINT), CAST(NEW.clazzLogAttendanceRecordClazzLogUid AS BIGINT), CAST(NEW.clazzLogAttendanceRecordPersonUid AS BIGINT), NEW.attendanceStatus, CAST(NEW.clazzLogAttendanceRecordMasterChangeSeqNum AS BIGINT), CAST(NEW.clazzLogAttendanceRecordLocalChangeSeqNum AS BIGINT), NEW.clazzLogAttendanceRecordLastChangedBy, CAST(NEW.clazzLogAttendanceRecordLastChangedTime AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$17 = ['INSERT INTO ClazzLogAttendanceRecord (clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES( CAST(NEW.clazzLogAttendanceRecordUid AS BIGINT), CAST(NEW.clazzLogAttendanceRecordClazzLogUid AS BIGINT), CAST(NEW.clazzLogAttendanceRecordPersonUid AS BIGINT), NEW.attendanceStatus, CAST(NEW.clazzLogAttendanceRecordMasterChangeSeqNum AS BIGINT), CAST(NEW.clazzLogAttendanceRecordLocalChangeSeqNum AS BIGINT), NEW.clazzLogAttendanceRecordLastChangedBy, CAST(NEW.clazzLogAttendanceRecordLastChangedTime AS BIGINT))  ON CONFLICT(clazzLogAttendanceRecordUid)  DO UPDATE SET clazzLogAttendanceRecordClazzLogUid = NEW.clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid = NEW.clazzLogAttendanceRecordPersonUid, attendanceStatus = NEW.attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum = NEW.clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum = NEW.clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy = NEW.clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime = NEW.clazzLogAttendanceRecordLastChangedTime '];
    var tmp_14 = to(15, new ReplicationEntityMetaData(15, 'ClazzLogAttendanceRecord', 'ClazzLogAttendanceRecord_ReceiveView', tmp_7, 'clazzLogAttendanceRecordLastChangedTime', tmp_8, 1000, tmp_9, listOf(new Trigger('clazzlogattendancerecord_remote_insert', tmp_10, tmp_11, tmp_12, tmp_13, tmp$ret$17, 'SELECT \n                   CAST(NEW.clazzLogAttendanceRecordLastChangedTime AS BIGINT) >\n                       COALESCE((SELECT ClazzLogAttendanceRecord_Existing.clazzLogAttendanceRecordLastChangedTime\n                                   FROM ClazzLogAttendanceRecord ClazzLogAttendanceRecord_Existing\n                                  WHERE ClazzLogAttendanceRecord_Existing.clazzLogAttendanceRecordUid = NEW.clazzLogAttendanceRecordUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.clazzLogAttendanceRecordLastChangedTime AS BIGINT) >\n                       COALESCE((SELECT ClazzLogAttendanceRecord_Existing.clazzLogAttendanceRecordLastChangedTime\n                                   FROM ClazzLogAttendanceRecord ClazzLogAttendanceRecord_Existing\n                                  WHERE ClazzLogAttendanceRecord_Existing.clazzLogAttendanceRecordUid = NEW.clazzLogAttendanceRecordUid), 0)\n                   '))));
    var tmp_15 = listOf('scheduleUid');
    var tmp_16 = listOf_0([new ReplicationFieldMetaData('sceduleStartTime', -5, false), new ReplicationFieldMetaData('scheduleEndTime', -5, false), new ReplicationFieldMetaData('scheduleDay', 4, false), new ReplicationFieldMetaData('scheduleMonth', 4, false), new ReplicationFieldMetaData('scheduleFrequency', 4, false), new ReplicationFieldMetaData('umCalendarUid', -5, false), new ReplicationFieldMetaData('scheduleClazzUid', -5, false), new ReplicationFieldMetaData('scheduleMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('scheduleLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('scheduleLastChangedBy', 4, false), new ReplicationFieldMetaData('scheduleLastChangedTime', -5, false), new ReplicationFieldMetaData('scheduleActive', 16, false), new ReplicationFieldMetaData('scheduleUid', -5, false)]);
    var tmp_17 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_18 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_19 = [Event_INSERT_getInstance()];
    var tmp_20 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_21 = ['REPLACE INTO Schedule (scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive) VALUES( CAST(NEW.scheduleUid AS BIGINT), CAST(NEW.sceduleStartTime AS BIGINT), CAST(NEW.scheduleEndTime AS BIGINT), NEW.scheduleDay, NEW.scheduleMonth, NEW.scheduleFrequency, CAST(NEW.umCalendarUid AS BIGINT), CAST(NEW.scheduleClazzUid AS BIGINT), CAST(NEW.scheduleMasterChangeSeqNum AS BIGINT), CAST(NEW.scheduleLocalChangeSeqNum AS BIGINT), NEW.scheduleLastChangedBy, CAST(NEW.scheduleLastChangedTime AS BIGINT), NEW.scheduleActive) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$26 = ['INSERT INTO Schedule (scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive) VALUES( CAST(NEW.scheduleUid AS BIGINT), CAST(NEW.sceduleStartTime AS BIGINT), CAST(NEW.scheduleEndTime AS BIGINT), NEW.scheduleDay, NEW.scheduleMonth, NEW.scheduleFrequency, CAST(NEW.umCalendarUid AS BIGINT), CAST(NEW.scheduleClazzUid AS BIGINT), CAST(NEW.scheduleMasterChangeSeqNum AS BIGINT), CAST(NEW.scheduleLocalChangeSeqNum AS BIGINT), NEW.scheduleLastChangedBy, CAST(NEW.scheduleLastChangedTime AS BIGINT), NEW.scheduleActive)  ON CONFLICT(scheduleUid)  DO UPDATE SET sceduleStartTime = NEW.sceduleStartTime, scheduleEndTime = NEW.scheduleEndTime, scheduleDay = NEW.scheduleDay, scheduleMonth = NEW.scheduleMonth, scheduleFrequency = NEW.scheduleFrequency, umCalendarUid = NEW.umCalendarUid, scheduleClazzUid = NEW.scheduleClazzUid, scheduleMasterChangeSeqNum = NEW.scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum = NEW.scheduleLocalChangeSeqNum, scheduleLastChangedBy = NEW.scheduleLastChangedBy, scheduleLastChangedTime = NEW.scheduleLastChangedTime, scheduleActive = NEW.scheduleActive '];
    var tmp_22 = to(21, new ReplicationEntityMetaData(21, 'Schedule', 'Schedule_ReceiveView', tmp_15, 'scheduleLastChangedTime', tmp_16, 1000, tmp_17, listOf(new Trigger('schedule_remote_insert', tmp_18, tmp_19, tmp_20, tmp_21, tmp$ret$26, 'SELECT \n                   CAST(NEW.scheduleLastChangedTime AS BIGINT) >\n                       COALESCE((SELECT Schedule_Existing.scheduleLastChangedTime\n                                   FROM Schedule Schedule_Existing\n                                  WHERE Schedule_Existing.scheduleUid = NEW.scheduleUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.scheduleLastChangedTime AS BIGINT) >\n                       COALESCE((SELECT Schedule_Existing.scheduleLastChangedTime\n                                   FROM Schedule Schedule_Existing\n                                  WHERE Schedule_Existing.scheduleUid = NEW.scheduleUid), 0)\n                   '))));
    var tmp_23 = listOf('umCalendarUid');
    var tmp_24 = listOf_0([new ReplicationFieldMetaData('umCalendarName', -1, true), new ReplicationFieldMetaData('umCalendarCategory', 4, false), new ReplicationFieldMetaData('umCalendarActive', 16, false), new ReplicationFieldMetaData('umCalendarMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('umCalendarLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('umCalendarLastChangedBy', 4, false), new ReplicationFieldMetaData('umCalendarLct', -5, false), new ReplicationFieldMetaData('umCalendarUid', -5, false)]);
    var tmp_25 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_26 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_27 = [Event_INSERT_getInstance()];
    var tmp_28 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_29 = ['REPLACE INTO HolidayCalendar (umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES( CAST(NEW.umCalendarUid AS BIGINT), NEW.umCalendarName, NEW.umCalendarCategory, NEW.umCalendarActive, CAST(NEW.umCalendarMasterChangeSeqNum AS BIGINT), CAST(NEW.umCalendarLocalChangeSeqNum AS BIGINT), NEW.umCalendarLastChangedBy, CAST(NEW.umCalendarLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$35 = ['INSERT INTO HolidayCalendar (umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES( CAST(NEW.umCalendarUid AS BIGINT), NEW.umCalendarName, NEW.umCalendarCategory, NEW.umCalendarActive, CAST(NEW.umCalendarMasterChangeSeqNum AS BIGINT), CAST(NEW.umCalendarLocalChangeSeqNum AS BIGINT), NEW.umCalendarLastChangedBy, CAST(NEW.umCalendarLct AS BIGINT))  ON CONFLICT(umCalendarUid)  DO UPDATE SET umCalendarName = NEW.umCalendarName, umCalendarCategory = NEW.umCalendarCategory, umCalendarActive = NEW.umCalendarActive, umCalendarMasterChangeSeqNum = NEW.umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum = NEW.umCalendarLocalChangeSeqNum, umCalendarLastChangedBy = NEW.umCalendarLastChangedBy, umCalendarLct = NEW.umCalendarLct '];
    var tmp_30 = to(28, new ReplicationEntityMetaData(28, 'HolidayCalendar', 'HolidayCalendar_ReceiveView', tmp_23, 'umCalendarLct', tmp_24, 1000, tmp_25, listOf(new Trigger('holidaycalendar_remote_insert', tmp_26, tmp_27, tmp_28, tmp_29, tmp$ret$35, 'SELECT \n                   CAST(NEW.umCalendarLct AS BIGINT) >\n                       COALESCE((SELECT HolidayCalendar_Existing.umCalendarLct\n                                   FROM HolidayCalendar HolidayCalendar_Existing\n                                  WHERE HolidayCalendar_Existing.umCalendarUid = NEW.umCalendarUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.umCalendarLct AS BIGINT) >\n                       COALESCE((SELECT HolidayCalendar_Existing.umCalendarLct\n                                   FROM HolidayCalendar HolidayCalendar_Existing\n                                  WHERE HolidayCalendar_Existing.umCalendarUid = NEW.umCalendarUid), 0)\n                   '))));
    var tmp_31 = listOf('holUid');
    var tmp_32 = listOf_0([new ReplicationFieldMetaData('holMasterCsn', -5, false), new ReplicationFieldMetaData('holLocalCsn', -5, false), new ReplicationFieldMetaData('holLastModBy', 4, false), new ReplicationFieldMetaData('holLct', -5, false), new ReplicationFieldMetaData('holActive', 16, false), new ReplicationFieldMetaData('holHolidayCalendarUid', -5, false), new ReplicationFieldMetaData('holStartTime', -5, false), new ReplicationFieldMetaData('holEndTime', -5, false), new ReplicationFieldMetaData('holName', -1, true), new ReplicationFieldMetaData('holUid', -5, false)]);
    var tmp_33 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_34 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_35 = [Event_INSERT_getInstance()];
    var tmp_36 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_37 = ['REPLACE INTO Holiday (holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName) VALUES( CAST(NEW.holUid AS BIGINT), CAST(NEW.holMasterCsn AS BIGINT), CAST(NEW.holLocalCsn AS BIGINT), NEW.holLastModBy, CAST(NEW.holLct AS BIGINT), NEW.holActive, CAST(NEW.holHolidayCalendarUid AS BIGINT), CAST(NEW.holStartTime AS BIGINT), CAST(NEW.holEndTime AS BIGINT), NEW.holName) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$44 = ['INSERT INTO Holiday (holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName) VALUES( CAST(NEW.holUid AS BIGINT), CAST(NEW.holMasterCsn AS BIGINT), CAST(NEW.holLocalCsn AS BIGINT), NEW.holLastModBy, CAST(NEW.holLct AS BIGINT), NEW.holActive, CAST(NEW.holHolidayCalendarUid AS BIGINT), CAST(NEW.holStartTime AS BIGINT), CAST(NEW.holEndTime AS BIGINT), NEW.holName)  ON CONFLICT(holUid)  DO UPDATE SET holMasterCsn = NEW.holMasterCsn, holLocalCsn = NEW.holLocalCsn, holLastModBy = NEW.holLastModBy, holLct = NEW.holLct, holActive = NEW.holActive, holHolidayCalendarUid = NEW.holHolidayCalendarUid, holStartTime = NEW.holStartTime, holEndTime = NEW.holEndTime, holName = NEW.holName '];
    var tmp_38 = to(99, new ReplicationEntityMetaData(99, 'Holiday', 'Holiday_ReceiveView', tmp_31, 'holLct', tmp_32, 1000, tmp_33, listOf(new Trigger('holiday_remote_insert', tmp_34, tmp_35, tmp_36, tmp_37, tmp$ret$44, 'SELECT \n                   CAST(NEW.holLct AS BIGINT) >\n                       COALESCE((SELECT Holiday_Existing.holLct\n                                   FROM Holiday Holiday_Existing\n                                  WHERE Holiday_Existing.holUid = NEW.holUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.holLct AS BIGINT) >\n                       COALESCE((SELECT Holiday_Existing.holLct\n                                   FROM Holiday Holiday_Existing\n                                  WHERE Holiday_Existing.holUid = NEW.holUid), 0)\n                   '))));
    var tmp_39 = listOf('personUid');
    var tmp_40 = listOf_0([new ReplicationFieldMetaData('username', -1, true), new ReplicationFieldMetaData('firstNames', -1, true), new ReplicationFieldMetaData('lastName', -1, true), new ReplicationFieldMetaData('emailAddr', -1, true), new ReplicationFieldMetaData('phoneNum', -1, true), new ReplicationFieldMetaData('gender', 4, false), new ReplicationFieldMetaData('active', 16, false), new ReplicationFieldMetaData('dateOfBirth', -5, false), new ReplicationFieldMetaData('personAddress', -1, true), new ReplicationFieldMetaData('personOrgId', -1, true), new ReplicationFieldMetaData('personGroupUid', -5, false), new ReplicationFieldMetaData('personLct', -5, false), new ReplicationFieldMetaData('personCountry', -1, true), new ReplicationFieldMetaData('personType', 4, false), new ReplicationFieldMetaData('personMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('personLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('personLastChangedBy', 4, false), new ReplicationFieldMetaData('admin', 16, false), new ReplicationFieldMetaData('personNotes', -1, true), new ReplicationFieldMetaData('fatherName', -1, true), new ReplicationFieldMetaData('fatherNumber', -1, true), new ReplicationFieldMetaData('motherName', -1, true), new ReplicationFieldMetaData('motherNum', -1, true), new ReplicationFieldMetaData('personUid', -5, false)]);
    var tmp_41 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_42 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_43 = [Event_INSERT_getInstance()];
    var tmp_44 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_45 = ['REPLACE INTO Person (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) VALUES( CAST(NEW.personUid AS BIGINT), NEW.username, NEW.firstNames, NEW.lastName, NEW.emailAddr, NEW.phoneNum, NEW.gender, NEW.active, CAST(NEW.dateOfBirth AS BIGINT), NEW.personAddress, NEW.personOrgId, CAST(NEW.personGroupUid AS BIGINT), CAST(NEW.personLct AS BIGINT), NEW.personCountry, NEW.personType, CAST(NEW.personMasterChangeSeqNum AS BIGINT), CAST(NEW.personLocalChangeSeqNum AS BIGINT), NEW.personLastChangedBy, NEW.admin, NEW.personNotes, NEW.fatherName, NEW.fatherNumber, NEW.motherName, NEW.motherNum) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$53 = ['INSERT INTO Person (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) VALUES( CAST(NEW.personUid AS BIGINT), NEW.username, NEW.firstNames, NEW.lastName, NEW.emailAddr, NEW.phoneNum, NEW.gender, NEW.active, CAST(NEW.dateOfBirth AS BIGINT), NEW.personAddress, NEW.personOrgId, CAST(NEW.personGroupUid AS BIGINT), CAST(NEW.personLct AS BIGINT), NEW.personCountry, NEW.personType, CAST(NEW.personMasterChangeSeqNum AS BIGINT), CAST(NEW.personLocalChangeSeqNum AS BIGINT), NEW.personLastChangedBy, NEW.admin, NEW.personNotes, NEW.fatherName, NEW.fatherNumber, NEW.motherName, NEW.motherNum)  ON CONFLICT(personUid)  DO UPDATE SET username = NEW.username, firstNames = NEW.firstNames, lastName = NEW.lastName, emailAddr = NEW.emailAddr, phoneNum = NEW.phoneNum, gender = NEW.gender, active = NEW.active, dateOfBirth = NEW.dateOfBirth, personAddress = NEW.personAddress, personOrgId = NEW.personOrgId, personGroupUid = NEW.personGroupUid, personLct = NEW.personLct, personCountry = NEW.personCountry, personType = NEW.personType, personMasterChangeSeqNum = NEW.personMasterChangeSeqNum, personLocalChangeSeqNum = NEW.personLocalChangeSeqNum, personLastChangedBy = NEW.personLastChangedBy, admin = NEW.admin, personNotes = NEW.personNotes, fatherName = NEW.fatherName, fatherNumber = NEW.fatherNumber, motherName = NEW.motherName, motherNum = NEW.motherNum '];
    var tmp_46 = to(9, new ReplicationEntityMetaData(9, 'Person', 'Person_ReceiveView', tmp_39, 'personLct', tmp_40, 1000, tmp_41, listOf(new Trigger('person_remote_insert', tmp_42, tmp_43, tmp_44, tmp_45, tmp$ret$53, '\n             SELECT \n                    ((NEW.username IS NULL\n                     OR (SELECT NOT EXISTS(\n                            SELECT Person.personUid\n                              FROM Person\n                             WHERE Person.username = NEW.username))  \n                     OR NEW.personUid = \n                        (SELECT Person.personUid\n                           FROM Person\n                          WHERE Person.username = NEW.username)))\n                  AND CAST(NEW.personLct AS BIGINT) > \n                         (SELECT COALESCE(\n                                  (SELECT Person.personLct\n                                     FROM Person\n                                    WHERE Person.personUid = CAST(NEW.personUid AS BIGINT)), 0))   \n                            \n         ', '\n             SELECT \n                    ((NEW.username IS NULL\n                     OR (SELECT NOT EXISTS(\n                            SELECT Person.personUid\n                              FROM Person\n                             WHERE Person.username = NEW.username))  \n                     OR NEW.personUid = \n                        (SELECT Person.personUid\n                           FROM Person\n                          WHERE Person.username = NEW.username)))\n                  AND CAST(NEW.personLct AS BIGINT) > \n                         (SELECT COALESCE(\n                                  (SELECT Person.personLct\n                                     FROM Person\n                                    WHERE Person.personUid = CAST(NEW.personUid AS BIGINT)), 0))   \n                            \n         '))));
    var tmp_47 = listOf('clazzUid');
    var tmp_48 = listOf_0([new ReplicationFieldMetaData('clazzName', -1, true), new ReplicationFieldMetaData('clazzDesc', -1, true), new ReplicationFieldMetaData('attendanceAverage', 6, false), new ReplicationFieldMetaData('clazzHolidayUMCalendarUid', -5, false), new ReplicationFieldMetaData('clazzScheuleUMCalendarUid', -5, false), new ReplicationFieldMetaData('isClazzActive', 16, false), new ReplicationFieldMetaData('clazzLocationUid', -5, false), new ReplicationFieldMetaData('clazzStartTime', -5, false), new ReplicationFieldMetaData('clazzEndTime', -5, false), new ReplicationFieldMetaData('clazzFeatures', -5, false), new ReplicationFieldMetaData('clazzSchoolUid', -5, false), new ReplicationFieldMetaData('clazzEnrolmentPolicy', 4, false), new ReplicationFieldMetaData('clazzTerminologyUid', -5, false), new ReplicationFieldMetaData('clazzMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('clazzLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('clazzLastChangedBy', 4, false), new ReplicationFieldMetaData('clazzLct', -5, false), new ReplicationFieldMetaData('clazzTimeZone', -1, true), new ReplicationFieldMetaData('clazzStudentsPersonGroupUid', -5, false), new ReplicationFieldMetaData('clazzTeachersPersonGroupUid', -5, false), new ReplicationFieldMetaData('clazzPendingStudentsPersonGroupUid', -5, false), new ReplicationFieldMetaData('clazzParentsPersonGroupUid', -5, false), new ReplicationFieldMetaData('clazzCode', -1, true), new ReplicationFieldMetaData('clazzOwnerPersonUid', -5, false), new ReplicationFieldMetaData('clazzUid', -5, false)]);
    var tmp_49 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_50 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_51 = [Event_INSERT_getInstance()];
    var tmp_52 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_53 = ['REPLACE INTO Clazz (clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid) VALUES( CAST(NEW.clazzUid AS BIGINT), NEW.clazzName, NEW.clazzDesc, NEW.attendanceAverage, CAST(NEW.clazzHolidayUMCalendarUid AS BIGINT), CAST(NEW.clazzScheuleUMCalendarUid AS BIGINT), NEW.isClazzActive, CAST(NEW.clazzLocationUid AS BIGINT), CAST(NEW.clazzStartTime AS BIGINT), CAST(NEW.clazzEndTime AS BIGINT), CAST(NEW.clazzFeatures AS BIGINT), CAST(NEW.clazzSchoolUid AS BIGINT), NEW.clazzEnrolmentPolicy, CAST(NEW.clazzTerminologyUid AS BIGINT), CAST(NEW.clazzMasterChangeSeqNum AS BIGINT), CAST(NEW.clazzLocalChangeSeqNum AS BIGINT), NEW.clazzLastChangedBy, CAST(NEW.clazzLct AS BIGINT), NEW.clazzTimeZone, CAST(NEW.clazzStudentsPersonGroupUid AS BIGINT), CAST(NEW.clazzTeachersPersonGroupUid AS BIGINT), CAST(NEW.clazzPendingStudentsPersonGroupUid AS BIGINT), CAST(NEW.clazzParentsPersonGroupUid AS BIGINT), NEW.clazzCode, CAST(NEW.clazzOwnerPersonUid AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$62 = ['INSERT INTO Clazz (clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid) VALUES( CAST(NEW.clazzUid AS BIGINT), NEW.clazzName, NEW.clazzDesc, NEW.attendanceAverage, CAST(NEW.clazzHolidayUMCalendarUid AS BIGINT), CAST(NEW.clazzScheuleUMCalendarUid AS BIGINT), NEW.isClazzActive, CAST(NEW.clazzLocationUid AS BIGINT), CAST(NEW.clazzStartTime AS BIGINT), CAST(NEW.clazzEndTime AS BIGINT), CAST(NEW.clazzFeatures AS BIGINT), CAST(NEW.clazzSchoolUid AS BIGINT), NEW.clazzEnrolmentPolicy, CAST(NEW.clazzTerminologyUid AS BIGINT), CAST(NEW.clazzMasterChangeSeqNum AS BIGINT), CAST(NEW.clazzLocalChangeSeqNum AS BIGINT), NEW.clazzLastChangedBy, CAST(NEW.clazzLct AS BIGINT), NEW.clazzTimeZone, CAST(NEW.clazzStudentsPersonGroupUid AS BIGINT), CAST(NEW.clazzTeachersPersonGroupUid AS BIGINT), CAST(NEW.clazzPendingStudentsPersonGroupUid AS BIGINT), CAST(NEW.clazzParentsPersonGroupUid AS BIGINT), NEW.clazzCode, CAST(NEW.clazzOwnerPersonUid AS BIGINT))  ON CONFLICT(clazzUid)  DO UPDATE SET clazzName = NEW.clazzName, clazzDesc = NEW.clazzDesc, attendanceAverage = NEW.attendanceAverage, clazzHolidayUMCalendarUid = NEW.clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid = NEW.clazzScheuleUMCalendarUid, isClazzActive = NEW.isClazzActive, clazzLocationUid = NEW.clazzLocationUid, clazzStartTime = NEW.clazzStartTime, clazzEndTime = NEW.clazzEndTime, clazzFeatures = NEW.clazzFeatures, clazzSchoolUid = NEW.clazzSchoolUid, clazzEnrolmentPolicy = NEW.clazzEnrolmentPolicy, clazzTerminologyUid = NEW.clazzTerminologyUid, clazzMasterChangeSeqNum = NEW.clazzMasterChangeSeqNum, clazzLocalChangeSeqNum = NEW.clazzLocalChangeSeqNum, clazzLastChangedBy = NEW.clazzLastChangedBy, clazzLct = NEW.clazzLct, clazzTimeZone = NEW.clazzTimeZone, clazzStudentsPersonGroupUid = NEW.clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid = NEW.clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid = NEW.clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid = NEW.clazzParentsPersonGroupUid, clazzCode = NEW.clazzCode, clazzOwnerPersonUid = NEW.clazzOwnerPersonUid '];
    var tmp_54 = to(6, new ReplicationEntityMetaData(6, 'Clazz', 'Clazz_ReceiveView', tmp_47, 'clazzLct', tmp_48, 1000, tmp_49, listOf(new Trigger('clazz_remote_insert', tmp_50, tmp_51, tmp_52, tmp_53, tmp$ret$62, 'SELECT \n                   CAST(NEW.clazzLct AS BIGINT) >\n                       COALESCE((SELECT Clazz_Existing.clazzLct\n                                   FROM Clazz Clazz_Existing\n                                  WHERE Clazz_Existing.clazzUid = NEW.clazzUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.clazzLct AS BIGINT) >\n                       COALESCE((SELECT Clazz_Existing.clazzLct\n                                   FROM Clazz Clazz_Existing\n                                  WHERE Clazz_Existing.clazzUid = NEW.clazzUid), 0)\n                   '))));
    var tmp_55 = listOf('clazzEnrolmentUid');
    var tmp_56 = listOf_0([new ReplicationFieldMetaData('clazzEnrolmentPersonUid', -5, false), new ReplicationFieldMetaData('clazzEnrolmentClazzUid', -5, false), new ReplicationFieldMetaData('clazzEnrolmentDateJoined', -5, false), new ReplicationFieldMetaData('clazzEnrolmentDateLeft', -5, false), new ReplicationFieldMetaData('clazzEnrolmentRole', 4, false), new ReplicationFieldMetaData('clazzEnrolmentAttendancePercentage', 6, false), new ReplicationFieldMetaData('clazzEnrolmentActive', 16, false), new ReplicationFieldMetaData('clazzEnrolmentLeavingReasonUid', -5, false), new ReplicationFieldMetaData('clazzEnrolmentOutcome', 4, false), new ReplicationFieldMetaData('clazzEnrolmentLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('clazzEnrolmentMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('clazzEnrolmentLastChangedBy', 4, false), new ReplicationFieldMetaData('clazzEnrolmentLct', -5, false), new ReplicationFieldMetaData('clazzEnrolmentUid', -5, false)]);
    var tmp_57 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_58 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_59 = [Event_INSERT_getInstance()];
    var tmp_60 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_61 = ['REPLACE INTO ClazzEnrolment (clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct) VALUES( CAST(NEW.clazzEnrolmentUid AS BIGINT), CAST(NEW.clazzEnrolmentPersonUid AS BIGINT), CAST(NEW.clazzEnrolmentClazzUid AS BIGINT), CAST(NEW.clazzEnrolmentDateJoined AS BIGINT), CAST(NEW.clazzEnrolmentDateLeft AS BIGINT), NEW.clazzEnrolmentRole, NEW.clazzEnrolmentAttendancePercentage, NEW.clazzEnrolmentActive, CAST(NEW.clazzEnrolmentLeavingReasonUid AS BIGINT), NEW.clazzEnrolmentOutcome, CAST(NEW.clazzEnrolmentLocalChangeSeqNum AS BIGINT), CAST(NEW.clazzEnrolmentMasterChangeSeqNum AS BIGINT), NEW.clazzEnrolmentLastChangedBy, CAST(NEW.clazzEnrolmentLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$71 = ['INSERT INTO ClazzEnrolment (clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct) VALUES( CAST(NEW.clazzEnrolmentUid AS BIGINT), CAST(NEW.clazzEnrolmentPersonUid AS BIGINT), CAST(NEW.clazzEnrolmentClazzUid AS BIGINT), CAST(NEW.clazzEnrolmentDateJoined AS BIGINT), CAST(NEW.clazzEnrolmentDateLeft AS BIGINT), NEW.clazzEnrolmentRole, NEW.clazzEnrolmentAttendancePercentage, NEW.clazzEnrolmentActive, CAST(NEW.clazzEnrolmentLeavingReasonUid AS BIGINT), NEW.clazzEnrolmentOutcome, CAST(NEW.clazzEnrolmentLocalChangeSeqNum AS BIGINT), CAST(NEW.clazzEnrolmentMasterChangeSeqNum AS BIGINT), NEW.clazzEnrolmentLastChangedBy, CAST(NEW.clazzEnrolmentLct AS BIGINT))  ON CONFLICT(clazzEnrolmentUid)  DO UPDATE SET clazzEnrolmentPersonUid = NEW.clazzEnrolmentPersonUid, clazzEnrolmentClazzUid = NEW.clazzEnrolmentClazzUid, clazzEnrolmentDateJoined = NEW.clazzEnrolmentDateJoined, clazzEnrolmentDateLeft = NEW.clazzEnrolmentDateLeft, clazzEnrolmentRole = NEW.clazzEnrolmentRole, clazzEnrolmentAttendancePercentage = NEW.clazzEnrolmentAttendancePercentage, clazzEnrolmentActive = NEW.clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid = NEW.clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome = NEW.clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum = NEW.clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum = NEW.clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy = NEW.clazzEnrolmentLastChangedBy, clazzEnrolmentLct = NEW.clazzEnrolmentLct '];
    var tmp_62 = to(65, new ReplicationEntityMetaData(65, 'ClazzEnrolment', 'ClazzEnrolment_ReceiveView', tmp_55, 'clazzEnrolmentLct', tmp_56, 1000, tmp_57, listOf(new Trigger('clazzenrolment_remote_insert', tmp_58, tmp_59, tmp_60, tmp_61, tmp$ret$71, 'SELECT \n                   CAST(NEW.clazzEnrolmentLct AS BIGINT) >\n                       COALESCE((SELECT ClazzEnrolment_Existing.clazzEnrolmentLct\n                                   FROM ClazzEnrolment ClazzEnrolment_Existing\n                                  WHERE ClazzEnrolment_Existing.clazzEnrolmentUid = NEW.clazzEnrolmentUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.clazzEnrolmentLct AS BIGINT) >\n                       COALESCE((SELECT ClazzEnrolment_Existing.clazzEnrolmentLct\n                                   FROM ClazzEnrolment ClazzEnrolment_Existing\n                                  WHERE ClazzEnrolment_Existing.clazzEnrolmentUid = NEW.clazzEnrolmentUid), 0)\n                   '))));
    var tmp_63 = listOf('leavingReasonUid');
    var tmp_64 = listOf_0([new ReplicationFieldMetaData('leavingReasonTitle', -1, true), new ReplicationFieldMetaData('leavingReasonMCSN', -5, false), new ReplicationFieldMetaData('leavingReasonCSN', -5, false), new ReplicationFieldMetaData('leavingReasonLCB', 4, false), new ReplicationFieldMetaData('leavingReasonLct', -5, false), new ReplicationFieldMetaData('leavingReasonUid', -5, false)]);
    var tmp_65 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_66 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_67 = [Event_INSERT_getInstance()];
    var tmp_68 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_69 = ['REPLACE INTO LeavingReason (leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES( CAST(NEW.leavingReasonUid AS BIGINT), NEW.leavingReasonTitle, CAST(NEW.leavingReasonMCSN AS BIGINT), CAST(NEW.leavingReasonCSN AS BIGINT), NEW.leavingReasonLCB, CAST(NEW.leavingReasonLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$80 = ['INSERT INTO LeavingReason (leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES( CAST(NEW.leavingReasonUid AS BIGINT), NEW.leavingReasonTitle, CAST(NEW.leavingReasonMCSN AS BIGINT), CAST(NEW.leavingReasonCSN AS BIGINT), NEW.leavingReasonLCB, CAST(NEW.leavingReasonLct AS BIGINT))  ON CONFLICT(leavingReasonUid)  DO UPDATE SET leavingReasonTitle = NEW.leavingReasonTitle, leavingReasonMCSN = NEW.leavingReasonMCSN, leavingReasonCSN = NEW.leavingReasonCSN, leavingReasonLCB = NEW.leavingReasonLCB, leavingReasonLct = NEW.leavingReasonLct '];
    var tmp_70 = to(410, new ReplicationEntityMetaData(410, 'LeavingReason', 'LeavingReason_ReceiveView', tmp_63, 'leavingReasonLct', tmp_64, 1000, tmp_65, listOf(new Trigger('leavingreason_remote_insert', tmp_66, tmp_67, tmp_68, tmp_69, tmp$ret$80, 'SELECT \n                   CAST(NEW.leavingReasonLct AS BIGINT) >\n                       COALESCE((SELECT LeavingReason_Existing.leavingReasonLct\n                                   FROM LeavingReason LeavingReason_Existing\n                                  WHERE LeavingReason_Existing.leavingReasonUid = NEW.leavingReasonUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.leavingReasonLct AS BIGINT) >\n                       COALESCE((SELECT LeavingReason_Existing.leavingReasonLct\n                                   FROM LeavingReason LeavingReason_Existing\n                                  WHERE LeavingReason_Existing.leavingReasonUid = NEW.leavingReasonUid), 0)\n                   '))));
    var tmp_71 = listOf('contentEntryUid');
    var tmp_72 = listOf_0([new ReplicationFieldMetaData('title', -1, true), new ReplicationFieldMetaData('description', -1, true), new ReplicationFieldMetaData('entryId', -1, true), new ReplicationFieldMetaData('author', -1, true), new ReplicationFieldMetaData('publisher', -1, true), new ReplicationFieldMetaData('licenseType', 4, false), new ReplicationFieldMetaData('licenseName', -1, true), new ReplicationFieldMetaData('licenseUrl', -1, true), new ReplicationFieldMetaData('sourceUrl', -1, true), new ReplicationFieldMetaData('thumbnailUrl', -1, true), new ReplicationFieldMetaData('lastModified', -5, false), new ReplicationFieldMetaData('primaryLanguageUid', -5, false), new ReplicationFieldMetaData('languageVariantUid', -5, false), new ReplicationFieldMetaData('contentFlags', 4, false), new ReplicationFieldMetaData('leaf', 16, false), new ReplicationFieldMetaData('publik', 16, false), new ReplicationFieldMetaData('ceInactive', 16, false), new ReplicationFieldMetaData('completionCriteria', 4, false), new ReplicationFieldMetaData('minScore', 4, false), new ReplicationFieldMetaData('contentTypeFlag', 4, false), new ReplicationFieldMetaData('contentOwner', -5, false), new ReplicationFieldMetaData('contentOwnerType', 4, false), new ReplicationFieldMetaData('contentEntryLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('contentEntryMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('contentEntryLastChangedBy', 4, false), new ReplicationFieldMetaData('contentEntryLct', -5, false), new ReplicationFieldMetaData('contentEntryUid', -5, false)]);
    var tmp_73 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_74 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_75 = [Event_INSERT_getInstance()];
    var tmp_76 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_77 = ['REPLACE INTO ContentEntry (contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct) VALUES( CAST(NEW.contentEntryUid AS BIGINT), NEW.title, NEW.description, NEW.entryId, NEW.author, NEW.publisher, NEW.licenseType, NEW.licenseName, NEW.licenseUrl, NEW.sourceUrl, NEW.thumbnailUrl, CAST(NEW.lastModified AS BIGINT), CAST(NEW.primaryLanguageUid AS BIGINT), CAST(NEW.languageVariantUid AS BIGINT), NEW.contentFlags, NEW.leaf, NEW.publik, NEW.ceInactive, NEW.completionCriteria, NEW.minScore, NEW.contentTypeFlag, CAST(NEW.contentOwner AS BIGINT), NEW.contentOwnerType, CAST(NEW.contentEntryLocalChangeSeqNum AS BIGINT), CAST(NEW.contentEntryMasterChangeSeqNum AS BIGINT), NEW.contentEntryLastChangedBy, CAST(NEW.contentEntryLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$89 = ['INSERT INTO ContentEntry (contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct) VALUES( CAST(NEW.contentEntryUid AS BIGINT), NEW.title, NEW.description, NEW.entryId, NEW.author, NEW.publisher, NEW.licenseType, NEW.licenseName, NEW.licenseUrl, NEW.sourceUrl, NEW.thumbnailUrl, CAST(NEW.lastModified AS BIGINT), CAST(NEW.primaryLanguageUid AS BIGINT), CAST(NEW.languageVariantUid AS BIGINT), NEW.contentFlags, NEW.leaf, NEW.publik, NEW.ceInactive, NEW.completionCriteria, NEW.minScore, NEW.contentTypeFlag, CAST(NEW.contentOwner AS BIGINT), NEW.contentOwnerType, CAST(NEW.contentEntryLocalChangeSeqNum AS BIGINT), CAST(NEW.contentEntryMasterChangeSeqNum AS BIGINT), NEW.contentEntryLastChangedBy, CAST(NEW.contentEntryLct AS BIGINT))  ON CONFLICT(contentEntryUid)  DO UPDATE SET title = NEW.title, description = NEW.description, entryId = NEW.entryId, author = NEW.author, publisher = NEW.publisher, licenseType = NEW.licenseType, licenseName = NEW.licenseName, licenseUrl = NEW.licenseUrl, sourceUrl = NEW.sourceUrl, thumbnailUrl = NEW.thumbnailUrl, lastModified = NEW.lastModified, primaryLanguageUid = NEW.primaryLanguageUid, languageVariantUid = NEW.languageVariantUid, contentFlags = NEW.contentFlags, leaf = NEW.leaf, publik = NEW.publik, ceInactive = NEW.ceInactive, completionCriteria = NEW.completionCriteria, minScore = NEW.minScore, contentTypeFlag = NEW.contentTypeFlag, contentOwner = NEW.contentOwner, contentOwnerType = NEW.contentOwnerType, contentEntryLocalChangeSeqNum = NEW.contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum = NEW.contentEntryMasterChangeSeqNum, contentEntryLastChangedBy = NEW.contentEntryLastChangedBy, contentEntryLct = NEW.contentEntryLct '];
    var tmp_78 = to(42, new ReplicationEntityMetaData(42, 'ContentEntry', 'ContentEntry_ReceiveView', tmp_71, 'contentEntryLct', tmp_72, 1000, tmp_73, listOf(new Trigger('contententry_remote_insert', tmp_74, tmp_75, tmp_76, tmp_77, tmp$ret$89, 'SELECT \n                   CAST(NEW.contentEntryLct AS BIGINT) >\n                       COALESCE((SELECT ContentEntry_Existing.contentEntryLct\n                                   FROM ContentEntry ContentEntry_Existing\n                                  WHERE ContentEntry_Existing.contentEntryUid = NEW.contentEntryUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.contentEntryLct AS BIGINT) >\n                       COALESCE((SELECT ContentEntry_Existing.contentEntryLct\n                                   FROM ContentEntry ContentEntry_Existing\n                                  WHERE ContentEntry_Existing.contentEntryUid = NEW.contentEntryUid), 0)\n                   '))));
    var tmp_79 = listOf('ceccjUid');
    var tmp_80 = listOf_0([new ReplicationFieldMetaData('ceccjContentEntryUid', -5, false), new ReplicationFieldMetaData('ceccjContentCategoryUid', -5, false), new ReplicationFieldMetaData('ceccjLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('ceccjMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('ceccjLastChangedBy', 4, false), new ReplicationFieldMetaData('ceccjLct', -5, false), new ReplicationFieldMetaData('ceccjUid', -5, false)]);
    var tmp_81 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_82 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_83 = [Event_INSERT_getInstance()];
    var tmp_84 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_85 = ['REPLACE INTO ContentEntryContentCategoryJoin (ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct) VALUES( CAST(NEW.ceccjUid AS BIGINT), CAST(NEW.ceccjContentEntryUid AS BIGINT), CAST(NEW.ceccjContentCategoryUid AS BIGINT), CAST(NEW.ceccjLocalChangeSeqNum AS BIGINT), CAST(NEW.ceccjMasterChangeSeqNum AS BIGINT), NEW.ceccjLastChangedBy, CAST(NEW.ceccjLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$98 = ['INSERT INTO ContentEntryContentCategoryJoin (ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct) VALUES( CAST(NEW.ceccjUid AS BIGINT), CAST(NEW.ceccjContentEntryUid AS BIGINT), CAST(NEW.ceccjContentCategoryUid AS BIGINT), CAST(NEW.ceccjLocalChangeSeqNum AS BIGINT), CAST(NEW.ceccjMasterChangeSeqNum AS BIGINT), NEW.ceccjLastChangedBy, CAST(NEW.ceccjLct AS BIGINT))  ON CONFLICT(ceccjUid)  DO UPDATE SET ceccjContentEntryUid = NEW.ceccjContentEntryUid, ceccjContentCategoryUid = NEW.ceccjContentCategoryUid, ceccjLocalChangeSeqNum = NEW.ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum = NEW.ceccjMasterChangeSeqNum, ceccjLastChangedBy = NEW.ceccjLastChangedBy, ceccjLct = NEW.ceccjLct '];
    var tmp_86 = to(3, new ReplicationEntityMetaData(3, 'ContentEntryContentCategoryJoin', 'ContentEntryContentCategoryJoin_ReceiveView', tmp_79, 'ceccjLct', tmp_80, 1000, tmp_81, listOf(new Trigger('contententrycontentcategoryjoin_remote_insert', tmp_82, tmp_83, tmp_84, tmp_85, tmp$ret$98, 'SELECT \n                   CAST(NEW.ceccjLct AS BIGINT) >\n                       COALESCE((SELECT ContentEntryContentCategoryJoin_Existing.ceccjLct\n                                   FROM ContentEntryContentCategoryJoin ContentEntryContentCategoryJoin_Existing\n                                  WHERE ContentEntryContentCategoryJoin_Existing.ceccjUid = NEW.ceccjUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.ceccjLct AS BIGINT) >\n                       COALESCE((SELECT ContentEntryContentCategoryJoin_Existing.ceccjLct\n                                   FROM ContentEntryContentCategoryJoin ContentEntryContentCategoryJoin_Existing\n                                  WHERE ContentEntryContentCategoryJoin_Existing.ceccjUid = NEW.ceccjUid), 0)\n                   '))));
    var tmp_87 = listOf('cepcjUid');
    var tmp_88 = listOf_0([new ReplicationFieldMetaData('cepcjLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('cepcjMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('cepcjLastChangedBy', 4, false), new ReplicationFieldMetaData('cepcjLct', -5, false), new ReplicationFieldMetaData('cepcjDeleted', 16, false), new ReplicationFieldMetaData('cepcjParentContentEntryUid', -5, false), new ReplicationFieldMetaData('cepcjChildContentEntryUid', -5, false), new ReplicationFieldMetaData('childIndex', 4, false), new ReplicationFieldMetaData('cepcjUid', -5, false)]);
    var tmp_89 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_90 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_91 = [Event_INSERT_getInstance()];
    var tmp_92 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_93 = ['REPLACE INTO ContentEntryParentChildJoin (cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex) VALUES( CAST(NEW.cepcjUid AS BIGINT), CAST(NEW.cepcjLocalChangeSeqNum AS BIGINT), CAST(NEW.cepcjMasterChangeSeqNum AS BIGINT), NEW.cepcjLastChangedBy, CAST(NEW.cepcjLct AS BIGINT), NEW.cepcjDeleted, CAST(NEW.cepcjParentContentEntryUid AS BIGINT), CAST(NEW.cepcjChildContentEntryUid AS BIGINT), NEW.childIndex) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$107 = ['INSERT INTO ContentEntryParentChildJoin (cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex) VALUES( CAST(NEW.cepcjUid AS BIGINT), CAST(NEW.cepcjLocalChangeSeqNum AS BIGINT), CAST(NEW.cepcjMasterChangeSeqNum AS BIGINT), NEW.cepcjLastChangedBy, CAST(NEW.cepcjLct AS BIGINT), NEW.cepcjDeleted, CAST(NEW.cepcjParentContentEntryUid AS BIGINT), CAST(NEW.cepcjChildContentEntryUid AS BIGINT), NEW.childIndex)  ON CONFLICT(cepcjUid)  DO UPDATE SET cepcjLocalChangeSeqNum = NEW.cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum = NEW.cepcjMasterChangeSeqNum, cepcjLastChangedBy = NEW.cepcjLastChangedBy, cepcjLct = NEW.cepcjLct, cepcjDeleted = NEW.cepcjDeleted, cepcjParentContentEntryUid = NEW.cepcjParentContentEntryUid, cepcjChildContentEntryUid = NEW.cepcjChildContentEntryUid, childIndex = NEW.childIndex '];
    var tmp_94 = to(7, new ReplicationEntityMetaData(7, 'ContentEntryParentChildJoin', 'ContentEntryParentChildJoin_ReceiveView', tmp_87, 'cepcjLct', tmp_88, 1000, tmp_89, listOf(new Trigger('contententryparentchildjoin_remote_insert', tmp_90, tmp_91, tmp_92, tmp_93, tmp$ret$107, 'SELECT \n                   CAST(NEW.cepcjLct AS BIGINT) >\n                       COALESCE((SELECT ContentEntryParentChildJoin_Existing.cepcjLct\n                                   FROM ContentEntryParentChildJoin ContentEntryParentChildJoin_Existing\n                                  WHERE ContentEntryParentChildJoin_Existing.cepcjUid = NEW.cepcjUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.cepcjLct AS BIGINT) >\n                       COALESCE((SELECT ContentEntryParentChildJoin_Existing.cepcjLct\n                                   FROM ContentEntryParentChildJoin ContentEntryParentChildJoin_Existing\n                                  WHERE ContentEntryParentChildJoin_Existing.cepcjUid = NEW.cepcjUid), 0)\n                   '))));
    var tmp_95 = listOf('cerejUid');
    var tmp_96 = listOf_0([new ReplicationFieldMetaData('cerejContentEntryUid', -5, false), new ReplicationFieldMetaData('cerejRelatedEntryUid', -5, false), new ReplicationFieldMetaData('cerejLastChangedBy', 4, false), new ReplicationFieldMetaData('relType', 4, false), new ReplicationFieldMetaData('comment', -1, true), new ReplicationFieldMetaData('cerejRelLanguageUid', -5, false), new ReplicationFieldMetaData('cerejLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('cerejMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('cerejLct', -5, false), new ReplicationFieldMetaData('cerejUid', -5, false)]);
    var tmp_97 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_98 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_99 = [Event_INSERT_getInstance()];
    var tmp_100 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_101 = ['REPLACE INTO ContentEntryRelatedEntryJoin (cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct) VALUES( CAST(NEW.cerejUid AS BIGINT), CAST(NEW.cerejContentEntryUid AS BIGINT), CAST(NEW.cerejRelatedEntryUid AS BIGINT), NEW.cerejLastChangedBy, NEW.relType, NEW.comment, CAST(NEW.cerejRelLanguageUid AS BIGINT), CAST(NEW.cerejLocalChangeSeqNum AS BIGINT), CAST(NEW.cerejMasterChangeSeqNum AS BIGINT), CAST(NEW.cerejLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$116 = ['INSERT INTO ContentEntryRelatedEntryJoin (cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct) VALUES( CAST(NEW.cerejUid AS BIGINT), CAST(NEW.cerejContentEntryUid AS BIGINT), CAST(NEW.cerejRelatedEntryUid AS BIGINT), NEW.cerejLastChangedBy, NEW.relType, NEW.comment, CAST(NEW.cerejRelLanguageUid AS BIGINT), CAST(NEW.cerejLocalChangeSeqNum AS BIGINT), CAST(NEW.cerejMasterChangeSeqNum AS BIGINT), CAST(NEW.cerejLct AS BIGINT))  ON CONFLICT(cerejUid)  DO UPDATE SET cerejContentEntryUid = NEW.cerejContentEntryUid, cerejRelatedEntryUid = NEW.cerejRelatedEntryUid, cerejLastChangedBy = NEW.cerejLastChangedBy, relType = NEW.relType, comment = NEW.comment, cerejRelLanguageUid = NEW.cerejRelLanguageUid, cerejLocalChangeSeqNum = NEW.cerejLocalChangeSeqNum, cerejMasterChangeSeqNum = NEW.cerejMasterChangeSeqNum, cerejLct = NEW.cerejLct '];
    var tmp_102 = to(8, new ReplicationEntityMetaData(8, 'ContentEntryRelatedEntryJoin', 'ContentEntryRelatedEntryJoin_ReceiveView', tmp_95, 'cerejLct', tmp_96, 1000, tmp_97, listOf(new Trigger('contententryrelatedentryjoin_remote_insert', tmp_98, tmp_99, tmp_100, tmp_101, tmp$ret$116, 'SELECT \n                   CAST(NEW.cerejLct AS BIGINT) >\n                       COALESCE((SELECT ContentEntryRelatedEntryJoin_Existing.cerejLct\n                                   FROM ContentEntryRelatedEntryJoin ContentEntryRelatedEntryJoin_Existing\n                                  WHERE ContentEntryRelatedEntryJoin_Existing.cerejUid = NEW.cerejUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.cerejLct AS BIGINT) >\n                       COALESCE((SELECT ContentEntryRelatedEntryJoin_Existing.cerejLct\n                                   FROM ContentEntryRelatedEntryJoin ContentEntryRelatedEntryJoin_Existing\n                                  WHERE ContentEntryRelatedEntryJoin_Existing.cerejUid = NEW.cerejUid), 0)\n                   '))));
    var tmp_103 = listOf('contentCategorySchemaUid');
    var tmp_104 = listOf_0([new ReplicationFieldMetaData('schemaName', -1, true), new ReplicationFieldMetaData('schemaUrl', -1, true), new ReplicationFieldMetaData('contentCategorySchemaLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('contentCategorySchemaMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('contentCategorySchemaLastChangedBy', 4, false), new ReplicationFieldMetaData('contentCategorySchemaLct', -5, false), new ReplicationFieldMetaData('contentCategorySchemaUid', -5, false)]);
    var tmp_105 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_106 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_107 = [Event_INSERT_getInstance()];
    var tmp_108 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_109 = ['REPLACE INTO ContentCategorySchema (contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct) VALUES( CAST(NEW.contentCategorySchemaUid AS BIGINT), NEW.schemaName, NEW.schemaUrl, CAST(NEW.contentCategorySchemaLocalChangeSeqNum AS BIGINT), CAST(NEW.contentCategorySchemaMasterChangeSeqNum AS BIGINT), NEW.contentCategorySchemaLastChangedBy, CAST(NEW.contentCategorySchemaLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$125 = ['INSERT INTO ContentCategorySchema (contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct) VALUES( CAST(NEW.contentCategorySchemaUid AS BIGINT), NEW.schemaName, NEW.schemaUrl, CAST(NEW.contentCategorySchemaLocalChangeSeqNum AS BIGINT), CAST(NEW.contentCategorySchemaMasterChangeSeqNum AS BIGINT), NEW.contentCategorySchemaLastChangedBy, CAST(NEW.contentCategorySchemaLct AS BIGINT))  ON CONFLICT(contentCategorySchemaUid)  DO UPDATE SET schemaName = NEW.schemaName, schemaUrl = NEW.schemaUrl, contentCategorySchemaLocalChangeSeqNum = NEW.contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum = NEW.contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy = NEW.contentCategorySchemaLastChangedBy, contentCategorySchemaLct = NEW.contentCategorySchemaLct '];
    var tmp_110 = to(2, new ReplicationEntityMetaData(2, 'ContentCategorySchema', 'ContentCategorySchema_ReceiveView', tmp_103, 'contentCategorySchemaLct', tmp_104, 1000, tmp_105, listOf(new Trigger('contentcategoryschema_remote_insert', tmp_106, tmp_107, tmp_108, tmp_109, tmp$ret$125, 'SELECT \n                   CAST(NEW.contentCategorySchemaLct AS BIGINT) >\n                       COALESCE((SELECT ContentCategorySchema_Existing.contentCategorySchemaLct\n                                   FROM ContentCategorySchema ContentCategorySchema_Existing\n                                  WHERE ContentCategorySchema_Existing.contentCategorySchemaUid = NEW.contentCategorySchemaUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.contentCategorySchemaLct AS BIGINT) >\n                       COALESCE((SELECT ContentCategorySchema_Existing.contentCategorySchemaLct\n                                   FROM ContentCategorySchema ContentCategorySchema_Existing\n                                  WHERE ContentCategorySchema_Existing.contentCategorySchemaUid = NEW.contentCategorySchemaUid), 0)\n                   '))));
    var tmp_111 = listOf('contentCategoryUid');
    var tmp_112 = listOf_0([new ReplicationFieldMetaData('ctnCatContentCategorySchemaUid', -5, false), new ReplicationFieldMetaData('name', -1, true), new ReplicationFieldMetaData('contentCategoryLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('contentCategoryMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('contentCategoryLastChangedBy', 4, false), new ReplicationFieldMetaData('contentCategoryLct', -5, false), new ReplicationFieldMetaData('contentCategoryUid', -5, false)]);
    var tmp_113 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_114 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_115 = [Event_INSERT_getInstance()];
    var tmp_116 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_117 = ['REPLACE INTO ContentCategory (contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct) VALUES( CAST(NEW.contentCategoryUid AS BIGINT), CAST(NEW.ctnCatContentCategorySchemaUid AS BIGINT), NEW.name, CAST(NEW.contentCategoryLocalChangeSeqNum AS BIGINT), CAST(NEW.contentCategoryMasterChangeSeqNum AS BIGINT), NEW.contentCategoryLastChangedBy, CAST(NEW.contentCategoryLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$134 = ['INSERT INTO ContentCategory (contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct) VALUES( CAST(NEW.contentCategoryUid AS BIGINT), CAST(NEW.ctnCatContentCategorySchemaUid AS BIGINT), NEW.name, CAST(NEW.contentCategoryLocalChangeSeqNum AS BIGINT), CAST(NEW.contentCategoryMasterChangeSeqNum AS BIGINT), NEW.contentCategoryLastChangedBy, CAST(NEW.contentCategoryLct AS BIGINT))  ON CONFLICT(contentCategoryUid)  DO UPDATE SET ctnCatContentCategorySchemaUid = NEW.ctnCatContentCategorySchemaUid, name = NEW.name, contentCategoryLocalChangeSeqNum = NEW.contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum = NEW.contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy = NEW.contentCategoryLastChangedBy, contentCategoryLct = NEW.contentCategoryLct '];
    var tmp_118 = to(1, new ReplicationEntityMetaData(1, 'ContentCategory', 'ContentCategory_ReceiveView', tmp_111, 'contentCategoryLct', tmp_112, 1000, tmp_113, listOf(new Trigger('contentcategory_remote_insert', tmp_114, tmp_115, tmp_116, tmp_117, tmp$ret$134, 'SELECT \n                   CAST(NEW.contentCategoryLct AS BIGINT) >\n                       COALESCE((SELECT ContentCategory_Existing.contentCategoryLct\n                                   FROM ContentCategory ContentCategory_Existing\n                                  WHERE ContentCategory_Existing.contentCategoryUid = NEW.contentCategoryUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.contentCategoryLct AS BIGINT) >\n                       COALESCE((SELECT ContentCategory_Existing.contentCategoryLct\n                                   FROM ContentCategory ContentCategory_Existing\n                                  WHERE ContentCategory_Existing.contentCategoryUid = NEW.contentCategoryUid), 0)\n                   '))));
    var tmp_119 = listOf('langUid');
    var tmp_120 = listOf_0([new ReplicationFieldMetaData('name', -1, true), new ReplicationFieldMetaData('iso_639_1_standard', -1, true), new ReplicationFieldMetaData('iso_639_2_standard', -1, true), new ReplicationFieldMetaData('iso_639_3_standard', -1, true), new ReplicationFieldMetaData('Language_Type', -1, true), new ReplicationFieldMetaData('languageActive', 16, false), new ReplicationFieldMetaData('langLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('langMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('langLastChangedBy', 4, false), new ReplicationFieldMetaData('langLct', -5, false), new ReplicationFieldMetaData('langUid', -5, false)]);
    var tmp_121 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_122 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_123 = [Event_INSERT_getInstance()];
    var tmp_124 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_125 = ['REPLACE INTO Language (langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct) VALUES( CAST(NEW.langUid AS BIGINT), NEW.name, NEW.iso_639_1_standard, NEW.iso_639_2_standard, NEW.iso_639_3_standard, NEW.Language_Type, NEW.languageActive, CAST(NEW.langLocalChangeSeqNum AS BIGINT), CAST(NEW.langMasterChangeSeqNum AS BIGINT), NEW.langLastChangedBy, CAST(NEW.langLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$143 = ['INSERT INTO Language (langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct) VALUES( CAST(NEW.langUid AS BIGINT), NEW.name, NEW.iso_639_1_standard, NEW.iso_639_2_standard, NEW.iso_639_3_standard, NEW.Language_Type, NEW.languageActive, CAST(NEW.langLocalChangeSeqNum AS BIGINT), CAST(NEW.langMasterChangeSeqNum AS BIGINT), NEW.langLastChangedBy, CAST(NEW.langLct AS BIGINT))  ON CONFLICT(langUid)  DO UPDATE SET name = NEW.name, iso_639_1_standard = NEW.iso_639_1_standard, iso_639_2_standard = NEW.iso_639_2_standard, iso_639_3_standard = NEW.iso_639_3_standard, Language_Type = NEW.Language_Type, languageActive = NEW.languageActive, langLocalChangeSeqNum = NEW.langLocalChangeSeqNum, langMasterChangeSeqNum = NEW.langMasterChangeSeqNum, langLastChangedBy = NEW.langLastChangedBy, langLct = NEW.langLct '];
    var tmp_126 = to(13, new ReplicationEntityMetaData(13, 'Language', 'Language_ReceiveView', tmp_119, 'langLct', tmp_120, 1000, tmp_121, listOf(new Trigger('language_remote_insert', tmp_122, tmp_123, tmp_124, tmp_125, tmp$ret$143, 'SELECT \n                   CAST(NEW.langLct AS BIGINT) >\n                       COALESCE((SELECT Language_Existing.langLct\n                                   FROM Language Language_Existing\n                                  WHERE Language_Existing.langUid = NEW.langUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.langLct AS BIGINT) >\n                       COALESCE((SELECT Language_Existing.langLct\n                                   FROM Language Language_Existing\n                                  WHERE Language_Existing.langUid = NEW.langUid), 0)\n                   '))));
    var tmp_127 = listOf('langVariantUid');
    var tmp_128 = listOf_0([new ReplicationFieldMetaData('langUid', -5, false), new ReplicationFieldMetaData('countryCode', -1, true), new ReplicationFieldMetaData('name', -1, true), new ReplicationFieldMetaData('langVariantLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('langVariantMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('langVariantLastChangedBy', 4, false), new ReplicationFieldMetaData('langVariantLct', -5, false), new ReplicationFieldMetaData('langVariantUid', -5, false)]);
    var tmp_129 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_130 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_131 = [Event_INSERT_getInstance()];
    var tmp_132 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_133 = ['REPLACE INTO LanguageVariant (langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct) VALUES( CAST(NEW.langVariantUid AS BIGINT), CAST(NEW.langUid AS BIGINT), NEW.countryCode, NEW.name, CAST(NEW.langVariantLocalChangeSeqNum AS BIGINT), CAST(NEW.langVariantMasterChangeSeqNum AS BIGINT), NEW.langVariantLastChangedBy, CAST(NEW.langVariantLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$152 = ['INSERT INTO LanguageVariant (langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct) VALUES( CAST(NEW.langVariantUid AS BIGINT), CAST(NEW.langUid AS BIGINT), NEW.countryCode, NEW.name, CAST(NEW.langVariantLocalChangeSeqNum AS BIGINT), CAST(NEW.langVariantMasterChangeSeqNum AS BIGINT), NEW.langVariantLastChangedBy, CAST(NEW.langVariantLct AS BIGINT))  ON CONFLICT(langVariantUid)  DO UPDATE SET langUid = NEW.langUid, countryCode = NEW.countryCode, name = NEW.name, langVariantLocalChangeSeqNum = NEW.langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum = NEW.langVariantMasterChangeSeqNum, langVariantLastChangedBy = NEW.langVariantLastChangedBy, langVariantLct = NEW.langVariantLct '];
    var tmp_134 = to(10, new ReplicationEntityMetaData(10, 'LanguageVariant', 'LanguageVariant_ReceiveView', tmp_127, 'langVariantLct', tmp_128, 1000, tmp_129, listOf(new Trigger('languagevariant_remote_insert', tmp_130, tmp_131, tmp_132, tmp_133, tmp$ret$152, 'SELECT \n                   CAST(NEW.langVariantLct AS BIGINT) >\n                       COALESCE((SELECT LanguageVariant_Existing.langVariantLct\n                                   FROM LanguageVariant LanguageVariant_Existing\n                                  WHERE LanguageVariant_Existing.langVariantUid = NEW.langVariantUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.langVariantLct AS BIGINT) >\n                       COALESCE((SELECT LanguageVariant_Existing.langVariantLct\n                                   FROM LanguageVariant LanguageVariant_Existing\n                                  WHERE LanguageVariant_Existing.langVariantUid = NEW.langVariantUid), 0)\n                   '))));
    var tmp_135 = listOf('groupUid');
    var tmp_136 = listOf_0([new ReplicationFieldMetaData('groupMasterCsn', -5, false), new ReplicationFieldMetaData('groupLocalCsn', -5, false), new ReplicationFieldMetaData('groupLastChangedBy', 4, false), new ReplicationFieldMetaData('groupLct', -5, false), new ReplicationFieldMetaData('groupName', -1, true), new ReplicationFieldMetaData('groupActive', 16, false), new ReplicationFieldMetaData('personGroupFlag', 4, false), new ReplicationFieldMetaData('groupUid', -5, false)]);
    var tmp_137 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_138 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_139 = [Event_INSERT_getInstance()];
    var tmp_140 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_141 = ['REPLACE INTO PersonGroup (groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES( CAST(NEW.groupUid AS BIGINT), CAST(NEW.groupMasterCsn AS BIGINT), CAST(NEW.groupLocalCsn AS BIGINT), NEW.groupLastChangedBy, CAST(NEW.groupLct AS BIGINT), NEW.groupName, NEW.groupActive, NEW.personGroupFlag) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$161 = ['INSERT INTO PersonGroup (groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES( CAST(NEW.groupUid AS BIGINT), CAST(NEW.groupMasterCsn AS BIGINT), CAST(NEW.groupLocalCsn AS BIGINT), NEW.groupLastChangedBy, CAST(NEW.groupLct AS BIGINT), NEW.groupName, NEW.groupActive, NEW.personGroupFlag)  ON CONFLICT(groupUid)  DO UPDATE SET groupMasterCsn = NEW.groupMasterCsn, groupLocalCsn = NEW.groupLocalCsn, groupLastChangedBy = NEW.groupLastChangedBy, groupLct = NEW.groupLct, groupName = NEW.groupName, groupActive = NEW.groupActive, personGroupFlag = NEW.personGroupFlag '];
    var tmp_142 = to(43, new ReplicationEntityMetaData(43, 'PersonGroup', 'PersonGroup_ReceiveView', tmp_135, 'groupLct', tmp_136, 1000, tmp_137, listOf(new Trigger('persongroup_remote_insert', tmp_138, tmp_139, tmp_140, tmp_141, tmp$ret$161, 'SELECT \n                   CAST(NEW.groupLct AS BIGINT) >\n                       COALESCE((SELECT PersonGroup_Existing.groupLct\n                                   FROM PersonGroup PersonGroup_Existing\n                                  WHERE PersonGroup_Existing.groupUid = NEW.groupUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.groupLct AS BIGINT) >\n                       COALESCE((SELECT PersonGroup_Existing.groupLct\n                                   FROM PersonGroup PersonGroup_Existing\n                                  WHERE PersonGroup_Existing.groupUid = NEW.groupUid), 0)\n                   '))));
    var tmp_143 = listOf('groupMemberUid');
    var tmp_144 = listOf_0([new ReplicationFieldMetaData('groupMemberActive', 16, false), new ReplicationFieldMetaData('groupMemberPersonUid', -5, false), new ReplicationFieldMetaData('groupMemberGroupUid', -5, false), new ReplicationFieldMetaData('groupMemberMasterCsn', -5, false), new ReplicationFieldMetaData('groupMemberLocalCsn', -5, false), new ReplicationFieldMetaData('groupMemberLastChangedBy', 4, false), new ReplicationFieldMetaData('groupMemberLct', -5, false), new ReplicationFieldMetaData('groupMemberUid', -5, false)]);
    var tmp_145 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_146 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_147 = [Event_INSERT_getInstance()];
    var tmp_148 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_149 = ['REPLACE INTO PersonGroupMember (groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES( CAST(NEW.groupMemberUid AS BIGINT), NEW.groupMemberActive, CAST(NEW.groupMemberPersonUid AS BIGINT), CAST(NEW.groupMemberGroupUid AS BIGINT), CAST(NEW.groupMemberMasterCsn AS BIGINT), CAST(NEW.groupMemberLocalCsn AS BIGINT), NEW.groupMemberLastChangedBy, CAST(NEW.groupMemberLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$170 = ['INSERT INTO PersonGroupMember (groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES( CAST(NEW.groupMemberUid AS BIGINT), NEW.groupMemberActive, CAST(NEW.groupMemberPersonUid AS BIGINT), CAST(NEW.groupMemberGroupUid AS BIGINT), CAST(NEW.groupMemberMasterCsn AS BIGINT), CAST(NEW.groupMemberLocalCsn AS BIGINT), NEW.groupMemberLastChangedBy, CAST(NEW.groupMemberLct AS BIGINT))  ON CONFLICT(groupMemberUid)  DO UPDATE SET groupMemberActive = NEW.groupMemberActive, groupMemberPersonUid = NEW.groupMemberPersonUid, groupMemberGroupUid = NEW.groupMemberGroupUid, groupMemberMasterCsn = NEW.groupMemberMasterCsn, groupMemberLocalCsn = NEW.groupMemberLocalCsn, groupMemberLastChangedBy = NEW.groupMemberLastChangedBy, groupMemberLct = NEW.groupMemberLct '];
    var tmp_150 = to(44, new ReplicationEntityMetaData(44, 'PersonGroupMember', 'PersonGroupMember_ReceiveView', tmp_143, 'groupMemberLct', tmp_144, 1000, tmp_145, listOf(new Trigger('persongroupmember_remote_insert', tmp_146, tmp_147, tmp_148, tmp_149, tmp$ret$170, 'SELECT \n                   CAST(NEW.groupMemberLct AS BIGINT) >\n                       COALESCE((SELECT PersonGroupMember_Existing.groupMemberLct\n                                   FROM PersonGroupMember PersonGroupMember_Existing\n                                  WHERE PersonGroupMember_Existing.groupMemberUid = NEW.groupMemberUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.groupMemberLct AS BIGINT) >\n                       COALESCE((SELECT PersonGroupMember_Existing.groupMemberLct\n                                   FROM PersonGroupMember PersonGroupMember_Existing\n                                  WHERE PersonGroupMember_Existing.groupMemberUid = NEW.groupMemberUid), 0)\n                   '))));
    var tmp_151 = listOf('personPictureUid');
    var tmp_152 = listOf_0([new ReplicationFieldMetaData('personPictureLct', -5, false), new ReplicationFieldMetaData('personPictureUri', -1, true), new ReplicationFieldMetaData('personPictureThumbnailUri', -1, true), new ReplicationFieldMetaData('fileSize', 4, false), new ReplicationFieldMetaData('personPictureActive', 16, false), new ReplicationFieldMetaData('personPictureUid', -5, false)]);
    var tmp_153 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_154 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_155 = [Event_INSERT_getInstance()];
    var tmp_156 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_157 = ['REPLACE INTO PersonPicture (personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive) VALUES( CAST(NEW.personPictureUid AS BIGINT), CAST(NEW.personPictureLct AS BIGINT), NEW.personPictureUri, NEW.personPictureThumbnailUri, NEW.fileSize, NEW.personPictureActive) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$179 = ['INSERT INTO PersonPicture (personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive) VALUES( CAST(NEW.personPictureUid AS BIGINT), CAST(NEW.personPictureLct AS BIGINT), NEW.personPictureUri, NEW.personPictureThumbnailUri, NEW.fileSize, NEW.personPictureActive)  ON CONFLICT(personPictureUid)  DO UPDATE SET personPictureLct = NEW.personPictureLct, personPictureUri = NEW.personPictureUri, personPictureThumbnailUri = NEW.personPictureThumbnailUri, fileSize = NEW.fileSize, personPictureActive = NEW.personPictureActive '];
    var tmp_158 = to(50, new ReplicationEntityMetaData(50, 'PersonPicture', 'PersonPicture_ReceiveView', tmp_151, 'personPictureLct', tmp_152, 1000, tmp_153, listOf(new Trigger('personpicture_remote_insert', tmp_154, tmp_155, tmp_156, tmp_157, tmp$ret$179, 'SELECT \n                   CAST(NEW.personPictureLct AS BIGINT) >\n                       COALESCE((SELECT PersonPicture_Existing.personPictureLct\n                                   FROM PersonPicture PersonPicture_Existing\n                                  WHERE PersonPicture_Existing.personPictureUid = NEW.personPictureUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.personPictureLct AS BIGINT) >\n                       COALESCE((SELECT PersonPicture_Existing.personPictureLct\n                                   FROM PersonPicture PersonPicture_Existing\n                                  WHERE PersonPicture_Existing.personPictureUid = NEW.personPictureUid), 0)\n                   '))));
    var tmp_159 = listOf('verbUid');
    var tmp_160 = listOf_0([new ReplicationFieldMetaData('verbUid', -5, false), new ReplicationFieldMetaData('verbUrlId', -1, true), new ReplicationFieldMetaData('verbDeleted', 16, false), new ReplicationFieldMetaData('verbLct', -5, false)]);
    var tmp_161 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_162 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_163 = [Event_INSERT_getInstance()];
    var tmp_164 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_165 = ['REPLACE INTO VerbEntity (verbUid, verbUrlId, verbDeleted, verbLct) VALUES( CAST(NEW.verbUid AS BIGINT), NEW.verbUrlId, NEW.verbDeleted, CAST(NEW.verbLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$188 = ['INSERT INTO VerbEntity (verbUid, verbUrlId, verbDeleted, verbLct) VALUES( CAST(NEW.verbUid AS BIGINT), NEW.verbUrlId, NEW.verbDeleted, CAST(NEW.verbLct AS BIGINT))  ON CONFLICT(verbUid)  DO UPDATE SET verbUrlId = NEW.verbUrlId, verbDeleted = NEW.verbDeleted, verbLct = NEW.verbLct '];
    var tmp_166 = to(62, new ReplicationEntityMetaData(62, 'VerbEntity', 'VerbEntity_ReceiveView', tmp_159, 'verbLct', tmp_160, 1000, tmp_161, listOf(new Trigger('verbentity_remote_insert', tmp_162, tmp_163, tmp_164, tmp_165, tmp$ret$188, 'SELECT \n                   CAST(NEW.verbLct AS BIGINT) >\n                       COALESCE((SELECT VerbEntity_Existing.verbLct\n                                   FROM VerbEntity VerbEntity_Existing\n                                  WHERE VerbEntity_Existing.verbUid = NEW.verbUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.verbLct AS BIGINT) >\n                       COALESCE((SELECT VerbEntity_Existing.verbLct\n                                   FROM VerbEntity VerbEntity_Existing\n                                  WHERE VerbEntity_Existing.verbUid = NEW.verbUid), 0)\n                   '))));
    var tmp_167 = listOf('actUid');
    var tmp_168 = listOf_0([new ReplicationFieldMetaData('actUid', -5, false), new ReplicationFieldMetaData('actIdIri', -1, true), new ReplicationFieldMetaData('actType', -1, true), new ReplicationFieldMetaData('actMoreInfo', -1, true), new ReplicationFieldMetaData('actInteractionType', 4, false), new ReplicationFieldMetaData('actCorrectResponsePatterns', -1, true), new ReplicationFieldMetaData('actLct', -5, false)]);
    var tmp_169 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_170 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_171 = [Event_INSERT_getInstance()];
    var tmp_172 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_173 = ['REPLACE INTO ActivityEntity (actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) VALUES( CAST(NEW.actUid AS BIGINT), NEW.actIdIri, NEW.actType, NEW.actMoreInfo, NEW.actInteractionType, NEW.actCorrectResponsePatterns, CAST(NEW.actLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$197 = ['INSERT INTO ActivityEntity (actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) VALUES( CAST(NEW.actUid AS BIGINT), NEW.actIdIri, NEW.actType, NEW.actMoreInfo, NEW.actInteractionType, NEW.actCorrectResponsePatterns, CAST(NEW.actLct AS BIGINT))  ON CONFLICT(actUid)  DO UPDATE SET actIdIri = NEW.actIdIri, actType = NEW.actType, actMoreInfo = NEW.actMoreInfo, actInteractionType = NEW.actInteractionType, actCorrectResponsePatterns = NEW.actCorrectResponsePatterns, actLct = NEW.actLct '];
    var tmp_174 = to(64, new ReplicationEntityMetaData(64, 'ActivityEntity', 'ActivityEntity_ReceiveView', tmp_167, 'actLct', tmp_168, 1000, tmp_169, listOf(new Trigger('activityentity_remote_insert', tmp_170, tmp_171, tmp_172, tmp_173, tmp$ret$197, 'SELECT \n                   CAST(NEW.actLct AS BIGINT) >\n                       COALESCE((SELECT ActivityEntity_Existing.actLct\n                                   FROM ActivityEntity ActivityEntity_Existing\n                                  WHERE ActivityEntity_Existing.actUid = NEW.actUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.actLct AS BIGINT) >\n                       COALESCE((SELECT ActivityEntity_Existing.actLct\n                                   FROM ActivityEntity ActivityEntity_Existing\n                                  WHERE ActivityEntity_Existing.actUid = NEW.actUid), 0)\n                   '))));
    var tmp_175 = listOf_0(['statementIdHi', 'statementIdLo']);
    var tmp_176 = listOf_0([new ReplicationFieldMetaData('statementIdHi', -5, false), new ReplicationFieldMetaData('statementIdLo', -5, false), new ReplicationFieldMetaData('statementActorPersonUid', -5, false), new ReplicationFieldMetaData('statementVerbUid', -5, false), new ReplicationFieldMetaData('statementObjectType', 4, false), new ReplicationFieldMetaData('statementObjectUid1', -5, false), new ReplicationFieldMetaData('statementObjectUid2', -5, false), new ReplicationFieldMetaData('statementActorUid', -5, false), new ReplicationFieldMetaData('authorityActorUid', -5, false), new ReplicationFieldMetaData('teamUid', -5, false), new ReplicationFieldMetaData('resultCompletion', 16, true), new ReplicationFieldMetaData('resultSuccess', 16, true), new ReplicationFieldMetaData('resultScoreScaled', 6, true), new ReplicationFieldMetaData('resultScoreRaw', 6, true), new ReplicationFieldMetaData('resultScoreMin', 6, true), new ReplicationFieldMetaData('resultScoreMax', 6, true), new ReplicationFieldMetaData('resultDuration', -5, true), new ReplicationFieldMetaData('resultResponse', -1, true), new ReplicationFieldMetaData('timestamp', -5, false), new ReplicationFieldMetaData('stored', -5, false), new ReplicationFieldMetaData('contextRegistrationHi', -5, false), new ReplicationFieldMetaData('contextRegistrationLo', -5, false), new ReplicationFieldMetaData('contextPlatform', -1, true), new ReplicationFieldMetaData('contextStatementRefIdHi', -5, false), new ReplicationFieldMetaData('contextStatementRefIdLo', -5, false), new ReplicationFieldMetaData('contextInstructorActorUid', -5, false), new ReplicationFieldMetaData('statementLct', -5, false), new ReplicationFieldMetaData('extensionProgress', 4, true), new ReplicationFieldMetaData('completionOrProgress', 16, false), new ReplicationFieldMetaData('statementContentEntryUid', -5, false), new ReplicationFieldMetaData('statementLearnerGroupUid', -5, false), new ReplicationFieldMetaData('statementClazzUid', -5, false), new ReplicationFieldMetaData('statementCbUid', -5, false), new ReplicationFieldMetaData('statementDoorNode', -5, false), new ReplicationFieldMetaData('isSubStatement', 16, false)]);
    var tmp_177 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_178 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_179 = [Event_INSERT_getInstance()];
    var tmp_180 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_181 = ['REPLACE INTO StatementEntity (statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement) VALUES( CAST(NEW.statementIdHi AS BIGINT), CAST(NEW.statementIdLo AS BIGINT), CAST(NEW.statementActorPersonUid AS BIGINT), CAST(NEW.statementVerbUid AS BIGINT), NEW.statementObjectType, CAST(NEW.statementObjectUid1 AS BIGINT), CAST(NEW.statementObjectUid2 AS BIGINT), CAST(NEW.statementActorUid AS BIGINT), CAST(NEW.authorityActorUid AS BIGINT), CAST(NEW.teamUid AS BIGINT), NEW.resultCompletion, NEW.resultSuccess, NEW.resultScoreScaled, NEW.resultScoreRaw, NEW.resultScoreMin, NEW.resultScoreMax, NEW.resultDuration, NEW.resultResponse, CAST(NEW.timestamp AS BIGINT), CAST(NEW.stored AS BIGINT), CAST(NEW.contextRegistrationHi AS BIGINT), CAST(NEW.contextRegistrationLo AS BIGINT), NEW.contextPlatform, CAST(NEW.contextStatementRefIdHi AS BIGINT), CAST(NEW.contextStatementRefIdLo AS BIGINT), CAST(NEW.contextInstructorActorUid AS BIGINT), CAST(NEW.statementLct AS BIGINT), NEW.extensionProgress, NEW.completionOrProgress, CAST(NEW.statementContentEntryUid AS BIGINT), CAST(NEW.statementLearnerGroupUid AS BIGINT), CAST(NEW.statementClazzUid AS BIGINT), CAST(NEW.statementCbUid AS BIGINT), CAST(NEW.statementDoorNode AS BIGINT), NEW.isSubStatement) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$206 = ['INSERT INTO StatementEntity (statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement) VALUES( CAST(NEW.statementIdHi AS BIGINT), CAST(NEW.statementIdLo AS BIGINT), CAST(NEW.statementActorPersonUid AS BIGINT), CAST(NEW.statementVerbUid AS BIGINT), NEW.statementObjectType, CAST(NEW.statementObjectUid1 AS BIGINT), CAST(NEW.statementObjectUid2 AS BIGINT), CAST(NEW.statementActorUid AS BIGINT), CAST(NEW.authorityActorUid AS BIGINT), CAST(NEW.teamUid AS BIGINT), NEW.resultCompletion, NEW.resultSuccess, NEW.resultScoreScaled, NEW.resultScoreRaw, NEW.resultScoreMin, NEW.resultScoreMax, NEW.resultDuration, NEW.resultResponse, CAST(NEW.timestamp AS BIGINT), CAST(NEW.stored AS BIGINT), CAST(NEW.contextRegistrationHi AS BIGINT), CAST(NEW.contextRegistrationLo AS BIGINT), NEW.contextPlatform, CAST(NEW.contextStatementRefIdHi AS BIGINT), CAST(NEW.contextStatementRefIdLo AS BIGINT), CAST(NEW.contextInstructorActorUid AS BIGINT), CAST(NEW.statementLct AS BIGINT), NEW.extensionProgress, NEW.completionOrProgress, CAST(NEW.statementContentEntryUid AS BIGINT), CAST(NEW.statementLearnerGroupUid AS BIGINT), CAST(NEW.statementClazzUid AS BIGINT), CAST(NEW.statementCbUid AS BIGINT), CAST(NEW.statementDoorNode AS BIGINT), NEW.isSubStatement)  ON CONFLICT(statementIdHi, statementIdLo)  DO UPDATE SET statementActorPersonUid = NEW.statementActorPersonUid, statementVerbUid = NEW.statementVerbUid, statementObjectType = NEW.statementObjectType, statementObjectUid1 = NEW.statementObjectUid1, statementObjectUid2 = NEW.statementObjectUid2, statementActorUid = NEW.statementActorUid, authorityActorUid = NEW.authorityActorUid, teamUid = NEW.teamUid, resultCompletion = NEW.resultCompletion, resultSuccess = NEW.resultSuccess, resultScoreScaled = NEW.resultScoreScaled, resultScoreRaw = NEW.resultScoreRaw, resultScoreMin = NEW.resultScoreMin, resultScoreMax = NEW.resultScoreMax, resultDuration = NEW.resultDuration, resultResponse = NEW.resultResponse, timestamp = NEW.timestamp, stored = NEW.stored, contextRegistrationHi = NEW.contextRegistrationHi, contextRegistrationLo = NEW.contextRegistrationLo, contextPlatform = NEW.contextPlatform, contextStatementRefIdHi = NEW.contextStatementRefIdHi, contextStatementRefIdLo = NEW.contextStatementRefIdLo, contextInstructorActorUid = NEW.contextInstructorActorUid, statementLct = NEW.statementLct, extensionProgress = NEW.extensionProgress, completionOrProgress = NEW.completionOrProgress, statementContentEntryUid = NEW.statementContentEntryUid, statementLearnerGroupUid = NEW.statementLearnerGroupUid, statementClazzUid = NEW.statementClazzUid, statementCbUid = NEW.statementCbUid, statementDoorNode = NEW.statementDoorNode, isSubStatement = NEW.isSubStatement '];
    var tmp_182 = to(60, new ReplicationEntityMetaData(60, 'StatementEntity', 'StatementEntity_ReceiveView', tmp_175, 'statementLct', tmp_176, 1000, tmp_177, listOf(new Trigger('statemententity_remote_insert', tmp_178, tmp_179, tmp_180, tmp_181, tmp$ret$206, 'SELECT \n                   CAST(NEW.statementLct AS BIGINT) >\n                       COALESCE((SELECT StatementEntity_Existing.statementLct\n                                   FROM StatementEntity StatementEntity_Existing\n                                  WHERE StatementEntity_Existing.statementIdHi = NEW.statementIdHi AND StatementEntity_Existing.statementIdLo = NEW.statementIdLo), 0)\n                   ', 'SELECT \n                   CAST(NEW.statementLct AS BIGINT) >\n                       COALESCE((SELECT StatementEntity_Existing.statementLct\n                                   FROM StatementEntity StatementEntity_Existing\n                                  WHERE StatementEntity_Existing.statementIdHi = NEW.statementIdHi AND StatementEntity_Existing.statementIdLo = NEW.statementIdLo), 0)\n                   '))));
    var tmp_183 = listOf('actorUid');
    var tmp_184 = listOf_0([new ReplicationFieldMetaData('actorPersonUid', -5, false), new ReplicationFieldMetaData('actorName', -1, true), new ReplicationFieldMetaData('actorMbox', -1, true), new ReplicationFieldMetaData('actorMbox_sha1sum', -1, true), new ReplicationFieldMetaData('actorOpenid', -1, true), new ReplicationFieldMetaData('actorAccountName', -1, true), new ReplicationFieldMetaData('actorAccountHomePage', -1, true), new ReplicationFieldMetaData('actorEtag', -5, false), new ReplicationFieldMetaData('actorLct', -5, false), new ReplicationFieldMetaData('actorObjectType', 4, false), new ReplicationFieldMetaData('actorUid', -5, false)]);
    var tmp_185 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_186 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_187 = [Event_INSERT_getInstance()];
    var tmp_188 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_189 = ['REPLACE INTO ActorEntity (actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType) VALUES( CAST(NEW.actorUid AS BIGINT), CAST(NEW.actorPersonUid AS BIGINT), NEW.actorName, NEW.actorMbox, NEW.actorMbox_sha1sum, NEW.actorOpenid, NEW.actorAccountName, NEW.actorAccountHomePage, CAST(NEW.actorEtag AS BIGINT), CAST(NEW.actorLct AS BIGINT), NEW.actorObjectType) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$215 = ['INSERT INTO ActorEntity (actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType) VALUES( CAST(NEW.actorUid AS BIGINT), CAST(NEW.actorPersonUid AS BIGINT), NEW.actorName, NEW.actorMbox, NEW.actorMbox_sha1sum, NEW.actorOpenid, NEW.actorAccountName, NEW.actorAccountHomePage, CAST(NEW.actorEtag AS BIGINT), CAST(NEW.actorLct AS BIGINT), NEW.actorObjectType)  ON CONFLICT(actorUid)  DO UPDATE SET actorPersonUid = NEW.actorPersonUid, actorName = NEW.actorName, actorMbox = NEW.actorMbox, actorMbox_sha1sum = NEW.actorMbox_sha1sum, actorOpenid = NEW.actorOpenid, actorAccountName = NEW.actorAccountName, actorAccountHomePage = NEW.actorAccountHomePage, actorEtag = NEW.actorEtag, actorLct = NEW.actorLct, actorObjectType = NEW.actorObjectType '];
    var tmp_190 = to(68, new ReplicationEntityMetaData(68, 'ActorEntity', 'ActorEntity_ReceiveView', tmp_183, 'actorEtag', tmp_184, 1000, tmp_185, listOf(new Trigger('agententity_remote_insert', tmp_186, tmp_187, tmp_188, tmp_189, tmp$ret$215, 'SELECT \n                   CAST(NEW.actorLct AS BIGINT) >\n                       COALESCE((SELECT ActorEntity_Existing.actorLct\n                                   FROM ActorEntity ActorEntity_Existing\n                                  WHERE ActorEntity_Existing.actorUid = NEW.actorUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.actorLct AS BIGINT) >\n                       COALESCE((SELECT ActorEntity_Existing.actorLct\n                                   FROM ActorEntity ActorEntity_Existing\n                                  WHERE ActorEntity_Existing.actorUid = NEW.actorUid), 0)\n                   '))));
    var tmp_191 = listOf('commentsUid');
    var tmp_192 = listOf_0([new ReplicationFieldMetaData('commentsText', -1, true), new ReplicationFieldMetaData('commentsEntityUid', -5, false), new ReplicationFieldMetaData('commentsStatus', 4, false), new ReplicationFieldMetaData('commentsFromPersonUid', -5, false), new ReplicationFieldMetaData('commentsForSubmitterUid', -5, false), new ReplicationFieldMetaData('commentsFromSubmitterUid', -5, false), new ReplicationFieldMetaData('commentsFlagged', 16, false), new ReplicationFieldMetaData('commentsDeleted', 16, false), new ReplicationFieldMetaData('commentsDateTimeAdded', -5, false), new ReplicationFieldMetaData('commentsLct', -5, false), new ReplicationFieldMetaData('commentsUid', -5, false)]);
    var tmp_193 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_194 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_195 = [Event_INSERT_getInstance()];
    var tmp_196 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_197 = ['REPLACE INTO Comments (commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct) VALUES( CAST(NEW.commentsUid AS BIGINT), NEW.commentsText, CAST(NEW.commentsEntityUid AS BIGINT), NEW.commentsStatus, CAST(NEW.commentsFromPersonUid AS BIGINT), CAST(NEW.commentsForSubmitterUid AS BIGINT), CAST(NEW.commentsFromSubmitterUid AS BIGINT), NEW.commentsFlagged, NEW.commentsDeleted, CAST(NEW.commentsDateTimeAdded AS BIGINT), CAST(NEW.commentsLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$224 = ['INSERT INTO Comments (commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct) VALUES( CAST(NEW.commentsUid AS BIGINT), NEW.commentsText, CAST(NEW.commentsEntityUid AS BIGINT), NEW.commentsStatus, CAST(NEW.commentsFromPersonUid AS BIGINT), CAST(NEW.commentsForSubmitterUid AS BIGINT), CAST(NEW.commentsFromSubmitterUid AS BIGINT), NEW.commentsFlagged, NEW.commentsDeleted, CAST(NEW.commentsDateTimeAdded AS BIGINT), CAST(NEW.commentsLct AS BIGINT))  ON CONFLICT(commentsUid)  DO UPDATE SET commentsText = NEW.commentsText, commentsEntityUid = NEW.commentsEntityUid, commentsStatus = NEW.commentsStatus, commentsFromPersonUid = NEW.commentsFromPersonUid, commentsForSubmitterUid = NEW.commentsForSubmitterUid, commentsFromSubmitterUid = NEW.commentsFromSubmitterUid, commentsFlagged = NEW.commentsFlagged, commentsDeleted = NEW.commentsDeleted, commentsDateTimeAdded = NEW.commentsDateTimeAdded, commentsLct = NEW.commentsLct '];
    var tmp_198 = to(208, new ReplicationEntityMetaData(208, 'Comments', 'Comments_ReceiveView', tmp_191, 'commentsLct', tmp_192, 1000, tmp_193, listOf(new Trigger('comments_remote_insert', tmp_194, tmp_195, tmp_196, tmp_197, tmp$ret$224, 'SELECT \n                   CAST(NEW.commentsLct AS BIGINT) >\n                       COALESCE((SELECT Comments_Existing.commentsLct\n                                   FROM Comments Comments_Existing\n                                  WHERE Comments_Existing.commentsUid = NEW.commentsUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.commentsLct AS BIGINT) >\n                       COALESCE((SELECT Comments_Existing.commentsLct\n                                   FROM Comments Comments_Existing\n                                  WHERE Comments_Existing.commentsUid = NEW.commentsUid), 0)\n                   '))));
    var tmp_199 = listOf('reportUid');
    var tmp_200 = listOf_0([new ReplicationFieldMetaData('reportOwnerUid', -5, false), new ReplicationFieldMetaData('xAxis', 4, false), new ReplicationFieldMetaData('reportDateRangeSelection', 4, false), new ReplicationFieldMetaData('fromDate', -5, false), new ReplicationFieldMetaData('fromRelTo', 4, false), new ReplicationFieldMetaData('fromRelOffSet', 4, false), new ReplicationFieldMetaData('fromRelUnit', 4, false), new ReplicationFieldMetaData('toDate', -5, false), new ReplicationFieldMetaData('toRelTo', 4, false), new ReplicationFieldMetaData('toRelOffSet', 4, false), new ReplicationFieldMetaData('toRelUnit', 4, false), new ReplicationFieldMetaData('reportTitle', -1, true), new ReplicationFieldMetaData('reportDescription', -1, true), new ReplicationFieldMetaData('reportSeries', -1, true), new ReplicationFieldMetaData('reportInactive', 16, false), new ReplicationFieldMetaData('isTemplate', 16, false), new ReplicationFieldMetaData('priority', 4, false), new ReplicationFieldMetaData('reportTitleId', 4, false), new ReplicationFieldMetaData('reportDescId', 4, false), new ReplicationFieldMetaData('reportMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('reportLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('reportLastChangedBy', 4, false), new ReplicationFieldMetaData('reportLct', -5, false), new ReplicationFieldMetaData('reportUid', -5, false)]);
    var tmp_201 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_202 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_203 = [Event_INSERT_getInstance()];
    var tmp_204 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_205 = ['REPLACE INTO Report (reportUid, reportOwnerUid, xAxis, reportDateRangeSelection, fromDate, fromRelTo, fromRelOffSet, fromRelUnit, toDate, toRelTo, toRelOffSet, toRelUnit, reportTitle, reportDescription, reportSeries, reportInactive, isTemplate, priority, reportTitleId, reportDescId, reportMasterChangeSeqNum, reportLocalChangeSeqNum, reportLastChangedBy, reportLct) VALUES( CAST(NEW.reportUid AS BIGINT), CAST(NEW.reportOwnerUid AS BIGINT), NEW.xAxis, NEW.reportDateRangeSelection, CAST(NEW.fromDate AS BIGINT), NEW.fromRelTo, NEW.fromRelOffSet, NEW.fromRelUnit, CAST(NEW.toDate AS BIGINT), NEW.toRelTo, NEW.toRelOffSet, NEW.toRelUnit, NEW.reportTitle, NEW.reportDescription, NEW.reportSeries, NEW.reportInactive, NEW.isTemplate, NEW.priority, NEW.reportTitleId, NEW.reportDescId, CAST(NEW.reportMasterChangeSeqNum AS BIGINT), CAST(NEW.reportLocalChangeSeqNum AS BIGINT), NEW.reportLastChangedBy, CAST(NEW.reportLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$233 = ['INSERT INTO Report (reportUid, reportOwnerUid, xAxis, reportDateRangeSelection, fromDate, fromRelTo, fromRelOffSet, fromRelUnit, toDate, toRelTo, toRelOffSet, toRelUnit, reportTitle, reportDescription, reportSeries, reportInactive, isTemplate, priority, reportTitleId, reportDescId, reportMasterChangeSeqNum, reportLocalChangeSeqNum, reportLastChangedBy, reportLct) VALUES( CAST(NEW.reportUid AS BIGINT), CAST(NEW.reportOwnerUid AS BIGINT), NEW.xAxis, NEW.reportDateRangeSelection, CAST(NEW.fromDate AS BIGINT), NEW.fromRelTo, NEW.fromRelOffSet, NEW.fromRelUnit, CAST(NEW.toDate AS BIGINT), NEW.toRelTo, NEW.toRelOffSet, NEW.toRelUnit, NEW.reportTitle, NEW.reportDescription, NEW.reportSeries, NEW.reportInactive, NEW.isTemplate, NEW.priority, NEW.reportTitleId, NEW.reportDescId, CAST(NEW.reportMasterChangeSeqNum AS BIGINT), CAST(NEW.reportLocalChangeSeqNum AS BIGINT), NEW.reportLastChangedBy, CAST(NEW.reportLct AS BIGINT))  ON CONFLICT(reportUid)  DO UPDATE SET reportOwnerUid = NEW.reportOwnerUid, xAxis = NEW.xAxis, reportDateRangeSelection = NEW.reportDateRangeSelection, fromDate = NEW.fromDate, fromRelTo = NEW.fromRelTo, fromRelOffSet = NEW.fromRelOffSet, fromRelUnit = NEW.fromRelUnit, toDate = NEW.toDate, toRelTo = NEW.toRelTo, toRelOffSet = NEW.toRelOffSet, toRelUnit = NEW.toRelUnit, reportTitle = NEW.reportTitle, reportDescription = NEW.reportDescription, reportSeries = NEW.reportSeries, reportInactive = NEW.reportInactive, isTemplate = NEW.isTemplate, priority = NEW.priority, reportTitleId = NEW.reportTitleId, reportDescId = NEW.reportDescId, reportMasterChangeSeqNum = NEW.reportMasterChangeSeqNum, reportLocalChangeSeqNum = NEW.reportLocalChangeSeqNum, reportLastChangedBy = NEW.reportLastChangedBy, reportLct = NEW.reportLct '];
    var tmp_206 = to(101, new ReplicationEntityMetaData(101, 'Report', 'Report_ReceiveView', tmp_199, 'reportLct', tmp_200, 1000, tmp_201, listOf(new Trigger('report_remote_insert', tmp_202, tmp_203, tmp_204, tmp_205, tmp$ret$233, 'SELECT \n                   CAST(NEW.reportLct AS BIGINT) >\n                       COALESCE((SELECT Report_Existing.reportLct\n                                   FROM Report Report_Existing\n                                  WHERE Report_Existing.reportUid = NEW.reportUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.reportLct AS BIGINT) >\n                       COALESCE((SELECT Report_Existing.reportLct\n                                   FROM Report Report_Existing\n                                  WHERE Report_Existing.reportUid = NEW.reportUid), 0)\n                   '))));
    var tmp_207 = listOf('siteUid');
    var tmp_208 = listOf_0([new ReplicationFieldMetaData('sitePcsn', -5, false), new ReplicationFieldMetaData('siteLcsn', -5, false), new ReplicationFieldMetaData('siteLcb', 4, false), new ReplicationFieldMetaData('siteLct', -5, false), new ReplicationFieldMetaData('siteName', -1, true), new ReplicationFieldMetaData('guestLogin', 16, false), new ReplicationFieldMetaData('registrationAllowed', 16, false), new ReplicationFieldMetaData('authSalt', -1, true), new ReplicationFieldMetaData('siteUid', -5, false)]);
    var tmp_209 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_210 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_211 = [Event_INSERT_getInstance()];
    var tmp_212 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_213 = ['REPLACE INTO Site (siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES( CAST(NEW.siteUid AS BIGINT), CAST(NEW.sitePcsn AS BIGINT), CAST(NEW.siteLcsn AS BIGINT), NEW.siteLcb, CAST(NEW.siteLct AS BIGINT), NEW.siteName, NEW.guestLogin, NEW.registrationAllowed, NEW.authSalt) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$242 = ['INSERT INTO Site (siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES( CAST(NEW.siteUid AS BIGINT), CAST(NEW.sitePcsn AS BIGINT), CAST(NEW.siteLcsn AS BIGINT), NEW.siteLcb, CAST(NEW.siteLct AS BIGINT), NEW.siteName, NEW.guestLogin, NEW.registrationAllowed, NEW.authSalt)  ON CONFLICT(siteUid)  DO UPDATE SET sitePcsn = NEW.sitePcsn, siteLcsn = NEW.siteLcsn, siteLcb = NEW.siteLcb, siteLct = NEW.siteLct, siteName = NEW.siteName, guestLogin = NEW.guestLogin, registrationAllowed = NEW.registrationAllowed, authSalt = NEW.authSalt '];
    var tmp_214 = to(189, new ReplicationEntityMetaData(189, 'Site', 'Site_ReceiveView', tmp_207, 'siteLct', tmp_208, 1000, tmp_209, listOf(new Trigger('site_remote_insert', tmp_210, tmp_211, tmp_212, tmp_213, tmp$ret$242, '\n             SELECT ((SELECT COUNT(*) \n                        FROM Site) = 0\n                     OR NEW.authSalt = \n                        (SELECT Site.authSalt\n                           FROM Site\n                          LIMIT 1))\n                 AND (SELECT \n                   CAST(NEW.siteLct AS BIGINT) >\n                       COALESCE((SELECT Site_Existing.siteLct\n                                   FROM Site Site_Existing\n                                  WHERE Site_Existing.siteUid = NEW.siteUid), 0)\n                   )          \n         ', '\n             SELECT ((SELECT COUNT(*) \n                        FROM Site) = 0\n                     OR NEW.authSalt = \n                        (SELECT Site.authSalt\n                           FROM Site\n                          LIMIT 1))\n                 AND (SELECT \n                   CAST(NEW.siteLct AS BIGINT) >\n                       COALESCE((SELECT Site_Existing.siteLct\n                                   FROM Site Site_Existing\n                                  WHERE Site_Existing.siteUid = NEW.siteUid), 0)\n                   )          \n         '))));
    var tmp_215 = listOf('sTermsUid');
    var tmp_216 = listOf_0([new ReplicationFieldMetaData('termsHtml', -1, true), new ReplicationFieldMetaData('sTermsLang', -1, true), new ReplicationFieldMetaData('sTermsLangUid', -5, false), new ReplicationFieldMetaData('sTermsActive', 16, false), new ReplicationFieldMetaData('sTermsLastChangedBy', 4, false), new ReplicationFieldMetaData('sTermsPrimaryCsn', -5, false), new ReplicationFieldMetaData('sTermsLocalCsn', -5, false), new ReplicationFieldMetaData('sTermsLct', -5, false), new ReplicationFieldMetaData('sTermsUid', -5, false)]);
    var tmp_217 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_218 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_219 = [Event_INSERT_getInstance()];
    var tmp_220 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_221 = ['REPLACE INTO SiteTerms (sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct) VALUES( CAST(NEW.sTermsUid AS BIGINT), NEW.termsHtml, NEW.sTermsLang, CAST(NEW.sTermsLangUid AS BIGINT), NEW.sTermsActive, NEW.sTermsLastChangedBy, CAST(NEW.sTermsPrimaryCsn AS BIGINT), CAST(NEW.sTermsLocalCsn AS BIGINT), CAST(NEW.sTermsLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$251 = ['INSERT INTO SiteTerms (sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct) VALUES( CAST(NEW.sTermsUid AS BIGINT), NEW.termsHtml, NEW.sTermsLang, CAST(NEW.sTermsLangUid AS BIGINT), NEW.sTermsActive, NEW.sTermsLastChangedBy, CAST(NEW.sTermsPrimaryCsn AS BIGINT), CAST(NEW.sTermsLocalCsn AS BIGINT), CAST(NEW.sTermsLct AS BIGINT))  ON CONFLICT(sTermsUid)  DO UPDATE SET termsHtml = NEW.termsHtml, sTermsLang = NEW.sTermsLang, sTermsLangUid = NEW.sTermsLangUid, sTermsActive = NEW.sTermsActive, sTermsLastChangedBy = NEW.sTermsLastChangedBy, sTermsPrimaryCsn = NEW.sTermsPrimaryCsn, sTermsLocalCsn = NEW.sTermsLocalCsn, sTermsLct = NEW.sTermsLct '];
    var tmp_222 = to(272, new ReplicationEntityMetaData(272, 'SiteTerms', 'SiteTerms_ReceiveView', tmp_215, 'sTermsLct', tmp_216, 1000, tmp_217, listOf(new Trigger('siteterms_remote_insert', tmp_218, tmp_219, tmp_220, tmp_221, tmp$ret$251, 'SELECT \n                   CAST(NEW.sTermsLct AS BIGINT) >\n                       COALESCE((SELECT SiteTerms_Existing.sTermsLct\n                                   FROM SiteTerms SiteTerms_Existing\n                                  WHERE SiteTerms_Existing.sTermsUid = NEW.sTermsUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.sTermsLct AS BIGINT) >\n                       COALESCE((SELECT SiteTerms_Existing.sTermsLct\n                                   FROM SiteTerms SiteTerms_Existing\n                                  WHERE SiteTerms_Existing.sTermsUid = NEW.sTermsUid), 0)\n                   '))));
    var tmp_223 = listOf('ppjUid');
    var tmp_224 = listOf_0([new ReplicationFieldMetaData('ppjPcsn', -5, false), new ReplicationFieldMetaData('ppjLcsn', -5, false), new ReplicationFieldMetaData('ppjLcb', 4, false), new ReplicationFieldMetaData('ppjLct', -5, false), new ReplicationFieldMetaData('ppjParentPersonUid', -5, false), new ReplicationFieldMetaData('ppjMinorPersonUid', -5, false), new ReplicationFieldMetaData('ppjRelationship', 4, false), new ReplicationFieldMetaData('ppjEmail', -1, true), new ReplicationFieldMetaData('ppjPhone', -1, true), new ReplicationFieldMetaData('ppjInactive', 16, false), new ReplicationFieldMetaData('ppjStatus', 4, false), new ReplicationFieldMetaData('ppjApprovalTiemstamp', -5, false), new ReplicationFieldMetaData('ppjApprovalIpAddr', -1, true), new ReplicationFieldMetaData('ppjUid', -5, false)]);
    var tmp_225 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_226 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_227 = [Event_INSERT_getInstance()];
    var tmp_228 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_229 = ['REPLACE INTO PersonParentJoin (ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) VALUES( CAST(NEW.ppjUid AS BIGINT), CAST(NEW.ppjPcsn AS BIGINT), CAST(NEW.ppjLcsn AS BIGINT), NEW.ppjLcb, CAST(NEW.ppjLct AS BIGINT), CAST(NEW.ppjParentPersonUid AS BIGINT), CAST(NEW.ppjMinorPersonUid AS BIGINT), NEW.ppjRelationship, NEW.ppjEmail, NEW.ppjPhone, NEW.ppjInactive, NEW.ppjStatus, CAST(NEW.ppjApprovalTiemstamp AS BIGINT), NEW.ppjApprovalIpAddr) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$260 = ['INSERT INTO PersonParentJoin (ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) VALUES( CAST(NEW.ppjUid AS BIGINT), CAST(NEW.ppjPcsn AS BIGINT), CAST(NEW.ppjLcsn AS BIGINT), NEW.ppjLcb, CAST(NEW.ppjLct AS BIGINT), CAST(NEW.ppjParentPersonUid AS BIGINT), CAST(NEW.ppjMinorPersonUid AS BIGINT), NEW.ppjRelationship, NEW.ppjEmail, NEW.ppjPhone, NEW.ppjInactive, NEW.ppjStatus, CAST(NEW.ppjApprovalTiemstamp AS BIGINT), NEW.ppjApprovalIpAddr)  ON CONFLICT(ppjUid)  DO UPDATE SET ppjPcsn = NEW.ppjPcsn, ppjLcsn = NEW.ppjLcsn, ppjLcb = NEW.ppjLcb, ppjLct = NEW.ppjLct, ppjParentPersonUid = NEW.ppjParentPersonUid, ppjMinorPersonUid = NEW.ppjMinorPersonUid, ppjRelationship = NEW.ppjRelationship, ppjEmail = NEW.ppjEmail, ppjPhone = NEW.ppjPhone, ppjInactive = NEW.ppjInactive, ppjStatus = NEW.ppjStatus, ppjApprovalTiemstamp = NEW.ppjApprovalTiemstamp, ppjApprovalIpAddr = NEW.ppjApprovalIpAddr '];
    var tmp_230 = to(512, new ReplicationEntityMetaData(512, 'PersonParentJoin', 'PersonParentJoin_ReceiveView', tmp_223, 'ppjLct', tmp_224, 1000, tmp_225, listOf(new Trigger('personparentjoin_remote_insert', tmp_226, tmp_227, tmp_228, tmp_229, tmp$ret$260, 'SELECT \n                   CAST(NEW.ppjLct AS BIGINT) >\n                       COALESCE((SELECT PersonParentJoin_Existing.ppjLct\n                                   FROM PersonParentJoin PersonParentJoin_Existing\n                                  WHERE PersonParentJoin_Existing.ppjUid = NEW.ppjUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.ppjLct AS BIGINT) >\n                       COALESCE((SELECT PersonParentJoin_Existing.ppjLct\n                                   FROM PersonParentJoin PersonParentJoin_Existing\n                                  WHERE PersonParentJoin_Existing.ppjUid = NEW.ppjUid), 0)\n                   '))));
    var tmp_231 = listOf('sgUid');
    var tmp_232 = listOf_0([new ReplicationFieldMetaData('sgPcsn', -5, false), new ReplicationFieldMetaData('sgLcsn', -5, false), new ReplicationFieldMetaData('sgLcb', 4, false), new ReplicationFieldMetaData('sgLct', -5, false), new ReplicationFieldMetaData('sgTableId', 4, false), new ReplicationFieldMetaData('sgEntityUid', -5, false), new ReplicationFieldMetaData('sgPermissions', -5, false), new ReplicationFieldMetaData('sgGroupUid', -5, false), new ReplicationFieldMetaData('sgIndex', 4, false), new ReplicationFieldMetaData('sgFlags', 4, false), new ReplicationFieldMetaData('sgUid', -5, false)]);
    var tmp_233 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_234 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_235 = [Event_INSERT_getInstance()];
    var tmp_236 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_237 = ['UPDATE ScopedGrant SET sgLct = 0 WHERE sgUid = 0'];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$269 = ['UPDATE ScopedGrant SET sgLct = 0 WHERE sgUid = 0'];
    var tmp_238 = to(48, new ReplicationEntityMetaData(48, 'ScopedGrant', 'ScopedGrant_ReceiveView', tmp_231, 'sgLct', tmp_232, 1000, tmp_233, listOf(new Trigger('sg_remote_insert', tmp_234, tmp_235, tmp_236, tmp_237, tmp$ret$269, 'SELECT \n                   CAST(NEW.sgLct AS BIGINT) >\n                       COALESCE((SELECT ScopedGrant_Existing.sgLct\n                                   FROM ScopedGrant ScopedGrant_Existing\n                                  WHERE ScopedGrant_Existing.sgUid = NEW.sgUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.sgLct AS BIGINT) >\n                       COALESCE((SELECT ScopedGrant_Existing.sgLct\n                                   FROM ScopedGrant ScopedGrant_Existing\n                                  WHERE ScopedGrant_Existing.sgUid = NEW.sgUid), 0)\n                   '))));
    var tmp_239 = listOf('errUid');
    var tmp_240 = listOf_0([new ReplicationFieldMetaData('errPcsn', -5, false), new ReplicationFieldMetaData('errLcsn', -5, false), new ReplicationFieldMetaData('errLcb', 4, false), new ReplicationFieldMetaData('errLct', -5, false), new ReplicationFieldMetaData('severity', 4, false), new ReplicationFieldMetaData('timestamp', -5, false), new ReplicationFieldMetaData('presenterUri', -1, true), new ReplicationFieldMetaData('appVersion', -1, true), new ReplicationFieldMetaData('versionCode', 4, false), new ReplicationFieldMetaData('errorCode', 4, false), new ReplicationFieldMetaData('operatingSys', -1, true), new ReplicationFieldMetaData('osVersion', -1, true), new ReplicationFieldMetaData('stackTrace', -1, true), new ReplicationFieldMetaData('message', -1, true), new ReplicationFieldMetaData('errUid', -5, false)]);
    var tmp_241 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_242 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_243 = [Event_INSERT_getInstance()];
    var tmp_244 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_245 = ['REPLACE INTO ErrorReport (errUid, errPcsn, errLcsn, errLcb, errLct, severity, timestamp, presenterUri, appVersion, versionCode, errorCode, operatingSys, osVersion, stackTrace, message) VALUES( CAST(NEW.errUid AS BIGINT), CAST(NEW.errPcsn AS BIGINT), CAST(NEW.errLcsn AS BIGINT), NEW.errLcb, CAST(NEW.errLct AS BIGINT), NEW.severity, CAST(NEW.timestamp AS BIGINT), NEW.presenterUri, NEW.appVersion, NEW.versionCode, NEW.errorCode, NEW.operatingSys, NEW.osVersion, NEW.stackTrace, NEW.message) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$278 = ['INSERT INTO ErrorReport (errUid, errPcsn, errLcsn, errLcb, errLct, severity, timestamp, presenterUri, appVersion, versionCode, errorCode, operatingSys, osVersion, stackTrace, message) VALUES( CAST(NEW.errUid AS BIGINT), CAST(NEW.errPcsn AS BIGINT), CAST(NEW.errLcsn AS BIGINT), NEW.errLcb, CAST(NEW.errLct AS BIGINT), NEW.severity, CAST(NEW.timestamp AS BIGINT), NEW.presenterUri, NEW.appVersion, NEW.versionCode, NEW.errorCode, NEW.operatingSys, NEW.osVersion, NEW.stackTrace, NEW.message)  ON CONFLICT(errUid)  DO UPDATE SET errPcsn = NEW.errPcsn, errLcsn = NEW.errLcsn, errLcb = NEW.errLcb, errLct = NEW.errLct, severity = NEW.severity, timestamp = NEW.timestamp, presenterUri = NEW.presenterUri, appVersion = NEW.appVersion, versionCode = NEW.versionCode, errorCode = NEW.errorCode, operatingSys = NEW.operatingSys, osVersion = NEW.osVersion, stackTrace = NEW.stackTrace, message = NEW.message '];
    var tmp_246 = to(419, new ReplicationEntityMetaData(419, 'ErrorReport', 'ErrorReport_ReceiveView', tmp_239, 'errLct', tmp_240, 1000, tmp_241, listOf(new Trigger('errorreport_remote_insert', tmp_242, tmp_243, tmp_244, tmp_245, tmp$ret$278, 'SELECT \n                   CAST(NEW.errLct AS BIGINT) >\n                       COALESCE((SELECT ErrorReport_Existing.errLct\n                                   FROM ErrorReport ErrorReport_Existing\n                                  WHERE ErrorReport_Existing.errUid = NEW.errUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.errLct AS BIGINT) >\n                       COALESCE((SELECT ErrorReport_Existing.errLct\n                                   FROM ErrorReport ErrorReport_Existing\n                                  WHERE ErrorReport_Existing.errUid = NEW.errUid), 0)\n                   '))));
    var tmp_247 = listOf('caUid');
    var tmp_248 = listOf_0([new ReplicationFieldMetaData('caTitle', -1, true), new ReplicationFieldMetaData('caDescription', -1, true), new ReplicationFieldMetaData('caGroupUid', -5, false), new ReplicationFieldMetaData('caActive', 16, false), new ReplicationFieldMetaData('caClassCommentEnabled', 16, false), new ReplicationFieldMetaData('caPrivateCommentsEnabled', 16, false), new ReplicationFieldMetaData('caCompletionCriteria', 4, false), new ReplicationFieldMetaData('caRequireFileSubmission', 16, false), new ReplicationFieldMetaData('caFileType', 4, false), new ReplicationFieldMetaData('caSizeLimit', 4, false), new ReplicationFieldMetaData('caNumberOfFiles', 4, false), new ReplicationFieldMetaData('caSubmissionPolicy', 4, false), new ReplicationFieldMetaData('caMarkingType', 4, false), new ReplicationFieldMetaData('caRequireTextSubmission', 16, false), new ReplicationFieldMetaData('caTextLimitType', 4, false), new ReplicationFieldMetaData('caTextLimit', 4, false), new ReplicationFieldMetaData('caXObjectUid', -5, false), new ReplicationFieldMetaData('caClazzUid', -5, false), new ReplicationFieldMetaData('caPeerReviewerCount', 4, false), new ReplicationFieldMetaData('caLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('caMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('caLastChangedBy', 4, false), new ReplicationFieldMetaData('caLct', -5, false), new ReplicationFieldMetaData('caUid', -5, false)]);
    var tmp_249 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_250 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_251 = [Event_INSERT_getInstance()];
    var tmp_252 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_253 = ['REPLACE INTO ClazzAssignment (caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) VALUES( CAST(NEW.caUid AS BIGINT), NEW.caTitle, NEW.caDescription, CAST(NEW.caGroupUid AS BIGINT), NEW.caActive, NEW.caClassCommentEnabled, NEW.caPrivateCommentsEnabled, NEW.caCompletionCriteria, NEW.caRequireFileSubmission, NEW.caFileType, NEW.caSizeLimit, NEW.caNumberOfFiles, NEW.caSubmissionPolicy, NEW.caMarkingType, NEW.caRequireTextSubmission, NEW.caTextLimitType, NEW.caTextLimit, CAST(NEW.caXObjectUid AS BIGINT), CAST(NEW.caClazzUid AS BIGINT), NEW.caPeerReviewerCount, CAST(NEW.caLocalChangeSeqNum AS BIGINT), CAST(NEW.caMasterChangeSeqNum AS BIGINT), NEW.caLastChangedBy, CAST(NEW.caLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$287 = ['INSERT INTO ClazzAssignment (caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) VALUES( CAST(NEW.caUid AS BIGINT), NEW.caTitle, NEW.caDescription, CAST(NEW.caGroupUid AS BIGINT), NEW.caActive, NEW.caClassCommentEnabled, NEW.caPrivateCommentsEnabled, NEW.caCompletionCriteria, NEW.caRequireFileSubmission, NEW.caFileType, NEW.caSizeLimit, NEW.caNumberOfFiles, NEW.caSubmissionPolicy, NEW.caMarkingType, NEW.caRequireTextSubmission, NEW.caTextLimitType, NEW.caTextLimit, CAST(NEW.caXObjectUid AS BIGINT), CAST(NEW.caClazzUid AS BIGINT), NEW.caPeerReviewerCount, CAST(NEW.caLocalChangeSeqNum AS BIGINT), CAST(NEW.caMasterChangeSeqNum AS BIGINT), NEW.caLastChangedBy, CAST(NEW.caLct AS BIGINT))  ON CONFLICT(caUid)  DO UPDATE SET caTitle = NEW.caTitle, caDescription = NEW.caDescription, caGroupUid = NEW.caGroupUid, caActive = NEW.caActive, caClassCommentEnabled = NEW.caClassCommentEnabled, caPrivateCommentsEnabled = NEW.caPrivateCommentsEnabled, caCompletionCriteria = NEW.caCompletionCriteria, caRequireFileSubmission = NEW.caRequireFileSubmission, caFileType = NEW.caFileType, caSizeLimit = NEW.caSizeLimit, caNumberOfFiles = NEW.caNumberOfFiles, caSubmissionPolicy = NEW.caSubmissionPolicy, caMarkingType = NEW.caMarkingType, caRequireTextSubmission = NEW.caRequireTextSubmission, caTextLimitType = NEW.caTextLimitType, caTextLimit = NEW.caTextLimit, caXObjectUid = NEW.caXObjectUid, caClazzUid = NEW.caClazzUid, caPeerReviewerCount = NEW.caPeerReviewerCount, caLocalChangeSeqNum = NEW.caLocalChangeSeqNum, caMasterChangeSeqNum = NEW.caMasterChangeSeqNum, caLastChangedBy = NEW.caLastChangedBy, caLct = NEW.caLct '];
    var tmp_254 = to(520, new ReplicationEntityMetaData(520, 'ClazzAssignment', 'ClazzAssignment_ReceiveView', tmp_247, 'caLct', tmp_248, 1000, tmp_249, listOf(new Trigger('clazzassignment_remote_insert', tmp_250, tmp_251, tmp_252, tmp_253, tmp$ret$287, 'SELECT \n                   CAST(NEW.caLct AS BIGINT) >\n                       COALESCE((SELECT ClazzAssignment_Existing.caLct\n                                   FROM ClazzAssignment ClazzAssignment_Existing\n                                  WHERE ClazzAssignment_Existing.caUid = NEW.caUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.caLct AS BIGINT) >\n                       COALESCE((SELECT ClazzAssignment_Existing.caLct\n                                   FROM ClazzAssignment ClazzAssignment_Existing\n                                  WHERE ClazzAssignment_Existing.caUid = NEW.caUid), 0)\n                   '))));
    var tmp_255 = listOf('casUid');
    var tmp_256 = listOf_0([new ReplicationFieldMetaData('casAssignmentUid', -5, false), new ReplicationFieldMetaData('casSubmitterUid', -5, false), new ReplicationFieldMetaData('casSubmitterPersonUid', -5, false), new ReplicationFieldMetaData('casText', -1, true), new ReplicationFieldMetaData('casType', 4, false), new ReplicationFieldMetaData('casTimestamp', -5, false), new ReplicationFieldMetaData('casClazzUid', -5, false), new ReplicationFieldMetaData('casUid', -5, false)]);
    var tmp_257 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_258 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_259 = [Event_INSERT_getInstance()];
    var tmp_260 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_261 = ['REPLACE INTO CourseAssignmentSubmission (casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid) VALUES( CAST(NEW.casUid AS BIGINT), CAST(NEW.casAssignmentUid AS BIGINT), CAST(NEW.casSubmitterUid AS BIGINT), CAST(NEW.casSubmitterPersonUid AS BIGINT), NEW.casText, NEW.casType, CAST(NEW.casTimestamp AS BIGINT), CAST(NEW.casClazzUid AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$296 = ['INSERT INTO CourseAssignmentSubmission (casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid) VALUES( CAST(NEW.casUid AS BIGINT), CAST(NEW.casAssignmentUid AS BIGINT), CAST(NEW.casSubmitterUid AS BIGINT), CAST(NEW.casSubmitterPersonUid AS BIGINT), NEW.casText, NEW.casType, CAST(NEW.casTimestamp AS BIGINT), CAST(NEW.casClazzUid AS BIGINT))  ON CONFLICT(casUid)  DO UPDATE SET casAssignmentUid = NEW.casAssignmentUid, casSubmitterUid = NEW.casSubmitterUid, casSubmitterPersonUid = NEW.casSubmitterPersonUid, casText = NEW.casText, casType = NEW.casType, casTimestamp = NEW.casTimestamp, casClazzUid = NEW.casClazzUid '];
    var tmp_262 = to(522, new ReplicationEntityMetaData(522, 'CourseAssignmentSubmission', 'CourseAssignmentSubmission_ReceiveView', tmp_255, 'casTimestamp', tmp_256, 1000, tmp_257, listOf(new Trigger('courseassignmentsubmission_remote_insert', tmp_258, tmp_259, tmp_260, tmp_261, tmp$ret$296, 'SELECT \n                   CAST(NEW.casTimestamp AS BIGINT) >\n                       COALESCE((SELECT CourseAssignmentSubmission_Existing.casTimestamp\n                                   FROM CourseAssignmentSubmission CourseAssignmentSubmission_Existing\n                                  WHERE CourseAssignmentSubmission_Existing.casUid = NEW.casUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.casTimestamp AS BIGINT) >\n                       COALESCE((SELECT CourseAssignmentSubmission_Existing.casTimestamp\n                                   FROM CourseAssignmentSubmission CourseAssignmentSubmission_Existing\n                                  WHERE CourseAssignmentSubmission_Existing.casUid = NEW.casUid), 0)\n                   '))));
    var tmp_263 = listOf('casaUid');
    var tmp_264 = listOf_0([new ReplicationFieldMetaData('casaSubmissionUid', -5, false), new ReplicationFieldMetaData('casaSubmitterUid', -5, false), new ReplicationFieldMetaData('casaCaUid', -5, false), new ReplicationFieldMetaData('casaClazzUid', -5, false), new ReplicationFieldMetaData('casaMimeType', -1, true), new ReplicationFieldMetaData('casaFileName', -1, true), new ReplicationFieldMetaData('casaUri', -1, true), new ReplicationFieldMetaData('casaSize', 4, false), new ReplicationFieldMetaData('casaTimestamp', -5, false), new ReplicationFieldMetaData('casaDeleted', 16, false), new ReplicationFieldMetaData('casaUid', -5, false)]);
    var tmp_265 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_266 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_267 = [Event_INSERT_getInstance()];
    var tmp_268 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_269 = ['REPLACE INTO CourseAssignmentSubmissionFile (casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted) VALUES( CAST(NEW.casaUid AS BIGINT), CAST(NEW.casaSubmissionUid AS BIGINT), CAST(NEW.casaSubmitterUid AS BIGINT), CAST(NEW.casaCaUid AS BIGINT), CAST(NEW.casaClazzUid AS BIGINT), NEW.casaMimeType, NEW.casaFileName, NEW.casaUri, NEW.casaSize, CAST(NEW.casaTimestamp AS BIGINT), NEW.casaDeleted) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$305 = ['INSERT INTO CourseAssignmentSubmissionFile (casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted) VALUES( CAST(NEW.casaUid AS BIGINT), CAST(NEW.casaSubmissionUid AS BIGINT), CAST(NEW.casaSubmitterUid AS BIGINT), CAST(NEW.casaCaUid AS BIGINT), CAST(NEW.casaClazzUid AS BIGINT), NEW.casaMimeType, NEW.casaFileName, NEW.casaUri, NEW.casaSize, CAST(NEW.casaTimestamp AS BIGINT), NEW.casaDeleted)  ON CONFLICT(casaUid)  DO UPDATE SET casaSubmissionUid = NEW.casaSubmissionUid, casaSubmitterUid = NEW.casaSubmitterUid, casaCaUid = NEW.casaCaUid, casaClazzUid = NEW.casaClazzUid, casaMimeType = NEW.casaMimeType, casaFileName = NEW.casaFileName, casaUri = NEW.casaUri, casaSize = NEW.casaSize, casaTimestamp = NEW.casaTimestamp, casaDeleted = NEW.casaDeleted '];
    var tmp_270 = to(90, new ReplicationEntityMetaData(90, 'CourseAssignmentSubmissionFile', 'CourseAssignmentSubmissionFile_ReceiveView', tmp_263, 'casaTimestamp', tmp_264, 1000, tmp_265, listOf(new Trigger('courseassignmentsubmissionattachment_remote_insert', tmp_266, tmp_267, tmp_268, tmp_269, tmp$ret$305, 'SELECT \n                   CAST(NEW.casaTimestamp AS BIGINT) >\n                       COALESCE((SELECT CourseAssignmentSubmissionFile_Existing.casaTimestamp\n                                   FROM CourseAssignmentSubmissionFile CourseAssignmentSubmissionFile_Existing\n                                  WHERE CourseAssignmentSubmissionFile_Existing.casaUid = NEW.casaUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.casaTimestamp AS BIGINT) >\n                       COALESCE((SELECT CourseAssignmentSubmissionFile_Existing.casaTimestamp\n                                   FROM CourseAssignmentSubmissionFile CourseAssignmentSubmissionFile_Existing\n                                  WHERE CourseAssignmentSubmissionFile_Existing.casaUid = NEW.casaUid), 0)\n                   '))));
    var tmp_271 = listOf('camUid');
    var tmp_272 = listOf_0([new ReplicationFieldMetaData('camAssignmentUid', -5, false), new ReplicationFieldMetaData('camSubmitterUid', -5, false), new ReplicationFieldMetaData('camMarkerSubmitterUid', -5, false), new ReplicationFieldMetaData('camMarkerPersonUid', -5, false), new ReplicationFieldMetaData('camMarkerComment', -1, true), new ReplicationFieldMetaData('camMark', 6, false), new ReplicationFieldMetaData('camMaxMark', 6, false), new ReplicationFieldMetaData('camPenalty', 6, false), new ReplicationFieldMetaData('camLct', -5, false), new ReplicationFieldMetaData('camClazzUid', -5, false), new ReplicationFieldMetaData('camUid', -5, false)]);
    var tmp_273 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_274 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_275 = [Event_INSERT_getInstance()];
    var tmp_276 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_277 = ['REPLACE INTO CourseAssignmentMark (camUid, camAssignmentUid, camSubmitterUid, camMarkerSubmitterUid, camMarkerPersonUid, camMarkerComment, camMark, camMaxMark, camPenalty, camLct, camClazzUid) VALUES( CAST(NEW.camUid AS BIGINT), CAST(NEW.camAssignmentUid AS BIGINT), CAST(NEW.camSubmitterUid AS BIGINT), CAST(NEW.camMarkerSubmitterUid AS BIGINT), CAST(NEW.camMarkerPersonUid AS BIGINT), NEW.camMarkerComment, NEW.camMark, NEW.camMaxMark, NEW.camPenalty, CAST(NEW.camLct AS BIGINT), CAST(NEW.camClazzUid AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$314 = ['INSERT INTO CourseAssignmentMark (camUid, camAssignmentUid, camSubmitterUid, camMarkerSubmitterUid, camMarkerPersonUid, camMarkerComment, camMark, camMaxMark, camPenalty, camLct, camClazzUid) VALUES( CAST(NEW.camUid AS BIGINT), CAST(NEW.camAssignmentUid AS BIGINT), CAST(NEW.camSubmitterUid AS BIGINT), CAST(NEW.camMarkerSubmitterUid AS BIGINT), CAST(NEW.camMarkerPersonUid AS BIGINT), NEW.camMarkerComment, NEW.camMark, NEW.camMaxMark, NEW.camPenalty, CAST(NEW.camLct AS BIGINT), CAST(NEW.camClazzUid AS BIGINT))  ON CONFLICT(camUid)  DO UPDATE SET camAssignmentUid = NEW.camAssignmentUid, camSubmitterUid = NEW.camSubmitterUid, camMarkerSubmitterUid = NEW.camMarkerSubmitterUid, camMarkerPersonUid = NEW.camMarkerPersonUid, camMarkerComment = NEW.camMarkerComment, camMark = NEW.camMark, camMaxMark = NEW.camMaxMark, camPenalty = NEW.camPenalty, camLct = NEW.camLct, camClazzUid = NEW.camClazzUid '];
    var tmp_278 = to(523, new ReplicationEntityMetaData(523, 'CourseAssignmentMark', 'CourseAssignmentMark_ReceiveView', tmp_271, 'camLct', tmp_272, 1000, tmp_273, listOf(new Trigger('courseassignmentmark_remote_insert', tmp_274, tmp_275, tmp_276, tmp_277, tmp$ret$314, 'SELECT \n                   CAST(NEW.camLct AS BIGINT) >\n                       COALESCE((SELECT CourseAssignmentMark_Existing.camLct\n                                   FROM CourseAssignmentMark CourseAssignmentMark_Existing\n                                  WHERE CourseAssignmentMark_Existing.camUid = NEW.camUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.camLct AS BIGINT) >\n                       COALESCE((SELECT CourseAssignmentMark_Existing.camLct\n                                   FROM CourseAssignmentMark CourseAssignmentMark_Existing\n                                  WHERE CourseAssignmentMark_Existing.camUid = NEW.camUid), 0)\n                   '))));
    var tmp_279 = listOf('praUid');
    var tmp_280 = listOf_0([new ReplicationFieldMetaData('praMarkerSubmitterUid', -5, false), new ReplicationFieldMetaData('praToMarkerSubmitterUid', -5, false), new ReplicationFieldMetaData('praAssignmentUid', -5, false), new ReplicationFieldMetaData('praActive', 16, false), new ReplicationFieldMetaData('praLct', -5, false), new ReplicationFieldMetaData('praUid', -5, false)]);
    var tmp_281 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_282 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_283 = [Event_INSERT_getInstance()];
    var tmp_284 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_285 = ['REPLACE INTO PeerReviewerAllocation (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES( CAST(NEW.praUid AS BIGINT), CAST(NEW.praMarkerSubmitterUid AS BIGINT), CAST(NEW.praToMarkerSubmitterUid AS BIGINT), CAST(NEW.praAssignmentUid AS BIGINT), NEW.praActive, CAST(NEW.praLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$323 = ['INSERT INTO PeerReviewerAllocation (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES( CAST(NEW.praUid AS BIGINT), CAST(NEW.praMarkerSubmitterUid AS BIGINT), CAST(NEW.praToMarkerSubmitterUid AS BIGINT), CAST(NEW.praAssignmentUid AS BIGINT), NEW.praActive, CAST(NEW.praLct AS BIGINT))  ON CONFLICT(praUid)  DO UPDATE SET praMarkerSubmitterUid = NEW.praMarkerSubmitterUid, praToMarkerSubmitterUid = NEW.praToMarkerSubmitterUid, praAssignmentUid = NEW.praAssignmentUid, praActive = NEW.praActive, praLct = NEW.praLct '];
    var tmp_286 = to(140, new ReplicationEntityMetaData(140, 'PeerReviewerAllocation', 'PeerReviewerAllocation_ReceiveView', tmp_279, 'praLct', tmp_280, 1000, tmp_281, listOf(new Trigger('peerreviewerallocation_remote_insert', tmp_282, tmp_283, tmp_284, tmp_285, tmp$ret$323, 'SELECT \n                   CAST(NEW.praLct AS BIGINT) >\n                       COALESCE((SELECT PeerReviewerAllocation_Existing.praLct\n                                   FROM PeerReviewerAllocation PeerReviewerAllocation_Existing\n                                  WHERE PeerReviewerAllocation_Existing.praUid = NEW.praUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.praLct AS BIGINT) >\n                       COALESCE((SELECT PeerReviewerAllocation_Existing.praLct\n                                   FROM PeerReviewerAllocation PeerReviewerAllocation_Existing\n                                  WHERE PeerReviewerAllocation_Existing.praUid = NEW.praUid), 0)\n                   '))));
    var tmp_287 = listOf('pauthUid');
    var tmp_288 = listOf_0([new ReplicationFieldMetaData('pauthUid', -5, false), new ReplicationFieldMetaData('pauthMechanism', -1, true), new ReplicationFieldMetaData('pauthAuth', -1, true), new ReplicationFieldMetaData('pauthLcsn', -5, false), new ReplicationFieldMetaData('pauthPcsn', -5, false), new ReplicationFieldMetaData('pauthLcb', -5, false), new ReplicationFieldMetaData('pauthLct', -5, false)]);
    var tmp_289 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_290 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_291 = [Event_INSERT_getInstance()];
    var tmp_292 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_293 = ['REPLACE INTO PersonAuth2 (pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES( CAST(NEW.pauthUid AS BIGINT), NEW.pauthMechanism, NEW.pauthAuth, CAST(NEW.pauthLcsn AS BIGINT), CAST(NEW.pauthPcsn AS BIGINT), CAST(NEW.pauthLcb AS BIGINT), CAST(NEW.pauthLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$332 = ['INSERT INTO PersonAuth2 (pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES( CAST(NEW.pauthUid AS BIGINT), NEW.pauthMechanism, NEW.pauthAuth, CAST(NEW.pauthLcsn AS BIGINT), CAST(NEW.pauthPcsn AS BIGINT), CAST(NEW.pauthLcb AS BIGINT), CAST(NEW.pauthLct AS BIGINT))  ON CONFLICT(pauthUid)  DO UPDATE SET pauthMechanism = NEW.pauthMechanism, pauthAuth = NEW.pauthAuth, pauthLcsn = NEW.pauthLcsn, pauthPcsn = NEW.pauthPcsn, pauthLcb = NEW.pauthLcb, pauthLct = NEW.pauthLct '];
    var tmp_294 = to(678, new ReplicationEntityMetaData(678, 'PersonAuth2', 'PersonAuth2_ReceiveView', tmp_287, 'pauthLct', tmp_288, 1000, tmp_289, listOf(new Trigger('personauth2_remote_insert', tmp_290, tmp_291, tmp_292, tmp_293, tmp$ret$332, 'SELECT \n                   CAST(NEW.pauthLct AS BIGINT) >\n                       COALESCE((SELECT PersonAuth2_Existing.pauthLct\n                                   FROM PersonAuth2 PersonAuth2_Existing\n                                  WHERE PersonAuth2_Existing.pauthUid = NEW.pauthUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.pauthLct AS BIGINT) >\n                       COALESCE((SELECT PersonAuth2_Existing.pauthLct\n                                   FROM PersonAuth2 PersonAuth2_Existing\n                                  WHERE PersonAuth2_Existing.pauthUid = NEW.pauthUid), 0)\n                   '))));
    var tmp_295 = listOf('usUid');
    var tmp_296 = listOf_0([new ReplicationFieldMetaData('usPcsn', -5, false), new ReplicationFieldMetaData('usLcsn', -5, false), new ReplicationFieldMetaData('usLcb', -5, false), new ReplicationFieldMetaData('usLct', -5, false), new ReplicationFieldMetaData('usPersonUid', -5, false), new ReplicationFieldMetaData('usClientNodeId', -5, false), new ReplicationFieldMetaData('usStartTime', -5, false), new ReplicationFieldMetaData('usEndTime', -5, false), new ReplicationFieldMetaData('usStatus', 4, false), new ReplicationFieldMetaData('usReason', 4, false), new ReplicationFieldMetaData('usAuth', -1, true), new ReplicationFieldMetaData('usSessionType', 4, false), new ReplicationFieldMetaData('usUid', -5, false)]);
    var tmp_297 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_298 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_299 = [Event_INSERT_getInstance()];
    var tmp_300 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_301 = ['REPLACE INTO UserSession (usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType) VALUES( CAST(NEW.usUid AS BIGINT), CAST(NEW.usPcsn AS BIGINT), CAST(NEW.usLcsn AS BIGINT), CAST(NEW.usLcb AS BIGINT), CAST(NEW.usLct AS BIGINT), CAST(NEW.usPersonUid AS BIGINT), CAST(NEW.usClientNodeId AS BIGINT), CAST(NEW.usStartTime AS BIGINT), CAST(NEW.usEndTime AS BIGINT), NEW.usStatus, NEW.usReason, NEW.usAuth, NEW.usSessionType) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$341 = ['INSERT INTO UserSession (usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType) VALUES( CAST(NEW.usUid AS BIGINT), CAST(NEW.usPcsn AS BIGINT), CAST(NEW.usLcsn AS BIGINT), CAST(NEW.usLcb AS BIGINT), CAST(NEW.usLct AS BIGINT), CAST(NEW.usPersonUid AS BIGINT), CAST(NEW.usClientNodeId AS BIGINT), CAST(NEW.usStartTime AS BIGINT), CAST(NEW.usEndTime AS BIGINT), NEW.usStatus, NEW.usReason, NEW.usAuth, NEW.usSessionType)  ON CONFLICT(usUid)  DO UPDATE SET usPcsn = NEW.usPcsn, usLcsn = NEW.usLcsn, usLcb = NEW.usLcb, usLct = NEW.usLct, usPersonUid = NEW.usPersonUid, usClientNodeId = NEW.usClientNodeId, usStartTime = NEW.usStartTime, usEndTime = NEW.usEndTime, usStatus = NEW.usStatus, usReason = NEW.usReason, usAuth = NEW.usAuth, usSessionType = NEW.usSessionType '];
    var tmp_302 = to(679, new ReplicationEntityMetaData(679, 'UserSession', 'UserSession_ReceiveView', tmp_295, 'usLct', tmp_296, 1000, tmp_297, listOf(new Trigger('usersession_remote_insert', tmp_298, tmp_299, tmp_300, tmp_301, tmp$ret$341, 'SELECT \n                   CAST(NEW.usLct AS BIGINT) >\n                       COALESCE((SELECT UserSession_Existing.usLct\n                                   FROM UserSession UserSession_Existing\n                                  WHERE UserSession_Existing.usUid = NEW.usUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.usLct AS BIGINT) >\n                       COALESCE((SELECT UserSession_Existing.usLct\n                                   FROM UserSession UserSession_Existing\n                                  WHERE UserSession_Existing.usUid = NEW.usUid), 0)\n                   '))));
    var tmp_303 = listOf('cjUid');
    var tmp_304 = listOf_0([new ReplicationFieldMetaData('toUri', -1, true), new ReplicationFieldMetaData('cjProgress', -5, false), new ReplicationFieldMetaData('cjTotal', -5, false), new ReplicationFieldMetaData('cjNotificationTitle', -1, true), new ReplicationFieldMetaData('cjIsMeteredAllowed', 16, false), new ReplicationFieldMetaData('params', -1, true), new ReplicationFieldMetaData('cjLct', -5, false), new ReplicationFieldMetaData('cjUid', -5, false)]);
    var tmp_305 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_306 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_307 = [Event_INSERT_getInstance()];
    var tmp_308 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_309 = ['REPLACE INTO ContentJob (cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct) VALUES( CAST(NEW.cjUid AS BIGINT), NEW.toUri, CAST(NEW.cjProgress AS BIGINT), CAST(NEW.cjTotal AS BIGINT), NEW.cjNotificationTitle, NEW.cjIsMeteredAllowed, NEW.params, CAST(NEW.cjLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$350 = ['INSERT INTO ContentJob (cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct) VALUES( CAST(NEW.cjUid AS BIGINT), NEW.toUri, CAST(NEW.cjProgress AS BIGINT), CAST(NEW.cjTotal AS BIGINT), NEW.cjNotificationTitle, NEW.cjIsMeteredAllowed, NEW.params, CAST(NEW.cjLct AS BIGINT))  ON CONFLICT(cjUid)  DO UPDATE SET toUri = NEW.toUri, cjProgress = NEW.cjProgress, cjTotal = NEW.cjTotal, cjNotificationTitle = NEW.cjNotificationTitle, cjIsMeteredAllowed = NEW.cjIsMeteredAllowed, params = NEW.params, cjLct = NEW.cjLct '];
    var tmp_310 = to(702, new ReplicationEntityMetaData(702, 'ContentJob', 'ContentJob_ReceiveView', tmp_303, 'cjLct', tmp_304, 1000, tmp_305, listOf(new Trigger('contentjob_remote_insert', tmp_306, tmp_307, tmp_308, tmp_309, tmp$ret$350, 'SELECT \n                   CAST(NEW.cjLct AS BIGINT) >\n                       COALESCE((SELECT ContentJob_Existing.cjLct\n                                   FROM ContentJob ContentJob_Existing\n                                  WHERE ContentJob_Existing.cjUid = NEW.cjUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.cjLct AS BIGINT) >\n                       COALESCE((SELECT ContentJob_Existing.cjLct\n                                   FROM ContentJob ContentJob_Existing\n                                  WHERE ContentJob_Existing.cjUid = NEW.cjUid), 0)\n                   '))));
    var tmp_311 = listOf('cbUid');
    var tmp_312 = listOf_0([new ReplicationFieldMetaData('cbType', 4, false), new ReplicationFieldMetaData('cbIndentLevel', 4, false), new ReplicationFieldMetaData('cbModuleParentBlockUid', -5, false), new ReplicationFieldMetaData('cbTitle', -1, true), new ReplicationFieldMetaData('cbDescription', -1, true), new ReplicationFieldMetaData('cbCompletionCriteria', 4, false), new ReplicationFieldMetaData('cbHideUntilDate', -5, false), new ReplicationFieldMetaData('cbDeadlineDate', -5, false), new ReplicationFieldMetaData('cbLateSubmissionPenalty', 4, false), new ReplicationFieldMetaData('cbGracePeriodDate', -5, false), new ReplicationFieldMetaData('cbMaxPoints', 6, true), new ReplicationFieldMetaData('cbMinPoints', 6, true), new ReplicationFieldMetaData('cbIndex', 4, false), new ReplicationFieldMetaData('cbClazzUid', -5, false), new ReplicationFieldMetaData('cbClazzSourcedId', -1, true), new ReplicationFieldMetaData('cbActive', 16, false), new ReplicationFieldMetaData('cbHidden', 16, false), new ReplicationFieldMetaData('cbEntityUid', -5, false), new ReplicationFieldMetaData('cbLct', -5, false), new ReplicationFieldMetaData('cbSourcedId', -1, true), new ReplicationFieldMetaData('cbMetadata', -1, true), new ReplicationFieldMetaData('cbCreatedByAppId', -1, true), new ReplicationFieldMetaData('cbUid', -5, false)]);
    var tmp_313 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_314 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_315 = [Event_INSERT_getInstance()];
    var tmp_316 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_317 = ['REPLACE INTO CourseBlock (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) VALUES( CAST(NEW.cbUid AS BIGINT), NEW.cbType, NEW.cbIndentLevel, CAST(NEW.cbModuleParentBlockUid AS BIGINT), NEW.cbTitle, NEW.cbDescription, NEW.cbCompletionCriteria, CAST(NEW.cbHideUntilDate AS BIGINT), CAST(NEW.cbDeadlineDate AS BIGINT), NEW.cbLateSubmissionPenalty, CAST(NEW.cbGracePeriodDate AS BIGINT), NEW.cbMaxPoints, NEW.cbMinPoints, NEW.cbIndex, CAST(NEW.cbClazzUid AS BIGINT), NEW.cbClazzSourcedId, NEW.cbActive, NEW.cbHidden, CAST(NEW.cbEntityUid AS BIGINT), CAST(NEW.cbLct AS BIGINT), NEW.cbSourcedId, NEW.cbMetadata, NEW.cbCreatedByAppId) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$359 = ['INSERT INTO CourseBlock (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) VALUES( CAST(NEW.cbUid AS BIGINT), NEW.cbType, NEW.cbIndentLevel, CAST(NEW.cbModuleParentBlockUid AS BIGINT), NEW.cbTitle, NEW.cbDescription, NEW.cbCompletionCriteria, CAST(NEW.cbHideUntilDate AS BIGINT), CAST(NEW.cbDeadlineDate AS BIGINT), NEW.cbLateSubmissionPenalty, CAST(NEW.cbGracePeriodDate AS BIGINT), NEW.cbMaxPoints, NEW.cbMinPoints, NEW.cbIndex, CAST(NEW.cbClazzUid AS BIGINT), NEW.cbClazzSourcedId, NEW.cbActive, NEW.cbHidden, CAST(NEW.cbEntityUid AS BIGINT), CAST(NEW.cbLct AS BIGINT), NEW.cbSourcedId, NEW.cbMetadata, NEW.cbCreatedByAppId)  ON CONFLICT(cbUid)  DO UPDATE SET cbType = NEW.cbType, cbIndentLevel = NEW.cbIndentLevel, cbModuleParentBlockUid = NEW.cbModuleParentBlockUid, cbTitle = NEW.cbTitle, cbDescription = NEW.cbDescription, cbCompletionCriteria = NEW.cbCompletionCriteria, cbHideUntilDate = NEW.cbHideUntilDate, cbDeadlineDate = NEW.cbDeadlineDate, cbLateSubmissionPenalty = NEW.cbLateSubmissionPenalty, cbGracePeriodDate = NEW.cbGracePeriodDate, cbMaxPoints = NEW.cbMaxPoints, cbMinPoints = NEW.cbMinPoints, cbIndex = NEW.cbIndex, cbClazzUid = NEW.cbClazzUid, cbClazzSourcedId = NEW.cbClazzSourcedId, cbActive = NEW.cbActive, cbHidden = NEW.cbHidden, cbEntityUid = NEW.cbEntityUid, cbLct = NEW.cbLct, cbSourcedId = NEW.cbSourcedId, cbMetadata = NEW.cbMetadata, cbCreatedByAppId = NEW.cbCreatedByAppId '];
    var tmp_318 = to(124, new ReplicationEntityMetaData(124, 'CourseBlock', 'CourseBlock_ReceiveView', tmp_311, 'cbLct', tmp_312, 1000, tmp_313, listOf(new Trigger('courseblock_remote_insert', tmp_314, tmp_315, tmp_316, tmp_317, tmp$ret$359, 'SELECT \n                   CAST(NEW.cbLct AS BIGINT) >\n                       COALESCE((SELECT CourseBlock_Existing.cbLct\n                                   FROM CourseBlock CourseBlock_Existing\n                                  WHERE CourseBlock_Existing.cbUid = NEW.cbUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.cbLct AS BIGINT) >\n                       COALESCE((SELECT CourseBlock_Existing.cbLct\n                                   FROM CourseBlock CourseBlock_Existing\n                                  WHERE CourseBlock_Existing.cbUid = NEW.cbUid), 0)\n                   '))));
    var tmp_319 = listOf('ctUid');
    var tmp_320 = listOf_0([new ReplicationFieldMetaData('ctTitle', -1, true), new ReplicationFieldMetaData('ctTerminology', -1, true), new ReplicationFieldMetaData('ctLct', -5, false), new ReplicationFieldMetaData('ctUid', -5, false)]);
    var tmp_321 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_322 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_323 = [Event_INSERT_getInstance()];
    var tmp_324 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_325 = ['REPLACE INTO CourseTerminology (ctUid, ctTitle, ctTerminology, ctLct) VALUES( CAST(NEW.ctUid AS BIGINT), NEW.ctTitle, NEW.ctTerminology, CAST(NEW.ctLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$368 = ['INSERT INTO CourseTerminology (ctUid, ctTitle, ctTerminology, ctLct) VALUES( CAST(NEW.ctUid AS BIGINT), NEW.ctTitle, NEW.ctTerminology, CAST(NEW.ctLct AS BIGINT))  ON CONFLICT(ctUid)  DO UPDATE SET ctTitle = NEW.ctTitle, ctTerminology = NEW.ctTerminology, ctLct = NEW.ctLct '];
    var tmp_326 = to(450, new ReplicationEntityMetaData(450, 'CourseTerminology', 'CourseTerminology_ReceiveView', tmp_319, 'ctLct', tmp_320, 1000, tmp_321, listOf(new Trigger('courseterminology_remote_insert', tmp_322, tmp_323, tmp_324, tmp_325, tmp$ret$368, 'SELECT \n                   CAST(NEW.ctLct AS BIGINT) >\n                       COALESCE((SELECT CourseTerminology_Existing.ctLct\n                                   FROM CourseTerminology CourseTerminology_Existing\n                                  WHERE CourseTerminology_Existing.ctUid = NEW.ctUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.ctLct AS BIGINT) >\n                       COALESCE((SELECT CourseTerminology_Existing.ctLct\n                                   FROM CourseTerminology CourseTerminology_Existing\n                                  WHERE CourseTerminology_Existing.ctUid = NEW.ctUid), 0)\n                   '))));
    var tmp_327 = listOf('cgsUid');
    var tmp_328 = listOf_0([new ReplicationFieldMetaData('cgsName', -1, true), new ReplicationFieldMetaData('cgsTotalGroups', 4, false), new ReplicationFieldMetaData('cgsActive', 16, false), new ReplicationFieldMetaData('cgsClazzUid', -5, false), new ReplicationFieldMetaData('cgsLct', -5, false), new ReplicationFieldMetaData('cgsUid', -5, false)]);
    var tmp_329 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_330 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_331 = [Event_INSERT_getInstance()];
    var tmp_332 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_333 = ['REPLACE INTO CourseGroupSet (cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct) VALUES( CAST(NEW.cgsUid AS BIGINT), NEW.cgsName, NEW.cgsTotalGroups, NEW.cgsActive, CAST(NEW.cgsClazzUid AS BIGINT), CAST(NEW.cgsLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$377 = ['INSERT INTO CourseGroupSet (cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct) VALUES( CAST(NEW.cgsUid AS BIGINT), NEW.cgsName, NEW.cgsTotalGroups, NEW.cgsActive, CAST(NEW.cgsClazzUid AS BIGINT), CAST(NEW.cgsLct AS BIGINT))  ON CONFLICT(cgsUid)  DO UPDATE SET cgsName = NEW.cgsName, cgsTotalGroups = NEW.cgsTotalGroups, cgsActive = NEW.cgsActive, cgsClazzUid = NEW.cgsClazzUid, cgsLct = NEW.cgsLct '];
    var tmp_334 = to(242, new ReplicationEntityMetaData(242, 'CourseGroupSet', 'CourseGroupSet_ReceiveView', tmp_327, 'cgsLct', tmp_328, 1000, tmp_329, listOf(new Trigger('coursegroupset_remote_insert', tmp_330, tmp_331, tmp_332, tmp_333, tmp$ret$377, 'SELECT \n                   CAST(NEW.cgsLct AS BIGINT) >\n                       COALESCE((SELECT CourseGroupSet_Existing.cgsLct\n                                   FROM CourseGroupSet CourseGroupSet_Existing\n                                  WHERE CourseGroupSet_Existing.cgsUid = NEW.cgsUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.cgsLct AS BIGINT) >\n                       COALESCE((SELECT CourseGroupSet_Existing.cgsLct\n                                   FROM CourseGroupSet CourseGroupSet_Existing\n                                  WHERE CourseGroupSet_Existing.cgsUid = NEW.cgsUid), 0)\n                   '))));
    var tmp_335 = listOf('cgmUid');
    var tmp_336 = listOf_0([new ReplicationFieldMetaData('cgmSetUid', -5, false), new ReplicationFieldMetaData('cgmGroupNumber', 4, false), new ReplicationFieldMetaData('cgmPersonUid', -5, false), new ReplicationFieldMetaData('cgmLct', -5, false), new ReplicationFieldMetaData('cgmUid', -5, false)]);
    var tmp_337 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_338 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_339 = [Event_INSERT_getInstance()];
    var tmp_340 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_341 = ['REPLACE INTO CourseGroupMember (cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) VALUES( CAST(NEW.cgmUid AS BIGINT), CAST(NEW.cgmSetUid AS BIGINT), NEW.cgmGroupNumber, CAST(NEW.cgmPersonUid AS BIGINT), CAST(NEW.cgmLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$386 = ['INSERT INTO CourseGroupMember (cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) VALUES( CAST(NEW.cgmUid AS BIGINT), CAST(NEW.cgmSetUid AS BIGINT), NEW.cgmGroupNumber, CAST(NEW.cgmPersonUid AS BIGINT), CAST(NEW.cgmLct AS BIGINT))  ON CONFLICT(cgmUid)  DO UPDATE SET cgmSetUid = NEW.cgmSetUid, cgmGroupNumber = NEW.cgmGroupNumber, cgmPersonUid = NEW.cgmPersonUid, cgmLct = NEW.cgmLct '];
    var tmp_342 = to(243, new ReplicationEntityMetaData(243, 'CourseGroupMember', 'CourseGroupMember_ReceiveView', tmp_335, 'cgmLct', tmp_336, 1000, tmp_337, listOf(new Trigger('coursegroupmember_remote_insert', tmp_338, tmp_339, tmp_340, tmp_341, tmp$ret$386, 'SELECT \n                   CAST(NEW.cgmLct AS BIGINT) >\n                       COALESCE((SELECT CourseGroupMember_Existing.cgmLct\n                                   FROM CourseGroupMember CourseGroupMember_Existing\n                                  WHERE CourseGroupMember_Existing.cgmUid = NEW.cgmUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.cgmLct AS BIGINT) >\n                       COALESCE((SELECT CourseGroupMember_Existing.cgmLct\n                                   FROM CourseGroupMember CourseGroupMember_Existing\n                                  WHERE CourseGroupMember_Existing.cgmUid = NEW.cgmUid), 0)\n                   '))));
    var tmp_343 = listOf('cepUid');
    var tmp_344 = listOf_0([new ReplicationFieldMetaData('cepContentEntryUid', -5, false), new ReplicationFieldMetaData('cepUri', -1, true), new ReplicationFieldMetaData('cepMd5', -1, true), new ReplicationFieldMetaData('cepFileSize', 4, false), new ReplicationFieldMetaData('cepTimestamp', -5, false), new ReplicationFieldMetaData('cepMimeType', -1, true), new ReplicationFieldMetaData('cepActive', 16, false), new ReplicationFieldMetaData('cepUid', -5, false)]);
    var tmp_345 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_346 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_347 = [Event_INSERT_getInstance()];
    var tmp_348 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_349 = ['REPLACE INTO ContentEntryPicture (cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive) VALUES( CAST(NEW.cepUid AS BIGINT), CAST(NEW.cepContentEntryUid AS BIGINT), NEW.cepUri, NEW.cepMd5, NEW.cepFileSize, CAST(NEW.cepTimestamp AS BIGINT), NEW.cepMimeType, NEW.cepActive) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$395 = ['INSERT INTO ContentEntryPicture (cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive) VALUES( CAST(NEW.cepUid AS BIGINT), CAST(NEW.cepContentEntryUid AS BIGINT), NEW.cepUri, NEW.cepMd5, NEW.cepFileSize, CAST(NEW.cepTimestamp AS BIGINT), NEW.cepMimeType, NEW.cepActive)  ON CONFLICT(cepUid)  DO UPDATE SET cepContentEntryUid = NEW.cepContentEntryUid, cepUri = NEW.cepUri, cepMd5 = NEW.cepMd5, cepFileSize = NEW.cepFileSize, cepTimestamp = NEW.cepTimestamp, cepMimeType = NEW.cepMimeType, cepActive = NEW.cepActive '];
    var tmp_350 = to(138, new ReplicationEntityMetaData(138, 'ContentEntryPicture', 'ContentEntryPicture_ReceiveView', tmp_343, 'cepTimestamp', tmp_344, 1000, tmp_345, listOf(new Trigger('ceppicture_remote_insert', tmp_346, tmp_347, tmp_348, tmp_349, tmp$ret$395, 'SELECT \n                   CAST(NEW.cepTimestamp AS BIGINT) >\n                       COALESCE((SELECT ContentEntryPicture_Existing.cepTimestamp\n                                   FROM ContentEntryPicture ContentEntryPicture_Existing\n                                  WHERE ContentEntryPicture_Existing.cepUid = NEW.cepUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.cepTimestamp AS BIGINT) >\n                       COALESCE((SELECT ContentEntryPicture_Existing.cepTimestamp\n                                   FROM ContentEntryPicture ContentEntryPicture_Existing\n                                  WHERE ContentEntryPicture_Existing.cepUid = NEW.cepUid), 0)\n                   '))));
    var tmp_351 = listOf_0(['aieActivityUid', 'aieHash']);
    var tmp_352 = listOf_0([new ReplicationFieldMetaData('aieActivityUid', -5, false), new ReplicationFieldMetaData('aieHash', -5, false), new ReplicationFieldMetaData('aieProp', 4, false), new ReplicationFieldMetaData('aieId', -1, true), new ReplicationFieldMetaData('aieLastMod', -5, false), new ReplicationFieldMetaData('aieIsDeleted', 16, false)]);
    var tmp_353 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_354 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_355 = [Event_INSERT_getInstance()];
    var tmp_356 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_357 = ['REPLACE INTO ActivityInteractionEntity (aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted) VALUES( CAST(NEW.aieActivityUid AS BIGINT), CAST(NEW.aieHash AS BIGINT), NEW.aieProp, NEW.aieId, CAST(NEW.aieLastMod AS BIGINT), NEW.aieIsDeleted) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$404 = ['INSERT INTO ActivityInteractionEntity (aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted) VALUES( CAST(NEW.aieActivityUid AS BIGINT), CAST(NEW.aieHash AS BIGINT), NEW.aieProp, NEW.aieId, CAST(NEW.aieLastMod AS BIGINT), NEW.aieIsDeleted)  ON CONFLICT(aieActivityUid, aieHash)  DO UPDATE SET aieProp = NEW.aieProp, aieId = NEW.aieId, aieLastMod = NEW.aieLastMod, aieIsDeleted = NEW.aieIsDeleted '];
    var tmp_358 = to(6401, new ReplicationEntityMetaData(6401, 'ActivityInteractionEntity', 'ActivityInteractionEntity_ReceiveView', tmp_351, 'aieLastMod', tmp_352, 1000, tmp_353, listOf(new Trigger('activityinteractionentity_remote_insert', tmp_354, tmp_355, tmp_356, tmp_357, tmp$ret$404, 'SELECT \n                   CAST(NEW.aieLastMod AS BIGINT) >\n                       COALESCE((SELECT ActivityInteractionEntity_Existing.aieLastMod\n                                   FROM ActivityInteractionEntity ActivityInteractionEntity_Existing\n                                  WHERE ActivityInteractionEntity_Existing.aieActivityUid = NEW.aieActivityUid AND ActivityInteractionEntity_Existing.aieHash = NEW.aieHash), 0)\n                   ', 'SELECT \n                   CAST(NEW.aieLastMod AS BIGINT) >\n                       COALESCE((SELECT ActivityInteractionEntity_Existing.aieLastMod\n                                   FROM ActivityInteractionEntity ActivityInteractionEntity_Existing\n                                  WHERE ActivityInteractionEntity_Existing.aieActivityUid = NEW.aieActivityUid AND ActivityInteractionEntity_Existing.aieHash = NEW.aieHash), 0)\n                   '))));
    var tmp_359 = listOf('coursePictureUid');
    var tmp_360 = listOf_0([new ReplicationFieldMetaData('coursePictureLct', -5, false), new ReplicationFieldMetaData('coursePictureUri', -1, true), new ReplicationFieldMetaData('coursePictureThumbnailUri', -1, true), new ReplicationFieldMetaData('coursePictureActive', 16, false), new ReplicationFieldMetaData('coursePictureUid', -5, false)]);
    var tmp_361 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_362 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_363 = [Event_INSERT_getInstance()];
    var tmp_364 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_365 = ['REPLACE INTO CoursePicture (coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) VALUES( CAST(NEW.coursePictureUid AS BIGINT), CAST(NEW.coursePictureLct AS BIGINT), NEW.coursePictureUri, NEW.coursePictureThumbnailUri, NEW.coursePictureActive) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$413 = ['INSERT INTO CoursePicture (coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) VALUES( CAST(NEW.coursePictureUid AS BIGINT), CAST(NEW.coursePictureLct AS BIGINT), NEW.coursePictureUri, NEW.coursePictureThumbnailUri, NEW.coursePictureActive)  ON CONFLICT(coursePictureUid)  DO UPDATE SET coursePictureLct = NEW.coursePictureLct, coursePictureUri = NEW.coursePictureUri, coursePictureThumbnailUri = NEW.coursePictureThumbnailUri, coursePictureActive = NEW.coursePictureActive '];
    var tmp_366 = to(125, new ReplicationEntityMetaData(125, 'CoursePicture', 'CoursePicture_ReceiveView', tmp_359, 'coursePictureLct', tmp_360, 1000, tmp_361, listOf(new Trigger('coursepicture_remote_insert', tmp_362, tmp_363, tmp_364, tmp_365, tmp$ret$413, 'SELECT \n                   CAST(NEW.coursePictureLct AS BIGINT) >\n                       COALESCE((SELECT CoursePicture_Existing.coursePictureLct\n                                   FROM CoursePicture CoursePicture_Existing\n                                  WHERE CoursePicture_Existing.coursePictureUid = NEW.coursePictureUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.coursePictureLct AS BIGINT) >\n                       COALESCE((SELECT CoursePicture_Existing.coursePictureLct\n                                   FROM CoursePicture CoursePicture_Existing\n                                  WHERE CoursePicture_Existing.coursePictureUid = NEW.coursePictureUid), 0)\n                   '))));
    var tmp_367 = listOf('discussionPostUid');
    var tmp_368 = listOf_0([new ReplicationFieldMetaData('discussionPostReplyToPostUid', -5, false), new ReplicationFieldMetaData('discussionPostTitle', -1, true), new ReplicationFieldMetaData('discussionPostMessage', -1, true), new ReplicationFieldMetaData('discussionPostStartDate', -5, false), new ReplicationFieldMetaData('discussionPostCourseBlockUid', -5, false), new ReplicationFieldMetaData('dpDeleted', 16, false), new ReplicationFieldMetaData('discussionPostStartedPersonUid', -5, false), new ReplicationFieldMetaData('discussionPostClazzUid', -5, false), new ReplicationFieldMetaData('discussionPostLct', -5, false), new ReplicationFieldMetaData('discussionPostVisible', 16, false), new ReplicationFieldMetaData('discussionPostArchive', 16, false), new ReplicationFieldMetaData('discussionPostUid', -5, false)]);
    var tmp_369 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_370 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_371 = [Event_INSERT_getInstance()];
    var tmp_372 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_373 = ['REPLACE INTO DiscussionPost (discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive) VALUES( CAST(NEW.discussionPostUid AS BIGINT), CAST(NEW.discussionPostReplyToPostUid AS BIGINT), NEW.discussionPostTitle, NEW.discussionPostMessage, CAST(NEW.discussionPostStartDate AS BIGINT), CAST(NEW.discussionPostCourseBlockUid AS BIGINT), NEW.dpDeleted, CAST(NEW.discussionPostStartedPersonUid AS BIGINT), CAST(NEW.discussionPostClazzUid AS BIGINT), CAST(NEW.discussionPostLct AS BIGINT), NEW.discussionPostVisible, NEW.discussionPostArchive) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$422 = ['INSERT INTO DiscussionPost (discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive) VALUES( CAST(NEW.discussionPostUid AS BIGINT), CAST(NEW.discussionPostReplyToPostUid AS BIGINT), NEW.discussionPostTitle, NEW.discussionPostMessage, CAST(NEW.discussionPostStartDate AS BIGINT), CAST(NEW.discussionPostCourseBlockUid AS BIGINT), NEW.dpDeleted, CAST(NEW.discussionPostStartedPersonUid AS BIGINT), CAST(NEW.discussionPostClazzUid AS BIGINT), CAST(NEW.discussionPostLct AS BIGINT), NEW.discussionPostVisible, NEW.discussionPostArchive)  ON CONFLICT(discussionPostUid)  DO UPDATE SET discussionPostReplyToPostUid = NEW.discussionPostReplyToPostUid, discussionPostTitle = NEW.discussionPostTitle, discussionPostMessage = NEW.discussionPostMessage, discussionPostStartDate = NEW.discussionPostStartDate, discussionPostCourseBlockUid = NEW.discussionPostCourseBlockUid, dpDeleted = NEW.dpDeleted, discussionPostStartedPersonUid = NEW.discussionPostStartedPersonUid, discussionPostClazzUid = NEW.discussionPostClazzUid, discussionPostLct = NEW.discussionPostLct, discussionPostVisible = NEW.discussionPostVisible, discussionPostArchive = NEW.discussionPostArchive '];
    var tmp_374 = to(132, new ReplicationEntityMetaData(132, 'DiscussionPost', 'DiscussionPost_ReceiveView', tmp_367, 'discussionPostLct', tmp_368, 1000, tmp_369, listOf(new Trigger('discussionpost_remote_insert', tmp_370, tmp_371, tmp_372, tmp_373, tmp$ret$422, 'SELECT \n                   CAST(NEW.discussionPostLct AS BIGINT) >\n                       COALESCE((SELECT DiscussionPost_Existing.discussionPostLct\n                                   FROM DiscussionPost DiscussionPost_Existing\n                                  WHERE DiscussionPost_Existing.discussionPostUid = NEW.discussionPostUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.discussionPostLct AS BIGINT) >\n                       COALESCE((SELECT DiscussionPost_Existing.discussionPostLct\n                                   FROM DiscussionPost DiscussionPost_Existing\n                                  WHERE DiscussionPost_Existing.discussionPostUid = NEW.discussionPostUid), 0)\n                   '))));
    var tmp_375 = listOf('messageUid');
    var tmp_376 = listOf_0([new ReplicationFieldMetaData('messageSenderPersonUid', -5, false), new ReplicationFieldMetaData('messageToPersonUid', -5, false), new ReplicationFieldMetaData('messageText', -1, true), new ReplicationFieldMetaData('messageTimestamp', -5, false), new ReplicationFieldMetaData('messageLct', -5, false), new ReplicationFieldMetaData('messageUid', -5, false)]);
    var tmp_377 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_378 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_379 = [Event_INSERT_getInstance()];
    var tmp_380 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_381 = ['REPLACE INTO Message (messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct) VALUES( CAST(NEW.messageUid AS BIGINT), CAST(NEW.messageSenderPersonUid AS BIGINT), CAST(NEW.messageToPersonUid AS BIGINT), NEW.messageText, CAST(NEW.messageTimestamp AS BIGINT), CAST(NEW.messageLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$431 = ['INSERT INTO Message (messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct) VALUES( CAST(NEW.messageUid AS BIGINT), CAST(NEW.messageSenderPersonUid AS BIGINT), CAST(NEW.messageToPersonUid AS BIGINT), NEW.messageText, CAST(NEW.messageTimestamp AS BIGINT), CAST(NEW.messageLct AS BIGINT))  ON CONFLICT(messageUid)  DO UPDATE SET messageSenderPersonUid = NEW.messageSenderPersonUid, messageToPersonUid = NEW.messageToPersonUid, messageText = NEW.messageText, messageTimestamp = NEW.messageTimestamp, messageLct = NEW.messageLct '];
    var tmp_382 = to(126, new ReplicationEntityMetaData(126, 'Message', 'Message_ReceiveView', tmp_375, 'messageLct', tmp_376, 1000, tmp_377, listOf(new Trigger('message_remote_insert', tmp_378, tmp_379, tmp_380, tmp_381, tmp$ret$431, 'SELECT \n                   CAST(NEW.messageLct AS BIGINT) >\n                       COALESCE((SELECT Message_Existing.messageLct\n                                   FROM Message Message_Existing\n                                  WHERE Message_Existing.messageUid = NEW.messageUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.messageLct AS BIGINT) >\n                       COALESCE((SELECT Message_Existing.messageLct\n                                   FROM Message Message_Existing\n                                  WHERE Message_Existing.messageUid = NEW.messageUid), 0)\n                   '))));
    var tmp_383 = listOf('srUid');
    var tmp_384 = listOf_0([new ReplicationFieldMetaData('srUid', -5, false), new ReplicationFieldMetaData('srSourcedId', -1, true), new ReplicationFieldMetaData('srCourseBlockUid', -5, false), new ReplicationFieldMetaData('srLineItemSourcedId', -1, true), new ReplicationFieldMetaData('srLineItemHref', -1, true), new ReplicationFieldMetaData('srClazzUid', -5, false), new ReplicationFieldMetaData('srAssignmentUid', -5, false), new ReplicationFieldMetaData('srStatus', 4, false), new ReplicationFieldMetaData('srMetaData', -1, true), new ReplicationFieldMetaData('srStudentPersonUid', -5, false), new ReplicationFieldMetaData('srStudentPersonSourcedId', -1, true), new ReplicationFieldMetaData('srStudentGroupId', 4, false), new ReplicationFieldMetaData('srMarkerPersonUid', -5, false), new ReplicationFieldMetaData('srMarkerGroupId', 4, false), new ReplicationFieldMetaData('srScoreStatus', 4, false), new ReplicationFieldMetaData('srScore', 6, false), new ReplicationFieldMetaData('srScoreDate', -5, false), new ReplicationFieldMetaData('srLastModified', -5, false), new ReplicationFieldMetaData('srComment', -1, true), new ReplicationFieldMetaData('srAppId', -1, true), new ReplicationFieldMetaData('srDeleted', 16, false)]);
    var tmp_385 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_386 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_387 = [Event_INSERT_getInstance()];
    var tmp_388 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_389 = ['REPLACE INTO StudentResult (srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted) VALUES( CAST(NEW.srUid AS BIGINT), NEW.srSourcedId, CAST(NEW.srCourseBlockUid AS BIGINT), NEW.srLineItemSourcedId, NEW.srLineItemHref, CAST(NEW.srClazzUid AS BIGINT), CAST(NEW.srAssignmentUid AS BIGINT), NEW.srStatus, NEW.srMetaData, CAST(NEW.srStudentPersonUid AS BIGINT), NEW.srStudentPersonSourcedId, NEW.srStudentGroupId, CAST(NEW.srMarkerPersonUid AS BIGINT), NEW.srMarkerGroupId, NEW.srScoreStatus, NEW.srScore, CAST(NEW.srScoreDate AS BIGINT), CAST(NEW.srLastModified AS BIGINT), NEW.srComment, NEW.srAppId, NEW.srDeleted) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$440 = ['INSERT INTO StudentResult (srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted) VALUES( CAST(NEW.srUid AS BIGINT), NEW.srSourcedId, CAST(NEW.srCourseBlockUid AS BIGINT), NEW.srLineItemSourcedId, NEW.srLineItemHref, CAST(NEW.srClazzUid AS BIGINT), CAST(NEW.srAssignmentUid AS BIGINT), NEW.srStatus, NEW.srMetaData, CAST(NEW.srStudentPersonUid AS BIGINT), NEW.srStudentPersonSourcedId, NEW.srStudentGroupId, CAST(NEW.srMarkerPersonUid AS BIGINT), NEW.srMarkerGroupId, NEW.srScoreStatus, NEW.srScore, CAST(NEW.srScoreDate AS BIGINT), CAST(NEW.srLastModified AS BIGINT), NEW.srComment, NEW.srAppId, NEW.srDeleted)  ON CONFLICT(srUid)  DO UPDATE SET srSourcedId = NEW.srSourcedId, srCourseBlockUid = NEW.srCourseBlockUid, srLineItemSourcedId = NEW.srLineItemSourcedId, srLineItemHref = NEW.srLineItemHref, srClazzUid = NEW.srClazzUid, srAssignmentUid = NEW.srAssignmentUid, srStatus = NEW.srStatus, srMetaData = NEW.srMetaData, srStudentPersonUid = NEW.srStudentPersonUid, srStudentPersonSourcedId = NEW.srStudentPersonSourcedId, srStudentGroupId = NEW.srStudentGroupId, srMarkerPersonUid = NEW.srMarkerPersonUid, srMarkerGroupId = NEW.srMarkerGroupId, srScoreStatus = NEW.srScoreStatus, srScore = NEW.srScore, srScoreDate = NEW.srScoreDate, srLastModified = NEW.srLastModified, srComment = NEW.srComment, srAppId = NEW.srAppId, srDeleted = NEW.srDeleted '];
    var tmp_390 = to(471, new ReplicationEntityMetaData(471, 'StudentResult', 'StudentResult_ReceiveView', tmp_383, 'srLastModified', tmp_384, 1000, tmp_385, listOf(new Trigger('studentresult_remote_insert', tmp_386, tmp_387, tmp_388, tmp_389, tmp$ret$440, 'SELECT \n                   CAST(NEW.srLastModified AS BIGINT) >\n                       COALESCE((SELECT StudentResult_Existing.srLastModified\n                                   FROM StudentResult StudentResult_Existing\n                                  WHERE StudentResult_Existing.srUid = NEW.srUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.srLastModified AS BIGINT) >\n                       COALESCE((SELECT StudentResult_Existing.srLastModified\n                                   FROM StudentResult StudentResult_Existing\n                                  WHERE StudentResult_Existing.srUid = NEW.srUid), 0)\n                   '))));
    var tmp_391 = listOf('cevUid');
    var tmp_392 = listOf_0([new ReplicationFieldMetaData('cevContentEntryUid', -5, false), new ReplicationFieldMetaData('cevOpenUri', -1, true), new ReplicationFieldMetaData('cevContentType', -1, true), new ReplicationFieldMetaData('cevManifestUrl', -1, true), new ReplicationFieldMetaData('cevSize', -5, false), new ReplicationFieldMetaData('cevInActive', 16, false), new ReplicationFieldMetaData('cevLastModified', -5, false), new ReplicationFieldMetaData('cevLct', -5, false), new ReplicationFieldMetaData('cevStorageSize', -5, false), new ReplicationFieldMetaData('cevOriginalSize', -5, false), new ReplicationFieldMetaData('cevUid', -5, false)]);
    var tmp_393 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_394 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_395 = [Event_INSERT_getInstance()];
    var tmp_396 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_397 = ['REPLACE INTO ContentEntryVersion (cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize) VALUES( CAST(NEW.cevUid AS BIGINT), CAST(NEW.cevContentEntryUid AS BIGINT), NEW.cevOpenUri, NEW.cevContentType, NEW.cevManifestUrl, CAST(NEW.cevSize AS BIGINT), NEW.cevInActive, CAST(NEW.cevLastModified AS BIGINT), CAST(NEW.cevLct AS BIGINT), CAST(NEW.cevStorageSize AS BIGINT), CAST(NEW.cevOriginalSize AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$449 = ['INSERT INTO ContentEntryVersion (cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize) VALUES( CAST(NEW.cevUid AS BIGINT), CAST(NEW.cevContentEntryUid AS BIGINT), NEW.cevOpenUri, NEW.cevContentType, NEW.cevManifestUrl, CAST(NEW.cevSize AS BIGINT), NEW.cevInActive, CAST(NEW.cevLastModified AS BIGINT), CAST(NEW.cevLct AS BIGINT), CAST(NEW.cevStorageSize AS BIGINT), CAST(NEW.cevOriginalSize AS BIGINT))  ON CONFLICT(cevUid)  DO UPDATE SET cevContentEntryUid = NEW.cevContentEntryUid, cevOpenUri = NEW.cevOpenUri, cevContentType = NEW.cevContentType, cevManifestUrl = NEW.cevManifestUrl, cevSize = NEW.cevSize, cevInActive = NEW.cevInActive, cevLastModified = NEW.cevLastModified, cevLct = NEW.cevLct, cevStorageSize = NEW.cevStorageSize, cevOriginalSize = NEW.cevOriginalSize '];
    var tmp_398 = new Trigger('content_entry_version_remote_ins', tmp_394, tmp_395, tmp_396, tmp_397, tmp$ret$449, 'SELECT \n                   CAST(NEW.cevLct AS BIGINT) >\n                       COALESCE((SELECT ContentEntryVersion_Existing.cevLct\n                                   FROM ContentEntryVersion ContentEntryVersion_Existing\n                                  WHERE ContentEntryVersion_Existing.cevUid = NEW.cevUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.cevLct AS BIGINT) >\n                       COALESCE((SELECT ContentEntryVersion_Existing.cevLct\n                                   FROM ContentEntryVersion ContentEntryVersion_Existing\n                                  WHERE ContentEntryVersion_Existing.cevUid = NEW.cevUid), 0)\n                   ');
    var tmp_399 = Order_AFTER_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_400 = [Event_INSERT_getInstance()];
    var tmp_401 = On_ENTITY_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_402 = ['\n                INSERT INTO OfflineItemPendingTransferJob(oiptjOiUid, oiptjTableId, oiptjEntityUid, oiptjType)\n                VALUES ((SELECT COALESCE((\n                 SELECT OfflineItem.oiUid\n                   FROM OfflineItem\n                  WHERE OfflineItem.oiContentEntryUid = NEW.cevContentEntryUid\n                    AND CAST(OfflineItem.oiActive AS INTEGER) = 1\n                    AND OfflineItem.oiNodeId = \n            (SELECT COALESCE(\n                    (SELECT nodeClientId \n                       FROM SyncNode \n                      LIMIT 1), 0))\n        \n        ), 0)),\n                        738, NEW.cevUid, 2)\n            '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$458 = ['\n                INSERT INTO OfflineItemPendingTransferJob(oiptjOiUid, oiptjTableId, oiptjEntityUid, oiptjType)\n                VALUES ((SELECT COALESCE((\n                 SELECT OfflineItem.oiUid\n                   FROM OfflineItem\n                  WHERE OfflineItem.oiContentEntryUid = NEW.cevContentEntryUid\n                    AND CAST(OfflineItem.oiActive AS INTEGER) = 1\n                    AND OfflineItem.oiNodeId = \n            (SELECT COALESCE(\n                    (SELECT nodeClientId \n                       FROM SyncNode \n                      LIMIT 1), 0))\n        \n        ), 0)),\n                        738, NEW.cevUid, 2)\n            '];
    var tmp_403 = to(738, new ReplicationEntityMetaData(738, 'ContentEntryVersion', 'ContentEntryVersion_ReceiveView', tmp_391, 'cevLct', tmp_392, 1000, tmp_393, listOf_0([tmp_398, new Trigger('content_entry_version_offline_item', tmp_399, tmp_400, tmp_401, tmp_402, tmp$ret$458, '\n                 SELECT EXISTS(\n                 SELECT OfflineItem.oiUid\n                   FROM OfflineItem\n                  WHERE OfflineItem.oiContentEntryUid = NEW.cevContentEntryUid\n                    AND CAST(OfflineItem.oiActive AS INTEGER) = 1\n                    AND OfflineItem.oiNodeId = \n            (SELECT COALESCE(\n                    (SELECT nodeClientId \n                       FROM SyncNode \n                      LIMIT 1), 0))\n        \n        )\n                    AND NOT EXISTS\n                        (SELECT TransferJob.tjUid\n                           FROM TransferJob\n                          WHERE TransferJob.tjTableId = 738\n                            AND TransferJob.tjEntityUid = NEW.cevUid)\n                 ', '\n                 SELECT EXISTS(\n                 SELECT OfflineItem.oiUid\n                   FROM OfflineItem\n                  WHERE OfflineItem.oiContentEntryUid = NEW.cevContentEntryUid\n                    AND CAST(OfflineItem.oiActive AS INTEGER) = 1\n                    AND OfflineItem.oiNodeId = \n            (SELECT COALESCE(\n                    (SELECT nodeClientId \n                       FROM SyncNode \n                      LIMIT 1), 0))\n        \n        )\n                    AND NOT EXISTS\n                        (SELECT TransferJob.tjUid\n                           FROM TransferJob\n                          WHERE TransferJob.tjTableId = 738\n                            AND TransferJob.tjEntityUid = NEW.cevUid)\n                 ')])));
    var tmp_404 = listOf('oiUid');
    var tmp_405 = listOf_0([new ReplicationFieldMetaData('oiNodeId', -5, false), new ReplicationFieldMetaData('oiClazzUid', -5, false), new ReplicationFieldMetaData('oiCourseBlockUid', -5, false), new ReplicationFieldMetaData('oiContentEntryUid', -5, false), new ReplicationFieldMetaData('oiActive', 16, false), new ReplicationFieldMetaData('oiLct', -5, false), new ReplicationFieldMetaData('oiUid', -5, false)]);
    var tmp_406 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_407 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_408 = [Event_INSERT_getInstance()];
    var tmp_409 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_410 = ['REPLACE INTO OfflineItem (oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct) VALUES( CAST(NEW.oiUid AS BIGINT), CAST(NEW.oiNodeId AS BIGINT), CAST(NEW.oiClazzUid AS BIGINT), CAST(NEW.oiCourseBlockUid AS BIGINT), CAST(NEW.oiContentEntryUid AS BIGINT), NEW.oiActive, CAST(NEW.oiLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$467 = ['INSERT INTO OfflineItem (oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct) VALUES( CAST(NEW.oiUid AS BIGINT), CAST(NEW.oiNodeId AS BIGINT), CAST(NEW.oiClazzUid AS BIGINT), CAST(NEW.oiCourseBlockUid AS BIGINT), CAST(NEW.oiContentEntryUid AS BIGINT), NEW.oiActive, CAST(NEW.oiLct AS BIGINT))  ON CONFLICT(oiUid)  DO UPDATE SET oiNodeId = NEW.oiNodeId, oiClazzUid = NEW.oiClazzUid, oiCourseBlockUid = NEW.oiCourseBlockUid, oiContentEntryUid = NEW.oiContentEntryUid, oiActive = NEW.oiActive, oiLct = NEW.oiLct '];
    var tmp_411 = to(971, new ReplicationEntityMetaData(971, 'OfflineItem', 'OfflineItem_ReceiveView', tmp_404, 'oiLct', tmp_405, 1000, tmp_406, listOf(new Trigger('offline_item_remote_ins', tmp_407, tmp_408, tmp_409, tmp_410, tmp$ret$467, 'SELECT \n                   CAST(NEW.oiLct AS BIGINT) >\n                       COALESCE((SELECT OfflineItem_Existing.oiLct\n                                   FROM OfflineItem OfflineItem_Existing\n                                  WHERE OfflineItem_Existing.oiUid = NEW.oiUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.oiLct AS BIGINT) >\n                       COALESCE((SELECT OfflineItem_Existing.oiLct\n                                   FROM OfflineItem OfflineItem_Existing\n                                  WHERE OfflineItem_Existing.oiUid = NEW.oiUid), 0)\n                   '))));
    var tmp_412 = listOf('delItemUid');
    var tmp_413 = listOf_0([new ReplicationFieldMetaData('delItemName', -1, true), new ReplicationFieldMetaData('delItemIconUri', -1, true), new ReplicationFieldMetaData('delItemLastModTime', -5, false), new ReplicationFieldMetaData('delItemTimeDeleted', -5, false), new ReplicationFieldMetaData('delItemEntityTable', 4, false), new ReplicationFieldMetaData('delItemEntityUid', -5, false), new ReplicationFieldMetaData('delItemDeletedByPersonUid', -5, false), new ReplicationFieldMetaData('delItemStatus', 4, false), new ReplicationFieldMetaData('delItemIsFolder', 16, false), new ReplicationFieldMetaData('delItemUid', -5, false)]);
    var tmp_414 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_415 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_416 = [Event_INSERT_getInstance()];
    var tmp_417 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_418 = ['REPLACE INTO DeletedItem (delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder) VALUES( CAST(NEW.delItemUid AS BIGINT), NEW.delItemName, NEW.delItemIconUri, CAST(NEW.delItemLastModTime AS BIGINT), CAST(NEW.delItemTimeDeleted AS BIGINT), NEW.delItemEntityTable, CAST(NEW.delItemEntityUid AS BIGINT), CAST(NEW.delItemDeletedByPersonUid AS BIGINT), NEW.delItemStatus, NEW.delItemIsFolder) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$476 = ['INSERT INTO DeletedItem (delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder) VALUES( CAST(NEW.delItemUid AS BIGINT), NEW.delItemName, NEW.delItemIconUri, CAST(NEW.delItemLastModTime AS BIGINT), CAST(NEW.delItemTimeDeleted AS BIGINT), NEW.delItemEntityTable, CAST(NEW.delItemEntityUid AS BIGINT), CAST(NEW.delItemDeletedByPersonUid AS BIGINT), NEW.delItemStatus, NEW.delItemIsFolder)  ON CONFLICT(delItemUid)  DO UPDATE SET delItemName = NEW.delItemName, delItemIconUri = NEW.delItemIconUri, delItemLastModTime = NEW.delItemLastModTime, delItemTimeDeleted = NEW.delItemTimeDeleted, delItemEntityTable = NEW.delItemEntityTable, delItemEntityUid = NEW.delItemEntityUid, delItemDeletedByPersonUid = NEW.delItemDeletedByPersonUid, delItemStatus = NEW.delItemStatus, delItemIsFolder = NEW.delItemIsFolder '];
    var tmp_419 = to(999, new ReplicationEntityMetaData(999, 'DeletedItem', 'DeletedItem_ReceiveView', tmp_412, 'delItemLastModTime', tmp_413, 1000, tmp_414, listOf(new Trigger('deleteditem_remote_insert', tmp_415, tmp_416, tmp_417, tmp_418, tmp$ret$476, 'SELECT \n                   CAST(NEW.delItemLastModTime AS BIGINT) >\n                       COALESCE((SELECT DeletedItem_Existing.delItemLastModTime\n                                   FROM DeletedItem DeletedItem_Existing\n                                  WHERE DeletedItem_Existing.delItemUid = NEW.delItemUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.delItemLastModTime AS BIGINT) >\n                       COALESCE((SELECT DeletedItem_Existing.delItemLastModTime\n                                   FROM DeletedItem DeletedItem_Existing\n                                  WHERE DeletedItem_Existing.delItemUid = NEW.delItemUid), 0)\n                   '))));
    var tmp_420 = listOf('erUid');
    var tmp_421 = listOf_0([new ReplicationFieldMetaData('erClazzUid', -5, false), new ReplicationFieldMetaData('erClazzName', -1, true), new ReplicationFieldMetaData('erPersonUid', -5, false), new ReplicationFieldMetaData('erPersonFullname', -1, true), new ReplicationFieldMetaData('erPersonPictureUri', -1, true), new ReplicationFieldMetaData('erPersonUsername', -1, true), new ReplicationFieldMetaData('erRole', 4, false), new ReplicationFieldMetaData('erRequestTime', -5, false), new ReplicationFieldMetaData('erStatus', 4, false), new ReplicationFieldMetaData('erStatusSetByPersonUid', -5, false), new ReplicationFieldMetaData('erDeleted', 16, false), new ReplicationFieldMetaData('erStatusSetAuth', -1, true), new ReplicationFieldMetaData('erLastModified', -5, false), new ReplicationFieldMetaData('erUid', -5, false)]);
    var tmp_422 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_423 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_424 = [Event_INSERT_getInstance()];
    var tmp_425 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_426 = ['REPLACE INTO EnrolmentRequest (erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified) VALUES( CAST(NEW.erUid AS BIGINT), CAST(NEW.erClazzUid AS BIGINT), NEW.erClazzName, CAST(NEW.erPersonUid AS BIGINT), NEW.erPersonFullname, NEW.erPersonPictureUri, NEW.erPersonUsername, NEW.erRole, CAST(NEW.erRequestTime AS BIGINT), NEW.erStatus, CAST(NEW.erStatusSetByPersonUid AS BIGINT), NEW.erDeleted, NEW.erStatusSetAuth, CAST(NEW.erLastModified AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$485 = ['INSERT INTO EnrolmentRequest (erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified) VALUES( CAST(NEW.erUid AS BIGINT), CAST(NEW.erClazzUid AS BIGINT), NEW.erClazzName, CAST(NEW.erPersonUid AS BIGINT), NEW.erPersonFullname, NEW.erPersonPictureUri, NEW.erPersonUsername, NEW.erRole, CAST(NEW.erRequestTime AS BIGINT), NEW.erStatus, CAST(NEW.erStatusSetByPersonUid AS BIGINT), NEW.erDeleted, NEW.erStatusSetAuth, CAST(NEW.erLastModified AS BIGINT))  ON CONFLICT(erUid)  DO UPDATE SET erClazzUid = NEW.erClazzUid, erClazzName = NEW.erClazzName, erPersonUid = NEW.erPersonUid, erPersonFullname = NEW.erPersonFullname, erPersonPictureUri = NEW.erPersonPictureUri, erPersonUsername = NEW.erPersonUsername, erRole = NEW.erRole, erRequestTime = NEW.erRequestTime, erStatus = NEW.erStatus, erStatusSetByPersonUid = NEW.erStatusSetByPersonUid, erDeleted = NEW.erDeleted, erStatusSetAuth = NEW.erStatusSetAuth, erLastModified = NEW.erLastModified '];
    var tmp_427 = to(10070, new ReplicationEntityMetaData(10070, 'EnrolmentRequest', 'EnrolmentRequest_ReceiveView', tmp_420, 'erLastModified', tmp_421, 1000, tmp_422, listOf(new Trigger('enrolmentrequest_remote_insert', tmp_423, tmp_424, tmp_425, tmp_426, tmp$ret$485, 'SELECT \n                   CAST(NEW.erLastModified AS BIGINT) >\n                       COALESCE((SELECT EnrolmentRequest_Existing.erLastModified\n                                   FROM EnrolmentRequest EnrolmentRequest_Existing\n                                  WHERE EnrolmentRequest_Existing.erUid = NEW.erUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.erLastModified AS BIGINT) >\n                       COALESCE((SELECT EnrolmentRequest_Existing.erLastModified\n                                   FROM EnrolmentRequest EnrolmentRequest_Existing\n                                  WHERE EnrolmentRequest_Existing.erUid = NEW.erUid), 0)\n                   '))));
    var tmp_428 = listOf('cpUid');
    var tmp_429 = listOf_0([new ReplicationFieldMetaData('cpLastModified', -5, false), new ReplicationFieldMetaData('cpClazzUid', -5, false), new ReplicationFieldMetaData('cpToEnrolmentRole', 4, false), new ReplicationFieldMetaData('cpToPersonUid', -5, false), new ReplicationFieldMetaData('cpToGroupUid', -5, false), new ReplicationFieldMetaData('cpPermissionsFlag', -5, false), new ReplicationFieldMetaData('cpIsDeleted', 16, false), new ReplicationFieldMetaData('cpUid', -5, false)]);
    var tmp_430 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_431 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_432 = [Event_INSERT_getInstance()];
    var tmp_433 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_434 = ['REPLACE INTO CoursePermission (cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) VALUES( CAST(NEW.cpUid AS BIGINT), CAST(NEW.cpLastModified AS BIGINT), CAST(NEW.cpClazzUid AS BIGINT), NEW.cpToEnrolmentRole, CAST(NEW.cpToPersonUid AS BIGINT), CAST(NEW.cpToGroupUid AS BIGINT), CAST(NEW.cpPermissionsFlag AS BIGINT), NEW.cpIsDeleted) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$494 = ['INSERT INTO CoursePermission (cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) VALUES( CAST(NEW.cpUid AS BIGINT), CAST(NEW.cpLastModified AS BIGINT), CAST(NEW.cpClazzUid AS BIGINT), NEW.cpToEnrolmentRole, CAST(NEW.cpToPersonUid AS BIGINT), CAST(NEW.cpToGroupUid AS BIGINT), CAST(NEW.cpPermissionsFlag AS BIGINT), NEW.cpIsDeleted)  ON CONFLICT(cpUid)  DO UPDATE SET cpLastModified = NEW.cpLastModified, cpClazzUid = NEW.cpClazzUid, cpToEnrolmentRole = NEW.cpToEnrolmentRole, cpToPersonUid = NEW.cpToPersonUid, cpToGroupUid = NEW.cpToGroupUid, cpPermissionsFlag = NEW.cpPermissionsFlag, cpIsDeleted = NEW.cpIsDeleted '];
    var tmp_435 = to(10012, new ReplicationEntityMetaData(10012, 'CoursePermission', 'CoursePermission_ReceiveView', tmp_428, 'cpLastModified', tmp_429, 1000, tmp_430, listOf(new Trigger('coursepermission_remote_insert', tmp_431, tmp_432, tmp_433, tmp_434, tmp$ret$494, 'SELECT \n                   CAST(NEW.cpLastModified AS BIGINT) >\n                       COALESCE((SELECT CoursePermission_Existing.cpLastModified\n                                   FROM CoursePermission CoursePermission_Existing\n                                  WHERE CoursePermission_Existing.cpUid = NEW.cpUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.cpLastModified AS BIGINT) >\n                       COALESCE((SELECT CoursePermission_Existing.cpLastModified\n                                   FROM CoursePermission CoursePermission_Existing\n                                  WHERE CoursePermission_Existing.cpUid = NEW.cpUid), 0)\n                   '))));
    var tmp_436 = listOf('spUid');
    var tmp_437 = listOf_0([new ReplicationFieldMetaData('spToPersonUid', -5, false), new ReplicationFieldMetaData('spToGroupUid', -5, false), new ReplicationFieldMetaData('spPermissionsFlag', -5, false), new ReplicationFieldMetaData('spLastModified', -5, false), new ReplicationFieldMetaData('spIsDeleted', 16, false), new ReplicationFieldMetaData('spUid', -5, false)]);
    var tmp_438 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_439 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_440 = [Event_INSERT_getInstance()];
    var tmp_441 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_442 = ['REPLACE INTO SystemPermission (spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) VALUES( CAST(NEW.spUid AS BIGINT), CAST(NEW.spToPersonUid AS BIGINT), CAST(NEW.spToGroupUid AS BIGINT), CAST(NEW.spPermissionsFlag AS BIGINT), CAST(NEW.spLastModified AS BIGINT), NEW.spIsDeleted) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$503 = ['INSERT INTO SystemPermission (spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) VALUES( CAST(NEW.spUid AS BIGINT), CAST(NEW.spToPersonUid AS BIGINT), CAST(NEW.spToGroupUid AS BIGINT), CAST(NEW.spPermissionsFlag AS BIGINT), CAST(NEW.spLastModified AS BIGINT), NEW.spIsDeleted)  ON CONFLICT(spUid)  DO UPDATE SET spToPersonUid = NEW.spToPersonUid, spToGroupUid = NEW.spToGroupUid, spPermissionsFlag = NEW.spPermissionsFlag, spLastModified = NEW.spLastModified, spIsDeleted = NEW.spIsDeleted '];
    var tmp_443 = to(10011, new ReplicationEntityMetaData(10011, 'SystemPermission', 'SystemPermission_ReceiveView', tmp_436, 'spLastModified', tmp_437, 1000, tmp_438, listOf(new Trigger('systempermission_remote_insert', tmp_439, tmp_440, tmp_441, tmp_442, tmp$ret$503, 'SELECT \n                   CAST(NEW.spLastModified AS BIGINT) >\n                       COALESCE((SELECT SystemPermission_Existing.spLastModified\n                                   FROM SystemPermission SystemPermission_Existing\n                                  WHERE SystemPermission_Existing.spUid = NEW.spUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.spLastModified AS BIGINT) >\n                       COALESCE((SELECT SystemPermission_Existing.spLastModified\n                                   FROM SystemPermission SystemPermission_Existing\n                                  WHERE SystemPermission_Existing.spUid = NEW.spUid), 0)\n                   '))));
    var tmp_444 = listOf('cbpUid');
    var tmp_445 = listOf_0([new ReplicationFieldMetaData('cbpUid', -5, false), new ReplicationFieldMetaData('cbpLct', -5, false), new ReplicationFieldMetaData('cbpPictureUri', -1, true), new ReplicationFieldMetaData('cbpThumbnailUri', -1, true)]);
    var tmp_446 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_447 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_448 = [Event_INSERT_getInstance()];
    var tmp_449 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_450 = ['REPLACE INTO CourseBlockPicture (cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) VALUES( CAST(NEW.cbpUid AS BIGINT), CAST(NEW.cbpLct AS BIGINT), NEW.cbpPictureUri, NEW.cbpThumbnailUri) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$512 = ['INSERT INTO CourseBlockPicture (cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) VALUES( CAST(NEW.cbpUid AS BIGINT), CAST(NEW.cbpLct AS BIGINT), NEW.cbpPictureUri, NEW.cbpThumbnailUri)  ON CONFLICT(cbpUid)  DO UPDATE SET cbpLct = NEW.cbpLct, cbpPictureUri = NEW.cbpPictureUri, cbpThumbnailUri = NEW.cbpThumbnailUri '];
    var tmp_451 = to(6677, new ReplicationEntityMetaData(6677, 'CourseBlockPicture', 'CourseBlockPicture_ReceiveView', tmp_444, 'cbpLct', tmp_445, 1000, tmp_446, listOf(new Trigger('courseblockpicture_remote_insert', tmp_447, tmp_448, tmp_449, tmp_450, tmp$ret$512, 'SELECT \n                   CAST(NEW.cbpLct AS BIGINT) >\n                       COALESCE((SELECT CourseBlockPicture_Existing.cbpLct\n                                   FROM CourseBlockPicture CourseBlockPicture_Existing\n                                  WHERE CourseBlockPicture_Existing.cbpUid = NEW.cbpUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.cbpLct AS BIGINT) >\n                       COALESCE((SELECT CourseBlockPicture_Existing.cbpLct\n                                   FROM CourseBlockPicture CourseBlockPicture_Existing\n                                  WHERE CourseBlockPicture_Existing.cbpUid = NEW.cbpUid), 0)\n                   '))));
    var tmp_452 = listOf('cepUid');
    var tmp_453 = listOf_0([new ReplicationFieldMetaData('cepUid', -5, false), new ReplicationFieldMetaData('cepLct', -5, false), new ReplicationFieldMetaData('cepPictureUri', -1, true), new ReplicationFieldMetaData('cepThumbnailUri', -1, true)]);
    var tmp_454 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_455 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_456 = [Event_INSERT_getInstance()];
    var tmp_457 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_458 = ['REPLACE INTO ContentEntryPicture2 (cepUid, cepLct, cepPictureUri, cepThumbnailUri) VALUES( CAST(NEW.cepUid AS BIGINT), CAST(NEW.cepLct AS BIGINT), NEW.cepPictureUri, NEW.cepThumbnailUri) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$521 = ['INSERT INTO ContentEntryPicture2 (cepUid, cepLct, cepPictureUri, cepThumbnailUri) VALUES( CAST(NEW.cepUid AS BIGINT), CAST(NEW.cepLct AS BIGINT), NEW.cepPictureUri, NEW.cepThumbnailUri)  ON CONFLICT(cepUid)  DO UPDATE SET cepLct = NEW.cepLct, cepPictureUri = NEW.cepPictureUri, cepThumbnailUri = NEW.cepThumbnailUri '];
    var tmp_459 = to(6678, new ReplicationEntityMetaData(6678, 'ContentEntryPicture2', 'ContentEntryPicture2_ReceiveView', tmp_452, 'cepLct', tmp_453, 1000, tmp_454, listOf(new Trigger('contententrypicture2_remote_insert', tmp_455, tmp_456, tmp_457, tmp_458, tmp$ret$521, 'SELECT \n                   CAST(NEW.cepLct AS BIGINT) >\n                       COALESCE((SELECT ContentEntryPicture2_Existing.cepLct\n                                   FROM ContentEntryPicture2 ContentEntryPicture2_Existing\n                                  WHERE ContentEntryPicture2_Existing.cepUid = NEW.cepUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.cepLct AS BIGINT) >\n                       COALESCE((SELECT ContentEntryPicture2_Existing.cepLct\n                                   FROM ContentEntryPicture2 ContentEntryPicture2_Existing\n                                  WHERE ContentEntryPicture2_Existing.cepUid = NEW.cepUid), 0)\n                   '))));
    var tmp_460 = listOf_0(['vlmeVerbUid', 'vlmeLangHash']);
    var tmp_461 = listOf_0([new ReplicationFieldMetaData('vlmeVerbUid', -5, false), new ReplicationFieldMetaData('vlmeLangHash', -5, false), new ReplicationFieldMetaData('vlmeLangCode', -1, true), new ReplicationFieldMetaData('vlmeEntryString', -1, true), new ReplicationFieldMetaData('vlmeLastModified', -5, false)]);
    var tmp_462 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_463 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_464 = [Event_INSERT_getInstance()];
    var tmp_465 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_466 = ['REPLACE INTO VerbLangMapEntry (vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified) VALUES( CAST(NEW.vlmeVerbUid AS BIGINT), CAST(NEW.vlmeLangHash AS BIGINT), NEW.vlmeLangCode, NEW.vlmeEntryString, CAST(NEW.vlmeLastModified AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$530 = ['INSERT INTO VerbLangMapEntry (vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified) VALUES( CAST(NEW.vlmeVerbUid AS BIGINT), CAST(NEW.vlmeLangHash AS BIGINT), NEW.vlmeLangCode, NEW.vlmeEntryString, CAST(NEW.vlmeLastModified AS BIGINT))  ON CONFLICT(vlmeVerbUid, vlmeLangHash)  DO UPDATE SET vlmeLangCode = NEW.vlmeLangCode, vlmeEntryString = NEW.vlmeEntryString, vlmeLastModified = NEW.vlmeLastModified '];
    var tmp_467 = to(620, new ReplicationEntityMetaData(620, 'VerbLangMapEntry', 'VerbLangMapEntry_ReceiveView', tmp_460, 'vlmeLastModified', tmp_461, 1000, tmp_462, listOf(new Trigger('verblangmapentry_remote_insert', tmp_463, tmp_464, tmp_465, tmp_466, tmp$ret$530, 'SELECT \n                   CAST(NEW.vlmeLastModified AS BIGINT) >\n                       COALESCE((SELECT VerbLangMapEntry_Existing.vlmeLastModified\n                                   FROM VerbLangMapEntry VerbLangMapEntry_Existing\n                                  WHERE VerbLangMapEntry_Existing.vlmeVerbUid = NEW.vlmeVerbUid AND VerbLangMapEntry_Existing.vlmeLangHash = NEW.vlmeLangHash), 0)\n                   ', 'SELECT \n                   CAST(NEW.vlmeLastModified AS BIGINT) >\n                       COALESCE((SELECT VerbLangMapEntry_Existing.vlmeLastModified\n                                   FROM VerbLangMapEntry VerbLangMapEntry_Existing\n                                  WHERE VerbLangMapEntry_Existing.vlmeVerbUid = NEW.vlmeVerbUid AND VerbLangMapEntry_Existing.vlmeLangHash = NEW.vlmeLangHash), 0)\n                   '))));
    var tmp_468 = listOf_0(['gmajGroupActorUid', 'gmajMemberActorUid']);
    var tmp_469 = listOf_0([new ReplicationFieldMetaData('gmajGroupActorUid', -5, false), new ReplicationFieldMetaData('gmajMemberActorUid', -5, false), new ReplicationFieldMetaData('gmajLastMod', -5, false)]);
    var tmp_470 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_471 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_472 = [Event_INSERT_getInstance()];
    var tmp_473 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_474 = ['REPLACE INTO GroupMemberActorJoin (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) VALUES( CAST(NEW.gmajGroupActorUid AS BIGINT), CAST(NEW.gmajMemberActorUid AS BIGINT), CAST(NEW.gmajLastMod AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$539 = ['INSERT INTO GroupMemberActorJoin (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) VALUES( CAST(NEW.gmajGroupActorUid AS BIGINT), CAST(NEW.gmajMemberActorUid AS BIGINT), CAST(NEW.gmajLastMod AS BIGINT))  ON CONFLICT(gmajGroupActorUid, gmajMemberActorUid)  DO UPDATE SET gmajLastMod = NEW.gmajLastMod '];
    var tmp_475 = to(4232, new ReplicationEntityMetaData(4232, 'GroupMemberActorJoin', 'GroupMemberActorJoin_ReceiveView', tmp_468, 'gmajLastMod', tmp_469, 1000, tmp_470, listOf(new Trigger('groupmemberactorjoin_remote_insert', tmp_471, tmp_472, tmp_473, tmp_474, tmp$ret$539, 'SELECT \n                   CAST(NEW.gmajLastMod AS BIGINT) >\n                       COALESCE((SELECT GroupMemberActorJoin_Existing.gmajLastMod\n                                   FROM GroupMemberActorJoin GroupMemberActorJoin_Existing\n                                  WHERE GroupMemberActorJoin_Existing.gmajGroupActorUid = NEW.gmajGroupActorUid AND GroupMemberActorJoin_Existing.gmajMemberActorUid = NEW.gmajMemberActorUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.gmajLastMod AS BIGINT) >\n                       COALESCE((SELECT GroupMemberActorJoin_Existing.gmajLastMod\n                                   FROM GroupMemberActorJoin GroupMemberActorJoin_Existing\n                                  WHERE GroupMemberActorJoin_Existing.gmajGroupActorUid = NEW.gmajGroupActorUid AND GroupMemberActorJoin_Existing.gmajMemberActorUid = NEW.gmajMemberActorUid), 0)\n                   '))));
    var tmp_476 = listOf_0(['almeActivityUid', 'almeHash']);
    var tmp_477 = listOf_0([new ReplicationFieldMetaData('almeActivityUid', -5, false), new ReplicationFieldMetaData('almeHash', -5, false), new ReplicationFieldMetaData('almeLangCode', -1, true), new ReplicationFieldMetaData('almeValue', -1, true), new ReplicationFieldMetaData('almeAieHash', -5, false), new ReplicationFieldMetaData('almeLastMod', -5, false)]);
    var tmp_478 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_479 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_480 = [Event_INSERT_getInstance()];
    var tmp_481 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_482 = ['REPLACE INTO ActivityLangMapEntry (almeActivityUid, almeHash, almeLangCode, almeValue, almeAieHash, almeLastMod) VALUES( CAST(NEW.almeActivityUid AS BIGINT), CAST(NEW.almeHash AS BIGINT), NEW.almeLangCode, NEW.almeValue, CAST(NEW.almeAieHash AS BIGINT), CAST(NEW.almeLastMod AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$548 = ['INSERT INTO ActivityLangMapEntry (almeActivityUid, almeHash, almeLangCode, almeValue, almeAieHash, almeLastMod) VALUES( CAST(NEW.almeActivityUid AS BIGINT), CAST(NEW.almeHash AS BIGINT), NEW.almeLangCode, NEW.almeValue, CAST(NEW.almeAieHash AS BIGINT), CAST(NEW.almeLastMod AS BIGINT))  ON CONFLICT(almeActivityUid, almeHash)  DO UPDATE SET almeLangCode = NEW.almeLangCode, almeValue = NEW.almeValue, almeAieHash = NEW.almeAieHash, almeLastMod = NEW.almeLastMod '];
    var tmp_483 = to(6442, new ReplicationEntityMetaData(6442, 'ActivityLangMapEntry', 'ActivityLangMapEntry_ReceiveView', tmp_476, 'almeLastMod', tmp_477, 1000, tmp_478, listOf(new Trigger('activitylangmapentry_remote_insert', tmp_479, tmp_480, tmp_481, tmp_482, tmp$ret$548, 'SELECT \n                   CAST(NEW.almeLastMod AS BIGINT) >\n                       COALESCE((SELECT ActivityLangMapEntry_Existing.almeLastMod\n                                   FROM ActivityLangMapEntry ActivityLangMapEntry_Existing\n                                  WHERE ActivityLangMapEntry_Existing.almeActivityUid = NEW.almeActivityUid AND ActivityLangMapEntry_Existing.almeHash = NEW.almeHash), 0)\n                   ', 'SELECT \n                   CAST(NEW.almeLastMod AS BIGINT) >\n                       COALESCE((SELECT ActivityLangMapEntry_Existing.almeLastMod\n                                   FROM ActivityLangMapEntry ActivityLangMapEntry_Existing\n                                  WHERE ActivityLangMapEntry_Existing.almeActivityUid = NEW.almeActivityUid AND ActivityLangMapEntry_Existing.almeHash = NEW.almeHash), 0)\n                   '))));
    var tmp_484 = listOf_0(['aeeActivityUid', 'aeeKeyHash']);
    var tmp_485 = listOf_0([new ReplicationFieldMetaData('aeeActivityUid', -5, false), new ReplicationFieldMetaData('aeeKeyHash', -5, false), new ReplicationFieldMetaData('aeeKey', -1, true), new ReplicationFieldMetaData('aeeJson', -1, true), new ReplicationFieldMetaData('aeeLastMod', -5, false), new ReplicationFieldMetaData('aeeIsDeleted', 16, false)]);
    var tmp_486 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_487 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_488 = [Event_INSERT_getInstance()];
    var tmp_489 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_490 = ['REPLACE INTO ActivityExtensionEntity (aeeActivityUid, aeeKeyHash, aeeKey, aeeJson, aeeLastMod, aeeIsDeleted) VALUES( CAST(NEW.aeeActivityUid AS BIGINT), CAST(NEW.aeeKeyHash AS BIGINT), NEW.aeeKey, NEW.aeeJson, CAST(NEW.aeeLastMod AS BIGINT), NEW.aeeIsDeleted) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$557 = ['INSERT INTO ActivityExtensionEntity (aeeActivityUid, aeeKeyHash, aeeKey, aeeJson, aeeLastMod, aeeIsDeleted) VALUES( CAST(NEW.aeeActivityUid AS BIGINT), CAST(NEW.aeeKeyHash AS BIGINT), NEW.aeeKey, NEW.aeeJson, CAST(NEW.aeeLastMod AS BIGINT), NEW.aeeIsDeleted)  ON CONFLICT(aeeActivityUid, aeeKeyHash)  DO UPDATE SET aeeKey = NEW.aeeKey, aeeJson = NEW.aeeJson, aeeLastMod = NEW.aeeLastMod, aeeIsDeleted = NEW.aeeIsDeleted '];
    var tmp_491 = to(6405, new ReplicationEntityMetaData(6405, 'ActivityExtensionEntity', 'ActivityExtensionEntity_ReceiveView', tmp_484, 'aeeLastMod', tmp_485, 1000, tmp_486, listOf(new Trigger('activityextensionentity_remote_insert', tmp_487, tmp_488, tmp_489, tmp_490, tmp$ret$557, 'SELECT \n                   CAST(NEW.aeeLastMod AS BIGINT) >\n                       COALESCE((SELECT ActivityExtensionEntity_Existing.aeeLastMod\n                                   FROM ActivityExtensionEntity ActivityExtensionEntity_Existing\n                                  WHERE ActivityExtensionEntity_Existing.aeeActivityUid = NEW.aeeActivityUid AND ActivityExtensionEntity_Existing.aeeKeyHash = NEW.aeeKeyHash), 0)\n                   ', 'SELECT \n                   CAST(NEW.aeeLastMod AS BIGINT) >\n                       COALESCE((SELECT ActivityExtensionEntity_Existing.aeeLastMod\n                                   FROM ActivityExtensionEntity ActivityExtensionEntity_Existing\n                                  WHERE ActivityExtensionEntity_Existing.aeeActivityUid = NEW.aeeActivityUid AND ActivityExtensionEntity_Existing.aeeKeyHash = NEW.aeeKeyHash), 0)\n                   '))));
    var tmp_492 = listOf_0(['scajFromStatementIdHi', 'scajFromStatementIdLo', 'scajToHash']);
    var tmp_493 = listOf_0([new ReplicationFieldMetaData('scajFromStatementIdHi', -5, false), new ReplicationFieldMetaData('scajFromStatementIdLo', -5, false), new ReplicationFieldMetaData('scajToHash', -5, false), new ReplicationFieldMetaData('scajContextType', 4, false), new ReplicationFieldMetaData('scajToActivityUid', -5, false), new ReplicationFieldMetaData('scajToActivityId', -1, true), new ReplicationFieldMetaData('scajEtag', -5, false)]);
    var tmp_494 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_495 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_496 = [Event_INSERT_getInstance()];
    var tmp_497 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_498 = ['REPLACE INTO StatementContextActivityJoin (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash, scajContextType, scajToActivityUid, scajToActivityId, scajEtag) VALUES( CAST(NEW.scajFromStatementIdHi AS BIGINT), CAST(NEW.scajFromStatementIdLo AS BIGINT), CAST(NEW.scajToHash AS BIGINT), NEW.scajContextType, CAST(NEW.scajToActivityUid AS BIGINT), NEW.scajToActivityId, CAST(NEW.scajEtag AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$566 = ['INSERT INTO StatementContextActivityJoin (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash, scajContextType, scajToActivityUid, scajToActivityId, scajEtag) VALUES( CAST(NEW.scajFromStatementIdHi AS BIGINT), CAST(NEW.scajFromStatementIdLo AS BIGINT), CAST(NEW.scajToHash AS BIGINT), NEW.scajContextType, CAST(NEW.scajToActivityUid AS BIGINT), NEW.scajToActivityId, CAST(NEW.scajEtag AS BIGINT))  ON CONFLICT(scajFromStatementIdHi, scajFromStatementIdLo, scajToHash)  DO UPDATE SET scajContextType = NEW.scajContextType, scajToActivityUid = NEW.scajToActivityUid, scajToActivityId = NEW.scajToActivityId, scajEtag = NEW.scajEtag '];
    var tmp_499 = to(44044, new ReplicationEntityMetaData(44044, 'StatementContextActivityJoin', 'StatementContextActivityJoin_ReceiveView', tmp_492, 'scajEtag', tmp_493, 1000, tmp_494, listOf(new Trigger('statementcontextactivityjoin_remoteinsert', tmp_495, tmp_496, tmp_497, tmp_498, tmp$ret$566, 'SELECT \n               CAST(NEW.scajEtag AS BIGINT) != \n                   COALESCE((SELECT StatementContextActivityJoin_Existing.scajEtag\n                                   FROM StatementContextActivityJoin StatementContextActivityJoin_Existing\n                                  WHERE StatementContextActivityJoin_Existing.scajFromStatementIdHi = NEW.scajFromStatementIdHi AND StatementContextActivityJoin_Existing.scajFromStatementIdLo = NEW.scajFromStatementIdLo AND StatementContextActivityJoin_Existing.scajToHash = NEW.scajToHash), 0)\n            ', 'SELECT \n               CAST(NEW.scajEtag AS BIGINT) != \n                   COALESCE((SELECT StatementContextActivityJoin_Existing.scajEtag\n                                   FROM StatementContextActivityJoin StatementContextActivityJoin_Existing\n                                  WHERE StatementContextActivityJoin_Existing.scajFromStatementIdHi = NEW.scajFromStatementIdHi AND StatementContextActivityJoin_Existing.scajFromStatementIdLo = NEW.scajFromStatementIdLo AND StatementContextActivityJoin_Existing.scajToHash = NEW.scajToHash), 0)\n            '))));
    var tmp_500 = listOf('xseUid');
    var tmp_501 = listOf_0([new ReplicationFieldMetaData('xseLastMod', -5, false), new ReplicationFieldMetaData('xseRegistrationHi', -5, false), new ReplicationFieldMetaData('xseRegistrationLo', -5, false), new ReplicationFieldMetaData('xseUsUid', -5, false), new ReplicationFieldMetaData('xseAccountPersonUid', -5, false), new ReplicationFieldMetaData('xseActorUid', -5, false), new ReplicationFieldMetaData('xseAccountUsername', -1, false), new ReplicationFieldMetaData('xseClazzUid', -5, false), new ReplicationFieldMetaData('xseCbUid', -5, false), new ReplicationFieldMetaData('xseContentEntryUid', -5, false), new ReplicationFieldMetaData('xseContentEntryVersionUid', -5, false), new ReplicationFieldMetaData('xseRootActivityId', -1, false), new ReplicationFieldMetaData('xseRootActivityUid', -5, false), new ReplicationFieldMetaData('xseStartTime', -5, false), new ReplicationFieldMetaData('xseExpireTime', -5, false), new ReplicationFieldMetaData('xseAuth', -1, true), new ReplicationFieldMetaData('xseCompleted', 16, false), new ReplicationFieldMetaData('knownActorUidToPersonUids', -1, false), new ReplicationFieldMetaData('xseUid', -5, false)]);
    var tmp_502 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_503 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_504 = [Event_INSERT_getInstance()];
    var tmp_505 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_506 = ['REPLACE INTO XapiSessionEntity (xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids) VALUES( CAST(NEW.xseUid AS BIGINT), CAST(NEW.xseLastMod AS BIGINT), CAST(NEW.xseRegistrationHi AS BIGINT), CAST(NEW.xseRegistrationLo AS BIGINT), CAST(NEW.xseUsUid AS BIGINT), CAST(NEW.xseAccountPersonUid AS BIGINT), CAST(NEW.xseActorUid AS BIGINT), NEW.xseAccountUsername, CAST(NEW.xseClazzUid AS BIGINT), CAST(NEW.xseCbUid AS BIGINT), CAST(NEW.xseContentEntryUid AS BIGINT), CAST(NEW.xseContentEntryVersionUid AS BIGINT), NEW.xseRootActivityId, CAST(NEW.xseRootActivityUid AS BIGINT), CAST(NEW.xseStartTime AS BIGINT), CAST(NEW.xseExpireTime AS BIGINT), NEW.xseAuth, NEW.xseCompleted, NEW.knownActorUidToPersonUids) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$575 = ['INSERT INTO XapiSessionEntity (xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids) VALUES( CAST(NEW.xseUid AS BIGINT), CAST(NEW.xseLastMod AS BIGINT), CAST(NEW.xseRegistrationHi AS BIGINT), CAST(NEW.xseRegistrationLo AS BIGINT), CAST(NEW.xseUsUid AS BIGINT), CAST(NEW.xseAccountPersonUid AS BIGINT), CAST(NEW.xseActorUid AS BIGINT), NEW.xseAccountUsername, CAST(NEW.xseClazzUid AS BIGINT), CAST(NEW.xseCbUid AS BIGINT), CAST(NEW.xseContentEntryUid AS BIGINT), CAST(NEW.xseContentEntryVersionUid AS BIGINT), NEW.xseRootActivityId, CAST(NEW.xseRootActivityUid AS BIGINT), CAST(NEW.xseStartTime AS BIGINT), CAST(NEW.xseExpireTime AS BIGINT), NEW.xseAuth, NEW.xseCompleted, NEW.knownActorUidToPersonUids)  ON CONFLICT(xseUid)  DO UPDATE SET xseLastMod = NEW.xseLastMod, xseRegistrationHi = NEW.xseRegistrationHi, xseRegistrationLo = NEW.xseRegistrationLo, xseUsUid = NEW.xseUsUid, xseAccountPersonUid = NEW.xseAccountPersonUid, xseActorUid = NEW.xseActorUid, xseAccountUsername = NEW.xseAccountUsername, xseClazzUid = NEW.xseClazzUid, xseCbUid = NEW.xseCbUid, xseContentEntryUid = NEW.xseContentEntryUid, xseContentEntryVersionUid = NEW.xseContentEntryVersionUid, xseRootActivityId = NEW.xseRootActivityId, xseRootActivityUid = NEW.xseRootActivityUid, xseStartTime = NEW.xseStartTime, xseExpireTime = NEW.xseExpireTime, xseAuth = NEW.xseAuth, xseCompleted = NEW.xseCompleted, knownActorUidToPersonUids = NEW.knownActorUidToPersonUids '];
    var tmp_507 = to(400122, new ReplicationEntityMetaData(400122, 'XapiSessionEntity', 'XapiSessionEntity_ReceiveView', tmp_500, 'xseLastMod', tmp_501, 1000, tmp_502, listOf(new Trigger('xapisessionentity_remote_insert', tmp_503, tmp_504, tmp_505, tmp_506, tmp$ret$575, 'SELECT \n                   CAST(NEW.xseLastMod AS BIGINT) >\n                       COALESCE((SELECT XapiSessionEntity_Existing.xseLastMod\n                                   FROM XapiSessionEntity XapiSessionEntity_Existing\n                                  WHERE XapiSessionEntity_Existing.xseUid = NEW.xseUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.xseLastMod AS BIGINT) >\n                       COALESCE((SELECT XapiSessionEntity_Existing.xseLastMod\n                                   FROM XapiSessionEntity XapiSessionEntity_Existing\n                                  WHERE XapiSessionEntity_Existing.xseUid = NEW.xseUid), 0)\n                   '))));
    var tmp_508 = listOf_0(['stmtJsonIdHi', 'stmtJsonIdLo']);
    var tmp_509 = listOf_0([new ReplicationFieldMetaData('stmtJsonIdHi', -5, false), new ReplicationFieldMetaData('stmtJsonIdLo', -5, false), new ReplicationFieldMetaData('stmtEtag', -5, false), new ReplicationFieldMetaData('fullStatement', -1, true)]);
    var tmp_510 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_511 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_512 = [Event_INSERT_getInstance()];
    var tmp_513 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_514 = ['REPLACE INTO StatementEntityJson (stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement) VALUES( CAST(NEW.stmtJsonIdHi AS BIGINT), CAST(NEW.stmtJsonIdLo AS BIGINT), CAST(NEW.stmtEtag AS BIGINT), NEW.fullStatement) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$584 = ['INSERT INTO StatementEntityJson (stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement) VALUES( CAST(NEW.stmtJsonIdHi AS BIGINT), CAST(NEW.stmtJsonIdLo AS BIGINT), CAST(NEW.stmtEtag AS BIGINT), NEW.fullStatement)  ON CONFLICT(stmtJsonIdHi, stmtJsonIdLo)  DO UPDATE SET stmtEtag = NEW.stmtEtag, fullStatement = NEW.fullStatement '];
    var tmp_515 = to(602, new ReplicationEntityMetaData(602, 'StatementEntityJson', 'StatementEntityJson_ReceiveView', tmp_508, 'stmtEtag', tmp_509, 1000, tmp_510, listOf(new Trigger('statemententityjson_remote_insert', tmp_511, tmp_512, tmp_513, tmp_514, tmp$ret$584, 'SELECT \n               CAST(NEW.stmtEtag AS BIGINT) != \n                   COALESCE((SELECT StatementEntityJson_Existing.stmtEtag\n                                   FROM StatementEntityJson StatementEntityJson_Existing\n                                  WHERE StatementEntityJson_Existing.stmtJsonIdHi = NEW.stmtJsonIdHi AND StatementEntityJson_Existing.stmtJsonIdLo = NEW.stmtJsonIdLo), 0)\n            ', 'SELECT \n               CAST(NEW.stmtEtag AS BIGINT) != \n                   COALESCE((SELECT StatementEntityJson_Existing.stmtEtag\n                                   FROM StatementEntityJson StatementEntityJson_Existing\n                                  WHERE StatementEntityJson_Existing.stmtJsonIdHi = NEW.stmtJsonIdHi AND StatementEntityJson_Existing.stmtJsonIdLo = NEW.stmtJsonIdLo), 0)\n            '))));
    var tmp_516 = listOf_0(['seActorUid', 'seHash']);
    var tmp_517 = listOf_0([new ReplicationFieldMetaData('seActorUid', -5, false), new ReplicationFieldMetaData('seHash', -5, false), new ReplicationFieldMetaData('seActivityUid', -5, false), new ReplicationFieldMetaData('seStateId', -1, false), new ReplicationFieldMetaData('seLastMod', -5, false), new ReplicationFieldMetaData('seTimeStored', -5, false), new ReplicationFieldMetaData('seContentType', -1, false), new ReplicationFieldMetaData('seCompressed', 4, false), new ReplicationFieldMetaData('seContent', -1, false), new ReplicationFieldMetaData('seDeleted', 16, false), new ReplicationFieldMetaData('seRegistrationHi', -5, true), new ReplicationFieldMetaData('seRegistrationLo', -5, true), new ReplicationFieldMetaData('seH5PPreloaded', 16, false), new ReplicationFieldMetaData('seH5PSubContentId', -1, true)]);
    var tmp_518 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_519 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_520 = [Event_INSERT_getInstance()];
    var tmp_521 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_522 = ['REPLACE INTO StateEntity (seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId) VALUES( CAST(NEW.seActorUid AS BIGINT), CAST(NEW.seHash AS BIGINT), CAST(NEW.seActivityUid AS BIGINT), NEW.seStateId, CAST(NEW.seLastMod AS BIGINT), CAST(NEW.seTimeStored AS BIGINT), NEW.seContentType, NEW.seCompressed, NEW.seContent, NEW.seDeleted, NEW.seRegistrationHi, NEW.seRegistrationLo, NEW.seH5PPreloaded, NEW.seH5PSubContentId) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$593 = ['INSERT INTO StateEntity (seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId) VALUES( CAST(NEW.seActorUid AS BIGINT), CAST(NEW.seHash AS BIGINT), CAST(NEW.seActivityUid AS BIGINT), NEW.seStateId, CAST(NEW.seLastMod AS BIGINT), CAST(NEW.seTimeStored AS BIGINT), NEW.seContentType, NEW.seCompressed, NEW.seContent, NEW.seDeleted, NEW.seRegistrationHi, NEW.seRegistrationLo, NEW.seH5PPreloaded, NEW.seH5PSubContentId)  ON CONFLICT(seActorUid, seHash)  DO UPDATE SET seActivityUid = NEW.seActivityUid, seStateId = NEW.seStateId, seLastMod = NEW.seLastMod, seTimeStored = NEW.seTimeStored, seContentType = NEW.seContentType, seCompressed = NEW.seCompressed, seContent = NEW.seContent, seDeleted = NEW.seDeleted, seRegistrationHi = NEW.seRegistrationHi, seRegistrationLo = NEW.seRegistrationLo, seH5PPreloaded = NEW.seH5PPreloaded, seH5PSubContentId = NEW.seH5PSubContentId '];
    var tmp_523 = to(3289, new ReplicationEntityMetaData(3289, 'StateEntity', 'StateEntity_ReceiveView', tmp_516, 'seLastMod', tmp_517, 1000, tmp_518, listOf(new Trigger('stateentity_remote_insert', tmp_519, tmp_520, tmp_521, tmp_522, tmp$ret$593, 'SELECT \n                   CAST(NEW.seLastMod AS BIGINT) >\n                       COALESCE((SELECT StateEntity_Existing.seLastMod\n                                   FROM StateEntity StateEntity_Existing\n                                  WHERE StateEntity_Existing.seActorUid = NEW.seActorUid AND StateEntity_Existing.seHash = NEW.seHash), 0)\n                   ', 'SELECT \n                   CAST(NEW.seLastMod AS BIGINT) >\n                       COALESCE((SELECT StateEntity_Existing.seLastMod\n                                   FROM StateEntity StateEntity_Existing\n                                  WHERE StateEntity_Existing.seActorUid = NEW.seActorUid AND StateEntity_Existing.seHash = NEW.seHash), 0)\n                   '))));
    var tmp_524 = listOf_0(['sdcActorUid', 'sdcHash']);
    var tmp_525 = listOf_0([new ReplicationFieldMetaData('sdcActorUid', -5, false), new ReplicationFieldMetaData('sdcHash', -5, false), new ReplicationFieldMetaData('sdcActivityUid', -5, false), new ReplicationFieldMetaData('sdcStateId', -1, true), new ReplicationFieldMetaData('sdcLastMod', -5, false), new ReplicationFieldMetaData('sdcRegistrationHi', -5, true), new ReplicationFieldMetaData('sdcRegistrationLo', -5, true)]);
    var tmp_526 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_527 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_528 = [Event_INSERT_getInstance()];
    var tmp_529 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_530 = ['REPLACE INTO StateDeleteCommand (sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo) VALUES( CAST(NEW.sdcActorUid AS BIGINT), CAST(NEW.sdcHash AS BIGINT), CAST(NEW.sdcActivityUid AS BIGINT), NEW.sdcStateId, CAST(NEW.sdcLastMod AS BIGINT), NEW.sdcRegistrationHi, NEW.sdcRegistrationLo) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$602 = ['INSERT INTO StateDeleteCommand (sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo) VALUES( CAST(NEW.sdcActorUid AS BIGINT), CAST(NEW.sdcHash AS BIGINT), CAST(NEW.sdcActivityUid AS BIGINT), NEW.sdcStateId, CAST(NEW.sdcLastMod AS BIGINT), NEW.sdcRegistrationHi, NEW.sdcRegistrationLo)  ON CONFLICT(sdcActorUid, sdcHash)  DO UPDATE SET sdcActivityUid = NEW.sdcActivityUid, sdcStateId = NEW.sdcStateId, sdcLastMod = NEW.sdcLastMod, sdcRegistrationHi = NEW.sdcRegistrationHi, sdcRegistrationLo = NEW.sdcRegistrationLo '];
    return mapOf([tmp_6, tmp_14, tmp_22, tmp_30, tmp_38, tmp_46, tmp_54, tmp_62, tmp_70, tmp_78, tmp_86, tmp_94, tmp_102, tmp_110, tmp_118, tmp_126, tmp_134, tmp_142, tmp_150, tmp_158, tmp_166, tmp_174, tmp_182, tmp_190, tmp_198, tmp_206, tmp_214, tmp_222, tmp_230, tmp_238, tmp_246, tmp_254, tmp_262, tmp_270, tmp_278, tmp_286, tmp_294, tmp_302, tmp_310, tmp_318, tmp_326, tmp_334, tmp_342, tmp_350, tmp_358, tmp_366, tmp_374, tmp_382, tmp_390, tmp_403, tmp_411, tmp_419, tmp_427, tmp_435, tmp_443, tmp_451, tmp_459, tmp_467, tmp_475, tmp_483, tmp_491, tmp_499, tmp_507, tmp_515, tmp_523, to(121422, new ReplicationEntityMetaData(121422, 'StateDeleteCommand', 'StateDeleteCommand_ReceiveView', tmp_524, 'sdcLastMod', tmp_525, 1000, tmp_526, listOf(new Trigger('statedeletecommand_remote_insert', tmp_527, tmp_528, tmp_529, tmp_530, tmp$ret$602, 'SELECT \n                   CAST(NEW.sdcLastMod AS BIGINT) >\n                       COALESCE((SELECT StateDeleteCommand_Existing.sdcLastMod\n                                   FROM StateDeleteCommand StateDeleteCommand_Existing\n                                  WHERE StateDeleteCommand_Existing.sdcActorUid = NEW.sdcActorUid AND StateDeleteCommand_Existing.sdcHash = NEW.sdcHash), 0)\n                   ', 'SELECT \n                   CAST(NEW.sdcLastMod AS BIGINT) >\n                       COALESCE((SELECT StateDeleteCommand_Existing.sdcLastMod\n                                   FROM StateDeleteCommand StateDeleteCommand_Existing\n                                  WHERE StateDeleteCommand_Existing.sdcActorUid = NEW.sdcActorUid AND StateDeleteCommand_Existing.sdcHash = NEW.sdcHash), 0)\n                   '))))]);
  }
  function UmAppDatabase_DoorMetadata() {
    DoorDatabaseMetadata.call(this);
    this.v7f_1 = listOf_0(['ClazzLog', 'ClazzLogAttendanceRecord', 'Schedule', 'HolidayCalendar', 'Holiday', 'Person', 'Clazz', 'ClazzEnrolment', 'LeavingReason', 'ContentEntry', 'ContentEntryContentCategoryJoin', 'ContentEntryParentChildJoin', 'ContentEntryRelatedEntryJoin', 'ContentCategorySchema', 'ContentCategory', 'Language', 'LanguageVariant', 'PersonAuth', 'PersonGroup', 'PersonGroupMember', 'PersonPicture', 'VerbEntity', 'ActivityEntity', 'StatementEntity', 'ActorEntity', 'SyncNode', 'Comments', 'Report', 'Site', 'SiteTerms', 'PersonParentJoin', 'ScopedGrant', 'ErrorReport', 'ClazzAssignment', 'CourseAssignmentSubmission', 'CourseAssignmentSubmissionFile', 'CourseAssignmentMark', 'PeerReviewerAllocation', 'PersonAuth2', 'UserSession', 'ContentJob', 'ContentEntryImportJob', 'CourseBlock', 'CourseTerminology', 'CourseGroupSet', 'CourseGroupMember', 'ContentEntryPicture', 'ActivityInteractionEntity', 'CoursePicture', 'DiscussionPost', 'ExternalAppPermission', 'Message', 'StudentResult', 'ContentEntryVersion', 'TransferJob', 'TransferJobItem', 'CacheLockJoin', 'OfflineItem', 'OfflineItemPendingTransferJob', 'DeletedItem', 'EnrolmentRequest', 'CoursePermission', 'SystemPermission', 'CourseBlockPicture', 'ContentEntryPicture2', 'TransferJobError', 'VerbLangMapEntry', 'GroupMemberActorJoin', 'ActivityLangMapEntry', 'ActivityExtensionEntity', 'StatementContextActivityJoin', 'XapiSessionEntity', 'StatementEntityJson', 'StateEntity', 'StateDeleteCommand', 'OutgoingReplication', 'ReplicationOperation', 'PendingRepositorySession', 'DoorNode']);
    var tmp = this;
    var tmp_0 = LazyThreadSafetyMode_NONE_getInstance();
    tmp.w7f_1 = lazy(tmp_0, UmAppDatabase_DoorMetadata$replicateEntities$delegate$lambda);
  }
  protoOf(UmAppDatabase_DoorMetadata).a65 = function () {
    return this.v7f_1;
  };
  protoOf(UmAppDatabase_DoorMetadata).n64 = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.w7f_1;
    replicateEntities$factory();
    return this_0.t2();
  };
  function replicateEntities$factory() {
    return getPropertyCallableRef('replicateEntities', 1, KProperty1, function (receiver) {
      return receiver.n64();
    }, null);
  }
  function UmAppDatabase_DoorWrapper$_PersonDao$delegate$lambda(this$0) {
    return function () {
      return new PersonDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.a7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ClazzDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.b7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_CourseBlockDao$delegate$lambda(this$0) {
    return function () {
      return new CourseBlockDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.c7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_CourseTerminologyDao$delegate$lambda(this$0) {
    return function () {
      return new CourseTerminologyDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.d7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_CourseGroupSetDao$delegate$lambda(this$0) {
    return function () {
      return new CourseGroupSetDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.e7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_CourseGroupMemberDao$delegate$lambda(this$0) {
    return function () {
      return new CourseGroupMemberDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.f7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ClazzEnrolmentDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzEnrolmentDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.g7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_LeavingReasonDao$delegate$lambda(this$0) {
    return function () {
      return new LeavingReasonDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.h7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ContentEntryDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.i7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ContentEntryContentCategoryJoinDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryContentCategoryJoinDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.j7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ContentEntryParentChildJoinDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryParentChildJoinDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.k7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryRelatedEntryJoinDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.l7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ContentCategorySchemaDao$delegate$lambda(this$0) {
    return function () {
      return new ContentCategorySchemaDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.m7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ContentCategoryDao$delegate$lambda(this$0) {
    return function () {
      return new ContentCategoryDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.n7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_LanguageDao$delegate$lambda(this$0) {
    return function () {
      return new LanguageDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.o7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_LanguageVariantDao$delegate$lambda(this$0) {
    return function () {
      return new LanguageVariantDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.p7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_PersonGroupDao$delegate$lambda(this$0) {
    return function () {
      return new PersonGroupDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.q7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_PersonGroupMemberDao$delegate$lambda(this$0) {
    return function () {
      return new PersonGroupMemberDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.r7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_PersonPictureDao$delegate$lambda(this$0) {
    return function () {
      return new PersonPictureDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.s7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_VerbDao$delegate$lambda(this$0) {
    return function () {
      return new VerbDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.t7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ActivityEntityDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityEntityDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.u7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ReportDao$delegate$lambda(this$0) {
    return function () {
      return new ReportDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.v7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_StatementDao$delegate$lambda(this$0) {
    return function () {
      return new StatementDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.w7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ActorDao$delegate$lambda(this$0) {
    return function () {
      return new ActorDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.x7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ClazzLogAttendanceRecordDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzLogAttendanceRecordDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.y7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ClazzLogDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzLogDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.z7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ScheduleDao$delegate$lambda(this$0) {
    return function () {
      return new ScheduleDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.a7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_HolidayCalendarDao$delegate$lambda(this$0) {
    return function () {
      return new HolidayCalendarDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.b7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_HolidayDao$delegate$lambda(this$0) {
    return function () {
      return new HolidayDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.c7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_ClazzAssignmentDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzAssignmentDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.d7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_CourseAssignmentSubmissionDao$delegate$lambda(this$0) {
    return function () {
      return new CourseAssignmentSubmissionDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.e7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_CourseAssignmentSubmissionFileDao$delegate$lambda(this$0) {
    return function () {
      return new CourseAssignmentSubmissionFileDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.f7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_CourseAssignmentMarkDao$delegate$lambda(this$0) {
    return function () {
      return new CourseAssignmentMarkDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.g7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_CommentsDao$delegate$lambda(this$0) {
    return function () {
      return new CommentsDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.h7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_SiteDao$delegate$lambda(this$0) {
    return function () {
      return new SiteDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.i7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_SiteTermsDao$delegate$lambda(this$0) {
    return function () {
      return new SiteTermsDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.j7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_PersonParentJoinDao$delegate$lambda(this$0) {
    return function () {
      return new PersonParentJoinDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.k7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_ScopedGrantDao$delegate$lambda(this$0) {
    return function () {
      return new ScopedGrantDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.l7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_ErrorReportDao$delegate$lambda(this$0) {
    return function () {
      return new ErrorReportDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.m7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_PersonAuth2Dao$delegate$lambda(this$0) {
    return function () {
      return new PersonAuth2Dao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.n7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_UserSessionDao$delegate$lambda(this$0) {
    return function () {
      return new UserSessionDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.o7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_CoursePictureDao$delegate$lambda(this$0) {
    return function () {
      return new CoursePictureDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.q7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_ContentEntryPictureDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryPictureDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.r7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_MessageDao$delegate$lambda(this$0) {
    return function () {
      return new MessageDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.s7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_PeerReviewerAllocationDao$delegate$lambda(this$0) {
    return function () {
      return new PeerReviewerAllocationDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.t7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_DiscussionPostDao$delegate$lambda(this$0) {
    return function () {
      return new DiscussionPostDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.u7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_ContentEntryVersionDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryVersionDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.v7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_OfflineItemDao$delegate$lambda(this$0) {
    return function () {
      return new OfflineItemDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.y7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_EnrolmentRequestDao$delegate$lambda(this$0) {
    return function () {
      return new EnrolmentRequestDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.a7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_CoursePermissionDao$delegate$lambda(this$0) {
    return function () {
      return new CoursePermissionDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.b7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_SystemPermissionDao$delegate$lambda(this$0) {
    return function () {
      return new SystemPermissionDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.c7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_CourseBlockPictureDao$delegate$lambda(this$0) {
    return function () {
      return new CourseBlockPictureDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.d7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_ContentEntryPicture2Dao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryPicture2Dao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.e7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_StudentResultDao$delegate$lambda(this$0) {
    return function () {
      return new StudentResultDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.f7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_VerbLangMapEntryDao$delegate$lambda(this$0) {
    return function () {
      return new VerbLangMapEntryDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.g7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_GroupMemberActorJoinDao$delegate$lambda(this$0) {
    return function () {
      return new GroupMemberActorJoinDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.h7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_ActivityLangMapEntryDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityLangMapEntryDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.i7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_ActivityInteractionDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityInteractionDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.j7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_ActivityExtensionDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityExtensionDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.k7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_StatementContextActivityJoinDao$delegate$lambda(this$0) {
    return function () {
      return new StatementContextActivityJoinDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.l7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_XapiSessionEntityDao$delegate$lambda(this$0) {
    return function () {
      return new XapiSessionEntityDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.m7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_StatementEntityJsonDao$delegate$lambda(this$0) {
    return function () {
      return new StatementEntityJsonDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.n7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_StateEntityDao$delegate$lambda(this$0) {
    return function () {
      return new StateEntityDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.o7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_StateDeleteCommandDao$delegate$lambda(this$0) {
    return function () {
      return new StateDeleteCommandDao_DoorWrapper(this$0.x7f_1, this$0.x7f_1.p7f());
    };
  }
  function UmAppDatabase_DoorWrapper(_db, nodeId, messageCallback, logger, dbName) {
    UmAppDatabase.call(this);
    this.x7f_1 = _db;
    this.y7f_1 = nodeId;
    this.z7f_1 = messageCallback;
    var tmp = this;
    tmp.a7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonDao$delegate$lambda(this));
    var tmp_0 = this;
    tmp_0.b7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzDao$delegate$lambda(this));
    var tmp_1 = this;
    tmp_1.c7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseBlockDao$delegate$lambda(this));
    var tmp_2 = this;
    tmp_2.d7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseTerminologyDao$delegate$lambda(this));
    var tmp_3 = this;
    tmp_3.e7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseGroupSetDao$delegate$lambda(this));
    var tmp_4 = this;
    tmp_4.f7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseGroupMemberDao$delegate$lambda(this));
    var tmp_5 = this;
    tmp_5.g7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzEnrolmentDao$delegate$lambda(this));
    var tmp_6 = this;
    tmp_6.h7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_LeavingReasonDao$delegate$lambda(this));
    var tmp_7 = this;
    tmp_7.i7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryDao$delegate$lambda(this));
    var tmp_8 = this;
    tmp_8.j7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryContentCategoryJoinDao$delegate$lambda(this));
    var tmp_9 = this;
    tmp_9.k7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryParentChildJoinDao$delegate$lambda(this));
    var tmp_10 = this;
    tmp_10.l7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this));
    var tmp_11 = this;
    tmp_11.m7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentCategorySchemaDao$delegate$lambda(this));
    var tmp_12 = this;
    tmp_12.n7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentCategoryDao$delegate$lambda(this));
    var tmp_13 = this;
    tmp_13.o7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_LanguageDao$delegate$lambda(this));
    var tmp_14 = this;
    tmp_14.p7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_LanguageVariantDao$delegate$lambda(this));
    var tmp_15 = this;
    tmp_15.q7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonGroupDao$delegate$lambda(this));
    var tmp_16 = this;
    tmp_16.r7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonGroupMemberDao$delegate$lambda(this));
    var tmp_17 = this;
    tmp_17.s7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonPictureDao$delegate$lambda(this));
    var tmp_18 = this;
    tmp_18.t7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_VerbDao$delegate$lambda(this));
    var tmp_19 = this;
    tmp_19.u7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActivityEntityDao$delegate$lambda(this));
    var tmp_20 = this;
    tmp_20.v7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_ReportDao$delegate$lambda(this));
    var tmp_21 = this;
    tmp_21.w7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_StatementDao$delegate$lambda(this));
    var tmp_22 = this;
    tmp_22.x7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActorDao$delegate$lambda(this));
    var tmp_23 = this;
    tmp_23.y7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzLogAttendanceRecordDao$delegate$lambda(this));
    var tmp_24 = this;
    tmp_24.z7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzLogDao$delegate$lambda(this));
    var tmp_25 = this;
    tmp_25.a7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_ScheduleDao$delegate$lambda(this));
    var tmp_26 = this;
    tmp_26.b7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_HolidayCalendarDao$delegate$lambda(this));
    var tmp_27 = this;
    tmp_27.c7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_HolidayDao$delegate$lambda(this));
    var tmp_28 = this;
    tmp_28.d7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzAssignmentDao$delegate$lambda(this));
    var tmp_29 = this;
    tmp_29.e7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseAssignmentSubmissionDao$delegate$lambda(this));
    var tmp_30 = this;
    tmp_30.f7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseAssignmentSubmissionFileDao$delegate$lambda(this));
    var tmp_31 = this;
    tmp_31.g7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseAssignmentMarkDao$delegate$lambda(this));
    var tmp_32 = this;
    tmp_32.h7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_CommentsDao$delegate$lambda(this));
    var tmp_33 = this;
    tmp_33.i7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_SiteDao$delegate$lambda(this));
    var tmp_34 = this;
    tmp_34.j7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_SiteTermsDao$delegate$lambda(this));
    var tmp_35 = this;
    tmp_35.k7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonParentJoinDao$delegate$lambda(this));
    var tmp_36 = this;
    tmp_36.l7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_ScopedGrantDao$delegate$lambda(this));
    var tmp_37 = this;
    tmp_37.m7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_ErrorReportDao$delegate$lambda(this));
    var tmp_38 = this;
    tmp_38.n7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonAuth2Dao$delegate$lambda(this));
    var tmp_39 = this;
    tmp_39.o7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_UserSessionDao$delegate$lambda(this));
    var tmp_40 = this;
    tmp_40.p7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_CoursePictureDao$delegate$lambda(this));
    var tmp_41 = this;
    tmp_41.q7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryPictureDao$delegate$lambda(this));
    var tmp_42 = this;
    tmp_42.r7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_MessageDao$delegate$lambda(this));
    var tmp_43 = this;
    tmp_43.s7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_PeerReviewerAllocationDao$delegate$lambda(this));
    var tmp_44 = this;
    tmp_44.t7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_DiscussionPostDao$delegate$lambda(this));
    var tmp_45 = this;
    tmp_45.u7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryVersionDao$delegate$lambda(this));
    var tmp_46 = this;
    tmp_46.v7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_OfflineItemDao$delegate$lambda(this));
    var tmp_47 = this;
    tmp_47.w7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_EnrolmentRequestDao$delegate$lambda(this));
    var tmp_48 = this;
    tmp_48.x7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_CoursePermissionDao$delegate$lambda(this));
    var tmp_49 = this;
    tmp_49.y7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_SystemPermissionDao$delegate$lambda(this));
    var tmp_50 = this;
    tmp_50.z7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseBlockPictureDao$delegate$lambda(this));
    var tmp_51 = this;
    tmp_51.a7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryPicture2Dao$delegate$lambda(this));
    var tmp_52 = this;
    tmp_52.b7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_StudentResultDao$delegate$lambda(this));
    var tmp_53 = this;
    tmp_53.c7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_VerbLangMapEntryDao$delegate$lambda(this));
    var tmp_54 = this;
    tmp_54.d7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_GroupMemberActorJoinDao$delegate$lambda(this));
    var tmp_55 = this;
    tmp_55.e7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActivityLangMapEntryDao$delegate$lambda(this));
    var tmp_56 = this;
    tmp_56.f7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActivityInteractionDao$delegate$lambda(this));
    var tmp_57 = this;
    tmp_57.g7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActivityExtensionDao$delegate$lambda(this));
    var tmp_58 = this;
    tmp_58.h7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_StatementContextActivityJoinDao$delegate$lambda(this));
    var tmp_59 = this;
    tmp_59.i7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_XapiSessionEntityDao$delegate$lambda(this));
    var tmp_60 = this;
    tmp_60.j7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_StatementEntityJsonDao$delegate$lambda(this));
    var tmp_61 = this;
    tmp_61.k7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_StateEntityDao$delegate$lambda(this));
    var tmp_62 = this;
    tmp_62.l7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_StateDeleteCommandDao$delegate$lambda(this));
    this.m7i_1 = new NodeEventManagerJs(this.x7f_1, this.z7f_1, logger, dbName);
  }
  protoOf(UmAppDatabase_DoorWrapper).b61 = function () {
    return this.y7f_1;
  };
  protoOf(UmAppDatabase_DoorWrapper).x71 = function () {
    return 202;
  };
  protoOf(UmAppDatabase_DoorWrapper).n7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.a7g_1;
    _PersonDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).o7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.b7g_1;
    _ClazzDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).p7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.c7g_1;
    _CourseBlockDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).q7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.d7g_1;
    _CourseTerminologyDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).r7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.e7g_1;
    _CourseGroupSetDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).s7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.f7g_1;
    _CourseGroupMemberDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).t7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.g7g_1;
    _ClazzEnrolmentDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).u7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.h7g_1;
    _LeavingReasonDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).v7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.i7g_1;
    _ContentEntryDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).w7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.j7g_1;
    _ContentEntryContentCategoryJoinDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).x7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.k7g_1;
    _ContentEntryParentChildJoinDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).y7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.l7g_1;
    _ContentEntryRelatedEntryJoinDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).z7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.m7g_1;
    _ContentCategorySchemaDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).a7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.n7g_1;
    _ContentCategoryDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).b7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.o7g_1;
    _LanguageDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).c7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.p7g_1;
    _LanguageVariantDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).d7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.q7g_1;
    _PersonGroupDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).e7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.r7g_1;
    _PersonGroupMemberDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).f7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.s7g_1;
    _PersonPictureDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).g7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.t7g_1;
    _VerbDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).h7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.u7g_1;
    _ActivityEntityDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).i7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.v7g_1;
    _ReportDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).j7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.w7g_1;
    _StatementDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).k7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.x7g_1;
    _ActorDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).l7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.y7g_1;
    _ClazzLogAttendanceRecordDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).m7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.z7g_1;
    _ClazzLogDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).n7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.a7h_1;
    _ScheduleDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).o7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.b7h_1;
    _HolidayCalendarDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).p7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.c7h_1;
    _HolidayDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).q7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.d7h_1;
    _ClazzAssignmentDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).r7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.e7h_1;
    _CourseAssignmentSubmissionDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).s7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.f7h_1;
    _CourseAssignmentSubmissionFileDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).t7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.g7h_1;
    _CourseAssignmentMarkDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).u7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.h7h_1;
    _CommentsDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).v7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.i7h_1;
    _SiteDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).w7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.j7h_1;
    _SiteTermsDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).x7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.k7h_1;
    _PersonParentJoinDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).y7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.l7h_1;
    _ScopedGrantDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).z7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.m7h_1;
    _ErrorReportDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).a7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.n7h_1;
    _PersonAuth2Dao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).b7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.o7h_1;
    _UserSessionDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).c7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.p7h_1;
    _CoursePictureDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).d7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.q7h_1;
    _ContentEntryPictureDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).e7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.r7h_1;
    _MessageDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).f7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.s7h_1;
    _PeerReviewerAllocationDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).g7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.t7h_1;
    _DiscussionPostDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).h7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.u7h_1;
    _ContentEntryVersionDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).i7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.v7h_1;
    _OfflineItemDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).j7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.w7h_1;
    _EnrolmentRequestDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).k7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.x7h_1;
    _CoursePermissionDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).l7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.y7h_1;
    _SystemPermissionDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).m7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.z7h_1;
    _CourseBlockPictureDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).n7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.a7i_1;
    _ContentEntryPicture2Dao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).o7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.b7i_1;
    _StudentResultDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).p7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.c7i_1;
    _VerbLangMapEntryDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).q7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.d7i_1;
    _GroupMemberActorJoinDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).r7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.e7i_1;
    _ActivityLangMapEntryDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).s7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.f7i_1;
    _ActivityInteractionDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).t7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.g7i_1;
    _ActivityExtensionDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).u7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.h7i_1;
    _StatementContextActivityJoinDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).v7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.i7i_1;
    _XapiSessionEntityDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).w7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.j7i_1;
    _StatementEntityJsonDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).x7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.k7i_1;
    _StateEntityDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).y7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.l7i_1;
    _StateDeleteCommandDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).j5i = function () {
    return this.x7f_1;
  };
  protoOf(UmAppDatabase_DoorWrapper).a61 = function () {
    return this.m7i_1;
  };
  protoOf(UmAppDatabase_DoorWrapper).j5l = function () {
    return this.x7f_1.j5l();
  };
  protoOf(UmAppDatabase_DoorWrapper).d71 = function () {
    return this.x7f_1.d71();
  };
  protoOf(UmAppDatabase_DoorWrapper).a7d = function () {
    return this.n7i();
  };
  protoOf(UmAppDatabase_DoorWrapper).b7d = function () {
    return this.o7i();
  };
  protoOf(UmAppDatabase_DoorWrapper).c7d = function () {
    return this.p7i();
  };
  protoOf(UmAppDatabase_DoorWrapper).d7d = function () {
    return this.q7i();
  };
  protoOf(UmAppDatabase_DoorWrapper).e7d = function () {
    return this.r7i();
  };
  protoOf(UmAppDatabase_DoorWrapper).f7d = function () {
    return this.s7i();
  };
  protoOf(UmAppDatabase_DoorWrapper).g7d = function () {
    return this.t7i();
  };
  protoOf(UmAppDatabase_DoorWrapper).h7d = function () {
    return this.u7i();
  };
  protoOf(UmAppDatabase_DoorWrapper).i7d = function () {
    return this.v7i();
  };
  protoOf(UmAppDatabase_DoorWrapper).j7d = function () {
    return this.w7i();
  };
  protoOf(UmAppDatabase_DoorWrapper).k7d = function () {
    return this.x7i();
  };
  protoOf(UmAppDatabase_DoorWrapper).l7d = function () {
    return this.y7i();
  };
  protoOf(UmAppDatabase_DoorWrapper).m7d = function () {
    return this.z7i();
  };
  protoOf(UmAppDatabase_DoorWrapper).n7d = function () {
    return this.a7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).o7d = function () {
    return this.b7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).p7d = function () {
    return this.c7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).q7d = function () {
    return this.d7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).r7d = function () {
    return this.e7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).s7d = function () {
    return this.f7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).t7d = function () {
    return this.g7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).u7d = function () {
    return this.h7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).v7d = function () {
    return this.i7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).w7d = function () {
    return this.j7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).x7d = function () {
    return this.k7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).y7d = function () {
    return this.l7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).z7d = function () {
    return this.m7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).a7e = function () {
    return this.n7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).b7e = function () {
    return this.o7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).c7e = function () {
    return this.p7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).d7e = function () {
    return this.q7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).e7e = function () {
    return this.r7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).f7e = function () {
    return this.s7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).g7e = function () {
    return this.t7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).h7e = function () {
    return this.u7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).i7e = function () {
    return this.v7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).j7e = function () {
    return this.w7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).k7e = function () {
    return this.x7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).l7e = function () {
    return this.y7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).m7e = function () {
    return this.z7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).n7e = function () {
    return this.a7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).o7e = function () {
    return this.b7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).p7e = function () {
    return this.x7f_1.p7e();
  };
  protoOf(UmAppDatabase_DoorWrapper).q7e = function () {
    return this.c7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).r7e = function () {
    return this.d7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).s7e = function () {
    return this.e7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).t7e = function () {
    return this.f7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).u7e = function () {
    return this.g7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).v7e = function () {
    return this.h7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).w7e = function () {
    return this.x7f_1.w7e();
  };
  protoOf(UmAppDatabase_DoorWrapper).x7e = function () {
    return this.x7f_1.x7e();
  };
  protoOf(UmAppDatabase_DoorWrapper).y7e = function () {
    return this.i7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).z7e = function () {
    return this.x7f_1.z7e();
  };
  protoOf(UmAppDatabase_DoorWrapper).a7f = function () {
    return this.j7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).b7f = function () {
    return this.k7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).c7f = function () {
    return this.l7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).d7f = function () {
    return this.m7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).e7f = function () {
    return this.n7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).f7f = function () {
    return this.o7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).g7f = function () {
    return this.p7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).h7f = function () {
    return this.q7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).i7f = function () {
    return this.r7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).j7f = function () {
    return this.s7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).k7f = function () {
    return this.t7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).l7f = function () {
    return this.u7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).m7f = function () {
    return this.v7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).n7f = function () {
    return this.w7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).o7f = function () {
    return this.x7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).p7f = function () {
    return this.y7k();
  };
  function _PersonDao$factory() {
    return getPropertyCallableRef('_PersonDao', 1, KProperty1, function (receiver) {
      return receiver.n7i();
    }, null);
  }
  function _ClazzDao$factory() {
    return getPropertyCallableRef('_ClazzDao', 1, KProperty1, function (receiver) {
      return receiver.o7i();
    }, null);
  }
  function _CourseBlockDao$factory() {
    return getPropertyCallableRef('_CourseBlockDao', 1, KProperty1, function (receiver) {
      return receiver.p7i();
    }, null);
  }
  function _CourseTerminologyDao$factory() {
    return getPropertyCallableRef('_CourseTerminologyDao', 1, KProperty1, function (receiver) {
      return receiver.q7i();
    }, null);
  }
  function _CourseGroupSetDao$factory() {
    return getPropertyCallableRef('_CourseGroupSetDao', 1, KProperty1, function (receiver) {
      return receiver.r7i();
    }, null);
  }
  function _CourseGroupMemberDao$factory() {
    return getPropertyCallableRef('_CourseGroupMemberDao', 1, KProperty1, function (receiver) {
      return receiver.s7i();
    }, null);
  }
  function _ClazzEnrolmentDao$factory() {
    return getPropertyCallableRef('_ClazzEnrolmentDao', 1, KProperty1, function (receiver) {
      return receiver.t7i();
    }, null);
  }
  function _LeavingReasonDao$factory() {
    return getPropertyCallableRef('_LeavingReasonDao', 1, KProperty1, function (receiver) {
      return receiver.u7i();
    }, null);
  }
  function _ContentEntryDao$factory() {
    return getPropertyCallableRef('_ContentEntryDao', 1, KProperty1, function (receiver) {
      return receiver.v7i();
    }, null);
  }
  function _ContentEntryContentCategoryJoinDao$factory() {
    return getPropertyCallableRef('_ContentEntryContentCategoryJoinDao', 1, KProperty1, function (receiver) {
      return receiver.w7i();
    }, null);
  }
  function _ContentEntryParentChildJoinDao$factory() {
    return getPropertyCallableRef('_ContentEntryParentChildJoinDao', 1, KProperty1, function (receiver) {
      return receiver.x7i();
    }, null);
  }
  function _ContentEntryRelatedEntryJoinDao$factory() {
    return getPropertyCallableRef('_ContentEntryRelatedEntryJoinDao', 1, KProperty1, function (receiver) {
      return receiver.y7i();
    }, null);
  }
  function _ContentCategorySchemaDao$factory() {
    return getPropertyCallableRef('_ContentCategorySchemaDao', 1, KProperty1, function (receiver) {
      return receiver.z7i();
    }, null);
  }
  function _ContentCategoryDao$factory() {
    return getPropertyCallableRef('_ContentCategoryDao', 1, KProperty1, function (receiver) {
      return receiver.a7j();
    }, null);
  }
  function _LanguageDao$factory() {
    return getPropertyCallableRef('_LanguageDao', 1, KProperty1, function (receiver) {
      return receiver.b7j();
    }, null);
  }
  function _LanguageVariantDao$factory() {
    return getPropertyCallableRef('_LanguageVariantDao', 1, KProperty1, function (receiver) {
      return receiver.c7j();
    }, null);
  }
  function _PersonGroupDao$factory() {
    return getPropertyCallableRef('_PersonGroupDao', 1, KProperty1, function (receiver) {
      return receiver.d7j();
    }, null);
  }
  function _PersonGroupMemberDao$factory() {
    return getPropertyCallableRef('_PersonGroupMemberDao', 1, KProperty1, function (receiver) {
      return receiver.e7j();
    }, null);
  }
  function _PersonPictureDao$factory() {
    return getPropertyCallableRef('_PersonPictureDao', 1, KProperty1, function (receiver) {
      return receiver.f7j();
    }, null);
  }
  function _VerbDao$factory() {
    return getPropertyCallableRef('_VerbDao', 1, KProperty1, function (receiver) {
      return receiver.g7j();
    }, null);
  }
  function _ActivityEntityDao$factory() {
    return getPropertyCallableRef('_ActivityEntityDao', 1, KProperty1, function (receiver) {
      return receiver.h7j();
    }, null);
  }
  function _ReportDao$factory() {
    return getPropertyCallableRef('_ReportDao', 1, KProperty1, function (receiver) {
      return receiver.i7j();
    }, null);
  }
  function _StatementDao$factory() {
    return getPropertyCallableRef('_StatementDao', 1, KProperty1, function (receiver) {
      return receiver.j7j();
    }, null);
  }
  function _ActorDao$factory() {
    return getPropertyCallableRef('_ActorDao', 1, KProperty1, function (receiver) {
      return receiver.k7j();
    }, null);
  }
  function _ClazzLogAttendanceRecordDao$factory() {
    return getPropertyCallableRef('_ClazzLogAttendanceRecordDao', 1, KProperty1, function (receiver) {
      return receiver.l7j();
    }, null);
  }
  function _ClazzLogDao$factory() {
    return getPropertyCallableRef('_ClazzLogDao', 1, KProperty1, function (receiver) {
      return receiver.m7j();
    }, null);
  }
  function _ScheduleDao$factory() {
    return getPropertyCallableRef('_ScheduleDao', 1, KProperty1, function (receiver) {
      return receiver.n7j();
    }, null);
  }
  function _HolidayCalendarDao$factory() {
    return getPropertyCallableRef('_HolidayCalendarDao', 1, KProperty1, function (receiver) {
      return receiver.o7j();
    }, null);
  }
  function _HolidayDao$factory() {
    return getPropertyCallableRef('_HolidayDao', 1, KProperty1, function (receiver) {
      return receiver.p7j();
    }, null);
  }
  function _ClazzAssignmentDao$factory() {
    return getPropertyCallableRef('_ClazzAssignmentDao', 1, KProperty1, function (receiver) {
      return receiver.q7j();
    }, null);
  }
  function _CourseAssignmentSubmissionDao$factory() {
    return getPropertyCallableRef('_CourseAssignmentSubmissionDao', 1, KProperty1, function (receiver) {
      return receiver.r7j();
    }, null);
  }
  function _CourseAssignmentSubmissionFileDao$factory() {
    return getPropertyCallableRef('_CourseAssignmentSubmissionFileDao', 1, KProperty1, function (receiver) {
      return receiver.s7j();
    }, null);
  }
  function _CourseAssignmentMarkDao$factory() {
    return getPropertyCallableRef('_CourseAssignmentMarkDao', 1, KProperty1, function (receiver) {
      return receiver.t7j();
    }, null);
  }
  function _CommentsDao$factory() {
    return getPropertyCallableRef('_CommentsDao', 1, KProperty1, function (receiver) {
      return receiver.u7j();
    }, null);
  }
  function _SiteDao$factory() {
    return getPropertyCallableRef('_SiteDao', 1, KProperty1, function (receiver) {
      return receiver.v7j();
    }, null);
  }
  function _SiteTermsDao$factory() {
    return getPropertyCallableRef('_SiteTermsDao', 1, KProperty1, function (receiver) {
      return receiver.w7j();
    }, null);
  }
  function _PersonParentJoinDao$factory() {
    return getPropertyCallableRef('_PersonParentJoinDao', 1, KProperty1, function (receiver) {
      return receiver.x7j();
    }, null);
  }
  function _ScopedGrantDao$factory() {
    return getPropertyCallableRef('_ScopedGrantDao', 1, KProperty1, function (receiver) {
      return receiver.y7j();
    }, null);
  }
  function _ErrorReportDao$factory() {
    return getPropertyCallableRef('_ErrorReportDao', 1, KProperty1, function (receiver) {
      return receiver.z7j();
    }, null);
  }
  function _PersonAuth2Dao$factory() {
    return getPropertyCallableRef('_PersonAuth2Dao', 1, KProperty1, function (receiver) {
      return receiver.a7k();
    }, null);
  }
  function _UserSessionDao$factory() {
    return getPropertyCallableRef('_UserSessionDao', 1, KProperty1, function (receiver) {
      return receiver.b7k();
    }, null);
  }
  function _CoursePictureDao$factory() {
    return getPropertyCallableRef('_CoursePictureDao', 1, KProperty1, function (receiver) {
      return receiver.c7k();
    }, null);
  }
  function _ContentEntryPictureDao$factory() {
    return getPropertyCallableRef('_ContentEntryPictureDao', 1, KProperty1, function (receiver) {
      return receiver.d7k();
    }, null);
  }
  function _MessageDao$factory() {
    return getPropertyCallableRef('_MessageDao', 1, KProperty1, function (receiver) {
      return receiver.e7k();
    }, null);
  }
  function _PeerReviewerAllocationDao$factory() {
    return getPropertyCallableRef('_PeerReviewerAllocationDao', 1, KProperty1, function (receiver) {
      return receiver.f7k();
    }, null);
  }
  function _DiscussionPostDao$factory() {
    return getPropertyCallableRef('_DiscussionPostDao', 1, KProperty1, function (receiver) {
      return receiver.g7k();
    }, null);
  }
  function _ContentEntryVersionDao$factory() {
    return getPropertyCallableRef('_ContentEntryVersionDao', 1, KProperty1, function (receiver) {
      return receiver.h7k();
    }, null);
  }
  function _OfflineItemDao$factory() {
    return getPropertyCallableRef('_OfflineItemDao', 1, KProperty1, function (receiver) {
      return receiver.i7k();
    }, null);
  }
  function _EnrolmentRequestDao$factory() {
    return getPropertyCallableRef('_EnrolmentRequestDao', 1, KProperty1, function (receiver) {
      return receiver.j7k();
    }, null);
  }
  function _CoursePermissionDao$factory() {
    return getPropertyCallableRef('_CoursePermissionDao', 1, KProperty1, function (receiver) {
      return receiver.k7k();
    }, null);
  }
  function _SystemPermissionDao$factory() {
    return getPropertyCallableRef('_SystemPermissionDao', 1, KProperty1, function (receiver) {
      return receiver.l7k();
    }, null);
  }
  function _CourseBlockPictureDao$factory() {
    return getPropertyCallableRef('_CourseBlockPictureDao', 1, KProperty1, function (receiver) {
      return receiver.m7k();
    }, null);
  }
  function _ContentEntryPicture2Dao$factory() {
    return getPropertyCallableRef('_ContentEntryPicture2Dao', 1, KProperty1, function (receiver) {
      return receiver.n7k();
    }, null);
  }
  function _StudentResultDao$factory() {
    return getPropertyCallableRef('_StudentResultDao', 1, KProperty1, function (receiver) {
      return receiver.o7k();
    }, null);
  }
  function _VerbLangMapEntryDao$factory() {
    return getPropertyCallableRef('_VerbLangMapEntryDao', 1, KProperty1, function (receiver) {
      return receiver.p7k();
    }, null);
  }
  function _GroupMemberActorJoinDao$factory() {
    return getPropertyCallableRef('_GroupMemberActorJoinDao', 1, KProperty1, function (receiver) {
      return receiver.q7k();
    }, null);
  }
  function _ActivityLangMapEntryDao$factory() {
    return getPropertyCallableRef('_ActivityLangMapEntryDao', 1, KProperty1, function (receiver) {
      return receiver.r7k();
    }, null);
  }
  function _ActivityInteractionDao$factory() {
    return getPropertyCallableRef('_ActivityInteractionDao', 1, KProperty1, function (receiver) {
      return receiver.s7k();
    }, null);
  }
  function _ActivityExtensionDao$factory() {
    return getPropertyCallableRef('_ActivityExtensionDao', 1, KProperty1, function (receiver) {
      return receiver.t7k();
    }, null);
  }
  function _StatementContextActivityJoinDao$factory() {
    return getPropertyCallableRef('_StatementContextActivityJoinDao', 1, KProperty1, function (receiver) {
      return receiver.u7k();
    }, null);
  }
  function _XapiSessionEntityDao$factory() {
    return getPropertyCallableRef('_XapiSessionEntityDao', 1, KProperty1, function (receiver) {
      return receiver.v7k();
    }, null);
  }
  function _StatementEntityJsonDao$factory() {
    return getPropertyCallableRef('_StatementEntityJsonDao', 1, KProperty1, function (receiver) {
      return receiver.w7k();
    }, null);
  }
  function _StateEntityDao$factory() {
    return getPropertyCallableRef('_StateEntityDao', 1, KProperty1, function (receiver) {
      return receiver.x7k();
    }, null);
  }
  function _StateDeleteCommandDao$factory() {
    return getPropertyCallableRef('_StateDeleteCommandDao', 1, KProperty1, function (receiver) {
      return receiver.y7k();
    }, null);
  }
  function UmAppDatabase_JdbcImpl$realNodeIdAuthCache$delegate$lambda(this$0) {
    return function () {
      var tmp;
      if (equals(this$0, get_rootDatabase(this$0))) {
        var nodeIdAuthCache = new NodeIdAuthCache(this$0);
        tmp = nodeIdAuthCache;
      } else {
        tmp = get_nodeIdAuthCache(get_rootDatabase(this$0));
      }
      return tmp;
    };
  }
  function UmAppDatabase_JdbcImpl$realPrimaryKeyManager$delegate$lambda() {
    return new DoorPrimaryKeyManager(doorDatabaseMetadata(getKClass(UmAppDatabase)).n64().o2());
  }
  function UmAppDatabase_JdbcImpl$_PersonDao$delegate$lambda(this$0) {
    return function () {
      return new PersonDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ClazzDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_CourseBlockDao$delegate$lambda(this$0) {
    return function () {
      return new CourseBlockDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_CourseTerminologyDao$delegate$lambda(this$0) {
    return function () {
      return new CourseTerminologyDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_CourseGroupSetDao$delegate$lambda(this$0) {
    return function () {
      return new CourseGroupSetDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_CourseGroupMemberDao$delegate$lambda(this$0) {
    return function () {
      return new CourseGroupMemberDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ClazzEnrolmentDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzEnrolmentDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_LeavingReasonDao$delegate$lambda(this$0) {
    return function () {
      return new LeavingReasonDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ContentEntryDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ContentEntryContentCategoryJoinDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryContentCategoryJoinDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ContentEntryParentChildJoinDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryParentChildJoinDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryRelatedEntryJoinDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ContentCategorySchemaDao$delegate$lambda(this$0) {
    return function () {
      return new ContentCategorySchemaDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ContentCategoryDao$delegate$lambda(this$0) {
    return function () {
      return new ContentCategoryDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_LanguageDao$delegate$lambda(this$0) {
    return function () {
      return new LanguageDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_LanguageVariantDao$delegate$lambda(this$0) {
    return function () {
      return new LanguageVariantDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_PersonAuthDao$delegate$lambda(this$0) {
    return function () {
      return new PersonAuthDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_PersonGroupDao$delegate$lambda(this$0) {
    return function () {
      return new PersonGroupDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_PersonGroupMemberDao$delegate$lambda(this$0) {
    return function () {
      return new PersonGroupMemberDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_PersonPictureDao$delegate$lambda(this$0) {
    return function () {
      return new PersonPictureDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_VerbDao$delegate$lambda(this$0) {
    return function () {
      return new VerbDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ActivityEntityDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityEntityDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ReportDao$delegate$lambda(this$0) {
    return function () {
      return new ReportDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_StatementDao$delegate$lambda(this$0) {
    return function () {
      return new StatementDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ActorDao$delegate$lambda(this$0) {
    return function () {
      return new ActorDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ClazzLogAttendanceRecordDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzLogAttendanceRecordDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ClazzLogDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzLogDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ScheduleDao$delegate$lambda(this$0) {
    return function () {
      return new ScheduleDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_HolidayCalendarDao$delegate$lambda(this$0) {
    return function () {
      return new HolidayCalendarDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_HolidayDao$delegate$lambda(this$0) {
    return function () {
      return new HolidayDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ClazzAssignmentDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzAssignmentDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_CourseAssignmentSubmissionDao$delegate$lambda(this$0) {
    return function () {
      return new CourseAssignmentSubmissionDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_CourseAssignmentSubmissionFileDao$delegate$lambda(this$0) {
    return function () {
      return new CourseAssignmentSubmissionFileDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_CourseAssignmentMarkDao$delegate$lambda(this$0) {
    return function () {
      return new CourseAssignmentMarkDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_CommentsDao$delegate$lambda(this$0) {
    return function () {
      return new CommentsDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_SyncNodeDao$delegate$lambda(this$0) {
    return function () {
      return new SyncNodeDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_SiteDao$delegate$lambda(this$0) {
    return function () {
      return new SiteDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_SiteTermsDao$delegate$lambda(this$0) {
    return function () {
      return new SiteTermsDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_PersonParentJoinDao$delegate$lambda(this$0) {
    return function () {
      return new PersonParentJoinDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ScopedGrantDao$delegate$lambda(this$0) {
    return function () {
      return new ScopedGrantDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ErrorReportDao$delegate$lambda(this$0) {
    return function () {
      return new ErrorReportDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_PersonAuth2Dao$delegate$lambda(this$0) {
    return function () {
      return new PersonAuth2Dao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_UserSessionDao$delegate$lambda(this$0) {
    return function () {
      return new UserSessionDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ContentEntryImportJobDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryImportJobDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_CoursePictureDao$delegate$lambda(this$0) {
    return function () {
      return new CoursePictureDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ContentEntryPictureDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryPictureDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_MessageDao$delegate$lambda(this$0) {
    return function () {
      return new MessageDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_PeerReviewerAllocationDao$delegate$lambda(this$0) {
    return function () {
      return new PeerReviewerAllocationDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_DiscussionPostDao$delegate$lambda(this$0) {
    return function () {
      return new DiscussionPostDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ExternalAppPermissionDao$delegate$lambda(this$0) {
    return function () {
      return new ExternalAppPermissionDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ContentEntryVersionDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryVersionDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_OutgoingReplicationDao$delegate$lambda(this$0) {
    return function () {
      return new OutgoingReplicationDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_TransferJobDao$delegate$lambda(this$0) {
    return function () {
      return new TransferJobDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_TransferJobItemDao$delegate$lambda(this$0) {
    return function () {
      return new TransferJobItemDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_CacheLockJoinDao$delegate$lambda(this$0) {
    return function () {
      return new CacheLockJoinDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_OfflineItemDao$delegate$lambda(this$0) {
    return function () {
      return new OfflineItemDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_DeletedItemDao$delegate$lambda(this$0) {
    return function () {
      return new DeletedItemDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_EnrolmentRequestDao$delegate$lambda(this$0) {
    return function () {
      return new EnrolmentRequestDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_CoursePermissionDao$delegate$lambda(this$0) {
    return function () {
      return new CoursePermissionDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_SystemPermissionDao$delegate$lambda(this$0) {
    return function () {
      return new SystemPermissionDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_CourseBlockPictureDao$delegate$lambda(this$0) {
    return function () {
      return new CourseBlockPictureDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ContentEntryPicture2Dao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryPicture2Dao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_TransferJobErrorDao$delegate$lambda(this$0) {
    return function () {
      return new TransferJobErrorDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_StudentResultDao$delegate$lambda(this$0) {
    return function () {
      return new StudentResultDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_VerbLangMapEntryDao$delegate$lambda(this$0) {
    return function () {
      return new VerbLangMapEntryDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_GroupMemberActorJoinDao$delegate$lambda(this$0) {
    return function () {
      return new GroupMemberActorJoinDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ActivityLangMapEntryDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityLangMapEntryDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ActivityInteractionDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityInteractionDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_ActivityExtensionDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityExtensionDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_StatementContextActivityJoinDao$delegate$lambda(this$0) {
    return function () {
      return new StatementContextActivityJoinDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_XapiSessionEntityDao$delegate$lambda(this$0) {
    return function () {
      return new XapiSessionEntityDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_StatementEntityJsonDao$delegate$lambda(this$0) {
    return function () {
      return new StatementEntityJsonDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_StateEntityDao$delegate$lambda(this$0) {
    return function () {
      return new StateEntityDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl$_StateDeleteCommandDao$delegate$lambda(this$0) {
    return function () {
      return new StateDeleteCommandDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl(doorJdbcSourceDatabase, dataSource, dbUrl, dbName, jdbcQueryTimeout, jdbcDbType, logger) {
    UmAppDatabase.call(this);
    this.z7k_1 = doorJdbcSourceDatabase;
    this.a7l_1 = dataSource;
    this.b7l_1 = dbName;
    this.c7l_1 = jdbcQueryTimeout;
    var tmp = this;
    var tmp_0 = doorDatabaseMetadata(getKClassFromExpression(this)).a65();
    // Inline function 'kotlin.collections.toTypedArray' call
    var this_0 = doorDatabaseMetadata(getKClassFromExpression(this)).a65();
    var tmp$ret$0 = copyToArray(this_0);
    tmp.d7l_1 = new RoomDatabaseJdbcImplHelper(this.a7l_1, this, dbUrl, this.b7l_1, logger, tmp_0, new InvalidationTracker(tmp$ret$0.slice()), jdbcDbType);
    var tmp_1 = this;
    tmp_1.e7l_1 = lazy_0(UmAppDatabase_JdbcImpl$realNodeIdAuthCache$delegate$lambda(this));
    var tmp_2 = this;
    tmp_2.f7l_1 = lazy_0(UmAppDatabase_JdbcImpl$realPrimaryKeyManager$delegate$lambda);
    var tmp_3 = this;
    tmp_3.g7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonDao$delegate$lambda(this));
    var tmp_4 = this;
    tmp_4.h7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzDao$delegate$lambda(this));
    var tmp_5 = this;
    tmp_5.i7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseBlockDao$delegate$lambda(this));
    var tmp_6 = this;
    tmp_6.j7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseTerminologyDao$delegate$lambda(this));
    var tmp_7 = this;
    tmp_7.k7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseGroupSetDao$delegate$lambda(this));
    var tmp_8 = this;
    tmp_8.l7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseGroupMemberDao$delegate$lambda(this));
    var tmp_9 = this;
    tmp_9.m7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzEnrolmentDao$delegate$lambda(this));
    var tmp_10 = this;
    tmp_10.n7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_LeavingReasonDao$delegate$lambda(this));
    var tmp_11 = this;
    tmp_11.o7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryDao$delegate$lambda(this));
    var tmp_12 = this;
    tmp_12.p7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryContentCategoryJoinDao$delegate$lambda(this));
    var tmp_13 = this;
    tmp_13.q7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryParentChildJoinDao$delegate$lambda(this));
    var tmp_14 = this;
    tmp_14.r7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this));
    var tmp_15 = this;
    tmp_15.s7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentCategorySchemaDao$delegate$lambda(this));
    var tmp_16 = this;
    tmp_16.t7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentCategoryDao$delegate$lambda(this));
    var tmp_17 = this;
    tmp_17.u7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_LanguageDao$delegate$lambda(this));
    var tmp_18 = this;
    tmp_18.v7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_LanguageVariantDao$delegate$lambda(this));
    var tmp_19 = this;
    tmp_19.w7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonAuthDao$delegate$lambda(this));
    var tmp_20 = this;
    tmp_20.x7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonGroupDao$delegate$lambda(this));
    var tmp_21 = this;
    tmp_21.y7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonGroupMemberDao$delegate$lambda(this));
    var tmp_22 = this;
    tmp_22.z7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonPictureDao$delegate$lambda(this));
    var tmp_23 = this;
    tmp_23.a7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_VerbDao$delegate$lambda(this));
    var tmp_24 = this;
    tmp_24.b7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActivityEntityDao$delegate$lambda(this));
    var tmp_25 = this;
    tmp_25.c7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ReportDao$delegate$lambda(this));
    var tmp_26 = this;
    tmp_26.d7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_StatementDao$delegate$lambda(this));
    var tmp_27 = this;
    tmp_27.e7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActorDao$delegate$lambda(this));
    var tmp_28 = this;
    tmp_28.f7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzLogAttendanceRecordDao$delegate$lambda(this));
    var tmp_29 = this;
    tmp_29.g7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzLogDao$delegate$lambda(this));
    var tmp_30 = this;
    tmp_30.h7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ScheduleDao$delegate$lambda(this));
    var tmp_31 = this;
    tmp_31.i7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_HolidayCalendarDao$delegate$lambda(this));
    var tmp_32 = this;
    tmp_32.j7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_HolidayDao$delegate$lambda(this));
    var tmp_33 = this;
    tmp_33.k7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzAssignmentDao$delegate$lambda(this));
    var tmp_34 = this;
    tmp_34.l7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseAssignmentSubmissionDao$delegate$lambda(this));
    var tmp_35 = this;
    tmp_35.m7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseAssignmentSubmissionFileDao$delegate$lambda(this));
    var tmp_36 = this;
    tmp_36.n7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseAssignmentMarkDao$delegate$lambda(this));
    var tmp_37 = this;
    tmp_37.o7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_CommentsDao$delegate$lambda(this));
    var tmp_38 = this;
    tmp_38.p7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_SyncNodeDao$delegate$lambda(this));
    var tmp_39 = this;
    tmp_39.q7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_SiteDao$delegate$lambda(this));
    var tmp_40 = this;
    tmp_40.r7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_SiteTermsDao$delegate$lambda(this));
    var tmp_41 = this;
    tmp_41.s7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonParentJoinDao$delegate$lambda(this));
    var tmp_42 = this;
    tmp_42.t7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ScopedGrantDao$delegate$lambda(this));
    var tmp_43 = this;
    tmp_43.u7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ErrorReportDao$delegate$lambda(this));
    var tmp_44 = this;
    tmp_44.v7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonAuth2Dao$delegate$lambda(this));
    var tmp_45 = this;
    tmp_45.w7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_UserSessionDao$delegate$lambda(this));
    var tmp_46 = this;
    tmp_46.x7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryImportJobDao$delegate$lambda(this));
    var tmp_47 = this;
    tmp_47.y7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_CoursePictureDao$delegate$lambda(this));
    var tmp_48 = this;
    tmp_48.z7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryPictureDao$delegate$lambda(this));
    var tmp_49 = this;
    tmp_49.a7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_MessageDao$delegate$lambda(this));
    var tmp_50 = this;
    tmp_50.b7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_PeerReviewerAllocationDao$delegate$lambda(this));
    var tmp_51 = this;
    tmp_51.c7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_DiscussionPostDao$delegate$lambda(this));
    var tmp_52 = this;
    tmp_52.d7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ExternalAppPermissionDao$delegate$lambda(this));
    var tmp_53 = this;
    tmp_53.e7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryVersionDao$delegate$lambda(this));
    var tmp_54 = this;
    tmp_54.f7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_OutgoingReplicationDao$delegate$lambda(this));
    var tmp_55 = this;
    tmp_55.g7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_TransferJobDao$delegate$lambda(this));
    var tmp_56 = this;
    tmp_56.h7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_TransferJobItemDao$delegate$lambda(this));
    var tmp_57 = this;
    tmp_57.i7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_CacheLockJoinDao$delegate$lambda(this));
    var tmp_58 = this;
    tmp_58.j7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_OfflineItemDao$delegate$lambda(this));
    var tmp_59 = this;
    tmp_59.k7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_DeletedItemDao$delegate$lambda(this));
    var tmp_60 = this;
    tmp_60.l7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_EnrolmentRequestDao$delegate$lambda(this));
    var tmp_61 = this;
    tmp_61.m7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_CoursePermissionDao$delegate$lambda(this));
    var tmp_62 = this;
    tmp_62.n7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_SystemPermissionDao$delegate$lambda(this));
    var tmp_63 = this;
    tmp_63.o7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseBlockPictureDao$delegate$lambda(this));
    var tmp_64 = this;
    tmp_64.p7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryPicture2Dao$delegate$lambda(this));
    var tmp_65 = this;
    tmp_65.q7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_TransferJobErrorDao$delegate$lambda(this));
    var tmp_66 = this;
    tmp_66.r7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_StudentResultDao$delegate$lambda(this));
    var tmp_67 = this;
    tmp_67.s7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_VerbLangMapEntryDao$delegate$lambda(this));
    var tmp_68 = this;
    tmp_68.t7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_GroupMemberActorJoinDao$delegate$lambda(this));
    var tmp_69 = this;
    tmp_69.u7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActivityLangMapEntryDao$delegate$lambda(this));
    var tmp_70 = this;
    tmp_70.v7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActivityInteractionDao$delegate$lambda(this));
    var tmp_71 = this;
    tmp_71.w7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActivityExtensionDao$delegate$lambda(this));
    var tmp_72 = this;
    tmp_72.x7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_StatementContextActivityJoinDao$delegate$lambda(this));
    var tmp_73 = this;
    tmp_73.y7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_XapiSessionEntityDao$delegate$lambda(this));
    var tmp_74 = this;
    tmp_74.z7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_StatementEntityJsonDao$delegate$lambda(this));
    var tmp_75 = this;
    tmp_75.a7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_StateEntityDao$delegate$lambda(this));
    var tmp_76 = this;
    tmp_76.b7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_StateDeleteCommandDao$delegate$lambda(this));
  }
  protoOf(UmAppDatabase_JdbcImpl).p5k = function () {
    return this.c7l_1;
  };
  protoOf(UmAppDatabase_JdbcImpl).x71 = function () {
    return 202;
  };
  protoOf(UmAppDatabase_JdbcImpl).n5j = function () {
    return this.d7l_1;
  };
  protoOf(UmAppDatabase_JdbcImpl).y5i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.e7l_1;
    realNodeIdAuthCache$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).i5i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.f7l_1;
    realPrimaryKeyManager$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).j5l = function () {
    return this.d7l_1.e5j_1;
  };
  protoOf(UmAppDatabase_JdbcImpl).n7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.g7l_1;
    _PersonDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).o7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.h7l_1;
    _ClazzDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).p7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.i7l_1;
    _CourseBlockDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).q7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.j7l_1;
    _CourseTerminologyDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).r7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.k7l_1;
    _CourseGroupSetDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).s7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.l7l_1;
    _CourseGroupMemberDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).t7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.m7l_1;
    _ClazzEnrolmentDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).u7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.n7l_1;
    _LeavingReasonDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).v7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.o7l_1;
    _ContentEntryDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).w7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.p7l_1;
    _ContentEntryContentCategoryJoinDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).x7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.q7l_1;
    _ContentEntryParentChildJoinDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).y7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.r7l_1;
    _ContentEntryRelatedEntryJoinDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).z7i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.s7l_1;
    _ContentCategorySchemaDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).a7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.t7l_1;
    _ContentCategoryDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).b7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.u7l_1;
    _LanguageDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).c7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.v7l_1;
    _LanguageVariantDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).d7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.x7l_1;
    _PersonGroupDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).e7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.y7l_1;
    _PersonGroupMemberDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).f7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.z7l_1;
    _PersonPictureDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).g7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.a7m_1;
    _VerbDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).h7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.b7m_1;
    _ActivityEntityDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).i7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.c7m_1;
    _ReportDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).j7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.d7m_1;
    _StatementDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).k7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.e7m_1;
    _ActorDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).l7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.f7m_1;
    _ClazzLogAttendanceRecordDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).m7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.g7m_1;
    _ClazzLogDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).n7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.h7m_1;
    _ScheduleDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).o7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.i7m_1;
    _HolidayCalendarDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).p7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.j7m_1;
    _HolidayDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).q7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.k7m_1;
    _ClazzAssignmentDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).r7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.l7m_1;
    _CourseAssignmentSubmissionDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).s7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.m7m_1;
    _CourseAssignmentSubmissionFileDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).t7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.n7m_1;
    _CourseAssignmentMarkDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).u7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.o7m_1;
    _CommentsDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).v7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.q7m_1;
    _SiteDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).w7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.r7m_1;
    _SiteTermsDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).x7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.s7m_1;
    _PersonParentJoinDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).y7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.t7m_1;
    _ScopedGrantDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).z7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.u7m_1;
    _ErrorReportDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).a7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.v7m_1;
    _PersonAuth2Dao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).b7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.w7m_1;
    _UserSessionDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).c7o = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.x7m_1;
    _ContentEntryImportJobDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).c7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.y7m_1;
    _CoursePictureDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).d7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.z7m_1;
    _ContentEntryPictureDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).e7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.a7n_1;
    _MessageDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).f7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.b7n_1;
    _PeerReviewerAllocationDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).g7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.c7n_1;
    _DiscussionPostDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).h7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.e7n_1;
    _ContentEntryVersionDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).d7o = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.g7n_1;
    _TransferJobDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).e7o = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.h7n_1;
    _TransferJobItemDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).i7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.j7n_1;
    _OfflineItemDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).f7o = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.k7n_1;
    _DeletedItemDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).j7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.l7n_1;
    _EnrolmentRequestDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).k7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.m7n_1;
    _CoursePermissionDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).l7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.n7n_1;
    _SystemPermissionDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).m7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.o7n_1;
    _CourseBlockPictureDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).n7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.p7n_1;
    _ContentEntryPicture2Dao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).o7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.r7n_1;
    _StudentResultDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).p7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.s7n_1;
    _VerbLangMapEntryDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).q7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.t7n_1;
    _GroupMemberActorJoinDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).r7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.u7n_1;
    _ActivityLangMapEntryDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).s7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.v7n_1;
    _ActivityInteractionDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).t7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.w7n_1;
    _ActivityExtensionDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).u7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.x7n_1;
    _StatementContextActivityJoinDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).v7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.y7n_1;
    _XapiSessionEntityDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).w7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.z7n_1;
    _StatementEntityJsonDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).x7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.a7o_1;
    _StateEntityDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).y7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.b7o_1;
    _StateDeleteCommandDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).d71 = function () {
    var _stmtList = mutableLinkedListOf([]);
    var tmp0_subject = this.d7l_1.f5j_1;
    if (tmp0_subject === 1) {
      // Inline function 'kotlin.collections.plusAssign' call
      var element = 'CREATE TABLE IF NOT EXISTS _doorwayinfo (dbVersion int primary key, dbHash varchar(255))';
      _stmtList.i1(element);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_0 = "INSERT INTO _doorwayinfo VALUES (202, '')";
      _stmtList.i1(element_0);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_1 = 'CREATE TABLE IF NOT EXISTS ClazzLog (  clazzLogClazzUid  INTEGER  NOT NULL , logDate  INTEGER  NOT NULL , timeRecorded  INTEGER  NOT NULL , clazzLogDone  INTEGER  NOT NULL , cancellationNote  TEXT , clazzLogCancelled  INTEGER  NOT NULL , clazzLogNumPresent  INTEGER  NOT NULL , clazzLogNumAbsent  INTEGER  NOT NULL , clazzLogNumPartial  INTEGER  NOT NULL , clazzLogScheduleUid  INTEGER  NOT NULL , clazzLogStatusFlag  INTEGER  NOT NULL , clazzLogMSQN  INTEGER  NOT NULL , clazzLogLCSN  INTEGER  NOT NULL , clazzLogLCB  INTEGER  NOT NULL , clazzLogLastChangedTime  INTEGER  NOT NULL , clazzLogUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_1);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_2 = 'CREATE TABLE IF NOT EXISTS ClazzLogAttendanceRecord (  clazzLogAttendanceRecordClazzLogUid  INTEGER  NOT NULL , clazzLogAttendanceRecordPersonUid  INTEGER  NOT NULL , attendanceStatus  INTEGER  NOT NULL , clazzLogAttendanceRecordMasterChangeSeqNum  INTEGER  NOT NULL , clazzLogAttendanceRecordLocalChangeSeqNum  INTEGER  NOT NULL , clazzLogAttendanceRecordLastChangedBy  INTEGER  NOT NULL , clazzLogAttendanceRecordLastChangedTime  INTEGER  NOT NULL , clazzLogAttendanceRecordUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_2);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_3 = 'CREATE TABLE IF NOT EXISTS Schedule (  sceduleStartTime  INTEGER  NOT NULL , scheduleEndTime  INTEGER  NOT NULL , scheduleDay  INTEGER  NOT NULL , scheduleMonth  INTEGER  NOT NULL , scheduleFrequency  INTEGER  NOT NULL , umCalendarUid  INTEGER  NOT NULL , scheduleClazzUid  INTEGER  NOT NULL , scheduleMasterChangeSeqNum  INTEGER  NOT NULL , scheduleLocalChangeSeqNum  INTEGER  NOT NULL , scheduleLastChangedBy  INTEGER  NOT NULL , scheduleLastChangedTime  INTEGER  NOT NULL , scheduleActive  INTEGER  NOT NULL , scheduleUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_3);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_4 = 'CREATE TABLE IF NOT EXISTS HolidayCalendar (  umCalendarName  TEXT , umCalendarCategory  INTEGER  NOT NULL , umCalendarActive  INTEGER  NOT NULL , umCalendarMasterChangeSeqNum  INTEGER  NOT NULL , umCalendarLocalChangeSeqNum  INTEGER  NOT NULL , umCalendarLastChangedBy  INTEGER  NOT NULL , umCalendarLct  INTEGER  NOT NULL , umCalendarUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_4);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_5 = 'CREATE TABLE IF NOT EXISTS Holiday (  holMasterCsn  INTEGER  NOT NULL , holLocalCsn  INTEGER  NOT NULL , holLastModBy  INTEGER  NOT NULL , holLct  INTEGER  NOT NULL , holActive  INTEGER  NOT NULL , holHolidayCalendarUid  INTEGER  NOT NULL , holStartTime  INTEGER  NOT NULL , holEndTime  INTEGER  NOT NULL , holName  TEXT , holUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_5);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_6 = 'CREATE TABLE IF NOT EXISTS Person (  username  TEXT , firstNames  TEXT , lastName  TEXT , emailAddr  TEXT , phoneNum  TEXT , gender  INTEGER  NOT NULL , active  INTEGER  NOT NULL , dateOfBirth  INTEGER  NOT NULL , personAddress  TEXT , personOrgId  TEXT , personGroupUid  INTEGER  NOT NULL , personLct  INTEGER  NOT NULL , personCountry  TEXT , personType  INTEGER  NOT NULL  DEFAULT 0 , personMasterChangeSeqNum  INTEGER  NOT NULL , personLocalChangeSeqNum  INTEGER  NOT NULL , personLastChangedBy  INTEGER  NOT NULL , admin  INTEGER  NOT NULL , personNotes  TEXT , fatherName  TEXT , fatherNumber  TEXT , motherName  TEXT , motherNum  TEXT , personUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_6);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_7 = 'CREATE TABLE IF NOT EXISTS Clazz (  clazzName  TEXT , clazzDesc  TEXT , attendanceAverage  REAl  NOT NULL , clazzHolidayUMCalendarUid  INTEGER  NOT NULL , clazzScheuleUMCalendarUid  INTEGER  NOT NULL , isClazzActive  INTEGER  NOT NULL , clazzLocationUid  INTEGER  NOT NULL , clazzStartTime  INTEGER  NOT NULL , clazzEndTime  INTEGER  NOT NULL , clazzFeatures  INTEGER  NOT NULL , clazzSchoolUid  INTEGER  NOT NULL , clazzEnrolmentPolicy  INTEGER  NOT NULL  DEFAULT 102 , clazzTerminologyUid  INTEGER  NOT NULL  DEFAULT 25966 , clazzMasterChangeSeqNum  INTEGER  NOT NULL , clazzLocalChangeSeqNum  INTEGER  NOT NULL , clazzLastChangedBy  INTEGER  NOT NULL , clazzLct  INTEGER  NOT NULL , clazzTimeZone  TEXT , clazzStudentsPersonGroupUid  INTEGER  NOT NULL , clazzTeachersPersonGroupUid  INTEGER  NOT NULL , clazzPendingStudentsPersonGroupUid  INTEGER  NOT NULL , clazzParentsPersonGroupUid  INTEGER  NOT NULL , clazzCode  TEXT , clazzOwnerPersonUid  INTEGER  NOT NULL  DEFAULT 0 , clazzUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_7);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_8 = 'CREATE TABLE IF NOT EXISTS ClazzEnrolment (  clazzEnrolmentPersonUid  INTEGER  NOT NULL , clazzEnrolmentClazzUid  INTEGER  NOT NULL , clazzEnrolmentDateJoined  INTEGER  NOT NULL , clazzEnrolmentDateLeft  INTEGER  NOT NULL , clazzEnrolmentRole  INTEGER  NOT NULL , clazzEnrolmentAttendancePercentage  REAl  NOT NULL , clazzEnrolmentActive  INTEGER  NOT NULL , clazzEnrolmentLeavingReasonUid  INTEGER  NOT NULL , clazzEnrolmentOutcome  INTEGER  NOT NULL , clazzEnrolmentLocalChangeSeqNum  INTEGER  NOT NULL , clazzEnrolmentMasterChangeSeqNum  INTEGER  NOT NULL , clazzEnrolmentLastChangedBy  INTEGER  NOT NULL , clazzEnrolmentLct  INTEGER  NOT NULL , clazzEnrolmentUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_8);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_9 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentPersonUid_clazzEnrolmentClazzUid ON ClazzEnrolment (clazzEnrolmentPersonUid, clazzEnrolmentClazzUid)';
      _stmtList.i1(element_9);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_10 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentClazzUid_clazzEnrolmentPersonUid ON ClazzEnrolment (clazzEnrolmentClazzUid, clazzEnrolmentPersonUid)';
      _stmtList.i1(element_10);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_11 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentClazzUid_clazzEnrolmentRole ON ClazzEnrolment (clazzEnrolmentClazzUid, clazzEnrolmentRole)';
      _stmtList.i1(element_11);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_12 = 'CREATE TABLE IF NOT EXISTS LeavingReason (  leavingReasonTitle  TEXT , leavingReasonMCSN  INTEGER  NOT NULL , leavingReasonCSN  INTEGER  NOT NULL , leavingReasonLCB  INTEGER  NOT NULL , leavingReasonLct  INTEGER  NOT NULL , leavingReasonUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_12);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_13 = 'CREATE TABLE IF NOT EXISTS ContentEntry (  title  TEXT , description  TEXT , entryId  TEXT , author  TEXT , publisher  TEXT , licenseType  INTEGER  NOT NULL , licenseName  TEXT , licenseUrl  TEXT , sourceUrl  TEXT , thumbnailUrl  TEXT , lastModified  INTEGER  NOT NULL , primaryLanguageUid  INTEGER  NOT NULL , languageVariantUid  INTEGER  NOT NULL , contentFlags  INTEGER  NOT NULL , leaf  INTEGER  NOT NULL , publik  INTEGER  NOT NULL , ceInactive  INTEGER  NOT NULL , completionCriteria  INTEGER  NOT NULL , minScore  INTEGER  NOT NULL , contentTypeFlag  INTEGER  NOT NULL , contentOwner  INTEGER  NOT NULL , contentOwnerType  INTEGER  NOT NULL  DEFAULT 1 , contentEntryLocalChangeSeqNum  INTEGER  NOT NULL , contentEntryMasterChangeSeqNum  INTEGER  NOT NULL , contentEntryLastChangedBy  INTEGER  NOT NULL , contentEntryLct  INTEGER  NOT NULL , contentEntryUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_13);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_14 = 'CREATE TABLE IF NOT EXISTS ContentEntryContentCategoryJoin (  ceccjContentEntryUid  INTEGER  NOT NULL , ceccjContentCategoryUid  INTEGER  NOT NULL , ceccjLocalChangeSeqNum  INTEGER  NOT NULL , ceccjMasterChangeSeqNum  INTEGER  NOT NULL , ceccjLastChangedBy  INTEGER  NOT NULL , ceccjLct  INTEGER  NOT NULL , ceccjUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_14);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_15 = 'CREATE TABLE IF NOT EXISTS ContentEntryParentChildJoin (  cepcjLocalChangeSeqNum  INTEGER  NOT NULL , cepcjMasterChangeSeqNum  INTEGER  NOT NULL , cepcjLastChangedBy  INTEGER  NOT NULL , cepcjLct  INTEGER  NOT NULL , cepcjDeleted  INTEGER  NOT NULL  DEFAULT 0 , cepcjParentContentEntryUid  INTEGER  NOT NULL , cepcjChildContentEntryUid  INTEGER  NOT NULL , childIndex  INTEGER  NOT NULL , cepcjUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_15);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_16 = 'CREATE INDEX parent_child ON ContentEntryParentChildJoin (cepcjChildContentEntryUid, cepcjParentContentEntryUid)';
      _stmtList.i1(element_16);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_17 = 'CREATE TABLE IF NOT EXISTS ContentEntryRelatedEntryJoin (  cerejContentEntryUid  INTEGER  NOT NULL , cerejRelatedEntryUid  INTEGER  NOT NULL , cerejLastChangedBy  INTEGER  NOT NULL , relType  INTEGER  NOT NULL , comment  TEXT , cerejRelLanguageUid  INTEGER  NOT NULL , cerejLocalChangeSeqNum  INTEGER  NOT NULL , cerejMasterChangeSeqNum  INTEGER  NOT NULL , cerejLct  INTEGER  NOT NULL , cerejUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_17);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_18 = 'CREATE TABLE IF NOT EXISTS ContentCategorySchema (  schemaName  TEXT , schemaUrl  TEXT , contentCategorySchemaLocalChangeSeqNum  INTEGER  NOT NULL , contentCategorySchemaMasterChangeSeqNum  INTEGER  NOT NULL , contentCategorySchemaLastChangedBy  INTEGER  NOT NULL , contentCategorySchemaLct  INTEGER  NOT NULL , contentCategorySchemaUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_18);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_19 = 'CREATE TABLE IF NOT EXISTS ContentCategory (  ctnCatContentCategorySchemaUid  INTEGER  NOT NULL , name  TEXT , contentCategoryLocalChangeSeqNum  INTEGER  NOT NULL , contentCategoryMasterChangeSeqNum  INTEGER  NOT NULL , contentCategoryLastChangedBy  INTEGER  NOT NULL , contentCategoryLct  INTEGER  NOT NULL , contentCategoryUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_19);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_20 = 'CREATE TABLE IF NOT EXISTS Language (  name  TEXT , iso_639_1_standard  TEXT , iso_639_2_standard  TEXT , iso_639_3_standard  TEXT , Language_Type  TEXT , languageActive  INTEGER  NOT NULL , langLocalChangeSeqNum  INTEGER  NOT NULL , langMasterChangeSeqNum  INTEGER  NOT NULL , langLastChangedBy  INTEGER  NOT NULL , langLct  INTEGER  NOT NULL , langUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_20);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_21 = 'CREATE TABLE IF NOT EXISTS LanguageVariant (  langUid  INTEGER  NOT NULL , countryCode  TEXT , name  TEXT , langVariantLocalChangeSeqNum  INTEGER  NOT NULL , langVariantMasterChangeSeqNum  INTEGER  NOT NULL , langVariantLastChangedBy  INTEGER  NOT NULL , langVariantLct  INTEGER  NOT NULL , langVariantUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_21);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_22 = 'CREATE TABLE IF NOT EXISTS PersonAuth (  passwordHash  TEXT , personAuthStatus  INTEGER  NOT NULL , personAuthUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_22);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_23 = 'CREATE TABLE IF NOT EXISTS PersonGroup (  groupMasterCsn  INTEGER  NOT NULL , groupLocalCsn  INTEGER  NOT NULL , groupLastChangedBy  INTEGER  NOT NULL , groupLct  INTEGER  NOT NULL , groupName  TEXT , groupActive  INTEGER  NOT NULL , personGroupFlag  INTEGER  NOT NULL , groupUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_23);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_24 = 'CREATE TABLE IF NOT EXISTS PersonGroupMember (  groupMemberActive  INTEGER  NOT NULL , groupMemberPersonUid  INTEGER  NOT NULL , groupMemberGroupUid  INTEGER  NOT NULL , groupMemberMasterCsn  INTEGER  NOT NULL , groupMemberLocalCsn  INTEGER  NOT NULL , groupMemberLastChangedBy  INTEGER  NOT NULL , groupMemberLct  INTEGER  NOT NULL , groupMemberUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_24);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_25 = 'CREATE TABLE IF NOT EXISTS PersonPicture (  personPictureLct  INTEGER  NOT NULL , personPictureUri  TEXT , personPictureThumbnailUri  TEXT , fileSize  INTEGER  NOT NULL , personPictureActive  INTEGER  NOT NULL , personPictureUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_25);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_26 = 'CREATE TABLE IF NOT EXISTS VerbEntity (  verbUid  INTEGER  PRIMARY KEY  NOT NULL , verbUrlId  TEXT , verbDeleted  INTEGER  NOT NULL , verbLct  INTEGER  NOT NULL )';
      _stmtList.i1(element_26);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_27 = 'CREATE TABLE IF NOT EXISTS ActivityEntity (  actUid  INTEGER  PRIMARY KEY  NOT NULL , actIdIri  TEXT , actType  TEXT , actMoreInfo  TEXT , actInteractionType  INTEGER  NOT NULL , actCorrectResponsePatterns  TEXT , actLct  INTEGER  NOT NULL )';
      _stmtList.i1(element_27);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_28 = 'CREATE TABLE IF NOT EXISTS StatementEntity (  statementIdHi  INTEGER  NOT NULL , statementIdLo  INTEGER  NOT NULL , statementActorPersonUid  INTEGER  NOT NULL , statementVerbUid  INTEGER  NOT NULL , statementObjectType  INTEGER  NOT NULL , statementObjectUid1  INTEGER  NOT NULL , statementObjectUid2  INTEGER  NOT NULL , statementActorUid  INTEGER  NOT NULL , authorityActorUid  INTEGER  NOT NULL , teamUid  INTEGER  NOT NULL , resultCompletion  INTEGER , resultSuccess  INTEGER , resultScoreScaled  REAl , resultScoreRaw  REAl , resultScoreMin  REAl , resultScoreMax  REAl , resultDuration  INTEGER , resultResponse  TEXT , timestamp  INTEGER  NOT NULL , stored  INTEGER  NOT NULL , contextRegistrationHi  INTEGER  NOT NULL , contextRegistrationLo  INTEGER  NOT NULL , contextPlatform  TEXT , contextStatementRefIdHi  INTEGER  NOT NULL , contextStatementRefIdLo  INTEGER  NOT NULL , contextInstructorActorUid  INTEGER  NOT NULL , statementLct  INTEGER  NOT NULL , extensionProgress  INTEGER , completionOrProgress  INTEGER  NOT NULL , statementContentEntryUid  INTEGER  NOT NULL , statementLearnerGroupUid  INTEGER  NOT NULL , statementClazzUid  INTEGER  NOT NULL , statementCbUid  INTEGER  NOT NULL , statementDoorNode  INTEGER  NOT NULL , isSubStatement  INTEGER  NOT NULL , PRIMARY KEY (statementIdHi, statementIdLo) )';
      _stmtList.i1(element_28);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_29 = 'CREATE INDEX idx_stmt_actor_person ON StatementEntity (statementActorPersonUid)';
      _stmtList.i1(element_29);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_30 = 'CREATE INDEX idx_statement_clazz_person ON StatementEntity (statementClazzUid, statementActorPersonUid)';
      _stmtList.i1(element_30);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_31 = 'CREATE INDEX idx_statement_cbuid_actor ON StatementEntity (statementCbUid, statementActorUid)';
      _stmtList.i1(element_31);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_32 = 'CREATE TABLE IF NOT EXISTS ActorEntity (  actorPersonUid  INTEGER  NOT NULL , actorName  TEXT , actorMbox  TEXT , actorMbox_sha1sum  TEXT , actorOpenid  TEXT , actorAccountName  TEXT , actorAccountHomePage  TEXT , actorEtag  INTEGER  NOT NULL , actorLct  INTEGER  NOT NULL , actorObjectType  INTEGER  NOT NULL , actorUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_32);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_33 = 'CREATE INDEX idx_actorentity_uid_personuid ON ActorEntity (actorPersonUid)';
      _stmtList.i1(element_33);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_34 = 'CREATE INDEX idx_actorentity_actorobjecttype ON ActorEntity (actorObjectType)';
      _stmtList.i1(element_34);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_35 = 'CREATE TABLE IF NOT EXISTS SyncNode (  nodeClientId  INTEGER  NOT NULL , PRIMARY KEY (nodeClientId) )';
      _stmtList.i1(element_35);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_36 = 'CREATE TABLE IF NOT EXISTS Comments (  commentsText  TEXT , commentsEntityUid  INTEGER  NOT NULL , commentsStatus  INTEGER  NOT NULL , commentsFromPersonUid  INTEGER  NOT NULL , commentsForSubmitterUid  INTEGER  NOT NULL , commentsFromSubmitterUid  INTEGER  NOT NULL , commentsFlagged  INTEGER  NOT NULL , commentsDeleted  INTEGER  NOT NULL , commentsDateTimeAdded  INTEGER  NOT NULL , commentsLct  INTEGER  NOT NULL , commentsUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_36);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_37 = 'CREATE INDEX idx_comments_entity_submitter ON Comments (commentsEntityUid, commentsForSubmitterUid)';
      _stmtList.i1(element_37);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_38 = 'CREATE TABLE IF NOT EXISTS Report (  reportOwnerUid  INTEGER  NOT NULL , xAxis  INTEGER  NOT NULL , reportDateRangeSelection  INTEGER  NOT NULL , fromDate  INTEGER  NOT NULL , fromRelTo  INTEGER  NOT NULL , fromRelOffSet  INTEGER  NOT NULL , fromRelUnit  INTEGER  NOT NULL , toDate  INTEGER  NOT NULL , toRelTo  INTEGER  NOT NULL , toRelOffSet  INTEGER  NOT NULL , toRelUnit  INTEGER  NOT NULL , reportTitle  TEXT , reportDescription  TEXT , reportSeries  TEXT , reportInactive  INTEGER  NOT NULL , isTemplate  INTEGER  NOT NULL , priority  INTEGER  NOT NULL , reportTitleId  INTEGER  NOT NULL , reportDescId  INTEGER  NOT NULL , reportMasterChangeSeqNum  INTEGER  NOT NULL , reportLocalChangeSeqNum  INTEGER  NOT NULL , reportLastChangedBy  INTEGER  NOT NULL , reportLct  INTEGER  NOT NULL , reportUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_38);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_39 = 'CREATE TABLE IF NOT EXISTS Site (  sitePcsn  INTEGER  NOT NULL , siteLcsn  INTEGER  NOT NULL , siteLcb  INTEGER  NOT NULL , siteLct  INTEGER  NOT NULL , siteName  TEXT , guestLogin  INTEGER  NOT NULL , registrationAllowed  INTEGER  NOT NULL , authSalt  TEXT , siteUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_39);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_40 = 'CREATE TABLE IF NOT EXISTS SiteTerms (  termsHtml  TEXT , sTermsLang  TEXT , sTermsLangUid  INTEGER  NOT NULL , sTermsActive  INTEGER  NOT NULL , sTermsLastChangedBy  INTEGER  NOT NULL , sTermsPrimaryCsn  INTEGER  NOT NULL , sTermsLocalCsn  INTEGER  NOT NULL , sTermsLct  INTEGER  NOT NULL , sTermsUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_40);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_41 = 'CREATE TABLE IF NOT EXISTS PersonParentJoin (  ppjPcsn  INTEGER  NOT NULL , ppjLcsn  INTEGER  NOT NULL , ppjLcb  INTEGER  NOT NULL , ppjLct  INTEGER  NOT NULL , ppjParentPersonUid  INTEGER  NOT NULL , ppjMinorPersonUid  INTEGER  NOT NULL , ppjRelationship  INTEGER  NOT NULL , ppjEmail  TEXT , ppjPhone  TEXT , ppjInactive  INTEGER  NOT NULL , ppjStatus  INTEGER  NOT NULL , ppjApprovalTiemstamp  INTEGER  NOT NULL , ppjApprovalIpAddr  TEXT , ppjUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_41);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_42 = 'CREATE TABLE IF NOT EXISTS ScopedGrant (  sgPcsn  INTEGER  NOT NULL , sgLcsn  INTEGER  NOT NULL , sgLcb  INTEGER  NOT NULL , sgLct  INTEGER  NOT NULL , sgTableId  INTEGER  NOT NULL , sgEntityUid  INTEGER  NOT NULL , sgPermissions  INTEGER  NOT NULL , sgGroupUid  INTEGER  NOT NULL , sgIndex  INTEGER  NOT NULL , sgFlags  INTEGER  NOT NULL , sgUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_42);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_43 = 'CREATE INDEX idx_group_to_entity ON ScopedGrant (sgGroupUid, sgPermissions, sgTableId, sgEntityUid)';
      _stmtList.i1(element_43);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_44 = 'CREATE INDEX idx_entity_to_group ON ScopedGrant (sgTableId, sgEntityUid, sgPermissions, sgGroupUid)';
      _stmtList.i1(element_44);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_45 = 'CREATE TABLE IF NOT EXISTS ErrorReport (  errPcsn  INTEGER  NOT NULL , errLcsn  INTEGER  NOT NULL , errLcb  INTEGER  NOT NULL , errLct  INTEGER  NOT NULL , severity  INTEGER  NOT NULL , timestamp  INTEGER  NOT NULL , presenterUri  TEXT , appVersion  TEXT , versionCode  INTEGER  NOT NULL , errorCode  INTEGER  NOT NULL , operatingSys  TEXT , osVersion  TEXT , stackTrace  TEXT , message  TEXT , errUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_45);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_46 = 'CREATE TABLE IF NOT EXISTS ClazzAssignment (  caTitle  TEXT , caDescription  TEXT , caGroupUid  INTEGER  NOT NULL  DEFAULT 0 , caActive  INTEGER  NOT NULL , caClassCommentEnabled  INTEGER  NOT NULL , caPrivateCommentsEnabled  INTEGER  NOT NULL  DEFAULT 1 , caCompletionCriteria  INTEGER  NOT NULL  DEFAULT 100 , caRequireFileSubmission  INTEGER  NOT NULL  DEFAULT 1 , caFileType  INTEGER  NOT NULL  DEFAULT 0 , caSizeLimit  INTEGER  NOT NULL  DEFAULT 50 , caNumberOfFiles  INTEGER  NOT NULL  DEFAULT 1 , caSubmissionPolicy  INTEGER  NOT NULL  DEFAULT 1 , caMarkingType  INTEGER  NOT NULL  DEFAULT 1 , caRequireTextSubmission  INTEGER  NOT NULL  DEFAULT 1 , caTextLimitType  INTEGER  NOT NULL  DEFAULT 1 , caTextLimit  INTEGER  NOT NULL  DEFAULT 500 , caXObjectUid  INTEGER  NOT NULL  DEFAULT 0 , caClazzUid  INTEGER  NOT NULL , caPeerReviewerCount  INTEGER  NOT NULL  DEFAULT 0 , caLocalChangeSeqNum  INTEGER  NOT NULL , caMasterChangeSeqNum  INTEGER  NOT NULL , caLastChangedBy  INTEGER  NOT NULL , caLct  INTEGER  NOT NULL , caUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_46);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_47 = 'CREATE TABLE IF NOT EXISTS CourseAssignmentSubmission (  casAssignmentUid  INTEGER  NOT NULL , casSubmitterUid  INTEGER  NOT NULL , casSubmitterPersonUid  INTEGER  NOT NULL , casText  TEXT , casType  INTEGER  NOT NULL , casTimestamp  INTEGER  NOT NULL , casClazzUid  INTEGER  NOT NULL  DEFAULT 0 , casUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_47);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_48 = 'CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionFile (  casaSubmissionUid  INTEGER  NOT NULL , casaSubmitterUid  INTEGER  NOT NULL  DEFAULT 0 , casaCaUid  INTEGER  NOT NULL , casaClazzUid  INTEGER  NOT NULL , casaMimeType  TEXT , casaFileName  TEXT , casaUri  TEXT , casaSize  INTEGER  NOT NULL , casaTimestamp  INTEGER  NOT NULL , casaDeleted  INTEGER  NOT NULL  DEFAULT 0 , casaUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_48);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_49 = 'CREATE TABLE IF NOT EXISTS CourseAssignmentMark (  camAssignmentUid  INTEGER  NOT NULL , camSubmitterUid  INTEGER  NOT NULL , camMarkerSubmitterUid  INTEGER  NOT NULL  DEFAULT 0 , camMarkerPersonUid  INTEGER  NOT NULL  DEFAULT 0 , camMarkerComment  TEXT , camMark  REAl  NOT NULL , camMaxMark  REAl  NOT NULL  DEFAULT 1 , camPenalty  REAl  NOT NULL , camLct  INTEGER  NOT NULL , camClazzUid  INTEGER  NOT NULL  DEFAULT 0 , camUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_49);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_50 = 'CREATE TABLE IF NOT EXISTS PeerReviewerAllocation (  praMarkerSubmitterUid  INTEGER  NOT NULL , praToMarkerSubmitterUid  INTEGER  NOT NULL , praAssignmentUid  INTEGER  NOT NULL , praActive  INTEGER  NOT NULL , praLct  INTEGER  NOT NULL , praUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_50);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_51 = 'CREATE TABLE IF NOT EXISTS PersonAuth2 (  pauthUid  INTEGER  PRIMARY KEY  NOT NULL , pauthMechanism  TEXT , pauthAuth  TEXT , pauthLcsn  INTEGER  NOT NULL , pauthPcsn  INTEGER  NOT NULL , pauthLcb  INTEGER  NOT NULL , pauthLct  INTEGER  NOT NULL )';
      _stmtList.i1(element_51);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_52 = 'CREATE TABLE IF NOT EXISTS UserSession (  usPcsn  INTEGER  NOT NULL , usLcsn  INTEGER  NOT NULL , usLcb  INTEGER  NOT NULL , usLct  INTEGER  NOT NULL , usPersonUid  INTEGER  NOT NULL , usClientNodeId  INTEGER  NOT NULL , usStartTime  INTEGER  NOT NULL , usEndTime  INTEGER  NOT NULL , usStatus  INTEGER  NOT NULL , usReason  INTEGER  NOT NULL , usAuth  TEXT , usSessionType  INTEGER  NOT NULL , usUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_52);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_53 = 'CREATE INDEX person_status_node_idx ON UserSession (usPersonUid, usStatus, usClientNodeId)';
      _stmtList.i1(element_53);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_54 = 'CREATE INDEX node_status_person_idx ON UserSession (usClientNodeId, usStatus, usPersonUid)';
      _stmtList.i1(element_54);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_55 = 'CREATE TABLE IF NOT EXISTS ContentJob (  toUri  TEXT , cjProgress  INTEGER  NOT NULL , cjTotal  INTEGER  NOT NULL , cjNotificationTitle  TEXT , cjIsMeteredAllowed  INTEGER  NOT NULL , params  TEXT , cjLct  INTEGER  NOT NULL , cjUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_55);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_56 = 'CREATE TABLE IF NOT EXISTS ContentEntryImportJob (  sourceUri  TEXT , cjiOriginalFilename  TEXT , cjiContentEntryUid  INTEGER  NOT NULL , cjiParentContentEntryUid  INTEGER  NOT NULL , cjiContentEntryVersion  INTEGER  NOT NULL , cjiItemProgress  INTEGER  NOT NULL , cjiItemTotal  INTEGER  NOT NULL , cjiStatus  INTEGER  NOT NULL , cjiRecursiveStatus  INTEGER  NOT NULL , cjiPluginId  INTEGER  NOT NULL , cjiParentCjiUid  INTEGER  NOT NULL , cjiStartTime  INTEGER  NOT NULL , cjiFinishTime  INTEGER  NOT NULL , cjiContentDeletedOnCancellation  INTEGER  NOT NULL , cjiCompressionLevel  INTEGER  NOT NULL  DEFAULT 3 , cjiError  TEXT , cjiErrorDismissed  INTEGER  NOT NULL , cjiOwnerPersonUid  INTEGER  NOT NULL , cjiParams  TEXT , cjiUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_56);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_57 = 'CREATE INDEX index_ContentEntryImportJob_cjiContentEntryUid_cjiFinishTime ON ContentEntryImportJob (cjiContentEntryUid, cjiFinishTime)';
      _stmtList.i1(element_57);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_58 = 'CREATE TABLE IF NOT EXISTS CourseBlock (  cbType  INTEGER  NOT NULL , cbIndentLevel  INTEGER  NOT NULL , cbModuleParentBlockUid  INTEGER  NOT NULL , cbTitle  TEXT , cbDescription  TEXT , cbCompletionCriteria  INTEGER  NOT NULL , cbHideUntilDate  INTEGER  NOT NULL , cbDeadlineDate  INTEGER  NOT NULL , cbLateSubmissionPenalty  INTEGER  NOT NULL , cbGracePeriodDate  INTEGER  NOT NULL , cbMaxPoints  REAl , cbMinPoints  REAl , cbIndex  INTEGER  NOT NULL , cbClazzUid  INTEGER  NOT NULL , cbClazzSourcedId  TEXT , cbActive  INTEGER  NOT NULL , cbHidden  INTEGER  NOT NULL , cbEntityUid  INTEGER  NOT NULL , cbLct  INTEGER  NOT NULL , cbSourcedId  TEXT , cbMetadata  TEXT , cbCreatedByAppId  TEXT , cbUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_58);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_59 = 'CREATE INDEX idx_courseblock_cbclazzuid ON CourseBlock (cbClazzUid)';
      _stmtList.i1(element_59);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_60 = 'CREATE TABLE IF NOT EXISTS CourseTerminology (  ctTitle  TEXT , ctTerminology  TEXT , ctLct  INTEGER  NOT NULL , ctUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_60);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_61 = 'CREATE TABLE IF NOT EXISTS CourseGroupSet (  cgsName  TEXT , cgsTotalGroups  INTEGER  NOT NULL , cgsActive  INTEGER  NOT NULL , cgsClazzUid  INTEGER  NOT NULL , cgsLct  INTEGER  NOT NULL , cgsUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_61);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_62 = 'CREATE TABLE IF NOT EXISTS CourseGroupMember (  cgmSetUid  INTEGER  NOT NULL , cgmGroupNumber  INTEGER  NOT NULL , cgmPersonUid  INTEGER  NOT NULL , cgmLct  INTEGER  NOT NULL , cgmUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_62);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_63 = 'CREATE TABLE IF NOT EXISTS ContentEntryPicture (  cepContentEntryUid  INTEGER  NOT NULL , cepUri  TEXT , cepMd5  TEXT , cepFileSize  INTEGER  NOT NULL , cepTimestamp  INTEGER  NOT NULL , cepMimeType  TEXT , cepActive  INTEGER  NOT NULL , cepUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_63);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_64 = 'CREATE TABLE IF NOT EXISTS ActivityInteractionEntity (  aieActivityUid  INTEGER  NOT NULL , aieHash  INTEGER  NOT NULL , aieProp  INTEGER  NOT NULL , aieId  TEXT , aieLastMod  INTEGER  NOT NULL , aieIsDeleted  INTEGER  NOT NULL , PRIMARY KEY (aieActivityUid, aieHash) )';
      _stmtList.i1(element_64);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_65 = 'CREATE TABLE IF NOT EXISTS CoursePicture (  coursePictureLct  INTEGER  NOT NULL , coursePictureUri  TEXT , coursePictureThumbnailUri  TEXT , coursePictureActive  INTEGER  NOT NULL , coursePictureUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_65);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_66 = 'CREATE TABLE IF NOT EXISTS DiscussionPost (  discussionPostReplyToPostUid  INTEGER  NOT NULL , discussionPostTitle  TEXT , discussionPostMessage  TEXT , discussionPostStartDate  INTEGER  NOT NULL , discussionPostCourseBlockUid  INTEGER  NOT NULL , dpDeleted  INTEGER  NOT NULL , discussionPostStartedPersonUid  INTEGER  NOT NULL , discussionPostClazzUid  INTEGER  NOT NULL , discussionPostLct  INTEGER  NOT NULL , discussionPostVisible  INTEGER  NOT NULL , discussionPostArchive  INTEGER  NOT NULL , discussionPostUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_66);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_67 = 'CREATE TABLE IF NOT EXISTS ExternalAppPermission (  eapPersonUid  INTEGER  NOT NULL , eapPackageId  TEXT , eapStartTime  INTEGER  NOT NULL , eapExpireTime  INTEGER  NOT NULL , eapAuthToken  TEXT , eapAndroidAccountName  TEXT , eapUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_67);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_68 = 'CREATE TABLE IF NOT EXISTS Message (  messageSenderPersonUid  INTEGER  NOT NULL , messageToPersonUid  INTEGER  NOT NULL , messageText  TEXT , messageTimestamp  INTEGER  NOT NULL , messageLct  INTEGER  NOT NULL , messageUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_68);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_69 = 'CREATE INDEX message_idx_send_to_time ON Message (messageSenderPersonUid, messageToPersonUid, messageTimestamp)';
      _stmtList.i1(element_69);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_70 = 'CREATE TABLE IF NOT EXISTS StudentResult (  srUid  INTEGER  PRIMARY KEY  NOT NULL , srSourcedId  TEXT , srCourseBlockUid  INTEGER  NOT NULL , srLineItemSourcedId  TEXT , srLineItemHref  TEXT , srClazzUid  INTEGER  NOT NULL , srAssignmentUid  INTEGER  NOT NULL , srStatus  INTEGER  NOT NULL , srMetaData  TEXT , srStudentPersonUid  INTEGER  NOT NULL , srStudentPersonSourcedId  TEXT , srStudentGroupId  INTEGER  NOT NULL , srMarkerPersonUid  INTEGER  NOT NULL , srMarkerGroupId  INTEGER  NOT NULL , srScoreStatus  INTEGER  NOT NULL , srScore  REAl  NOT NULL , srScoreDate  INTEGER  NOT NULL , srLastModified  INTEGER  NOT NULL , srComment  TEXT , srAppId  TEXT , srDeleted  INTEGER  NOT NULL )';
      _stmtList.i1(element_70);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_71 = 'CREATE TABLE IF NOT EXISTS ContentEntryVersion (  cevContentEntryUid  INTEGER  NOT NULL , cevOpenUri  TEXT , cevContentType  TEXT , cevManifestUrl  TEXT , cevSize  INTEGER  NOT NULL , cevInActive  INTEGER  NOT NULL , cevLastModified  INTEGER  NOT NULL , cevLct  INTEGER  NOT NULL , cevStorageSize  INTEGER  NOT NULL  DEFAULT 0 , cevOriginalSize  INTEGER  NOT NULL  DEFAULT 0 , cevUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_71);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_72 = 'CREATE TABLE IF NOT EXISTS TransferJob (  tjType  INTEGER  NOT NULL , tjStatus  INTEGER  NOT NULL , tjName  TEXT , tjUuid  TEXT , tjTableId  INTEGER  NOT NULL  DEFAULT 0 , tjEntityUid  INTEGER  NOT NULL  DEFAULT 0 , tjTimeCreated  INTEGER  NOT NULL  DEFAULT 0 , tjCreationType  INTEGER  NOT NULL  DEFAULT 0 , tjOiUid  INTEGER  NOT NULL  DEFAULT 0 , tjUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_72);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_73 = 'CREATE INDEX TransferJob_idx_tjTableId_EntityUid ON TransferJob (tjTableId, tjEntityUid)';
      _stmtList.i1(element_73);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_74 = 'CREATE TABLE IF NOT EXISTS TransferJobItem (  tjiTjUid  INTEGER  NOT NULL , tjTotalSize  INTEGER  NOT NULL , tjTransferred  INTEGER  NOT NULL , tjAttemptCount  INTEGER  NOT NULL , tjiSrc  TEXT , tjiDest  TEXT , tjiType  INTEGER  NOT NULL , tjiStatus  INTEGER  NOT NULL , tjiTableId  INTEGER  NOT NULL , tjiEntityUid  INTEGER  NOT NULL , tjiEntityEtag  INTEGER  NOT NULL  DEFAULT 0 , tjiLockIdToRelease  INTEGER  NOT NULL  DEFAULT 0 , tjiPartialTmpFile  TEXT , tjiUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_74);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_75 = 'CREATE INDEX tji_table_entity_etag ON TransferJobItem (tjiTableId, tjiEntityUid, tjiEntityEtag)';
      _stmtList.i1(element_75);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_76 = 'CREATE INDEX transferjob_tjuid ON TransferJobItem (tjiTjUid)';
      _stmtList.i1(element_76);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_77 = 'CREATE TABLE IF NOT EXISTS CacheLockJoin (  cljTableId  INTEGER  NOT NULL , cljEntityUid  INTEGER  NOT NULL , cljUrl  TEXT , cljLockId  INTEGER  NOT NULL , cljStatus  INTEGER  NOT NULL , cljType  INTEGER  NOT NULL , cljOiUid  INTEGER  NOT NULL  DEFAULT 0 , cljId  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_77);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_78 = 'CREATE INDEX idx_clj_table_entity_url ON CacheLockJoin (cljTableId, cljEntityUid, cljUrl)';
      _stmtList.i1(element_78);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_79 = 'CREATE INDEX idx_clj_offline_item_uid ON CacheLockJoin (cljOiUid)';
      _stmtList.i1(element_79);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_80 = 'CREATE TABLE IF NOT EXISTS OfflineItem (  oiNodeId  INTEGER  NOT NULL , oiClazzUid  INTEGER  NOT NULL , oiCourseBlockUid  INTEGER  NOT NULL , oiContentEntryUid  INTEGER  NOT NULL , oiActive  INTEGER  NOT NULL , oiLct  INTEGER  NOT NULL , oiUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_80);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_81 = 'CREATE INDEX offline_item_node_content_entry ON OfflineItem (oiNodeId, oiContentEntryUid)';
      _stmtList.i1(element_81);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_82 = 'CREATE TABLE IF NOT EXISTS OfflineItemPendingTransferJob (  oiptjOiUid  INTEGER  NOT NULL , oiptjTableId  INTEGER  NOT NULL , oiptjEntityUid  INTEGER  NOT NULL , oiptjUrl  TEXT , oiptjType  INTEGER  NOT NULL , oiptjId  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_82);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_83 = 'CREATE TABLE IF NOT EXISTS DeletedItem (  delItemName  TEXT , delItemIconUri  TEXT , delItemLastModTime  INTEGER  NOT NULL , delItemTimeDeleted  INTEGER  NOT NULL , delItemEntityTable  INTEGER  NOT NULL , delItemEntityUid  INTEGER  NOT NULL , delItemDeletedByPersonUid  INTEGER  NOT NULL , delItemStatus  INTEGER  NOT NULL , delItemIsFolder  INTEGER  NOT NULL  DEFAULT 0 , delItemUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_83);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_84 = 'CREATE INDEX delitem_idx_status_time ON DeletedItem (delItemStatus, delItemTimeDeleted)';
      _stmtList.i1(element_84);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_85 = 'CREATE TABLE IF NOT EXISTS EnrolmentRequest (  erClazzUid  INTEGER  NOT NULL , erClazzName  TEXT , erPersonUid  INTEGER  NOT NULL , erPersonFullname  TEXT , erPersonPictureUri  TEXT , erPersonUsername  TEXT , erRole  INTEGER  NOT NULL , erRequestTime  INTEGER  NOT NULL , erStatus  INTEGER  NOT NULL , erStatusSetByPersonUid  INTEGER  NOT NULL , erDeleted  INTEGER  NOT NULL , erStatusSetAuth  TEXT , erLastModified  INTEGER  NOT NULL , erUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_85);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_86 = 'CREATE INDEX idx_enrolmentrequest_by_clazz ON EnrolmentRequest (erClazzUid, erStatus)';
      _stmtList.i1(element_86);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_87 = 'CREATE INDEX idx_enrolmentrequest_by_person ON EnrolmentRequest (erPersonUid, erStatus)';
      _stmtList.i1(element_87);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_88 = 'CREATE TABLE IF NOT EXISTS CoursePermission (  cpLastModified  INTEGER  NOT NULL , cpClazzUid  INTEGER  NOT NULL , cpToEnrolmentRole  INTEGER  NOT NULL , cpToPersonUid  INTEGER  NOT NULL , cpToGroupUid  INTEGER  NOT NULL , cpPermissionsFlag  INTEGER  NOT NULL , cpIsDeleted  INTEGER  NOT NULL , cpUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_88);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_89 = 'CREATE INDEX idx_coursepermission_clazzuid ON CoursePermission (cpClazzUid)';
      _stmtList.i1(element_89);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_90 = 'CREATE TABLE IF NOT EXISTS SystemPermission (  spToPersonUid  INTEGER  NOT NULL , spToGroupUid  INTEGER  NOT NULL , spPermissionsFlag  INTEGER  NOT NULL , spLastModified  INTEGER  NOT NULL , spIsDeleted  INTEGER  NOT NULL , spUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_90);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_91 = 'CREATE INDEX idx_systempermission_personuid ON SystemPermission (spToPersonUid)';
      _stmtList.i1(element_91);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_92 = 'CREATE TABLE IF NOT EXISTS CourseBlockPicture (  cbpUid  INTEGER  PRIMARY KEY  NOT NULL , cbpLct  INTEGER  NOT NULL , cbpPictureUri  TEXT , cbpThumbnailUri  TEXT )';
      _stmtList.i1(element_92);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_93 = 'CREATE TABLE IF NOT EXISTS ContentEntryPicture2 (  cepUid  INTEGER  PRIMARY KEY  NOT NULL , cepLct  INTEGER  NOT NULL , cepPictureUri  TEXT , cepThumbnailUri  TEXT )';
      _stmtList.i1(element_93);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_94 = 'CREATE TABLE IF NOT EXISTS TransferJobError (  tjeTjUid  INTEGER  NOT NULL , tjeTime  INTEGER  NOT NULL , tjeErrorStr  TEXT , tjeDismissed  INTEGER  NOT NULL , tjeId  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_94);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_95 = 'CREATE INDEX idx_transferjoberror_tjetjuid ON TransferJobError (tjeTjUid)';
      _stmtList.i1(element_95);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_96 = 'CREATE TABLE IF NOT EXISTS VerbLangMapEntry (  vlmeVerbUid  INTEGER  NOT NULL , vlmeLangHash  INTEGER  NOT NULL , vlmeLangCode  TEXT , vlmeEntryString  TEXT , vlmeLastModified  INTEGER  NOT NULL , PRIMARY KEY (vlmeVerbUid, vlmeLangHash) )';
      _stmtList.i1(element_96);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_97 = 'CREATE TABLE IF NOT EXISTS GroupMemberActorJoin (  gmajGroupActorUid  INTEGER  NOT NULL , gmajMemberActorUid  INTEGER  NOT NULL , gmajLastMod  INTEGER  NOT NULL , PRIMARY KEY (gmajGroupActorUid, gmajMemberActorUid) )';
      _stmtList.i1(element_97);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_98 = 'CREATE INDEX idx_groupmemberactorjoin_gmajgroupactoruid ON GroupMemberActorJoin (gmajGroupActorUid)';
      _stmtList.i1(element_98);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_99 = 'CREATE INDEX idx_groupmemberactorjoin_gmajmemberactoruid ON GroupMemberActorJoin (gmajMemberActorUid)';
      _stmtList.i1(element_99);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_100 = 'CREATE TABLE IF NOT EXISTS ActivityLangMapEntry (  almeActivityUid  INTEGER  NOT NULL , almeHash  INTEGER  NOT NULL , almeLangCode  TEXT , almeValue  TEXT , almeAieHash  INTEGER  NOT NULL , almeLastMod  INTEGER  NOT NULL , PRIMARY KEY (almeActivityUid, almeHash) )';
      _stmtList.i1(element_100);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_101 = 'CREATE TABLE IF NOT EXISTS ActivityExtensionEntity (  aeeActivityUid  INTEGER  NOT NULL , aeeKeyHash  INTEGER  NOT NULL , aeeKey  TEXT , aeeJson  TEXT , aeeLastMod  INTEGER  NOT NULL , aeeIsDeleted  INTEGER  NOT NULL , PRIMARY KEY (aeeActivityUid, aeeKeyHash) )';
      _stmtList.i1(element_101);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_102 = 'CREATE TABLE IF NOT EXISTS StatementContextActivityJoin (  scajFromStatementIdHi  INTEGER  NOT NULL , scajFromStatementIdLo  INTEGER  NOT NULL , scajToHash  INTEGER  NOT NULL , scajContextType  INTEGER  NOT NULL , scajToActivityUid  INTEGER  NOT NULL , scajToActivityId  TEXT , scajEtag  INTEGER  NOT NULL , PRIMARY KEY (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash) )';
      _stmtList.i1(element_102);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_103 = 'CREATE TABLE IF NOT EXISTS XapiSessionEntity (  xseLastMod  INTEGER  NOT NULL , xseRegistrationHi  INTEGER  NOT NULL , xseRegistrationLo  INTEGER  NOT NULL , xseUsUid  INTEGER  NOT NULL , xseAccountPersonUid  INTEGER  NOT NULL , xseActorUid  INTEGER  NOT NULL , xseAccountUsername  TEXT  NOT NULL , xseClazzUid  INTEGER  NOT NULL , xseCbUid  INTEGER  NOT NULL , xseContentEntryUid  INTEGER  NOT NULL , xseContentEntryVersionUid  INTEGER  NOT NULL  DEFAULT 0 , xseRootActivityId  TEXT  NOT NULL , xseRootActivityUid  INTEGER  NOT NULL , xseStartTime  INTEGER  NOT NULL , xseExpireTime  INTEGER  NOT NULL , xseAuth  TEXT , xseCompleted  INTEGER  NOT NULL  DEFAULT 0 , knownActorUidToPersonUids  TEXT  NOT NULL , xseUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_103);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_104 = 'CREATE TABLE IF NOT EXISTS StatementEntityJson (  stmtJsonIdHi  INTEGER  NOT NULL , stmtJsonIdLo  INTEGER  NOT NULL , stmtEtag  INTEGER  NOT NULL , fullStatement  TEXT , PRIMARY KEY (stmtJsonIdHi, stmtJsonIdLo) )';
      _stmtList.i1(element_104);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_105 = 'CREATE TABLE IF NOT EXISTS StateEntity (  seActorUid  INTEGER  NOT NULL , seHash  INTEGER  NOT NULL , seActivityUid  INTEGER  NOT NULL , seStateId  TEXT  NOT NULL , seLastMod  INTEGER  NOT NULL , seTimeStored  INTEGER  NOT NULL , seContentType  TEXT  NOT NULL , seCompressed  INTEGER  NOT NULL , seContent  TEXT  NOT NULL , seDeleted  INTEGER  NOT NULL , seRegistrationHi  INTEGER , seRegistrationLo  INTEGER , seH5PPreloaded  INTEGER  NOT NULL , seH5PSubContentId  TEXT , PRIMARY KEY (seActorUid, seHash) )';
      _stmtList.i1(element_105);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_106 = 'CREATE TABLE IF NOT EXISTS StateDeleteCommand (  sdcActorUid  INTEGER  NOT NULL , sdcHash  INTEGER  NOT NULL , sdcActivityUid  INTEGER  NOT NULL , sdcStateId  TEXT , sdcLastMod  INTEGER  NOT NULL , sdcRegistrationHi  INTEGER , sdcRegistrationLo  INTEGER , PRIMARY KEY (sdcActorUid, sdcHash) )';
      _stmtList.i1(element_106);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_107 = 'CREATE TABLE IF NOT EXISTS OutgoingReplication (  destNodeId  INTEGER  NOT NULL , orPk1  INTEGER  NOT NULL , orPk2  INTEGER  NOT NULL  DEFAULT 0 , orPk3  INTEGER  NOT NULL  DEFAULT 0 , orPk4  INTEGER  NOT NULL  DEFAULT 0 , orTableId  INTEGER  NOT NULL , orUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_107);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_108 = 'CREATE TABLE IF NOT EXISTS ReplicationOperation (  repOpRemoteNodeId  INTEGER  NOT NULL , repOpStatus  INTEGER  NOT NULL , repOpTableId  INTEGER  NOT NULL , PRIMARY KEY (repOpRemoteNodeId, repOpTableId) )';
      _stmtList.i1(element_108);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_109 = 'CREATE TABLE IF NOT EXISTS PendingRepositorySession (  endpointUrl  TEXT , remoteNodeId  INTEGER  NOT NULL , rsUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_109);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_110 = 'CREATE TABLE IF NOT EXISTS DoorNode (  auth  TEXT , nodeId  INTEGER  NOT NULL , rel  INTEGER  NOT NULL  DEFAULT 2 , PRIMARY KEY (nodeId) )';
      _stmtList.i1(element_110);
    } else if (tmp0_subject === 2) {
      // Inline function 'kotlin.collections.plusAssign' call
      var element_111 = 'CREATE TABLE IF NOT EXISTS _doorwayinfo (dbVersion int primary key, dbHash varchar(255))';
      _stmtList.i1(element_111);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_112 = "INSERT INTO _doorwayinfo VALUES (202, '')";
      _stmtList.i1(element_112);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_113 = 'CREATE TABLE IF NOT EXISTS ClazzLog (  clazzLogClazzUid  BIGINT  NOT NULL , logDate  BIGINT  NOT NULL , timeRecorded  BIGINT  NOT NULL , clazzLogDone  BOOL  NOT NULL , cancellationNote  TEXT , clazzLogCancelled  BOOL  NOT NULL , clazzLogNumPresent  INTEGER  NOT NULL , clazzLogNumAbsent  INTEGER  NOT NULL , clazzLogNumPartial  INTEGER  NOT NULL , clazzLogScheduleUid  BIGINT  NOT NULL , clazzLogStatusFlag  INTEGER  NOT NULL , clazzLogMSQN  BIGINT  NOT NULL , clazzLogLCSN  BIGINT  NOT NULL , clazzLogLCB  INTEGER  NOT NULL , clazzLogLastChangedTime  BIGINT  NOT NULL , clazzLogUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_113);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_114 = 'CREATE TABLE IF NOT EXISTS ClazzLogAttendanceRecord (  clazzLogAttendanceRecordClazzLogUid  BIGINT  NOT NULL , clazzLogAttendanceRecordPersonUid  BIGINT  NOT NULL , attendanceStatus  INTEGER  NOT NULL , clazzLogAttendanceRecordMasterChangeSeqNum  BIGINT  NOT NULL , clazzLogAttendanceRecordLocalChangeSeqNum  BIGINT  NOT NULL , clazzLogAttendanceRecordLastChangedBy  INTEGER  NOT NULL , clazzLogAttendanceRecordLastChangedTime  BIGINT  NOT NULL , clazzLogAttendanceRecordUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_114);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_115 = 'CREATE TABLE IF NOT EXISTS Schedule (  sceduleStartTime  BIGINT  NOT NULL , scheduleEndTime  BIGINT  NOT NULL , scheduleDay  INTEGER  NOT NULL , scheduleMonth  INTEGER  NOT NULL , scheduleFrequency  INTEGER  NOT NULL , umCalendarUid  BIGINT  NOT NULL , scheduleClazzUid  BIGINT  NOT NULL , scheduleMasterChangeSeqNum  BIGINT  NOT NULL , scheduleLocalChangeSeqNum  BIGINT  NOT NULL , scheduleLastChangedBy  INTEGER  NOT NULL , scheduleLastChangedTime  BIGINT  NOT NULL , scheduleActive  BOOL  NOT NULL , scheduleUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_115);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_116 = 'CREATE TABLE IF NOT EXISTS HolidayCalendar (  umCalendarName  TEXT , umCalendarCategory  INTEGER  NOT NULL , umCalendarActive  BOOL  NOT NULL , umCalendarMasterChangeSeqNum  BIGINT  NOT NULL , umCalendarLocalChangeSeqNum  BIGINT  NOT NULL , umCalendarLastChangedBy  INTEGER  NOT NULL , umCalendarLct  BIGINT  NOT NULL , umCalendarUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_116);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_117 = 'CREATE TABLE IF NOT EXISTS Holiday (  holMasterCsn  BIGINT  NOT NULL , holLocalCsn  BIGINT  NOT NULL , holLastModBy  INTEGER  NOT NULL , holLct  BIGINT  NOT NULL , holActive  BOOL  NOT NULL , holHolidayCalendarUid  BIGINT  NOT NULL , holStartTime  BIGINT  NOT NULL , holEndTime  BIGINT  NOT NULL , holName  TEXT , holUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_117);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_118 = 'CREATE TABLE IF NOT EXISTS Person (  username  TEXT , firstNames  TEXT , lastName  TEXT , emailAddr  TEXT , phoneNum  TEXT , gender  INTEGER  NOT NULL , active  BOOL  NOT NULL , dateOfBirth  BIGINT  NOT NULL , personAddress  TEXT , personOrgId  TEXT , personGroupUid  BIGINT  NOT NULL , personLct  BIGINT  NOT NULL , personCountry  TEXT , personType  INTEGER  NOT NULL  DEFAULT 0 , personMasterChangeSeqNum  BIGINT  NOT NULL , personLocalChangeSeqNum  BIGINT  NOT NULL , personLastChangedBy  INTEGER  NOT NULL , admin  BOOL  NOT NULL , personNotes  TEXT , fatherName  TEXT , fatherNumber  TEXT , motherName  TEXT , motherNum  TEXT , personUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_118);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_119 = 'CREATE TABLE IF NOT EXISTS Clazz (  clazzName  TEXT , clazzDesc  TEXT , attendanceAverage  FLOAT  NOT NULL , clazzHolidayUMCalendarUid  BIGINT  NOT NULL , clazzScheuleUMCalendarUid  BIGINT  NOT NULL , isClazzActive  BOOL  NOT NULL , clazzLocationUid  BIGINT  NOT NULL , clazzStartTime  BIGINT  NOT NULL , clazzEndTime  BIGINT  NOT NULL , clazzFeatures  BIGINT  NOT NULL , clazzSchoolUid  BIGINT  NOT NULL , clazzEnrolmentPolicy  INTEGER  NOT NULL  DEFAULT 102 , clazzTerminologyUid  BIGINT  NOT NULL  DEFAULT 25966 , clazzMasterChangeSeqNum  BIGINT  NOT NULL , clazzLocalChangeSeqNum  BIGINT  NOT NULL , clazzLastChangedBy  INTEGER  NOT NULL , clazzLct  BIGINT  NOT NULL , clazzTimeZone  TEXT , clazzStudentsPersonGroupUid  BIGINT  NOT NULL , clazzTeachersPersonGroupUid  BIGINT  NOT NULL , clazzPendingStudentsPersonGroupUid  BIGINT  NOT NULL , clazzParentsPersonGroupUid  BIGINT  NOT NULL , clazzCode  TEXT , clazzOwnerPersonUid  BIGINT  NOT NULL  DEFAULT 0 , clazzUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_119);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_120 = 'CREATE TABLE IF NOT EXISTS ClazzEnrolment (  clazzEnrolmentPersonUid  BIGINT  NOT NULL , clazzEnrolmentClazzUid  BIGINT  NOT NULL , clazzEnrolmentDateJoined  BIGINT  NOT NULL , clazzEnrolmentDateLeft  BIGINT  NOT NULL , clazzEnrolmentRole  INTEGER  NOT NULL , clazzEnrolmentAttendancePercentage  FLOAT  NOT NULL , clazzEnrolmentActive  BOOL  NOT NULL , clazzEnrolmentLeavingReasonUid  BIGINT  NOT NULL , clazzEnrolmentOutcome  INTEGER  NOT NULL , clazzEnrolmentLocalChangeSeqNum  BIGINT  NOT NULL , clazzEnrolmentMasterChangeSeqNum  BIGINT  NOT NULL , clazzEnrolmentLastChangedBy  INTEGER  NOT NULL , clazzEnrolmentLct  BIGINT  NOT NULL , clazzEnrolmentUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_120);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_121 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentPersonUid_clazzEnrolmentClazzUid ON ClazzEnrolment (clazzEnrolmentPersonUid, clazzEnrolmentClazzUid)';
      _stmtList.i1(element_121);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_122 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentClazzUid_clazzEnrolmentPersonUid ON ClazzEnrolment (clazzEnrolmentClazzUid, clazzEnrolmentPersonUid)';
      _stmtList.i1(element_122);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_123 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentClazzUid_clazzEnrolmentRole ON ClazzEnrolment (clazzEnrolmentClazzUid, clazzEnrolmentRole)';
      _stmtList.i1(element_123);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_124 = 'CREATE TABLE IF NOT EXISTS LeavingReason (  leavingReasonTitle  TEXT , leavingReasonMCSN  BIGINT  NOT NULL , leavingReasonCSN  BIGINT  NOT NULL , leavingReasonLCB  INTEGER  NOT NULL , leavingReasonLct  BIGINT  NOT NULL , leavingReasonUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_124);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_125 = 'CREATE TABLE IF NOT EXISTS ContentEntry (  title  TEXT , description  TEXT , entryId  TEXT , author  TEXT , publisher  TEXT , licenseType  INTEGER  NOT NULL , licenseName  TEXT , licenseUrl  TEXT , sourceUrl  TEXT , thumbnailUrl  TEXT , lastModified  BIGINT  NOT NULL , primaryLanguageUid  BIGINT  NOT NULL , languageVariantUid  BIGINT  NOT NULL , contentFlags  INTEGER  NOT NULL , leaf  BOOL  NOT NULL , publik  BOOL  NOT NULL , ceInactive  BOOL  NOT NULL , completionCriteria  INTEGER  NOT NULL , minScore  INTEGER  NOT NULL , contentTypeFlag  INTEGER  NOT NULL , contentOwner  BIGINT  NOT NULL , contentOwnerType  INTEGER  NOT NULL  DEFAULT 1 , contentEntryLocalChangeSeqNum  BIGINT  NOT NULL , contentEntryMasterChangeSeqNum  BIGINT  NOT NULL , contentEntryLastChangedBy  INTEGER  NOT NULL , contentEntryLct  BIGINT  NOT NULL , contentEntryUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_125);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_126 = 'CREATE TABLE IF NOT EXISTS ContentEntryContentCategoryJoin (  ceccjContentEntryUid  BIGINT  NOT NULL , ceccjContentCategoryUid  BIGINT  NOT NULL , ceccjLocalChangeSeqNum  BIGINT  NOT NULL , ceccjMasterChangeSeqNum  BIGINT  NOT NULL , ceccjLastChangedBy  INTEGER  NOT NULL , ceccjLct  BIGINT  NOT NULL , ceccjUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_126);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_127 = 'CREATE TABLE IF NOT EXISTS ContentEntryParentChildJoin (  cepcjLocalChangeSeqNum  BIGINT  NOT NULL , cepcjMasterChangeSeqNum  BIGINT  NOT NULL , cepcjLastChangedBy  INTEGER  NOT NULL , cepcjLct  BIGINT  NOT NULL , cepcjDeleted  BOOL  NOT NULL  DEFAULT false, cepcjParentContentEntryUid  BIGINT  NOT NULL , cepcjChildContentEntryUid  BIGINT  NOT NULL , childIndex  INTEGER  NOT NULL , cepcjUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_127);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_128 = 'CREATE INDEX parent_child ON ContentEntryParentChildJoin (cepcjChildContentEntryUid, cepcjParentContentEntryUid)';
      _stmtList.i1(element_128);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_129 = 'CREATE TABLE IF NOT EXISTS ContentEntryRelatedEntryJoin (  cerejContentEntryUid  BIGINT  NOT NULL , cerejRelatedEntryUid  BIGINT  NOT NULL , cerejLastChangedBy  INTEGER  NOT NULL , relType  INTEGER  NOT NULL , comment  TEXT , cerejRelLanguageUid  BIGINT  NOT NULL , cerejLocalChangeSeqNum  BIGINT  NOT NULL , cerejMasterChangeSeqNum  BIGINT  NOT NULL , cerejLct  BIGINT  NOT NULL , cerejUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_129);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_130 = 'CREATE TABLE IF NOT EXISTS ContentCategorySchema (  schemaName  TEXT , schemaUrl  TEXT , contentCategorySchemaLocalChangeSeqNum  BIGINT  NOT NULL , contentCategorySchemaMasterChangeSeqNum  BIGINT  NOT NULL , contentCategorySchemaLastChangedBy  INTEGER  NOT NULL , contentCategorySchemaLct  BIGINT  NOT NULL , contentCategorySchemaUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_130);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_131 = 'CREATE TABLE IF NOT EXISTS ContentCategory (  ctnCatContentCategorySchemaUid  BIGINT  NOT NULL , name  TEXT , contentCategoryLocalChangeSeqNum  BIGINT  NOT NULL , contentCategoryMasterChangeSeqNum  BIGINT  NOT NULL , contentCategoryLastChangedBy  INTEGER  NOT NULL , contentCategoryLct  BIGINT  NOT NULL , contentCategoryUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_131);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_132 = 'CREATE TABLE IF NOT EXISTS Language (  name  TEXT , iso_639_1_standard  TEXT , iso_639_2_standard  TEXT , iso_639_3_standard  TEXT , Language_Type  TEXT , languageActive  BOOL  NOT NULL , langLocalChangeSeqNum  BIGINT  NOT NULL , langMasterChangeSeqNum  BIGINT  NOT NULL , langLastChangedBy  INTEGER  NOT NULL , langLct  BIGINT  NOT NULL , langUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_132);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_133 = 'CREATE TABLE IF NOT EXISTS LanguageVariant (  langUid  BIGINT  NOT NULL , countryCode  TEXT , name  TEXT , langVariantLocalChangeSeqNum  BIGINT  NOT NULL , langVariantMasterChangeSeqNum  BIGINT  NOT NULL , langVariantLastChangedBy  INTEGER  NOT NULL , langVariantLct  BIGINT  NOT NULL , langVariantUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_133);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_134 = 'CREATE TABLE IF NOT EXISTS PersonAuth (  passwordHash  TEXT , personAuthStatus  INTEGER  NOT NULL , personAuthUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_134);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_135 = 'CREATE TABLE IF NOT EXISTS PersonGroup (  groupMasterCsn  BIGINT  NOT NULL , groupLocalCsn  BIGINT  NOT NULL , groupLastChangedBy  INTEGER  NOT NULL , groupLct  BIGINT  NOT NULL , groupName  TEXT , groupActive  BOOL  NOT NULL , personGroupFlag  INTEGER  NOT NULL , groupUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_135);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_136 = 'CREATE TABLE IF NOT EXISTS PersonGroupMember (  groupMemberActive  BOOL  NOT NULL , groupMemberPersonUid  BIGINT  NOT NULL , groupMemberGroupUid  BIGINT  NOT NULL , groupMemberMasterCsn  BIGINT  NOT NULL , groupMemberLocalCsn  BIGINT  NOT NULL , groupMemberLastChangedBy  INTEGER  NOT NULL , groupMemberLct  BIGINT  NOT NULL , groupMemberUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_136);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_137 = 'CREATE TABLE IF NOT EXISTS PersonPicture (  personPictureLct  BIGINT  NOT NULL , personPictureUri  TEXT , personPictureThumbnailUri  TEXT , fileSize  INTEGER  NOT NULL , personPictureActive  BOOL  NOT NULL , personPictureUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_137);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_138 = 'CREATE TABLE IF NOT EXISTS VerbEntity (  verbUid  BIGINT  PRIMARY KEY  NOT NULL , verbUrlId  TEXT , verbDeleted  BOOL  NOT NULL , verbLct  BIGINT  NOT NULL )';
      _stmtList.i1(element_138);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_139 = 'CREATE TABLE IF NOT EXISTS ActivityEntity (  actUid  BIGINT  PRIMARY KEY  NOT NULL , actIdIri  TEXT , actType  TEXT , actMoreInfo  TEXT , actInteractionType  INTEGER  NOT NULL , actCorrectResponsePatterns  TEXT , actLct  BIGINT  NOT NULL )';
      _stmtList.i1(element_139);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_140 = 'CREATE TABLE IF NOT EXISTS StatementEntity (  statementIdHi  BIGINT  NOT NULL , statementIdLo  BIGINT  NOT NULL , statementActorPersonUid  BIGINT  NOT NULL , statementVerbUid  BIGINT  NOT NULL , statementObjectType  INTEGER  NOT NULL , statementObjectUid1  BIGINT  NOT NULL , statementObjectUid2  BIGINT  NOT NULL , statementActorUid  BIGINT  NOT NULL , authorityActorUid  BIGINT  NOT NULL , teamUid  BIGINT  NOT NULL , resultCompletion  BOOL , resultSuccess  BOOL , resultScoreScaled  FLOAT , resultScoreRaw  FLOAT , resultScoreMin  FLOAT , resultScoreMax  FLOAT , resultDuration  BIGINT , resultResponse  TEXT , timestamp  BIGINT  NOT NULL , stored  BIGINT  NOT NULL , contextRegistrationHi  BIGINT  NOT NULL , contextRegistrationLo  BIGINT  NOT NULL , contextPlatform  TEXT , contextStatementRefIdHi  BIGINT  NOT NULL , contextStatementRefIdLo  BIGINT  NOT NULL , contextInstructorActorUid  BIGINT  NOT NULL , statementLct  BIGINT  NOT NULL , extensionProgress  INTEGER , completionOrProgress  BOOL  NOT NULL , statementContentEntryUid  BIGINT  NOT NULL , statementLearnerGroupUid  BIGINT  NOT NULL , statementClazzUid  BIGINT  NOT NULL , statementCbUid  BIGINT  NOT NULL , statementDoorNode  BIGINT  NOT NULL , isSubStatement  BOOL  NOT NULL , PRIMARY KEY (statementIdHi, statementIdLo) )';
      _stmtList.i1(element_140);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_141 = 'CREATE INDEX idx_stmt_actor_person ON StatementEntity (statementActorPersonUid)';
      _stmtList.i1(element_141);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_142 = 'CREATE INDEX idx_statement_clazz_person ON StatementEntity (statementClazzUid, statementActorPersonUid)';
      _stmtList.i1(element_142);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_143 = 'CREATE INDEX idx_statement_cbuid_actor ON StatementEntity (statementCbUid, statementActorUid)';
      _stmtList.i1(element_143);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_144 = 'CREATE TABLE IF NOT EXISTS ActorEntity (  actorPersonUid  BIGINT  NOT NULL , actorName  TEXT , actorMbox  TEXT , actorMbox_sha1sum  TEXT , actorOpenid  TEXT , actorAccountName  TEXT , actorAccountHomePage  TEXT , actorEtag  BIGINT  NOT NULL , actorLct  BIGINT  NOT NULL , actorObjectType  INTEGER  NOT NULL , actorUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_144);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_145 = 'CREATE INDEX idx_actorentity_uid_personuid ON ActorEntity (actorPersonUid)';
      _stmtList.i1(element_145);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_146 = 'CREATE INDEX idx_actorentity_actorobjecttype ON ActorEntity (actorObjectType)';
      _stmtList.i1(element_146);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_147 = 'CREATE TABLE IF NOT EXISTS SyncNode (  nodeClientId  BIGINT  NOT NULL , PRIMARY KEY (nodeClientId) )';
      _stmtList.i1(element_147);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_148 = 'CREATE TABLE IF NOT EXISTS Comments (  commentsText  TEXT , commentsEntityUid  BIGINT  NOT NULL , commentsStatus  INTEGER  NOT NULL , commentsFromPersonUid  BIGINT  NOT NULL , commentsForSubmitterUid  BIGINT  NOT NULL , commentsFromSubmitterUid  BIGINT  NOT NULL , commentsFlagged  BOOL  NOT NULL , commentsDeleted  BOOL  NOT NULL , commentsDateTimeAdded  BIGINT  NOT NULL , commentsLct  BIGINT  NOT NULL , commentsUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_148);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_149 = 'CREATE INDEX idx_comments_entity_submitter ON Comments (commentsEntityUid, commentsForSubmitterUid)';
      _stmtList.i1(element_149);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_150 = 'CREATE TABLE IF NOT EXISTS Report (  reportOwnerUid  BIGINT  NOT NULL , xAxis  INTEGER  NOT NULL , reportDateRangeSelection  INTEGER  NOT NULL , fromDate  BIGINT  NOT NULL , fromRelTo  INTEGER  NOT NULL , fromRelOffSet  INTEGER  NOT NULL , fromRelUnit  INTEGER  NOT NULL , toDate  BIGINT  NOT NULL , toRelTo  INTEGER  NOT NULL , toRelOffSet  INTEGER  NOT NULL , toRelUnit  INTEGER  NOT NULL , reportTitle  TEXT , reportDescription  TEXT , reportSeries  TEXT , reportInactive  BOOL  NOT NULL , isTemplate  BOOL  NOT NULL , priority  INTEGER  NOT NULL , reportTitleId  INTEGER  NOT NULL , reportDescId  INTEGER  NOT NULL , reportMasterChangeSeqNum  BIGINT  NOT NULL , reportLocalChangeSeqNum  BIGINT  NOT NULL , reportLastChangedBy  INTEGER  NOT NULL , reportLct  BIGINT  NOT NULL , reportUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_150);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_151 = 'CREATE TABLE IF NOT EXISTS Site (  sitePcsn  BIGINT  NOT NULL , siteLcsn  BIGINT  NOT NULL , siteLcb  INTEGER  NOT NULL , siteLct  BIGINT  NOT NULL , siteName  TEXT , guestLogin  BOOL  NOT NULL , registrationAllowed  BOOL  NOT NULL , authSalt  TEXT , siteUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_151);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_152 = 'CREATE TABLE IF NOT EXISTS SiteTerms (  termsHtml  TEXT , sTermsLang  TEXT , sTermsLangUid  BIGINT  NOT NULL , sTermsActive  BOOL  NOT NULL , sTermsLastChangedBy  INTEGER  NOT NULL , sTermsPrimaryCsn  BIGINT  NOT NULL , sTermsLocalCsn  BIGINT  NOT NULL , sTermsLct  BIGINT  NOT NULL , sTermsUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_152);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_153 = 'CREATE TABLE IF NOT EXISTS PersonParentJoin (  ppjPcsn  BIGINT  NOT NULL , ppjLcsn  BIGINT  NOT NULL , ppjLcb  INTEGER  NOT NULL , ppjLct  BIGINT  NOT NULL , ppjParentPersonUid  BIGINT  NOT NULL , ppjMinorPersonUid  BIGINT  NOT NULL , ppjRelationship  INTEGER  NOT NULL , ppjEmail  TEXT , ppjPhone  TEXT , ppjInactive  BOOL  NOT NULL , ppjStatus  INTEGER  NOT NULL , ppjApprovalTiemstamp  BIGINT  NOT NULL , ppjApprovalIpAddr  TEXT , ppjUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_153);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_154 = 'CREATE TABLE IF NOT EXISTS ScopedGrant (  sgPcsn  BIGINT  NOT NULL , sgLcsn  BIGINT  NOT NULL , sgLcb  INTEGER  NOT NULL , sgLct  BIGINT  NOT NULL , sgTableId  INTEGER  NOT NULL , sgEntityUid  BIGINT  NOT NULL , sgPermissions  BIGINT  NOT NULL , sgGroupUid  BIGINT  NOT NULL , sgIndex  INTEGER  NOT NULL , sgFlags  INTEGER  NOT NULL , sgUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_154);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_155 = 'CREATE INDEX idx_group_to_entity ON ScopedGrant (sgGroupUid, sgPermissions, sgTableId, sgEntityUid)';
      _stmtList.i1(element_155);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_156 = 'CREATE INDEX idx_entity_to_group ON ScopedGrant (sgTableId, sgEntityUid, sgPermissions, sgGroupUid)';
      _stmtList.i1(element_156);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_157 = 'CREATE TABLE IF NOT EXISTS ErrorReport (  errPcsn  BIGINT  NOT NULL , errLcsn  BIGINT  NOT NULL , errLcb  INTEGER  NOT NULL , errLct  BIGINT  NOT NULL , severity  INTEGER  NOT NULL , timestamp  BIGINT  NOT NULL , presenterUri  TEXT , appVersion  TEXT , versionCode  INTEGER  NOT NULL , errorCode  INTEGER  NOT NULL , operatingSys  TEXT , osVersion  TEXT , stackTrace  TEXT , message  TEXT , errUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_157);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_158 = 'CREATE TABLE IF NOT EXISTS ClazzAssignment (  caTitle  TEXT , caDescription  TEXT , caGroupUid  BIGINT  NOT NULL  DEFAULT 0 , caActive  BOOL  NOT NULL , caClassCommentEnabled  BOOL  NOT NULL , caPrivateCommentsEnabled  BOOL  NOT NULL  DEFAULT true, caCompletionCriteria  INTEGER  NOT NULL  DEFAULT 100 , caRequireFileSubmission  BOOL  NOT NULL  DEFAULT true, caFileType  INTEGER  NOT NULL  DEFAULT 0 , caSizeLimit  INTEGER  NOT NULL  DEFAULT 50 , caNumberOfFiles  INTEGER  NOT NULL  DEFAULT 1 , caSubmissionPolicy  INTEGER  NOT NULL  DEFAULT 1 , caMarkingType  INTEGER  NOT NULL  DEFAULT 1 , caRequireTextSubmission  BOOL  NOT NULL  DEFAULT true, caTextLimitType  INTEGER  NOT NULL  DEFAULT 1 , caTextLimit  INTEGER  NOT NULL  DEFAULT 500 , caXObjectUid  BIGINT  NOT NULL  DEFAULT 0 , caClazzUid  BIGINT  NOT NULL , caPeerReviewerCount  INTEGER  NOT NULL  DEFAULT 0 , caLocalChangeSeqNum  BIGINT  NOT NULL , caMasterChangeSeqNum  BIGINT  NOT NULL , caLastChangedBy  INTEGER  NOT NULL , caLct  BIGINT  NOT NULL , caUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_158);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_159 = 'CREATE TABLE IF NOT EXISTS CourseAssignmentSubmission (  casAssignmentUid  BIGINT  NOT NULL , casSubmitterUid  BIGINT  NOT NULL , casSubmitterPersonUid  BIGINT  NOT NULL , casText  TEXT , casType  INTEGER  NOT NULL , casTimestamp  BIGINT  NOT NULL , casClazzUid  BIGINT  NOT NULL  DEFAULT 0 , casUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_159);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_160 = 'CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionFile (  casaSubmissionUid  BIGINT  NOT NULL , casaSubmitterUid  BIGINT  NOT NULL  DEFAULT 0 , casaCaUid  BIGINT  NOT NULL , casaClazzUid  BIGINT  NOT NULL , casaMimeType  TEXT , casaFileName  TEXT , casaUri  TEXT , casaSize  INTEGER  NOT NULL , casaTimestamp  BIGINT  NOT NULL , casaDeleted  BOOL  NOT NULL  DEFAULT false, casaUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_160);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_161 = 'CREATE TABLE IF NOT EXISTS CourseAssignmentMark (  camAssignmentUid  BIGINT  NOT NULL , camSubmitterUid  BIGINT  NOT NULL , camMarkerSubmitterUid  BIGINT  NOT NULL  DEFAULT 0 , camMarkerPersonUid  BIGINT  NOT NULL  DEFAULT 0 , camMarkerComment  TEXT , camMark  FLOAT  NOT NULL , camMaxMark  FLOAT  NOT NULL  DEFAULT 1 , camPenalty  FLOAT  NOT NULL , camLct  BIGINT  NOT NULL , camClazzUid  BIGINT  NOT NULL  DEFAULT 0 , camUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_161);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_162 = 'CREATE TABLE IF NOT EXISTS PeerReviewerAllocation (  praMarkerSubmitterUid  BIGINT  NOT NULL , praToMarkerSubmitterUid  BIGINT  NOT NULL , praAssignmentUid  BIGINT  NOT NULL , praActive  BOOL  NOT NULL , praLct  BIGINT  NOT NULL , praUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_162);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_163 = 'CREATE TABLE IF NOT EXISTS PersonAuth2 (  pauthUid  BIGINT  PRIMARY KEY  NOT NULL , pauthMechanism  TEXT , pauthAuth  TEXT , pauthLcsn  BIGINT  NOT NULL , pauthPcsn  BIGINT  NOT NULL , pauthLcb  BIGINT  NOT NULL , pauthLct  BIGINT  NOT NULL )';
      _stmtList.i1(element_163);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_164 = 'CREATE TABLE IF NOT EXISTS UserSession (  usPcsn  BIGINT  NOT NULL , usLcsn  BIGINT  NOT NULL , usLcb  BIGINT  NOT NULL , usLct  BIGINT  NOT NULL , usPersonUid  BIGINT  NOT NULL , usClientNodeId  BIGINT  NOT NULL , usStartTime  BIGINT  NOT NULL , usEndTime  BIGINT  NOT NULL , usStatus  INTEGER  NOT NULL , usReason  INTEGER  NOT NULL , usAuth  TEXT , usSessionType  INTEGER  NOT NULL , usUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_164);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_165 = 'CREATE INDEX person_status_node_idx ON UserSession (usPersonUid, usStatus, usClientNodeId)';
      _stmtList.i1(element_165);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_166 = 'CREATE INDEX node_status_person_idx ON UserSession (usClientNodeId, usStatus, usPersonUid)';
      _stmtList.i1(element_166);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_167 = 'CREATE TABLE IF NOT EXISTS ContentJob (  toUri  TEXT , cjProgress  BIGINT  NOT NULL , cjTotal  BIGINT  NOT NULL , cjNotificationTitle  TEXT , cjIsMeteredAllowed  BOOL  NOT NULL , params  TEXT , cjLct  BIGINT  NOT NULL , cjUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_167);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_168 = 'CREATE TABLE IF NOT EXISTS ContentEntryImportJob (  sourceUri  TEXT , cjiOriginalFilename  TEXT , cjiContentEntryUid  BIGINT  NOT NULL , cjiParentContentEntryUid  BIGINT  NOT NULL , cjiContentEntryVersion  BIGINT  NOT NULL , cjiItemProgress  BIGINT  NOT NULL , cjiItemTotal  BIGINT  NOT NULL , cjiStatus  INTEGER  NOT NULL , cjiRecursiveStatus  INTEGER  NOT NULL , cjiPluginId  INTEGER  NOT NULL , cjiParentCjiUid  BIGINT  NOT NULL , cjiStartTime  BIGINT  NOT NULL , cjiFinishTime  BIGINT  NOT NULL , cjiContentDeletedOnCancellation  BOOL  NOT NULL , cjiCompressionLevel  INTEGER  NOT NULL  DEFAULT 3 , cjiError  TEXT , cjiErrorDismissed  BOOL  NOT NULL , cjiOwnerPersonUid  BIGINT  NOT NULL , cjiParams  TEXT , cjiUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_168);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_169 = 'CREATE INDEX index_ContentEntryImportJob_cjiContentEntryUid_cjiFinishTime ON ContentEntryImportJob (cjiContentEntryUid, cjiFinishTime)';
      _stmtList.i1(element_169);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_170 = 'CREATE TABLE IF NOT EXISTS CourseBlock (  cbType  INTEGER  NOT NULL , cbIndentLevel  INTEGER  NOT NULL , cbModuleParentBlockUid  BIGINT  NOT NULL , cbTitle  TEXT , cbDescription  TEXT , cbCompletionCriteria  INTEGER  NOT NULL , cbHideUntilDate  BIGINT  NOT NULL , cbDeadlineDate  BIGINT  NOT NULL , cbLateSubmissionPenalty  INTEGER  NOT NULL , cbGracePeriodDate  BIGINT  NOT NULL , cbMaxPoints  FLOAT , cbMinPoints  FLOAT , cbIndex  INTEGER  NOT NULL , cbClazzUid  BIGINT  NOT NULL , cbClazzSourcedId  TEXT , cbActive  BOOL  NOT NULL , cbHidden  BOOL  NOT NULL , cbEntityUid  BIGINT  NOT NULL , cbLct  BIGINT  NOT NULL , cbSourcedId  TEXT , cbMetadata  TEXT , cbCreatedByAppId  TEXT , cbUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_170);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_171 = 'CREATE INDEX idx_courseblock_cbclazzuid ON CourseBlock (cbClazzUid)';
      _stmtList.i1(element_171);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_172 = 'CREATE TABLE IF NOT EXISTS CourseTerminology (  ctTitle  TEXT , ctTerminology  TEXT , ctLct  BIGINT  NOT NULL , ctUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_172);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_173 = 'CREATE TABLE IF NOT EXISTS CourseGroupSet (  cgsName  TEXT , cgsTotalGroups  INTEGER  NOT NULL , cgsActive  BOOL  NOT NULL , cgsClazzUid  BIGINT  NOT NULL , cgsLct  BIGINT  NOT NULL , cgsUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_173);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_174 = 'CREATE TABLE IF NOT EXISTS CourseGroupMember (  cgmSetUid  BIGINT  NOT NULL , cgmGroupNumber  INTEGER  NOT NULL , cgmPersonUid  BIGINT  NOT NULL , cgmLct  BIGINT  NOT NULL , cgmUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_174);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_175 = 'CREATE TABLE IF NOT EXISTS ContentEntryPicture (  cepContentEntryUid  BIGINT  NOT NULL , cepUri  TEXT , cepMd5  TEXT , cepFileSize  INTEGER  NOT NULL , cepTimestamp  BIGINT  NOT NULL , cepMimeType  TEXT , cepActive  BOOL  NOT NULL , cepUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_175);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_176 = 'CREATE TABLE IF NOT EXISTS ActivityInteractionEntity (  aieActivityUid  BIGINT  NOT NULL , aieHash  BIGINT  NOT NULL , aieProp  INTEGER  NOT NULL , aieId  TEXT , aieLastMod  BIGINT  NOT NULL , aieIsDeleted  BOOL  NOT NULL , PRIMARY KEY (aieActivityUid, aieHash) )';
      _stmtList.i1(element_176);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_177 = 'CREATE TABLE IF NOT EXISTS CoursePicture (  coursePictureLct  BIGINT  NOT NULL , coursePictureUri  TEXT , coursePictureThumbnailUri  TEXT , coursePictureActive  BOOL  NOT NULL , coursePictureUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_177);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_178 = 'CREATE TABLE IF NOT EXISTS DiscussionPost (  discussionPostReplyToPostUid  BIGINT  NOT NULL , discussionPostTitle  TEXT , discussionPostMessage  TEXT , discussionPostStartDate  BIGINT  NOT NULL , discussionPostCourseBlockUid  BIGINT  NOT NULL , dpDeleted  BOOL  NOT NULL , discussionPostStartedPersonUid  BIGINT  NOT NULL , discussionPostClazzUid  BIGINT  NOT NULL , discussionPostLct  BIGINT  NOT NULL , discussionPostVisible  BOOL  NOT NULL , discussionPostArchive  BOOL  NOT NULL , discussionPostUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_178);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_179 = 'CREATE TABLE IF NOT EXISTS ExternalAppPermission (  eapPersonUid  BIGINT  NOT NULL , eapPackageId  TEXT , eapStartTime  BIGINT  NOT NULL , eapExpireTime  BIGINT  NOT NULL , eapAuthToken  TEXT , eapAndroidAccountName  TEXT , eapUid  SERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_179);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_180 = 'CREATE TABLE IF NOT EXISTS Message (  messageSenderPersonUid  BIGINT  NOT NULL , messageToPersonUid  BIGINT  NOT NULL , messageText  TEXT , messageTimestamp  BIGINT  NOT NULL , messageLct  BIGINT  NOT NULL , messageUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_180);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_181 = 'CREATE INDEX message_idx_send_to_time ON Message (messageSenderPersonUid, messageToPersonUid, messageTimestamp)';
      _stmtList.i1(element_181);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_182 = 'CREATE TABLE IF NOT EXISTS StudentResult (  srUid  BIGINT  PRIMARY KEY  NOT NULL , srSourcedId  TEXT , srCourseBlockUid  BIGINT  NOT NULL , srLineItemSourcedId  TEXT , srLineItemHref  TEXT , srClazzUid  BIGINT  NOT NULL , srAssignmentUid  BIGINT  NOT NULL , srStatus  INTEGER  NOT NULL , srMetaData  TEXT , srStudentPersonUid  BIGINT  NOT NULL , srStudentPersonSourcedId  TEXT , srStudentGroupId  INTEGER  NOT NULL , srMarkerPersonUid  BIGINT  NOT NULL , srMarkerGroupId  INTEGER  NOT NULL , srScoreStatus  INTEGER  NOT NULL , srScore  FLOAT  NOT NULL , srScoreDate  BIGINT  NOT NULL , srLastModified  BIGINT  NOT NULL , srComment  TEXT , srAppId  TEXT , srDeleted  BOOL  NOT NULL )';
      _stmtList.i1(element_182);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_183 = 'CREATE TABLE IF NOT EXISTS ContentEntryVersion (  cevContentEntryUid  BIGINT  NOT NULL , cevOpenUri  TEXT , cevContentType  TEXT , cevManifestUrl  TEXT , cevSize  BIGINT  NOT NULL , cevInActive  BOOL  NOT NULL , cevLastModified  BIGINT  NOT NULL , cevLct  BIGINT  NOT NULL , cevStorageSize  BIGINT  NOT NULL  DEFAULT 0 , cevOriginalSize  BIGINT  NOT NULL  DEFAULT 0 , cevUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_183);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_184 = 'CREATE TABLE IF NOT EXISTS TransferJob (  tjType  INTEGER  NOT NULL , tjStatus  INTEGER  NOT NULL , tjName  TEXT , tjUuid  TEXT , tjTableId  INTEGER  NOT NULL  DEFAULT 0 , tjEntityUid  BIGINT  NOT NULL  DEFAULT 0 , tjTimeCreated  BIGINT  NOT NULL  DEFAULT 0 , tjCreationType  INTEGER  NOT NULL  DEFAULT 0 , tjOiUid  BIGINT  NOT NULL  DEFAULT 0 , tjUid  SERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_184);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_185 = 'CREATE INDEX TransferJob_idx_tjTableId_EntityUid ON TransferJob (tjTableId, tjEntityUid)';
      _stmtList.i1(element_185);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_186 = 'CREATE TABLE IF NOT EXISTS TransferJobItem (  tjiTjUid  INTEGER  NOT NULL , tjTotalSize  BIGINT  NOT NULL , tjTransferred  BIGINT  NOT NULL , tjAttemptCount  INTEGER  NOT NULL , tjiSrc  TEXT , tjiDest  TEXT , tjiType  INTEGER  NOT NULL , tjiStatus  INTEGER  NOT NULL , tjiTableId  INTEGER  NOT NULL , tjiEntityUid  BIGINT  NOT NULL , tjiEntityEtag  BIGINT  NOT NULL  DEFAULT 0 , tjiLockIdToRelease  BIGINT  NOT NULL  DEFAULT 0 , tjiPartialTmpFile  TEXT , tjiUid  SERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_186);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_187 = 'CREATE INDEX tji_table_entity_etag ON TransferJobItem (tjiTableId, tjiEntityUid, tjiEntityEtag)';
      _stmtList.i1(element_187);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_188 = 'CREATE INDEX transferjob_tjuid ON TransferJobItem (tjiTjUid)';
      _stmtList.i1(element_188);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_189 = 'CREATE TABLE IF NOT EXISTS CacheLockJoin (  cljTableId  INTEGER  NOT NULL , cljEntityUid  BIGINT  NOT NULL , cljUrl  TEXT , cljLockId  BIGINT  NOT NULL , cljStatus  INTEGER  NOT NULL , cljType  INTEGER  NOT NULL , cljOiUid  BIGINT  NOT NULL  DEFAULT 0 , cljId  SERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_189);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_190 = 'CREATE INDEX idx_clj_table_entity_url ON CacheLockJoin (cljTableId, cljEntityUid, cljUrl)';
      _stmtList.i1(element_190);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_191 = 'CREATE INDEX idx_clj_offline_item_uid ON CacheLockJoin (cljOiUid)';
      _stmtList.i1(element_191);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_192 = 'CREATE TABLE IF NOT EXISTS OfflineItem (  oiNodeId  BIGINT  NOT NULL , oiClazzUid  BIGINT  NOT NULL , oiCourseBlockUid  BIGINT  NOT NULL , oiContentEntryUid  BIGINT  NOT NULL , oiActive  BOOL  NOT NULL , oiLct  BIGINT  NOT NULL , oiUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_192);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_193 = 'CREATE INDEX offline_item_node_content_entry ON OfflineItem (oiNodeId, oiContentEntryUid)';
      _stmtList.i1(element_193);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_194 = 'CREATE TABLE IF NOT EXISTS OfflineItemPendingTransferJob (  oiptjOiUid  BIGINT  NOT NULL , oiptjTableId  INTEGER  NOT NULL , oiptjEntityUid  BIGINT  NOT NULL , oiptjUrl  TEXT , oiptjType  INTEGER  NOT NULL , oiptjId  SERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_194);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_195 = 'CREATE TABLE IF NOT EXISTS DeletedItem (  delItemName  TEXT , delItemIconUri  TEXT , delItemLastModTime  BIGINT  NOT NULL , delItemTimeDeleted  BIGINT  NOT NULL , delItemEntityTable  INTEGER  NOT NULL , delItemEntityUid  BIGINT  NOT NULL , delItemDeletedByPersonUid  BIGINT  NOT NULL , delItemStatus  INTEGER  NOT NULL , delItemIsFolder  BOOL  NOT NULL  DEFAULT false, delItemUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_195);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_196 = 'CREATE INDEX delitem_idx_status_time ON DeletedItem (delItemStatus, delItemTimeDeleted)';
      _stmtList.i1(element_196);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_197 = 'CREATE TABLE IF NOT EXISTS EnrolmentRequest (  erClazzUid  BIGINT  NOT NULL , erClazzName  TEXT , erPersonUid  BIGINT  NOT NULL , erPersonFullname  TEXT , erPersonPictureUri  TEXT , erPersonUsername  TEXT , erRole  INTEGER  NOT NULL , erRequestTime  BIGINT  NOT NULL , erStatus  INTEGER  NOT NULL , erStatusSetByPersonUid  BIGINT  NOT NULL , erDeleted  BOOL  NOT NULL , erStatusSetAuth  TEXT , erLastModified  BIGINT  NOT NULL , erUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_197);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_198 = 'CREATE INDEX idx_enrolmentrequest_by_clazz ON EnrolmentRequest (erClazzUid, erStatus)';
      _stmtList.i1(element_198);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_199 = 'CREATE INDEX idx_enrolmentrequest_by_person ON EnrolmentRequest (erPersonUid, erStatus)';
      _stmtList.i1(element_199);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_200 = 'CREATE TABLE IF NOT EXISTS CoursePermission (  cpLastModified  BIGINT  NOT NULL , cpClazzUid  BIGINT  NOT NULL , cpToEnrolmentRole  INTEGER  NOT NULL , cpToPersonUid  BIGINT  NOT NULL , cpToGroupUid  BIGINT  NOT NULL , cpPermissionsFlag  BIGINT  NOT NULL , cpIsDeleted  BOOL  NOT NULL , cpUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_200);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_201 = 'CREATE INDEX idx_coursepermission_clazzuid ON CoursePermission (cpClazzUid)';
      _stmtList.i1(element_201);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_202 = 'CREATE TABLE IF NOT EXISTS SystemPermission (  spToPersonUid  BIGINT  NOT NULL , spToGroupUid  BIGINT  NOT NULL , spPermissionsFlag  BIGINT  NOT NULL , spLastModified  BIGINT  NOT NULL , spIsDeleted  BOOL  NOT NULL , spUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_202);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_203 = 'CREATE INDEX idx_systempermission_personuid ON SystemPermission (spToPersonUid)';
      _stmtList.i1(element_203);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_204 = 'CREATE TABLE IF NOT EXISTS CourseBlockPicture (  cbpUid  BIGINT  PRIMARY KEY  NOT NULL , cbpLct  BIGINT  NOT NULL , cbpPictureUri  TEXT , cbpThumbnailUri  TEXT )';
      _stmtList.i1(element_204);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_205 = 'CREATE TABLE IF NOT EXISTS ContentEntryPicture2 (  cepUid  BIGINT  PRIMARY KEY  NOT NULL , cepLct  BIGINT  NOT NULL , cepPictureUri  TEXT , cepThumbnailUri  TEXT )';
      _stmtList.i1(element_205);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_206 = 'CREATE TABLE IF NOT EXISTS TransferJobError (  tjeTjUid  INTEGER  NOT NULL , tjeTime  BIGINT  NOT NULL , tjeErrorStr  TEXT , tjeDismissed  BOOL  NOT NULL , tjeId  SERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_206);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_207 = 'CREATE INDEX idx_transferjoberror_tjetjuid ON TransferJobError (tjeTjUid)';
      _stmtList.i1(element_207);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_208 = 'CREATE TABLE IF NOT EXISTS VerbLangMapEntry (  vlmeVerbUid  BIGINT  NOT NULL , vlmeLangHash  BIGINT  NOT NULL , vlmeLangCode  TEXT , vlmeEntryString  TEXT , vlmeLastModified  BIGINT  NOT NULL , PRIMARY KEY (vlmeVerbUid, vlmeLangHash) )';
      _stmtList.i1(element_208);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_209 = 'CREATE TABLE IF NOT EXISTS GroupMemberActorJoin (  gmajGroupActorUid  BIGINT  NOT NULL , gmajMemberActorUid  BIGINT  NOT NULL , gmajLastMod  BIGINT  NOT NULL , PRIMARY KEY (gmajGroupActorUid, gmajMemberActorUid) )';
      _stmtList.i1(element_209);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_210 = 'CREATE INDEX idx_groupmemberactorjoin_gmajgroupactoruid ON GroupMemberActorJoin (gmajGroupActorUid)';
      _stmtList.i1(element_210);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_211 = 'CREATE INDEX idx_groupmemberactorjoin_gmajmemberactoruid ON GroupMemberActorJoin (gmajMemberActorUid)';
      _stmtList.i1(element_211);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_212 = 'CREATE TABLE IF NOT EXISTS ActivityLangMapEntry (  almeActivityUid  BIGINT  NOT NULL , almeHash  BIGINT  NOT NULL , almeLangCode  TEXT , almeValue  TEXT , almeAieHash  BIGINT  NOT NULL , almeLastMod  BIGINT  NOT NULL , PRIMARY KEY (almeActivityUid, almeHash) )';
      _stmtList.i1(element_212);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_213 = 'CREATE TABLE IF NOT EXISTS ActivityExtensionEntity (  aeeActivityUid  BIGINT  NOT NULL , aeeKeyHash  BIGINT  NOT NULL , aeeKey  TEXT , aeeJson  TEXT , aeeLastMod  BIGINT  NOT NULL , aeeIsDeleted  BOOL  NOT NULL , PRIMARY KEY (aeeActivityUid, aeeKeyHash) )';
      _stmtList.i1(element_213);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_214 = 'CREATE TABLE IF NOT EXISTS StatementContextActivityJoin (  scajFromStatementIdHi  BIGINT  NOT NULL , scajFromStatementIdLo  BIGINT  NOT NULL , scajToHash  BIGINT  NOT NULL , scajContextType  INTEGER  NOT NULL , scajToActivityUid  BIGINT  NOT NULL , scajToActivityId  TEXT , scajEtag  BIGINT  NOT NULL , PRIMARY KEY (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash) )';
      _stmtList.i1(element_214);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_215 = 'CREATE TABLE IF NOT EXISTS XapiSessionEntity (  xseLastMod  BIGINT  NOT NULL , xseRegistrationHi  BIGINT  NOT NULL , xseRegistrationLo  BIGINT  NOT NULL , xseUsUid  BIGINT  NOT NULL , xseAccountPersonUid  BIGINT  NOT NULL , xseActorUid  BIGINT  NOT NULL , xseAccountUsername  TEXT  NOT NULL , xseClazzUid  BIGINT  NOT NULL , xseCbUid  BIGINT  NOT NULL , xseContentEntryUid  BIGINT  NOT NULL , xseContentEntryVersionUid  BIGINT  NOT NULL  DEFAULT 0 , xseRootActivityId  TEXT  NOT NULL , xseRootActivityUid  BIGINT  NOT NULL , xseStartTime  BIGINT  NOT NULL , xseExpireTime  BIGINT  NOT NULL , xseAuth  TEXT , xseCompleted  BOOL  NOT NULL  DEFAULT false, knownActorUidToPersonUids  TEXT  NOT NULL , xseUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_215);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_216 = 'CREATE TABLE IF NOT EXISTS StatementEntityJson (  stmtJsonIdHi  BIGINT  NOT NULL , stmtJsonIdLo  BIGINT  NOT NULL , stmtEtag  BIGINT  NOT NULL , fullStatement  TEXT , PRIMARY KEY (stmtJsonIdHi, stmtJsonIdLo) )';
      _stmtList.i1(element_216);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_217 = 'CREATE TABLE IF NOT EXISTS StateEntity (  seActorUid  BIGINT  NOT NULL , seHash  BIGINT  NOT NULL , seActivityUid  BIGINT  NOT NULL , seStateId  TEXT  NOT NULL , seLastMod  BIGINT  NOT NULL , seTimeStored  BIGINT  NOT NULL , seContentType  TEXT  NOT NULL , seCompressed  INTEGER  NOT NULL , seContent  TEXT  NOT NULL , seDeleted  BOOL  NOT NULL , seRegistrationHi  BIGINT , seRegistrationLo  BIGINT , seH5PPreloaded  BOOL  NOT NULL , seH5PSubContentId  TEXT , PRIMARY KEY (seActorUid, seHash) )';
      _stmtList.i1(element_217);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_218 = 'CREATE TABLE IF NOT EXISTS StateDeleteCommand (  sdcActorUid  BIGINT  NOT NULL , sdcHash  BIGINT  NOT NULL , sdcActivityUid  BIGINT  NOT NULL , sdcStateId  TEXT , sdcLastMod  BIGINT  NOT NULL , sdcRegistrationHi  BIGINT , sdcRegistrationLo  BIGINT , PRIMARY KEY (sdcActorUid, sdcHash) )';
      _stmtList.i1(element_218);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_219 = 'CREATE TABLE IF NOT EXISTS OutgoingReplication (  destNodeId  BIGINT  NOT NULL , orPk1  BIGINT  NOT NULL , orPk2  BIGINT  NOT NULL  DEFAULT 0 , orPk3  BIGINT  NOT NULL  DEFAULT 0 , orPk4  BIGINT  NOT NULL  DEFAULT 0 , orTableId  INTEGER  NOT NULL , orUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_219);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_220 = 'CREATE TABLE IF NOT EXISTS ReplicationOperation (  repOpRemoteNodeId  BIGINT  NOT NULL , repOpStatus  INTEGER  NOT NULL , repOpTableId  INTEGER  NOT NULL , PRIMARY KEY (repOpRemoteNodeId, repOpTableId) )';
      _stmtList.i1(element_220);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_221 = 'CREATE TABLE IF NOT EXISTS PendingRepositorySession (  endpointUrl  TEXT , remoteNodeId  BIGINT  NOT NULL , rsUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_221);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_222 = 'CREATE TABLE IF NOT EXISTS DoorNode (  auth  TEXT , nodeId  BIGINT  NOT NULL , rel  INTEGER  NOT NULL  DEFAULT 2 , PRIMARY KEY (nodeId) )';
      _stmtList.i1(element_222);
    }
    return _stmtList;
  };
  protoOf(UmAppDatabase_JdbcImpl).a7d = function () {
    return this.n7i();
  };
  protoOf(UmAppDatabase_JdbcImpl).b7d = function () {
    return this.o7i();
  };
  protoOf(UmAppDatabase_JdbcImpl).c7d = function () {
    return this.p7i();
  };
  protoOf(UmAppDatabase_JdbcImpl).d7d = function () {
    return this.q7i();
  };
  protoOf(UmAppDatabase_JdbcImpl).e7d = function () {
    return this.r7i();
  };
  protoOf(UmAppDatabase_JdbcImpl).f7d = function () {
    return this.s7i();
  };
  protoOf(UmAppDatabase_JdbcImpl).g7d = function () {
    return this.t7i();
  };
  protoOf(UmAppDatabase_JdbcImpl).h7d = function () {
    return this.u7i();
  };
  protoOf(UmAppDatabase_JdbcImpl).i7d = function () {
    return this.v7i();
  };
  protoOf(UmAppDatabase_JdbcImpl).j7d = function () {
    return this.w7i();
  };
  protoOf(UmAppDatabase_JdbcImpl).k7d = function () {
    return this.x7i();
  };
  protoOf(UmAppDatabase_JdbcImpl).l7d = function () {
    return this.y7i();
  };
  protoOf(UmAppDatabase_JdbcImpl).m7d = function () {
    return this.z7i();
  };
  protoOf(UmAppDatabase_JdbcImpl).n7d = function () {
    return this.a7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).o7d = function () {
    return this.b7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).p7d = function () {
    return this.c7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).q7d = function () {
    return this.d7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).r7d = function () {
    return this.e7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).s7d = function () {
    return this.f7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).t7d = function () {
    return this.g7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).u7d = function () {
    return this.h7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).v7d = function () {
    return this.i7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).w7d = function () {
    return this.j7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).x7d = function () {
    return this.k7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).y7d = function () {
    return this.l7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).z7d = function () {
    return this.m7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).a7e = function () {
    return this.n7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).b7e = function () {
    return this.o7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).c7e = function () {
    return this.p7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).d7e = function () {
    return this.q7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).e7e = function () {
    return this.r7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).f7e = function () {
    return this.s7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).g7e = function () {
    return this.t7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).h7e = function () {
    return this.u7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).i7e = function () {
    return this.v7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).j7e = function () {
    return this.w7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).k7e = function () {
    return this.x7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).l7e = function () {
    return this.y7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).m7e = function () {
    return this.z7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).n7e = function () {
    return this.a7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).o7e = function () {
    return this.b7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).p7e = function () {
    return this.c7o();
  };
  protoOf(UmAppDatabase_JdbcImpl).q7e = function () {
    return this.c7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).r7e = function () {
    return this.d7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).s7e = function () {
    return this.e7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).t7e = function () {
    return this.f7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).u7e = function () {
    return this.g7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).v7e = function () {
    return this.h7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).w7e = function () {
    return this.d7o();
  };
  protoOf(UmAppDatabase_JdbcImpl).x7e = function () {
    return this.e7o();
  };
  protoOf(UmAppDatabase_JdbcImpl).y7e = function () {
    return this.i7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).z7e = function () {
    return this.f7o();
  };
  protoOf(UmAppDatabase_JdbcImpl).a7f = function () {
    return this.j7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).b7f = function () {
    return this.k7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).c7f = function () {
    return this.l7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).d7f = function () {
    return this.m7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).e7f = function () {
    return this.n7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).f7f = function () {
    return this.o7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).g7f = function () {
    return this.p7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).h7f = function () {
    return this.q7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).i7f = function () {
    return this.r7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).j7f = function () {
    return this.s7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).k7f = function () {
    return this.t7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).l7f = function () {
    return this.u7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).m7f = function () {
    return this.v7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).n7f = function () {
    return this.w7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).o7f = function () {
    return this.x7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).p7f = function () {
    return this.y7k();
  };
  function realNodeIdAuthCache$factory() {
    return getPropertyCallableRef('realNodeIdAuthCache', 1, KProperty1, function (receiver) {
      return receiver.y5i();
    }, null);
  }
  function realPrimaryKeyManager$factory() {
    return getPropertyCallableRef('realPrimaryKeyManager', 1, KProperty1, function (receiver) {
      return receiver.i5i();
    }, null);
  }
  function _PersonDao$factory_0() {
    return getPropertyCallableRef('_PersonDao', 1, KProperty1, function (receiver) {
      return receiver.n7i();
    }, null);
  }
  function _ClazzDao$factory_0() {
    return getPropertyCallableRef('_ClazzDao', 1, KProperty1, function (receiver) {
      return receiver.o7i();
    }, null);
  }
  function _CourseBlockDao$factory_0() {
    return getPropertyCallableRef('_CourseBlockDao', 1, KProperty1, function (receiver) {
      return receiver.p7i();
    }, null);
  }
  function _CourseTerminologyDao$factory_0() {
    return getPropertyCallableRef('_CourseTerminologyDao', 1, KProperty1, function (receiver) {
      return receiver.q7i();
    }, null);
  }
  function _CourseGroupSetDao$factory_0() {
    return getPropertyCallableRef('_CourseGroupSetDao', 1, KProperty1, function (receiver) {
      return receiver.r7i();
    }, null);
  }
  function _CourseGroupMemberDao$factory_0() {
    return getPropertyCallableRef('_CourseGroupMemberDao', 1, KProperty1, function (receiver) {
      return receiver.s7i();
    }, null);
  }
  function _ClazzEnrolmentDao$factory_0() {
    return getPropertyCallableRef('_ClazzEnrolmentDao', 1, KProperty1, function (receiver) {
      return receiver.t7i();
    }, null);
  }
  function _LeavingReasonDao$factory_0() {
    return getPropertyCallableRef('_LeavingReasonDao', 1, KProperty1, function (receiver) {
      return receiver.u7i();
    }, null);
  }
  function _ContentEntryDao$factory_0() {
    return getPropertyCallableRef('_ContentEntryDao', 1, KProperty1, function (receiver) {
      return receiver.v7i();
    }, null);
  }
  function _ContentEntryContentCategoryJoinDao$factory_0() {
    return getPropertyCallableRef('_ContentEntryContentCategoryJoinDao', 1, KProperty1, function (receiver) {
      return receiver.w7i();
    }, null);
  }
  function _ContentEntryParentChildJoinDao$factory_0() {
    return getPropertyCallableRef('_ContentEntryParentChildJoinDao', 1, KProperty1, function (receiver) {
      return receiver.x7i();
    }, null);
  }
  function _ContentEntryRelatedEntryJoinDao$factory_0() {
    return getPropertyCallableRef('_ContentEntryRelatedEntryJoinDao', 1, KProperty1, function (receiver) {
      return receiver.y7i();
    }, null);
  }
  function _ContentCategorySchemaDao$factory_0() {
    return getPropertyCallableRef('_ContentCategorySchemaDao', 1, KProperty1, function (receiver) {
      return receiver.z7i();
    }, null);
  }
  function _ContentCategoryDao$factory_0() {
    return getPropertyCallableRef('_ContentCategoryDao', 1, KProperty1, function (receiver) {
      return receiver.a7j();
    }, null);
  }
  function _LanguageDao$factory_0() {
    return getPropertyCallableRef('_LanguageDao', 1, KProperty1, function (receiver) {
      return receiver.b7j();
    }, null);
  }
  function _LanguageVariantDao$factory_0() {
    return getPropertyCallableRef('_LanguageVariantDao', 1, KProperty1, function (receiver) {
      return receiver.c7j();
    }, null);
  }
  function _PersonGroupDao$factory_0() {
    return getPropertyCallableRef('_PersonGroupDao', 1, KProperty1, function (receiver) {
      return receiver.d7j();
    }, null);
  }
  function _PersonGroupMemberDao$factory_0() {
    return getPropertyCallableRef('_PersonGroupMemberDao', 1, KProperty1, function (receiver) {
      return receiver.e7j();
    }, null);
  }
  function _PersonPictureDao$factory_0() {
    return getPropertyCallableRef('_PersonPictureDao', 1, KProperty1, function (receiver) {
      return receiver.f7j();
    }, null);
  }
  function _VerbDao$factory_0() {
    return getPropertyCallableRef('_VerbDao', 1, KProperty1, function (receiver) {
      return receiver.g7j();
    }, null);
  }
  function _ActivityEntityDao$factory_0() {
    return getPropertyCallableRef('_ActivityEntityDao', 1, KProperty1, function (receiver) {
      return receiver.h7j();
    }, null);
  }
  function _ReportDao$factory_0() {
    return getPropertyCallableRef('_ReportDao', 1, KProperty1, function (receiver) {
      return receiver.i7j();
    }, null);
  }
  function _StatementDao$factory_0() {
    return getPropertyCallableRef('_StatementDao', 1, KProperty1, function (receiver) {
      return receiver.j7j();
    }, null);
  }
  function _ActorDao$factory_0() {
    return getPropertyCallableRef('_ActorDao', 1, KProperty1, function (receiver) {
      return receiver.k7j();
    }, null);
  }
  function _ClazzLogAttendanceRecordDao$factory_0() {
    return getPropertyCallableRef('_ClazzLogAttendanceRecordDao', 1, KProperty1, function (receiver) {
      return receiver.l7j();
    }, null);
  }
  function _ClazzLogDao$factory_0() {
    return getPropertyCallableRef('_ClazzLogDao', 1, KProperty1, function (receiver) {
      return receiver.m7j();
    }, null);
  }
  function _ScheduleDao$factory_0() {
    return getPropertyCallableRef('_ScheduleDao', 1, KProperty1, function (receiver) {
      return receiver.n7j();
    }, null);
  }
  function _HolidayCalendarDao$factory_0() {
    return getPropertyCallableRef('_HolidayCalendarDao', 1, KProperty1, function (receiver) {
      return receiver.o7j();
    }, null);
  }
  function _HolidayDao$factory_0() {
    return getPropertyCallableRef('_HolidayDao', 1, KProperty1, function (receiver) {
      return receiver.p7j();
    }, null);
  }
  function _ClazzAssignmentDao$factory_0() {
    return getPropertyCallableRef('_ClazzAssignmentDao', 1, KProperty1, function (receiver) {
      return receiver.q7j();
    }, null);
  }
  function _CourseAssignmentSubmissionDao$factory_0() {
    return getPropertyCallableRef('_CourseAssignmentSubmissionDao', 1, KProperty1, function (receiver) {
      return receiver.r7j();
    }, null);
  }
  function _CourseAssignmentSubmissionFileDao$factory_0() {
    return getPropertyCallableRef('_CourseAssignmentSubmissionFileDao', 1, KProperty1, function (receiver) {
      return receiver.s7j();
    }, null);
  }
  function _CourseAssignmentMarkDao$factory_0() {
    return getPropertyCallableRef('_CourseAssignmentMarkDao', 1, KProperty1, function (receiver) {
      return receiver.t7j();
    }, null);
  }
  function _CommentsDao$factory_0() {
    return getPropertyCallableRef('_CommentsDao', 1, KProperty1, function (receiver) {
      return receiver.u7j();
    }, null);
  }
  function _SiteDao$factory_0() {
    return getPropertyCallableRef('_SiteDao', 1, KProperty1, function (receiver) {
      return receiver.v7j();
    }, null);
  }
  function _SiteTermsDao$factory_0() {
    return getPropertyCallableRef('_SiteTermsDao', 1, KProperty1, function (receiver) {
      return receiver.w7j();
    }, null);
  }
  function _PersonParentJoinDao$factory_0() {
    return getPropertyCallableRef('_PersonParentJoinDao', 1, KProperty1, function (receiver) {
      return receiver.x7j();
    }, null);
  }
  function _ScopedGrantDao$factory_0() {
    return getPropertyCallableRef('_ScopedGrantDao', 1, KProperty1, function (receiver) {
      return receiver.y7j();
    }, null);
  }
  function _ErrorReportDao$factory_0() {
    return getPropertyCallableRef('_ErrorReportDao', 1, KProperty1, function (receiver) {
      return receiver.z7j();
    }, null);
  }
  function _PersonAuth2Dao$factory_0() {
    return getPropertyCallableRef('_PersonAuth2Dao', 1, KProperty1, function (receiver) {
      return receiver.a7k();
    }, null);
  }
  function _UserSessionDao$factory_0() {
    return getPropertyCallableRef('_UserSessionDao', 1, KProperty1, function (receiver) {
      return receiver.b7k();
    }, null);
  }
  function _ContentEntryImportJobDao$factory() {
    return getPropertyCallableRef('_ContentEntryImportJobDao', 1, KProperty1, function (receiver) {
      return receiver.c7o();
    }, null);
  }
  function _CoursePictureDao$factory_0() {
    return getPropertyCallableRef('_CoursePictureDao', 1, KProperty1, function (receiver) {
      return receiver.c7k();
    }, null);
  }
  function _ContentEntryPictureDao$factory_0() {
    return getPropertyCallableRef('_ContentEntryPictureDao', 1, KProperty1, function (receiver) {
      return receiver.d7k();
    }, null);
  }
  function _MessageDao$factory_0() {
    return getPropertyCallableRef('_MessageDao', 1, KProperty1, function (receiver) {
      return receiver.e7k();
    }, null);
  }
  function _PeerReviewerAllocationDao$factory_0() {
    return getPropertyCallableRef('_PeerReviewerAllocationDao', 1, KProperty1, function (receiver) {
      return receiver.f7k();
    }, null);
  }
  function _DiscussionPostDao$factory_0() {
    return getPropertyCallableRef('_DiscussionPostDao', 1, KProperty1, function (receiver) {
      return receiver.g7k();
    }, null);
  }
  function _ContentEntryVersionDao$factory_0() {
    return getPropertyCallableRef('_ContentEntryVersionDao', 1, KProperty1, function (receiver) {
      return receiver.h7k();
    }, null);
  }
  function _TransferJobDao$factory() {
    return getPropertyCallableRef('_TransferJobDao', 1, KProperty1, function (receiver) {
      return receiver.d7o();
    }, null);
  }
  function _TransferJobItemDao$factory() {
    return getPropertyCallableRef('_TransferJobItemDao', 1, KProperty1, function (receiver) {
      return receiver.e7o();
    }, null);
  }
  function _OfflineItemDao$factory_0() {
    return getPropertyCallableRef('_OfflineItemDao', 1, KProperty1, function (receiver) {
      return receiver.i7k();
    }, null);
  }
  function _DeletedItemDao$factory() {
    return getPropertyCallableRef('_DeletedItemDao', 1, KProperty1, function (receiver) {
      return receiver.f7o();
    }, null);
  }
  function _EnrolmentRequestDao$factory_0() {
    return getPropertyCallableRef('_EnrolmentRequestDao', 1, KProperty1, function (receiver) {
      return receiver.j7k();
    }, null);
  }
  function _CoursePermissionDao$factory_0() {
    return getPropertyCallableRef('_CoursePermissionDao', 1, KProperty1, function (receiver) {
      return receiver.k7k();
    }, null);
  }
  function _SystemPermissionDao$factory_0() {
    return getPropertyCallableRef('_SystemPermissionDao', 1, KProperty1, function (receiver) {
      return receiver.l7k();
    }, null);
  }
  function _CourseBlockPictureDao$factory_0() {
    return getPropertyCallableRef('_CourseBlockPictureDao', 1, KProperty1, function (receiver) {
      return receiver.m7k();
    }, null);
  }
  function _ContentEntryPicture2Dao$factory_0() {
    return getPropertyCallableRef('_ContentEntryPicture2Dao', 1, KProperty1, function (receiver) {
      return receiver.n7k();
    }, null);
  }
  function _StudentResultDao$factory_0() {
    return getPropertyCallableRef('_StudentResultDao', 1, KProperty1, function (receiver) {
      return receiver.o7k();
    }, null);
  }
  function _VerbLangMapEntryDao$factory_0() {
    return getPropertyCallableRef('_VerbLangMapEntryDao', 1, KProperty1, function (receiver) {
      return receiver.p7k();
    }, null);
  }
  function _GroupMemberActorJoinDao$factory_0() {
    return getPropertyCallableRef('_GroupMemberActorJoinDao', 1, KProperty1, function (receiver) {
      return receiver.q7k();
    }, null);
  }
  function _ActivityLangMapEntryDao$factory_0() {
    return getPropertyCallableRef('_ActivityLangMapEntryDao', 1, KProperty1, function (receiver) {
      return receiver.r7k();
    }, null);
  }
  function _ActivityInteractionDao$factory_0() {
    return getPropertyCallableRef('_ActivityInteractionDao', 1, KProperty1, function (receiver) {
      return receiver.s7k();
    }, null);
  }
  function _ActivityExtensionDao$factory_0() {
    return getPropertyCallableRef('_ActivityExtensionDao', 1, KProperty1, function (receiver) {
      return receiver.t7k();
    }, null);
  }
  function _StatementContextActivityJoinDao$factory_0() {
    return getPropertyCallableRef('_StatementContextActivityJoinDao', 1, KProperty1, function (receiver) {
      return receiver.u7k();
    }, null);
  }
  function _XapiSessionEntityDao$factory_0() {
    return getPropertyCallableRef('_XapiSessionEntityDao', 1, KProperty1, function (receiver) {
      return receiver.v7k();
    }, null);
  }
  function _StatementEntityJsonDao$factory_0() {
    return getPropertyCallableRef('_StatementEntityJsonDao', 1, KProperty1, function (receiver) {
      return receiver.w7k();
    }, null);
  }
  function _StateEntityDao$factory_0() {
    return getPropertyCallableRef('_StateEntityDao', 1, KProperty1, function (receiver) {
      return receiver.x7k();
    }, null);
  }
  function _StateDeleteCommandDao$factory_0() {
    return getPropertyCallableRef('_StateDeleteCommandDao', 1, KProperty1, function (receiver) {
      return receiver.y7k();
    }, null);
  }
  function _get__endpoint__5zlgkj($this) {
    return $this.h7o_1.g65_1;
  }
  function _get__PersonDao__uzj2el($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.k7o_1;
    _PersonDao$factory_1();
    return this_0.t2();
  }
  function _get__ClazzDao__9uv608($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.l7o_1;
    _ClazzDao$factory_1();
    return this_0.t2();
  }
  function _get__CourseBlockDao__4pp4mq($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.m7o_1;
    _CourseBlockDao$factory_1();
    return this_0.t2();
  }
  function _get__CourseTerminologyDao__a6bld4($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.n7o_1;
    _CourseTerminologyDao$factory_1();
    return this_0.t2();
  }
  function _get__CourseGroupSetDao__hfsuk6($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.o7o_1;
    _CourseGroupSetDao$factory_1();
    return this_0.t2();
  }
  function _get__CourseGroupMemberDao__l3hcwy($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.p7o_1;
    _CourseGroupMemberDao$factory_1();
    return this_0.t2();
  }
  function _get__ClazzEnrolmentDao__q8nlvo($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.q7o_1;
    _ClazzEnrolmentDao$factory_1();
    return this_0.t2();
  }
  function _get__LeavingReasonDao__m21j14($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.r7o_1;
    _LeavingReasonDao$factory_1();
    return this_0.t2();
  }
  function _get__ContentEntryDao__asrab3($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.s7o_1;
    _ContentEntryDao$factory_1();
    return this_0.t2();
  }
  function _get__ContentEntryContentCategoryJoinDao__c8c5lk($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.t7o_1;
    _ContentEntryContentCategoryJoinDao$factory_1();
    return this_0.t2();
  }
  function _get__ContentEntryParentChildJoinDao__moxer($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.u7o_1;
    _ContentEntryParentChildJoinDao$factory_1();
    return this_0.t2();
  }
  function _get__ContentEntryRelatedEntryJoinDao__wdqzcu($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.v7o_1;
    _ContentEntryRelatedEntryJoinDao$factory_1();
    return this_0.t2();
  }
  function _get__ContentCategorySchemaDao__95pyeg($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.w7o_1;
    _ContentCategorySchemaDao$factory_1();
    return this_0.t2();
  }
  function _get__ContentCategoryDao__tsqjyv($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.x7o_1;
    _ContentCategoryDao$factory_1();
    return this_0.t2();
  }
  function _get__LanguageDao__1z90w($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.y7o_1;
    _LanguageDao$factory_1();
    return this_0.t2();
  }
  function _get__LanguageVariantDao__rxf1fx($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.z7o_1;
    _LanguageVariantDao$factory_1();
    return this_0.t2();
  }
  function _get__PersonGroupDao__hew8d2($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.a7p_1;
    _PersonGroupDao$factory_1();
    return this_0.t2();
  }
  function _get__PersonGroupMemberDao__mvnpb8($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.b7p_1;
    _PersonGroupMemberDao$factory_1();
    return this_0.t2();
  }
  function _get__PersonPictureDao__2gbg89($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.c7p_1;
    _PersonPictureDao$factory_1();
    return this_0.t2();
  }
  function _get__VerbDao__618h8p($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.d7p_1;
    _VerbDao$factory_1();
    return this_0.t2();
  }
  function _get__ActivityEntityDao__cj0phy($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.e7p_1;
    _ActivityEntityDao$factory_1();
    return this_0.t2();
  }
  function _get__ReportDao__jbr9h0($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.f7p_1;
    _ReportDao$factory_1();
    return this_0.t2();
  }
  function _get__StatementDao__fnw41b($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.g7p_1;
    _StatementDao$factory_1();
    return this_0.t2();
  }
  function _get__ActorDao__6yq8sr($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.h7p_1;
    _ActorDao$factory_1();
    return this_0.t2();
  }
  function _get__ClazzLogAttendanceRecordDao__r3qxzy($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.i7p_1;
    _ClazzLogAttendanceRecordDao$factory_1();
    return this_0.t2();
  }
  function _get__ClazzLogDao__xeo15w($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.j7p_1;
    _ClazzLogDao$factory_1();
    return this_0.t2();
  }
  function _get__ScheduleDao__h5s1ch($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.k7p_1;
    _ScheduleDao$factory_1();
    return this_0.t2();
  }
  function _get__HolidayCalendarDao__gbx0p6($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.l7p_1;
    _HolidayCalendarDao$factory_1();
    return this_0.t2();
  }
  function _get__HolidayDao__x92kh4($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.m7p_1;
    _HolidayDao$factory_1();
    return this_0.t2();
  }
  function _get__ClazzAssignmentDao__kc42th($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.n7p_1;
    _ClazzAssignmentDao$factory_1();
    return this_0.t2();
  }
  function _get__CourseAssignmentSubmissionDao__ir2b4c($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.o7p_1;
    _CourseAssignmentSubmissionDao$factory_1();
    return this_0.t2();
  }
  function _get__CourseAssignmentSubmissionFileDao__63r33c($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.p7p_1;
    _CourseAssignmentSubmissionFileDao$factory_1();
    return this_0.t2();
  }
  function _get__CourseAssignmentMarkDao__yi6swd($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.q7p_1;
    _CourseAssignmentMarkDao$factory_1();
    return this_0.t2();
  }
  function _get__CommentsDao__mxkt84($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.r7p_1;
    _CommentsDao$factory_1();
    return this_0.t2();
  }
  function _get__SiteDao__wss4yp($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.s7p_1;
    _SiteDao$factory_1();
    return this_0.t2();
  }
  function _get__SiteTermsDao__f7rqww($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.t7p_1;
    _SiteTermsDao$factory_1();
    return this_0.t2();
  }
  function _get__PersonParentJoinDao__o0iclb($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.u7p_1;
    _PersonParentJoinDao$factory_1();
    return this_0.t2();
  }
  function _get__ScopedGrantDao__9w613o($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.v7p_1;
    _ScopedGrantDao$factory_1();
    return this_0.t2();
  }
  function _get__ErrorReportDao__d8e0x0($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.w7p_1;
    _ErrorReportDao$factory_1();
    return this_0.t2();
  }
  function _get__PersonAuth2Dao__uki6ut($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.x7p_1;
    _PersonAuth2Dao$factory_1();
    return this_0.t2();
  }
  function _get__UserSessionDao__wcreq3($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.y7p_1;
    _UserSessionDao$factory_1();
    return this_0.t2();
  }
  function _get__CoursePictureDao__qr47kz($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.z7p_1;
    _CoursePictureDao$factory_1();
    return this_0.t2();
  }
  function _get__ContentEntryPictureDao__hzeabf($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.a7q_1;
    _ContentEntryPictureDao$factory_1();
    return this_0.t2();
  }
  function _get__MessageDao__u7e9l3($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.b7q_1;
    _MessageDao$factory_1();
    return this_0.t2();
  }
  function _get__PeerReviewerAllocationDao__m08hnj($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.c7q_1;
    _PeerReviewerAllocationDao$factory_1();
    return this_0.t2();
  }
  function _get__DiscussionPostDao__bymsxs($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.d7q_1;
    _DiscussionPostDao$factory_1();
    return this_0.t2();
  }
  function _get__ContentEntryVersionDao__egjvvj($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.e7q_1;
    _ContentEntryVersionDao$factory_1();
    return this_0.t2();
  }
  function _get__OfflineItemDao__4yjkly($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.f7q_1;
    _OfflineItemDao$factory_1();
    return this_0.t2();
  }
  function _get__DeletedItemDao__4i3s1g($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.g7q_1;
    _DeletedItemDao$factory_0();
    return this_0.t2();
  }
  function _get__EnrolmentRequestDao__wkcqzn($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.h7q_1;
    _EnrolmentRequestDao$factory_1();
    return this_0.t2();
  }
  function _get__CoursePermissionDao__hib1jy($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.i7q_1;
    _CoursePermissionDao$factory_1();
    return this_0.t2();
  }
  function _get__SystemPermissionDao__c05myy($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.j7q_1;
    _SystemPermissionDao$factory_1();
    return this_0.t2();
  }
  function _get__CourseBlockPictureDao__hx4ubg($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.k7q_1;
    _CourseBlockPictureDao$factory_1();
    return this_0.t2();
  }
  function _get__ContentEntryPicture2Dao__ah6hid($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.l7q_1;
    _ContentEntryPicture2Dao$factory_1();
    return this_0.t2();
  }
  function _get__StudentResultDao__sr8vqw($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.m7q_1;
    _StudentResultDao$factory_1();
    return this_0.t2();
  }
  function _get__VerbLangMapEntryDao__oda6e3($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.n7q_1;
    _VerbLangMapEntryDao$factory_1();
    return this_0.t2();
  }
  function _get__GroupMemberActorJoinDao__jlmme6($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.o7q_1;
    _GroupMemberActorJoinDao$factory_1();
    return this_0.t2();
  }
  function _get__ActivityLangMapEntryDao__htpiob($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.p7q_1;
    _ActivityLangMapEntryDao$factory_1();
    return this_0.t2();
  }
  function _get__ActivityInteractionDao__x272ir($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.q7q_1;
    _ActivityInteractionDao$factory_1();
    return this_0.t2();
  }
  function _get__ActivityExtensionDao__cpvg5s($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.r7q_1;
    _ActivityExtensionDao$factory_1();
    return this_0.t2();
  }
  function _get__StatementContextActivityJoinDao__t5jinj($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.s7q_1;
    _StatementContextActivityJoinDao$factory_1();
    return this_0.t2();
  }
  function _get__XapiSessionEntityDao__tpjn2v($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.t7q_1;
    _XapiSessionEntityDao$factory_1();
    return this_0.t2();
  }
  function _get__StatementEntityJsonDao__4ym94q($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.u7q_1;
    _StatementEntityJsonDao$factory_1();
    return this_0.t2();
  }
  function _get__StateEntityDao__vtinv8($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.v7q_1;
    _StateEntityDao$factory_1();
    return this_0.t2();
  }
  function _get__StateDeleteCommandDao__s2ay7b($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.w7q_1;
    _StateDeleteCommandDao$factory_1();
    return this_0.t2();
  }
  function Companion() {
    this.x7q_1 = 'UmAppDatabase';
  }
  var Companion_instance_0;
  function Companion_getInstance_2() {
    return Companion_instance_0;
  }
  function UmAppDatabase_Repo$_PersonDao$delegate$lambda(this$0) {
    return function () {
      return new PersonDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.a7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ClazzDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.b7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CourseBlockDao$delegate$lambda(this$0) {
    return function () {
      return new CourseBlockDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.c7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CourseTerminologyDao$delegate$lambda(this$0) {
    return function () {
      return new CourseTerminologyDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.d7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CourseGroupSetDao$delegate$lambda(this$0) {
    return function () {
      return new CourseGroupSetDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.e7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CourseGroupMemberDao$delegate$lambda(this$0) {
    return function () {
      return new CourseGroupMemberDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.f7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ClazzEnrolmentDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzEnrolmentDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.g7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_LeavingReasonDao$delegate$lambda(this$0) {
    return function () {
      return new LeavingReasonDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.h7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ContentEntryDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.i7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ContentEntryContentCategoryJoinDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryContentCategoryJoinDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.j7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ContentEntryParentChildJoinDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryParentChildJoinDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.k7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryRelatedEntryJoinDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.l7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ContentCategorySchemaDao$delegate$lambda(this$0) {
    return function () {
      return new ContentCategorySchemaDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.m7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ContentCategoryDao$delegate$lambda(this$0) {
    return function () {
      return new ContentCategoryDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.n7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_LanguageDao$delegate$lambda(this$0) {
    return function () {
      return new LanguageDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.o7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_LanguageVariantDao$delegate$lambda(this$0) {
    return function () {
      return new LanguageVariantDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.p7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_PersonGroupDao$delegate$lambda(this$0) {
    return function () {
      return new PersonGroupDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.q7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_PersonGroupMemberDao$delegate$lambda(this$0) {
    return function () {
      return new PersonGroupMemberDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.r7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_PersonPictureDao$delegate$lambda(this$0) {
    return function () {
      return new PersonPictureDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.s7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_VerbDao$delegate$lambda(this$0) {
    return function () {
      return new VerbDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.t7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ActivityEntityDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityEntityDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.u7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ReportDao$delegate$lambda(this$0) {
    return function () {
      return new ReportDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.v7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_StatementDao$delegate$lambda(this$0) {
    return function () {
      return new StatementDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.w7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ActorDao$delegate$lambda(this$0) {
    return function () {
      return new ActorDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.x7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ClazzLogAttendanceRecordDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzLogAttendanceRecordDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.y7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ClazzLogDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzLogDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.z7d(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ScheduleDao$delegate$lambda(this$0) {
    return function () {
      return new ScheduleDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.a7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_HolidayCalendarDao$delegate$lambda(this$0) {
    return function () {
      return new HolidayCalendarDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.b7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_HolidayDao$delegate$lambda(this$0) {
    return function () {
      return new HolidayDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.c7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ClazzAssignmentDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzAssignmentDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.d7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CourseAssignmentSubmissionDao$delegate$lambda(this$0) {
    return function () {
      return new CourseAssignmentSubmissionDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.e7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CourseAssignmentSubmissionFileDao$delegate$lambda(this$0) {
    return function () {
      return new CourseAssignmentSubmissionFileDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.f7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CourseAssignmentMarkDao$delegate$lambda(this$0) {
    return function () {
      return new CourseAssignmentMarkDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.g7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CommentsDao$delegate$lambda(this$0) {
    return function () {
      return new CommentsDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.h7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_SiteDao$delegate$lambda(this$0) {
    return function () {
      return new SiteDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.i7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_SiteTermsDao$delegate$lambda(this$0) {
    return function () {
      return new SiteTermsDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.j7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_PersonParentJoinDao$delegate$lambda(this$0) {
    return function () {
      return new PersonParentJoinDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.k7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ScopedGrantDao$delegate$lambda(this$0) {
    return function () {
      return new ScopedGrantDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.l7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ErrorReportDao$delegate$lambda(this$0) {
    return function () {
      return new ErrorReportDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.m7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_PersonAuth2Dao$delegate$lambda(this$0) {
    return function () {
      return new PersonAuth2Dao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.n7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_UserSessionDao$delegate$lambda(this$0) {
    return function () {
      return new UserSessionDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.o7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CoursePictureDao$delegate$lambda(this$0) {
    return function () {
      return new CoursePictureDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.q7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ContentEntryPictureDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryPictureDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.r7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_MessageDao$delegate$lambda(this$0) {
    return function () {
      return new MessageDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.s7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_PeerReviewerAllocationDao$delegate$lambda(this$0) {
    return function () {
      return new PeerReviewerAllocationDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.t7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_DiscussionPostDao$delegate$lambda(this$0) {
    return function () {
      return new DiscussionPostDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.u7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ContentEntryVersionDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryVersionDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.v7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_OfflineItemDao$delegate$lambda(this$0) {
    return function () {
      return new OfflineItemDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.y7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_DeletedItemDao$delegate$lambda(this$0) {
    return function () {
      return new DeletedItemDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.z7e(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_EnrolmentRequestDao$delegate$lambda(this$0) {
    return function () {
      return new EnrolmentRequestDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.a7f(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CoursePermissionDao$delegate$lambda(this$0) {
    return function () {
      return new CoursePermissionDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.b7f(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_SystemPermissionDao$delegate$lambda(this$0) {
    return function () {
      return new SystemPermissionDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.c7f(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CourseBlockPictureDao$delegate$lambda(this$0) {
    return function () {
      return new CourseBlockPictureDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.d7f(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ContentEntryPicture2Dao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryPicture2Dao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.e7f(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_StudentResultDao$delegate$lambda(this$0) {
    return function () {
      return new StudentResultDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.f7f(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_VerbLangMapEntryDao$delegate$lambda(this$0) {
    return function () {
      return new VerbLangMapEntryDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.g7f(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_GroupMemberActorJoinDao$delegate$lambda(this$0) {
    return function () {
      return new GroupMemberActorJoinDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.h7f(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ActivityLangMapEntryDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityLangMapEntryDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.i7f(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ActivityInteractionDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityInteractionDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.j7f(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ActivityExtensionDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityExtensionDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.k7f(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_StatementContextActivityJoinDao$delegate$lambda(this$0) {
    return function () {
      return new StatementContextActivityJoinDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.l7f(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_XapiSessionEntityDao$delegate$lambda(this$0) {
    return function () {
      return new XapiSessionEntityDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.m7f(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_StatementEntityJsonDao$delegate$lambda(this$0) {
    return function () {
      return new StatementEntityJsonDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.n7f(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_StateEntityDao$delegate$lambda(this$0) {
    return function () {
      return new StateEntityDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.o7f(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_StateDeleteCommandDao$delegate$lambda(this$0) {
    return function () {
      return new StateDeleteCommandDao_Repo(this$0.g7o_1, this$0, this$0.g7o_1.p7f(), this$0.y7q(), this$0.z7q(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo(db, dbUnwrapped, config) {
    UmAppDatabase.call(this);
    this.g7o_1 = db;
    this.h7o_1 = config;
    this.i7o_1 = dbUnwrapped;
    this.j7o_1 = new RepositoryHelper(this.g7o_1, this.h7o_1);
    var tmp = this;
    tmp.k7o_1 = lazy_0(UmAppDatabase_Repo$_PersonDao$delegate$lambda(this));
    var tmp_0 = this;
    tmp_0.l7o_1 = lazy_0(UmAppDatabase_Repo$_ClazzDao$delegate$lambda(this));
    var tmp_1 = this;
    tmp_1.m7o_1 = lazy_0(UmAppDatabase_Repo$_CourseBlockDao$delegate$lambda(this));
    var tmp_2 = this;
    tmp_2.n7o_1 = lazy_0(UmAppDatabase_Repo$_CourseTerminologyDao$delegate$lambda(this));
    var tmp_3 = this;
    tmp_3.o7o_1 = lazy_0(UmAppDatabase_Repo$_CourseGroupSetDao$delegate$lambda(this));
    var tmp_4 = this;
    tmp_4.p7o_1 = lazy_0(UmAppDatabase_Repo$_CourseGroupMemberDao$delegate$lambda(this));
    var tmp_5 = this;
    tmp_5.q7o_1 = lazy_0(UmAppDatabase_Repo$_ClazzEnrolmentDao$delegate$lambda(this));
    var tmp_6 = this;
    tmp_6.r7o_1 = lazy_0(UmAppDatabase_Repo$_LeavingReasonDao$delegate$lambda(this));
    var tmp_7 = this;
    tmp_7.s7o_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryDao$delegate$lambda(this));
    var tmp_8 = this;
    tmp_8.t7o_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryContentCategoryJoinDao$delegate$lambda(this));
    var tmp_9 = this;
    tmp_9.u7o_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryParentChildJoinDao$delegate$lambda(this));
    var tmp_10 = this;
    tmp_10.v7o_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this));
    var tmp_11 = this;
    tmp_11.w7o_1 = lazy_0(UmAppDatabase_Repo$_ContentCategorySchemaDao$delegate$lambda(this));
    var tmp_12 = this;
    tmp_12.x7o_1 = lazy_0(UmAppDatabase_Repo$_ContentCategoryDao$delegate$lambda(this));
    var tmp_13 = this;
    tmp_13.y7o_1 = lazy_0(UmAppDatabase_Repo$_LanguageDao$delegate$lambda(this));
    var tmp_14 = this;
    tmp_14.z7o_1 = lazy_0(UmAppDatabase_Repo$_LanguageVariantDao$delegate$lambda(this));
    var tmp_15 = this;
    tmp_15.a7p_1 = lazy_0(UmAppDatabase_Repo$_PersonGroupDao$delegate$lambda(this));
    var tmp_16 = this;
    tmp_16.b7p_1 = lazy_0(UmAppDatabase_Repo$_PersonGroupMemberDao$delegate$lambda(this));
    var tmp_17 = this;
    tmp_17.c7p_1 = lazy_0(UmAppDatabase_Repo$_PersonPictureDao$delegate$lambda(this));
    var tmp_18 = this;
    tmp_18.d7p_1 = lazy_0(UmAppDatabase_Repo$_VerbDao$delegate$lambda(this));
    var tmp_19 = this;
    tmp_19.e7p_1 = lazy_0(UmAppDatabase_Repo$_ActivityEntityDao$delegate$lambda(this));
    var tmp_20 = this;
    tmp_20.f7p_1 = lazy_0(UmAppDatabase_Repo$_ReportDao$delegate$lambda(this));
    var tmp_21 = this;
    tmp_21.g7p_1 = lazy_0(UmAppDatabase_Repo$_StatementDao$delegate$lambda(this));
    var tmp_22 = this;
    tmp_22.h7p_1 = lazy_0(UmAppDatabase_Repo$_ActorDao$delegate$lambda(this));
    var tmp_23 = this;
    tmp_23.i7p_1 = lazy_0(UmAppDatabase_Repo$_ClazzLogAttendanceRecordDao$delegate$lambda(this));
    var tmp_24 = this;
    tmp_24.j7p_1 = lazy_0(UmAppDatabase_Repo$_ClazzLogDao$delegate$lambda(this));
    var tmp_25 = this;
    tmp_25.k7p_1 = lazy_0(UmAppDatabase_Repo$_ScheduleDao$delegate$lambda(this));
    var tmp_26 = this;
    tmp_26.l7p_1 = lazy_0(UmAppDatabase_Repo$_HolidayCalendarDao$delegate$lambda(this));
    var tmp_27 = this;
    tmp_27.m7p_1 = lazy_0(UmAppDatabase_Repo$_HolidayDao$delegate$lambda(this));
    var tmp_28 = this;
    tmp_28.n7p_1 = lazy_0(UmAppDatabase_Repo$_ClazzAssignmentDao$delegate$lambda(this));
    var tmp_29 = this;
    tmp_29.o7p_1 = lazy_0(UmAppDatabase_Repo$_CourseAssignmentSubmissionDao$delegate$lambda(this));
    var tmp_30 = this;
    tmp_30.p7p_1 = lazy_0(UmAppDatabase_Repo$_CourseAssignmentSubmissionFileDao$delegate$lambda(this));
    var tmp_31 = this;
    tmp_31.q7p_1 = lazy_0(UmAppDatabase_Repo$_CourseAssignmentMarkDao$delegate$lambda(this));
    var tmp_32 = this;
    tmp_32.r7p_1 = lazy_0(UmAppDatabase_Repo$_CommentsDao$delegate$lambda(this));
    var tmp_33 = this;
    tmp_33.s7p_1 = lazy_0(UmAppDatabase_Repo$_SiteDao$delegate$lambda(this));
    var tmp_34 = this;
    tmp_34.t7p_1 = lazy_0(UmAppDatabase_Repo$_SiteTermsDao$delegate$lambda(this));
    var tmp_35 = this;
    tmp_35.u7p_1 = lazy_0(UmAppDatabase_Repo$_PersonParentJoinDao$delegate$lambda(this));
    var tmp_36 = this;
    tmp_36.v7p_1 = lazy_0(UmAppDatabase_Repo$_ScopedGrantDao$delegate$lambda(this));
    var tmp_37 = this;
    tmp_37.w7p_1 = lazy_0(UmAppDatabase_Repo$_ErrorReportDao$delegate$lambda(this));
    var tmp_38 = this;
    tmp_38.x7p_1 = lazy_0(UmAppDatabase_Repo$_PersonAuth2Dao$delegate$lambda(this));
    var tmp_39 = this;
    tmp_39.y7p_1 = lazy_0(UmAppDatabase_Repo$_UserSessionDao$delegate$lambda(this));
    var tmp_40 = this;
    tmp_40.z7p_1 = lazy_0(UmAppDatabase_Repo$_CoursePictureDao$delegate$lambda(this));
    var tmp_41 = this;
    tmp_41.a7q_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryPictureDao$delegate$lambda(this));
    var tmp_42 = this;
    tmp_42.b7q_1 = lazy_0(UmAppDatabase_Repo$_MessageDao$delegate$lambda(this));
    var tmp_43 = this;
    tmp_43.c7q_1 = lazy_0(UmAppDatabase_Repo$_PeerReviewerAllocationDao$delegate$lambda(this));
    var tmp_44 = this;
    tmp_44.d7q_1 = lazy_0(UmAppDatabase_Repo$_DiscussionPostDao$delegate$lambda(this));
    var tmp_45 = this;
    tmp_45.e7q_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryVersionDao$delegate$lambda(this));
    var tmp_46 = this;
    tmp_46.f7q_1 = lazy_0(UmAppDatabase_Repo$_OfflineItemDao$delegate$lambda(this));
    var tmp_47 = this;
    tmp_47.g7q_1 = lazy_0(UmAppDatabase_Repo$_DeletedItemDao$delegate$lambda(this));
    var tmp_48 = this;
    tmp_48.h7q_1 = lazy_0(UmAppDatabase_Repo$_EnrolmentRequestDao$delegate$lambda(this));
    var tmp_49 = this;
    tmp_49.i7q_1 = lazy_0(UmAppDatabase_Repo$_CoursePermissionDao$delegate$lambda(this));
    var tmp_50 = this;
    tmp_50.j7q_1 = lazy_0(UmAppDatabase_Repo$_SystemPermissionDao$delegate$lambda(this));
    var tmp_51 = this;
    tmp_51.k7q_1 = lazy_0(UmAppDatabase_Repo$_CourseBlockPictureDao$delegate$lambda(this));
    var tmp_52 = this;
    tmp_52.l7q_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryPicture2Dao$delegate$lambda(this));
    var tmp_53 = this;
    tmp_53.m7q_1 = lazy_0(UmAppDatabase_Repo$_StudentResultDao$delegate$lambda(this));
    var tmp_54 = this;
    tmp_54.n7q_1 = lazy_0(UmAppDatabase_Repo$_VerbLangMapEntryDao$delegate$lambda(this));
    var tmp_55 = this;
    tmp_55.o7q_1 = lazy_0(UmAppDatabase_Repo$_GroupMemberActorJoinDao$delegate$lambda(this));
    var tmp_56 = this;
    tmp_56.p7q_1 = lazy_0(UmAppDatabase_Repo$_ActivityLangMapEntryDao$delegate$lambda(this));
    var tmp_57 = this;
    tmp_57.q7q_1 = lazy_0(UmAppDatabase_Repo$_ActivityInteractionDao$delegate$lambda(this));
    var tmp_58 = this;
    tmp_58.r7q_1 = lazy_0(UmAppDatabase_Repo$_ActivityExtensionDao$delegate$lambda(this));
    var tmp_59 = this;
    tmp_59.s7q_1 = lazy_0(UmAppDatabase_Repo$_StatementContextActivityJoinDao$delegate$lambda(this));
    var tmp_60 = this;
    tmp_60.t7q_1 = lazy_0(UmAppDatabase_Repo$_XapiSessionEntityDao$delegate$lambda(this));
    var tmp_61 = this;
    tmp_61.u7q_1 = lazy_0(UmAppDatabase_Repo$_StatementEntityJsonDao$delegate$lambda(this));
    var tmp_62 = this;
    tmp_62.v7q_1 = lazy_0(UmAppDatabase_Repo$_StateEntityDao$delegate$lambda(this));
    var tmp_63 = this;
    tmp_63.w7q_1 = lazy_0(UmAppDatabase_Repo$_StateDeleteCommandDao$delegate$lambda(this));
  }
  protoOf(UmAppDatabase_Repo).k5i = function () {
    return this.g7o_1;
  };
  protoOf(UmAppDatabase_Repo).w38 = function () {
    return this.h7o_1;
  };
  protoOf(UmAppDatabase_Repo).y7q = function () {
    return this.h7o_1.j65_1;
  };
  protoOf(UmAppDatabase_Repo).z7q = function () {
    return this.h7o_1.i65_1;
  };
  protoOf(UmAppDatabase_Repo).j5l = function () {
    return this.i7o_1.j5l();
  };
  protoOf(UmAppDatabase_Repo).x71 = function () {
    return 202;
  };
  protoOf(UmAppDatabase_Repo).z60 = function () {
    return this.j7o_1.z60();
  };
  protoOf(UmAppDatabase_Repo).d71 = function () {
    throw IllegalStateException_init_$Create$('Cannot use a repository to createAllTables!');
  };
  protoOf(UmAppDatabase_Repo).a7d = function () {
    return _get__PersonDao__uzj2el(this);
  };
  protoOf(UmAppDatabase_Repo).b7d = function () {
    return _get__ClazzDao__9uv608(this);
  };
  protoOf(UmAppDatabase_Repo).c7d = function () {
    return _get__CourseBlockDao__4pp4mq(this);
  };
  protoOf(UmAppDatabase_Repo).d7d = function () {
    return _get__CourseTerminologyDao__a6bld4(this);
  };
  protoOf(UmAppDatabase_Repo).e7d = function () {
    return _get__CourseGroupSetDao__hfsuk6(this);
  };
  protoOf(UmAppDatabase_Repo).f7d = function () {
    return _get__CourseGroupMemberDao__l3hcwy(this);
  };
  protoOf(UmAppDatabase_Repo).g7d = function () {
    return _get__ClazzEnrolmentDao__q8nlvo(this);
  };
  protoOf(UmAppDatabase_Repo).h7d = function () {
    return _get__LeavingReasonDao__m21j14(this);
  };
  protoOf(UmAppDatabase_Repo).i7d = function () {
    return _get__ContentEntryDao__asrab3(this);
  };
  protoOf(UmAppDatabase_Repo).j7d = function () {
    return _get__ContentEntryContentCategoryJoinDao__c8c5lk(this);
  };
  protoOf(UmAppDatabase_Repo).k7d = function () {
    return _get__ContentEntryParentChildJoinDao__moxer(this);
  };
  protoOf(UmAppDatabase_Repo).l7d = function () {
    return _get__ContentEntryRelatedEntryJoinDao__wdqzcu(this);
  };
  protoOf(UmAppDatabase_Repo).m7d = function () {
    return _get__ContentCategorySchemaDao__95pyeg(this);
  };
  protoOf(UmAppDatabase_Repo).n7d = function () {
    return _get__ContentCategoryDao__tsqjyv(this);
  };
  protoOf(UmAppDatabase_Repo).o7d = function () {
    return _get__LanguageDao__1z90w(this);
  };
  protoOf(UmAppDatabase_Repo).p7d = function () {
    return _get__LanguageVariantDao__rxf1fx(this);
  };
  protoOf(UmAppDatabase_Repo).q7d = function () {
    return _get__PersonGroupDao__hew8d2(this);
  };
  protoOf(UmAppDatabase_Repo).r7d = function () {
    return _get__PersonGroupMemberDao__mvnpb8(this);
  };
  protoOf(UmAppDatabase_Repo).s7d = function () {
    return _get__PersonPictureDao__2gbg89(this);
  };
  protoOf(UmAppDatabase_Repo).t7d = function () {
    return _get__VerbDao__618h8p(this);
  };
  protoOf(UmAppDatabase_Repo).u7d = function () {
    return _get__ActivityEntityDao__cj0phy(this);
  };
  protoOf(UmAppDatabase_Repo).v7d = function () {
    return _get__ReportDao__jbr9h0(this);
  };
  protoOf(UmAppDatabase_Repo).w7d = function () {
    return _get__StatementDao__fnw41b(this);
  };
  protoOf(UmAppDatabase_Repo).x7d = function () {
    return _get__ActorDao__6yq8sr(this);
  };
  protoOf(UmAppDatabase_Repo).y7d = function () {
    return _get__ClazzLogAttendanceRecordDao__r3qxzy(this);
  };
  protoOf(UmAppDatabase_Repo).z7d = function () {
    return _get__ClazzLogDao__xeo15w(this);
  };
  protoOf(UmAppDatabase_Repo).a7e = function () {
    return _get__ScheduleDao__h5s1ch(this);
  };
  protoOf(UmAppDatabase_Repo).b7e = function () {
    return _get__HolidayCalendarDao__gbx0p6(this);
  };
  protoOf(UmAppDatabase_Repo).c7e = function () {
    return _get__HolidayDao__x92kh4(this);
  };
  protoOf(UmAppDatabase_Repo).d7e = function () {
    return _get__ClazzAssignmentDao__kc42th(this);
  };
  protoOf(UmAppDatabase_Repo).e7e = function () {
    return _get__CourseAssignmentSubmissionDao__ir2b4c(this);
  };
  protoOf(UmAppDatabase_Repo).f7e = function () {
    return _get__CourseAssignmentSubmissionFileDao__63r33c(this);
  };
  protoOf(UmAppDatabase_Repo).g7e = function () {
    return _get__CourseAssignmentMarkDao__yi6swd(this);
  };
  protoOf(UmAppDatabase_Repo).h7e = function () {
    return _get__CommentsDao__mxkt84(this);
  };
  protoOf(UmAppDatabase_Repo).i7e = function () {
    return _get__SiteDao__wss4yp(this);
  };
  protoOf(UmAppDatabase_Repo).j7e = function () {
    return _get__SiteTermsDao__f7rqww(this);
  };
  protoOf(UmAppDatabase_Repo).k7e = function () {
    return _get__PersonParentJoinDao__o0iclb(this);
  };
  protoOf(UmAppDatabase_Repo).l7e = function () {
    return _get__ScopedGrantDao__9w613o(this);
  };
  protoOf(UmAppDatabase_Repo).m7e = function () {
    return _get__ErrorReportDao__d8e0x0(this);
  };
  protoOf(UmAppDatabase_Repo).n7e = function () {
    return _get__PersonAuth2Dao__uki6ut(this);
  };
  protoOf(UmAppDatabase_Repo).o7e = function () {
    return _get__UserSessionDao__wcreq3(this);
  };
  protoOf(UmAppDatabase_Repo).p7e = function () {
    throw IllegalStateException_init_$Create$('ContentEntryImportJobDao is not annotated with @Repository');
  };
  protoOf(UmAppDatabase_Repo).q7e = function () {
    return _get__CoursePictureDao__qr47kz(this);
  };
  protoOf(UmAppDatabase_Repo).r7e = function () {
    return _get__ContentEntryPictureDao__hzeabf(this);
  };
  protoOf(UmAppDatabase_Repo).s7e = function () {
    return _get__MessageDao__u7e9l3(this);
  };
  protoOf(UmAppDatabase_Repo).t7e = function () {
    return _get__PeerReviewerAllocationDao__m08hnj(this);
  };
  protoOf(UmAppDatabase_Repo).u7e = function () {
    return _get__DiscussionPostDao__bymsxs(this);
  };
  protoOf(UmAppDatabase_Repo).v7e = function () {
    return _get__ContentEntryVersionDao__egjvvj(this);
  };
  protoOf(UmAppDatabase_Repo).w7e = function () {
    throw IllegalStateException_init_$Create$('TransferJobDao is not annotated with @Repository');
  };
  protoOf(UmAppDatabase_Repo).x7e = function () {
    throw IllegalStateException_init_$Create$('TransferJobItemDao is not annotated with @Repository');
  };
  protoOf(UmAppDatabase_Repo).y7e = function () {
    return _get__OfflineItemDao__4yjkly(this);
  };
  protoOf(UmAppDatabase_Repo).z7e = function () {
    return _get__DeletedItemDao__4i3s1g(this);
  };
  protoOf(UmAppDatabase_Repo).a7f = function () {
    return _get__EnrolmentRequestDao__wkcqzn(this);
  };
  protoOf(UmAppDatabase_Repo).b7f = function () {
    return _get__CoursePermissionDao__hib1jy(this);
  };
  protoOf(UmAppDatabase_Repo).c7f = function () {
    return _get__SystemPermissionDao__c05myy(this);
  };
  protoOf(UmAppDatabase_Repo).d7f = function () {
    return _get__CourseBlockPictureDao__hx4ubg(this);
  };
  protoOf(UmAppDatabase_Repo).e7f = function () {
    return _get__ContentEntryPicture2Dao__ah6hid(this);
  };
  protoOf(UmAppDatabase_Repo).f7f = function () {
    return _get__StudentResultDao__sr8vqw(this);
  };
  protoOf(UmAppDatabase_Repo).g7f = function () {
    return _get__VerbLangMapEntryDao__oda6e3(this);
  };
  protoOf(UmAppDatabase_Repo).h7f = function () {
    return _get__GroupMemberActorJoinDao__jlmme6(this);
  };
  protoOf(UmAppDatabase_Repo).i7f = function () {
    return _get__ActivityLangMapEntryDao__htpiob(this);
  };
  protoOf(UmAppDatabase_Repo).j7f = function () {
    return _get__ActivityInteractionDao__x272ir(this);
  };
  protoOf(UmAppDatabase_Repo).k7f = function () {
    return _get__ActivityExtensionDao__cpvg5s(this);
  };
  protoOf(UmAppDatabase_Repo).l7f = function () {
    return _get__StatementContextActivityJoinDao__t5jinj(this);
  };
  protoOf(UmAppDatabase_Repo).m7f = function () {
    return _get__XapiSessionEntityDao__tpjn2v(this);
  };
  protoOf(UmAppDatabase_Repo).n7f = function () {
    return _get__StatementEntityJsonDao__4ym94q(this);
  };
  protoOf(UmAppDatabase_Repo).o7f = function () {
    return _get__StateEntityDao__vtinv8(this);
  };
  protoOf(UmAppDatabase_Repo).p7f = function () {
    return _get__StateDeleteCommandDao__s2ay7b(this);
  };
  function _PersonDao$factory_1() {
    return getPropertyCallableRef('_PersonDao', 1, KProperty1, function (receiver) {
      return _get__PersonDao__uzj2el(receiver);
    }, null);
  }
  function _ClazzDao$factory_1() {
    return getPropertyCallableRef('_ClazzDao', 1, KProperty1, function (receiver) {
      return _get__ClazzDao__9uv608(receiver);
    }, null);
  }
  function _CourseBlockDao$factory_1() {
    return getPropertyCallableRef('_CourseBlockDao', 1, KProperty1, function (receiver) {
      return _get__CourseBlockDao__4pp4mq(receiver);
    }, null);
  }
  function _CourseTerminologyDao$factory_1() {
    return getPropertyCallableRef('_CourseTerminologyDao', 1, KProperty1, function (receiver) {
      return _get__CourseTerminologyDao__a6bld4(receiver);
    }, null);
  }
  function _CourseGroupSetDao$factory_1() {
    return getPropertyCallableRef('_CourseGroupSetDao', 1, KProperty1, function (receiver) {
      return _get__CourseGroupSetDao__hfsuk6(receiver);
    }, null);
  }
  function _CourseGroupMemberDao$factory_1() {
    return getPropertyCallableRef('_CourseGroupMemberDao', 1, KProperty1, function (receiver) {
      return _get__CourseGroupMemberDao__l3hcwy(receiver);
    }, null);
  }
  function _ClazzEnrolmentDao$factory_1() {
    return getPropertyCallableRef('_ClazzEnrolmentDao', 1, KProperty1, function (receiver) {
      return _get__ClazzEnrolmentDao__q8nlvo(receiver);
    }, null);
  }
  function _LeavingReasonDao$factory_1() {
    return getPropertyCallableRef('_LeavingReasonDao', 1, KProperty1, function (receiver) {
      return _get__LeavingReasonDao__m21j14(receiver);
    }, null);
  }
  function _ContentEntryDao$factory_1() {
    return getPropertyCallableRef('_ContentEntryDao', 1, KProperty1, function (receiver) {
      return _get__ContentEntryDao__asrab3(receiver);
    }, null);
  }
  function _ContentEntryContentCategoryJoinDao$factory_1() {
    return getPropertyCallableRef('_ContentEntryContentCategoryJoinDao', 1, KProperty1, function (receiver) {
      return _get__ContentEntryContentCategoryJoinDao__c8c5lk(receiver);
    }, null);
  }
  function _ContentEntryParentChildJoinDao$factory_1() {
    return getPropertyCallableRef('_ContentEntryParentChildJoinDao', 1, KProperty1, function (receiver) {
      return _get__ContentEntryParentChildJoinDao__moxer(receiver);
    }, null);
  }
  function _ContentEntryRelatedEntryJoinDao$factory_1() {
    return getPropertyCallableRef('_ContentEntryRelatedEntryJoinDao', 1, KProperty1, function (receiver) {
      return _get__ContentEntryRelatedEntryJoinDao__wdqzcu(receiver);
    }, null);
  }
  function _ContentCategorySchemaDao$factory_1() {
    return getPropertyCallableRef('_ContentCategorySchemaDao', 1, KProperty1, function (receiver) {
      return _get__ContentCategorySchemaDao__95pyeg(receiver);
    }, null);
  }
  function _ContentCategoryDao$factory_1() {
    return getPropertyCallableRef('_ContentCategoryDao', 1, KProperty1, function (receiver) {
      return _get__ContentCategoryDao__tsqjyv(receiver);
    }, null);
  }
  function _LanguageDao$factory_1() {
    return getPropertyCallableRef('_LanguageDao', 1, KProperty1, function (receiver) {
      return _get__LanguageDao__1z90w(receiver);
    }, null);
  }
  function _LanguageVariantDao$factory_1() {
    return getPropertyCallableRef('_LanguageVariantDao', 1, KProperty1, function (receiver) {
      return _get__LanguageVariantDao__rxf1fx(receiver);
    }, null);
  }
  function _PersonGroupDao$factory_1() {
    return getPropertyCallableRef('_PersonGroupDao', 1, KProperty1, function (receiver) {
      return _get__PersonGroupDao__hew8d2(receiver);
    }, null);
  }
  function _PersonGroupMemberDao$factory_1() {
    return getPropertyCallableRef('_PersonGroupMemberDao', 1, KProperty1, function (receiver) {
      return _get__PersonGroupMemberDao__mvnpb8(receiver);
    }, null);
  }
  function _PersonPictureDao$factory_1() {
    return getPropertyCallableRef('_PersonPictureDao', 1, KProperty1, function (receiver) {
      return _get__PersonPictureDao__2gbg89(receiver);
    }, null);
  }
  function _VerbDao$factory_1() {
    return getPropertyCallableRef('_VerbDao', 1, KProperty1, function (receiver) {
      return _get__VerbDao__618h8p(receiver);
    }, null);
  }
  function _ActivityEntityDao$factory_1() {
    return getPropertyCallableRef('_ActivityEntityDao', 1, KProperty1, function (receiver) {
      return _get__ActivityEntityDao__cj0phy(receiver);
    }, null);
  }
  function _ReportDao$factory_1() {
    return getPropertyCallableRef('_ReportDao', 1, KProperty1, function (receiver) {
      return _get__ReportDao__jbr9h0(receiver);
    }, null);
  }
  function _StatementDao$factory_1() {
    return getPropertyCallableRef('_StatementDao', 1, KProperty1, function (receiver) {
      return _get__StatementDao__fnw41b(receiver);
    }, null);
  }
  function _ActorDao$factory_1() {
    return getPropertyCallableRef('_ActorDao', 1, KProperty1, function (receiver) {
      return _get__ActorDao__6yq8sr(receiver);
    }, null);
  }
  function _ClazzLogAttendanceRecordDao$factory_1() {
    return getPropertyCallableRef('_ClazzLogAttendanceRecordDao', 1, KProperty1, function (receiver) {
      return _get__ClazzLogAttendanceRecordDao__r3qxzy(receiver);
    }, null);
  }
  function _ClazzLogDao$factory_1() {
    return getPropertyCallableRef('_ClazzLogDao', 1, KProperty1, function (receiver) {
      return _get__ClazzLogDao__xeo15w(receiver);
    }, null);
  }
  function _ScheduleDao$factory_1() {
    return getPropertyCallableRef('_ScheduleDao', 1, KProperty1, function (receiver) {
      return _get__ScheduleDao__h5s1ch(receiver);
    }, null);
  }
  function _HolidayCalendarDao$factory_1() {
    return getPropertyCallableRef('_HolidayCalendarDao', 1, KProperty1, function (receiver) {
      return _get__HolidayCalendarDao__gbx0p6(receiver);
    }, null);
  }
  function _HolidayDao$factory_1() {
    return getPropertyCallableRef('_HolidayDao', 1, KProperty1, function (receiver) {
      return _get__HolidayDao__x92kh4(receiver);
    }, null);
  }
  function _ClazzAssignmentDao$factory_1() {
    return getPropertyCallableRef('_ClazzAssignmentDao', 1, KProperty1, function (receiver) {
      return _get__ClazzAssignmentDao__kc42th(receiver);
    }, null);
  }
  function _CourseAssignmentSubmissionDao$factory_1() {
    return getPropertyCallableRef('_CourseAssignmentSubmissionDao', 1, KProperty1, function (receiver) {
      return _get__CourseAssignmentSubmissionDao__ir2b4c(receiver);
    }, null);
  }
  function _CourseAssignmentSubmissionFileDao$factory_1() {
    return getPropertyCallableRef('_CourseAssignmentSubmissionFileDao', 1, KProperty1, function (receiver) {
      return _get__CourseAssignmentSubmissionFileDao__63r33c(receiver);
    }, null);
  }
  function _CourseAssignmentMarkDao$factory_1() {
    return getPropertyCallableRef('_CourseAssignmentMarkDao', 1, KProperty1, function (receiver) {
      return _get__CourseAssignmentMarkDao__yi6swd(receiver);
    }, null);
  }
  function _CommentsDao$factory_1() {
    return getPropertyCallableRef('_CommentsDao', 1, KProperty1, function (receiver) {
      return _get__CommentsDao__mxkt84(receiver);
    }, null);
  }
  function _SiteDao$factory_1() {
    return getPropertyCallableRef('_SiteDao', 1, KProperty1, function (receiver) {
      return _get__SiteDao__wss4yp(receiver);
    }, null);
  }
  function _SiteTermsDao$factory_1() {
    return getPropertyCallableRef('_SiteTermsDao', 1, KProperty1, function (receiver) {
      return _get__SiteTermsDao__f7rqww(receiver);
    }, null);
  }
  function _PersonParentJoinDao$factory_1() {
    return getPropertyCallableRef('_PersonParentJoinDao', 1, KProperty1, function (receiver) {
      return _get__PersonParentJoinDao__o0iclb(receiver);
    }, null);
  }
  function _ScopedGrantDao$factory_1() {
    return getPropertyCallableRef('_ScopedGrantDao', 1, KProperty1, function (receiver) {
      return _get__ScopedGrantDao__9w613o(receiver);
    }, null);
  }
  function _ErrorReportDao$factory_1() {
    return getPropertyCallableRef('_ErrorReportDao', 1, KProperty1, function (receiver) {
      return _get__ErrorReportDao__d8e0x0(receiver);
    }, null);
  }
  function _PersonAuth2Dao$factory_1() {
    return getPropertyCallableRef('_PersonAuth2Dao', 1, KProperty1, function (receiver) {
      return _get__PersonAuth2Dao__uki6ut(receiver);
    }, null);
  }
  function _UserSessionDao$factory_1() {
    return getPropertyCallableRef('_UserSessionDao', 1, KProperty1, function (receiver) {
      return _get__UserSessionDao__wcreq3(receiver);
    }, null);
  }
  function _CoursePictureDao$factory_1() {
    return getPropertyCallableRef('_CoursePictureDao', 1, KProperty1, function (receiver) {
      return _get__CoursePictureDao__qr47kz(receiver);
    }, null);
  }
  function _ContentEntryPictureDao$factory_1() {
    return getPropertyCallableRef('_ContentEntryPictureDao', 1, KProperty1, function (receiver) {
      return _get__ContentEntryPictureDao__hzeabf(receiver);
    }, null);
  }
  function _MessageDao$factory_1() {
    return getPropertyCallableRef('_MessageDao', 1, KProperty1, function (receiver) {
      return _get__MessageDao__u7e9l3(receiver);
    }, null);
  }
  function _PeerReviewerAllocationDao$factory_1() {
    return getPropertyCallableRef('_PeerReviewerAllocationDao', 1, KProperty1, function (receiver) {
      return _get__PeerReviewerAllocationDao__m08hnj(receiver);
    }, null);
  }
  function _DiscussionPostDao$factory_1() {
    return getPropertyCallableRef('_DiscussionPostDao', 1, KProperty1, function (receiver) {
      return _get__DiscussionPostDao__bymsxs(receiver);
    }, null);
  }
  function _ContentEntryVersionDao$factory_1() {
    return getPropertyCallableRef('_ContentEntryVersionDao', 1, KProperty1, function (receiver) {
      return _get__ContentEntryVersionDao__egjvvj(receiver);
    }, null);
  }
  function _OfflineItemDao$factory_1() {
    return getPropertyCallableRef('_OfflineItemDao', 1, KProperty1, function (receiver) {
      return _get__OfflineItemDao__4yjkly(receiver);
    }, null);
  }
  function _DeletedItemDao$factory_0() {
    return getPropertyCallableRef('_DeletedItemDao', 1, KProperty1, function (receiver) {
      return _get__DeletedItemDao__4i3s1g(receiver);
    }, null);
  }
  function _EnrolmentRequestDao$factory_1() {
    return getPropertyCallableRef('_EnrolmentRequestDao', 1, KProperty1, function (receiver) {
      return _get__EnrolmentRequestDao__wkcqzn(receiver);
    }, null);
  }
  function _CoursePermissionDao$factory_1() {
    return getPropertyCallableRef('_CoursePermissionDao', 1, KProperty1, function (receiver) {
      return _get__CoursePermissionDao__hib1jy(receiver);
    }, null);
  }
  function _SystemPermissionDao$factory_1() {
    return getPropertyCallableRef('_SystemPermissionDao', 1, KProperty1, function (receiver) {
      return _get__SystemPermissionDao__c05myy(receiver);
    }, null);
  }
  function _CourseBlockPictureDao$factory_1() {
    return getPropertyCallableRef('_CourseBlockPictureDao', 1, KProperty1, function (receiver) {
      return _get__CourseBlockPictureDao__hx4ubg(receiver);
    }, null);
  }
  function _ContentEntryPicture2Dao$factory_1() {
    return getPropertyCallableRef('_ContentEntryPicture2Dao', 1, KProperty1, function (receiver) {
      return _get__ContentEntryPicture2Dao__ah6hid(receiver);
    }, null);
  }
  function _StudentResultDao$factory_1() {
    return getPropertyCallableRef('_StudentResultDao', 1, KProperty1, function (receiver) {
      return _get__StudentResultDao__sr8vqw(receiver);
    }, null);
  }
  function _VerbLangMapEntryDao$factory_1() {
    return getPropertyCallableRef('_VerbLangMapEntryDao', 1, KProperty1, function (receiver) {
      return _get__VerbLangMapEntryDao__oda6e3(receiver);
    }, null);
  }
  function _GroupMemberActorJoinDao$factory_1() {
    return getPropertyCallableRef('_GroupMemberActorJoinDao', 1, KProperty1, function (receiver) {
      return _get__GroupMemberActorJoinDao__jlmme6(receiver);
    }, null);
  }
  function _ActivityLangMapEntryDao$factory_1() {
    return getPropertyCallableRef('_ActivityLangMapEntryDao', 1, KProperty1, function (receiver) {
      return _get__ActivityLangMapEntryDao__htpiob(receiver);
    }, null);
  }
  function _ActivityInteractionDao$factory_1() {
    return getPropertyCallableRef('_ActivityInteractionDao', 1, KProperty1, function (receiver) {
      return _get__ActivityInteractionDao__x272ir(receiver);
    }, null);
  }
  function _ActivityExtensionDao$factory_1() {
    return getPropertyCallableRef('_ActivityExtensionDao', 1, KProperty1, function (receiver) {
      return _get__ActivityExtensionDao__cpvg5s(receiver);
    }, null);
  }
  function _StatementContextActivityJoinDao$factory_1() {
    return getPropertyCallableRef('_StatementContextActivityJoinDao', 1, KProperty1, function (receiver) {
      return _get__StatementContextActivityJoinDao__t5jinj(receiver);
    }, null);
  }
  function _XapiSessionEntityDao$factory_1() {
    return getPropertyCallableRef('_XapiSessionEntityDao', 1, KProperty1, function (receiver) {
      return _get__XapiSessionEntityDao__tpjn2v(receiver);
    }, null);
  }
  function _StatementEntityJsonDao$factory_1() {
    return getPropertyCallableRef('_StatementEntityJsonDao', 1, KProperty1, function (receiver) {
      return _get__StatementEntityJsonDao__4ym94q(receiver);
    }, null);
  }
  function _StateEntityDao$factory_1() {
    return getPropertyCallableRef('_StateEntityDao', 1, KProperty1, function (receiver) {
      return _get__StateEntityDao__vtinv8(receiver);
    }, null);
  }
  function _StateDeleteCommandDao$factory_1() {
    return getPropertyCallableRef('_StateDeleteCommandDao', 1, KProperty1, function (receiver) {
      return _get__StateDeleteCommandDao__s2ay7b(receiver);
    }, null);
  }
  function CacheLockJoinDao() {
  }
  function CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.a7r_1);
  }
  protoOf(CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO CacheLockJoin (cljId, cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType, cljOiUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1).e7r = function (stmt, entity) {
    if (entity.f7r_1 === 0) {
      stmt.n5h(1, null);
    } else {
      stmt.h5h(1, entity.f7r_1);
    }
    stmt.h5h(2, entity.g7r_1);
    stmt.i5h(3, entity.h7r_1);
    stmt.l5h(4, entity.i7r_1);
    stmt.i5h(5, entity.j7r_1);
    stmt.h5h(6, entity.k7r_1);
    stmt.h5h(7, entity.l7r_1);
    stmt.i5h(8, entity.m7r_1);
  };
  protoOf(CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1).c5f = function (stmt, entity) {
    return this.e7r(stmt, entity instanceof CacheLockJoin ? entity : THROW_CCE());
  };
  function CacheLockJoinDao_JdbcImpl(_db) {
    CacheLockJoinDao.call(this);
    this.a7r_1 = _db;
    var tmp = this;
    tmp.b7r_1 = new CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1(this);
  }
  function ClazzAssignmentDao() {
  }
  function $upsertListAsyncCOROUTINE$1(_this__u8e3s4, entities, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.f7s_1 = _this__u8e3s4;
    this.g7s_1 = entities;
  }
  protoOf($upsertListAsyncCOROUTINE$1).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.h7s_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.f7s_1.o7s_1));
            var tmp_0 = this;
            tmp_0.i7s_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.j7s_1 = this.g7s_1.w();
            var tmp_2 = this;
            tmp_2.k7s_1 = this.j7s_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.k7s_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.l7s_1 = this.k7s_1.e();
            var tmp_3 = this;
            tmp_3.m7s_1 = this.l7s_1;
            if (this.m7s_1.q7s_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.h7s_1.b62(520, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.n7s_1 = suspendResult;
            this.m7s_1.q7s_1 = this.n7s_1;
            var this_0 = this.i7s_1;
            var element = this.n7s_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.m7s_1.n7t_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.f7s_1.p7s_1.u7r(this.g7s_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            return Unit_instance;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$2(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.w7t_1 = _this__u8e3s4;
    this.x7t_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$2).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.y7t_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.w7t_1.o7s_1));
            if (this.x7t_1.q7s_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.y7t_1.b62(520, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.z7t_1 = suspendResult;
            this.x7t_1.q7s_1 = this.z7t_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.x7t_1.n7t_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.w7t_1.p7s_1.insertAsync(this.x7t_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.x7t_1.q7s_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ClazzAssignmentDao_DoorWrapper(_db, _dao) {
    ClazzAssignmentDao.call(this);
    this.o7s_1 = _db;
    this.p7s_1 = _dao;
  }
  protoOf(ClazzAssignmentDao_DoorWrapper).n7r = function (assignmentUid, clazzUid, accountPersonUid, group) {
    return this.p7s_1.n7r(assignmentUid, clazzUid, accountPersonUid, group);
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).o7r = function (assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption) {
    return this.p7s_1.o7r(assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption);
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).p7r = function (clazzUid, groupSetUid, time, $completion) {
    return this.p7s_1.p7r(clazzUid, groupSetUid, time, $completion);
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).q7r = function (clazzUid, groupSetUid, date, groupStr, $completion) {
    return this.p7s_1.q7r(clazzUid, groupSetUid, date, groupStr, $completion);
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).r7r = function (assignmentUid, clazzUid, accountPersonUid, $completion) {
    return this.p7s_1.r7r(assignmentUid, clazzUid, accountPersonUid, $completion);
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).s7r = function (uid, clazzUid) {
    return this.p7s_1.s7r(uid, clazzUid);
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).t7r = function (uid, $completion) {
    return this.p7s_1.t7r(uid, $completion);
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).u7r = function (entities, $completion) {
    var tmp = new $upsertListAsyncCOROUTINE$1(this, entities, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).v7r = function (uidList, active, changeTime, $completion) {
    return this.p7s_1.v7r(uidList, active, changeTime, $completion);
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).w7r = function (assignmentUid, clazzUid, accountPersonUid) {
    return this.p7s_1.w7r(assignmentUid, clazzUid, accountPersonUid);
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).a7u = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$2(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.a7u(entity instanceof ClazzAssignment ? entity : THROW_CCE(), $completion);
  };
  function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda$lambda$lambda(_result));
  }
  function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_submittedStudents = $_result.k5m('submittedStudents');
      var _tmp_totalStudents = $_result.k5m('totalStudents');
      var _tmp_markedStudents = $_result.k5m('markedStudents');
      var _tmp_activeUserHasViewLearnerRecordsPermission = $_result.w65('activeUserHasViewLearnerRecordsPermission');
      var _tmp_isGroupAssignment = $_result.w65('isGroupAssignment');
      // Inline function 'kotlin.apply' call
      var this_0 = new AssignmentProgressSummary();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.getProgressSummaryForAssignment.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.b7u_1 = _tmp_submittedStudents;
      this_0.c7u_1 = _tmp_totalStudents;
      this_0.d7u_1 = _tmp_markedStudents;
      this_0.e7u_1 = _tmp_activeUserHasViewLearnerRecordsPermission;
      this_0.f7u_1 = _tmp_isGroupAssignment;
      return this_0;
    };
  }
  function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation) {
    this.o7u_1 = $clazzUid;
    this.p7u_1 = $accountPersonUid;
    this.q7u_1 = $assignmentUid;
    this.r7u_1 = $group;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda).t7u = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda).he = function (p1, $completion) {
    return this.t7u((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.s7u_1.i5h(1, this.o7u_1);
            this.s7u_1.i5h(2, this.p7u_1);
            this.s7u_1.i5h(3, this.p7u_1);
            this.s7u_1.i5h(4, this.o7u_1);
            this.s7u_1.i5h(5, this.p7u_1);
            this.s7u_1.i5h(6, this.p7u_1);
            this.s7u_1.i5h(7, this.q7u_1);
            this.s7u_1.i5h(8, this.q7u_1);
            this.s7u_1.i5h(9, this.o7u_1);
            this.s7u_1.i5h(10, this.q7u_1);
            this.s7u_1.i5h(11, this.q7u_1);
            this.s7u_1.i5h(12, this.p7u_1);
            this.s7u_1.l5h(13, this.r7u_1);
            this.s7u_1.i5h(14, this.q7u_1);
            this.s7u_1.i5h(15, this.q7u_1);
            this.s7u_1.i5h(16, this.q7u_1);
            this.s7u_1.i5h(17, this.q7u_1);
            this.s7u_1.i5h(18, this.q7u_1);
            this.s7u_1.i5h(19, this.p7u_1);
            this.s7u_1.i5h(20, this.q7u_1);
            this.s7u_1.i5h(21, this.q7u_1);
            this.s7u_1.i5h(22, this.q7u_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.s7u_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda(this.o7u_1, this.p7u_1, this.q7u_1, this.r7u_1, completion);
    i.s7u_1 = _stmt;
    return i;
  };
  function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda_0($clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation) {
    var i = new ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.t7u(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda$lambda$lambda(_result));
  }
  function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_submitterUid = $_result.l5m('submitterUid');
      var _tmp_name = $_result.rz('name');
      var _tmp_pictureUri = $_result.rz('pictureUri');
      var _tmp_latestPrivateComment = $_result.rz('latestPrivateComment');
      var _tmp_fileSubmissionStatus = $_result.k5m('fileSubmissionStatus');
      // Inline function 'kotlin.apply' call
      var this_0 = new AssignmentSubmitterSummary();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.u7u_1 = _tmp_submitterUid;
      this_0.v7u_1 = _tmp_name;
      this_0.w7u_1 = _tmp_pictureUri;
      this_0.x7u_1 = _tmp_latestPrivateComment;
      this_0.y7u_1 = _tmp_fileSubmissionStatus;
      return this_0;
    };
  }
  function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda$lambda$lambda(_result));
  }
  function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, $_limit, $_offset, resultContinuation) {
    this.h7v_1 = $clazzUid;
    this.i7v_1 = $accountPersonUid;
    this.j7v_1 = $assignmentUid;
    this.k7v_1 = $group;
    this.l7v_1 = $searchText;
    this.m7v_1 = $sortOption;
    this.n7v_1 = $_limit;
    this.o7v_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda).q7v = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda).he = function (p1, $completion) {
    return this.q7v((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.p7v_1.i5h(1, this.h7v_1);
            this.p7v_1.i5h(2, this.i7v_1);
            this.p7v_1.i5h(3, this.i7v_1);
            this.p7v_1.i5h(4, this.h7v_1);
            this.p7v_1.i5h(5, this.i7v_1);
            this.p7v_1.i5h(6, this.i7v_1);
            this.p7v_1.i5h(7, this.j7v_1);
            this.p7v_1.i5h(8, this.j7v_1);
            this.p7v_1.i5h(9, this.h7v_1);
            this.p7v_1.i5h(10, this.j7v_1);
            this.p7v_1.i5h(11, this.j7v_1);
            this.p7v_1.i5h(12, this.i7v_1);
            this.p7v_1.l5h(13, this.k7v_1);
            this.p7v_1.i5h(14, this.j7v_1);
            this.p7v_1.i5h(15, this.j7v_1);
            this.p7v_1.i5h(16, this.j7v_1);
            this.p7v_1.i5h(17, this.j7v_1);
            this.p7v_1.i5h(18, this.j7v_1);
            this.p7v_1.i5h(19, this.i7v_1);
            this.p7v_1.i5h(20, this.j7v_1);
            this.p7v_1.i5h(21, this.j7v_1);
            this.p7v_1.i5h(22, this.j7v_1);
            this.p7v_1.l5h(23, this.l7v_1);
            this.p7v_1.l5h(24, this.l7v_1);
            this.p7v_1.h5h(25, this.m7v_1);
            this.p7v_1.h5h(26, this.m7v_1);
            this.p7v_1.h5h(27, this.n7v_1);
            this.p7v_1.h5h(28, this.o7v_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.p7v_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda(this.h7v_1, this.i7v_1, this.j7v_1, this.k7v_1, this.l7v_1, this.m7v_1, this.n7v_1, this.o7v_1, completion);
    i.p7v_1 = _stmt;
    return i;
  };
  function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda_0($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, $_limit, $_offset, resultContinuation) {
    var i = new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.q7v(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, resultContinuation) {
    this.z7v_1 = $clazzUid;
    this.a7w_1 = $accountPersonUid;
    this.b7w_1 = $assignmentUid;
    this.c7w_1 = $group;
    this.d7w_1 = $searchText;
    this.e7w_1 = $sortOption;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.f7w_1.i5h(1, this.z7v_1);
            this.f7w_1.i5h(2, this.a7w_1);
            this.f7w_1.i5h(3, this.a7w_1);
            this.f7w_1.i5h(4, this.z7v_1);
            this.f7w_1.i5h(5, this.a7w_1);
            this.f7w_1.i5h(6, this.a7w_1);
            this.f7w_1.i5h(7, this.b7w_1);
            this.f7w_1.i5h(8, this.b7w_1);
            this.f7w_1.i5h(9, this.z7v_1);
            this.f7w_1.i5h(10, this.b7w_1);
            this.f7w_1.i5h(11, this.b7w_1);
            this.f7w_1.i5h(12, this.a7w_1);
            this.f7w_1.l5h(13, this.c7w_1);
            this.f7w_1.i5h(14, this.b7w_1);
            this.f7w_1.i5h(15, this.b7w_1);
            this.f7w_1.i5h(16, this.b7w_1);
            this.f7w_1.i5h(17, this.b7w_1);
            this.f7w_1.i5h(18, this.b7w_1);
            this.f7w_1.i5h(19, this.a7w_1);
            this.f7w_1.i5h(20, this.b7w_1);
            this.f7w_1.i5h(21, this.b7w_1);
            this.f7w_1.i5h(22, this.b7w_1);
            this.f7w_1.l5h(23, this.d7w_1);
            this.f7w_1.l5h(24, this.d7w_1);
            this.f7w_1.h5h(25, this.e7w_1);
            this.f7w_1.h5h(26, this.e7w_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.f7w_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda(this.z7v_1, this.a7w_1, this.b7w_1, this.c7w_1, this.d7w_1, this.e7w_1, completion);
    i.f7w_1 = _stmt;
    return i;
  };
  function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda_0($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, resultContinuation) {
    var i = new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda$lambda(_result) {
    return mapRows(_result, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda$lambda$lambda(_result));
  }
  function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.m5e(1);
    };
  }
  function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda$lambda(_result) {
    return mapRows(_result, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda$lambda$lambda(_result));
  }
  function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_name = $_result.rz('name');
      var _tmp_submitterUid = $_result.l5m('submitterUid');
      // Inline function 'kotlin.apply' call
      var this_0 = new AssignmentSubmitterUidAndName();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.getSubmitterUidsAndNameByClazzOrGroupSetUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.g7w_1 = _tmp_name;
      this_0.h7w_1 = _tmp_submitterUid;
      return this_0;
    };
  }
  function ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda$lambda(_result) {
    var tmp = new Long(0, 0);
    return mapNextRow(_result, tmp, ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda$lambda$lambda(_result));
  }
  function ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.m5e(1);
    };
  }
  function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_caUid = $_result.l5m('caUid');
      var _tmp_caTitle = $_result.rz('caTitle');
      var _tmp_caDescription = $_result.rz('caDescription');
      var _tmp_caGroupUid = $_result.l5m('caGroupUid');
      var _tmp_caActive = $_result.w65('caActive');
      var _tmp_caClassCommentEnabled = $_result.w65('caClassCommentEnabled');
      var _tmp_caPrivateCommentsEnabled = $_result.w65('caPrivateCommentsEnabled');
      var _tmp_caCompletionCriteria = $_result.k5m('caCompletionCriteria');
      var _tmp_caRequireFileSubmission = $_result.w65('caRequireFileSubmission');
      var _tmp_caFileType = $_result.k5m('caFileType');
      var _tmp_caSizeLimit = $_result.k5m('caSizeLimit');
      var _tmp_caNumberOfFiles = $_result.k5m('caNumberOfFiles');
      var _tmp_caSubmissionPolicy = $_result.k5m('caSubmissionPolicy');
      var _tmp_caMarkingType = $_result.k5m('caMarkingType');
      var _tmp_caRequireTextSubmission = $_result.w65('caRequireTextSubmission');
      var _tmp_caTextLimitType = $_result.k5m('caTextLimitType');
      var _tmp_caTextLimit = $_result.k5m('caTextLimit');
      var _tmp_caXObjectUid = $_result.l5m('caXObjectUid');
      var _tmp_caClazzUid = $_result.l5m('caClazzUid');
      var _tmp_caPeerReviewerCount = $_result.k5m('caPeerReviewerCount');
      var _tmp_caLocalChangeSeqNum = $_result.l5m('caLocalChangeSeqNum');
      var _tmp_caMasterChangeSeqNum = $_result.l5m('caMasterChangeSeqNum');
      var _tmp_caLastChangedBy = $_result.k5m('caLastChangedBy');
      var _tmp_caLct = $_result.l5m('caLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new ClazzAssignment();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findByUidAndClazzUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.q7s_1 = _tmp_caUid;
      this_0.r7s_1 = _tmp_caTitle;
      this_0.s7s_1 = _tmp_caDescription;
      this_0.t7s_1 = _tmp_caGroupUid;
      this_0.u7s_1 = _tmp_caActive;
      this_0.v7s_1 = _tmp_caClassCommentEnabled;
      this_0.w7s_1 = _tmp_caPrivateCommentsEnabled;
      this_0.x7s_1 = _tmp_caCompletionCriteria;
      this_0.y7s_1 = _tmp_caRequireFileSubmission;
      this_0.z7s_1 = _tmp_caFileType;
      this_0.a7t_1 = _tmp_caSizeLimit;
      this_0.b7t_1 = _tmp_caNumberOfFiles;
      this_0.c7t_1 = _tmp_caSubmissionPolicy;
      this_0.d7t_1 = _tmp_caMarkingType;
      this_0.e7t_1 = _tmp_caRequireTextSubmission;
      this_0.f7t_1 = _tmp_caTextLimitType;
      this_0.g7t_1 = _tmp_caTextLimit;
      this_0.h7t_1 = _tmp_caXObjectUid;
      this_0.i7t_1 = _tmp_caClazzUid;
      this_0.j7t_1 = _tmp_caPeerReviewerCount;
      this_0.k7t_1 = _tmp_caLocalChangeSeqNum;
      this_0.l7t_1 = _tmp_caMasterChangeSeqNum;
      this_0.m7t_1 = _tmp_caLastChangedBy;
      this_0.n7t_1 = _tmp_caLct;
      return this_0;
    };
  }
  function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda($uid, $clazzUid, resultContinuation) {
    this.q7w_1 = $uid;
    this.r7w_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).t7w = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.t7w((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.s7w_1.i5h(1, this.q7w_1);
            this.s7w_1.i5h(2, this.r7w_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.s7w_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda(this.q7w_1, this.r7w_1, completion);
    i.s7w_1 = _stmt;
    return i;
  };
  function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda_0($uid, $clazzUid, resultContinuation) {
    var i = new ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda($uid, $clazzUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.t7w(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda$lambda(_result) {
    return mapNextRow(_result, null, ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda$lambda$lambda(_result));
  }
  function ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_ClazzAssignment_nullCount = 0;
      var _tmp_caUid = $_result.l5m('caUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_caTitle = $_result.rz('caTitle');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_caDescription = $_result.rz('caDescription');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_caGroupUid = $_result.l5m('caGroupUid');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_caActive = $_result.w65('caActive');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_caClassCommentEnabled = $_result.w65('caClassCommentEnabled');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_caPrivateCommentsEnabled = $_result.w65('caPrivateCommentsEnabled');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_caCompletionCriteria = $_result.k5m('caCompletionCriteria');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_caRequireFileSubmission = $_result.w65('caRequireFileSubmission');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_caFileType = $_result.k5m('caFileType');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_caSizeLimit = $_result.k5m('caSizeLimit');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_caNumberOfFiles = $_result.k5m('caNumberOfFiles');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_caSubmissionPolicy = $_result.k5m('caSubmissionPolicy');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_caMarkingType = $_result.k5m('caMarkingType');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_caRequireTextSubmission = $_result.w65('caRequireTextSubmission');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_caTextLimitType = $_result.k5m('caTextLimitType');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_caTextLimit = $_result.k5m('caTextLimit');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_caXObjectUid = $_result.l5m('caXObjectUid');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_caClazzUid = $_result.l5m('caClazzUid');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_caPeerReviewerCount = $_result.k5m('caPeerReviewerCount');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_caLocalChangeSeqNum = $_result.l5m('caLocalChangeSeqNum');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_caMasterChangeSeqNum = $_result.l5m('caMasterChangeSeqNum');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_caLastChangedBy = $_result.k5m('caLastChangedBy');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_caLct = $_result.l5m('caLct');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_ClazzAssignment_isAllNull = _tmp_ClazzAssignment_nullCount === 24;
      var _tmp_CourseBlock_nullCount = 0;
      var _tmp_cbUid = $_result.l5m('cbUid');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_cbType = $_result.k5m('cbType');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_cbIndentLevel = $_result.k5m('cbIndentLevel');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_cbModuleParentBlockUid = $_result.l5m('cbModuleParentBlockUid');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_cbTitle = $_result.rz('cbTitle');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_cbDescription = $_result.rz('cbDescription');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_cbCompletionCriteria = $_result.k5m('cbCompletionCriteria');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_cbHideUntilDate = $_result.l5m('cbHideUntilDate');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_cbDeadlineDate = $_result.l5m('cbDeadlineDate');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_cbLateSubmissionPenalty = $_result.k5m('cbLateSubmissionPenalty');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_cbGracePeriodDate = $_result.l5m('cbGracePeriodDate');
      var tmp_33;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints');
      var tmp_34;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints');
      var tmp_35;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_cbIndex = $_result.k5m('cbIndex');
      var tmp_36;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_cbClazzUid = $_result.l5m('cbClazzUid');
      var tmp_37;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_cbClazzSourcedId = $_result.rz('cbClazzSourcedId');
      var tmp_38;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_cbActive = $_result.w65('cbActive');
      var tmp_39;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_cbHidden = $_result.w65('cbHidden');
      var tmp_40;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_cbEntityUid = $_result.l5m('cbEntityUid');
      var tmp_41;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_cbLct = $_result.l5m('cbLct');
      var tmp_42;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_cbSourcedId = $_result.rz('cbSourcedId');
      var tmp_43;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_cbMetadata = $_result.rz('cbMetadata');
      var tmp_44;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_cbCreatedByAppId = $_result.rz('cbCreatedByAppId');
      var tmp_45;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_45 = Unit_instance;
      }
      var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23;
      // Inline function 'kotlin.apply' call
      var this_0 = new ClazzAssignmentAndBlock();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findByUidWithBlockAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_ClazzAssignment_isAllNull) {
        var tmp_46 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new ClazzAssignment();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findByUidWithBlockAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.q7s_1 = _tmp_caUid;
        this_1.r7s_1 = _tmp_caTitle;
        this_1.s7s_1 = _tmp_caDescription;
        this_1.t7s_1 = _tmp_caGroupUid;
        this_1.u7s_1 = _tmp_caActive;
        this_1.v7s_1 = _tmp_caClassCommentEnabled;
        this_1.w7s_1 = _tmp_caPrivateCommentsEnabled;
        this_1.x7s_1 = _tmp_caCompletionCriteria;
        this_1.y7s_1 = _tmp_caRequireFileSubmission;
        this_1.z7s_1 = _tmp_caFileType;
        this_1.a7t_1 = _tmp_caSizeLimit;
        this_1.b7t_1 = _tmp_caNumberOfFiles;
        this_1.c7t_1 = _tmp_caSubmissionPolicy;
        this_1.d7t_1 = _tmp_caMarkingType;
        this_1.e7t_1 = _tmp_caRequireTextSubmission;
        this_1.f7t_1 = _tmp_caTextLimitType;
        this_1.g7t_1 = _tmp_caTextLimit;
        this_1.h7t_1 = _tmp_caXObjectUid;
        this_1.i7t_1 = _tmp_caClazzUid;
        this_1.j7t_1 = _tmp_caPeerReviewerCount;
        this_1.k7t_1 = _tmp_caLocalChangeSeqNum;
        this_1.l7t_1 = _tmp_caMasterChangeSeqNum;
        this_1.m7t_1 = _tmp_caLastChangedBy;
        this_1.n7t_1 = _tmp_caLct;
        tmp_46.u7w_1 = this_1;
      }
      if (!_tmp_CourseBlock_isAllNull) {
        var tmp_47 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new CourseBlock();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findByUidWithBlockAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.w7w_1 = _tmp_cbUid;
        this_2.x7w_1 = _tmp_cbType;
        this_2.y7w_1 = _tmp_cbIndentLevel;
        this_2.z7w_1 = _tmp_cbModuleParentBlockUid;
        this_2.a7x_1 = _tmp_cbTitle;
        this_2.b7x_1 = _tmp_cbDescription;
        this_2.c7x_1 = _tmp_cbCompletionCriteria;
        this_2.d7x_1 = _tmp_cbHideUntilDate;
        this_2.e7x_1 = _tmp_cbDeadlineDate;
        this_2.f7x_1 = _tmp_cbLateSubmissionPenalty;
        this_2.g7x_1 = _tmp_cbGracePeriodDate;
        this_2.h7x_1 = _tmp_cbMaxPoints;
        this_2.i7x_1 = _tmp_cbMinPoints;
        this_2.j7x_1 = _tmp_cbIndex;
        this_2.k7x_1 = _tmp_cbClazzUid;
        this_2.l7x_1 = _tmp_cbClazzSourcedId;
        this_2.m7x_1 = _tmp_cbActive;
        this_2.n7x_1 = _tmp_cbHidden;
        this_2.o7x_1 = _tmp_cbEntityUid;
        this_2.p7x_1 = _tmp_cbLct;
        this_2.q7x_1 = _tmp_cbSourcedId;
        this_2.r7x_1 = _tmp_cbMetadata;
        this_2.s7x_1 = _tmp_cbCreatedByAppId;
        tmp_47.v7w_1 = this_2;
      }
      return this_0;
    };
  }
  function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_submitterUid = $_result.l5m('submitterUid');
      var _tmp_hasModeratePermission = $_result.w65('hasModeratePermission');
      var _tmp_ClazzAssignment_nullCount = 0;
      var _tmp_caUid = $_result.l5m('caUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_caTitle = $_result.rz('caTitle');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_caDescription = $_result.rz('caDescription');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_caGroupUid = $_result.l5m('caGroupUid');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_caActive = $_result.w65('caActive');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_caClassCommentEnabled = $_result.w65('caClassCommentEnabled');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_caPrivateCommentsEnabled = $_result.w65('caPrivateCommentsEnabled');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_caCompletionCriteria = $_result.k5m('caCompletionCriteria');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_caRequireFileSubmission = $_result.w65('caRequireFileSubmission');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_caFileType = $_result.k5m('caFileType');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_caSizeLimit = $_result.k5m('caSizeLimit');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_caNumberOfFiles = $_result.k5m('caNumberOfFiles');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_caSubmissionPolicy = $_result.k5m('caSubmissionPolicy');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_caMarkingType = $_result.k5m('caMarkingType');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_caRequireTextSubmission = $_result.w65('caRequireTextSubmission');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_caTextLimitType = $_result.k5m('caTextLimitType');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_caTextLimit = $_result.k5m('caTextLimit');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_caXObjectUid = $_result.l5m('caXObjectUid');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_caClazzUid = $_result.l5m('caClazzUid');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_caPeerReviewerCount = $_result.k5m('caPeerReviewerCount');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_caLocalChangeSeqNum = $_result.l5m('caLocalChangeSeqNum');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_caMasterChangeSeqNum = $_result.l5m('caMasterChangeSeqNum');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_caLastChangedBy = $_result.k5m('caLastChangedBy');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_caLct = $_result.l5m('caLct');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_ClazzAssignment_isAllNull = _tmp_ClazzAssignment_nullCount === 24;
      var _tmp_CourseBlock_nullCount = 0;
      var _tmp_cbUid = $_result.l5m('cbUid');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_cbType = $_result.k5m('cbType');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_cbIndentLevel = $_result.k5m('cbIndentLevel');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_cbModuleParentBlockUid = $_result.l5m('cbModuleParentBlockUid');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_cbTitle = $_result.rz('cbTitle');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_cbDescription = $_result.rz('cbDescription');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_cbCompletionCriteria = $_result.k5m('cbCompletionCriteria');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_cbHideUntilDate = $_result.l5m('cbHideUntilDate');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_cbDeadlineDate = $_result.l5m('cbDeadlineDate');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_cbLateSubmissionPenalty = $_result.k5m('cbLateSubmissionPenalty');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_cbGracePeriodDate = $_result.l5m('cbGracePeriodDate');
      var tmp_33;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints');
      var tmp_34;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints');
      var tmp_35;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_cbIndex = $_result.k5m('cbIndex');
      var tmp_36;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_cbClazzUid = $_result.l5m('cbClazzUid');
      var tmp_37;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_cbClazzSourcedId = $_result.rz('cbClazzSourcedId');
      var tmp_38;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_cbActive = $_result.w65('cbActive');
      var tmp_39;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_cbHidden = $_result.w65('cbHidden');
      var tmp_40;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_cbEntityUid = $_result.l5m('cbEntityUid');
      var tmp_41;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_cbLct = $_result.l5m('cbLct');
      var tmp_42;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_cbSourcedId = $_result.rz('cbSourcedId');
      var tmp_43;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_cbMetadata = $_result.rz('cbMetadata');
      var tmp_44;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_cbCreatedByAppId = $_result.rz('cbCreatedByAppId');
      var tmp_45;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_45 = Unit_instance;
      }
      var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23;
      var _tmp_CourseBlockPicture_nullCount = 0;
      var _tmp_cbpUid = $_result.l5m('cbpUid');
      var tmp_46;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_46 = Unit_instance;
      }
      var _tmp_cbpLct = $_result.l5m('cbpLct');
      var tmp_47;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_47 = Unit_instance;
      }
      var _tmp_cbpPictureUri = $_result.rz('cbpPictureUri');
      var tmp_48;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_48 = Unit_instance;
      }
      var _tmp_cbpThumbnailUri = $_result.rz('cbpThumbnailUri');
      var tmp_49;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_49 = Unit_instance;
      }
      var _tmp_CourseBlockPicture_isAllNull = _tmp_CourseBlockPicture_nullCount === 4;
      var _tmp_CourseGroupSet_nullCount = 0;
      var _tmp_cgsUid = $_result.l5m('cgsUid');
      var tmp_50;
      if ($_result.d67()) {
        _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0;
        tmp_50 = Unit_instance;
      }
      var _tmp_cgsName = $_result.rz('cgsName');
      var tmp_51;
      if ($_result.d67()) {
        _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0;
        tmp_51 = Unit_instance;
      }
      var _tmp_cgsTotalGroups = $_result.k5m('cgsTotalGroups');
      var tmp_52;
      if ($_result.d67()) {
        _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0;
        tmp_52 = Unit_instance;
      }
      var _tmp_cgsActive = $_result.w65('cgsActive');
      var tmp_53;
      if ($_result.d67()) {
        _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0;
        tmp_53 = Unit_instance;
      }
      var _tmp_cgsClazzUid = $_result.l5m('cgsClazzUid');
      var tmp_54;
      if ($_result.d67()) {
        _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0;
        tmp_54 = Unit_instance;
      }
      var _tmp_cgsLct = $_result.l5m('cgsLct');
      var tmp_55;
      if ($_result.d67()) {
        _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0;
        tmp_55 = Unit_instance;
      }
      var _tmp_CourseGroupSet_isAllNull = _tmp_CourseGroupSet_nullCount === 6;
      // Inline function 'kotlin.apply' call
      var this_0 = new ClazzAssignmentCourseBlockAndSubmitterUid();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findAssignmentCourseBlockAndSubmitterUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.x7x_1 = _tmp_submitterUid;
      this_0.y7x_1 = _tmp_hasModeratePermission;
      if (!_tmp_ClazzAssignment_isAllNull) {
        var tmp_56 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new ClazzAssignment();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findAssignmentCourseBlockAndSubmitterUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.q7s_1 = _tmp_caUid;
        this_1.r7s_1 = _tmp_caTitle;
        this_1.s7s_1 = _tmp_caDescription;
        this_1.t7s_1 = _tmp_caGroupUid;
        this_1.u7s_1 = _tmp_caActive;
        this_1.v7s_1 = _tmp_caClassCommentEnabled;
        this_1.w7s_1 = _tmp_caPrivateCommentsEnabled;
        this_1.x7s_1 = _tmp_caCompletionCriteria;
        this_1.y7s_1 = _tmp_caRequireFileSubmission;
        this_1.z7s_1 = _tmp_caFileType;
        this_1.a7t_1 = _tmp_caSizeLimit;
        this_1.b7t_1 = _tmp_caNumberOfFiles;
        this_1.c7t_1 = _tmp_caSubmissionPolicy;
        this_1.d7t_1 = _tmp_caMarkingType;
        this_1.e7t_1 = _tmp_caRequireTextSubmission;
        this_1.f7t_1 = _tmp_caTextLimitType;
        this_1.g7t_1 = _tmp_caTextLimit;
        this_1.h7t_1 = _tmp_caXObjectUid;
        this_1.i7t_1 = _tmp_caClazzUid;
        this_1.j7t_1 = _tmp_caPeerReviewerCount;
        this_1.k7t_1 = _tmp_caLocalChangeSeqNum;
        this_1.l7t_1 = _tmp_caMasterChangeSeqNum;
        this_1.m7t_1 = _tmp_caLastChangedBy;
        this_1.n7t_1 = _tmp_caLct;
        tmp_56.t7x_1 = this_1;
      }
      if (!_tmp_CourseBlock_isAllNull) {
        var tmp_57 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new CourseBlock();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findAssignmentCourseBlockAndSubmitterUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.w7w_1 = _tmp_cbUid;
        this_2.x7w_1 = _tmp_cbType;
        this_2.y7w_1 = _tmp_cbIndentLevel;
        this_2.z7w_1 = _tmp_cbModuleParentBlockUid;
        this_2.a7x_1 = _tmp_cbTitle;
        this_2.b7x_1 = _tmp_cbDescription;
        this_2.c7x_1 = _tmp_cbCompletionCriteria;
        this_2.d7x_1 = _tmp_cbHideUntilDate;
        this_2.e7x_1 = _tmp_cbDeadlineDate;
        this_2.f7x_1 = _tmp_cbLateSubmissionPenalty;
        this_2.g7x_1 = _tmp_cbGracePeriodDate;
        this_2.h7x_1 = _tmp_cbMaxPoints;
        this_2.i7x_1 = _tmp_cbMinPoints;
        this_2.j7x_1 = _tmp_cbIndex;
        this_2.k7x_1 = _tmp_cbClazzUid;
        this_2.l7x_1 = _tmp_cbClazzSourcedId;
        this_2.m7x_1 = _tmp_cbActive;
        this_2.n7x_1 = _tmp_cbHidden;
        this_2.o7x_1 = _tmp_cbEntityUid;
        this_2.p7x_1 = _tmp_cbLct;
        this_2.q7x_1 = _tmp_cbSourcedId;
        this_2.r7x_1 = _tmp_cbMetadata;
        this_2.s7x_1 = _tmp_cbCreatedByAppId;
        tmp_57.u7x_1 = this_2;
      }
      if (!_tmp_CourseBlockPicture_isAllNull) {
        var tmp_58 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new CourseBlockPicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findAssignmentCourseBlockAndSubmitterUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.z7x_1 = _tmp_cbpUid;
        this_3.a7y_1 = _tmp_cbpLct;
        this_3.b7y_1 = _tmp_cbpPictureUri;
        this_3.c7y_1 = _tmp_cbpThumbnailUri;
        tmp_58.v7x_1 = this_3;
      }
      if (!_tmp_CourseGroupSet_isAllNull) {
        var tmp_59 = this_0;
        // Inline function 'kotlin.apply' call
        var this_4 = new CourseGroupSet();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findAssignmentCourseBlockAndSubmitterUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_4.d7y_1 = _tmp_cgsUid;
        this_4.e7y_1 = _tmp_cgsName;
        this_4.f7y_1 = _tmp_cgsTotalGroups;
        this_4.g7y_1 = _tmp_cgsActive;
        this_4.h7y_1 = _tmp_cgsClazzUid;
        this_4.i7y_1 = _tmp_cgsLct;
        tmp_59.w7x_1 = this_4;
      }
      return this_0;
    };
  }
  function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda($accountPersonUid, $clazzUid, $assignmentUid, resultContinuation) {
    this.r7y_1 = $accountPersonUid;
    this.s7y_1 = $clazzUid;
    this.t7y_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda).v7y = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.v7y((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.u7y_1.i5h(1, this.r7y_1);
            this.u7y_1.i5h(2, this.s7y_1);
            this.u7y_1.i5h(3, this.t7y_1);
            this.u7y_1.i5h(4, this.r7y_1);
            this.u7y_1.i5h(5, this.t7y_1);
            this.u7y_1.i5h(6, this.t7y_1);
            this.u7y_1.i5h(7, this.r7y_1);
            this.u7y_1.i5h(8, this.t7y_1);
            this.u7y_1.i5h(9, this.r7y_1);
            this.u7y_1.i5h(10, this.t7y_1);
            this.u7y_1.i5h(11, this.t7y_1);
            this.u7y_1.i5h(12, this.r7y_1);
            this.u7y_1.i5h(13, this.s7y_1);
            this.u7y_1.i5h(14, this.r7y_1);
            this.u7y_1.i5h(15, this.r7y_1);
            this.u7y_1.i5h(16, this.s7y_1);
            this.u7y_1.i5h(17, this.r7y_1);
            this.u7y_1.i5h(18, this.r7y_1);
            this.u7y_1.i5h(19, this.t7y_1);
            this.u7y_1.i5h(20, this.s7y_1);
            this.u7y_1.i5h(21, this.s7y_1);
            this.u7y_1.i5h(22, this.r7y_1);
            this.u7y_1.i5h(23, this.r7y_1);
            this.u7y_1.i5h(24, this.s7y_1);
            this.u7y_1.i5h(25, this.r7y_1);
            this.u7y_1.i5h(26, this.r7y_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.u7y_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda(this.r7y_1, this.s7y_1, this.t7y_1, completion);
    i.u7y_1 = _stmt;
    return i;
  };
  function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda_0($accountPersonUid, $clazzUid, $assignmentUid, resultContinuation) {
    var i = new ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda($accountPersonUid, $clazzUid, $assignmentUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.v7y(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.w7y_1);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO ClazzAssignment (caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1).b7z = function (stmt, entity) {
    if (entity.q7s_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.q7s_1);
    }
    stmt.l5h(2, entity.r7s_1);
    stmt.l5h(3, entity.s7s_1);
    stmt.i5h(4, entity.t7s_1);
    stmt.v5g(5, entity.u7s_1);
    stmt.v5g(6, entity.v7s_1);
    stmt.v5g(7, entity.w7s_1);
    stmt.h5h(8, entity.x7s_1);
    stmt.v5g(9, entity.y7s_1);
    stmt.h5h(10, entity.z7s_1);
    stmt.h5h(11, entity.a7t_1);
    stmt.h5h(12, entity.b7t_1);
    stmt.h5h(13, entity.c7t_1);
    stmt.h5h(14, entity.d7t_1);
    stmt.v5g(15, entity.e7t_1);
    stmt.h5h(16, entity.f7t_1);
    stmt.h5h(17, entity.g7t_1);
    stmt.i5h(18, entity.h7t_1);
    stmt.i5h(19, entity.i7t_1);
    stmt.h5h(20, entity.j7t_1);
    stmt.i5h(21, entity.k7t_1);
    stmt.i5h(22, entity.l7t_1);
    stmt.h5h(23, entity.m7t_1);
    stmt.i5h(24, entity.n7t_1);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1).c5f = function (stmt, entity) {
    return this.b7z(stmt, entity instanceof ClazzAssignment ? entity : THROW_CCE());
  };
  function ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.w7y_1);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO ClazzAssignment (caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1).b7z = function (stmt, entity) {
    if (entity.q7s_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.q7s_1);
    }
    stmt.l5h(2, entity.r7s_1);
    stmt.l5h(3, entity.s7s_1);
    stmt.i5h(4, entity.t7s_1);
    stmt.v5g(5, entity.u7s_1);
    stmt.v5g(6, entity.v7s_1);
    stmt.v5g(7, entity.w7s_1);
    stmt.h5h(8, entity.x7s_1);
    stmt.v5g(9, entity.y7s_1);
    stmt.h5h(10, entity.z7s_1);
    stmt.h5h(11, entity.a7t_1);
    stmt.h5h(12, entity.b7t_1);
    stmt.h5h(13, entity.c7t_1);
    stmt.h5h(14, entity.d7t_1);
    stmt.v5g(15, entity.e7t_1);
    stmt.h5h(16, entity.f7t_1);
    stmt.h5h(17, entity.g7t_1);
    stmt.i5h(18, entity.h7t_1);
    stmt.i5h(19, entity.i7t_1);
    stmt.h5h(20, entity.j7t_1);
    stmt.i5h(21, entity.k7t_1);
    stmt.i5h(22, entity.l7t_1);
    stmt.h5h(23, entity.m7t_1);
    stmt.i5h(24, entity.n7t_1);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1).c5f = function (stmt, entity) {
    return this.b7z(stmt, entity instanceof ClazzAssignment ? entity : THROW_CCE());
  };
  function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda(this$0, $clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation) {
    this.m7z_1 = this$0;
    this.n7z_1 = $clazzUid;
    this.o7z_1 = $accountPersonUid;
    this.p7z_1 = $assignmentUid;
    this.q7z_1 = $group;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda).r7z = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda).z77 = function ($completion) {
    return this.r7z($completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig("\n        WITH \n            HasLearningRecordSelectPermission (hasPermission) AS\n            (SELECT (\n                  (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         128\n                  \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     128\n                  \n        ) > 0)\n               )\n    ))\n        ,\n        \n        AssignmentClazzUid(clazzUid) AS\n        (SELECT ClazzAssignment.caClazzUid\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))  \n    ,\n        \n        SubmitterList(submitterId, name) AS \n        -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n        (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n                Person.firstNames || ' ' || Person.lastName AS name\n           FROM ClazzEnrolment\n                JOIN Person \n                     ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n          WHERE (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n    ) = 0\n            AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n            AND ClazzEnrolment.clazzEnrolmentRole = 1000\n            -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n            AND (\n                (SELECT hasPermission \n                   FROM HasLearningRecordSelectPermission)\n                OR  \n                 -- check if the active person eg accountpersonuid is assigned to mark this peer\n                 (\n        ((SELECT ClazzAssignment.caMarkingType\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n    \n                  AND\n                  EXISTS(SELECT PeerReviewerAllocation.praUid\n                           FROM PeerReviewerAllocation\n                          WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n                            AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n                            AND PeerReviewerAllocation.praMarkerSubmitterUid = CAST(? AS BIGINT)))\n                 )\n         UNION\n         -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n         SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n                ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n           FROM CourseGroupMember\n          WHERE (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n    ) != 0\n            AND CourseGroupMember.cgmSetUid = (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n    )\n            -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n            AND (\n                (SELECT hasPermission \n                   FROM HasLearningRecordSelectPermission)\n                OR \n                --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n                (\n        ((SELECT ClazzAssignment.caMarkingType\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n    \n                 AND\n                 EXISTS(SELECT PeerReviewerAllocation.praUid\n                          FROM PeerReviewerAllocation\n                         WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n                           AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n                           AND PeerReviewerAllocation.praMarkerSubmitterUid = \n                               (SELECT CourseGroupMemberInner.cgmGroupNumber\n                                  FROM CourseGroupMember CourseGroupMemberInner\n                                 WHERE CourseGroupMemberInner.cgmSetUid = (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n    )\n                                   AND CourseGroupMemberInner.cgmPersonUid = CAST(? AS BIGINT)\n                                 LIMIT 1)\n                        ))\n            )\n        )\n        \n    \n        \n        SELECT \n              -- whether or not the active user has permission to view learner records \n              (SELECT hasPermission\n                 FROM HasLearningRecordSelectPermission) AS activeUserHasViewLearnerRecordsPermission,\n        \n              (SELECT COUNT(*)\n                 FROM SubmitterList) AS totalStudents,\n              \n              -- Total marked students\n              (SELECT COUNT(*)\n                 FROM SubmitterList\n                WHERE EXISTS(\n                      SELECT CourseAssignmentMark.camUid\n                        FROM CourseAssignmentMark\n                       WHERE CourseAssignmentMark.camAssignmentUid = CAST(? AS BIGINT)\n                         AND CourseAssignmentMark.camSubmitterUid = SubmitterList.submitterId) \n                ) AS markedStudents,\n              \n              -- Total who have submitted  \n              (SELECT COUNT(*)\n                 FROM SubmitterList\n                WHERE EXISTS(\n                      SELECT CourseAssignmentSubmission.casUid\n                        FROM CourseAssignmentSubmission\n                       WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n                         AND CourseAssignmentSubmission.casSubmitterUid = SubmitterList.submitterId)\n                ) AS submittedStudents,\n              \n              (SELECT (ClazzAssignment.caGroupUid != 0)\n                 FROM ClazzAssignment\n                WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) AS isGroupAssignment\n    ", VOID, VOID, VOID, "\n        WITH \n            HasLearningRecordSelectPermission (hasPermission) AS\n            (SELECT (\n                  (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         128\n                  \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     128\n                  \n        ) > 0)\n               )\n    ))\n        ,\n        \n        AssignmentClazzUid(clazzUid) AS\n        (SELECT ClazzAssignment.caClazzUid\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = ?)  \n    ,\n        \n        SubmitterList(submitterId, name) AS \n        -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n        (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n                Person.firstNames || ' ' || Person.lastName AS name\n           FROM ClazzEnrolment\n                JOIN Person \n                     ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n          WHERE (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = ?\n    ) = 0\n            AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n            AND ClazzEnrolment.clazzEnrolmentRole = 1000\n            -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n            AND (\n                (SELECT hasPermission \n                   FROM HasLearningRecordSelectPermission)\n                OR  \n                 -- check if the active person eg accountpersonuid is assigned to mark this peer\n                 (\n        ((SELECT ClazzAssignment.caMarkingType\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = ?) = 2)\n    \n                  AND\n                  EXISTS(SELECT PeerReviewerAllocation.praUid\n                           FROM PeerReviewerAllocation\n                          WHERE PeerReviewerAllocation.praAssignmentUid = ?\n                            AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n                            AND PeerReviewerAllocation.praMarkerSubmitterUid = ?))\n                 )\n         UNION\n         -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n         SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n                ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n           FROM CourseGroupMember\n          WHERE (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = ?\n    ) != 0\n            AND CourseGroupMember.cgmSetUid = (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = ?\n    )\n            -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n            AND (\n                (SELECT hasPermission \n                   FROM HasLearningRecordSelectPermission)\n                OR \n                --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n                (\n        ((SELECT ClazzAssignment.caMarkingType\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = ?) = 2)\n    \n                 AND\n                 EXISTS(SELECT PeerReviewerAllocation.praUid\n                          FROM PeerReviewerAllocation\n                         WHERE PeerReviewerAllocation.praAssignmentUid = ?\n                           AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n                           AND PeerReviewerAllocation.praMarkerSubmitterUid = \n                               (SELECT CourseGroupMemberInner.cgmGroupNumber\n                                  FROM CourseGroupMember CourseGroupMemberInner\n                                 WHERE CourseGroupMemberInner.cgmSetUid = (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = ?\n    )\n                                   AND CourseGroupMemberInner.cgmPersonUid = ?\n                                 LIMIT 1)\n                        ))\n            )\n        )\n        \n    \n        \n        SELECT \n              -- whether or not the active user has permission to view learner records \n              (SELECT hasPermission\n                 FROM HasLearningRecordSelectPermission) AS activeUserHasViewLearnerRecordsPermission,\n        \n              (SELECT COUNT(*)\n                 FROM SubmitterList) AS totalStudents,\n              \n              -- Total marked students\n              (SELECT COUNT(*)\n                 FROM SubmitterList\n                WHERE EXISTS(\n                      SELECT CourseAssignmentMark.camUid\n                        FROM CourseAssignmentMark\n                       WHERE CourseAssignmentMark.camAssignmentUid = ?\n                         AND CourseAssignmentMark.camSubmitterUid = SubmitterList.submitterId) \n                ) AS markedStudents,\n              \n              -- Total who have submitted  \n              (SELECT COUNT(*)\n                 FROM SubmitterList\n                WHERE EXISTS(\n                      SELECT CourseAssignmentSubmission.casUid\n                        FROM CourseAssignmentSubmission\n                       WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n                         AND CourseAssignmentSubmission.casSubmitterUid = SubmitterList.submitterId)\n                ) AS submittedStudents,\n              \n              (SELECT (ClazzAssignment.caGroupUid != 0)\n                 FROM ClazzAssignment\n                WHERE ClazzAssignment.caUid = ?) AS isGroupAssignment\n    \n", true);
            suspendResult = prepareAndUseStatementAsync(this.m7z_1.w7y_1, tmp_0, ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda_0(this.n7z_1, this.o7z_1, this.p7z_1, this.q7z_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda).y77 = function (completion) {
    return new ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda(this.m7z_1, this.n7z_1, this.o7z_1, this.p7z_1, this.q7z_1, completion);
  };
  function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda_0(this$0, $clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation) {
    var i = new ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda(this$0, $clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation);
    var l = function ($completion) {
      return i.r7z($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1(this$0, $clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption) {
    this.y7z_1 = this$0;
    this.z7z_1 = $clazzUid;
    this.a80_1 = $accountPersonUid;
    this.b80_1 = $assignmentUid;
    this.c80_1 = $group;
    this.d80_1 = $searchText;
    this.e80_1 = $sortOption;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['SystemPermission', 'CoursePermission', 'ClazzAssignment', 'ClazzEnrolment', 'PeerReviewerAllocation', 'Person', 'CourseGroupMember', 'CourseAssignmentSubmission', 'CourseAssignmentMark', 'Comments', 'PersonPicture'];
    DoorLimitOffsetPagingSource.call(this, this$0.w7y_1, tmp$ret$2);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1).f80 = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig("SELECT * FROM (\n        WITH \n            HasLearningRecordSelectPermission (hasPermission) AS\n            (SELECT (\n                  (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         128\n                  \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     128\n                  \n        ) > 0)\n               )\n    ))\n        ,\n             \n        AssignmentClazzUid(clazzUid) AS\n        (SELECT ClazzAssignment.caClazzUid\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))  \n    ,\n             \n        SubmitterList(submitterId, name) AS \n        -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n        (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n                Person.firstNames || ' ' || Person.lastName AS name\n           FROM ClazzEnrolment\n                JOIN Person \n                     ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n          WHERE (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n    ) = 0\n            AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n            AND ClazzEnrolment.clazzEnrolmentRole = 1000\n            -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n            AND (\n                (SELECT hasPermission \n                   FROM HasLearningRecordSelectPermission)\n                OR  \n                 -- check if the active person eg accountpersonuid is assigned to mark this peer\n                 (\n        ((SELECT ClazzAssignment.caMarkingType\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n    \n                  AND\n                  EXISTS(SELECT PeerReviewerAllocation.praUid\n                           FROM PeerReviewerAllocation\n                          WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n                            AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n                            AND PeerReviewerAllocation.praMarkerSubmitterUid = CAST(? AS BIGINT)))\n                 )\n         UNION\n         -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n         SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n                ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n           FROM CourseGroupMember\n          WHERE (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n    ) != 0\n            AND CourseGroupMember.cgmSetUid = (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n    )\n            -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n            AND (\n                (SELECT hasPermission \n                   FROM HasLearningRecordSelectPermission)\n                OR \n                --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n                (\n        ((SELECT ClazzAssignment.caMarkingType\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n    \n                 AND\n                 EXISTS(SELECT PeerReviewerAllocation.praUid\n                          FROM PeerReviewerAllocation\n                         WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n                           AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n                           AND PeerReviewerAllocation.praMarkerSubmitterUid = \n                               (SELECT CourseGroupMemberInner.cgmGroupNumber\n                                  FROM CourseGroupMember CourseGroupMemberInner\n                                 WHERE CourseGroupMemberInner.cgmSetUid = (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n    )\n                                   AND CourseGroupMemberInner.cgmPersonUid = CAST(? AS BIGINT)\n                                 LIMIT 1)\n                        ))\n            )\n        )\n        \n    \n        \n        SELECT SubmitterList.name AS name,\n               SubmitterList.submitterId AS submitterUid,\n               Comments.commentsText AS latestPrivateComment,\n               CASE \n               WHEN SubmitterList.submitterId >= 10000 THEN\n                    (SELECT PersonPicture.personPictureThumbnailUri\n                       FROM PersonPicture\n                      WHERE PersonPicture.personPictureUid =  SubmitterList.submitterId)\n               ELSE NULL\n               END AS pictureUri,       \n               -- Determine submission status - marked, submitted, or not yet submitted\n               CASE \n               WHEN CourseAssignmentMark.camUid IS NOT NULL THEN 2\n               WHEN CourseAssignmentSubmission.casUid IS NOT NULL THEN 1\n               ELSE 0 \n               END AS fileSubmissionStatus\n               \n          FROM SubmitterList\n               LEFT JOIN Comments \n                         ON Comments.commentsUid = \n                            (SELECT Comments.commentsUid \n                               FROM Comments\n                              WHERE Comments.commentsEntityUid = CAST(? AS BIGINT)\n                                AND Comments.commentsForSubmitterUid = SubmitterList.submitterId\n                                AND NOT Comments.commentsDeleted\n                           ORDER BY Comments.commentsDateTimeAdded DESC     \n                              LIMIT 1) \n               LEFT JOIN CourseAssignmentMark\n                         ON CourseAssignmentMark.camUid = \n                            (SELECT camUid\n                               FROM CourseAssignmentMark\n                              WHERE CourseAssignmentMark.camAssignmentUid = CAST(? AS BIGINT)\n                                AND CourseAssignmentMark.camSubmitterUid = SubmitterList.submitterId\n                              LIMIT 1)\n               LEFT JOIN CourseAssignmentSubmission\n                         ON CourseAssignmentSubmission.casUid = \n                            (SELECT casUid\n                               FROM CourseAssignmentSubmission\n                              WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n                                AND CourseAssignmentSubmission.casSubmitterUid = SubmitterList.submitterId \n                              LIMIT 1)\n         WHERE (? = '%' OR SubmitterList.name LIKE ?)\n      ORDER BY CASE(?)\n               WHEN 5 THEN SubmitterList.name\n               ELSE '' END ASC,\n               CASE(?)\n               WHEN 6 THEN SubmitterList.name\n               ELSE '' END DESC\n    ) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n        WITH \n            HasLearningRecordSelectPermission (hasPermission) AS\n            (SELECT (\n                  (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         128\n                  \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     128\n                  \n        ) > 0)\n               )\n    ))\n        ,\n             \n        AssignmentClazzUid(clazzUid) AS\n        (SELECT ClazzAssignment.caClazzUid\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = ?)  \n    ,\n             \n        SubmitterList(submitterId, name) AS \n        -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n        (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n                Person.firstNames || ' ' || Person.lastName AS name\n           FROM ClazzEnrolment\n                JOIN Person \n                     ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n          WHERE (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = ?\n    ) = 0\n            AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n            AND ClazzEnrolment.clazzEnrolmentRole = 1000\n            -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n            AND (\n                (SELECT hasPermission \n                   FROM HasLearningRecordSelectPermission)\n                OR  \n                 -- check if the active person eg accountpersonuid is assigned to mark this peer\n                 (\n        ((SELECT ClazzAssignment.caMarkingType\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = ?) = 2)\n    \n                  AND\n                  EXISTS(SELECT PeerReviewerAllocation.praUid\n                           FROM PeerReviewerAllocation\n                          WHERE PeerReviewerAllocation.praAssignmentUid = ?\n                            AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n                            AND PeerReviewerAllocation.praMarkerSubmitterUid = ?))\n                 )\n         UNION\n         -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n         SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n                ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n           FROM CourseGroupMember\n          WHERE (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = ?\n    ) != 0\n            AND CourseGroupMember.cgmSetUid = (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = ?\n    )\n            -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n            AND (\n                (SELECT hasPermission \n                   FROM HasLearningRecordSelectPermission)\n                OR \n                --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n                (\n        ((SELECT ClazzAssignment.caMarkingType\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = ?) = 2)\n    \n                 AND\n                 EXISTS(SELECT PeerReviewerAllocation.praUid\n                          FROM PeerReviewerAllocation\n                         WHERE PeerReviewerAllocation.praAssignmentUid = ?\n                           AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n                           AND PeerReviewerAllocation.praMarkerSubmitterUid = \n                               (SELECT CourseGroupMemberInner.cgmGroupNumber\n                                  FROM CourseGroupMember CourseGroupMemberInner\n                                 WHERE CourseGroupMemberInner.cgmSetUid = (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = ?\n    )\n                                   AND CourseGroupMemberInner.cgmPersonUid = ?\n                                 LIMIT 1)\n                        ))\n            )\n        )\n        \n    \n        \n        SELECT SubmitterList.name AS name,\n               SubmitterList.submitterId AS submitterUid,\n               Comments.commentsText AS latestPrivateComment,\n               CASE \n               WHEN SubmitterList.submitterId >= 10000 THEN\n                    (SELECT PersonPicture.personPictureThumbnailUri\n                       FROM PersonPicture\n                      WHERE PersonPicture.personPictureUid =  SubmitterList.submitterId)\n               ELSE NULL\n               END AS pictureUri,       \n               -- Determine submission status - marked, submitted, or not yet submitted\n               CASE \n               WHEN CourseAssignmentMark.camUid IS NOT NULL THEN 2\n               WHEN CourseAssignmentSubmission.casUid IS NOT NULL THEN 1\n               ELSE 0 \n               END AS fileSubmissionStatus\n               \n          FROM SubmitterList\n               LEFT JOIN Comments \n                         ON Comments.commentsUid = \n                            (SELECT Comments.commentsUid \n                               FROM Comments\n                              WHERE Comments.commentsEntityUid = ?\n                                AND Comments.commentsForSubmitterUid = SubmitterList.submitterId\n                                AND NOT Comments.commentsDeleted\n                           ORDER BY Comments.commentsDateTimeAdded DESC     \n                              LIMIT 1) \n               LEFT JOIN CourseAssignmentMark\n                         ON CourseAssignmentMark.camUid = \n                            (SELECT camUid\n                               FROM CourseAssignmentMark\n                              WHERE CourseAssignmentMark.camAssignmentUid = ?\n                                AND CourseAssignmentMark.camSubmitterUid = SubmitterList.submitterId\n                              LIMIT 1)\n               LEFT JOIN CourseAssignmentSubmission\n                         ON CourseAssignmentSubmission.casUid = \n                            (SELECT casUid\n                               FROM CourseAssignmentSubmission\n                              WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n                                AND CourseAssignmentSubmission.casSubmitterUid = SubmitterList.submitterId \n                              LIMIT 1)\n         WHERE (? = '%' OR SubmitterList.name LIKE ?)\n      ORDER BY CASE(?)\n               WHEN 5 THEN SubmitterList.name\n               ELSE '' END ASC,\n               CASE(?)\n               WHEN 6 THEN SubmitterList.name\n               ELSE '' END DESC\n    ) AS _PagingData LIMIT ? OFFSET ?\n", true);
    return prepareAndUseStatementAsync(this.y7z_1.w7y_1, tmp, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda_0(this.z7z_1, this.a80_1, this.b80_1, this.c80_1, this.d80_1, this.e80_1, _limit, _offset, null), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1).j5p = function (_limit, _offset, $completion) {
    return this.f80(_limit, _offset, $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n        WITH \n            HasLearningRecordSelectPermission (hasPermission) AS\n            (SELECT (\n                  (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         128\n                  \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     128\n                  \n        ) > 0)\n               )\n    ))\n        ,\n             \n        AssignmentClazzUid(clazzUid) AS\n        (SELECT ClazzAssignment.caClazzUid\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))  \n    ,\n             \n        SubmitterList(submitterId, name) AS \n        -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n        (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n                Person.firstNames || ' ' || Person.lastName AS name\n           FROM ClazzEnrolment\n                JOIN Person \n                     ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n          WHERE (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n    ) = 0\n            AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n            AND ClazzEnrolment.clazzEnrolmentRole = 1000\n            -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n            AND (\n                (SELECT hasPermission \n                   FROM HasLearningRecordSelectPermission)\n                OR  \n                 -- check if the active person eg accountpersonuid is assigned to mark this peer\n                 (\n        ((SELECT ClazzAssignment.caMarkingType\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n    \n                  AND\n                  EXISTS(SELECT PeerReviewerAllocation.praUid\n                           FROM PeerReviewerAllocation\n                          WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n                            AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n                            AND PeerReviewerAllocation.praMarkerSubmitterUid = CAST(? AS BIGINT)))\n                 )\n         UNION\n         -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n         SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n                ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n           FROM CourseGroupMember\n          WHERE (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n    ) != 0\n            AND CourseGroupMember.cgmSetUid = (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n    )\n            -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n            AND (\n                (SELECT hasPermission \n                   FROM HasLearningRecordSelectPermission)\n                OR \n                --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n                (\n        ((SELECT ClazzAssignment.caMarkingType\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n    \n                 AND\n                 EXISTS(SELECT PeerReviewerAllocation.praUid\n                          FROM PeerReviewerAllocation\n                         WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n                           AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n                           AND PeerReviewerAllocation.praMarkerSubmitterUid = \n                               (SELECT CourseGroupMemberInner.cgmGroupNumber\n                                  FROM CourseGroupMember CourseGroupMemberInner\n                                 WHERE CourseGroupMemberInner.cgmSetUid = (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n    )\n                                   AND CourseGroupMemberInner.cgmPersonUid = CAST(? AS BIGINT)\n                                 LIMIT 1)\n                        ))\n            )\n        )\n        \n    \n        \n        SELECT SubmitterList.name AS name,\n               SubmitterList.submitterId AS submitterUid,\n               Comments.commentsText AS latestPrivateComment,\n               CASE \n               WHEN SubmitterList.submitterId >= 10000 THEN\n                    (SELECT PersonPicture.personPictureThumbnailUri\n                       FROM PersonPicture\n                      WHERE PersonPicture.personPictureUid =  SubmitterList.submitterId)\n               ELSE NULL\n               END AS pictureUri,       \n               -- Determine submission status - marked, submitted, or not yet submitted\n               CASE \n               WHEN CourseAssignmentMark.camUid IS NOT NULL THEN 2\n               WHEN CourseAssignmentSubmission.casUid IS NOT NULL THEN 1\n               ELSE 0 \n               END AS fileSubmissionStatus\n               \n          FROM SubmitterList\n               LEFT JOIN Comments \n                         ON Comments.commentsUid = \n                            (SELECT Comments.commentsUid \n                               FROM Comments\n                              WHERE Comments.commentsEntityUid = CAST(? AS BIGINT)\n                                AND Comments.commentsForSubmitterUid = SubmitterList.submitterId\n                                AND NOT Comments.commentsDeleted\n                           ORDER BY Comments.commentsDateTimeAdded DESC     \n                              LIMIT 1) \n               LEFT JOIN CourseAssignmentMark\n                         ON CourseAssignmentMark.camUid = \n                            (SELECT camUid\n                               FROM CourseAssignmentMark\n                              WHERE CourseAssignmentMark.camAssignmentUid = CAST(? AS BIGINT)\n                                AND CourseAssignmentMark.camSubmitterUid = SubmitterList.submitterId\n                              LIMIT 1)\n               LEFT JOIN CourseAssignmentSubmission\n                         ON CourseAssignmentSubmission.casUid = \n                            (SELECT casUid\n                               FROM CourseAssignmentSubmission\n                              WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n                                AND CourseAssignmentSubmission.casSubmitterUid = SubmitterList.submitterId \n                              LIMIT 1)\n         WHERE (? = '%' OR SubmitterList.name LIKE ?)\n      ORDER BY CASE(?)\n               WHEN 5 THEN SubmitterList.name\n               ELSE '' END ASC,\n               CASE(?)\n               WHEN 6 THEN SubmitterList.name\n               ELSE '' END DESC\n    ) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n        WITH \n            HasLearningRecordSelectPermission (hasPermission) AS\n            (SELECT (\n                  (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         128\n                  \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     128\n                  \n        ) > 0)\n               )\n    ))\n        ,\n             \n        AssignmentClazzUid(clazzUid) AS\n        (SELECT ClazzAssignment.caClazzUid\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = ?)  \n    ,\n             \n        SubmitterList(submitterId, name) AS \n        -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n        (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n                Person.firstNames || ' ' || Person.lastName AS name\n           FROM ClazzEnrolment\n                JOIN Person \n                     ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n          WHERE (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = ?\n    ) = 0\n            AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n            AND ClazzEnrolment.clazzEnrolmentRole = 1000\n            -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n            AND (\n                (SELECT hasPermission \n                   FROM HasLearningRecordSelectPermission)\n                OR  \n                 -- check if the active person eg accountpersonuid is assigned to mark this peer\n                 (\n        ((SELECT ClazzAssignment.caMarkingType\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = ?) = 2)\n    \n                  AND\n                  EXISTS(SELECT PeerReviewerAllocation.praUid\n                           FROM PeerReviewerAllocation\n                          WHERE PeerReviewerAllocation.praAssignmentUid = ?\n                            AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n                            AND PeerReviewerAllocation.praMarkerSubmitterUid = ?))\n                 )\n         UNION\n         -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n         SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n                ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n           FROM CourseGroupMember\n          WHERE (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = ?\n    ) != 0\n            AND CourseGroupMember.cgmSetUid = (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = ?\n    )\n            -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n            AND (\n                (SELECT hasPermission \n                   FROM HasLearningRecordSelectPermission)\n                OR \n                --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n                (\n        ((SELECT ClazzAssignment.caMarkingType\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = ?) = 2)\n    \n                 AND\n                 EXISTS(SELECT PeerReviewerAllocation.praUid\n                          FROM PeerReviewerAllocation\n                         WHERE PeerReviewerAllocation.praAssignmentUid = ?\n                           AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n                           AND PeerReviewerAllocation.praMarkerSubmitterUid = \n                               (SELECT CourseGroupMemberInner.cgmGroupNumber\n                                  FROM CourseGroupMember CourseGroupMemberInner\n                                 WHERE CourseGroupMemberInner.cgmSetUid = (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = ?\n    )\n                                   AND CourseGroupMemberInner.cgmPersonUid = ?\n                                 LIMIT 1)\n                        ))\n            )\n        )\n        \n    \n        \n        SELECT SubmitterList.name AS name,\n               SubmitterList.submitterId AS submitterUid,\n               Comments.commentsText AS latestPrivateComment,\n               CASE \n               WHEN SubmitterList.submitterId >= 10000 THEN\n                    (SELECT PersonPicture.personPictureThumbnailUri\n                       FROM PersonPicture\n                      WHERE PersonPicture.personPictureUid =  SubmitterList.submitterId)\n               ELSE NULL\n               END AS pictureUri,       \n               -- Determine submission status - marked, submitted, or not yet submitted\n               CASE \n               WHEN CourseAssignmentMark.camUid IS NOT NULL THEN 2\n               WHEN CourseAssignmentSubmission.casUid IS NOT NULL THEN 1\n               ELSE 0 \n               END AS fileSubmissionStatus\n               \n          FROM SubmitterList\n               LEFT JOIN Comments \n                         ON Comments.commentsUid = \n                            (SELECT Comments.commentsUid \n                               FROM Comments\n                              WHERE Comments.commentsEntityUid = ?\n                                AND Comments.commentsForSubmitterUid = SubmitterList.submitterId\n                                AND NOT Comments.commentsDeleted\n                           ORDER BY Comments.commentsDateTimeAdded DESC     \n                              LIMIT 1) \n               LEFT JOIN CourseAssignmentMark\n                         ON CourseAssignmentMark.camUid = \n                            (SELECT camUid\n                               FROM CourseAssignmentMark\n                              WHERE CourseAssignmentMark.camAssignmentUid = ?\n                                AND CourseAssignmentMark.camSubmitterUid = SubmitterList.submitterId\n                              LIMIT 1)\n               LEFT JOIN CourseAssignmentSubmission\n                         ON CourseAssignmentSubmission.casUid = \n                            (SELECT casUid\n                               FROM CourseAssignmentSubmission\n                              WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n                                AND CourseAssignmentSubmission.casSubmitterUid = SubmitterList.submitterId \n                              LIMIT 1)\n         WHERE (? = '%' OR SubmitterList.name LIKE ?)\n      ORDER BY CASE(?)\n               WHEN 5 THEN SubmitterList.name\n               ELSE '' END ASC,\n               CASE(?)\n               WHEN 6 THEN SubmitterList.name\n               ELSE '' END DESC\n    ) AS _PagingCount\n", true);
    return prepareAndUseStatementAsync(this.y7z_1.w7y_1, tmp, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda_0(this.z7z_1, this.a80_1, this.b80_1, this.c80_1, this.d80_1, this.e80_1, null), $completion);
  };
  function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda($groupSetUid, $clazzUid, $time, resultContinuation) {
    this.o80_1 = $groupSetUid;
    this.p80_1 = $clazzUid;
    this.q80_1 = $time;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda).s80 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda).he = function (p1, $completion) {
    return this.s80((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.r80_1.i5h(1, this.o80_1);
            this.r80_1.i5h(2, this.p80_1);
            this.r80_1.i5h(3, this.q80_1);
            this.r80_1.i5h(4, this.o80_1);
            this.r80_1.i5h(5, this.o80_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.r80_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda(this.o80_1, this.p80_1, this.q80_1, completion);
    i.r80_1 = _stmt;
    return i;
  };
  function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda_0($groupSetUid, $clazzUid, $time, resultContinuation) {
    var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda($groupSetUid, $clazzUid, $time, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.s80(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda($groupSetUid, $clazzUid, $date, $groupStr, resultContinuation) {
    this.b81_1 = $groupSetUid;
    this.c81_1 = $clazzUid;
    this.d81_1 = $date;
    this.e81_1 = $groupStr;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda).g81 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda).he = function (p1, $completion) {
    return this.g81((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.f81_1.i5h(1, this.b81_1);
            this.f81_1.i5h(2, this.c81_1);
            this.f81_1.i5h(3, this.d81_1);
            this.f81_1.i5h(4, this.b81_1);
            this.f81_1.i5h(5, this.b81_1);
            this.f81_1.i5h(6, this.b81_1);
            this.f81_1.l5h(7, this.e81_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.f81_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda(this.b81_1, this.c81_1, this.d81_1, this.e81_1, completion);
    i.f81_1 = _stmt;
    return i;
  };
  function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda_0($groupSetUid, $clazzUid, $date, $groupStr, resultContinuation) {
    var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda($groupSetUid, $clazzUid, $date, $groupStr, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.g81(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda($clazzUid, $assignmentUid, $accountPersonUid, resultContinuation) {
    this.p81_1 = $clazzUid;
    this.q81_1 = $assignmentUid;
    this.r81_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda).o5f = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda).he = function (p1, $completion) {
    return this.o5f((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.s81_1.i5h(1, this.p81_1);
            this.s81_1.i5h(2, this.q81_1);
            this.s81_1.i5h(3, this.r81_1);
            this.s81_1.i5h(4, this.q81_1);
            this.s81_1.i5h(5, this.q81_1);
            this.s81_1.i5h(6, this.r81_1);
            this.s81_1.i5h(7, this.q81_1);
            this.s81_1.i5h(8, this.r81_1);
            this.s81_1.i5h(9, this.q81_1);
            this.s81_1.i5h(10, this.q81_1);
            this.s81_1.i5h(11, this.r81_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.s81_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda(this.p81_1, this.q81_1, this.r81_1, completion);
    i.s81_1 = _stmt;
    return i;
  };
  function ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda_0($clazzUid, $assignmentUid, $accountPersonUid, resultContinuation) {
    var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda($clazzUid, $assignmentUid, $accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.o5f(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation) {
    this.b82_1 = this$0;
    this.c82_1 = $uid;
    this.d82_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).e82 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).z77 = function ($completion) {
    return this.e82($completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT * \n          FROM ClazzAssignment \n         WHERE caUid = CAST(? AS BIGINT)\n           AND caClazzUid = CAST(? AS BIGINT)\n    ', VOID, VOID, VOID, '\n        SELECT * \n          FROM ClazzAssignment \n         WHERE caUid = ?\n           AND caClazzUid = ?\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.b82_1.w7y_1, tmp_0, ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda_0(this.c82_1, this.d82_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).y77 = function (completion) {
    return new ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this.b82_1, this.c82_1, this.d82_1, completion);
  };
  function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda_0(this$0, $uid, $clazzUid, resultContinuation) {
    var i = new ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation);
    var l = function ($completion) {
      return i.e82($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda($uid, resultContinuation) {
    this.n82_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda).p82 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda).he = function (p1, $completion) {
    return this.p82((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.o82_1.i5h(1, this.n82_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.o82_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda(this.n82_1, completion);
    i.o82_1 = _stmt;
    return i;
  };
  function ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda_0($uid, resultContinuation) {
    var i = new ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda($uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.p82(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda($active, $changeTime, $uidList, resultContinuation) {
    this.y82_1 = $active;
    this.z82_1 = $changeTime;
    this.a83_1 = $uidList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.b83_1.v5g(1, this.y82_1);
            this.b83_1.i5h(2, this.z82_1);
            var tmp_0 = this.b83_1.e5g();
            var this_0 = this.a83_1;
            this.b83_1.m5h(3, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.b83_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda(this.y82_1, this.z82_1, this.a83_1, completion);
    i.b83_1 = _stmt;
    return i;
  };
  function ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda_0($active, $changeTime, $uidList, resultContinuation) {
    var i = new ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda($active, $changeTime, $uidList, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $assignmentUid, resultContinuation) {
    this.k83_1 = this$0;
    this.l83_1 = $accountPersonUid;
    this.m83_1 = $clazzUid;
    this.n83_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).o83 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).z77 = function ($completion) {
    return this.o83($completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        WITH PersonIsStudent(isStudent)\n             AS (SELECT EXISTS(\n                        SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                           FROM ClazzEnrolment\n                          WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                            AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n                            AND ClazzEnrolment.clazzEnrolmentRole = 1000))\n                        \n        SELECT ClazzAssignment.*,\n               CourseBlock.*,\n               CourseBlockPicture.*,\n               CourseGroupSet.*,\n               (\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = CAST(? AS BIGINT))\n                              AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n                            LIMIT 1), -1)\n                    END\n    ) AS submitterUid,\n               \n               ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         4\n                \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     4\n                \n        ) > 0)\n               )\n    ) AS hasModeratePermission\n                   \n          FROM ClazzAssignment\n               JOIN CourseBlock\n                    ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n               LEFT JOIN CourseBlockPicture\n                    ON CourseBlockPicture.cbpUid = CourseBlock.cbUid\n               LEFT JOIN CourseGroupSet\n                    ON CourseGroupSet.cgsUid = ClazzAssignment.caGroupUid\n         WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n           AND ClazzAssignment.caClazzUid = CAST(? AS BIGINT)\n           AND (\n                (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         1\n                \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     1\n                \n        ) > 0)\n               )\n    )\n    ', VOID, VOID, VOID, '\n        WITH PersonIsStudent(isStudent)\n             AS (SELECT EXISTS(\n                        SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                           FROM ClazzEnrolment\n                          WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                            AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n                            AND ClazzEnrolment.clazzEnrolmentRole = 1000))\n                        \n        SELECT ClazzAssignment.*,\n               CourseBlock.*,\n               CourseBlockPicture.*,\n               CourseGroupSet.*,\n               (\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = ?)\n                              AND CourseGroupMember.cgmPersonUid = ?\n                            LIMIT 1), -1)\n                    END\n    ) AS submitterUid,\n               \n               ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         4\n                \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     4\n                \n        ) > 0)\n               )\n    ) AS hasModeratePermission\n                   \n          FROM ClazzAssignment\n               JOIN CourseBlock\n                    ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n               LEFT JOIN CourseBlockPicture\n                    ON CourseBlockPicture.cbpUid = CourseBlock.cbUid\n               LEFT JOIN CourseGroupSet\n                    ON CourseGroupSet.cgsUid = ClazzAssignment.caGroupUid\n         WHERE ClazzAssignment.caUid = ?\n           AND ClazzAssignment.caClazzUid = ?\n           AND (\n                (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         1\n                \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     1\n                \n        ) > 0)\n               )\n    )\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.k83_1.w7y_1, tmp_0, ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda_0(this.l83_1, this.m83_1, this.n83_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).y77 = function (completion) {
    return new ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this.k83_1, this.l83_1, this.m83_1, this.n83_1, completion);
  };
  function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda_0(this$0, $accountPersonUid, $clazzUid, $assignmentUid, resultContinuation) {
    var i = new ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $assignmentUid, resultContinuation);
    var l = function ($completion) {
      return i.o83($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$4(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.x83_1 = _this__u8e3s4;
    this.y83_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$4).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.x83_1.y7y_1.j5g(this.y83_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateActiveByListCOROUTINE$7(_this__u8e3s4, uidList, active, changeTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.h84_1 = _this__u8e3s4;
    this.i84_1 = uidList;
    this.j84_1 = active;
    this.k84_1 = changeTime;
  }
  protoOf($updateActiveByListCOROUTINE$7).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE ClazzAssignment\n           SET caActive = ?,\n               caLct = CAST(? AS BIGINT)\n         WHERE caUid IN (?)   \n    ', true, VOID, VOID, '\n        UPDATE ClazzAssignment\n           SET caActive = ?,\n               caLct = ?\n         WHERE caUid IN (?)   \n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.h84_1.w7y_1, tmp_0, ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda_0(this.j84_1, this.k84_1, this.i84_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ClazzAssignmentDao_JdbcImpl(_db) {
    ClazzAssignmentDao.call(this);
    this.w7y_1 = _db;
    var tmp = this;
    tmp.x7y_1 = new ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1(this);
    var tmp_0 = this;
    tmp_0.y7y_1 = new ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1(this);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl).u7r = function (entities, $completion) {
    return this.x7y_1.m5g(entities, $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).a7u = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$4(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.a7u(entity instanceof ClazzAssignment ? entity : THROW_CCE(), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).n7r = function (assignmentUid, clazzUid, accountPersonUid, group) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['SystemPermission', 'CoursePermission', 'ClazzAssignment', 'ClazzEnrolment', 'PeerReviewerAllocation', 'Person', 'CourseGroupMember', 'CourseAssignmentSubmission', 'CourseAssignmentMark', 'Comments', 'PersonPicture'];
    return doorFlow(this.w7y_1, tmp, ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda_0(this, clazzUid, accountPersonUid, assignmentUid, group, null));
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).o7r = function (assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption) {
    return new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1(this, clazzUid, accountPersonUid, assignmentUid, group, searchText, sortOption);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).p7r = function (clazzUid, groupSetUid, time, $completion) {
    var tmp = new PreparedStatementConfig('\n         -- Submitter UIDs for individual assignment the list of personuids enrolled in the course\n         SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterUid\n           FROM ClazzEnrolment\n          WHERE (CAST(? AS BIGINT) = 0)\n            AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n            AND ClazzEnrolment.clazzEnrolmentRole = 1000\n            AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft\n          \n         UNION\n         \n        SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterUid\n          FROM CourseGroupMember\n         WHERE CAST(? AS BIGINT) != 0\n           AND CourseGroupMember.cgmSetUid = CAST(? AS BIGINT)         \n    ', VOID, VOID, VOID, '\n         -- Submitter UIDs for individual assignment the list of personuids enrolled in the course\n         SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterUid\n           FROM ClazzEnrolment\n          WHERE (? = 0)\n            AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n            AND ClazzEnrolment.clazzEnrolmentRole = 1000\n            AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft\n          \n         UNION\n         \n        SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterUid\n          FROM CourseGroupMember\n         WHERE ? != 0\n           AND CourseGroupMember.cgmSetUid = ?         \n    \n', true);
    return prepareAndUseStatementAsync(this.w7y_1, tmp, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda_0(groupSetUid, clazzUid, time, null), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).q7r = function (clazzUid, groupSetUid, date, groupStr, $completion) {
    var tmp = new PreparedStatementConfig("\n        WITH SubmitterUids(submitterUid) AS (\n            SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterUid\n               FROM ClazzEnrolment\n              WHERE (CAST(? AS BIGINT) = 0)\n                AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n                AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft\n              \n             UNION\n             \n            SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterUid\n              FROM CourseGroupMember\n             WHERE CAST(? AS BIGINT) != 0\n               AND CourseGroupMember.cgmSetUid = CAST(? AS BIGINT)    \n        )\n        \n        SELECT SubmitterUids.submitterUid AS submitterUid,\n               CASE CAST(? AS BIGINT)\n               WHEN 0 THEN\n                      (SELECT Person.firstNames || ' ' || Person.lastName\n                         FROM Person\n                        WHERE Person.personUid = SubmitterUids.submitterUid)\n               ELSE (? || ' ' || SubmitterUids.submitterUid)   \n               END AS name\n          FROM SubmitterUids                  \n    ", VOID, VOID, VOID, "\n        WITH SubmitterUids(submitterUid) AS (\n            SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterUid\n               FROM ClazzEnrolment\n              WHERE (? = 0)\n                AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n                AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft\n              \n             UNION\n             \n            SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterUid\n              FROM CourseGroupMember\n             WHERE ? != 0\n               AND CourseGroupMember.cgmSetUid = ?    \n        )\n        \n        SELECT SubmitterUids.submitterUid AS submitterUid,\n               CASE ?\n               WHEN 0 THEN\n                      (SELECT Person.firstNames || ' ' || Person.lastName\n                         FROM Person\n                        WHERE Person.personUid = SubmitterUids.submitterUid)\n               ELSE (? || ' ' || SubmitterUids.submitterUid)   \n               END AS name\n          FROM SubmitterUids                  \n    \n", true);
    return prepareAndUseStatementAsync(this.w7y_1, tmp, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda_0(groupSetUid, clazzUid, date, groupStr, null), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).r7r = function (assignmentUid, clazzUid, accountPersonUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        WITH ClazzUidDummy(clazzUid) AS\n             (SELECT CAST(? AS BIGINT))\n             \n        \n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = CAST(? AS BIGINT))\n                              AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n                            LIMIT 1), -1)\n                    END\n    \n    ', VOID, VOID, VOID, '\n        WITH ClazzUidDummy(clazzUid) AS\n             (SELECT ?)\n             \n        \n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = ?)\n                              AND CourseGroupMember.cgmPersonUid = ?\n                            LIMIT 1), -1)\n                    END\n    \n    \n', true);
    return prepareAndUseStatementAsync(this.w7y_1, tmp, ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda_0(clazzUid, assignmentUid, accountPersonUid, null), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).s7r = function (uid, clazzUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['ClazzAssignment'];
    return doorFlow(this.w7y_1, tmp, ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda_0(this, uid, clazzUid, null));
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).t7r = function (uid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT * \n          FROM ClazzAssignment\n               LEFT JOIN CourseBlock\n               ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n               AND CourseBlock.cbType = 103\n         WHERE caUid = CAST(? AS BIGINT)\n    ', VOID, VOID, VOID, '\n        SELECT * \n          FROM ClazzAssignment\n               LEFT JOIN CourseBlock\n               ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n               AND CourseBlock.cbType = 103\n         WHERE caUid = ?\n    \n', true);
    return prepareAndUseStatementAsync(this.w7y_1, tmp, ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda_0(uid, null), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).v7r = function (uidList, active, changeTime, $completion) {
    var tmp = new $updateActiveByListCOROUTINE$7(this, uidList, active, changeTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).w7r = function (assignmentUid, clazzUid, accountPersonUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['Person', 'ClazzAssignment', 'CourseBlock', 'CourseGroupMember', 'ClazzEnrolment', 'CoursePermission', 'SystemPermission', 'CourseBlockPicture'];
    return doorFlow(this.w7y_1, tmp, ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda_0(this, accountPersonUid, clazzUid, assignmentUid, null));
  };
  function ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda(this$0, $assignmentUid, $clazzUid, $accountPersonUid, $group, $searchText, $sortOption, resultContinuation) {
    this.t84_1 = this$0;
    this.u84_1 = $assignmentUid;
    this.v84_1 = $clazzUid;
    this.w84_1 = $accountPersonUid;
    this.x84_1 = $group;
    this.y84_1 = $searchText;
    this.z84_1 = $sortOption;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda).k85 = function (_pagingParams, $completion) {
    var tmp = this.l85(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda).he = function (p1, $completion) {
    return this.k85(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            var tmp_0 = this;
            tmp_0.c85_1 = this.t84_1.n85_1;
            var tmp_1 = this;
            tmp_1.d85_1 = 'ClazzAssignmentDao/getAssignmentSubmitterSummaryListForAssignment';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.e85_1 = this.t84_1.p85_1;
            var tmp_3 = this;
            tmp_3.f85_1 = this.e85_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.t84_1.n85_1.w38(), 'ClazzAssignmentDao/getAssignmentSubmitterSummaryListForAssignment');
            doorNodeIdHeader(this_0, this.t84_1.n85_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'assignmentUid', this.t84_1.n85_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.u84_1));
            parameter(this_0, 'clazzUid', this.t84_1.n85_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.v84_1));
            parameter(this_0, 'accountPersonUid', this.t84_1.n85_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.w84_1));
            parameter(this_0, 'group', this.t84_1.n85_1.w38().k65_1.e45(serializer_0(StringCompanionObject_instance), this.x84_1));
            parameter(this_0, 'searchText', this.t84_1.n85_1.w38().k65_1.e45(serializer_0(StringCompanionObject_instance), this.y84_1));
            parameter(this_0, 'sortOption', this.t84_1.n85_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.z84_1));
            pagingSourceLoadParameters(this_0, this.t84_1.n85_1.w38().k65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.a85_1);
            tmp_4.g85_1 = this_0;
            this.g85_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.h85_1 = this.f85_1;
            var tmp_6 = this;
            tmp_6.i85_1 = this.g85_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.i85_1, this.h85_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.j85_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.t84_1.m85_1, this.j85_1, this.t84_1.n85_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.b85_1 = endOfPaginationReached(this.j85_1);
            this.id_1 = 5;
            this.hd_1 = 7;
            continue $sm;
          case 4:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda$lambda(this.c85_1, this.d85_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 5:
            throw this.kd_1;
          case 6:
            this.id_1 = 5;
            if (false) {
              this.hd_1 = 1;
              continue $sm;
            }

            this.hd_1 = 7;
            continue $sm;
          case 7:
            return this.b85_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda).l85 = function (_pagingParams, completion) {
    var i = new ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda(this.t84_1, this.u84_1, this.v84_1, this.w84_1, this.x84_1, this.y84_1, this.z84_1, completion);
    i.a85_1 = _pagingParams;
    return i;
  };
  function ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda_0(this$0, $assignmentUid, $clazzUid, $accountPersonUid, $group, $searchText, $sortOption, resultContinuation) {
    var i = new ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda(this$0, $assignmentUid, $clazzUid, $accountPersonUid, $group, $searchText, $sortOption, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.k85(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzAssignmentDao_Repo$getSubmitterUidsAndNameByClazzOrGroupSetUid$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzAssignmentDao_Repo$getSubmitterUid$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation) {
    this.b86_1 = this$0;
    this.c86_1 = $uid;
    this.d86_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.e86_1 = this.b86_1.n85_1;
            var tmp_1 = this;
            tmp_1.f86_1 = 'ClazzAssignmentDao/findByUidAndClazzUidAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.g86_1 = this.b86_1.p85_1;
            var tmp_3 = this;
            tmp_3.h86_1 = this.g86_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.b86_1.n85_1.w38(), 'ClazzAssignmentDao/findByUidAndClazzUidAsFlow');
            doorNodeIdHeader(this_0, this.b86_1.n85_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.b86_1.n85_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.c86_1));
            parameter(this_0, 'clazzUid', this.b86_1.n85_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.d86_1));
            tmp_4.i86_1 = this_0;
            this.i86_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.j86_1 = this.h86_1;
            var tmp_6 = this;
            tmp_6.k86_1 = this.i86_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.k86_1, this.j86_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.l86_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.b86_1.m85_1, this.l86_1, this.b86_1.n85_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda$lambda(this.e86_1, this.f86_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda).y77 = function (completion) {
    return new ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda(this.b86_1, this.c86_1, this.d86_1, completion);
  };
  function ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda_0(this$0, $uid, $clazzUid, resultContinuation) {
    var i = new ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzAssignmentDao_Repo$findByUidWithBlockAsync$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzAssignmentDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) {
    this.v86_1 = this$0;
    this.w86_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_Repo$upsertListAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_Repo$upsertListAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ClazzAssignmentDao_Repo$upsertListAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.v86_1.o85_1.u7r(this.w86_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzAssignmentDao_Repo$upsertListAsync$slambda).y77 = function (completion) {
    return new ClazzAssignmentDao_Repo$upsertListAsync$slambda(this.v86_1, this.w86_1, completion);
  };
  function ClazzAssignmentDao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) {
    var i = new ClazzAssignmentDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzAssignmentDao_Repo$updateActiveByList$slambda(this$0, $uidList, $active, $changeTime, resultContinuation) {
    this.f87_1 = this$0;
    this.g87_1 = $uidList;
    this.h87_1 = $active;
    this.i87_1 = $changeTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_Repo$updateActiveByList$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_Repo$updateActiveByList$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ClazzAssignmentDao_Repo$updateActiveByList$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.f87_1.o85_1.v7r(this.g87_1, this.h87_1, this.i87_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzAssignmentDao_Repo$updateActiveByList$slambda).y77 = function (completion) {
    return new ClazzAssignmentDao_Repo$updateActiveByList$slambda(this.f87_1, this.g87_1, this.h87_1, this.i87_1, completion);
  };
  function ClazzAssignmentDao_Repo$updateActiveByList$slambda_0(this$0, $uidList, $active, $changeTime, resultContinuation) {
    var i = new ClazzAssignmentDao_Repo$updateActiveByList$slambda(this$0, $uidList, $active, $changeTime, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this$0, $assignmentUid, $clazzUid, $accountPersonUid, resultContinuation) {
    this.r87_1 = this$0;
    this.s87_1 = $assignmentUid;
    this.t87_1 = $clazzUid;
    this.u87_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.v87_1 = this.r87_1.n85_1;
            var tmp_1 = this;
            tmp_1.w87_1 = 'ClazzAssignmentDao/findAssignmentCourseBlockAndSubmitterUidAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.x87_1 = this.r87_1.p85_1;
            var tmp_3 = this;
            tmp_3.y87_1 = this.x87_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.r87_1.n85_1.w38(), 'ClazzAssignmentDao/findAssignmentCourseBlockAndSubmitterUidAsFlow');
            doorNodeIdHeader(this_0, this.r87_1.n85_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'assignmentUid', this.r87_1.n85_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.s87_1));
            parameter(this_0, 'clazzUid', this.r87_1.n85_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.t87_1));
            parameter(this_0, 'accountPersonUid', this.r87_1.n85_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.u87_1));
            tmp_4.z87_1 = this_0;
            this.z87_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.a88_1 = this.y87_1;
            var tmp_6 = this;
            tmp_6.b88_1 = this.z87_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.b88_1, this.a88_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.c88_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.r87_1.m85_1, this.c88_1, this.r87_1.n85_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$lambda(this.v87_1, this.w87_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).y77 = function (completion) {
    return new ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this.r87_1, this.s87_1, this.t87_1, this.u87_1, completion);
  };
  function ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda_0(this$0, $assignmentUid, $clazzUid, $accountPersonUid, resultContinuation) {
    var i = new ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this$0, $assignmentUid, $clazzUid, $accountPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzAssignmentDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.l88_1 = this$0;
    this.m88_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(ClazzAssignmentDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.l88_1.o85_1.insertAsync(this.m88_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzAssignmentDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new ClazzAssignmentDao_Repo$insertAsync$slambda(this.l88_1, this.m88_1, completion);
  };
  function ClazzAssignmentDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new ClazzAssignmentDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $getSubmitterUidsByClazzOrGroupSetUidCOROUTINE$14(_this__u8e3s4, clazzUid, groupSetUid, time, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.w88_1 = _this__u8e3s4;
    this.x88_1 = clazzUid;
    this.y88_1 = groupSetUid;
    this.z88_1 = time;
  }
  protoOf($getSubmitterUidsByClazzOrGroupSetUidCOROUTINE$14).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.w88_1.o85_1.p7r(this.x88_1, this.y88_1, this.z88_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $getSubmitterUidsAndNameByClazzOrGroupSetUidCOROUTINE$15(_this__u8e3s4, clazzUid, groupSetUid, date, groupStr, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.i89_1 = _this__u8e3s4;
    this.j89_1 = clazzUid;
    this.k89_1 = groupSetUid;
    this.l89_1 = date;
    this.m89_1 = groupStr;
  }
  protoOf($getSubmitterUidsAndNameByClazzOrGroupSetUidCOROUTINE$15).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.n89_1 = this.i89_1.n85_1;
            var tmp_1 = this;
            tmp_1.o89_1 = 'ClazzAssignmentDao/getSubmitterUidsAndNameByClazzOrGroupSetUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.p89_1 = this.i89_1.p85_1;
            var tmp_3 = this;
            tmp_3.q89_1 = this.p89_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.i89_1.n85_1.w38(), 'ClazzAssignmentDao/getSubmitterUidsAndNameByClazzOrGroupSetUid');
            doorNodeIdHeader(this_0, this.i89_1.n85_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.i89_1.n85_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.j89_1));
            parameter(this_0, 'groupSetUid', this.i89_1.n85_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.k89_1));
            parameter(this_0, 'date', this.i89_1.n85_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.l89_1));
            parameter(this_0, 'groupStr', this.i89_1.n85_1.w38().k65_1.e45(serializer_0(StringCompanionObject_instance), this.m89_1));
            tmp_4.r89_1 = this_0;
            this.r89_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.s89_1 = this.q89_1;
            var tmp_6 = this;
            tmp_6.t89_1 = this.r89_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.t89_1, this.s89_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.u89_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.i89_1.m85_1, this.u89_1, this.i89_1.n85_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.v89_1 = this.kd_1;
              Napier_getInstance().q5d(this.v89_1, 'DoorLog', ClazzAssignmentDao_Repo$getSubmitterUidsAndNameByClazzOrGroupSetUid$lambda(this.n89_1, this.o89_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.i89_1.o85_1.q7r(this.j89_1, this.k89_1, this.l89_1, this.m89_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $getSubmitterUidCOROUTINE$17(_this__u8e3s4, assignmentUid, clazzUid, accountPersonUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.e8a_1 = _this__u8e3s4;
    this.f8a_1 = assignmentUid;
    this.g8a_1 = clazzUid;
    this.h8a_1 = accountPersonUid;
  }
  protoOf($getSubmitterUidCOROUTINE$17).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.i8a_1 = this.e8a_1.n85_1;
            var tmp_1 = this;
            tmp_1.j8a_1 = 'ClazzAssignmentDao/getSubmitterUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.k8a_1 = this.e8a_1.p85_1;
            var tmp_3 = this;
            tmp_3.l8a_1 = this.k8a_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.e8a_1.n85_1.w38(), 'ClazzAssignmentDao/getSubmitterUid');
            doorNodeIdHeader(this_0, this.e8a_1.n85_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'assignmentUid', this.e8a_1.n85_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.f8a_1));
            parameter(this_0, 'clazzUid', this.e8a_1.n85_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.g8a_1));
            parameter(this_0, 'accountPersonUid', this.e8a_1.n85_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.h8a_1));
            tmp_4.m8a_1 = this_0;
            this.m8a_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.n8a_1 = this.l8a_1;
            var tmp_6 = this;
            tmp_6.o8a_1 = this.m8a_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.o8a_1, this.n8a_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.p8a_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.e8a_1.m85_1, this.p8a_1, this.e8a_1.n85_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.q8a_1 = this.kd_1;
              Napier_getInstance().q5d(this.q8a_1, 'DoorLog', ClazzAssignmentDao_Repo$getSubmitterUid$lambda(this.i8a_1, this.j8a_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.e8a_1.o85_1.r7r(this.f8a_1, this.g8a_1, this.h8a_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $findByUidWithBlockAsyncCOROUTINE$22(_this__u8e3s4, uid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.z8a_1 = _this__u8e3s4;
    this.a8b_1 = uid;
  }
  protoOf($findByUidWithBlockAsyncCOROUTINE$22).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.b8b_1 = this.z8a_1.n85_1;
            var tmp_1 = this;
            tmp_1.c8b_1 = 'ClazzAssignmentDao/findByUidWithBlockAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.d8b_1 = this.z8a_1.p85_1;
            var tmp_3 = this;
            tmp_3.e8b_1 = this.d8b_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.z8a_1.n85_1.w38(), 'ClazzAssignmentDao/findByUidWithBlockAsync');
            doorNodeIdHeader(this_0, this.z8a_1.n85_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.z8a_1.n85_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.a8b_1));
            tmp_4.f8b_1 = this_0;
            this.f8b_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.g8b_1 = this.e8b_1;
            var tmp_6 = this;
            tmp_6.h8b_1 = this.f8b_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.h8b_1, this.g8b_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.i8b_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.z8a_1.m85_1, this.i8b_1, this.z8a_1.n85_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.j8b_1 = this.kd_1;
              Napier_getInstance().q5d(this.j8b_1, 'DoorLog', ClazzAssignmentDao_Repo$findByUidWithBlockAsync$lambda(this.b8b_1, this.c8b_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.z8a_1.o85_1.t7r(this.a8b_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$27(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.s8b_1 = _this__u8e3s4;
    this.t8b_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$27).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.s8b_1.n85_1, 'ClazzAssignment', ClazzAssignmentDao_Repo$insertAsync$slambda_0(this.s8b_1, this.t8b_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ClazzAssignmentDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ClazzAssignmentDao.call(this);
    this.m85_1 = _db;
    this.n85_1 = _repo;
    this.o85_1 = _dao;
    this.p85_1 = _httpClient;
    this.q85_1 = _clientId;
    this.r85_1 = _endpoint;
    this.s85_1 = new RepoDaoFlowHelper(this.n85_1);
  }
  protoOf(ClazzAssignmentDao_Repo).n7r = function (assignmentUid, clazzUid, accountPersonUid, group) {
    var _result = this.o85_1.n7r(assignmentUid, clazzUid, accountPersonUid, group);
    return _result;
  };
  protoOf(ClazzAssignmentDao_Repo).o7r = function (assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption) {
    var tmp = this.o85_1.o7r(assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption);
    return new DoorRepositoryReplicatePullPagingSource(this.n85_1, 'ClazzAssignmentDao/getAssignmentSubmitterSummaryListForAssignment', tmp, ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda_0(this, assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption, null));
  };
  protoOf(ClazzAssignmentDao_Repo).p7r = function (clazzUid, groupSetUid, time, $completion) {
    var tmp = new $getSubmitterUidsByClazzOrGroupSetUidCOROUTINE$14(this, clazzUid, groupSetUid, time, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_Repo).q7r = function (clazzUid, groupSetUid, date, groupStr, $completion) {
    var tmp = new $getSubmitterUidsAndNameByClazzOrGroupSetUidCOROUTINE$15(this, clazzUid, groupSetUid, date, groupStr, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_Repo).r7r = function (assignmentUid, clazzUid, accountPersonUid, $completion) {
    var tmp = new $getSubmitterUidCOROUTINE$17(this, assignmentUid, clazzUid, accountPersonUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_Repo).s7r = function (uid, clazzUid) {
    var tmp = this.o85_1.s7r(uid, clazzUid);
    return this.s85_1.b67(tmp, ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda_0(this, uid, clazzUid, null));
  };
  protoOf(ClazzAssignmentDao_Repo).t7r = function (uid, $completion) {
    var tmp = new $findByUidWithBlockAsyncCOROUTINE$22(this, uid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_Repo).u7r = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.n85_1, 'ClazzAssignment', ClazzAssignmentDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(ClazzAssignmentDao_Repo).v7r = function (uidList, active, changeTime, $completion) {
    return withRepoChangeMonitorAsync(this.n85_1, 'ClazzAssignment', ClazzAssignmentDao_Repo$updateActiveByList$slambda_0(this, uidList, active, changeTime, null), $completion);
  };
  protoOf(ClazzAssignmentDao_Repo).w7r = function (assignmentUid, clazzUid, accountPersonUid) {
    var tmp = this.o85_1.w7r(assignmentUid, clazzUid, accountPersonUid);
    return this.s85_1.b67(tmp, ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda_0(this, assignmentUid, clazzUid, accountPersonUid, null));
  };
  protoOf(ClazzAssignmentDao_Repo).a7u = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$27(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_Repo).insertAsync = function (entity, $completion) {
    return this.a7u(entity instanceof ClazzAssignment ? entity : THROW_CCE(), $completion);
  };
  function ClazzDao() {
  }
  function $insertAsyncCOROUTINE$28(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.o8c_1 = _this__u8e3s4;
    this.p8c_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$28).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.q8c_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.o8c_1.s8c_1));
            if (this.p8c_1.u8c_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.q8c_1.b62(6, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.r8c_1 = suspendResult;
            this.p8c_1.u8c_1 = this.r8c_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.p8c_1.l8d_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.o8c_1.t8c_1.insertAsync(this.p8c_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.p8c_1.u8c_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ClazzDao_DoorWrapper(_db, _dao) {
    ClazzDao.call(this);
    this.s8c_1 = _db;
    this.t8c_1 = _dao;
  }
  protoOf(ClazzDao_DoorWrapper).u8b = function (code, $completion) {
    return this.t8c_1.u8b(code, $completion);
  };
  protoOf(ClazzDao_DoorWrapper).v8b = function (clazzUid, $completion) {
    return this.t8c_1.v8b(clazzUid, $completion);
  };
  protoOf(ClazzDao_DoorWrapper).w8b = function (uid) {
    return this.t8c_1.w8b(uid);
  };
  protoOf(ClazzDao_DoorWrapper).x8b = function (uid, $completion) {
    return this.t8c_1.x8b(uid, $completion);
  };
  protoOf(ClazzDao_DoorWrapper).y8b = function (entity, $completion) {
    entity.l8d_1 = systemTimeInMillis();
    return this.t8c_1.y8b(entity, $completion);
  };
  protoOf(ClazzDao_DoorWrapper).z8b = function (searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission) {
    return this.t8c_1.z8b(searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission);
  };
  protoOf(ClazzDao_DoorWrapper).a8c = function (accountPersonUid, clazzUid) {
    return this.t8c_1.a8c(accountPersonUid, clazzUid);
  };
  protoOf(ClazzDao_DoorWrapper).b8c = function (clazzUid, currentTime, accountPersonUid) {
    return this.t8c_1.b8c(clazzUid, currentTime, accountPersonUid);
  };
  protoOf(ClazzDao_DoorWrapper).c8c = function (clazzUid) {
    return this.t8c_1.c8c(clazzUid);
  };
  protoOf(ClazzDao_DoorWrapper).d8c = function (clazzUid) {
    return this.t8c_1.d8c(clazzUid);
  };
  protoOf(ClazzDao_DoorWrapper).e8c = function (clazzUid) {
    return this.t8c_1.e8c(clazzUid);
  };
  protoOf(ClazzDao_DoorWrapper).f8c = function (clazzUid, $completion) {
    return this.t8c_1.f8c(clazzUid, $completion);
  };
  protoOf(ClazzDao_DoorWrapper).t8d = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$28(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.t8d(entity instanceof Clazz ? entity : THROW_CCE(), $completion);
  };
  function ClazzDao_JdbcImpl$findByClazzCode$slambda$lambda(_result) {
    return mapNextRow(_result, null, ClazzDao_JdbcImpl$findByClazzCode$slambda$lambda$lambda(_result));
  }
  function ClazzDao_JdbcImpl$findByClazzCode$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_clazzUid = $_result.l5m('clazzUid');
      var _tmp_clazzName = $_result.rz('clazzName');
      var _tmp_clazzDesc = $_result.rz('clazzDesc');
      var _tmp_attendanceAverage = $_result.y65('attendanceAverage');
      var _tmp_clazzHolidayUMCalendarUid = $_result.l5m('clazzHolidayUMCalendarUid');
      var _tmp_clazzScheuleUMCalendarUid = $_result.l5m('clazzScheuleUMCalendarUid');
      var _tmp_isClazzActive = $_result.w65('isClazzActive');
      var _tmp_clazzLocationUid = $_result.l5m('clazzLocationUid');
      var _tmp_clazzStartTime = $_result.l5m('clazzStartTime');
      var _tmp_clazzEndTime = $_result.l5m('clazzEndTime');
      var _tmp_clazzFeatures = $_result.l5m('clazzFeatures');
      var _tmp_clazzSchoolUid = $_result.l5m('clazzSchoolUid');
      var _tmp_clazzEnrolmentPolicy = $_result.k5m('clazzEnrolmentPolicy');
      var _tmp_clazzTerminologyUid = $_result.l5m('clazzTerminologyUid');
      var _tmp_clazzMasterChangeSeqNum = $_result.l5m('clazzMasterChangeSeqNum');
      var _tmp_clazzLocalChangeSeqNum = $_result.l5m('clazzLocalChangeSeqNum');
      var _tmp_clazzLastChangedBy = $_result.k5m('clazzLastChangedBy');
      var _tmp_clazzLct = $_result.l5m('clazzLct');
      var _tmp_clazzTimeZone = $_result.rz('clazzTimeZone');
      var _tmp_clazzStudentsPersonGroupUid = $_result.l5m('clazzStudentsPersonGroupUid');
      var _tmp_clazzTeachersPersonGroupUid = $_result.l5m('clazzTeachersPersonGroupUid');
      var _tmp_clazzPendingStudentsPersonGroupUid = $_result.l5m('clazzPendingStudentsPersonGroupUid');
      var _tmp_clazzParentsPersonGroupUid = $_result.l5m('clazzParentsPersonGroupUid');
      var _tmp_clazzCode = $_result.rz('clazzCode');
      var _tmp_clazzOwnerPersonUid = $_result.l5m('clazzOwnerPersonUid');
      // Inline function 'kotlin.apply' call
      var this_0 = new Clazz();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByClazzCode.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.u8c_1 = _tmp_clazzUid;
      this_0.v8c_1 = _tmp_clazzName;
      this_0.w8c_1 = _tmp_clazzDesc;
      this_0.x8c_1 = _tmp_attendanceAverage;
      this_0.y8c_1 = _tmp_clazzHolidayUMCalendarUid;
      this_0.z8c_1 = _tmp_clazzScheuleUMCalendarUid;
      this_0.a8d_1 = _tmp_isClazzActive;
      this_0.b8d_1 = _tmp_clazzLocationUid;
      this_0.c8d_1 = _tmp_clazzStartTime;
      this_0.d8d_1 = _tmp_clazzEndTime;
      this_0.e8d_1 = _tmp_clazzFeatures;
      this_0.f8d_1 = _tmp_clazzSchoolUid;
      this_0.g8d_1 = _tmp_clazzEnrolmentPolicy;
      this_0.h8d_1 = _tmp_clazzTerminologyUid;
      this_0.i8d_1 = _tmp_clazzMasterChangeSeqNum;
      this_0.j8d_1 = _tmp_clazzLocalChangeSeqNum;
      this_0.k8d_1 = _tmp_clazzLastChangedBy;
      this_0.l8d_1 = _tmp_clazzLct;
      this_0.m8d_1 = _tmp_clazzTimeZone;
      this_0.n8d_1 = _tmp_clazzStudentsPersonGroupUid;
      this_0.o8d_1 = _tmp_clazzTeachersPersonGroupUid;
      this_0.p8d_1 = _tmp_clazzPendingStudentsPersonGroupUid;
      this_0.q8d_1 = _tmp_clazzParentsPersonGroupUid;
      this_0.r8d_1 = _tmp_clazzCode;
      this_0.s8d_1 = _tmp_clazzOwnerPersonUid;
      return this_0;
    };
  }
  function ClazzDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) {
    return mapNextRow(_result, null, ClazzDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result));
  }
  function ClazzDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_clazzUid = $_result.l5m('clazzUid');
      var _tmp_clazzName = $_result.rz('clazzName');
      var _tmp_clazzDesc = $_result.rz('clazzDesc');
      var _tmp_attendanceAverage = $_result.y65('attendanceAverage');
      var _tmp_clazzHolidayUMCalendarUid = $_result.l5m('clazzHolidayUMCalendarUid');
      var _tmp_clazzScheuleUMCalendarUid = $_result.l5m('clazzScheuleUMCalendarUid');
      var _tmp_isClazzActive = $_result.w65('isClazzActive');
      var _tmp_clazzLocationUid = $_result.l5m('clazzLocationUid');
      var _tmp_clazzStartTime = $_result.l5m('clazzStartTime');
      var _tmp_clazzEndTime = $_result.l5m('clazzEndTime');
      var _tmp_clazzFeatures = $_result.l5m('clazzFeatures');
      var _tmp_clazzSchoolUid = $_result.l5m('clazzSchoolUid');
      var _tmp_clazzEnrolmentPolicy = $_result.k5m('clazzEnrolmentPolicy');
      var _tmp_clazzTerminologyUid = $_result.l5m('clazzTerminologyUid');
      var _tmp_clazzMasterChangeSeqNum = $_result.l5m('clazzMasterChangeSeqNum');
      var _tmp_clazzLocalChangeSeqNum = $_result.l5m('clazzLocalChangeSeqNum');
      var _tmp_clazzLastChangedBy = $_result.k5m('clazzLastChangedBy');
      var _tmp_clazzLct = $_result.l5m('clazzLct');
      var _tmp_clazzTimeZone = $_result.rz('clazzTimeZone');
      var _tmp_clazzStudentsPersonGroupUid = $_result.l5m('clazzStudentsPersonGroupUid');
      var _tmp_clazzTeachersPersonGroupUid = $_result.l5m('clazzTeachersPersonGroupUid');
      var _tmp_clazzPendingStudentsPersonGroupUid = $_result.l5m('clazzPendingStudentsPersonGroupUid');
      var _tmp_clazzParentsPersonGroupUid = $_result.l5m('clazzParentsPersonGroupUid');
      var _tmp_clazzCode = $_result.rz('clazzCode');
      var _tmp_clazzOwnerPersonUid = $_result.l5m('clazzOwnerPersonUid');
      // Inline function 'kotlin.apply' call
      var this_0 = new Clazz();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUidAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.u8c_1 = _tmp_clazzUid;
      this_0.v8c_1 = _tmp_clazzName;
      this_0.w8c_1 = _tmp_clazzDesc;
      this_0.x8c_1 = _tmp_attendanceAverage;
      this_0.y8c_1 = _tmp_clazzHolidayUMCalendarUid;
      this_0.z8c_1 = _tmp_clazzScheuleUMCalendarUid;
      this_0.a8d_1 = _tmp_isClazzActive;
      this_0.b8d_1 = _tmp_clazzLocationUid;
      this_0.c8d_1 = _tmp_clazzStartTime;
      this_0.d8d_1 = _tmp_clazzEndTime;
      this_0.e8d_1 = _tmp_clazzFeatures;
      this_0.f8d_1 = _tmp_clazzSchoolUid;
      this_0.g8d_1 = _tmp_clazzEnrolmentPolicy;
      this_0.h8d_1 = _tmp_clazzTerminologyUid;
      this_0.i8d_1 = _tmp_clazzMasterChangeSeqNum;
      this_0.j8d_1 = _tmp_clazzLocalChangeSeqNum;
      this_0.k8d_1 = _tmp_clazzLastChangedBy;
      this_0.l8d_1 = _tmp_clazzLct;
      this_0.m8d_1 = _tmp_clazzTimeZone;
      this_0.n8d_1 = _tmp_clazzStudentsPersonGroupUid;
      this_0.o8d_1 = _tmp_clazzTeachersPersonGroupUid;
      this_0.p8d_1 = _tmp_clazzPendingStudentsPersonGroupUid;
      this_0.q8d_1 = _tmp_clazzParentsPersonGroupUid;
      this_0.r8d_1 = _tmp_clazzCode;
      this_0.s8d_1 = _tmp_clazzOwnerPersonUid;
      return this_0;
    };
  }
  function ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_clazzUid = $_result.l5m('clazzUid');
      var _tmp_clazzName = $_result.rz('clazzName');
      var _tmp_clazzDesc = $_result.rz('clazzDesc');
      var _tmp_attendanceAverage = $_result.y65('attendanceAverage');
      var _tmp_clazzHolidayUMCalendarUid = $_result.l5m('clazzHolidayUMCalendarUid');
      var _tmp_clazzScheuleUMCalendarUid = $_result.l5m('clazzScheuleUMCalendarUid');
      var _tmp_isClazzActive = $_result.w65('isClazzActive');
      var _tmp_clazzLocationUid = $_result.l5m('clazzLocationUid');
      var _tmp_clazzStartTime = $_result.l5m('clazzStartTime');
      var _tmp_clazzEndTime = $_result.l5m('clazzEndTime');
      var _tmp_clazzFeatures = $_result.l5m('clazzFeatures');
      var _tmp_clazzSchoolUid = $_result.l5m('clazzSchoolUid');
      var _tmp_clazzEnrolmentPolicy = $_result.k5m('clazzEnrolmentPolicy');
      var _tmp_clazzTerminologyUid = $_result.l5m('clazzTerminologyUid');
      var _tmp_clazzMasterChangeSeqNum = $_result.l5m('clazzMasterChangeSeqNum');
      var _tmp_clazzLocalChangeSeqNum = $_result.l5m('clazzLocalChangeSeqNum');
      var _tmp_clazzLastChangedBy = $_result.k5m('clazzLastChangedBy');
      var _tmp_clazzLct = $_result.l5m('clazzLct');
      var _tmp_clazzTimeZone = $_result.rz('clazzTimeZone');
      var _tmp_clazzStudentsPersonGroupUid = $_result.l5m('clazzStudentsPersonGroupUid');
      var _tmp_clazzTeachersPersonGroupUid = $_result.l5m('clazzTeachersPersonGroupUid');
      var _tmp_clazzPendingStudentsPersonGroupUid = $_result.l5m('clazzPendingStudentsPersonGroupUid');
      var _tmp_clazzParentsPersonGroupUid = $_result.l5m('clazzParentsPersonGroupUid');
      var _tmp_clazzCode = $_result.rz('clazzCode');
      var _tmp_clazzOwnerPersonUid = $_result.l5m('clazzOwnerPersonUid');
      // Inline function 'kotlin.apply' call
      var this_0 = new Clazz();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.u8c_1 = _tmp_clazzUid;
      this_0.v8c_1 = _tmp_clazzName;
      this_0.w8c_1 = _tmp_clazzDesc;
      this_0.x8c_1 = _tmp_attendanceAverage;
      this_0.y8c_1 = _tmp_clazzHolidayUMCalendarUid;
      this_0.z8c_1 = _tmp_clazzScheuleUMCalendarUid;
      this_0.a8d_1 = _tmp_isClazzActive;
      this_0.b8d_1 = _tmp_clazzLocationUid;
      this_0.c8d_1 = _tmp_clazzStartTime;
      this_0.d8d_1 = _tmp_clazzEndTime;
      this_0.e8d_1 = _tmp_clazzFeatures;
      this_0.f8d_1 = _tmp_clazzSchoolUid;
      this_0.g8d_1 = _tmp_clazzEnrolmentPolicy;
      this_0.h8d_1 = _tmp_clazzTerminologyUid;
      this_0.i8d_1 = _tmp_clazzMasterChangeSeqNum;
      this_0.j8d_1 = _tmp_clazzLocalChangeSeqNum;
      this_0.k8d_1 = _tmp_clazzLastChangedBy;
      this_0.l8d_1 = _tmp_clazzLct;
      this_0.m8d_1 = _tmp_clazzTimeZone;
      this_0.n8d_1 = _tmp_clazzStudentsPersonGroupUid;
      this_0.o8d_1 = _tmp_clazzTeachersPersonGroupUid;
      this_0.p8d_1 = _tmp_clazzPendingStudentsPersonGroupUid;
      this_0.q8d_1 = _tmp_clazzParentsPersonGroupUid;
      this_0.r8d_1 = _tmp_clazzCode;
      this_0.s8d_1 = _tmp_clazzOwnerPersonUid;
      return this_0;
    };
  }
  function ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda($uid, resultContinuation) {
    this.c8e_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda).e8e = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.e8e((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.d8e_1.i5h(1, this.c8e_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.d8e_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda(this.c8e_1, completion);
    i.d8e_1 = _stmt;
    return i;
  };
  function ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0($uid, resultContinuation) {
    var i = new ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda($uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.e8e(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda$lambda(_result) {
    return mapNextRow(_result, null, ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda$lambda$lambda(_result));
  }
  function ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_clazzUid = $_result.l5m('clazzUid');
      var _tmp_clazzName = $_result.rz('clazzName');
      var _tmp_clazzDesc = $_result.rz('clazzDesc');
      var _tmp_attendanceAverage = $_result.y65('attendanceAverage');
      var _tmp_clazzHolidayUMCalendarUid = $_result.l5m('clazzHolidayUMCalendarUid');
      var _tmp_clazzScheuleUMCalendarUid = $_result.l5m('clazzScheuleUMCalendarUid');
      var _tmp_isClazzActive = $_result.w65('isClazzActive');
      var _tmp_clazzLocationUid = $_result.l5m('clazzLocationUid');
      var _tmp_clazzStartTime = $_result.l5m('clazzStartTime');
      var _tmp_clazzEndTime = $_result.l5m('clazzEndTime');
      var _tmp_clazzFeatures = $_result.l5m('clazzFeatures');
      var _tmp_clazzSchoolUid = $_result.l5m('clazzSchoolUid');
      var _tmp_clazzEnrolmentPolicy = $_result.k5m('clazzEnrolmentPolicy');
      var _tmp_clazzTerminologyUid = $_result.l5m('clazzTerminologyUid');
      var _tmp_clazzMasterChangeSeqNum = $_result.l5m('clazzMasterChangeSeqNum');
      var _tmp_clazzLocalChangeSeqNum = $_result.l5m('clazzLocalChangeSeqNum');
      var _tmp_clazzLastChangedBy = $_result.k5m('clazzLastChangedBy');
      var _tmp_clazzLct = $_result.l5m('clazzLct');
      var _tmp_clazzTimeZone = $_result.rz('clazzTimeZone');
      var _tmp_clazzStudentsPersonGroupUid = $_result.l5m('clazzStudentsPersonGroupUid');
      var _tmp_clazzTeachersPersonGroupUid = $_result.l5m('clazzTeachersPersonGroupUid');
      var _tmp_clazzPendingStudentsPersonGroupUid = $_result.l5m('clazzPendingStudentsPersonGroupUid');
      var _tmp_clazzParentsPersonGroupUid = $_result.l5m('clazzParentsPersonGroupUid');
      var _tmp_clazzCode = $_result.rz('clazzCode');
      var _tmp_clazzOwnerPersonUid = $_result.l5m('clazzOwnerPersonUid');
      var _tmp_HolidayCalendar_nullCount = 0;
      var _tmp_umCalendarUid = $_result.l5m('umCalendarUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_umCalendarName = $_result.rz('umCalendarName');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_umCalendarCategory = $_result.k5m('umCalendarCategory');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_umCalendarActive = $_result.w65('umCalendarActive');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_umCalendarMasterChangeSeqNum = $_result.l5m('umCalendarMasterChangeSeqNum');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_umCalendarLocalChangeSeqNum = $_result.l5m('umCalendarLocalChangeSeqNum');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_umCalendarLastChangedBy = $_result.k5m('umCalendarLastChangedBy');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_umCalendarLct = $_result.l5m('umCalendarLct');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_HolidayCalendar_isAllNull = _tmp_HolidayCalendar_nullCount === 8;
      var _tmp_CourseTerminology_nullCount = 0;
      var _tmp_ctUid = $_result.l5m('ctUid');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_ctTitle = $_result.rz('ctTitle');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_ctTerminology = $_result.rz('ctTerminology');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_ctLct = $_result.l5m('ctLct');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_CourseTerminology_isAllNull = _tmp_CourseTerminology_nullCount === 4;
      var _tmp_CoursePicture_nullCount = 0;
      var _tmp_coursePictureUid = $_result.l5m('coursePictureUid');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_coursePictureLct = $_result.l5m('coursePictureLct');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_coursePictureUri = $_result.rz('coursePictureUri');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_coursePictureThumbnailUri = $_result.rz('coursePictureThumbnailUri');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_coursePictureActive = $_result.w65('coursePictureActive');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_CoursePicture_isAllNull = _tmp_CoursePicture_nullCount === 5;
      // Inline function 'kotlin.apply' call
      var this_0 = new ClazzWithHolidayCalendarAndAndTerminology();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUidWithHolidayCalendarAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.u8c_1 = _tmp_clazzUid;
      this_0.v8c_1 = _tmp_clazzName;
      this_0.w8c_1 = _tmp_clazzDesc;
      this_0.x8c_1 = _tmp_attendanceAverage;
      this_0.y8c_1 = _tmp_clazzHolidayUMCalendarUid;
      this_0.z8c_1 = _tmp_clazzScheuleUMCalendarUid;
      this_0.a8d_1 = _tmp_isClazzActive;
      this_0.b8d_1 = _tmp_clazzLocationUid;
      this_0.c8d_1 = _tmp_clazzStartTime;
      this_0.d8d_1 = _tmp_clazzEndTime;
      this_0.e8d_1 = _tmp_clazzFeatures;
      this_0.f8d_1 = _tmp_clazzSchoolUid;
      this_0.g8d_1 = _tmp_clazzEnrolmentPolicy;
      this_0.h8d_1 = _tmp_clazzTerminologyUid;
      this_0.i8d_1 = _tmp_clazzMasterChangeSeqNum;
      this_0.j8d_1 = _tmp_clazzLocalChangeSeqNum;
      this_0.k8d_1 = _tmp_clazzLastChangedBy;
      this_0.l8d_1 = _tmp_clazzLct;
      this_0.m8d_1 = _tmp_clazzTimeZone;
      this_0.n8d_1 = _tmp_clazzStudentsPersonGroupUid;
      this_0.o8d_1 = _tmp_clazzTeachersPersonGroupUid;
      this_0.p8d_1 = _tmp_clazzPendingStudentsPersonGroupUid;
      this_0.q8d_1 = _tmp_clazzParentsPersonGroupUid;
      this_0.r8d_1 = _tmp_clazzCode;
      this_0.s8d_1 = _tmp_clazzOwnerPersonUid;
      if (!_tmp_HolidayCalendar_isAllNull) {
        var tmp_16 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new HolidayCalendar();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUidWithHolidayCalendarAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.f8e_1 = _tmp_umCalendarUid;
        this_1.g8e_1 = _tmp_umCalendarName;
        this_1.h8e_1 = _tmp_umCalendarCategory;
        this_1.i8e_1 = _tmp_umCalendarActive;
        this_1.j8e_1 = _tmp_umCalendarMasterChangeSeqNum;
        this_1.k8e_1 = _tmp_umCalendarLocalChangeSeqNum;
        this_1.l8e_1 = _tmp_umCalendarLastChangedBy;
        this_1.m8e_1 = _tmp_umCalendarLct;
        tmp_16.m8f_1 = this_1;
      }
      if (!_tmp_CourseTerminology_isAllNull) {
        var tmp_17 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new CourseTerminology();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUidWithHolidayCalendarAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.p8f_1 = _tmp_ctUid;
        this_2.q8f_1 = _tmp_ctTitle;
        this_2.r8f_1 = _tmp_ctTerminology;
        this_2.s8f_1 = _tmp_ctLct;
        tmp_17.n8f_1 = this_2;
      }
      if (!_tmp_CoursePicture_isAllNull) {
        var tmp_18 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new CoursePicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUidWithHolidayCalendarAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.t8f_1 = _tmp_coursePictureUid;
        this_3.u8f_1 = _tmp_coursePictureLct;
        this_3.v8f_1 = _tmp_coursePictureUri;
        this_3.w8f_1 = _tmp_coursePictureThumbnailUri;
        this_3.x8f_1 = _tmp_coursePictureActive;
        tmp_18.o8f_1 = this_3;
      }
      return this_0;
    };
  }
  function ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda$lambda$lambda(_result));
  }
  function ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_numStudents = $_result.k5m('numStudents');
      var _tmp_numTeachers = $_result.k5m('numTeachers');
      var _tmp_teacherNames = $_result.rz('teacherNames');
      var _tmp_lastRecorded = $_result.l5m('lastRecorded');
      var _tmp_clazzUid = $_result.l5m('clazzUid');
      var _tmp_clazzName = $_result.rz('clazzName');
      var _tmp_clazzDesc = $_result.rz('clazzDesc');
      var _tmp_attendanceAverage = $_result.y65('attendanceAverage');
      var _tmp_clazzHolidayUMCalendarUid = $_result.l5m('clazzHolidayUMCalendarUid');
      var _tmp_clazzScheuleUMCalendarUid = $_result.l5m('clazzScheuleUMCalendarUid');
      var _tmp_isClazzActive = $_result.w65('isClazzActive');
      var _tmp_clazzLocationUid = $_result.l5m('clazzLocationUid');
      var _tmp_clazzStartTime = $_result.l5m('clazzStartTime');
      var _tmp_clazzEndTime = $_result.l5m('clazzEndTime');
      var _tmp_clazzFeatures = $_result.l5m('clazzFeatures');
      var _tmp_clazzSchoolUid = $_result.l5m('clazzSchoolUid');
      var _tmp_clazzEnrolmentPolicy = $_result.k5m('clazzEnrolmentPolicy');
      var _tmp_clazzTerminologyUid = $_result.l5m('clazzTerminologyUid');
      var _tmp_clazzMasterChangeSeqNum = $_result.l5m('clazzMasterChangeSeqNum');
      var _tmp_clazzLocalChangeSeqNum = $_result.l5m('clazzLocalChangeSeqNum');
      var _tmp_clazzLastChangedBy = $_result.k5m('clazzLastChangedBy');
      var _tmp_clazzLct = $_result.l5m('clazzLct');
      var _tmp_clazzTimeZone = $_result.rz('clazzTimeZone');
      var _tmp_clazzStudentsPersonGroupUid = $_result.l5m('clazzStudentsPersonGroupUid');
      var _tmp_clazzTeachersPersonGroupUid = $_result.l5m('clazzTeachersPersonGroupUid');
      var _tmp_clazzPendingStudentsPersonGroupUid = $_result.l5m('clazzPendingStudentsPersonGroupUid');
      var _tmp_clazzParentsPersonGroupUid = $_result.l5m('clazzParentsPersonGroupUid');
      var _tmp_clazzCode = $_result.rz('clazzCode');
      var _tmp_clazzOwnerPersonUid = $_result.l5m('clazzOwnerPersonUid');
      var _tmp_ClazzEnrolment_nullCount = 0;
      var _tmp_clazzEnrolmentUid = $_result.l5m('clazzEnrolmentUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_clazzEnrolmentPersonUid = $_result.l5m('clazzEnrolmentPersonUid');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_clazzEnrolmentClazzUid = $_result.l5m('clazzEnrolmentClazzUid');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_clazzEnrolmentDateJoined = $_result.l5m('clazzEnrolmentDateJoined');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_clazzEnrolmentDateLeft = $_result.l5m('clazzEnrolmentDateLeft');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_clazzEnrolmentRole = $_result.k5m('clazzEnrolmentRole');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_clazzEnrolmentAttendancePercentage = $_result.y65('clazzEnrolmentAttendancePercentage');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_clazzEnrolmentActive = $_result.w65('clazzEnrolmentActive');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_clazzEnrolmentLeavingReasonUid = $_result.l5m('clazzEnrolmentLeavingReasonUid');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_clazzEnrolmentOutcome = $_result.k5m('clazzEnrolmentOutcome');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.l5m('clazzEnrolmentLocalChangeSeqNum');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.l5m('clazzEnrolmentMasterChangeSeqNum');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_clazzEnrolmentLastChangedBy = $_result.k5m('clazzEnrolmentLastChangedBy');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_clazzEnrolmentLct = $_result.l5m('clazzEnrolmentLct');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_ClazzEnrolment_isAllNull = _tmp_ClazzEnrolment_nullCount === 14;
      var _tmp_CourseTerminology_nullCount = 0;
      var _tmp_ctUid = $_result.l5m('ctUid');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_ctTitle = $_result.rz('ctTitle');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_ctTerminology = $_result.rz('ctTerminology');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_ctLct = $_result.l5m('ctLct');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_CourseTerminology_isAllNull = _tmp_CourseTerminology_nullCount === 4;
      var _tmp_CoursePicture_nullCount = 0;
      var _tmp_coursePictureUid = $_result.l5m('coursePictureUid');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_coursePictureLct = $_result.l5m('coursePictureLct');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_coursePictureUri = $_result.rz('coursePictureUri');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_coursePictureThumbnailUri = $_result.rz('coursePictureThumbnailUri');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_coursePictureActive = $_result.w65('coursePictureActive');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_CoursePicture_isAllNull = _tmp_CoursePicture_nullCount === 5;
      // Inline function 'kotlin.apply' call
      var this_0 = new ClazzWithListDisplayDetails();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.x8g_1 = _tmp_numStudents;
      this_0.y8g_1 = _tmp_numTeachers;
      this_0.z8g_1 = _tmp_teacherNames;
      this_0.a8h_1 = _tmp_lastRecorded;
      this_0.u8c_1 = _tmp_clazzUid;
      this_0.v8c_1 = _tmp_clazzName;
      this_0.w8c_1 = _tmp_clazzDesc;
      this_0.x8c_1 = _tmp_attendanceAverage;
      this_0.y8c_1 = _tmp_clazzHolidayUMCalendarUid;
      this_0.z8c_1 = _tmp_clazzScheuleUMCalendarUid;
      this_0.a8d_1 = _tmp_isClazzActive;
      this_0.b8d_1 = _tmp_clazzLocationUid;
      this_0.c8d_1 = _tmp_clazzStartTime;
      this_0.d8d_1 = _tmp_clazzEndTime;
      this_0.e8d_1 = _tmp_clazzFeatures;
      this_0.f8d_1 = _tmp_clazzSchoolUid;
      this_0.g8d_1 = _tmp_clazzEnrolmentPolicy;
      this_0.h8d_1 = _tmp_clazzTerminologyUid;
      this_0.i8d_1 = _tmp_clazzMasterChangeSeqNum;
      this_0.j8d_1 = _tmp_clazzLocalChangeSeqNum;
      this_0.k8d_1 = _tmp_clazzLastChangedBy;
      this_0.l8d_1 = _tmp_clazzLct;
      this_0.m8d_1 = _tmp_clazzTimeZone;
      this_0.n8d_1 = _tmp_clazzStudentsPersonGroupUid;
      this_0.o8d_1 = _tmp_clazzTeachersPersonGroupUid;
      this_0.p8d_1 = _tmp_clazzPendingStudentsPersonGroupUid;
      this_0.q8d_1 = _tmp_clazzParentsPersonGroupUid;
      this_0.r8d_1 = _tmp_clazzCode;
      this_0.s8d_1 = _tmp_clazzOwnerPersonUid;
      if (!_tmp_ClazzEnrolment_isAllNull) {
        var tmp_22 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new ClazzEnrolment();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.e8h_1 = _tmp_clazzEnrolmentUid;
        this_1.f8h_1 = _tmp_clazzEnrolmentPersonUid;
        this_1.g8h_1 = _tmp_clazzEnrolmentClazzUid;
        this_1.h8h_1 = _tmp_clazzEnrolmentDateJoined;
        this_1.i8h_1 = _tmp_clazzEnrolmentDateLeft;
        this_1.j8h_1 = _tmp_clazzEnrolmentRole;
        this_1.k8h_1 = _tmp_clazzEnrolmentAttendancePercentage;
        this_1.l8h_1 = _tmp_clazzEnrolmentActive;
        this_1.m8h_1 = _tmp_clazzEnrolmentLeavingReasonUid;
        this_1.n8h_1 = _tmp_clazzEnrolmentOutcome;
        this_1.o8h_1 = _tmp_clazzEnrolmentLocalChangeSeqNum;
        this_1.p8h_1 = _tmp_clazzEnrolmentMasterChangeSeqNum;
        this_1.q8h_1 = _tmp_clazzEnrolmentLastChangedBy;
        this_1.r8h_1 = _tmp_clazzEnrolmentLct;
        tmp_22.b8h_1 = this_1;
      }
      if (!_tmp_CourseTerminology_isAllNull) {
        var tmp_23 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new CourseTerminology();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.p8f_1 = _tmp_ctUid;
        this_2.q8f_1 = _tmp_ctTitle;
        this_2.r8f_1 = _tmp_ctTerminology;
        this_2.s8f_1 = _tmp_ctLct;
        tmp_23.c8h_1 = this_2;
      }
      if (!_tmp_CoursePicture_isAllNull) {
        var tmp_24 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new CoursePicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.t8f_1 = _tmp_coursePictureUid;
        this_3.u8f_1 = _tmp_coursePictureLct;
        this_3.v8f_1 = _tmp_coursePictureUri;
        this_3.w8f_1 = _tmp_coursePictureThumbnailUri;
        this_3.x8f_1 = _tmp_coursePictureActive;
        tmp_24.d8h_1 = this_3;
      }
      return this_0;
    };
  }
  function ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda$lambda$lambda(_result));
  }
  function ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, $_limit, $_offset, resultContinuation) {
    this.a8i_1 = $currentTime;
    this.b8i_1 = $accountPersonUid;
    this.c8i_1 = $permission;
    this.d8i_1 = $searchQuery;
    this.e8i_1 = $excludeSelectedClazzList;
    this.f8i_1 = $filter;
    this.g8i_1 = $sortOrder;
    this.h8i_1 = $_limit;
    this.i8i_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda).k8i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda).he = function (p1, $completion) {
    return this.k8i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.j8i_1.i5h(1, this.a8i_1);
            this.j8i_1.i5h(2, this.a8i_1);
            this.j8i_1.i5h(3, this.b8i_1);
            this.j8i_1.i5h(4, this.b8i_1);
            this.j8i_1.i5h(5, this.b8i_1);
            this.j8i_1.i5h(6, this.b8i_1);
            this.j8i_1.i5h(7, this.c8i_1);
            this.j8i_1.i5h(8, this.b8i_1);
            this.j8i_1.i5h(9, this.b8i_1);
            this.j8i_1.i5h(10, this.c8i_1);
            this.j8i_1.l5h(11, this.d8i_1);
            var tmp_0 = this.j8i_1.e5g();
            var this_0 = this.e8i_1;
            this.j8i_1.m5h(12, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.j8i_1.h5h(13, this.f8i_1);
            this.j8i_1.h5h(14, this.f8i_1);
            this.j8i_1.i5h(15, this.a8i_1);
            this.j8i_1.i5h(16, this.a8i_1);
            this.j8i_1.h5h(17, this.g8i_1);
            this.j8i_1.h5h(18, this.g8i_1);
            this.j8i_1.h5h(19, this.g8i_1);
            this.j8i_1.h5h(20, this.g8i_1);
            this.j8i_1.h5h(21, this.h8i_1);
            this.j8i_1.h5h(22, this.i8i_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.j8i_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda(this.a8i_1, this.b8i_1, this.c8i_1, this.d8i_1, this.e8i_1, this.f8i_1, this.g8i_1, this.h8i_1, this.i8i_1, completion);
    i.j8i_1 = _stmt;
    return i;
  };
  function ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda_0($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, $_limit, $_offset, resultContinuation) {
    var i = new ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.k8i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, resultContinuation) {
    this.t8i_1 = $currentTime;
    this.u8i_1 = $accountPersonUid;
    this.v8i_1 = $permission;
    this.w8i_1 = $searchQuery;
    this.x8i_1 = $excludeSelectedClazzList;
    this.y8i_1 = $filter;
    this.z8i_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.a8j_1.i5h(1, this.t8i_1);
            this.a8j_1.i5h(2, this.t8i_1);
            this.a8j_1.i5h(3, this.u8i_1);
            this.a8j_1.i5h(4, this.u8i_1);
            this.a8j_1.i5h(5, this.u8i_1);
            this.a8j_1.i5h(6, this.u8i_1);
            this.a8j_1.i5h(7, this.v8i_1);
            this.a8j_1.i5h(8, this.u8i_1);
            this.a8j_1.i5h(9, this.u8i_1);
            this.a8j_1.i5h(10, this.v8i_1);
            this.a8j_1.l5h(11, this.w8i_1);
            var tmp_0 = this.a8j_1.e5g();
            var this_0 = this.x8i_1;
            this.a8j_1.m5h(12, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.a8j_1.h5h(13, this.y8i_1);
            this.a8j_1.h5h(14, this.y8i_1);
            this.a8j_1.i5h(15, this.t8i_1);
            this.a8j_1.i5h(16, this.t8i_1);
            this.a8j_1.h5h(17, this.z8i_1);
            this.a8j_1.h5h(18, this.z8i_1);
            this.a8j_1.h5h(19, this.z8i_1);
            this.a8j_1.h5h(20, this.z8i_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.a8j_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda(this.t8i_1, this.u8i_1, this.v8i_1, this.w8i_1, this.x8i_1, this.y8i_1, this.z8i_1, completion);
    i.a8j_1 = _stmt;
    return i;
  };
  function ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda_0($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, resultContinuation) {
    var i = new ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_hasAttendancePermission = $_result.w65('hasAttendancePermission');
      var _tmp_hasViewMembersPermission = $_result.w65('hasViewMembersPermission');
      var _tmp_hasLearningRecordPermission = $_result.w65('hasLearningRecordPermission');
      var _tmp_Clazz_nullCount = 0;
      var _tmp_clazzUid = $_result.l5m('clazzUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_clazzName = $_result.rz('clazzName');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_clazzDesc = $_result.rz('clazzDesc');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_attendanceAverage = $_result.y65('attendanceAverage');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_clazzHolidayUMCalendarUid = $_result.l5m('clazzHolidayUMCalendarUid');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_clazzScheuleUMCalendarUid = $_result.l5m('clazzScheuleUMCalendarUid');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_isClazzActive = $_result.w65('isClazzActive');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_clazzLocationUid = $_result.l5m('clazzLocationUid');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_clazzStartTime = $_result.l5m('clazzStartTime');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_clazzEndTime = $_result.l5m('clazzEndTime');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_clazzFeatures = $_result.l5m('clazzFeatures');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_clazzSchoolUid = $_result.l5m('clazzSchoolUid');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_clazzEnrolmentPolicy = $_result.k5m('clazzEnrolmentPolicy');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_clazzTerminologyUid = $_result.l5m('clazzTerminologyUid');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_clazzMasterChangeSeqNum = $_result.l5m('clazzMasterChangeSeqNum');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_clazzLocalChangeSeqNum = $_result.l5m('clazzLocalChangeSeqNum');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_clazzLastChangedBy = $_result.k5m('clazzLastChangedBy');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_clazzLct = $_result.l5m('clazzLct');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_clazzTimeZone = $_result.rz('clazzTimeZone');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_clazzStudentsPersonGroupUid = $_result.l5m('clazzStudentsPersonGroupUid');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_clazzTeachersPersonGroupUid = $_result.l5m('clazzTeachersPersonGroupUid');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_clazzPendingStudentsPersonGroupUid = $_result.l5m('clazzPendingStudentsPersonGroupUid');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_clazzParentsPersonGroupUid = $_result.l5m('clazzParentsPersonGroupUid');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_clazzCode = $_result.rz('clazzCode');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_clazzOwnerPersonUid = $_result.l5m('clazzOwnerPersonUid');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_Clazz_isAllNull = _tmp_Clazz_nullCount === 25;
      // Inline function 'kotlin.apply' call
      var this_0 = new ClazzAndDetailPermissions();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.clazzAndDetailPermissionsAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.c8j_1 = _tmp_hasAttendancePermission;
      this_0.d8j_1 = _tmp_hasViewMembersPermission;
      this_0.e8j_1 = _tmp_hasLearningRecordPermission;
      if (!_tmp_Clazz_isAllNull) {
        var tmp_24 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new Clazz();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.clazzAndDetailPermissionsAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.u8c_1 = _tmp_clazzUid;
        this_1.v8c_1 = _tmp_clazzName;
        this_1.w8c_1 = _tmp_clazzDesc;
        this_1.x8c_1 = _tmp_attendanceAverage;
        this_1.y8c_1 = _tmp_clazzHolidayUMCalendarUid;
        this_1.z8c_1 = _tmp_clazzScheuleUMCalendarUid;
        this_1.a8d_1 = _tmp_isClazzActive;
        this_1.b8d_1 = _tmp_clazzLocationUid;
        this_1.c8d_1 = _tmp_clazzStartTime;
        this_1.d8d_1 = _tmp_clazzEndTime;
        this_1.e8d_1 = _tmp_clazzFeatures;
        this_1.f8d_1 = _tmp_clazzSchoolUid;
        this_1.g8d_1 = _tmp_clazzEnrolmentPolicy;
        this_1.h8d_1 = _tmp_clazzTerminologyUid;
        this_1.i8d_1 = _tmp_clazzMasterChangeSeqNum;
        this_1.j8d_1 = _tmp_clazzLocalChangeSeqNum;
        this_1.k8d_1 = _tmp_clazzLastChangedBy;
        this_1.l8d_1 = _tmp_clazzLct;
        this_1.m8d_1 = _tmp_clazzTimeZone;
        this_1.n8d_1 = _tmp_clazzStudentsPersonGroupUid;
        this_1.o8d_1 = _tmp_clazzTeachersPersonGroupUid;
        this_1.p8d_1 = _tmp_clazzPendingStudentsPersonGroupUid;
        this_1.q8d_1 = _tmp_clazzParentsPersonGroupUid;
        this_1.r8d_1 = _tmp_clazzCode;
        this_1.s8d_1 = _tmp_clazzOwnerPersonUid;
        tmp_24.b8j_1 = this_1;
      }
      return this_0;
    };
  }
  function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda($clazzUid, $accountPersonUid, resultContinuation) {
    this.n8j_1 = $clazzUid;
    this.o8j_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda).q8j = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.q8j((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.p8j_1.i5h(1, this.n8j_1);
            this.p8j_1.i5h(2, this.o8j_1);
            this.p8j_1.i5h(3, this.o8j_1);
            this.p8j_1.i5h(4, this.n8j_1);
            this.p8j_1.i5h(5, this.o8j_1);
            this.p8j_1.i5h(6, this.o8j_1);
            this.p8j_1.i5h(7, this.n8j_1);
            this.p8j_1.i5h(8, this.o8j_1);
            this.p8j_1.i5h(9, this.o8j_1);
            this.p8j_1.i5h(10, this.n8j_1);
            this.p8j_1.i5h(11, this.o8j_1);
            this.p8j_1.i5h(12, this.o8j_1);
            this.p8j_1.i5h(13, this.n8j_1);
            this.p8j_1.i5h(14, this.o8j_1);
            this.p8j_1.i5h(15, this.o8j_1);
            this.p8j_1.i5h(16, this.n8j_1);
            this.p8j_1.i5h(17, this.o8j_1);
            this.p8j_1.i5h(18, this.o8j_1);
            this.p8j_1.i5h(19, this.n8j_1);
            this.p8j_1.i5h(20, this.n8j_1);
            this.p8j_1.i5h(21, this.o8j_1);
            this.p8j_1.i5h(22, this.o8j_1);
            this.p8j_1.i5h(23, this.n8j_1);
            this.p8j_1.i5h(24, this.o8j_1);
            this.p8j_1.i5h(25, this.o8j_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.p8j_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda(this.n8j_1, this.o8j_1, completion);
    i.p8j_1 = _stmt;
    return i;
  };
  function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda_0($clazzUid, $accountPersonUid, resultContinuation) {
    var i = new ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda($clazzUid, $accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.q8j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda$lambda$lambda(_result));
  }
  function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_numStudents = $_result.k5m('numStudents');
      var _tmp_numTeachers = $_result.k5m('numTeachers');
      var _tmp_activeUserIsStudent = $_result.w65('activeUserIsStudent');
      var _tmp_Clazz_nullCount = 0;
      var _tmp_clazzUid = $_result.l5m('clazzUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_clazzName = $_result.rz('clazzName');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_clazzDesc = $_result.rz('clazzDesc');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_attendanceAverage = $_result.y65('attendanceAverage');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_clazzHolidayUMCalendarUid = $_result.l5m('clazzHolidayUMCalendarUid');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_clazzScheuleUMCalendarUid = $_result.l5m('clazzScheuleUMCalendarUid');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_isClazzActive = $_result.w65('isClazzActive');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_clazzLocationUid = $_result.l5m('clazzLocationUid');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_clazzStartTime = $_result.l5m('clazzStartTime');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_clazzEndTime = $_result.l5m('clazzEndTime');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_clazzFeatures = $_result.l5m('clazzFeatures');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_clazzSchoolUid = $_result.l5m('clazzSchoolUid');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_clazzEnrolmentPolicy = $_result.k5m('clazzEnrolmentPolicy');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_clazzTerminologyUid = $_result.l5m('clazzTerminologyUid');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_clazzMasterChangeSeqNum = $_result.l5m('clazzMasterChangeSeqNum');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_clazzLocalChangeSeqNum = $_result.l5m('clazzLocalChangeSeqNum');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_clazzLastChangedBy = $_result.k5m('clazzLastChangedBy');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_clazzLct = $_result.l5m('clazzLct');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_clazzTimeZone = $_result.rz('clazzTimeZone');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_clazzStudentsPersonGroupUid = $_result.l5m('clazzStudentsPersonGroupUid');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_clazzTeachersPersonGroupUid = $_result.l5m('clazzTeachersPersonGroupUid');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_clazzPendingStudentsPersonGroupUid = $_result.l5m('clazzPendingStudentsPersonGroupUid');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_clazzParentsPersonGroupUid = $_result.l5m('clazzParentsPersonGroupUid');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_clazzCode = $_result.rz('clazzCode');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_clazzOwnerPersonUid = $_result.l5m('clazzOwnerPersonUid');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_Clazz_isAllNull = _tmp_Clazz_nullCount === 25;
      var _tmp_CourseTerminology_nullCount = 0;
      var _tmp_ctUid = $_result.l5m('ctUid');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_ctTitle = $_result.rz('ctTitle');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_ctTerminology = $_result.rz('ctTerminology');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_ctLct = $_result.l5m('ctLct');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_CourseTerminology_isAllNull = _tmp_CourseTerminology_nullCount === 4;
      var _tmp_CoursePicture_nullCount = 0;
      var _tmp_coursePictureUid = $_result.l5m('coursePictureUid');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_coursePictureLct = $_result.l5m('coursePictureLct');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_coursePictureUri = $_result.rz('coursePictureUri');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_coursePictureThumbnailUri = $_result.rz('coursePictureThumbnailUri');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_coursePictureActive = $_result.w65('coursePictureActive');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_CoursePicture_isAllNull = _tmp_CoursePicture_nullCount === 5;
      // Inline function 'kotlin.apply' call
      var this_0 = new ClazzAndDisplayDetails();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getClazzWithDisplayDetails.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.u8j_1 = _tmp_numStudents;
      this_0.v8j_1 = _tmp_numTeachers;
      this_0.w8j_1 = _tmp_activeUserIsStudent;
      if (!_tmp_Clazz_isAllNull) {
        var tmp_33 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new Clazz();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getClazzWithDisplayDetails.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.u8c_1 = _tmp_clazzUid;
        this_1.v8c_1 = _tmp_clazzName;
        this_1.w8c_1 = _tmp_clazzDesc;
        this_1.x8c_1 = _tmp_attendanceAverage;
        this_1.y8c_1 = _tmp_clazzHolidayUMCalendarUid;
        this_1.z8c_1 = _tmp_clazzScheuleUMCalendarUid;
        this_1.a8d_1 = _tmp_isClazzActive;
        this_1.b8d_1 = _tmp_clazzLocationUid;
        this_1.c8d_1 = _tmp_clazzStartTime;
        this_1.d8d_1 = _tmp_clazzEndTime;
        this_1.e8d_1 = _tmp_clazzFeatures;
        this_1.f8d_1 = _tmp_clazzSchoolUid;
        this_1.g8d_1 = _tmp_clazzEnrolmentPolicy;
        this_1.h8d_1 = _tmp_clazzTerminologyUid;
        this_1.i8d_1 = _tmp_clazzMasterChangeSeqNum;
        this_1.j8d_1 = _tmp_clazzLocalChangeSeqNum;
        this_1.k8d_1 = _tmp_clazzLastChangedBy;
        this_1.l8d_1 = _tmp_clazzLct;
        this_1.m8d_1 = _tmp_clazzTimeZone;
        this_1.n8d_1 = _tmp_clazzStudentsPersonGroupUid;
        this_1.o8d_1 = _tmp_clazzTeachersPersonGroupUid;
        this_1.p8d_1 = _tmp_clazzPendingStudentsPersonGroupUid;
        this_1.q8d_1 = _tmp_clazzParentsPersonGroupUid;
        this_1.r8d_1 = _tmp_clazzCode;
        this_1.s8d_1 = _tmp_clazzOwnerPersonUid;
        tmp_33.r8j_1 = this_1;
      }
      if (!_tmp_CourseTerminology_isAllNull) {
        var tmp_34 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new CourseTerminology();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getClazzWithDisplayDetails.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.p8f_1 = _tmp_ctUid;
        this_2.q8f_1 = _tmp_ctTitle;
        this_2.r8f_1 = _tmp_ctTerminology;
        this_2.s8f_1 = _tmp_ctLct;
        tmp_34.s8j_1 = this_2;
      }
      if (!_tmp_CoursePicture_isAllNull) {
        var tmp_35 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new CoursePicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getClazzWithDisplayDetails.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.t8f_1 = _tmp_coursePictureUid;
        this_3.u8f_1 = _tmp_coursePictureLct;
        this_3.v8f_1 = _tmp_coursePictureUri;
        this_3.w8f_1 = _tmp_coursePictureThumbnailUri;
        this_3.x8f_1 = _tmp_coursePictureActive;
        tmp_35.t8j_1 = this_3;
      }
      return this_0;
    };
  }
  function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda($currentTime, $clazzUid, $accountPersonUid, resultContinuation) {
    this.f8k_1 = $currentTime;
    this.g8k_1 = $clazzUid;
    this.h8k_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda).j8k = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda).he = function (p1, $completion) {
    return this.j8k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.i8k_1.i5h(1, this.f8k_1);
            this.i8k_1.i5h(2, this.f8k_1);
            this.i8k_1.i5h(3, this.g8k_1);
            this.i8k_1.i5h(4, this.h8k_1);
            this.i8k_1.i5h(5, this.g8k_1);
            this.i8k_1.i5h(6, this.g8k_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.i8k_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda(this.f8k_1, this.g8k_1, this.h8k_1, completion);
    i.i8k_1 = _stmt;
    return i;
  };
  function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda_0($currentTime, $clazzUid, $accountPersonUid, resultContinuation) {
    var i = new ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda($currentTime, $clazzUid, $accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.j8k(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.k60(1);
    };
  }
  function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda($clazzUid, resultContinuation) {
    this.s8k_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).u8k = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.u8k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.t8k_1.i5h(1, this.s8k_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.t8k_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda(this.s8k_1, completion);
    i.t8k_1 = _stmt;
    return i;
  };
  function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda_0($clazzUid, resultContinuation) {
    var i = new ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda($clazzUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.u8k(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_clazzName = $_result.rz('clazzName');
      var _tmp_CourseTerminology_nullCount = 0;
      var _tmp_ctUid = $_result.l5m('ctUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_ctTitle = $_result.rz('ctTitle');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_ctTerminology = $_result.rz('ctTerminology');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_ctLct = $_result.l5m('ctLct');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_CourseTerminology_isAllNull = _tmp_CourseTerminology_nullCount === 4;
      // Inline function 'kotlin.apply' call
      var this_0 = new ClazzNameAndTerminology();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getClazzNameAndTerminologyAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.v8k_1 = _tmp_clazzName;
      if (!_tmp_CourseTerminology_isAllNull) {
        var tmp_3 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new CourseTerminology();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getClazzNameAndTerminologyAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.p8f_1 = _tmp_ctUid;
        this_1.q8f_1 = _tmp_ctTitle;
        this_1.r8f_1 = _tmp_ctTerminology;
        this_1.s8f_1 = _tmp_ctLct;
        tmp_3.w8k_1 = this_1;
      }
      return this_0;
    };
  }
  function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda($clazzUid, resultContinuation) {
    this.f8l_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda).h8l = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.h8l((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.g8l_1.i5h(1, this.f8l_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.g8l_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda(this.f8l_1, completion);
    i.g8l_1 = _stmt;
    return i;
  };
  function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda_0($clazzUid, resultContinuation) {
    var i = new ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda($clazzUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.h8l(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.k60(1);
    };
  }
  function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda($clazzUid, resultContinuation) {
    this.q8l_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda).u8k = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.u8k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.r8l_1.i5h(1, this.q8l_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.r8l_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda(this.q8l_1, completion);
    i.r8l_1 = _stmt;
    return i;
  };
  function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda_0($clazzUid, resultContinuation) {
    var i = new ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda($clazzUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.u8k(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda$lambda(_result) {
    return mapNextRow(_result, null, ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda$lambda$lambda(_result));
  }
  function ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.k60(1);
    };
  }
  function ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.s8l_1);
  }
  protoOf(ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO Clazz (clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1).w8l = function (stmt, entity) {
    if (entity.u8c_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.u8c_1);
    }
    stmt.l5h(2, entity.v8c_1);
    stmt.l5h(3, entity.w8c_1);
    stmt.j5h(4, entity.x8c_1);
    stmt.i5h(5, entity.y8c_1);
    stmt.i5h(6, entity.z8c_1);
    stmt.v5g(7, entity.a8d_1);
    stmt.i5h(8, entity.b8d_1);
    stmt.i5h(9, entity.c8d_1);
    stmt.i5h(10, entity.d8d_1);
    stmt.i5h(11, entity.e8d_1);
    stmt.i5h(12, entity.f8d_1);
    stmt.h5h(13, entity.g8d_1);
    stmt.i5h(14, entity.h8d_1);
    stmt.i5h(15, entity.i8d_1);
    stmt.i5h(16, entity.j8d_1);
    stmt.h5h(17, entity.k8d_1);
    stmt.i5h(18, entity.l8d_1);
    stmt.l5h(19, entity.m8d_1);
    stmt.i5h(20, entity.n8d_1);
    stmt.i5h(21, entity.o8d_1);
    stmt.i5h(22, entity.p8d_1);
    stmt.i5h(23, entity.q8d_1);
    stmt.l5h(24, entity.r8d_1);
    stmt.i5h(25, entity.s8d_1);
  };
  protoOf(ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1).c5f = function (stmt, entity) {
    return this.w8l(stmt, entity instanceof Clazz ? entity : THROW_CCE());
  };
  function ClazzDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) {
    this.f8m_1 = $entity;
    this.g8m_1 = $_result;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$updateAsync$slambda).y5e = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$updateAsync$slambda).he = function (p1, $completion) {
    return this.y5e((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzDao_JdbcImpl$updateAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.h8m_1.l5h(1, this.f8m_1.v8c_1);
            this.h8m_1.l5h(2, this.f8m_1.w8c_1);
            this.h8m_1.j5h(3, this.f8m_1.x8c_1);
            this.h8m_1.i5h(4, this.f8m_1.y8c_1);
            this.h8m_1.i5h(5, this.f8m_1.z8c_1);
            this.h8m_1.v5g(6, this.f8m_1.a8d_1);
            this.h8m_1.i5h(7, this.f8m_1.b8d_1);
            this.h8m_1.i5h(8, this.f8m_1.c8d_1);
            this.h8m_1.i5h(9, this.f8m_1.d8d_1);
            this.h8m_1.i5h(10, this.f8m_1.e8d_1);
            this.h8m_1.i5h(11, this.f8m_1.f8d_1);
            this.h8m_1.h5h(12, this.f8m_1.g8d_1);
            this.h8m_1.i5h(13, this.f8m_1.h8d_1);
            this.h8m_1.i5h(14, this.f8m_1.i8d_1);
            this.h8m_1.i5h(15, this.f8m_1.j8d_1);
            this.h8m_1.h5h(16, this.f8m_1.k8d_1);
            this.h8m_1.i5h(17, this.f8m_1.l8d_1);
            this.h8m_1.l5h(18, this.f8m_1.m8d_1);
            this.h8m_1.i5h(19, this.f8m_1.n8d_1);
            this.h8m_1.i5h(20, this.f8m_1.o8d_1);
            this.h8m_1.i5h(21, this.f8m_1.p8d_1);
            this.h8m_1.i5h(22, this.f8m_1.q8d_1);
            this.h8m_1.l5h(23, this.f8m_1.r8d_1);
            this.h8m_1.i5h(24, this.f8m_1.s8d_1);
            this.h8m_1.i5h(25, this.f8m_1.u8c_1);
            this.i8m_1 = this.g8m_1._v;
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.h8m_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            var ARGUMENT_0 = this.i8m_1 + ARGUMENT | 0;
            this.g8m_1._v = ARGUMENT_0;
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_JdbcImpl$updateAsync$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$updateAsync$slambda(this.f8m_1, this.g8m_1, completion);
    i.h8m_1 = _stmt;
    return i;
  };
  function ClazzDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) {
    var i = new ClazzDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.y5e(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzDao_JdbcImpl$findByClazzCode$slambda($code, resultContinuation) {
    this.r8m_1 = $code;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$findByClazzCode$slambda).e8e = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$findByClazzCode$slambda).he = function (p1, $completion) {
    return this.e8e((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzDao_JdbcImpl$findByClazzCode$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.s8m_1.l5h(1, this.r8m_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.s8m_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzDao_JdbcImpl$findByClazzCode$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_JdbcImpl$findByClazzCode$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$findByClazzCode$slambda(this.r8m_1, completion);
    i.s8m_1 = _stmt;
    return i;
  };
  function ClazzDao_JdbcImpl$findByClazzCode$slambda_0($code, resultContinuation) {
    var i = new ClazzDao_JdbcImpl$findByClazzCode$slambda($code, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.e8e(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzDao_JdbcImpl$findByUidAsync$slambda($clazzUid, resultContinuation) {
    this.b8n_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$findByUidAsync$slambda).e8e = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$findByUidAsync$slambda).he = function (p1, $completion) {
    return this.e8e((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzDao_JdbcImpl$findByUidAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.c8n_1.i5h(1, this.b8n_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.c8n_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzDao_JdbcImpl$findByUidAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_JdbcImpl$findByUidAsync$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$findByUidAsync$slambda(this.b8n_1, completion);
    i.c8n_1 = _stmt;
    return i;
  };
  function ClazzDao_JdbcImpl$findByUidAsync$slambda_0($clazzUid, resultContinuation) {
    var i = new ClazzDao_JdbcImpl$findByUidAsync$slambda($clazzUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.e8e(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $uid, resultContinuation) {
    this.l8n_1 = this$0;
    this.m8n_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda).n8n = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda).z77 = function ($completion) {
    return this.n8n($completion);
  };
  protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('SELECT * FROM Clazz WHERE clazzUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM Clazz WHERE clazzUid = ?\n', true);
            suspendResult = prepareAndUseStatementAsync(this.l8n_1.s8l_1, tmp_0, ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0(this.m8n_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda).y77 = function (completion) {
    return new ClazzDao_JdbcImpl$findByUidAsFlow$slambda(this.l8n_1, this.m8n_1, completion);
  };
  function ClazzDao_JdbcImpl$findByUidAsFlow$slambda_0(this$0, $uid, resultContinuation) {
    var i = new ClazzDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $uid, resultContinuation);
    var l = function ($completion) {
      return i.n8n($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda($uid, resultContinuation) {
    this.w8n_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda).y8n = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda).he = function (p1, $completion) {
    return this.y8n((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.x8n_1.i5h(1, this.w8n_1);
            this.x8n_1.i5h(2, this.w8n_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.x8n_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda(this.w8n_1, completion);
    i.x8n_1 = _stmt;
    return i;
  };
  function ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda_0($uid, resultContinuation) {
    var i = new ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda($uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.y8n(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzDao_JdbcImpl$findClazzesWithPermission$1(this$0, $currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder) {
    this.f8o_1 = this$0;
    this.g8o_1 = $currentTime;
    this.h8o_1 = $accountPersonUid;
    this.i8o_1 = $permission;
    this.j8o_1 = $searchQuery;
    this.k8o_1 = $excludeSelectedClazzList;
    this.l8o_1 = $filter;
    this.m8o_1 = $sortOrder;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['Clazz', 'ClazzEnrolment', 'CoursePermission', 'SystemPermission', 'CourseTerminology', 'CoursePicture'];
    DoorLimitOffsetPagingSource.call(this, this$0.s8l_1, tmp$ret$2);
  }
  protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$1).n8o = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig("SELECT * FROM (\n        SELECT Clazz.*, ClazzEnrolment.*, CoursePicture.*,\n               (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n                  FROM ClazzEnrolment \n                 WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n                   AND clazzEnrolmentRole = 1000 \n                   AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                       AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n               (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n                  FROM ClazzEnrolment \n                 WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n                   AND clazzEnrolmentRole = 1001\n                   AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                        AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n               '' AS teacherNames,\n               0 AS lastRecorded,\n               CourseTerminology.*\n          FROM Clazz\n               LEFT JOIN ClazzEnrolment \n                    ON ClazzEnrolment.clazzEnrolmentUid =\n                       COALESCE(\n                       (SELECT ClazzEnrolment.clazzEnrolmentUid \n                          FROM ClazzEnrolment\n                         WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                           AND ClazzEnrolment.clazzEnrolmentActive\n                           AND ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n                      ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                         LIMIT 1), 0)\n                LEFT JOIN CourseTerminology   \n                          ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n                LEFT JOIN CoursePicture\n                          ON CoursePicture.coursePictureUid = Clazz.clazzUid           \n\n         WHERE /* Begin permission check clause */\n               CAST(? AS BIGINT) != 0\n           AND (\n                    Clazz.clazzOwnerPersonUid = CAST(? AS BIGINT)\n                 OR EXISTS(SELECT CoursePermission.cpUid\n                             FROM CoursePermission\n                            WHERE CoursePermission.cpClazzUid = Clazz.clazzUid\n                              AND (   CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                   OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n                              AND (CoursePermission.cpPermissionsFlag & CAST(? AS BIGINT)) > 0 \n                              AND NOT CoursePermission.cpIsDeleted)   \n                 OR (\n        SELECT \n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE CAST(? AS BIGINT) != 0 \n                  AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                  AND (SystemPermission.spPermissionsFlag &\n    \n          CAST(? AS BIGINT)\n        \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n      \n    )             \n                )\n                /* End permission check clause */ \n           AND CAST(Clazz.isClazzActive AS INTEGER) = 1\n           AND Clazz.clazzName like ?\n           AND (Clazz.clazzUid NOT IN (?))\n           AND ( ? = 0 OR (CASE WHEN ? = 5 \n                                      THEN CAST(? AS BIGINT) BETWEEN Clazz.clazzStartTime AND Clazz.clazzEndTime\n                                      ELSE CAST(? AS BIGINT) > Clazz.clazzEndTime \n                                      END))\n      GROUP BY Clazz.clazzUid, ClazzEnrolment.clazzEnrolmentUid, CourseTerminology.ctUid, CoursePicture.coursePictureUid\n      ORDER BY CASE ?\n               WHEN 3 THEN Clazz.attendanceAverage\n               ELSE 0\n               END ASC,\n               CASE ?\n               WHEN 1 THEN Clazz.clazzName\n               ELSE ''\n               END ASC,\n               CASE ?\n               WHEN 4 THEN Clazz.attendanceAverage\n               ELSE 0\n               END DESC,\n               CASE ?\n               WHEN 2 THEN clazz.Clazzname\n               ELSE ''\n               END DESC\n    ) AS _PagingData LIMIT ? OFFSET ?", true, VOID, VOID, "SELECT * FROM (\n        SELECT Clazz.*, ClazzEnrolment.*, CoursePicture.*,\n               (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n                  FROM ClazzEnrolment \n                 WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n                   AND clazzEnrolmentRole = 1000 \n                   AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                       AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n               (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n                  FROM ClazzEnrolment \n                 WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n                   AND clazzEnrolmentRole = 1001\n                   AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                        AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n               '' AS teacherNames,\n               0 AS lastRecorded,\n               CourseTerminology.*\n          FROM Clazz\n               LEFT JOIN ClazzEnrolment \n                    ON ClazzEnrolment.clazzEnrolmentUid =\n                       COALESCE(\n                       (SELECT ClazzEnrolment.clazzEnrolmentUid \n                          FROM ClazzEnrolment\n                         WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                           AND ClazzEnrolment.clazzEnrolmentActive\n                           AND ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n                      ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                         LIMIT 1), 0)\n                LEFT JOIN CourseTerminology   \n                          ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n                LEFT JOIN CoursePicture\n                          ON CoursePicture.coursePictureUid = Clazz.clazzUid           \n\n         WHERE /* Begin permission check clause */\n               ? != 0\n           AND (\n                    Clazz.clazzOwnerPersonUid = ?\n                 OR EXISTS(SELECT CoursePermission.cpUid\n                             FROM CoursePermission\n                            WHERE CoursePermission.cpClazzUid = Clazz.clazzUid\n                              AND (   CoursePermission.cpToPersonUid = ? \n                                   OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n                              AND (CoursePermission.cpPermissionsFlag & ?) > 0 \n                              AND NOT CoursePermission.cpIsDeleted)   \n                 OR (\n        SELECT \n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n    \n          ?\n        \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n      \n    )             \n                )\n                /* End permission check clause */ \n           AND CAST(Clazz.isClazzActive AS INTEGER) = 1\n           AND Clazz.clazzName like ?\n           AND (Clazz.clazzUid NOT IN (?))\n           AND ( ? = 0 OR (CASE WHEN ? = 5 \n                                      THEN ? BETWEEN Clazz.clazzStartTime AND Clazz.clazzEndTime\n                                      ELSE ? > Clazz.clazzEndTime \n                                      END))\n      GROUP BY Clazz.clazzUid, ClazzEnrolment.clazzEnrolmentUid, CourseTerminology.ctUid, CoursePicture.coursePictureUid\n      ORDER BY CASE ?\n               WHEN 3 THEN Clazz.attendanceAverage\n               ELSE 0\n               END ASC,\n               CASE ?\n               WHEN 1 THEN Clazz.clazzName\n               ELSE ''\n               END ASC,\n               CASE ?\n               WHEN 4 THEN Clazz.attendanceAverage\n               ELSE 0\n               END DESC,\n               CASE ?\n               WHEN 2 THEN clazz.Clazzname\n               ELSE ''\n               END DESC\n    ) AS _PagingData LIMIT ? OFFSET ?\n", true);
    return prepareAndUseStatementAsync(this.f8o_1.s8l_1, tmp, ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda_0(this.g8o_1, this.h8o_1, this.i8o_1, this.j8o_1, this.k8o_1, this.l8o_1, this.m8o_1, _limit, _offset, null), $completion);
  };
  protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$1).j5p = function (_limit, _offset, $completion) {
    return this.n8o(_limit, _offset, $completion);
  };
  protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n        SELECT Clazz.*, ClazzEnrolment.*, CoursePicture.*,\n               (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n                  FROM ClazzEnrolment \n                 WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n                   AND clazzEnrolmentRole = 1000 \n                   AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                       AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n               (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n                  FROM ClazzEnrolment \n                 WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n                   AND clazzEnrolmentRole = 1001\n                   AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                        AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n               '' AS teacherNames,\n               0 AS lastRecorded,\n               CourseTerminology.*\n          FROM Clazz\n               LEFT JOIN ClazzEnrolment \n                    ON ClazzEnrolment.clazzEnrolmentUid =\n                       COALESCE(\n                       (SELECT ClazzEnrolment.clazzEnrolmentUid \n                          FROM ClazzEnrolment\n                         WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                           AND ClazzEnrolment.clazzEnrolmentActive\n                           AND ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n                      ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                         LIMIT 1), 0)\n                LEFT JOIN CourseTerminology   \n                          ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n                LEFT JOIN CoursePicture\n                          ON CoursePicture.coursePictureUid = Clazz.clazzUid           \n\n         WHERE /* Begin permission check clause */\n               CAST(? AS BIGINT) != 0\n           AND (\n                    Clazz.clazzOwnerPersonUid = CAST(? AS BIGINT)\n                 OR EXISTS(SELECT CoursePermission.cpUid\n                             FROM CoursePermission\n                            WHERE CoursePermission.cpClazzUid = Clazz.clazzUid\n                              AND (   CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                   OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n                              AND (CoursePermission.cpPermissionsFlag & CAST(? AS BIGINT)) > 0 \n                              AND NOT CoursePermission.cpIsDeleted)   \n                 OR (\n        SELECT \n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE CAST(? AS BIGINT) != 0 \n                  AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                  AND (SystemPermission.spPermissionsFlag &\n    \n          CAST(? AS BIGINT)\n        \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n      \n    )             \n                )\n                /* End permission check clause */ \n           AND CAST(Clazz.isClazzActive AS INTEGER) = 1\n           AND Clazz.clazzName like ?\n           AND (Clazz.clazzUid NOT IN (?))\n           AND ( ? = 0 OR (CASE WHEN ? = 5 \n                                      THEN CAST(? AS BIGINT) BETWEEN Clazz.clazzStartTime AND Clazz.clazzEndTime\n                                      ELSE CAST(? AS BIGINT) > Clazz.clazzEndTime \n                                      END))\n      GROUP BY Clazz.clazzUid, ClazzEnrolment.clazzEnrolmentUid, CourseTerminology.ctUid, CoursePicture.coursePictureUid\n      ORDER BY CASE ?\n               WHEN 3 THEN Clazz.attendanceAverage\n               ELSE 0\n               END ASC,\n               CASE ?\n               WHEN 1 THEN Clazz.clazzName\n               ELSE ''\n               END ASC,\n               CASE ?\n               WHEN 4 THEN Clazz.attendanceAverage\n               ELSE 0\n               END DESC,\n               CASE ?\n               WHEN 2 THEN clazz.Clazzname\n               ELSE ''\n               END DESC\n    ) AS _PagingCount", true, VOID, VOID, "SELECT COUNT(*) FROM (\n        SELECT Clazz.*, ClazzEnrolment.*, CoursePicture.*,\n               (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n                  FROM ClazzEnrolment \n                 WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n                   AND clazzEnrolmentRole = 1000 \n                   AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                       AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n               (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n                  FROM ClazzEnrolment \n                 WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n                   AND clazzEnrolmentRole = 1001\n                   AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                        AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n               '' AS teacherNames,\n               0 AS lastRecorded,\n               CourseTerminology.*\n          FROM Clazz\n               LEFT JOIN ClazzEnrolment \n                    ON ClazzEnrolment.clazzEnrolmentUid =\n                       COALESCE(\n                       (SELECT ClazzEnrolment.clazzEnrolmentUid \n                          FROM ClazzEnrolment\n                         WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                           AND ClazzEnrolment.clazzEnrolmentActive\n                           AND ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n                      ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                         LIMIT 1), 0)\n                LEFT JOIN CourseTerminology   \n                          ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n                LEFT JOIN CoursePicture\n                          ON CoursePicture.coursePictureUid = Clazz.clazzUid           \n\n         WHERE /* Begin permission check clause */\n               ? != 0\n           AND (\n                    Clazz.clazzOwnerPersonUid = ?\n                 OR EXISTS(SELECT CoursePermission.cpUid\n                             FROM CoursePermission\n                            WHERE CoursePermission.cpClazzUid = Clazz.clazzUid\n                              AND (   CoursePermission.cpToPersonUid = ? \n                                   OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n                              AND (CoursePermission.cpPermissionsFlag & ?) > 0 \n                              AND NOT CoursePermission.cpIsDeleted)   \n                 OR (\n        SELECT \n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n    \n          ?\n        \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n      \n    )             \n                )\n                /* End permission check clause */ \n           AND CAST(Clazz.isClazzActive AS INTEGER) = 1\n           AND Clazz.clazzName like ?\n           AND (Clazz.clazzUid NOT IN (?))\n           AND ( ? = 0 OR (CASE WHEN ? = 5 \n                                      THEN ? BETWEEN Clazz.clazzStartTime AND Clazz.clazzEndTime\n                                      ELSE ? > Clazz.clazzEndTime \n                                      END))\n      GROUP BY Clazz.clazzUid, ClazzEnrolment.clazzEnrolmentUid, CourseTerminology.ctUid, CoursePicture.coursePictureUid\n      ORDER BY CASE ?\n               WHEN 3 THEN Clazz.attendanceAverage\n               ELSE 0\n               END ASC,\n               CASE ?\n               WHEN 1 THEN Clazz.clazzName\n               ELSE ''\n               END ASC,\n               CASE ?\n               WHEN 4 THEN Clazz.attendanceAverage\n               ELSE 0\n               END DESC,\n               CASE ?\n               WHEN 2 THEN clazz.Clazzname\n               ELSE ''\n               END DESC\n    ) AS _PagingCount\n", true);
    return prepareAndUseStatementAsync(this.f8o_1.s8l_1, tmp, ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda_0(this.g8o_1, this.h8o_1, this.i8o_1, this.j8o_1, this.k8o_1, this.l8o_1, this.m8o_1, null), $completion);
  };
  function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, resultContinuation) {
    this.w8o_1 = this$0;
    this.x8o_1 = $clazzUid;
    this.y8o_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda).z8o = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda).z77 = function ($completion) {
    return this.z8o($completion);
  };
  protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT Clazz.*,\n               (  (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         \n                  32\n                  \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n    \n                  32\n                  \n        ) > 0)\n               )\n    \n               ) AS hasAttendancePermission,\n               (  (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         \n                  8192\n                  \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n    \n                  8192\n                  \n        ) > 0)\n               )\n    \n               ) AS hasViewMembersPermission,\n               (  (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         \n                  128\n                  \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n    \n                  128\n                  \n        ) > 0)\n               )\n    \n               ) AS hasLearningRecordPermission\n          FROM Clazz\n         WHERE Clazz.clazzUid = CAST(? AS BIGINT)\n           AND (  (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         \n                  1\n                  \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n    \n                  1\n                  \n        ) > 0)\n               )\n    \n               )\n    ', VOID, VOID, VOID, '\n        SELECT Clazz.*,\n               (  (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         \n                  32\n                  \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n    \n                  32\n                  \n        ) > 0)\n               )\n    \n               ) AS hasAttendancePermission,\n               (  (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         \n                  8192\n                  \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n    \n                  8192\n                  \n        ) > 0)\n               )\n    \n               ) AS hasViewMembersPermission,\n               (  (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         \n                  128\n                  \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n    \n                  128\n                  \n        ) > 0)\n               )\n    \n               ) AS hasLearningRecordPermission\n          FROM Clazz\n         WHERE Clazz.clazzUid = ?\n           AND (  (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         \n                  1\n                  \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n    \n                  1\n                  \n        ) > 0)\n               )\n    \n               )\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.w8o_1.s8l_1, tmp_0, ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda_0(this.x8o_1, this.y8o_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda).y77 = function (completion) {
    return new ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda(this.w8o_1, this.x8o_1, this.y8o_1, completion);
  };
  function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda_0(this$0, $clazzUid, $accountPersonUid, resultContinuation) {
    var i = new ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.z8o($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda(this$0, $currentTime, $clazzUid, $accountPersonUid, resultContinuation) {
    this.i8p_1 = this$0;
    this.j8p_1 = $currentTime;
    this.k8p_1 = $clazzUid;
    this.l8p_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda).m8p = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda).z77 = function ($completion) {
    return this.m8p($completion);
  };
  protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT Clazz.*, \n               CoursePicture.*,\n               (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n                  FROM ClazzEnrolment \n                 WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n                   AND clazzEnrolmentRole = 1000 \n                   AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                        AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n               (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n                  FROM ClazzEnrolment \n                 WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n                   AND clazzEnrolmentRole = 1001 \n                   AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                       AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n                CourseTerminology.*,\n                (SELECT EXISTS(\n                        SELECT 1\n                          FROM ClazzEnrolment\n                         WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n                           AND ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                           AND ClazzEnrolment.clazzEnrolmentRole = 1000\n)\n                ) AS activeUserIsStudent\n         FROM Clazz \n              LEFT JOIN CourseTerminology\n                        ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n              LEFT JOIN CoursePicture\n                        ON CoursePicture.coursePictureUid = CAST(? AS BIGINT)\n        WHERE Clazz.clazzUid = CAST(? AS BIGINT)', VOID, VOID, VOID, '\n        SELECT Clazz.*, \n               CoursePicture.*,\n               (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n                  FROM ClazzEnrolment \n                 WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n                   AND clazzEnrolmentRole = 1000 \n                   AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                        AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n               (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n                  FROM ClazzEnrolment \n                 WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n                   AND clazzEnrolmentRole = 1001 \n                   AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                       AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n                CourseTerminology.*,\n                (SELECT EXISTS(\n                        SELECT 1\n                          FROM ClazzEnrolment\n                         WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n                           AND ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                           AND ClazzEnrolment.clazzEnrolmentRole = 1000\n)\n                ) AS activeUserIsStudent\n         FROM Clazz \n              LEFT JOIN CourseTerminology\n                        ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n              LEFT JOIN CoursePicture\n                        ON CoursePicture.coursePictureUid = ?\n        WHERE Clazz.clazzUid = ?\n', true);
            suspendResult = prepareAndUseStatementAsync(this.i8p_1.s8l_1, tmp_0, ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda_0(this.j8p_1, this.k8p_1, this.l8p_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda).y77 = function (completion) {
    return new ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda(this.i8p_1, this.j8p_1, this.k8p_1, this.l8p_1, completion);
  };
  function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda_0(this$0, $currentTime, $clazzUid, $accountPersonUid, resultContinuation) {
    var i = new ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda(this$0, $currentTime, $clazzUid, $accountPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.m8p($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda(this$0, $clazzUid, resultContinuation) {
    this.v8p_1 = this$0;
    this.w8p_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda).x8p = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda).z77 = function ($completion) {
    return this.x8p($completion);
  };
  protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT Clazz.clazzName\n          FROM Clazz\n         WHERE Clazz.clazzUid = CAST(? AS BIGINT)\n    ', VOID, VOID, VOID, '\n        SELECT Clazz.clazzName\n          FROM Clazz\n         WHERE Clazz.clazzUid = ?\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.v8p_1.s8l_1, tmp_0, ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda_0(this.w8p_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda).y77 = function (completion) {
    return new ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda(this.v8p_1, this.w8p_1, completion);
  };
  function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) {
    var i = new ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda(this$0, $clazzUid, resultContinuation);
    var l = function ($completion) {
      return i.x8p($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda(this$0, $clazzUid, resultContinuation) {
    this.g8q_1 = this$0;
    this.h8q_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda).i8q = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda).z77 = function ($completion) {
    return this.i8q($completion);
  };
  protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT Clazz.clazzName AS clazzName,\n               CourseTerminology.*\n          FROM Clazz\n               LEFT JOIN CourseTerminology\n                         ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n         WHERE Clazz.clazzUid = CAST(? AS BIGINT)                \n    ', VOID, VOID, VOID, '\n        SELECT Clazz.clazzName AS clazzName,\n               CourseTerminology.*\n          FROM Clazz\n               LEFT JOIN CourseTerminology\n                         ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n         WHERE Clazz.clazzUid = ?                \n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.g8q_1.s8l_1, tmp_0, ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda_0(this.h8q_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda).y77 = function (completion) {
    return new ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda(this.g8q_1, this.h8q_1, completion);
  };
  function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) {
    var i = new ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda(this$0, $clazzUid, resultContinuation);
    var l = function ($completion) {
      return i.i8q($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda(this$0, $clazzUid, resultContinuation) {
    this.r8q_1 = this$0;
    this.s8q_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda).x8p = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda).z77 = function ($completion) {
    return this.x8p($completion);
  };
  protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT Clazz.clazzName AS clazzName\n          FROM Clazz\n         WHERE Clazz.clazzUid = CAST(? AS BIGINT)                \n    ', VOID, VOID, VOID, '\n        SELECT Clazz.clazzName AS clazzName\n          FROM Clazz\n         WHERE Clazz.clazzUid = ?                \n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.r8q_1.s8l_1, tmp_0, ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda_0(this.s8q_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda).y77 = function (completion) {
    return new ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda(this.r8q_1, this.s8q_1, completion);
  };
  function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) {
    var i = new ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda(this$0, $clazzUid, resultContinuation);
    var l = function ($completion) {
      return i.x8p($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda($clazzUid, resultContinuation) {
    this.b8r_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda).u8k = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda).he = function (p1, $completion) {
    return this.u8k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.c8r_1.i5h(1, this.b8r_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.c8r_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda(this.b8r_1, completion);
    i.c8r_1 = _stmt;
    return i;
  };
  function ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda_0($clazzUid, resultContinuation) {
    var i = new ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda($clazzUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.u8k(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$29(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.l8r_1 = _this__u8e3s4;
    this.m8r_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$29).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.l8r_1.t8l_1.j5g(this.m8r_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateAsyncCOROUTINE$30(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.v8r_1 = _this__u8e3s4;
    this.w8r_1 = entity;
  }
  protoOf($updateAsyncCOROUTINE$30).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.x8r_1 = {_v: 0};
            this.y8r_1 = 'UPDATE Clazz SET clazzName = ?, clazzDesc = ?, attendanceAverage = ?, clazzHolidayUMCalendarUid = ?, clazzScheuleUMCalendarUid = ?, isClazzActive = ?, clazzLocationUid = ?, clazzStartTime = ?, clazzEndTime = ?, clazzFeatures = ?, clazzSchoolUid = ?, clazzEnrolmentPolicy = ?, clazzTerminologyUid = ?, clazzMasterChangeSeqNum = ?, clazzLocalChangeSeqNum = ?, clazzLastChangedBy = ?, clazzLct = ?, clazzTimeZone = ?, clazzStudentsPersonGroupUid = ?, clazzTeachersPersonGroupUid = ?, clazzPendingStudentsPersonGroupUid = ?, clazzParentsPersonGroupUid = ?, clazzCode = ?, clazzOwnerPersonUid = ? WHERE clazzUid = ?';
            this.hd_1 = 1;
            suspendResult = prepareAndUseStatementAsync_0(this.v8r_1.s8l_1, this.y8r_1, VOID, ClazzDao_JdbcImpl$updateAsync$slambda_0(this.w8r_1, this.x8r_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return this.x8r_1._v;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ClazzDao_JdbcImpl(_db) {
    ClazzDao.call(this);
    this.s8l_1 = _db;
    var tmp = this;
    tmp.t8l_1 = new ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1(this);
  }
  protoOf(ClazzDao_JdbcImpl).t8d = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$29(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.t8d(entity instanceof Clazz ? entity : THROW_CCE(), $completion);
  };
  protoOf(ClazzDao_JdbcImpl).y8b = function (entity, $completion) {
    var tmp = new $updateAsyncCOROUTINE$30(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl).u8b = function (code, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM Clazz WHERE clazzCode = ?', VOID, VOID, VOID, VOID, true);
    return prepareAndUseStatementAsync(this.s8l_1, tmp, ClazzDao_JdbcImpl$findByClazzCode$slambda_0(code, null), $completion);
  };
  protoOf(ClazzDao_JdbcImpl).v8b = function (clazzUid, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM Clazz WHERE clazzUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM Clazz WHERE clazzUid = ?\n', true);
    return prepareAndUseStatementAsync(this.s8l_1, tmp, ClazzDao_JdbcImpl$findByUidAsync$slambda_0(clazzUid, null), $completion);
  };
  protoOf(ClazzDao_JdbcImpl).w8b = function (uid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['Clazz'];
    return doorFlow(this.s8l_1, tmp, ClazzDao_JdbcImpl$findByUidAsFlow$slambda_0(this, uid, null));
  };
  protoOf(ClazzDao_JdbcImpl).x8b = function (uid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT Clazz.*, \n               CoursePicture.*,\n               HolidayCalendar.*, \n               CourseTerminology.*\n          FROM Clazz \n               LEFT JOIN HolidayCalendar \n                         ON Clazz.clazzHolidayUMCalendarUid = HolidayCalendar.umCalendarUid\n\n               LEFT JOIN CourseTerminology\n                         ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n                      \n               LEFT JOIN CoursePicture\n                         ON CoursePicture.coursePictureUid = CAST(? AS BIGINT)\n         WHERE Clazz.clazzUid = CAST(? AS BIGINT)', VOID, VOID, VOID, '\n        SELECT Clazz.*, \n               CoursePicture.*,\n               HolidayCalendar.*, \n               CourseTerminology.*\n          FROM Clazz \n               LEFT JOIN HolidayCalendar \n                         ON Clazz.clazzHolidayUMCalendarUid = HolidayCalendar.umCalendarUid\n\n               LEFT JOIN CourseTerminology\n                         ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n                      \n               LEFT JOIN CoursePicture\n                         ON CoursePicture.coursePictureUid = ?\n         WHERE Clazz.clazzUid = ?\n', true);
    return prepareAndUseStatementAsync(this.s8l_1, tmp, ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda_0(uid, null), $completion);
  };
  protoOf(ClazzDao_JdbcImpl).z8b = function (searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission) {
    return new ClazzDao_JdbcImpl$findClazzesWithPermission$1(this, currentTime, accountPersonUid, permission, searchQuery, excludeSelectedClazzList, filter, sortOrder);
  };
  protoOf(ClazzDao_JdbcImpl).a8c = function (accountPersonUid, clazzUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['Clazz', 'CoursePermission', 'ClazzEnrolment', 'SystemPermission'];
    return doorFlow(this.s8l_1, tmp, ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda_0(this, clazzUid, accountPersonUid, null));
  };
  protoOf(ClazzDao_JdbcImpl).b8c = function (clazzUid, currentTime, accountPersonUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['CourseTerminology', 'Clazz', 'CoursePicture', 'ClazzEnrolment'];
    return doorFlow(this.s8l_1, tmp, ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda_0(this, currentTime, clazzUid, accountPersonUid, null));
  };
  protoOf(ClazzDao_JdbcImpl).c8c = function (clazzUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['Clazz'];
    return doorFlow(this.s8l_1, tmp, ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda_0(this, clazzUid, null));
  };
  protoOf(ClazzDao_JdbcImpl).d8c = function (clazzUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['CourseTerminology', 'Clazz'];
    return doorFlow(this.s8l_1, tmp, ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda_0(this, clazzUid, null));
  };
  protoOf(ClazzDao_JdbcImpl).e8c = function (clazzUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['Clazz'];
    return doorFlow(this.s8l_1, tmp, ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda_0(this, clazzUid, null));
  };
  protoOf(ClazzDao_JdbcImpl).f8c = function (clazzUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT Clazz.clazzTimeZone\n          FROM Clazz\n         WHERE Clazz.clazzUid = CAST(? AS BIGINT) \n    ', VOID, VOID, VOID, '\n        SELECT Clazz.clazzTimeZone\n          FROM Clazz\n         WHERE Clazz.clazzUid = ? \n    \n', true);
    return prepareAndUseStatementAsync(this.s8l_1, tmp, ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda_0(clazzUid, null), $completion);
  };
  function ClazzDao_Repo$findByUidAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzDao_Repo$findClazzesWithPermission$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzDao_Repo$getClazzWithDisplayDetails$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzDao_Repo$getTitleByUidAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzDao_Repo$getClazzNameAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzDao_Repo$findByClazzCode$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzDao_Repo$findByUidAsFlow$slambda(this$0, $uid, resultContinuation) {
    this.h8s_1 = this$0;
    this.i8s_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_Repo$findByUidAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo$findByUidAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ClazzDao_Repo$findByUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.j8s_1 = this.h8s_1.s8s_1;
            var tmp_1 = this;
            tmp_1.k8s_1 = 'ClazzDao/findByUidAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.l8s_1 = this.h8s_1.u8s_1;
            var tmp_3 = this;
            tmp_3.m8s_1 = this.l8s_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.h8s_1.s8s_1.w38(), 'ClazzDao/findByUidAsFlow');
            doorNodeIdHeader(this_0, this.h8s_1.s8s_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.h8s_1.s8s_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.i8s_1));
            tmp_4.n8s_1 = this_0;
            this.n8s_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.o8s_1 = this.m8s_1;
            var tmp_6 = this;
            tmp_6.p8s_1 = this.n8s_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.p8s_1, this.o8s_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.q8s_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.h8s_1.r8s_1, this.q8s_1, this.h8s_1.s8s_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', ClazzDao_Repo$findByUidAsFlow$slambda$lambda(this.j8s_1, this.k8s_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_Repo$findByUidAsFlow$slambda).y77 = function (completion) {
    return new ClazzDao_Repo$findByUidAsFlow$slambda(this.h8s_1, this.i8s_1, completion);
  };
  function ClazzDao_Repo$findByUidAsFlow$slambda_0(this$0, $uid, resultContinuation) {
    var i = new ClazzDao_Repo$findByUidAsFlow$slambda(this$0, $uid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_Repo$findByUidWithHolidayCalendarAsync$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) {
    this.g8t_1 = this$0;
    this.h8t_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_Repo$updateAsync$slambda).i8t = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo$updateAsync$slambda).z77 = function ($completion) {
    return this.i8t($completion);
  };
  protoOf(ClazzDao_Repo$updateAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.g8t_1.t8s_1.y8b(this.h8t_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_Repo$updateAsync$slambda).y77 = function (completion) {
    return new ClazzDao_Repo$updateAsync$slambda(this.g8t_1, this.h8t_1, completion);
  };
  function ClazzDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new ClazzDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.i8t($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_Repo$findClazzesWithPermission$slambda(this$0, $searchQuery, $accountPersonUid, $excludeSelectedClazzList, $sortOrder, $filter, $currentTime, $permission, resultContinuation) {
    this.r8t_1 = this$0;
    this.s8t_1 = $searchQuery;
    this.t8t_1 = $accountPersonUid;
    this.u8t_1 = $excludeSelectedClazzList;
    this.v8t_1 = $sortOrder;
    this.w8t_1 = $filter;
    this.x8t_1 = $currentTime;
    this.y8t_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_Repo$findClazzesWithPermission$slambda).k85 = function (_pagingParams, $completion) {
    var tmp = this.l85(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo$findClazzesWithPermission$slambda).he = function (p1, $completion) {
    return this.k85(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzDao_Repo$findClazzesWithPermission$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            var tmp_0 = this;
            tmp_0.b8u_1 = this.r8t_1.s8s_1;
            var tmp_1 = this;
            tmp_1.c8u_1 = 'ClazzDao/findClazzesWithPermission';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.d8u_1 = this.r8t_1.u8s_1;
            var tmp_3 = this;
            tmp_3.e8u_1 = this.d8u_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.r8t_1.s8s_1.w38(), 'ClazzDao/findClazzesWithPermission');
            doorNodeIdHeader(this_0, this.r8t_1.s8s_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'searchQuery', this.r8t_1.s8s_1.w38().k65_1.e45(serializer_0(StringCompanionObject_instance), this.s8t_1));
            parameter(this_0, 'accountPersonUid', this.r8t_1.s8s_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.t8t_1));
            parameter(this_0, 'excludeSelectedClazzList', this.r8t_1.s8s_1.w38().k65_1.e45(ListSerializer(serializer(Companion_getInstance())), this.u8t_1));
            parameter(this_0, 'sortOrder', this.r8t_1.s8s_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.v8t_1));
            parameter(this_0, 'filter', this.r8t_1.s8s_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.w8t_1));
            parameter(this_0, 'currentTime', this.r8t_1.s8s_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.x8t_1));
            parameter(this_0, 'permission', this.r8t_1.s8s_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.y8t_1));
            pagingSourceLoadParameters(this_0, this.r8t_1.s8s_1.w38().k65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.z8t_1);
            tmp_4.f8u_1 = this_0;
            this.f8u_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.g8u_1 = this.e8u_1;
            var tmp_6 = this;
            tmp_6.h8u_1 = this.f8u_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.h8u_1, this.g8u_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.i8u_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.r8t_1.r8s_1, this.i8u_1, this.r8t_1.s8s_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.a8u_1 = endOfPaginationReached(this.i8u_1);
            this.id_1 = 5;
            this.hd_1 = 7;
            continue $sm;
          case 4:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', ClazzDao_Repo$findClazzesWithPermission$slambda$lambda(this.b8u_1, this.c8u_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 5:
            throw this.kd_1;
          case 6:
            this.id_1 = 5;
            if (false) {
              this.hd_1 = 1;
              continue $sm;
            }

            this.hd_1 = 7;
            continue $sm;
          case 7:
            return this.a8u_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_Repo$findClazzesWithPermission$slambda).l85 = function (_pagingParams, completion) {
    var i = new ClazzDao_Repo$findClazzesWithPermission$slambda(this.r8t_1, this.s8t_1, this.t8t_1, this.u8t_1, this.v8t_1, this.w8t_1, this.x8t_1, this.y8t_1, completion);
    i.z8t_1 = _pagingParams;
    return i;
  };
  function ClazzDao_Repo$findClazzesWithPermission$slambda_0(this$0, $searchQuery, $accountPersonUid, $excludeSelectedClazzList, $sortOrder, $filter, $currentTime, $permission, resultContinuation) {
    var i = new ClazzDao_Repo$findClazzesWithPermission$slambda(this$0, $searchQuery, $accountPersonUid, $excludeSelectedClazzList, $sortOrder, $filter, $currentTime, $permission, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.k85(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, resultContinuation) {
    this.r8u_1 = this$0;
    this.s8u_1 = $accountPersonUid;
    this.t8u_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.u8u_1 = this.r8u_1.s8s_1;
            var tmp_1 = this;
            tmp_1.v8u_1 = 'ClazzDao/clazzAndDetailPermissionsAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.w8u_1 = this.r8u_1.u8s_1;
            var tmp_3 = this;
            tmp_3.x8u_1 = this.w8u_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.r8u_1.s8s_1.w38(), 'ClazzDao/clazzAndDetailPermissionsAsFlow');
            doorNodeIdHeader(this_0, this.r8u_1.s8s_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.r8u_1.s8s_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.s8u_1));
            parameter(this_0, 'clazzUid', this.r8u_1.s8s_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.t8u_1));
            tmp_4.y8u_1 = this_0;
            this.y8u_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.z8u_1 = this.x8u_1;
            var tmp_6 = this;
            tmp_6.a8v_1 = this.y8u_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.a8v_1, this.z8u_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.b8v_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.r8u_1.r8s_1, this.b8v_1, this.r8u_1.s8s_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda$lambda(this.u8u_1, this.v8u_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda).y77 = function (completion) {
    return new ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda(this.r8u_1, this.s8u_1, this.t8u_1, completion);
  };
  function ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda_0(this$0, $accountPersonUid, $clazzUid, resultContinuation) {
    var i = new ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_Repo$getClazzWithDisplayDetails$slambda(this$0, $clazzUid, $currentTime, $accountPersonUid, resultContinuation) {
    this.k8v_1 = this$0;
    this.l8v_1 = $clazzUid;
    this.m8v_1 = $currentTime;
    this.n8v_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_Repo$getClazzWithDisplayDetails$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo$getClazzWithDisplayDetails$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ClazzDao_Repo$getClazzWithDisplayDetails$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.o8v_1 = this.k8v_1.s8s_1;
            var tmp_1 = this;
            tmp_1.p8v_1 = 'ClazzDao/getClazzWithDisplayDetails';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.q8v_1 = this.k8v_1.u8s_1;
            var tmp_3 = this;
            tmp_3.r8v_1 = this.q8v_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.k8v_1.s8s_1.w38(), 'ClazzDao/getClazzWithDisplayDetails');
            doorNodeIdHeader(this_0, this.k8v_1.s8s_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.k8v_1.s8s_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.l8v_1));
            parameter(this_0, 'currentTime', this.k8v_1.s8s_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.m8v_1));
            parameter(this_0, 'accountPersonUid', this.k8v_1.s8s_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.n8v_1));
            tmp_4.s8v_1 = this_0;
            this.s8v_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.t8v_1 = this.r8v_1;
            var tmp_6 = this;
            tmp_6.u8v_1 = this.s8v_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.u8v_1, this.t8v_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.v8v_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.k8v_1.r8s_1, this.v8v_1, this.k8v_1.s8s_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', ClazzDao_Repo$getClazzWithDisplayDetails$slambda$lambda(this.o8v_1, this.p8v_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_Repo$getClazzWithDisplayDetails$slambda).y77 = function (completion) {
    return new ClazzDao_Repo$getClazzWithDisplayDetails$slambda(this.k8v_1, this.l8v_1, this.m8v_1, this.n8v_1, completion);
  };
  function ClazzDao_Repo$getClazzWithDisplayDetails$slambda_0(this$0, $clazzUid, $currentTime, $accountPersonUid, resultContinuation) {
    var i = new ClazzDao_Repo$getClazzWithDisplayDetails$slambda(this$0, $clazzUid, $currentTime, $accountPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_Repo$getTitleByUidAsFlow$slambda(this$0, $clazzUid, resultContinuation) {
    this.e8w_1 = this$0;
    this.f8w_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_Repo$getTitleByUidAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo$getTitleByUidAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ClazzDao_Repo$getTitleByUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.g8w_1 = this.e8w_1.s8s_1;
            var tmp_1 = this;
            tmp_1.h8w_1 = 'ClazzDao/getTitleByUidAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.i8w_1 = this.e8w_1.u8s_1;
            var tmp_3 = this;
            tmp_3.j8w_1 = this.i8w_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.e8w_1.s8s_1.w38(), 'ClazzDao/getTitleByUidAsFlow');
            doorNodeIdHeader(this_0, this.e8w_1.s8s_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.e8w_1.s8s_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.f8w_1));
            tmp_4.k8w_1 = this_0;
            this.k8w_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.l8w_1 = this.j8w_1;
            var tmp_6 = this;
            tmp_6.m8w_1 = this.k8w_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.m8w_1, this.l8w_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.n8w_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.e8w_1.r8s_1, this.n8w_1, this.e8w_1.s8s_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', ClazzDao_Repo$getTitleByUidAsFlow$slambda$lambda(this.g8w_1, this.h8w_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_Repo$getTitleByUidAsFlow$slambda).y77 = function (completion) {
    return new ClazzDao_Repo$getTitleByUidAsFlow$slambda(this.e8w_1, this.f8w_1, completion);
  };
  function ClazzDao_Repo$getTitleByUidAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) {
    var i = new ClazzDao_Repo$getTitleByUidAsFlow$slambda(this$0, $clazzUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda(this$0, $clazzUid, resultContinuation) {
    this.w8w_1 = this$0;
    this.x8w_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.y8w_1 = this.w8w_1.s8s_1;
            var tmp_1 = this;
            tmp_1.z8w_1 = 'ClazzDao/getClazzNameAndTerminologyAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.a8x_1 = this.w8w_1.u8s_1;
            var tmp_3 = this;
            tmp_3.b8x_1 = this.a8x_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.w8w_1.s8s_1.w38(), 'ClazzDao/getClazzNameAndTerminologyAsFlow');
            doorNodeIdHeader(this_0, this.w8w_1.s8s_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.w8w_1.s8s_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.x8w_1));
            tmp_4.c8x_1 = this_0;
            this.c8x_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.d8x_1 = this.b8x_1;
            var tmp_6 = this;
            tmp_6.e8x_1 = this.c8x_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.e8x_1, this.d8x_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.f8x_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.w8w_1.r8s_1, this.f8x_1, this.w8w_1.s8s_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda$lambda(this.y8w_1, this.z8w_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda).y77 = function (completion) {
    return new ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda(this.w8w_1, this.x8w_1, completion);
  };
  function ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) {
    var i = new ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda(this$0, $clazzUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_Repo$getClazzNameAsFlow$slambda(this$0, $clazzUid, resultContinuation) {
    this.o8x_1 = this$0;
    this.p8x_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_Repo$getClazzNameAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo$getClazzNameAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ClazzDao_Repo$getClazzNameAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.q8x_1 = this.o8x_1.s8s_1;
            var tmp_1 = this;
            tmp_1.r8x_1 = 'ClazzDao/getClazzNameAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.s8x_1 = this.o8x_1.u8s_1;
            var tmp_3 = this;
            tmp_3.t8x_1 = this.s8x_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.o8x_1.s8s_1.w38(), 'ClazzDao/getClazzNameAsFlow');
            doorNodeIdHeader(this_0, this.o8x_1.s8s_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.o8x_1.s8s_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.p8x_1));
            tmp_4.u8x_1 = this_0;
            this.u8x_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.v8x_1 = this.t8x_1;
            var tmp_6 = this;
            tmp_6.w8x_1 = this.u8x_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.w8x_1, this.v8x_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.x8x_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.o8x_1.r8s_1, this.x8x_1, this.o8x_1.s8s_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', ClazzDao_Repo$getClazzNameAsFlow$slambda$lambda(this.q8x_1, this.r8x_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_Repo$getClazzNameAsFlow$slambda).y77 = function (completion) {
    return new ClazzDao_Repo$getClazzNameAsFlow$slambda(this.o8x_1, this.p8x_1, completion);
  };
  function ClazzDao_Repo$getClazzNameAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) {
    var i = new ClazzDao_Repo$getClazzNameAsFlow$slambda(this$0, $clazzUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_Repo$getClazzTimeZoneByClazzUidAsync$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.g8y_1 = this$0;
    this.h8y_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(ClazzDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.g8y_1.t8s_1.insertAsync(this.h8y_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new ClazzDao_Repo$insertAsync$slambda(this.g8y_1, this.h8y_1, completion);
  };
  function ClazzDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new ClazzDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByClazzCodeCOROUTINE$32(_this__u8e3s4, code, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.q8y_1 = _this__u8e3s4;
    this.r8y_1 = code;
  }
  protoOf($findByClazzCodeCOROUTINE$32).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.s8y_1 = this.q8y_1.s8s_1;
            var tmp_1 = this;
            tmp_1.t8y_1 = 'ClazzDao/findByClazzCode';
            this.id_1 = 3;
            this.v8y_1 = this.q8y_1.s8s_1.w38().k65_1;
            this.w8y_1 = get_nullable(Companion_getInstance_46().a4r());
            var tmp_2 = this;
            tmp_2.x8y_1 = this.q8y_1.s8s_1.w38().j65_1;
            var tmp_3 = this;
            tmp_3.y8y_1 = this.x8y_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.q8y_1.s8s_1.w38(), 'ClazzDao/findByClazzCode');
            doorNodeIdHeader(this_0, this.q8y_1.s8s_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'code', this.q8y_1.s8s_1.w38().k65_1.e45(serializer_0(StringCompanionObject_instance), this.r8y_1));
            tmp_4.z8y_1 = this_0;
            this.z8y_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.a8z_1 = this.y8y_1;
            var tmp_6 = this;
            tmp_6.b8z_1 = this.z8y_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.b8z_1, this.a8z_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.c8z_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = bodyAsText(this.c8z_1, VOID, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.d8z_1 = suspendResult;
            this.u8y_1 = this.v8y_1.f45(this.w8y_1, this.d8z_1);
            this.id_1 = 6;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.e8z_1 = this.kd_1;
              Napier_getInstance().q5d(this.e8z_1, 'DoorLog', ClazzDao_Repo$findByClazzCode$lambda(this.s8y_1, this.t8y_1));
              this.hd_1 = 4;
              suspendResult = this.q8y_1.t8s_1.u8b(this.r8y_1, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.u8y_1 = suspendResult;
            this.hd_1 = 5;
            continue $sm;
          case 5:
            this.id_1 = 6;
            return this.u8y_1;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $findByUidAsyncCOROUTINE$34(_this__u8e3s4, clazzUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.u8z_1 = _this__u8e3s4;
    this.v8z_1 = clazzUid;
  }
  protoOf($findByUidAsyncCOROUTINE$34).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.u8z_1.t8s_1.v8b(this.v8z_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $findByUidWithHolidayCalendarAsyncCOROUTINE$36(_this__u8e3s4, uid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.e90_1 = _this__u8e3s4;
    this.f90_1 = uid;
  }
  protoOf($findByUidWithHolidayCalendarAsyncCOROUTINE$36).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.g90_1 = this.e90_1.s8s_1;
            var tmp_1 = this;
            tmp_1.h90_1 = 'ClazzDao/findByUidWithHolidayCalendarAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.i90_1 = this.e90_1.u8s_1;
            var tmp_3 = this;
            tmp_3.j90_1 = this.i90_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.e90_1.s8s_1.w38(), 'ClazzDao/findByUidWithHolidayCalendarAsync');
            doorNodeIdHeader(this_0, this.e90_1.s8s_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.e90_1.s8s_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.f90_1));
            tmp_4.k90_1 = this_0;
            this.k90_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.l90_1 = this.j90_1;
            var tmp_6 = this;
            tmp_6.m90_1 = this.k90_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.m90_1, this.l90_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.n90_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.e90_1.r8s_1, this.n90_1, this.e90_1.s8s_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.o90_1 = this.kd_1;
              Napier_getInstance().q5d(this.o90_1, 'DoorLog', ClazzDao_Repo$findByUidWithHolidayCalendarAsync$lambda(this.g90_1, this.h90_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.e90_1.t8s_1.x8b(this.f90_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateAsyncCOROUTINE$37(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.x90_1 = _this__u8e3s4;
    this.y90_1 = entity;
  }
  protoOf($updateAsyncCOROUTINE$37).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.x90_1.s8s_1, 'Clazz', ClazzDao_Repo$updateAsync$slambda_0(this.x90_1, this.y90_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $getClazzTimeZoneByClazzUidAsyncCOROUTINE$39(_this__u8e3s4, clazzUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.h91_1 = _this__u8e3s4;
    this.i91_1 = clazzUid;
  }
  protoOf($getClazzTimeZoneByClazzUidAsyncCOROUTINE$39).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.j91_1 = this.h91_1.s8s_1;
            var tmp_1 = this;
            tmp_1.k91_1 = 'ClazzDao/getClazzTimeZoneByClazzUidAsync';
            this.id_1 = 3;
            this.m91_1 = this.h91_1.s8s_1.w38().k65_1;
            this.n91_1 = get_nullable(serializer_0(StringCompanionObject_instance));
            var tmp_2 = this;
            tmp_2.o91_1 = this.h91_1.s8s_1.w38().j65_1;
            var tmp_3 = this;
            tmp_3.p91_1 = this.o91_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.h91_1.s8s_1.w38(), 'ClazzDao/getClazzTimeZoneByClazzUidAsync');
            doorNodeIdHeader(this_0, this.h91_1.s8s_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.h91_1.s8s_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.i91_1));
            tmp_4.q91_1 = this_0;
            this.q91_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.r91_1 = this.p91_1;
            var tmp_6 = this;
            tmp_6.s91_1 = this.q91_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.s91_1, this.r91_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.t91_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = bodyAsText(this.t91_1, VOID, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.u91_1 = suspendResult;
            this.l91_1 = this.m91_1.f45(this.n91_1, this.u91_1);
            this.id_1 = 6;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.v91_1 = this.kd_1;
              Napier_getInstance().q5d(this.v91_1, 'DoorLog', ClazzDao_Repo$getClazzTimeZoneByClazzUidAsync$lambda(this.j91_1, this.k91_1));
              this.hd_1 = 4;
              suspendResult = this.h91_1.t8s_1.f8c(this.i91_1, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.l91_1 = suspendResult;
            this.hd_1 = 5;
            continue $sm;
          case 5:
            this.id_1 = 6;
            return this.l91_1;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$42(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.e92_1 = _this__u8e3s4;
    this.f92_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$42).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.e92_1.s8s_1, 'Clazz', ClazzDao_Repo$insertAsync$slambda_0(this.e92_1, this.f92_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ClazzDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ClazzDao.call(this);
    this.r8s_1 = _db;
    this.s8s_1 = _repo;
    this.t8s_1 = _dao;
    this.u8s_1 = _httpClient;
    this.v8s_1 = _clientId;
    this.w8s_1 = _endpoint;
    this.x8s_1 = new RepoDaoFlowHelper(this.s8s_1);
  }
  protoOf(ClazzDao_Repo).u8b = function (code, $completion) {
    var tmp = new $findByClazzCodeCOROUTINE$32(this, code, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo).v8b = function (clazzUid, $completion) {
    var tmp = new $findByUidAsyncCOROUTINE$34(this, clazzUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo).w8b = function (uid) {
    var tmp = this.t8s_1.w8b(uid);
    return this.x8s_1.b67(tmp, ClazzDao_Repo$findByUidAsFlow$slambda_0(this, uid, null));
  };
  protoOf(ClazzDao_Repo).x8b = function (uid, $completion) {
    var tmp = new $findByUidWithHolidayCalendarAsyncCOROUTINE$36(this, uid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo).y8b = function (entity, $completion) {
    var tmp = new $updateAsyncCOROUTINE$37(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo).z8b = function (searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission) {
    var tmp = this.t8s_1.z8b(searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission);
    return new DoorRepositoryReplicatePullPagingSource(this.s8s_1, 'ClazzDao/findClazzesWithPermission', tmp, ClazzDao_Repo$findClazzesWithPermission$slambda_0(this, searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission, null));
  };
  protoOf(ClazzDao_Repo).a8c = function (accountPersonUid, clazzUid) {
    var tmp = this.t8s_1.a8c(accountPersonUid, clazzUid);
    return this.x8s_1.b67(tmp, ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda_0(this, accountPersonUid, clazzUid, null));
  };
  protoOf(ClazzDao_Repo).b8c = function (clazzUid, currentTime, accountPersonUid) {
    var tmp = this.t8s_1.b8c(clazzUid, currentTime, accountPersonUid);
    return this.x8s_1.b67(tmp, ClazzDao_Repo$getClazzWithDisplayDetails$slambda_0(this, clazzUid, currentTime, accountPersonUid, null));
  };
  protoOf(ClazzDao_Repo).c8c = function (clazzUid) {
    var tmp = this.t8s_1.c8c(clazzUid);
    return this.x8s_1.b67(tmp, ClazzDao_Repo$getTitleByUidAsFlow$slambda_0(this, clazzUid, null));
  };
  protoOf(ClazzDao_Repo).d8c = function (clazzUid) {
    var tmp = this.t8s_1.d8c(clazzUid);
    return this.x8s_1.b67(tmp, ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda_0(this, clazzUid, null));
  };
  protoOf(ClazzDao_Repo).e8c = function (clazzUid) {
    var tmp = this.t8s_1.e8c(clazzUid);
    return this.x8s_1.b67(tmp, ClazzDao_Repo$getClazzNameAsFlow$slambda_0(this, clazzUid, null));
  };
  protoOf(ClazzDao_Repo).f8c = function (clazzUid, $completion) {
    var tmp = new $getClazzTimeZoneByClazzUidAsyncCOROUTINE$39(this, clazzUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo).t8d = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$42(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo).insertAsync = function (entity, $completion) {
    return this.t8d(entity instanceof Clazz ? entity : THROW_CCE(), $completion);
  };
  function ClazzEnrolmentDao() {
  }
  function $insertAsyncCOROUTINE$43(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.w92_1 = _this__u8e3s4;
    this.x92_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$43).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.y92_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.w92_1.a93_1));
            if (this.x92_1.e8h_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.y92_1.b62(65, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.z92_1 = suspendResult;
            this.x92_1.e8h_1 = this.z92_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.x92_1.r8h_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.w92_1.b93_1.insertAsync(this.x92_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.x92_1.e8h_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ClazzEnrolmentDao_DoorWrapper(_db, _dao) {
    ClazzEnrolmentDao.call(this);
    this.a93_1 = _db;
    this.b93_1 = _dao;
  }
  protoOf(ClazzEnrolmentDao_DoorWrapper).g92 = function (personUid, clazzUid) {
    return this.b93_1.g92(personUid, clazzUid);
  };
  protoOf(ClazzEnrolmentDao_DoorWrapper).h92 = function (enrolmentUid, $completion) {
    return this.b93_1.h92(enrolmentUid, $completion);
  };
  protoOf(ClazzEnrolmentDao_DoorWrapper).i92 = function (entity, $completion) {
    entity.r8h_1 = systemTimeInMillis();
    return this.b93_1.i92(entity, $completion);
  };
  protoOf(ClazzEnrolmentDao_DoorWrapper).j92 = function (accountPersonUid, otherPersonUid) {
    return this.b93_1.j92(accountPersonUid, otherPersonUid);
  };
  protoOf(ClazzEnrolmentDao_DoorWrapper).k92 = function (clazzUid, accountPersonUid, time, $completion) {
    return this.b93_1.k92(clazzUid, accountPersonUid, time, $completion);
  };
  protoOf(ClazzEnrolmentDao_DoorWrapper).l92 = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission) {
    return this.b93_1.l92(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission);
  };
  protoOf(ClazzEnrolmentDao_DoorWrapper).m92 = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime) {
    return this.b93_1.m92(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime);
  };
  protoOf(ClazzEnrolmentDao_DoorWrapper).n92 = function (personUid, clazzUid, $completion) {
    return this.b93_1.n92(personUid, clazzUid, $completion);
  };
  protoOf(ClazzEnrolmentDao_DoorWrapper).c93 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$43(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.c93(entity instanceof ClazzEnrolment ? entity : THROW_CCE(), $completion);
  };
  function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda$lambda(_result) {
    return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda$lambda$lambda(_result));
  }
  function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_timeZone = $_result.rz('timeZone');
      var _tmp_clazzEnrolmentUid = $_result.l5m('clazzEnrolmentUid');
      var _tmp_clazzEnrolmentPersonUid = $_result.l5m('clazzEnrolmentPersonUid');
      var _tmp_clazzEnrolmentClazzUid = $_result.l5m('clazzEnrolmentClazzUid');
      var _tmp_clazzEnrolmentDateJoined = $_result.l5m('clazzEnrolmentDateJoined');
      var _tmp_clazzEnrolmentDateLeft = $_result.l5m('clazzEnrolmentDateLeft');
      var _tmp_clazzEnrolmentRole = $_result.k5m('clazzEnrolmentRole');
      var _tmp_clazzEnrolmentAttendancePercentage = $_result.y65('clazzEnrolmentAttendancePercentage');
      var _tmp_clazzEnrolmentActive = $_result.w65('clazzEnrolmentActive');
      var _tmp_clazzEnrolmentLeavingReasonUid = $_result.l5m('clazzEnrolmentLeavingReasonUid');
      var _tmp_clazzEnrolmentOutcome = $_result.k5m('clazzEnrolmentOutcome');
      var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.l5m('clazzEnrolmentLocalChangeSeqNum');
      var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.l5m('clazzEnrolmentMasterChangeSeqNum');
      var _tmp_clazzEnrolmentLastChangedBy = $_result.k5m('clazzEnrolmentLastChangedBy');
      var _tmp_clazzEnrolmentLct = $_result.l5m('clazzEnrolmentLct');
      var _tmp_LeavingReason_nullCount = 0;
      var _tmp_leavingReasonUid = $_result.l5m('leavingReasonUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_leavingReasonTitle = $_result.rz('leavingReasonTitle');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_leavingReasonMCSN = $_result.l5m('leavingReasonMCSN');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_leavingReasonCSN = $_result.l5m('leavingReasonCSN');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_leavingReasonLCB = $_result.k5m('leavingReasonLCB');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_leavingReasonLct = $_result.l5m('leavingReasonLct');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_LeavingReason_isAllNull = _tmp_LeavingReason_nullCount === 6;
      // Inline function 'kotlin.apply' call
      var this_0 = new ClazzEnrolmentWithLeavingReason();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllEnrolmentsByPersonAndClazzUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.s93_1 = _tmp_timeZone;
      this_0.e8h_1 = _tmp_clazzEnrolmentUid;
      this_0.f8h_1 = _tmp_clazzEnrolmentPersonUid;
      this_0.g8h_1 = _tmp_clazzEnrolmentClazzUid;
      this_0.h8h_1 = _tmp_clazzEnrolmentDateJoined;
      this_0.i8h_1 = _tmp_clazzEnrolmentDateLeft;
      this_0.j8h_1 = _tmp_clazzEnrolmentRole;
      this_0.k8h_1 = _tmp_clazzEnrolmentAttendancePercentage;
      this_0.l8h_1 = _tmp_clazzEnrolmentActive;
      this_0.m8h_1 = _tmp_clazzEnrolmentLeavingReasonUid;
      this_0.n8h_1 = _tmp_clazzEnrolmentOutcome;
      this_0.o8h_1 = _tmp_clazzEnrolmentLocalChangeSeqNum;
      this_0.p8h_1 = _tmp_clazzEnrolmentMasterChangeSeqNum;
      this_0.q8h_1 = _tmp_clazzEnrolmentLastChangedBy;
      this_0.r8h_1 = _tmp_clazzEnrolmentLct;
      if (!_tmp_LeavingReason_isAllNull) {
        var tmp_5 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new LeavingReason();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllEnrolmentsByPersonAndClazzUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.t93_1 = _tmp_leavingReasonUid;
        this_1.u93_1 = _tmp_leavingReasonTitle;
        this_1.v93_1 = _tmp_leavingReasonMCSN;
        this_1.w93_1 = _tmp_leavingReasonCSN;
        this_1.x93_1 = _tmp_leavingReasonLCB;
        this_1.y93_1 = _tmp_leavingReasonLct;
        tmp_5.r93_1 = this_1;
      }
      return this_0;
    };
  }
  function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda($personUid, $clazzUid, resultContinuation) {
    this.h94_1 = $personUid;
    this.i94_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda).k94 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda).he = function (p1, $completion) {
    return this.k94((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.j94_1.i5h(1, this.h94_1);
            this.j94_1.i5h(2, this.i94_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.j94_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda(this.h94_1, this.i94_1, completion);
    i.j94_1 = _stmt;
    return i;
  };
  function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda_0($personUid, $clazzUid, resultContinuation) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda($personUid, $clazzUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.k94(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda$lambda(_result) {
    return mapNextRow(_result, null, ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda$lambda$lambda(_result));
  }
  function ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_timeZone = $_result.rz('timeZone');
      var _tmp_clazzEnrolmentUid = $_result.l5m('clazzEnrolmentUid');
      var _tmp_clazzEnrolmentPersonUid = $_result.l5m('clazzEnrolmentPersonUid');
      var _tmp_clazzEnrolmentClazzUid = $_result.l5m('clazzEnrolmentClazzUid');
      var _tmp_clazzEnrolmentDateJoined = $_result.l5m('clazzEnrolmentDateJoined');
      var _tmp_clazzEnrolmentDateLeft = $_result.l5m('clazzEnrolmentDateLeft');
      var _tmp_clazzEnrolmentRole = $_result.k5m('clazzEnrolmentRole');
      var _tmp_clazzEnrolmentAttendancePercentage = $_result.y65('clazzEnrolmentAttendancePercentage');
      var _tmp_clazzEnrolmentActive = $_result.w65('clazzEnrolmentActive');
      var _tmp_clazzEnrolmentLeavingReasonUid = $_result.l5m('clazzEnrolmentLeavingReasonUid');
      var _tmp_clazzEnrolmentOutcome = $_result.k5m('clazzEnrolmentOutcome');
      var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.l5m('clazzEnrolmentLocalChangeSeqNum');
      var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.l5m('clazzEnrolmentMasterChangeSeqNum');
      var _tmp_clazzEnrolmentLastChangedBy = $_result.k5m('clazzEnrolmentLastChangedBy');
      var _tmp_clazzEnrolmentLct = $_result.l5m('clazzEnrolmentLct');
      var _tmp_LeavingReason_nullCount = 0;
      var _tmp_leavingReasonUid = $_result.l5m('leavingReasonUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_leavingReasonTitle = $_result.rz('leavingReasonTitle');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_leavingReasonMCSN = $_result.l5m('leavingReasonMCSN');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_leavingReasonCSN = $_result.l5m('leavingReasonCSN');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_leavingReasonLCB = $_result.k5m('leavingReasonLCB');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_leavingReasonLct = $_result.l5m('leavingReasonLct');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_LeavingReason_isAllNull = _tmp_LeavingReason_nullCount === 6;
      // Inline function 'kotlin.apply' call
      var this_0 = new ClazzEnrolmentWithLeavingReason();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findEnrolmentWithLeavingReason.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.s93_1 = _tmp_timeZone;
      this_0.e8h_1 = _tmp_clazzEnrolmentUid;
      this_0.f8h_1 = _tmp_clazzEnrolmentPersonUid;
      this_0.g8h_1 = _tmp_clazzEnrolmentClazzUid;
      this_0.h8h_1 = _tmp_clazzEnrolmentDateJoined;
      this_0.i8h_1 = _tmp_clazzEnrolmentDateLeft;
      this_0.j8h_1 = _tmp_clazzEnrolmentRole;
      this_0.k8h_1 = _tmp_clazzEnrolmentAttendancePercentage;
      this_0.l8h_1 = _tmp_clazzEnrolmentActive;
      this_0.m8h_1 = _tmp_clazzEnrolmentLeavingReasonUid;
      this_0.n8h_1 = _tmp_clazzEnrolmentOutcome;
      this_0.o8h_1 = _tmp_clazzEnrolmentLocalChangeSeqNum;
      this_0.p8h_1 = _tmp_clazzEnrolmentMasterChangeSeqNum;
      this_0.q8h_1 = _tmp_clazzEnrolmentLastChangedBy;
      this_0.r8h_1 = _tmp_clazzEnrolmentLct;
      if (!_tmp_LeavingReason_isAllNull) {
        var tmp_5 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new LeavingReason();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findEnrolmentWithLeavingReason.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.t93_1 = _tmp_leavingReasonUid;
        this_1.u93_1 = _tmp_leavingReasonTitle;
        this_1.v93_1 = _tmp_leavingReasonMCSN;
        this_1.w93_1 = _tmp_leavingReasonCSN;
        this_1.x93_1 = _tmp_leavingReasonLCB;
        this_1.y93_1 = _tmp_leavingReasonLct;
        tmp_5.r93_1 = this_1;
      }
      return this_0;
    };
  }
  function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda$lambda(_result) {
    return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda$lambda$lambda(_result));
  }
  function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_ClazzEnrolment_nullCount = 0;
      var _tmp_clazzEnrolmentUid = $_result.l5m('clazzEnrolmentUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_clazzEnrolmentPersonUid = $_result.l5m('clazzEnrolmentPersonUid');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_clazzEnrolmentClazzUid = $_result.l5m('clazzEnrolmentClazzUid');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_clazzEnrolmentDateJoined = $_result.l5m('clazzEnrolmentDateJoined');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_clazzEnrolmentDateLeft = $_result.l5m('clazzEnrolmentDateLeft');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_clazzEnrolmentRole = $_result.k5m('clazzEnrolmentRole');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_clazzEnrolmentAttendancePercentage = $_result.y65('clazzEnrolmentAttendancePercentage');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_clazzEnrolmentActive = $_result.w65('clazzEnrolmentActive');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_clazzEnrolmentLeavingReasonUid = $_result.l5m('clazzEnrolmentLeavingReasonUid');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_clazzEnrolmentOutcome = $_result.k5m('clazzEnrolmentOutcome');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.l5m('clazzEnrolmentLocalChangeSeqNum');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.l5m('clazzEnrolmentMasterChangeSeqNum');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_clazzEnrolmentLastChangedBy = $_result.k5m('clazzEnrolmentLastChangedBy');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_clazzEnrolmentLct = $_result.l5m('clazzEnrolmentLct');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_ClazzEnrolment_isAllNull = _tmp_ClazzEnrolment_nullCount === 14;
      var _tmp_Clazz_nullCount = 0;
      var _tmp_clazzUid = $_result.l5m('clazzUid');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_clazzName = $_result.rz('clazzName');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_clazzDesc = $_result.rz('clazzDesc');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_attendanceAverage = $_result.y65('attendanceAverage');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_clazzHolidayUMCalendarUid = $_result.l5m('clazzHolidayUMCalendarUid');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_clazzScheuleUMCalendarUid = $_result.l5m('clazzScheuleUMCalendarUid');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_isClazzActive = $_result.w65('isClazzActive');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_clazzLocationUid = $_result.l5m('clazzLocationUid');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_clazzStartTime = $_result.l5m('clazzStartTime');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_clazzEndTime = $_result.l5m('clazzEndTime');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_clazzFeatures = $_result.l5m('clazzFeatures');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_clazzSchoolUid = $_result.l5m('clazzSchoolUid');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_clazzEnrolmentPolicy = $_result.k5m('clazzEnrolmentPolicy');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_clazzTerminologyUid = $_result.l5m('clazzTerminologyUid');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_clazzMasterChangeSeqNum = $_result.l5m('clazzMasterChangeSeqNum');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_clazzLocalChangeSeqNum = $_result.l5m('clazzLocalChangeSeqNum');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_clazzLastChangedBy = $_result.k5m('clazzLastChangedBy');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_clazzLct = $_result.l5m('clazzLct');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_clazzTimeZone = $_result.rz('clazzTimeZone');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_clazzStudentsPersonGroupUid = $_result.l5m('clazzStudentsPersonGroupUid');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_clazzTeachersPersonGroupUid = $_result.l5m('clazzTeachersPersonGroupUid');
      var tmp_33;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_clazzPendingStudentsPersonGroupUid = $_result.l5m('clazzPendingStudentsPersonGroupUid');
      var tmp_34;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_clazzParentsPersonGroupUid = $_result.l5m('clazzParentsPersonGroupUid');
      var tmp_35;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_clazzCode = $_result.rz('clazzCode');
      var tmp_36;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_clazzOwnerPersonUid = $_result.l5m('clazzOwnerPersonUid');
      var tmp_37;
      if ($_result.d67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_Clazz_isAllNull = _tmp_Clazz_nullCount === 25;
      var _tmp_CourseTerminology_nullCount = 0;
      var _tmp_ctUid = $_result.l5m('ctUid');
      var tmp_38;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_ctTitle = $_result.rz('ctTitle');
      var tmp_39;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_ctTerminology = $_result.rz('ctTerminology');
      var tmp_40;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_ctLct = $_result.l5m('ctLct');
      var tmp_41;
      if ($_result.d67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_CourseTerminology_isAllNull = _tmp_CourseTerminology_nullCount === 4;
      // Inline function 'kotlin.apply' call
      var this_0 = new ClazzEnrolmentAndPersonDetailDetails();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllClazzesByPersonWithClazz.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_ClazzEnrolment_isAllNull) {
        var tmp_42 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new ClazzEnrolment();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllClazzesByPersonWithClazz.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.e8h_1 = _tmp_clazzEnrolmentUid;
        this_1.f8h_1 = _tmp_clazzEnrolmentPersonUid;
        this_1.g8h_1 = _tmp_clazzEnrolmentClazzUid;
        this_1.h8h_1 = _tmp_clazzEnrolmentDateJoined;
        this_1.i8h_1 = _tmp_clazzEnrolmentDateLeft;
        this_1.j8h_1 = _tmp_clazzEnrolmentRole;
        this_1.k8h_1 = _tmp_clazzEnrolmentAttendancePercentage;
        this_1.l8h_1 = _tmp_clazzEnrolmentActive;
        this_1.m8h_1 = _tmp_clazzEnrolmentLeavingReasonUid;
        this_1.n8h_1 = _tmp_clazzEnrolmentOutcome;
        this_1.o8h_1 = _tmp_clazzEnrolmentLocalChangeSeqNum;
        this_1.p8h_1 = _tmp_clazzEnrolmentMasterChangeSeqNum;
        this_1.q8h_1 = _tmp_clazzEnrolmentLastChangedBy;
        this_1.r8h_1 = _tmp_clazzEnrolmentLct;
        tmp_42.l94_1 = this_1;
      }
      if (!_tmp_Clazz_isAllNull) {
        var tmp_43 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new Clazz();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllClazzesByPersonWithClazz.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.u8c_1 = _tmp_clazzUid;
        this_2.v8c_1 = _tmp_clazzName;
        this_2.w8c_1 = _tmp_clazzDesc;
        this_2.x8c_1 = _tmp_attendanceAverage;
        this_2.y8c_1 = _tmp_clazzHolidayUMCalendarUid;
        this_2.z8c_1 = _tmp_clazzScheuleUMCalendarUid;
        this_2.a8d_1 = _tmp_isClazzActive;
        this_2.b8d_1 = _tmp_clazzLocationUid;
        this_2.c8d_1 = _tmp_clazzStartTime;
        this_2.d8d_1 = _tmp_clazzEndTime;
        this_2.e8d_1 = _tmp_clazzFeatures;
        this_2.f8d_1 = _tmp_clazzSchoolUid;
        this_2.g8d_1 = _tmp_clazzEnrolmentPolicy;
        this_2.h8d_1 = _tmp_clazzTerminologyUid;
        this_2.i8d_1 = _tmp_clazzMasterChangeSeqNum;
        this_2.j8d_1 = _tmp_clazzLocalChangeSeqNum;
        this_2.k8d_1 = _tmp_clazzLastChangedBy;
        this_2.l8d_1 = _tmp_clazzLct;
        this_2.m8d_1 = _tmp_clazzTimeZone;
        this_2.n8d_1 = _tmp_clazzStudentsPersonGroupUid;
        this_2.o8d_1 = _tmp_clazzTeachersPersonGroupUid;
        this_2.p8d_1 = _tmp_clazzPendingStudentsPersonGroupUid;
        this_2.q8d_1 = _tmp_clazzParentsPersonGroupUid;
        this_2.r8d_1 = _tmp_clazzCode;
        this_2.s8d_1 = _tmp_clazzOwnerPersonUid;
        tmp_43.m94_1 = this_2;
      }
      if (!_tmp_CourseTerminology_isAllNull) {
        var tmp_44 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new CourseTerminology();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllClazzesByPersonWithClazz.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.p8f_1 = _tmp_ctUid;
        this_3.q8f_1 = _tmp_ctTitle;
        this_3.r8f_1 = _tmp_ctTerminology;
        this_3.s8f_1 = _tmp_ctLct;
        tmp_44.n94_1 = this_3;
      }
      return this_0;
    };
  }
  function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda($accountPersonUid, $otherPersonUid, resultContinuation) {
    this.w94_1 = $accountPersonUid;
    this.x94_1 = $otherPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda).z94 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda).he = function (p1, $completion) {
    return this.z94((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.y94_1.i5h(1, this.w94_1);
            this.y94_1.i5h(2, this.w94_1);
            this.y94_1.i5h(3, this.x94_1);
            this.y94_1.i5h(4, this.w94_1);
            this.y94_1.i5h(5, this.x94_1);
            this.y94_1.i5h(6, this.x94_1);
            this.y94_1.i5h(7, this.w94_1);
            this.y94_1.i5h(8, this.x94_1);
            this.y94_1.i5h(9, this.w94_1);
            this.y94_1.i5h(10, this.w94_1);
            this.y94_1.i5h(11, this.x94_1);
            this.y94_1.i5h(12, this.w94_1);
            this.y94_1.i5h(13, this.x94_1);
            this.y94_1.i5h(14, this.w94_1);
            this.y94_1.i5h(15, this.w94_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.y94_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda(this.w94_1, this.x94_1, completion);
    i.y94_1 = _stmt;
    return i;
  };
  function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda_0($accountPersonUid, $otherPersonUid, resultContinuation) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda($accountPersonUid, $otherPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.z94(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda$lambda(_result) {
    return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda$lambda$lambda(_result));
  }
  function ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_clazzEnrolmentUid = $_result.l5m('clazzEnrolmentUid');
      var _tmp_clazzEnrolmentPersonUid = $_result.l5m('clazzEnrolmentPersonUid');
      var _tmp_clazzEnrolmentClazzUid = $_result.l5m('clazzEnrolmentClazzUid');
      var _tmp_clazzEnrolmentDateJoined = $_result.l5m('clazzEnrolmentDateJoined');
      var _tmp_clazzEnrolmentDateLeft = $_result.l5m('clazzEnrolmentDateLeft');
      var _tmp_clazzEnrolmentRole = $_result.k5m('clazzEnrolmentRole');
      var _tmp_clazzEnrolmentAttendancePercentage = $_result.y65('clazzEnrolmentAttendancePercentage');
      var _tmp_clazzEnrolmentActive = $_result.w65('clazzEnrolmentActive');
      var _tmp_clazzEnrolmentLeavingReasonUid = $_result.l5m('clazzEnrolmentLeavingReasonUid');
      var _tmp_clazzEnrolmentOutcome = $_result.k5m('clazzEnrolmentOutcome');
      var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.l5m('clazzEnrolmentLocalChangeSeqNum');
      var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.l5m('clazzEnrolmentMasterChangeSeqNum');
      var _tmp_clazzEnrolmentLastChangedBy = $_result.k5m('clazzEnrolmentLastChangedBy');
      var _tmp_clazzEnrolmentLct = $_result.l5m('clazzEnrolmentLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new ClazzEnrolment();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.getAllEnrolmentsAtTimeByClazzAndPerson.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.e8h_1 = _tmp_clazzEnrolmentUid;
      this_0.f8h_1 = _tmp_clazzEnrolmentPersonUid;
      this_0.g8h_1 = _tmp_clazzEnrolmentClazzUid;
      this_0.h8h_1 = _tmp_clazzEnrolmentDateJoined;
      this_0.i8h_1 = _tmp_clazzEnrolmentDateLeft;
      this_0.j8h_1 = _tmp_clazzEnrolmentRole;
      this_0.k8h_1 = _tmp_clazzEnrolmentAttendancePercentage;
      this_0.l8h_1 = _tmp_clazzEnrolmentActive;
      this_0.m8h_1 = _tmp_clazzEnrolmentLeavingReasonUid;
      this_0.n8h_1 = _tmp_clazzEnrolmentOutcome;
      this_0.o8h_1 = _tmp_clazzEnrolmentLocalChangeSeqNum;
      this_0.p8h_1 = _tmp_clazzEnrolmentMasterChangeSeqNum;
      this_0.q8h_1 = _tmp_clazzEnrolmentLastChangedBy;
      this_0.r8h_1 = _tmp_clazzEnrolmentLct;
      return this_0;
    };
  }
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda$lambda$lambda(_result));
  }
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_earliestJoinDate = $_result.l5m('earliestJoinDate');
      var _tmp_latestDateLeft = $_result.l5m('latestDateLeft');
      var _tmp_enrolmentRole = $_result.k5m('enrolmentRole');
      var _tmp_Person_nullCount = 0;
      var _tmp_personUid = $_result.l5m('personUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_gender = $_result.k5m('gender');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_active = $_result.w65('active');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.l5m('dateOfBirth');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.l5m('personGroupUid');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_personLct = $_result.l5m('personLct');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personType = $_result.k5m('personType');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.l5m('personMasterChangeSeqNum');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.l5m('personLocalChangeSeqNum');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.k5m('personLastChangedBy');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_admin = $_result.w65('admin');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.l5m('personPictureUid');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.l5m('personPictureLct');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_fileSize = $_result.k5m('fileSize');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.w65('personPictureActive');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6;
      // Inline function 'kotlin.apply' call
      var this_0 = new PersonAndClazzMemberListDetails();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.c95_1 = _tmp_earliestJoinDate;
      this_0.d95_1 = _tmp_latestDateLeft;
      this_0.e95_1 = _tmp_enrolmentRole;
      if (!_tmp_Person_isAllNull) {
        var tmp_29 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new Person();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.f95_1 = _tmp_personUid;
        this_1.g95_1 = _tmp_username;
        this_1.h95_1 = _tmp_firstNames;
        this_1.i95_1 = _tmp_lastName;
        this_1.j95_1 = _tmp_emailAddr;
        this_1.k95_1 = _tmp_phoneNum;
        this_1.l95_1 = _tmp_gender;
        this_1.m95_1 = _tmp_active;
        this_1.n95_1 = _tmp_dateOfBirth;
        this_1.o95_1 = _tmp_personAddress;
        this_1.p95_1 = _tmp_personOrgId;
        this_1.q95_1 = _tmp_personGroupUid;
        this_1.r95_1 = _tmp_personLct;
        this_1.s95_1 = _tmp_personCountry;
        this_1.t95_1 = _tmp_personType;
        this_1.u95_1 = _tmp_personMasterChangeSeqNum;
        this_1.v95_1 = _tmp_personLocalChangeSeqNum;
        this_1.w95_1 = _tmp_personLastChangedBy;
        this_1.x95_1 = _tmp_admin;
        this_1.y95_1 = _tmp_personNotes;
        this_1.z95_1 = _tmp_fatherName;
        this_1.a96_1 = _tmp_fatherNumber;
        this_1.b96_1 = _tmp_motherName;
        this_1.c96_1 = _tmp_motherNum;
        tmp_29.a95_1 = this_1;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_30 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new PersonPicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.d96_1 = _tmp_personPictureUid;
        this_2.e96_1 = _tmp_personPictureLct;
        this_2.f96_1 = _tmp_personPictureUri;
        this_2.g96_1 = _tmp_personPictureThumbnailUri;
        this_2.h96_1 = _tmp_fileSize;
        this_2.i96_1 = _tmp_personPictureActive;
        tmp_30.b95_1 = this_2;
      }
      return this_0;
    };
  }
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda$lambda$lambda(_result));
  }
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) {
    this.r96_1 = $clazzUid;
    this.s96_1 = $roleId;
    this.t96_1 = $filter;
    this.u96_1 = $currentTime;
    this.v96_1 = $accountPersonUid;
    this.w96_1 = $permission;
    this.x96_1 = $searchText;
    this.y96_1 = $sortOrder;
    this.z96_1 = $_limit;
    this.a97_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda).c97 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda).he = function (p1, $completion) {
    return this.c97((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.b97_1.i5h(1, this.r96_1);
            this.b97_1.i5h(2, this.r96_1);
            this.b97_1.h5h(3, this.s96_1);
            this.b97_1.h5h(4, this.t96_1);
            this.b97_1.i5h(5, this.u96_1);
            this.b97_1.i5h(6, this.r96_1);
            this.b97_1.i5h(7, this.v96_1);
            this.b97_1.i5h(8, this.v96_1);
            this.b97_1.i5h(9, this.r96_1);
            this.b97_1.i5h(10, this.v96_1);
            this.b97_1.i5h(11, this.w96_1);
            this.b97_1.i5h(12, this.v96_1);
            this.b97_1.i5h(13, this.w96_1);
            this.b97_1.i5h(14, this.v96_1);
            this.b97_1.l5h(15, this.x96_1);
            this.b97_1.h5h(16, this.y96_1);
            this.b97_1.h5h(17, this.y96_1);
            this.b97_1.h5h(18, this.y96_1);
            this.b97_1.h5h(19, this.y96_1);
            this.b97_1.h5h(20, this.z96_1);
            this.b97_1.h5h(21, this.a97_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.b97_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda(this.r96_1, this.s96_1, this.t96_1, this.u96_1, this.v96_1, this.w96_1, this.x96_1, this.y96_1, this.z96_1, this.a97_1, completion);
    i.b97_1 = _stmt;
    return i;
  };
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda_0($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.c97(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, resultContinuation) {
    this.l97_1 = $clazzUid;
    this.m97_1 = $roleId;
    this.n97_1 = $filter;
    this.o97_1 = $currentTime;
    this.p97_1 = $accountPersonUid;
    this.q97_1 = $permission;
    this.r97_1 = $searchText;
    this.s97_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.t97_1.i5h(1, this.l97_1);
            this.t97_1.i5h(2, this.l97_1);
            this.t97_1.h5h(3, this.m97_1);
            this.t97_1.h5h(4, this.n97_1);
            this.t97_1.i5h(5, this.o97_1);
            this.t97_1.i5h(6, this.l97_1);
            this.t97_1.i5h(7, this.p97_1);
            this.t97_1.i5h(8, this.p97_1);
            this.t97_1.i5h(9, this.l97_1);
            this.t97_1.i5h(10, this.p97_1);
            this.t97_1.i5h(11, this.q97_1);
            this.t97_1.i5h(12, this.p97_1);
            this.t97_1.i5h(13, this.q97_1);
            this.t97_1.i5h(14, this.p97_1);
            this.t97_1.l5h(15, this.r97_1);
            this.t97_1.h5h(16, this.s97_1);
            this.t97_1.h5h(17, this.s97_1);
            this.t97_1.h5h(18, this.s97_1);
            this.t97_1.h5h(19, this.s97_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.t97_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda(this.l97_1, this.m97_1, this.n97_1, this.o97_1, this.p97_1, this.q97_1, this.r97_1, this.s97_1, completion);
    i.t97_1 = _stmt;
    return i;
  };
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda_0($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, resultContinuation) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda$lambda$lambda(_result));
  }
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_earliestJoinDate = $_result.l5m('earliestJoinDate');
      var _tmp_latestDateLeft = $_result.l5m('latestDateLeft');
      var _tmp_enrolmentRole = $_result.k5m('enrolmentRole');
      var _tmp_Person_nullCount = 0;
      var _tmp_personUid = $_result.l5m('personUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_gender = $_result.k5m('gender');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_active = $_result.w65('active');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.l5m('dateOfBirth');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.l5m('personGroupUid');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_personLct = $_result.l5m('personLct');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personType = $_result.k5m('personType');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.l5m('personMasterChangeSeqNum');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.l5m('personLocalChangeSeqNum');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.k5m('personLastChangedBy');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_admin = $_result.w65('admin');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.l5m('personPictureUid');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.l5m('personPictureLct');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_fileSize = $_result.k5m('fileSize');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.w65('personPictureActive');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6;
      // Inline function 'kotlin.apply' call
      var this_0 = new PersonAndClazzMemberListDetails();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.c95_1 = _tmp_earliestJoinDate;
      this_0.d95_1 = _tmp_latestDateLeft;
      this_0.e95_1 = _tmp_enrolmentRole;
      if (!_tmp_Person_isAllNull) {
        var tmp_29 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new Person();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.f95_1 = _tmp_personUid;
        this_1.g95_1 = _tmp_username;
        this_1.h95_1 = _tmp_firstNames;
        this_1.i95_1 = _tmp_lastName;
        this_1.j95_1 = _tmp_emailAddr;
        this_1.k95_1 = _tmp_phoneNum;
        this_1.l95_1 = _tmp_gender;
        this_1.m95_1 = _tmp_active;
        this_1.n95_1 = _tmp_dateOfBirth;
        this_1.o95_1 = _tmp_personAddress;
        this_1.p95_1 = _tmp_personOrgId;
        this_1.q95_1 = _tmp_personGroupUid;
        this_1.r95_1 = _tmp_personLct;
        this_1.s95_1 = _tmp_personCountry;
        this_1.t95_1 = _tmp_personType;
        this_1.u95_1 = _tmp_personMasterChangeSeqNum;
        this_1.v95_1 = _tmp_personLocalChangeSeqNum;
        this_1.w95_1 = _tmp_personLastChangedBy;
        this_1.x95_1 = _tmp_admin;
        this_1.y95_1 = _tmp_personNotes;
        this_1.z95_1 = _tmp_fatherName;
        this_1.a96_1 = _tmp_fatherNumber;
        this_1.b96_1 = _tmp_motherName;
        this_1.c96_1 = _tmp_motherNum;
        tmp_29.a95_1 = this_1;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_30 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new PersonPicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.d96_1 = _tmp_personPictureUid;
        this_2.e96_1 = _tmp_personPictureLct;
        this_2.f96_1 = _tmp_personPictureUri;
        this_2.g96_1 = _tmp_personPictureThumbnailUri;
        this_2.h96_1 = _tmp_fileSize;
        this_2.i96_1 = _tmp_personPictureActive;
        tmp_30.b95_1 = this_2;
      }
      return this_0;
    };
  }
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda$lambda$lambda(_result));
  }
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) {
    this.c98_1 = $clazzUid;
    this.d98_1 = $roleId;
    this.e98_1 = $filter;
    this.f98_1 = $currentTime;
    this.g98_1 = $accountPersonUid;
    this.h98_1 = $searchText;
    this.i98_1 = $sortOrder;
    this.j98_1 = $_limit;
    this.k98_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda).c97 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda).he = function (p1, $completion) {
    return this.c97((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.l98_1.i5h(1, this.c98_1);
            this.l98_1.i5h(2, this.c98_1);
            this.l98_1.h5h(3, this.d98_1);
            this.l98_1.h5h(4, this.e98_1);
            this.l98_1.i5h(5, this.f98_1);
            this.l98_1.i5h(6, this.c98_1);
            this.l98_1.i5h(7, this.g98_1);
            this.l98_1.i5h(8, this.g98_1);
            this.l98_1.i5h(9, this.c98_1);
            this.l98_1.i5h(10, this.g98_1);
            this.l98_1.i5h(11, this.g98_1);
            this.l98_1.i5h(12, this.g98_1);
            this.l98_1.l5h(13, this.h98_1);
            this.l98_1.h5h(14, this.i98_1);
            this.l98_1.h5h(15, this.i98_1);
            this.l98_1.h5h(16, this.i98_1);
            this.l98_1.h5h(17, this.i98_1);
            this.l98_1.h5h(18, this.j98_1);
            this.l98_1.h5h(19, this.k98_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.l98_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda(this.c98_1, this.d98_1, this.e98_1, this.f98_1, this.g98_1, this.h98_1, this.i98_1, this.j98_1, this.k98_1, completion);
    i.l98_1 = _stmt;
    return i;
  };
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda_0($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.c97(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, resultContinuation) {
    this.u98_1 = $clazzUid;
    this.v98_1 = $roleId;
    this.w98_1 = $filter;
    this.x98_1 = $currentTime;
    this.y98_1 = $accountPersonUid;
    this.z98_1 = $searchText;
    this.a99_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.b99_1.i5h(1, this.u98_1);
            this.b99_1.i5h(2, this.u98_1);
            this.b99_1.h5h(3, this.v98_1);
            this.b99_1.h5h(4, this.w98_1);
            this.b99_1.i5h(5, this.x98_1);
            this.b99_1.i5h(6, this.u98_1);
            this.b99_1.i5h(7, this.y98_1);
            this.b99_1.i5h(8, this.y98_1);
            this.b99_1.i5h(9, this.u98_1);
            this.b99_1.i5h(10, this.y98_1);
            this.b99_1.i5h(11, this.y98_1);
            this.b99_1.i5h(12, this.y98_1);
            this.b99_1.l5h(13, this.z98_1);
            this.b99_1.h5h(14, this.a99_1);
            this.b99_1.h5h(15, this.a99_1);
            this.b99_1.h5h(16, this.a99_1);
            this.b99_1.h5h(17, this.a99_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.b99_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda(this.u98_1, this.v98_1, this.w98_1, this.x98_1, this.y98_1, this.z98_1, this.a99_1, completion);
    i.b99_1 = _stmt;
    return i;
  };
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda_0($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, resultContinuation) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda$lambda(_result) {
    return mapNextRow(_result, null, ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda$lambda$lambda(_result));
  }
  function ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_clazzName = $_result.rz('clazzName');
      var _tmp_firstNames = $_result.rz('firstNames');
      var _tmp_lastName = $_result.rz('lastName');
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseNameAndPersonName();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.getClazzNameAndPersonName.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.c99_1 = _tmp_clazzName;
      this_0.d99_1 = _tmp_firstNames;
      this_0.e99_1 = _tmp_lastName;
      return this_0;
    };
  }
  function ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.f99_1);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO ClazzEnrolment (clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1).j99 = function (stmt, entity) {
    if (entity.e8h_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.e8h_1);
    }
    stmt.i5h(2, entity.f8h_1);
    stmt.i5h(3, entity.g8h_1);
    stmt.i5h(4, entity.h8h_1);
    stmt.i5h(5, entity.i8h_1);
    stmt.h5h(6, entity.j8h_1);
    stmt.j5h(7, entity.k8h_1);
    stmt.v5g(8, entity.l8h_1);
    stmt.i5h(9, entity.m8h_1);
    stmt.h5h(10, entity.n8h_1);
    stmt.i5h(11, entity.o8h_1);
    stmt.i5h(12, entity.p8h_1);
    stmt.h5h(13, entity.q8h_1);
    stmt.i5h(14, entity.r8h_1);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1).c5f = function (stmt, entity) {
    return this.j99(stmt, entity instanceof ClazzEnrolment ? entity : THROW_CCE());
  };
  function ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) {
    this.s99_1 = $entity;
    this.t99_1 = $_result;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda).y5e = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda).he = function (p1, $completion) {
    return this.y5e((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.u99_1.i5h(1, this.s99_1.f8h_1);
            this.u99_1.i5h(2, this.s99_1.g8h_1);
            this.u99_1.i5h(3, this.s99_1.h8h_1);
            this.u99_1.i5h(4, this.s99_1.i8h_1);
            this.u99_1.h5h(5, this.s99_1.j8h_1);
            this.u99_1.j5h(6, this.s99_1.k8h_1);
            this.u99_1.v5g(7, this.s99_1.l8h_1);
            this.u99_1.i5h(8, this.s99_1.m8h_1);
            this.u99_1.h5h(9, this.s99_1.n8h_1);
            this.u99_1.i5h(10, this.s99_1.o8h_1);
            this.u99_1.i5h(11, this.s99_1.p8h_1);
            this.u99_1.h5h(12, this.s99_1.q8h_1);
            this.u99_1.i5h(13, this.s99_1.r8h_1);
            this.u99_1.i5h(14, this.s99_1.e8h_1);
            this.v99_1 = this.t99_1._v;
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.u99_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            var ARGUMENT_0 = this.v99_1 + ARGUMENT | 0;
            this.t99_1._v = ARGUMENT_0;
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda(this.s99_1, this.t99_1, completion);
    i.u99_1 = _stmt;
    return i;
  };
  function ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) {
    var i = new ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.y5e(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda(this$0, $personUid, $clazzUid, resultContinuation) {
    this.e9a_1 = this$0;
    this.f9a_1 = $personUid;
    this.g9a_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda).h9a = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda).z77 = function ($completion) {
    return this.h9a($completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig("\n        SELECT ClazzEnrolment.*, LeavingReason.*, \n               COALESCE(Clazz.clazzTimeZone, 'UTC') as timeZone\n          FROM ClazzEnrolment \n               LEFT JOIN LeavingReason \n                         ON LeavingReason.leavingReasonUid = ClazzEnrolment.clazzEnrolmentLeavingReasonUid\n               LEFT JOIN Clazz \n                         ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n         WHERE clazzEnrolmentPersonUid = CAST(? AS BIGINT) \n           AND ClazzEnrolment.clazzEnrolmentActive \n           AND clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n      ORDER BY clazzEnrolmentDateLeft DESC\n           ", VOID, VOID, VOID, "\n        SELECT ClazzEnrolment.*, LeavingReason.*, \n               COALESCE(Clazz.clazzTimeZone, 'UTC') as timeZone\n          FROM ClazzEnrolment \n               LEFT JOIN LeavingReason \n                         ON LeavingReason.leavingReasonUid = ClazzEnrolment.clazzEnrolmentLeavingReasonUid\n               LEFT JOIN Clazz \n                         ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n         WHERE clazzEnrolmentPersonUid = ? \n           AND ClazzEnrolment.clazzEnrolmentActive \n           AND clazzEnrolmentClazzUid = ? \n      ORDER BY clazzEnrolmentDateLeft DESC\n           \n", true);
            suspendResult = prepareAndUseStatementAsync(this.e9a_1.f99_1, tmp_0, ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda_0(this.f9a_1, this.g9a_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda).y77 = function (completion) {
    return new ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda(this.e9a_1, this.f9a_1, this.g9a_1, completion);
  };
  function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda_0(this$0, $personUid, $clazzUid, resultContinuation) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda(this$0, $personUid, $clazzUid, resultContinuation);
    var l = function ($completion) {
      return i.h9a($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda($enrolmentUid, resultContinuation) {
    this.q9a_1 = $enrolmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda).s9a = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda).he = function (p1, $completion) {
    return this.s9a((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.r9a_1.i5h(1, this.q9a_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.r9a_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda(this.q9a_1, completion);
    i.r9a_1 = _stmt;
    return i;
  };
  function ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda_0($enrolmentUid, resultContinuation) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda($enrolmentUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.s9a(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda(this$0, $accountPersonUid, $otherPersonUid, resultContinuation) {
    this.b9b_1 = this$0;
    this.c9b_1 = $accountPersonUid;
    this.d9b_1 = $otherPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda).e9b = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda).z77 = function ($completion) {
    return this.e9b($completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n               /* List of all CoursePermissions that are granted to the person as per accountPersonUid */\n          WITH CoursePermissionsForAccountPerson AS (\n               \n        /* Get CoursePermissions given to the active user based on their enrolment role*/\n        SELECT CoursePermission.*\n          FROM ClazzEnrolment ClazzEnrolment_ActiveUser\n               JOIN CoursePermission \n                    ON CoursePermission.cpClazzUid = ClazzEnrolment_ActiveUser.clazzEnrolmentClazzUid\n                   AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ActiveUser.clazzEnrolmentRole\n         WHERE ClazzEnrolment_ActiveUser.clazzEnrolmentPersonUid = CAST(? AS BIGINT) \n         UNION\n        /* Get ClazzUids where the active user can view members based a grant directly to them */\n        SELECT CoursePermission.*\n          FROM CoursePermission\n         WHERE CoursePermission.cpToPersonUid  = CAST(? AS BIGINT)\n    ),\n               /* Check if CoursePermission for accountPersonUid grants view permission */\n               CanViewPersonUidViaCoursePermission(personUid) AS (\n                    SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                      FROM CoursePermissionsForAccountPerson\n                           JOIN ClazzEnrolment \n                                ON (CoursePermissionsForAccountPerson.cpPermissionsFlag & 8192) > 0\n                               AND ClazzEnrolment.clazzEnrolmentClazzUid = CoursePermissionsForAccountPerson.cpClazzUid  \n                     WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)         \n               )     \n        SELECT ClazzEnrolment.*,\n               Clazz.*,\n               CourseTerminology.*\n          FROM ClazzEnrolment\n               JOIN Clazz \n                    ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n               LEFT JOIN CourseTerminology\n                    ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n         WHERE (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n           AND ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n               /* Check that accountPersonUid has permission to see otherPerson */\n           AND (    (SELECT CAST(? AS BIGINT) = CAST(? AS BIGINT))\n                 OR (SELECT \n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE CAST(? AS BIGINT) != 0 \n                  AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                  AND (SystemPermission.spPermissionsFlag &\n     \n                            8192\n                            \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    )\n                 OR (SELECT CAST(? AS BIGINT) IN \n                             (SELECT CanViewPersonUidViaCoursePermission.personUid\n                                 FROM CanViewPersonUidViaCoursePermission))           \n               ) \n              /* Check that accountPersonUid has permission to see related Clazz */\n          AND (     (SELECT CAST(? AS BIGINT) = CAST(? AS BIGINT))\n                 OR (SELECT \n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE CAST(? AS BIGINT) != 0 \n                  AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                  AND (SystemPermission.spPermissionsFlag &\n     \n                            1\n                            \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    )\n                 OR (EXISTS(SELECT 1\n                              FROM CoursePermissionsForAccountPerson\n                             WHERE CoursePermissionsForAccountPerson.cpClazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n                               AND (CoursePermissionsForAccountPerson.cpPermissionsFlag & 1) > 0)) \n               )\n    ', VOID, VOID, VOID, '\n               /* List of all CoursePermissions that are granted to the person as per accountPersonUid */\n          WITH CoursePermissionsForAccountPerson AS (\n               \n        /* Get CoursePermissions given to the active user based on their enrolment role*/\n        SELECT CoursePermission.*\n          FROM ClazzEnrolment ClazzEnrolment_ActiveUser\n               JOIN CoursePermission \n                    ON CoursePermission.cpClazzUid = ClazzEnrolment_ActiveUser.clazzEnrolmentClazzUid\n                   AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ActiveUser.clazzEnrolmentRole\n         WHERE ClazzEnrolment_ActiveUser.clazzEnrolmentPersonUid = ? \n         UNION\n        /* Get ClazzUids where the active user can view members based a grant directly to them */\n        SELECT CoursePermission.*\n          FROM CoursePermission\n         WHERE CoursePermission.cpToPersonUid  = ?\n    ),\n               /* Check if CoursePermission for accountPersonUid grants view permission */\n               CanViewPersonUidViaCoursePermission(personUid) AS (\n                    SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                      FROM CoursePermissionsForAccountPerson\n                           JOIN ClazzEnrolment \n                                ON (CoursePermissionsForAccountPerson.cpPermissionsFlag & 8192) > 0\n                               AND ClazzEnrolment.clazzEnrolmentClazzUid = CoursePermissionsForAccountPerson.cpClazzUid  \n                     WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?         \n               )     \n        SELECT ClazzEnrolment.*,\n               Clazz.*,\n               CourseTerminology.*\n          FROM ClazzEnrolment\n               JOIN Clazz \n                    ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n               LEFT JOIN CourseTerminology\n                    ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n         WHERE (? != 0 AND ? != 0)\n           AND ClazzEnrolment.clazzEnrolmentPersonUid = ?\n               /* Check that accountPersonUid has permission to see otherPerson */\n           AND (    (SELECT ? = ?)\n                 OR (SELECT \n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n     \n                            8192\n                            \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    )\n                 OR (SELECT ? IN \n                             (SELECT CanViewPersonUidViaCoursePermission.personUid\n                                 FROM CanViewPersonUidViaCoursePermission))           \n               ) \n              /* Check that accountPersonUid has permission to see related Clazz */\n          AND (     (SELECT ? = ?)\n                 OR (SELECT \n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n     \n                            1\n                            \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    )\n                 OR (EXISTS(SELECT 1\n                              FROM CoursePermissionsForAccountPerson\n                             WHERE CoursePermissionsForAccountPerson.cpClazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n                               AND (CoursePermissionsForAccountPerson.cpPermissionsFlag & 1) > 0)) \n               )\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.b9b_1.f99_1, tmp_0, ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda_0(this.c9b_1, this.d9b_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda).y77 = function (completion) {
    return new ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda(this.b9b_1, this.c9b_1, this.d9b_1, completion);
  };
  function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda_0(this$0, $accountPersonUid, $otherPersonUid, resultContinuation) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda(this$0, $accountPersonUid, $otherPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.e9b($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda($clazzUid, $accountPersonUid, $time, resultContinuation) {
    this.n9b_1 = $clazzUid;
    this.o9b_1 = $accountPersonUid;
    this.p9b_1 = $time;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda).r9b = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda).he = function (p1, $completion) {
    return this.r9b((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.q9b_1.i5h(1, this.n9b_1);
            this.q9b_1.i5h(2, this.o9b_1);
            this.q9b_1.i5h(3, this.p9b_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.q9b_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda(this.n9b_1, this.o9b_1, this.p9b_1, completion);
    i.q9b_1 = _stmt;
    return i;
  };
  function ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda_0($clazzUid, $accountPersonUid, $time, resultContinuation) {
    var i = new ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda($clazzUid, $accountPersonUid, $time, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.r9b(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1(this$0, $clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder) {
    this.y9b_1 = this$0;
    this.z9b_1 = $clazzUid;
    this.a9c_1 = $roleId;
    this.b9c_1 = $filter;
    this.c9c_1 = $currentTime;
    this.d9c_1 = $accountPersonUid;
    this.e9c_1 = $permission;
    this.f9c_1 = $searchText;
    this.g9c_1 = $sortOrder;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['Clazz', 'Person', 'ClazzEnrolment', 'PersonPicture', 'CoursePermission'];
    DoorLimitOffsetPagingSource.call(this, this$0.f99_1, tmp$ret$2);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1).h9c = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig("SELECT * FROM (\n        SELECT * \n          FROM (SELECT Person.*, PersonPicture.*,\n                       (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n        \n                       (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n        \n                       (SELECT ClazzEnrolment.clazzEnrolmentRole \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n                           AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n                           AND ClazzEnrolment.clazzEnrolmentActive\n                      ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n                         LIMIT 1) AS enrolmentRole\n                  FROM Person\n                       LEFT JOIN PersonPicture\n                                 ON PersonPicture.personPictureUid = Person.personUid\n                 WHERE Person.personUid IN \n                       (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n                          FROM ClazzEnrolment \n                         WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n                           AND ClazzEnrolment.clazzEnrolmentActive \n                           AND ClazzEnrolment.clazzEnrolmentRole = ? \n                           AND (? != 1 \n                                 OR (CAST(? AS BIGINT) \n                                      BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                                      AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n                   /* Begin permission check */\n                   AND (\n                           (\n         (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         CAST(? AS BIGINT)\n         \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     CAST(? AS BIGINT)\n         \n        ) > 0)\n               )\n    \n    )\n                        OR Person.personUid = CAST(? AS BIGINT)\n                       )  \n                   /* End permission check */                   \n                   AND Person.firstNames || ' ' || Person.lastName LIKE ?\n               GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n      ORDER BY CASE(?)\n                WHEN 1 THEN CourseMember.firstNames\n                WHEN 3 THEN CourseMember.lastName\n                ELSE ''\n            END ASC,\n            CASE(?)\n                WHEN 2 THEN CourseMember.firstNames\n                WHEN 4 THEN CourseMember.lastName\n                ELSE ''\n            END DESC,\n            CASE(?)\n                WHEN 7 THEN CourseMember.earliestJoinDate\n                WHEN 9 THEN CourseMember.latestDateLeft\n                ELSE 0\n            END ASC,\n            CASE(?)\n                WHEN 8 THEN CourseMember.earliestJoinDate\n                WHEN 10 THEN CourseMember.latestDateLeft\n                ELSE 0\n            END DESC\n    ) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n        SELECT * \n          FROM (SELECT Person.*, PersonPicture.*,\n                       (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n        \n                       (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n        \n                       (SELECT ClazzEnrolment.clazzEnrolmentRole \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n                           AND ClazzEnrolment.clazzEnrolmentClazzUid = ? \n                           AND ClazzEnrolment.clazzEnrolmentActive\n                      ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n                         LIMIT 1) AS enrolmentRole\n                  FROM Person\n                       LEFT JOIN PersonPicture\n                                 ON PersonPicture.personPictureUid = Person.personUid\n                 WHERE Person.personUid IN \n                       (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n                          FROM ClazzEnrolment \n                         WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ? \n                           AND ClazzEnrolment.clazzEnrolmentActive \n                           AND ClazzEnrolment.clazzEnrolmentRole = ? \n                           AND (? != 1 \n                                 OR (? \n                                      BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                                      AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n                   /* Begin permission check */\n                   AND (\n                           (\n         (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         ?\n         \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     ?\n         \n        ) > 0)\n               )\n    \n    )\n                        OR Person.personUid = ?\n                       )  \n                   /* End permission check */                   \n                   AND Person.firstNames || ' ' || Person.lastName LIKE ?\n               GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n      ORDER BY CASE(?)\n                WHEN 1 THEN CourseMember.firstNames\n                WHEN 3 THEN CourseMember.lastName\n                ELSE ''\n            END ASC,\n            CASE(?)\n                WHEN 2 THEN CourseMember.firstNames\n                WHEN 4 THEN CourseMember.lastName\n                ELSE ''\n            END DESC,\n            CASE(?)\n                WHEN 7 THEN CourseMember.earliestJoinDate\n                WHEN 9 THEN CourseMember.latestDateLeft\n                ELSE 0\n            END ASC,\n            CASE(?)\n                WHEN 8 THEN CourseMember.earliestJoinDate\n                WHEN 10 THEN CourseMember.latestDateLeft\n                ELSE 0\n            END DESC\n    ) AS _PagingData LIMIT ? OFFSET ?\n", true);
    return prepareAndUseStatementAsync(this.y9b_1.f99_1, tmp, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda_0(this.z9b_1, this.a9c_1, this.b9c_1, this.c9c_1, this.d9c_1, this.e9c_1, this.f9c_1, this.g9c_1, _limit, _offset, null), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1).j5p = function (_limit, _offset, $completion) {
    return this.h9c(_limit, _offset, $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n        SELECT * \n          FROM (SELECT Person.*, PersonPicture.*,\n                       (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n        \n                       (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n        \n                       (SELECT ClazzEnrolment.clazzEnrolmentRole \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n                           AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n                           AND ClazzEnrolment.clazzEnrolmentActive\n                      ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n                         LIMIT 1) AS enrolmentRole\n                  FROM Person\n                       LEFT JOIN PersonPicture\n                                 ON PersonPicture.personPictureUid = Person.personUid\n                 WHERE Person.personUid IN \n                       (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n                          FROM ClazzEnrolment \n                         WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n                           AND ClazzEnrolment.clazzEnrolmentActive \n                           AND ClazzEnrolment.clazzEnrolmentRole = ? \n                           AND (? != 1 \n                                 OR (CAST(? AS BIGINT) \n                                      BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                                      AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n                   /* Begin permission check */\n                   AND (\n                           (\n         (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         CAST(? AS BIGINT)\n         \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     CAST(? AS BIGINT)\n         \n        ) > 0)\n               )\n    \n    )\n                        OR Person.personUid = CAST(? AS BIGINT)\n                       )  \n                   /* End permission check */                   \n                   AND Person.firstNames || ' ' || Person.lastName LIKE ?\n               GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n      ORDER BY CASE(?)\n                WHEN 1 THEN CourseMember.firstNames\n                WHEN 3 THEN CourseMember.lastName\n                ELSE ''\n            END ASC,\n            CASE(?)\n                WHEN 2 THEN CourseMember.firstNames\n                WHEN 4 THEN CourseMember.lastName\n                ELSE ''\n            END DESC,\n            CASE(?)\n                WHEN 7 THEN CourseMember.earliestJoinDate\n                WHEN 9 THEN CourseMember.latestDateLeft\n                ELSE 0\n            END ASC,\n            CASE(?)\n                WHEN 8 THEN CourseMember.earliestJoinDate\n                WHEN 10 THEN CourseMember.latestDateLeft\n                ELSE 0\n            END DESC\n    ) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n        SELECT * \n          FROM (SELECT Person.*, PersonPicture.*,\n                       (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n        \n                       (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n        \n                       (SELECT ClazzEnrolment.clazzEnrolmentRole \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n                           AND ClazzEnrolment.clazzEnrolmentClazzUid = ? \n                           AND ClazzEnrolment.clazzEnrolmentActive\n                      ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n                         LIMIT 1) AS enrolmentRole\n                  FROM Person\n                       LEFT JOIN PersonPicture\n                                 ON PersonPicture.personPictureUid = Person.personUid\n                 WHERE Person.personUid IN \n                       (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n                          FROM ClazzEnrolment \n                         WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ? \n                           AND ClazzEnrolment.clazzEnrolmentActive \n                           AND ClazzEnrolment.clazzEnrolmentRole = ? \n                           AND (? != 1 \n                                 OR (? \n                                      BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                                      AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n                   /* Begin permission check */\n                   AND (\n                           (\n         (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         ?\n         \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     ?\n         \n        ) > 0)\n               )\n    \n    )\n                        OR Person.personUid = ?\n                       )  \n                   /* End permission check */                   \n                   AND Person.firstNames || ' ' || Person.lastName LIKE ?\n               GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n      ORDER BY CASE(?)\n                WHEN 1 THEN CourseMember.firstNames\n                WHEN 3 THEN CourseMember.lastName\n                ELSE ''\n            END ASC,\n            CASE(?)\n                WHEN 2 THEN CourseMember.firstNames\n                WHEN 4 THEN CourseMember.lastName\n                ELSE ''\n            END DESC,\n            CASE(?)\n                WHEN 7 THEN CourseMember.earliestJoinDate\n                WHEN 9 THEN CourseMember.latestDateLeft\n                ELSE 0\n            END ASC,\n            CASE(?)\n                WHEN 8 THEN CourseMember.earliestJoinDate\n                WHEN 10 THEN CourseMember.latestDateLeft\n                ELSE 0\n            END DESC\n    ) AS _PagingCount\n", true);
    return prepareAndUseStatementAsync(this.y9b_1.f99_1, tmp, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda_0(this.z9b_1, this.a9c_1, this.b9c_1, this.c9c_1, this.d9c_1, this.e9c_1, this.f9c_1, this.g9c_1, null), $completion);
  };
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1(this$0, $clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder) {
    this.o9c_1 = this$0;
    this.p9c_1 = $clazzUid;
    this.q9c_1 = $roleId;
    this.r9c_1 = $filter;
    this.s9c_1 = $currentTime;
    this.t9c_1 = $accountPersonUid;
    this.u9c_1 = $searchText;
    this.v9c_1 = $sortOrder;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['Clazz', 'Person', 'ClazzEnrolment', 'PersonPicture', 'CoursePermission', 'StatementEntity', 'ActorEntity'];
    DoorLimitOffsetPagingSource.call(this, this$0.f99_1, tmp$ret$2);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1).h9c = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig("SELECT * FROM (\n        SELECT * \n          FROM (SELECT Person.*, PersonPicture.*,\n                       (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n        \n                       (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n        \n                       (SELECT ClazzEnrolment.clazzEnrolmentRole \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n                           AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n                           AND ClazzEnrolment.clazzEnrolmentActive\n                      ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n                         LIMIT 1) AS enrolmentRole\n                  FROM Person\n                       LEFT JOIN PersonPicture\n                                 ON PersonPicture.personPictureUid = Person.personUid\n                       --Dummy join so that invalidations of the StatementEntity table will trigger\n                       -- PagingSource invalidation of ClazzGradebookPagingSource\n                       LEFT JOIN StatementEntity\n                                 ON StatementEntity.statementIdHi = 0 \n                                    AND StatementEntity.statementIdLo = 0\n                       LEFT JOIN ActorEntity\n                                 ON ActorEntity.actorUid = 0\n                 WHERE Person.personUid IN \n                       (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n                          FROM ClazzEnrolment \n                         WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n                           AND ClazzEnrolment.clazzEnrolmentActive \n                           AND ClazzEnrolment.clazzEnrolmentRole = ? \n                           AND (? != 1 \n                                 OR (CAST(? AS BIGINT) \n                                      BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                                      AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n                   /* Begin permission check */\n                   AND (\n                           ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         128\n                            \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     128\n                            \n        ) > 0)\n               )\n    )\n                        OR Person.personUid = CAST(? AS BIGINT)\n                       )  \n                   /* End permission check */                   \n                   AND Person.firstNames || ' ' || Person.lastName LIKE ?\n               GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n      ORDER BY CASE(?)\n                WHEN 1 THEN CourseMember.firstNames\n                WHEN 3 THEN CourseMember.lastName\n                ELSE ''\n            END ASC,\n            CASE(?)\n                WHEN 2 THEN CourseMember.firstNames\n                WHEN 4 THEN CourseMember.lastName\n                ELSE ''\n            END DESC,\n            CASE(?)\n                WHEN 7 THEN CourseMember.earliestJoinDate\n                WHEN 9 THEN CourseMember.latestDateLeft\n                ELSE 0\n            END ASC,\n            CASE(?)\n                WHEN 8 THEN CourseMember.earliestJoinDate\n                WHEN 10 THEN CourseMember.latestDateLeft\n                ELSE 0\n            END DESC\n    ) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n        SELECT * \n          FROM (SELECT Person.*, PersonPicture.*,\n                       (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n        \n                       (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n        \n                       (SELECT ClazzEnrolment.clazzEnrolmentRole \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n                           AND ClazzEnrolment.clazzEnrolmentClazzUid = ? \n                           AND ClazzEnrolment.clazzEnrolmentActive\n                      ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n                         LIMIT 1) AS enrolmentRole\n                  FROM Person\n                       LEFT JOIN PersonPicture\n                                 ON PersonPicture.personPictureUid = Person.personUid\n                       --Dummy join so that invalidations of the StatementEntity table will trigger\n                       -- PagingSource invalidation of ClazzGradebookPagingSource\n                       LEFT JOIN StatementEntity\n                                 ON StatementEntity.statementIdHi = 0 \n                                    AND StatementEntity.statementIdLo = 0\n                       LEFT JOIN ActorEntity\n                                 ON ActorEntity.actorUid = 0\n                 WHERE Person.personUid IN \n                       (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n                          FROM ClazzEnrolment \n                         WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ? \n                           AND ClazzEnrolment.clazzEnrolmentActive \n                           AND ClazzEnrolment.clazzEnrolmentRole = ? \n                           AND (? != 1 \n                                 OR (? \n                                      BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                                      AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n                   /* Begin permission check */\n                   AND (\n                           ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         128\n                            \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     128\n                            \n        ) > 0)\n               )\n    )\n                        OR Person.personUid = ?\n                       )  \n                   /* End permission check */                   \n                   AND Person.firstNames || ' ' || Person.lastName LIKE ?\n               GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n      ORDER BY CASE(?)\n                WHEN 1 THEN CourseMember.firstNames\n                WHEN 3 THEN CourseMember.lastName\n                ELSE ''\n            END ASC,\n            CASE(?)\n                WHEN 2 THEN CourseMember.firstNames\n                WHEN 4 THEN CourseMember.lastName\n                ELSE ''\n            END DESC,\n            CASE(?)\n                WHEN 7 THEN CourseMember.earliestJoinDate\n                WHEN 9 THEN CourseMember.latestDateLeft\n                ELSE 0\n            END ASC,\n            CASE(?)\n                WHEN 8 THEN CourseMember.earliestJoinDate\n                WHEN 10 THEN CourseMember.latestDateLeft\n                ELSE 0\n            END DESC\n    ) AS _PagingData LIMIT ? OFFSET ?\n", true);
    return prepareAndUseStatementAsync(this.o9c_1.f99_1, tmp, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda_0(this.p9c_1, this.q9c_1, this.r9c_1, this.s9c_1, this.t9c_1, this.u9c_1, this.v9c_1, _limit, _offset, null), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1).j5p = function (_limit, _offset, $completion) {
    return this.h9c(_limit, _offset, $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n        SELECT * \n          FROM (SELECT Person.*, PersonPicture.*,\n                       (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n        \n                       (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n        \n                       (SELECT ClazzEnrolment.clazzEnrolmentRole \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n                           AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n                           AND ClazzEnrolment.clazzEnrolmentActive\n                      ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n                         LIMIT 1) AS enrolmentRole\n                  FROM Person\n                       LEFT JOIN PersonPicture\n                                 ON PersonPicture.personPictureUid = Person.personUid\n                       --Dummy join so that invalidations of the StatementEntity table will trigger\n                       -- PagingSource invalidation of ClazzGradebookPagingSource\n                       LEFT JOIN StatementEntity\n                                 ON StatementEntity.statementIdHi = 0 \n                                    AND StatementEntity.statementIdLo = 0\n                       LEFT JOIN ActorEntity\n                                 ON ActorEntity.actorUid = 0\n                 WHERE Person.personUid IN \n                       (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n                          FROM ClazzEnrolment \n                         WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n                           AND ClazzEnrolment.clazzEnrolmentActive \n                           AND ClazzEnrolment.clazzEnrolmentRole = ? \n                           AND (? != 1 \n                                 OR (CAST(? AS BIGINT) \n                                      BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                                      AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n                   /* Begin permission check */\n                   AND (\n                           ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         128\n                            \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     128\n                            \n        ) > 0)\n               )\n    )\n                        OR Person.personUid = CAST(? AS BIGINT)\n                       )  \n                   /* End permission check */                   \n                   AND Person.firstNames || ' ' || Person.lastName LIKE ?\n               GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n      ORDER BY CASE(?)\n                WHEN 1 THEN CourseMember.firstNames\n                WHEN 3 THEN CourseMember.lastName\n                ELSE ''\n            END ASC,\n            CASE(?)\n                WHEN 2 THEN CourseMember.firstNames\n                WHEN 4 THEN CourseMember.lastName\n                ELSE ''\n            END DESC,\n            CASE(?)\n                WHEN 7 THEN CourseMember.earliestJoinDate\n                WHEN 9 THEN CourseMember.latestDateLeft\n                ELSE 0\n            END ASC,\n            CASE(?)\n                WHEN 8 THEN CourseMember.earliestJoinDate\n                WHEN 10 THEN CourseMember.latestDateLeft\n                ELSE 0\n            END DESC\n    ) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n        SELECT * \n          FROM (SELECT Person.*, PersonPicture.*,\n                       (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n        \n                       (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n        \n                       (SELECT ClazzEnrolment.clazzEnrolmentRole \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n                           AND ClazzEnrolment.clazzEnrolmentClazzUid = ? \n                           AND ClazzEnrolment.clazzEnrolmentActive\n                      ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n                         LIMIT 1) AS enrolmentRole\n                  FROM Person\n                       LEFT JOIN PersonPicture\n                                 ON PersonPicture.personPictureUid = Person.personUid\n                       --Dummy join so that invalidations of the StatementEntity table will trigger\n                       -- PagingSource invalidation of ClazzGradebookPagingSource\n                       LEFT JOIN StatementEntity\n                                 ON StatementEntity.statementIdHi = 0 \n                                    AND StatementEntity.statementIdLo = 0\n                       LEFT JOIN ActorEntity\n                                 ON ActorEntity.actorUid = 0\n                 WHERE Person.personUid IN \n                       (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n                          FROM ClazzEnrolment \n                         WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ? \n                           AND ClazzEnrolment.clazzEnrolmentActive \n                           AND ClazzEnrolment.clazzEnrolmentRole = ? \n                           AND (? != 1 \n                                 OR (? \n                                      BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                                      AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n                   /* Begin permission check */\n                   AND (\n                           ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         128\n                            \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     128\n                            \n        ) > 0)\n               )\n    )\n                        OR Person.personUid = ?\n                       )  \n                   /* End permission check */                   \n                   AND Person.firstNames || ' ' || Person.lastName LIKE ?\n               GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n      ORDER BY CASE(?)\n                WHEN 1 THEN CourseMember.firstNames\n                WHEN 3 THEN CourseMember.lastName\n                ELSE ''\n            END ASC,\n            CASE(?)\n                WHEN 2 THEN CourseMember.firstNames\n                WHEN 4 THEN CourseMember.lastName\n                ELSE ''\n            END DESC,\n            CASE(?)\n                WHEN 7 THEN CourseMember.earliestJoinDate\n                WHEN 9 THEN CourseMember.latestDateLeft\n                ELSE 0\n            END ASC,\n            CASE(?)\n                WHEN 8 THEN CourseMember.earliestJoinDate\n                WHEN 10 THEN CourseMember.latestDateLeft\n                ELSE 0\n            END DESC\n    ) AS _PagingCount\n", true);
    return prepareAndUseStatementAsync(this.o9c_1.f99_1, tmp, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda_0(this.p9c_1, this.q9c_1, this.r9c_1, this.s9c_1, this.t9c_1, this.u9c_1, this.v9c_1, null), $completion);
  };
  function ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda($clazzUid, $personUid, resultContinuation) {
    this.e9d_1 = $clazzUid;
    this.f9d_1 = $personUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda).h9d = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda).he = function (p1, $completion) {
    return this.h9d((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.g9d_1.i5h(1, this.e9d_1);
            this.g9d_1.i5h(2, this.f9d_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.g9d_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda(this.e9d_1, this.f9d_1, completion);
    i.g9d_1 = _stmt;
    return i;
  };
  function ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda_0($clazzUid, $personUid, resultContinuation) {
    var i = new ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda($clazzUid, $personUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.h9d(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$44(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.q9d_1 = _this__u8e3s4;
    this.r9d_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$44).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.q9d_1.g99_1.j5g(this.r9d_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateAsyncCOROUTINE$45(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.a9e_1 = _this__u8e3s4;
    this.b9e_1 = entity;
  }
  protoOf($updateAsyncCOROUTINE$45).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.c9e_1 = {_v: 0};
            this.d9e_1 = 'UPDATE ClazzEnrolment SET clazzEnrolmentPersonUid = ?, clazzEnrolmentClazzUid = ?, clazzEnrolmentDateJoined = ?, clazzEnrolmentDateLeft = ?, clazzEnrolmentRole = ?, clazzEnrolmentAttendancePercentage = ?, clazzEnrolmentActive = ?, clazzEnrolmentLeavingReasonUid = ?, clazzEnrolmentOutcome = ?, clazzEnrolmentLocalChangeSeqNum = ?, clazzEnrolmentMasterChangeSeqNum = ?, clazzEnrolmentLastChangedBy = ?, clazzEnrolmentLct = ? WHERE clazzEnrolmentUid = ?';
            this.hd_1 = 1;
            suspendResult = prepareAndUseStatementAsync_0(this.a9e_1.f99_1, this.d9e_1, VOID, ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda_0(this.b9e_1, this.c9e_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return this.c9e_1._v;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ClazzEnrolmentDao_JdbcImpl(_db) {
    ClazzEnrolmentDao.call(this);
    this.f99_1 = _db;
    var tmp = this;
    tmp.g99_1 = new ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1(this);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl).c93 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$44(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.c93(entity instanceof ClazzEnrolment ? entity : THROW_CCE(), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl).i92 = function (entity, $completion) {
    var tmp = new $updateAsyncCOROUTINE$45(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl).g92 = function (personUid, clazzUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['LeavingReason', 'Clazz', 'ClazzEnrolment'];
    return doorFlow(this.f99_1, tmp, ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda_0(this, personUid, clazzUid, null));
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl).h92 = function (enrolmentUid, $completion) {
    var tmp = new PreparedStatementConfig("\n            SELECT ClazzEnrolment.*, \n                   LeavingReason.*,\n                   COALESCE(Clazz.clazzTimeZone, 'UTC') AS timeZone\n              FROM ClazzEnrolment \n                   LEFT JOIN LeavingReason \n                             ON LeavingReason.leavingReasonUid = ClazzEnrolment.clazzEnrolmentLeavingReasonUid\n                   LEFT JOIN Clazz \n                             ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n             WHERE ClazzEnrolment.clazzEnrolmentUid = CAST(? AS BIGINT)\n             ", VOID, VOID, VOID, "\n            SELECT ClazzEnrolment.*, \n                   LeavingReason.*,\n                   COALESCE(Clazz.clazzTimeZone, 'UTC') AS timeZone\n              FROM ClazzEnrolment \n                   LEFT JOIN LeavingReason \n                             ON LeavingReason.leavingReasonUid = ClazzEnrolment.clazzEnrolmentLeavingReasonUid\n                   LEFT JOIN Clazz \n                             ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n             WHERE ClazzEnrolment.clazzEnrolmentUid = ?\n             \n", true);
    return prepareAndUseStatementAsync(this.f99_1, tmp, ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda_0(enrolmentUid, null), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl).j92 = function (accountPersonUid, otherPersonUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['SystemPermission', 'CourseTerminology', 'Clazz', 'ClazzEnrolment', 'CoursePermission'];
    return doorFlow(this.f99_1, tmp, ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda_0(this, accountPersonUid, otherPersonUid, null));
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl).k92 = function (clazzUid, accountPersonUid, time, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT ClazzEnrolment.*\n          FROM ClazzEnrolment\n         WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n           AND ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n           AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                         AND ClazzEnrolment.clazzEnrolmentDateLeft\n           AND ClazzEnrolment.clazzEnrolmentActive              \n    ', VOID, VOID, VOID, '\n        SELECT ClazzEnrolment.*\n          FROM ClazzEnrolment\n         WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n           AND ClazzEnrolment.clazzEnrolmentPersonUid = ?\n           AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                         AND ClazzEnrolment.clazzEnrolmentDateLeft\n           AND ClazzEnrolment.clazzEnrolmentActive              \n    \n', true);
    return prepareAndUseStatementAsync(this.f99_1, tmp, ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda_0(clazzUid, accountPersonUid, time, null), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl).l92 = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission) {
    return new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1(this, clazzUid, roleId, filter, currentTime, accountPersonUid, permission, searchText, sortOrder);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl).m92 = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime) {
    return new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1(this, clazzUid, roleId, filter, currentTime, accountPersonUid, searchText, sortOrder);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl).n92 = function (personUid, clazzUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT Person.firstNames, Person.lastName, Clazz.clazzName\n          FROM Person\n               LEFT JOIN Clazz\n                         ON Clazz.clazzUid = CAST(? AS BIGINT)\n        WHERE Person.personUid = CAST(? AS BIGINT)                 \n    ', VOID, VOID, VOID, '\n        SELECT Person.firstNames, Person.lastName, Clazz.clazzName\n          FROM Person\n               LEFT JOIN Clazz\n                         ON Clazz.clazzUid = ?\n        WHERE Person.personUid = ?                 \n    \n', true);
    return prepareAndUseStatementAsync(this.f99_1, tmp, ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda_0(clazzUid, personUid, null), $completion);
  };
  function ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzEnrolmentDao_Repo$findEnrolmentWithLeavingReason$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzEnrolmentDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) {
    this.m9e_1 = this$0;
    this.n9e_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_Repo$updateAsync$slambda).i8t = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_Repo$updateAsync$slambda).z77 = function ($completion) {
    return this.i8t($completion);
  };
  protoOf(ClazzEnrolmentDao_Repo$updateAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.m9e_1.q9e_1.i92(this.n9e_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzEnrolmentDao_Repo$updateAsync$slambda).y77 = function (completion) {
    return new ClazzEnrolmentDao_Repo$updateAsync$slambda(this.m9e_1, this.n9e_1, completion);
  };
  function ClazzEnrolmentDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new ClazzEnrolmentDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.i8t($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzEnrolmentDao_Repo$getAllEnrolmentsAtTimeByClazzAndPerson$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda(this$0, $clazzUid, $roleId, $sortOrder, $searchText, $filter, $accountPersonUid, $currentTime, $permission, resultContinuation) {
    this.c9f_1 = this$0;
    this.d9f_1 = $clazzUid;
    this.e9f_1 = $roleId;
    this.f9f_1 = $sortOrder;
    this.g9f_1 = $searchText;
    this.h9f_1 = $filter;
    this.i9f_1 = $accountPersonUid;
    this.j9f_1 = $currentTime;
    this.k9f_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda).k85 = function (_pagingParams, $completion) {
    var tmp = this.l85(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda).he = function (p1, $completion) {
    return this.k85(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            var tmp_0 = this;
            tmp_0.n9f_1 = this.c9f_1.p9e_1;
            var tmp_1 = this;
            tmp_1.o9f_1 = 'ClazzEnrolmentDao/findByClazzUidAndRole';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.p9f_1 = this.c9f_1.r9e_1;
            var tmp_3 = this;
            tmp_3.q9f_1 = this.p9f_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.c9f_1.p9e_1.w38(), 'ClazzEnrolmentDao/findByClazzUidAndRole');
            doorNodeIdHeader(this_0, this.c9f_1.p9e_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.c9f_1.p9e_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.d9f_1));
            parameter(this_0, 'roleId', this.c9f_1.p9e_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.e9f_1));
            parameter(this_0, 'sortOrder', this.c9f_1.p9e_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.f9f_1));
            parameter(this_0, 'searchText', this.c9f_1.p9e_1.w38().k65_1.e45(get_nullable(serializer_0(StringCompanionObject_instance)), this.g9f_1));
            parameter(this_0, 'filter', this.c9f_1.p9e_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.h9f_1));
            parameter(this_0, 'accountPersonUid', this.c9f_1.p9e_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.i9f_1));
            parameter(this_0, 'currentTime', this.c9f_1.p9e_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.j9f_1));
            parameter(this_0, 'permission', this.c9f_1.p9e_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.k9f_1));
            pagingSourceLoadParameters(this_0, this.c9f_1.p9e_1.w38().k65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.l9f_1);
            tmp_4.r9f_1 = this_0;
            this.r9f_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.s9f_1 = this.q9f_1;
            var tmp_6 = this;
            tmp_6.t9f_1 = this.r9f_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.t9f_1, this.s9f_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.u9f_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.c9f_1.o9e_1, this.u9f_1, this.c9f_1.p9e_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.m9f_1 = endOfPaginationReached(this.u9f_1);
            this.id_1 = 5;
            this.hd_1 = 7;
            continue $sm;
          case 4:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda$lambda(this.n9f_1, this.o9f_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 5:
            throw this.kd_1;
          case 6:
            this.id_1 = 5;
            if (false) {
              this.hd_1 = 1;
              continue $sm;
            }

            this.hd_1 = 7;
            continue $sm;
          case 7:
            return this.m9f_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda).l85 = function (_pagingParams, completion) {
    var i = new ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda(this.c9f_1, this.d9f_1, this.e9f_1, this.f9f_1, this.g9f_1, this.h9f_1, this.i9f_1, this.j9f_1, this.k9f_1, completion);
    i.l9f_1 = _pagingParams;
    return i;
  };
  function ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda_0(this$0, $clazzUid, $roleId, $sortOrder, $searchText, $filter, $accountPersonUid, $currentTime, $permission, resultContinuation) {
    var i = new ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda(this$0, $clazzUid, $roleId, $sortOrder, $searchText, $filter, $accountPersonUid, $currentTime, $permission, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.k85(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda(this$0, $clazzUid, $roleId, $sortOrder, $searchText, $filter, $accountPersonUid, $currentTime, resultContinuation) {
    this.d9g_1 = this$0;
    this.e9g_1 = $clazzUid;
    this.f9g_1 = $roleId;
    this.g9g_1 = $sortOrder;
    this.h9g_1 = $searchText;
    this.i9g_1 = $filter;
    this.j9g_1 = $accountPersonUid;
    this.k9g_1 = $currentTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda).k85 = function (_pagingParams, $completion) {
    var tmp = this.l85(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda).he = function (p1, $completion) {
    return this.k85(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            var tmp_0 = this;
            tmp_0.n9g_1 = this.d9g_1.p9e_1;
            var tmp_1 = this;
            tmp_1.o9g_1 = 'ClazzEnrolmentDao/findByClazzUidAndRoleForGradebook';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.p9g_1 = this.d9g_1.r9e_1;
            var tmp_3 = this;
            tmp_3.q9g_1 = this.p9g_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.d9g_1.p9e_1.w38(), 'ClazzEnrolmentDao/findByClazzUidAndRoleForGradebook');
            doorNodeIdHeader(this_0, this.d9g_1.p9e_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.d9g_1.p9e_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.e9g_1));
            parameter(this_0, 'roleId', this.d9g_1.p9e_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.f9g_1));
            parameter(this_0, 'sortOrder', this.d9g_1.p9e_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.g9g_1));
            parameter(this_0, 'searchText', this.d9g_1.p9e_1.w38().k65_1.e45(get_nullable(serializer_0(StringCompanionObject_instance)), this.h9g_1));
            parameter(this_0, 'filter', this.d9g_1.p9e_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.i9g_1));
            parameter(this_0, 'accountPersonUid', this.d9g_1.p9e_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.j9g_1));
            parameter(this_0, 'currentTime', this.d9g_1.p9e_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.k9g_1));
            pagingSourceLoadParameters(this_0, this.d9g_1.p9e_1.w38().k65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.l9g_1);
            tmp_4.r9g_1 = this_0;
            this.r9g_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.s9g_1 = this.q9g_1;
            var tmp_6 = this;
            tmp_6.t9g_1 = this.r9g_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.t9g_1, this.s9g_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.u9g_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.d9g_1.o9e_1, this.u9g_1, this.d9g_1.p9e_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.m9g_1 = endOfPaginationReached(this.u9g_1);
            this.id_1 = 5;
            this.hd_1 = 7;
            continue $sm;
          case 4:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda$lambda(this.n9g_1, this.o9g_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 5:
            throw this.kd_1;
          case 6:
            this.id_1 = 5;
            if (false) {
              this.hd_1 = 1;
              continue $sm;
            }

            this.hd_1 = 7;
            continue $sm;
          case 7:
            return this.m9g_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda).l85 = function (_pagingParams, completion) {
    var i = new ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda(this.d9g_1, this.e9g_1, this.f9g_1, this.g9g_1, this.h9g_1, this.i9g_1, this.j9g_1, this.k9g_1, completion);
    i.l9g_1 = _pagingParams;
    return i;
  };
  function ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda_0(this$0, $clazzUid, $roleId, $sortOrder, $searchText, $filter, $accountPersonUid, $currentTime, resultContinuation) {
    var i = new ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda(this$0, $clazzUid, $roleId, $sortOrder, $searchText, $filter, $accountPersonUid, $currentTime, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.k85(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzEnrolmentDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.d9h_1 = this$0;
    this.e9h_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(ClazzEnrolmentDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.d9h_1.q9e_1.insertAsync(this.e9h_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzEnrolmentDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new ClazzEnrolmentDao_Repo$insertAsync$slambda(this.d9h_1, this.e9h_1, completion);
  };
  function ClazzEnrolmentDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new ClazzEnrolmentDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findEnrolmentWithLeavingReasonCOROUTINE$47(_this__u8e3s4, enrolmentUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.n9h_1 = _this__u8e3s4;
    this.o9h_1 = enrolmentUid;
  }
  protoOf($findEnrolmentWithLeavingReasonCOROUTINE$47).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.p9h_1 = this.n9h_1.p9e_1;
            var tmp_1 = this;
            tmp_1.q9h_1 = 'ClazzEnrolmentDao/findEnrolmentWithLeavingReason';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.r9h_1 = this.n9h_1.r9e_1;
            var tmp_3 = this;
            tmp_3.s9h_1 = this.r9h_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.n9h_1.p9e_1.w38(), 'ClazzEnrolmentDao/findEnrolmentWithLeavingReason');
            doorNodeIdHeader(this_0, this.n9h_1.p9e_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'enrolmentUid', this.n9h_1.p9e_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.o9h_1));
            tmp_4.t9h_1 = this_0;
            this.t9h_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.u9h_1 = this.s9h_1;
            var tmp_6 = this;
            tmp_6.v9h_1 = this.t9h_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.v9h_1, this.u9h_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.w9h_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.n9h_1.o9e_1, this.w9h_1, this.n9h_1.p9e_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.x9h_1 = this.kd_1;
              Napier_getInstance().q5d(this.x9h_1, 'DoorLog', ClazzEnrolmentDao_Repo$findEnrolmentWithLeavingReason$lambda(this.p9h_1, this.q9h_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.n9h_1.q9e_1.h92(this.o9h_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateAsyncCOROUTINE$48(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.g9i_1 = _this__u8e3s4;
    this.h9i_1 = entity;
  }
  protoOf($updateAsyncCOROUTINE$48).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.g9i_1.p9e_1, 'ClazzEnrolment', ClazzEnrolmentDao_Repo$updateAsync$slambda_0(this.g9i_1, this.h9i_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $getAllEnrolmentsAtTimeByClazzAndPersonCOROUTINE$51(_this__u8e3s4, clazzUid, accountPersonUid, time, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.q9i_1 = _this__u8e3s4;
    this.r9i_1 = clazzUid;
    this.s9i_1 = accountPersonUid;
    this.t9i_1 = time;
  }
  protoOf($getAllEnrolmentsAtTimeByClazzAndPersonCOROUTINE$51).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.u9i_1 = this.q9i_1.p9e_1;
            var tmp_1 = this;
            tmp_1.v9i_1 = 'ClazzEnrolmentDao/getAllEnrolmentsAtTimeByClazzAndPerson';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.w9i_1 = this.q9i_1.r9e_1;
            var tmp_3 = this;
            tmp_3.x9i_1 = this.w9i_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.q9i_1.p9e_1.w38(), 'ClazzEnrolmentDao/getAllEnrolmentsAtTimeByClazzAndPerson');
            doorNodeIdHeader(this_0, this.q9i_1.p9e_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.q9i_1.p9e_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.r9i_1));
            parameter(this_0, 'accountPersonUid', this.q9i_1.p9e_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.s9i_1));
            parameter(this_0, 'time', this.q9i_1.p9e_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.t9i_1));
            tmp_4.y9i_1 = this_0;
            this.y9i_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.z9i_1 = this.x9i_1;
            var tmp_6 = this;
            tmp_6.a9j_1 = this.y9i_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.a9j_1, this.z9i_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.b9j_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.q9i_1.o9e_1, this.b9j_1, this.q9i_1.p9e_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.c9j_1 = this.kd_1;
              Napier_getInstance().q5d(this.c9j_1, 'DoorLog', ClazzEnrolmentDao_Repo$getAllEnrolmentsAtTimeByClazzAndPerson$lambda(this.u9i_1, this.v9i_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.q9i_1.q9e_1.k92(this.r9i_1, this.s9i_1, this.t9i_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $getClazzNameAndPersonNameCOROUTINE$60(_this__u8e3s4, personUid, clazzUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.l9j_1 = _this__u8e3s4;
    this.m9j_1 = personUid;
    this.n9j_1 = clazzUid;
  }
  protoOf($getClazzNameAndPersonNameCOROUTINE$60).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.l9j_1.q9e_1.n92(this.m9j_1, this.n9j_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$62(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.w9j_1 = _this__u8e3s4;
    this.x9j_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$62).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.w9j_1.p9e_1, 'ClazzEnrolment', ClazzEnrolmentDao_Repo$insertAsync$slambda_0(this.w9j_1, this.x9j_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ClazzEnrolmentDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ClazzEnrolmentDao.call(this);
    this.o9e_1 = _db;
    this.p9e_1 = _repo;
    this.q9e_1 = _dao;
    this.r9e_1 = _httpClient;
    this.s9e_1 = _clientId;
    this.t9e_1 = _endpoint;
  }
  protoOf(ClazzEnrolmentDao_Repo).g92 = function (personUid, clazzUid) {
    var _result = this.q9e_1.g92(personUid, clazzUid);
    return _result;
  };
  protoOf(ClazzEnrolmentDao_Repo).h92 = function (enrolmentUid, $completion) {
    var tmp = new $findEnrolmentWithLeavingReasonCOROUTINE$47(this, enrolmentUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_Repo).i92 = function (entity, $completion) {
    var tmp = new $updateAsyncCOROUTINE$48(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_Repo).j92 = function (accountPersonUid, otherPersonUid) {
    var _result = this.q9e_1.j92(accountPersonUid, otherPersonUid);
    return _result;
  };
  protoOf(ClazzEnrolmentDao_Repo).k92 = function (clazzUid, accountPersonUid, time, $completion) {
    var tmp = new $getAllEnrolmentsAtTimeByClazzAndPersonCOROUTINE$51(this, clazzUid, accountPersonUid, time, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_Repo).l92 = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission) {
    var tmp = this.q9e_1.l92(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission);
    return new DoorRepositoryReplicatePullPagingSource(this.p9e_1, 'ClazzEnrolmentDao/findByClazzUidAndRole', tmp, ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda_0(this, clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission, null));
  };
  protoOf(ClazzEnrolmentDao_Repo).m92 = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime) {
    var tmp = this.q9e_1.m92(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime);
    return new DoorRepositoryReplicatePullPagingSource(this.p9e_1, 'ClazzEnrolmentDao/findByClazzUidAndRoleForGradebook', tmp, ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda_0(this, clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, null));
  };
  protoOf(ClazzEnrolmentDao_Repo).n92 = function (personUid, clazzUid, $completion) {
    var tmp = new $getClazzNameAndPersonNameCOROUTINE$60(this, personUid, clazzUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_Repo).c93 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$62(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_Repo).insertAsync = function (entity, $completion) {
    return this.c93(entity instanceof ClazzEnrolment ? entity : THROW_CCE(), $completion);
  };
  function ClazzLogAttendanceRecordDao() {
  }
  function $upsertListAsyncCOROUTINE$64(_this__u8e3s4, entityList, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.i9k_1 = _this__u8e3s4;
    this.j9k_1 = entityList;
  }
  protoOf($upsertListAsyncCOROUTINE$64).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.k9k_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.i9k_1.r9k_1));
            var tmp_0 = this;
            tmp_0.l9k_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.m9k_1 = this.j9k_1.w();
            var tmp_2 = this;
            tmp_2.n9k_1 = this.m9k_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.n9k_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.o9k_1 = this.n9k_1.e();
            var tmp_3 = this;
            tmp_3.p9k_1 = this.o9k_1;
            if (this.p9k_1.t9k_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.k9k_1.b62(15, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.q9k_1 = suspendResult;
            this.p9k_1.t9k_1 = this.q9k_1;
            var this_0 = this.l9k_1;
            var element = this.q9k_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.p9k_1.a9l_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.i9k_1.s9k_1.z9j(this.j9k_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            return Unit_instance;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$65(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.j9l_1 = _this__u8e3s4;
    this.k9l_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$65).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.l9l_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.j9l_1.r9k_1));
            if (this.k9l_1.t9k_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.l9l_1.b62(15, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.m9l_1 = suspendResult;
            this.k9l_1.t9k_1 = this.m9l_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.k9l_1.a9l_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.j9l_1.s9k_1.insertAsync(this.k9l_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.k9l_1.t9k_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ClazzLogAttendanceRecordDao_DoorWrapper(_db, _dao) {
    ClazzLogAttendanceRecordDao.call(this);
    this.r9k_1 = _db;
    this.s9k_1 = _dao;
  }
  protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).y9j = function (clazzUid, clazzLogUid, time, $completion) {
    return this.s9k_1.y9j(clazzUid, clazzLogUid, time, $completion);
  };
  protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).z9j = function (entityList, $completion) {
    var tmp = new $upsertListAsyncCOROUTINE$64(this, entityList, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).n9l = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$65(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.n9l(entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE(), $completion);
  };
  function ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda$lambda(_result) {
    return mapRows(_result, ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda$lambda$lambda(_result));
  }
  function ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_Person_nullCount = 0;
      var _tmp_personUid = $_result.l5m('personUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_gender = $_result.k5m('gender');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_active = $_result.w65('active');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.l5m('dateOfBirth');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.l5m('personGroupUid');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_personLct = $_result.l5m('personLct');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personType = $_result.k5m('personType');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.l5m('personMasterChangeSeqNum');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.l5m('personLocalChangeSeqNum');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.k5m('personLastChangedBy');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_admin = $_result.w65('admin');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.l5m('personPictureUid');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.l5m('personPictureLct');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_fileSize = $_result.k5m('fileSize');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.w65('personPictureActive');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6;
      var _tmp_ClazzLogAttendanceRecord_nullCount = 0;
      var _tmp_clazzLogAttendanceRecordUid = $_result.l5m('clazzLogAttendanceRecordUid');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_clazzLogAttendanceRecordClazzLogUid = $_result.l5m('clazzLogAttendanceRecordClazzLogUid');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_clazzLogAttendanceRecordPersonUid = $_result.l5m('clazzLogAttendanceRecordPersonUid');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_attendanceStatus = $_result.k5m('attendanceStatus');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_clazzLogAttendanceRecordMasterChangeSeqNum = $_result.l5m('clazzLogAttendanceRecordMasterChangeSeqNum');
      var tmp_33;
      if ($_result.d67()) {
        _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_clazzLogAttendanceRecordLocalChangeSeqNum = $_result.l5m('clazzLogAttendanceRecordLocalChangeSeqNum');
      var tmp_34;
      if ($_result.d67()) {
        _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_clazzLogAttendanceRecordLastChangedBy = $_result.k5m('clazzLogAttendanceRecordLastChangedBy');
      var tmp_35;
      if ($_result.d67()) {
        _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_clazzLogAttendanceRecordLastChangedTime = $_result.l5m('clazzLogAttendanceRecordLastChangedTime');
      var tmp_36;
      if ($_result.d67()) {
        _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_ClazzLogAttendanceRecord_isAllNull = _tmp_ClazzLogAttendanceRecord_nullCount === 8;
      // Inline function 'kotlin.apply' call
      var this_0 = new PersonAndClazzLogAttendanceRecord();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzLogAttendanceRecordDao_JdbcImpl.findByClazzAndTime.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_Person_isAllNull) {
        var tmp_37 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new Person();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzLogAttendanceRecordDao_JdbcImpl.findByClazzAndTime.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.f95_1 = _tmp_personUid;
        this_1.g95_1 = _tmp_username;
        this_1.h95_1 = _tmp_firstNames;
        this_1.i95_1 = _tmp_lastName;
        this_1.j95_1 = _tmp_emailAddr;
        this_1.k95_1 = _tmp_phoneNum;
        this_1.l95_1 = _tmp_gender;
        this_1.m95_1 = _tmp_active;
        this_1.n95_1 = _tmp_dateOfBirth;
        this_1.o95_1 = _tmp_personAddress;
        this_1.p95_1 = _tmp_personOrgId;
        this_1.q95_1 = _tmp_personGroupUid;
        this_1.r95_1 = _tmp_personLct;
        this_1.s95_1 = _tmp_personCountry;
        this_1.t95_1 = _tmp_personType;
        this_1.u95_1 = _tmp_personMasterChangeSeqNum;
        this_1.v95_1 = _tmp_personLocalChangeSeqNum;
        this_1.w95_1 = _tmp_personLastChangedBy;
        this_1.x95_1 = _tmp_admin;
        this_1.y95_1 = _tmp_personNotes;
        this_1.z95_1 = _tmp_fatherName;
        this_1.a96_1 = _tmp_fatherNumber;
        this_1.b96_1 = _tmp_motherName;
        this_1.c96_1 = _tmp_motherNum;
        tmp_37.o9l_1 = this_1;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_38 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new PersonPicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzLogAttendanceRecordDao_JdbcImpl.findByClazzAndTime.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.d96_1 = _tmp_personPictureUid;
        this_2.e96_1 = _tmp_personPictureLct;
        this_2.f96_1 = _tmp_personPictureUri;
        this_2.g96_1 = _tmp_personPictureThumbnailUri;
        this_2.h96_1 = _tmp_fileSize;
        this_2.i96_1 = _tmp_personPictureActive;
        tmp_38.p9l_1 = this_2;
      }
      if (!_tmp_ClazzLogAttendanceRecord_isAllNull) {
        var tmp_39 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new ClazzLogAttendanceRecord();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzLogAttendanceRecordDao_JdbcImpl.findByClazzAndTime.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.t9k_1 = _tmp_clazzLogAttendanceRecordUid;
        this_3.u9k_1 = _tmp_clazzLogAttendanceRecordClazzLogUid;
        this_3.v9k_1 = _tmp_clazzLogAttendanceRecordPersonUid;
        this_3.w9k_1 = _tmp_attendanceStatus;
        this_3.x9k_1 = _tmp_clazzLogAttendanceRecordMasterChangeSeqNum;
        this_3.y9k_1 = _tmp_clazzLogAttendanceRecordLocalChangeSeqNum;
        this_3.z9k_1 = _tmp_clazzLogAttendanceRecordLastChangedBy;
        this_3.a9l_1 = _tmp_clazzLogAttendanceRecordLastChangedTime;
        tmp_39.q9l_1 = this_3;
      }
      return this_0;
    };
  }
  function ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.r9l_1);
  }
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO ClazzLogAttendanceRecord (clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1).w9l = function (stmt, entity) {
    if (entity.t9k_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.t9k_1);
    }
    stmt.i5h(2, entity.u9k_1);
    stmt.i5h(3, entity.v9k_1);
    stmt.h5h(4, entity.w9k_1);
    stmt.i5h(5, entity.x9k_1);
    stmt.i5h(6, entity.y9k_1);
    stmt.h5h(7, entity.z9k_1);
    stmt.i5h(8, entity.a9l_1);
  };
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1).c5f = function (stmt, entity) {
    return this.w9l(stmt, entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE());
  };
  function ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.r9l_1);
  }
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO ClazzLogAttendanceRecord (clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1).w9l = function (stmt, entity) {
    if (entity.t9k_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.t9k_1);
    }
    stmt.i5h(2, entity.u9k_1);
    stmt.i5h(3, entity.v9k_1);
    stmt.h5h(4, entity.w9k_1);
    stmt.i5h(5, entity.x9k_1);
    stmt.i5h(6, entity.y9k_1);
    stmt.h5h(7, entity.z9k_1);
    stmt.i5h(8, entity.a9l_1);
  };
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1).c5f = function (stmt, entity) {
    return this.w9l(stmt, entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE());
  };
  function ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda($clazzUid, $time, $clazzLogUid, resultContinuation) {
    this.h9m_1 = $clazzUid;
    this.i9m_1 = $time;
    this.j9m_1 = $clazzLogUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda).l9m = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda).he = function (p1, $completion) {
    return this.l9m((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.k9m_1.i5h(1, this.h9m_1);
            this.k9m_1.i5h(2, this.i9m_1);
            this.k9m_1.i5h(3, this.j9m_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.k9m_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda(this.h9m_1, this.i9m_1, this.j9m_1, completion);
    i.k9m_1 = _stmt;
    return i;
  };
  function ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda_0($clazzUid, $time, $clazzLogUid, resultContinuation) {
    var i = new ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda($clazzUid, $time, $clazzLogUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.l9m(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$66(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.u9m_1 = _this__u8e3s4;
    this.v9m_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$66).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.u9m_1.s9l_1.j5g(this.v9m_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ClazzLogAttendanceRecordDao_JdbcImpl(_db) {
    ClazzLogAttendanceRecordDao.call(this);
    this.r9l_1 = _db;
    var tmp = this;
    tmp.s9l_1 = new ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1(this);
    var tmp_0 = this;
    tmp_0.t9l_1 = new ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1(this);
  }
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).z9j = function (entityList, $completion) {
    return this.t9l_1.m5g(entityList, $completion);
  };
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).n9l = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$66(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.n9l(entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE(), $completion);
  };
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).y9j = function (clazzUid, clazzLogUid, time, $completion) {
    var tmp = new PreparedStatementConfig('\n        \n        WITH CurrentlyEnrolledPersonUids(enroledPersonUid) AS\n              (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS enroledPersonUid\n                 FROM ClazzEnrolment\n                WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n                  AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                  AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft)\n    \n                  \n        SELECT Person.*, ClazzLogAttendanceRecord.*, PersonPicture.*\n          FROM Person\n               LEFT JOIN ClazzLogAttendanceRecord \n                         ON ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid = \n                            (SELECT ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordUid  \n                               FROM ClazzLogAttendanceRecord ClazzLogAttendanceRecordInner\n                              WHERE ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordClazzLogUid = CAST(? AS BIGINT)\n                                AND ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordPersonUid = Person.personUid\n                           ORDER BY ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordLastChangedTime DESC     \n                              LIMIT 1  \n                            )\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = Person.personUid\n         WHERE Person.personUid IN \n               (SELECT CurrentlyEnrolledPersonUids.enroledPersonUid\n                  FROM CurrentlyEnrolledPersonUids)                \n    ', VOID, VOID, VOID, '\n        \n        WITH CurrentlyEnrolledPersonUids(enroledPersonUid) AS\n              (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS enroledPersonUid\n                 FROM ClazzEnrolment\n                WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n                  AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                  AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft)\n    \n                  \n        SELECT Person.*, ClazzLogAttendanceRecord.*, PersonPicture.*\n          FROM Person\n               LEFT JOIN ClazzLogAttendanceRecord \n                         ON ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid = \n                            (SELECT ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordUid  \n                               FROM ClazzLogAttendanceRecord ClazzLogAttendanceRecordInner\n                              WHERE ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordClazzLogUid = ?\n                                AND ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordPersonUid = Person.personUid\n                           ORDER BY ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordLastChangedTime DESC     \n                              LIMIT 1  \n                            )\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = Person.personUid\n         WHERE Person.personUid IN \n               (SELECT CurrentlyEnrolledPersonUids.enroledPersonUid\n                  FROM CurrentlyEnrolledPersonUids)                \n    \n', true);
    return prepareAndUseStatementAsync(this.r9l_1, tmp, ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda_0(clazzUid, time, clazzLogUid, null), $completion);
  };
  function ClazzLogAttendanceRecordDao_Repo$findByClazzAndTime$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda(this$0, $entityList, resultContinuation) {
    this.e9n_1 = this$0;
    this.f9n_1 = $entityList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.e9n_1.i9n_1.z9j(this.f9n_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda).y77 = function (completion) {
    return new ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda(this.e9n_1, this.f9n_1, completion);
  };
  function ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda_0(this$0, $entityList, resultContinuation) {
    var i = new ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda(this$0, $entityList, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.u9n_1 = this$0;
    this.v9n_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.u9n_1.i9n_1.insertAsync(this.v9n_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda(this.u9n_1, this.v9n_1, completion);
  };
  function ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByClazzAndTimeCOROUTINE$68(_this__u8e3s4, clazzUid, clazzLogUid, time, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.e9o_1 = _this__u8e3s4;
    this.f9o_1 = clazzUid;
    this.g9o_1 = clazzLogUid;
    this.h9o_1 = time;
  }
  protoOf($findByClazzAndTimeCOROUTINE$68).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.i9o_1 = this.e9o_1.h9n_1;
            var tmp_1 = this;
            tmp_1.j9o_1 = 'ClazzLogAttendanceRecordDao/findByClazzAndTime';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.k9o_1 = this.e9o_1.j9n_1;
            var tmp_3 = this;
            tmp_3.l9o_1 = this.k9o_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.e9o_1.h9n_1.w38(), 'ClazzLogAttendanceRecordDao/findByClazzAndTime');
            doorNodeIdHeader(this_0, this.e9o_1.h9n_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.e9o_1.h9n_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.f9o_1));
            parameter(this_0, 'clazzLogUid', this.e9o_1.h9n_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.g9o_1));
            parameter(this_0, 'time', this.e9o_1.h9n_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.h9o_1));
            tmp_4.m9o_1 = this_0;
            this.m9o_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.n9o_1 = this.l9o_1;
            var tmp_6 = this;
            tmp_6.o9o_1 = this.m9o_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.o9o_1, this.n9o_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.p9o_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.e9o_1.g9n_1, this.p9o_1, this.e9o_1.h9n_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.q9o_1 = this.kd_1;
              Napier_getInstance().q5d(this.q9o_1, 'DoorLog', ClazzLogAttendanceRecordDao_Repo$findByClazzAndTime$lambda(this.i9o_1, this.j9o_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.e9o_1.i9n_1.y9j(this.f9o_1, this.g9o_1, this.h9o_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$69(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.z9o_1 = _this__u8e3s4;
    this.a9p_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$69).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.z9o_1.h9n_1, 'ClazzLogAttendanceRecord', ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda_0(this.z9o_1, this.a9p_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ClazzLogAttendanceRecordDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ClazzLogAttendanceRecordDao.call(this);
    this.g9n_1 = _db;
    this.h9n_1 = _repo;
    this.i9n_1 = _dao;
    this.j9n_1 = _httpClient;
    this.k9n_1 = _clientId;
    this.l9n_1 = _endpoint;
  }
  protoOf(ClazzLogAttendanceRecordDao_Repo).y9j = function (clazzUid, clazzLogUid, time, $completion) {
    var tmp = new $findByClazzAndTimeCOROUTINE$68(this, clazzUid, clazzLogUid, time, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogAttendanceRecordDao_Repo).z9j = function (entityList, $completion) {
    return withRepoChangeMonitorAsync(this.h9n_1, 'ClazzLogAttendanceRecord', ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda_0(this, entityList, null), $completion);
  };
  protoOf(ClazzLogAttendanceRecordDao_Repo).n9l = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$69(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogAttendanceRecordDao_Repo).insertAsync = function (entity, $completion) {
    return this.n9l(entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE(), $completion);
  };
  function ClazzLogDao() {
  }
  function $upsertListAsyncCOROUTINE$70(_this__u8e3s4, entityList, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.o9p_1 = _this__u8e3s4;
    this.p9p_1 = entityList;
  }
  protoOf($upsertListAsyncCOROUTINE$70).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.q9p_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.o9p_1.x9p_1));
            var tmp_0 = this;
            tmp_0.r9p_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.s9p_1 = this.p9p_1.w();
            var tmp_2 = this;
            tmp_2.t9p_1 = this.s9p_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.t9p_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.u9p_1 = this.t9p_1.e();
            var tmp_3 = this;
            tmp_3.v9p_1 = this.u9p_1;
            if (this.v9p_1.z9p_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.q9p_1.b62(14, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.w9p_1 = suspendResult;
            this.v9p_1.z9p_1 = this.w9p_1;
            var this_0 = this.r9p_1;
            var element = this.w9p_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.v9p_1.o9q_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.o9p_1.y9p_1.f9p(this.p9p_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            return Unit_instance;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$71(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.x9q_1 = _this__u8e3s4;
    this.y9q_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$71).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.z9q_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.x9q_1.x9p_1));
            if (this.y9q_1.z9p_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.z9q_1.b62(14, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.a9r_1 = suspendResult;
            this.y9q_1.z9p_1 = this.a9r_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.y9q_1.o9q_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.x9q_1.y9p_1.insertAsync(this.y9q_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.y9q_1.z9p_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ClazzLogDao_DoorWrapper(_db, _dao) {
    ClazzLogDao.call(this);
    this.x9p_1 = _db;
    this.y9p_1 = _dao;
  }
  protoOf(ClazzLogDao_DoorWrapper).b9p = function (clazzUid, excludeStatus) {
    return this.y9p_1.b9p(clazzUid, excludeStatus);
  };
  protoOf(ClazzLogDao_DoorWrapper).c9p = function (clazzUid, excludeStatus, $completion) {
    return this.y9p_1.c9p(clazzUid, excludeStatus, $completion);
  };
  protoOf(ClazzLogDao_DoorWrapper).d9p = function (clazzUid, excludeStatusFilter) {
    return this.y9p_1.d9p(clazzUid, excludeStatusFilter);
  };
  protoOf(ClazzLogDao_DoorWrapper).e9p = function (clazzUid, $completion) {
    return this.y9p_1.e9p(clazzUid, $completion);
  };
  protoOf(ClazzLogDao_DoorWrapper).f9p = function (entityList, $completion) {
    var tmp = new $upsertListAsyncCOROUTINE$70(this, entityList, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_DoorWrapper).b9r = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$71(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.b9r(entity instanceof ClazzLog ? entity : THROW_CCE(), $completion);
  };
  function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda$lambda$lambda(_result));
  }
  function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_clazzLogUid = $_result.l5m('clazzLogUid');
      var _tmp_clazzLogClazzUid = $_result.l5m('clazzLogClazzUid');
      var _tmp_logDate = $_result.l5m('logDate');
      var _tmp_timeRecorded = $_result.l5m('timeRecorded');
      var _tmp_clazzLogDone = $_result.w65('clazzLogDone');
      var _tmp_cancellationNote = $_result.rz('cancellationNote');
      var _tmp_clazzLogCancelled = $_result.w65('clazzLogCancelled');
      var _tmp_clazzLogNumPresent = $_result.k5m('clazzLogNumPresent');
      var _tmp_clazzLogNumAbsent = $_result.k5m('clazzLogNumAbsent');
      var _tmp_clazzLogNumPartial = $_result.k5m('clazzLogNumPartial');
      var _tmp_clazzLogScheduleUid = $_result.l5m('clazzLogScheduleUid');
      var _tmp_clazzLogStatusFlag = $_result.k5m('clazzLogStatusFlag');
      var _tmp_clazzLogMSQN = $_result.l5m('clazzLogMSQN');
      var _tmp_clazzLogLCSN = $_result.l5m('clazzLogLCSN');
      var _tmp_clazzLogLCB = $_result.k5m('clazzLogLCB');
      var _tmp_clazzLogLastChangedTime = $_result.l5m('clazzLogLastChangedTime');
      // Inline function 'kotlin.apply' call
      var this_0 = new ClazzLog();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.z9p_1 = _tmp_clazzLogUid;
      this_0.a9q_1 = _tmp_clazzLogClazzUid;
      this_0.b9q_1 = _tmp_logDate;
      this_0.c9q_1 = _tmp_timeRecorded;
      this_0.d9q_1 = _tmp_clazzLogDone;
      this_0.e9q_1 = _tmp_cancellationNote;
      this_0.f9q_1 = _tmp_clazzLogCancelled;
      this_0.g9q_1 = _tmp_clazzLogNumPresent;
      this_0.h9q_1 = _tmp_clazzLogNumAbsent;
      this_0.i9q_1 = _tmp_clazzLogNumPartial;
      this_0.j9q_1 = _tmp_clazzLogScheduleUid;
      this_0.k9q_1 = _tmp_clazzLogStatusFlag;
      this_0.l9q_1 = _tmp_clazzLogMSQN;
      this_0.m9q_1 = _tmp_clazzLogLCSN;
      this_0.n9q_1 = _tmp_clazzLogLCB;
      this_0.o9q_1 = _tmp_clazzLogLastChangedTime;
      return this_0;
    };
  }
  function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda$lambda$lambda(_result));
  }
  function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda($clazzUid, $excludeStatus, $_limit, $_offset, resultContinuation) {
    this.k9r_1 = $clazzUid;
    this.l9r_1 = $excludeStatus;
    this.m9r_1 = $_limit;
    this.n9r_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda).p9r = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda).he = function (p1, $completion) {
    return this.p9r((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.o9r_1.i5h(1, this.k9r_1);
            this.o9r_1.h5h(2, this.l9r_1);
            this.o9r_1.h5h(3, this.m9r_1);
            this.o9r_1.h5h(4, this.n9r_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.o9r_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda(this.k9r_1, this.l9r_1, this.m9r_1, this.n9r_1, completion);
    i.o9r_1 = _stmt;
    return i;
  };
  function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda_0($clazzUid, $excludeStatus, $_limit, $_offset, resultContinuation) {
    var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda($clazzUid, $excludeStatus, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.p9r(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda($clazzUid, $excludeStatus, resultContinuation) {
    this.y9r_1 = $clazzUid;
    this.z9r_1 = $excludeStatus;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.a9s_1.i5h(1, this.y9r_1);
            this.a9s_1.h5h(2, this.z9r_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.a9s_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda(this.y9r_1, this.z9r_1, completion);
    i.a9s_1 = _stmt;
    return i;
  };
  function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda_0($clazzUid, $excludeStatus, resultContinuation) {
    var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda($clazzUid, $excludeStatus, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda$lambda(_result) {
    return mapRows(_result, ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda$lambda$lambda(_result));
  }
  function ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_clazzLogUid = $_result.l5m('clazzLogUid');
      var _tmp_clazzLogClazzUid = $_result.l5m('clazzLogClazzUid');
      var _tmp_logDate = $_result.l5m('logDate');
      var _tmp_timeRecorded = $_result.l5m('timeRecorded');
      var _tmp_clazzLogDone = $_result.w65('clazzLogDone');
      var _tmp_cancellationNote = $_result.rz('cancellationNote');
      var _tmp_clazzLogCancelled = $_result.w65('clazzLogCancelled');
      var _tmp_clazzLogNumPresent = $_result.k5m('clazzLogNumPresent');
      var _tmp_clazzLogNumAbsent = $_result.k5m('clazzLogNumAbsent');
      var _tmp_clazzLogNumPartial = $_result.k5m('clazzLogNumPartial');
      var _tmp_clazzLogScheduleUid = $_result.l5m('clazzLogScheduleUid');
      var _tmp_clazzLogStatusFlag = $_result.k5m('clazzLogStatusFlag');
      var _tmp_clazzLogMSQN = $_result.l5m('clazzLogMSQN');
      var _tmp_clazzLogLCSN = $_result.l5m('clazzLogLCSN');
      var _tmp_clazzLogLCB = $_result.k5m('clazzLogLCB');
      var _tmp_clazzLogLastChangedTime = $_result.l5m('clazzLogLastChangedTime');
      // Inline function 'kotlin.apply' call
      var this_0 = new ClazzLog();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzLogDao_JdbcImpl.findByClazzUidAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.z9p_1 = _tmp_clazzLogUid;
      this_0.a9q_1 = _tmp_clazzLogClazzUid;
      this_0.b9q_1 = _tmp_logDate;
      this_0.c9q_1 = _tmp_timeRecorded;
      this_0.d9q_1 = _tmp_clazzLogDone;
      this_0.e9q_1 = _tmp_cancellationNote;
      this_0.f9q_1 = _tmp_clazzLogCancelled;
      this_0.g9q_1 = _tmp_clazzLogNumPresent;
      this_0.h9q_1 = _tmp_clazzLogNumAbsent;
      this_0.i9q_1 = _tmp_clazzLogNumPartial;
      this_0.j9q_1 = _tmp_clazzLogScheduleUid;
      this_0.k9q_1 = _tmp_clazzLogStatusFlag;
      this_0.l9q_1 = _tmp_clazzLogMSQN;
      this_0.m9q_1 = _tmp_clazzLogLCSN;
      this_0.n9q_1 = _tmp_clazzLogLCB;
      this_0.o9q_1 = _tmp_clazzLogLastChangedTime;
      return this_0;
    };
  }
  function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, false, ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda$lambda$lambda(_result));
  }
  function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.a74(1);
    };
  }
  function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda($clazzUid, $excludeStatusFilter, resultContinuation) {
    this.j9s_1 = $clazzUid;
    this.k9s_1 = $excludeStatusFilter;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda).m9s = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda).he = function (p1, $completion) {
    return this.m9s((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.l9s_1.i5h(1, this.j9s_1);
            this.l9s_1.h5h(2, this.k9s_1);
            this.l9s_1.h5h(3, this.k9s_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.l9s_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda(this.j9s_1, this.k9s_1, completion);
    i.l9s_1 = _stmt;
    return i;
  };
  function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda_0($clazzUid, $excludeStatusFilter, resultContinuation) {
    var i = new ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda($clazzUid, $excludeStatusFilter, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.m9s(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda$lambda(_result) {
    var tmp = new Long(0, 0);
    return mapNextRow(_result, tmp, ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda$lambda$lambda(_result));
  }
  function ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.m5e(1);
    };
  }
  function ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.n9s_1);
  }
  protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO ClazzLog (clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1).s9s = function (stmt, entity) {
    if (entity.z9p_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.z9p_1);
    }
    stmt.i5h(2, entity.a9q_1);
    stmt.i5h(3, entity.b9q_1);
    stmt.i5h(4, entity.c9q_1);
    stmt.v5g(5, entity.d9q_1);
    stmt.l5h(6, entity.e9q_1);
    stmt.v5g(7, entity.f9q_1);
    stmt.h5h(8, entity.g9q_1);
    stmt.h5h(9, entity.h9q_1);
    stmt.h5h(10, entity.i9q_1);
    stmt.i5h(11, entity.j9q_1);
    stmt.h5h(12, entity.k9q_1);
    stmt.i5h(13, entity.l9q_1);
    stmt.i5h(14, entity.m9q_1);
    stmt.h5h(15, entity.n9q_1);
    stmt.i5h(16, entity.o9q_1);
  };
  protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1).c5f = function (stmt, entity) {
    return this.s9s(stmt, entity instanceof ClazzLog ? entity : THROW_CCE());
  };
  function ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.n9s_1);
  }
  protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO ClazzLog (clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1).s9s = function (stmt, entity) {
    if (entity.z9p_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.z9p_1);
    }
    stmt.i5h(2, entity.a9q_1);
    stmt.i5h(3, entity.b9q_1);
    stmt.i5h(4, entity.c9q_1);
    stmt.v5g(5, entity.d9q_1);
    stmt.l5h(6, entity.e9q_1);
    stmt.v5g(7, entity.f9q_1);
    stmt.h5h(8, entity.g9q_1);
    stmt.h5h(9, entity.h9q_1);
    stmt.h5h(10, entity.i9q_1);
    stmt.i5h(11, entity.j9q_1);
    stmt.h5h(12, entity.k9q_1);
    stmt.i5h(13, entity.l9q_1);
    stmt.i5h(14, entity.m9q_1);
    stmt.h5h(15, entity.n9q_1);
    stmt.i5h(16, entity.o9q_1);
  };
  protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1).c5f = function (stmt, entity) {
    return this.s9s(stmt, entity instanceof ClazzLog ? entity : THROW_CCE());
  };
  function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1(this$0, $clazzUid, $excludeStatus) {
    this.b9t_1 = this$0;
    this.c9t_1 = $clazzUid;
    this.d9t_1 = $excludeStatus;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['ClazzLog'];
    DoorLimitOffsetPagingSource.call(this, this$0.n9s_1, tmp$ret$2);
  }
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1).e9t = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM (\n        SELECT ClazzLog.* \n          FROM ClazzLog \n         WHERE clazzLogClazzUid = CAST(? AS BIGINT)\n           AND clazzLog.clazzLogStatusFlag != ?\n      ORDER BY ClazzLog.logDate DESC\n    ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n        SELECT ClazzLog.* \n          FROM ClazzLog \n         WHERE clazzLogClazzUid = ?\n           AND clazzLog.clazzLogStatusFlag != ?\n      ORDER BY ClazzLog.logDate DESC\n    ) AS _PagingData LIMIT ? OFFSET ?\n', true);
    return prepareAndUseStatementAsync(this.b9t_1.n9s_1, tmp, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda_0(this.c9t_1, this.d9t_1, _limit, _offset, null), $completion);
  };
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1).j5p = function (_limit, _offset, $completion) {
    return this.e9t(_limit, _offset, $completion);
  };
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n        SELECT ClazzLog.* \n          FROM ClazzLog \n         WHERE clazzLogClazzUid = CAST(? AS BIGINT)\n           AND clazzLog.clazzLogStatusFlag != ?\n      ORDER BY ClazzLog.logDate DESC\n    ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n        SELECT ClazzLog.* \n          FROM ClazzLog \n         WHERE clazzLogClazzUid = ?\n           AND clazzLog.clazzLogStatusFlag != ?\n      ORDER BY ClazzLog.logDate DESC\n    ) AS _PagingCount\n', true);
    return prepareAndUseStatementAsync(this.b9t_1.n9s_1, tmp, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda_0(this.c9t_1, this.d9t_1, null), $completion);
  };
  function ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda($clazzUid, $excludeStatus, resultContinuation) {
    this.n9t_1 = $clazzUid;
    this.o9t_1 = $excludeStatus;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda).p9r = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda).he = function (p1, $completion) {
    return this.p9r((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.p9t_1.i5h(1, this.n9t_1);
            this.p9t_1.h5h(2, this.o9t_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.p9t_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda(this.n9t_1, this.o9t_1, completion);
    i.p9t_1 = _stmt;
    return i;
  };
  function ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda_0($clazzUid, $excludeStatus, resultContinuation) {
    var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda($clazzUid, $excludeStatus, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.p9r(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda(this$0, $clazzUid, $excludeStatusFilter, resultContinuation) {
    this.y9t_1 = this$0;
    this.z9t_1 = $clazzUid;
    this.a9u_1 = $excludeStatusFilter;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda).b9u = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda).z77 = function ($completion) {
    return this.b9u($completion);
  };
  protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT EXISTS\n               (SELECT ClazzLog.clazzLogUid \n                  FROM ClazzLog \n                 WHERE clazzLogClazzUid = CAST(? AS BIGINT) \n                 AND (? = 0 \n                      OR ((ClazzLog.clazzLogStatusFlag & ?) = 0))\n               )\n    ', VOID, VOID, VOID, '\n        SELECT EXISTS\n               (SELECT ClazzLog.clazzLogUid \n                  FROM ClazzLog \n                 WHERE clazzLogClazzUid = ? \n                 AND (? = 0 \n                      OR ((ClazzLog.clazzLogStatusFlag & ?) = 0))\n               )\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.y9t_1.n9s_1, tmp_0, ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda_0(this.z9t_1, this.a9u_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda).y77 = function (completion) {
    return new ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda(this.y9t_1, this.z9t_1, this.a9u_1, completion);
  };
  function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda_0(this$0, $clazzUid, $excludeStatusFilter, resultContinuation) {
    var i = new ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda(this$0, $clazzUid, $excludeStatusFilter, resultContinuation);
    var l = function ($completion) {
      return i.b9u($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda($clazzUid, resultContinuation) {
    this.k9u_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda).o5f = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda).he = function (p1, $completion) {
    return this.o5f((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.l9u_1.i5h(1, this.k9u_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.l9u_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda).z5e = function (_stmt, completion) {
    var i = new ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda(this.k9u_1, completion);
    i.l9u_1 = _stmt;
    return i;
  };
  function ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda_0($clazzUid, resultContinuation) {
    var i = new ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda($clazzUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.o5f(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$72(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.u9u_1 = _this__u8e3s4;
    this.v9u_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$72).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.u9u_1.p9s_1.j5g(this.v9u_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ClazzLogDao_JdbcImpl(_db) {
    ClazzLogDao.call(this);
    this.n9s_1 = _db;
    var tmp = this;
    tmp.o9s_1 = new ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1(this);
    var tmp_0 = this;
    tmp_0.p9s_1 = new ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1(this);
  }
  protoOf(ClazzLogDao_JdbcImpl).f9p = function (entityList, $completion) {
    return this.o9s_1.m5g(entityList, $completion);
  };
  protoOf(ClazzLogDao_JdbcImpl).b9r = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$72(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.b9r(entity instanceof ClazzLog ? entity : THROW_CCE(), $completion);
  };
  protoOf(ClazzLogDao_JdbcImpl).b9p = function (clazzUid, excludeStatus) {
    return new ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1(this, clazzUid, excludeStatus);
  };
  protoOf(ClazzLogDao_JdbcImpl).c9p = function (clazzUid, excludeStatus, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT ClazzLog.* \n          FROM ClazzLog \n         WHERE ClazzLog.clazzLogClazzUid = CAST(? AS BIGINT)\n           AND clazzLog.clazzLogStatusFlag != ?\n      ORDER BY ClazzLog.logDate ASC\n    ', VOID, VOID, VOID, '\n        SELECT ClazzLog.* \n          FROM ClazzLog \n         WHERE ClazzLog.clazzLogClazzUid = ?\n           AND clazzLog.clazzLogStatusFlag != ?\n      ORDER BY ClazzLog.logDate ASC\n    \n', true);
    return prepareAndUseStatementAsync(this.n9s_1, tmp, ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda_0(clazzUid, excludeStatus, null), $completion);
  };
  protoOf(ClazzLogDao_JdbcImpl).d9p = function (clazzUid, excludeStatusFilter) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['ClazzLog'];
    return doorFlow(this.n9s_1, tmp, ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda_0(this, clazzUid, excludeStatusFilter, null));
  };
  protoOf(ClazzLogDao_JdbcImpl).e9p = function (clazzUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT COALESCE(\n               (SELECT ClazzLog.clazzLogUid\n                  FROM ClazzLog\n                 WHERE ClazzLog.clazzLogClazzUid = CAST(? AS BIGINT)\n                   AND (ClazzLog.clazzLogStatusFlag & 8) != 8\n              ORDER BY ClazzLog.logDate DESC\n                 LIMIT 1), 0)\n\n        \n    ', VOID, VOID, VOID, '\n        SELECT COALESCE(\n               (SELECT ClazzLog.clazzLogUid\n                  FROM ClazzLog\n                 WHERE ClazzLog.clazzLogClazzUid = ?\n                   AND (ClazzLog.clazzLogStatusFlag & 8) != 8\n              ORDER BY ClazzLog.logDate DESC\n                 LIMIT 1), 0)\n\n        \n    \n', true);
    return prepareAndUseStatementAsync(this.n9s_1, tmp, ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda_0(clazzUid, null), $completion);
  };
  function ClazzLogDao_Repo$findByClazzUidAsFactory$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzLogDao_Repo$findByClazzUidAsFactory$slambda(this$0, $clazzUid, $excludeStatus, resultContinuation) {
    this.e9v_1 = this$0;
    this.f9v_1 = $clazzUid;
    this.g9v_1 = $excludeStatus;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogDao_Repo$findByClazzUidAsFactory$slambda).k85 = function (_pagingParams, $completion) {
    var tmp = this.l85(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_Repo$findByClazzUidAsFactory$slambda).he = function (p1, $completion) {
    return this.k85(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzLogDao_Repo$findByClazzUidAsFactory$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            var tmp_0 = this;
            tmp_0.j9v_1 = this.e9v_1.s9v_1;
            var tmp_1 = this;
            tmp_1.k9v_1 = 'ClazzLogDao/findByClazzUidAsFactory';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.l9v_1 = this.e9v_1.u9v_1;
            var tmp_3 = this;
            tmp_3.m9v_1 = this.l9v_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.e9v_1.s9v_1.w38(), 'ClazzLogDao/findByClazzUidAsFactory');
            doorNodeIdHeader(this_0, this.e9v_1.s9v_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.e9v_1.s9v_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.f9v_1));
            parameter(this_0, 'excludeStatus', this.e9v_1.s9v_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.g9v_1));
            pagingSourceLoadParameters(this_0, this.e9v_1.s9v_1.w38().k65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.h9v_1);
            tmp_4.n9v_1 = this_0;
            this.n9v_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.o9v_1 = this.m9v_1;
            var tmp_6 = this;
            tmp_6.p9v_1 = this.n9v_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.p9v_1, this.o9v_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.q9v_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.e9v_1.r9v_1, this.q9v_1, this.e9v_1.s9v_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.i9v_1 = endOfPaginationReached(this.q9v_1);
            this.id_1 = 5;
            this.hd_1 = 7;
            continue $sm;
          case 4:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', ClazzLogDao_Repo$findByClazzUidAsFactory$slambda$lambda(this.j9v_1, this.k9v_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 5:
            throw this.kd_1;
          case 6:
            this.id_1 = 5;
            if (false) {
              this.hd_1 = 1;
              continue $sm;
            }

            this.hd_1 = 7;
            continue $sm;
          case 7:
            return this.i9v_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(ClazzLogDao_Repo$findByClazzUidAsFactory$slambda).l85 = function (_pagingParams, completion) {
    var i = new ClazzLogDao_Repo$findByClazzUidAsFactory$slambda(this.e9v_1, this.f9v_1, this.g9v_1, completion);
    i.h9v_1 = _pagingParams;
    return i;
  };
  function ClazzLogDao_Repo$findByClazzUidAsFactory$slambda_0(this$0, $clazzUid, $excludeStatus, resultContinuation) {
    var i = new ClazzLogDao_Repo$findByClazzUidAsFactory$slambda(this$0, $clazzUid, $excludeStatus, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.k85(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzLogDao_Repo$findByClazzUidAsync$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzLogDao_Repo$upsertListAsync$slambda(this$0, $entityList, resultContinuation) {
    this.f9w_1 = this$0;
    this.g9w_1 = $entityList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogDao_Repo$upsertListAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_Repo$upsertListAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ClazzLogDao_Repo$upsertListAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.f9w_1.t9v_1.f9p(this.g9w_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzLogDao_Repo$upsertListAsync$slambda).y77 = function (completion) {
    return new ClazzLogDao_Repo$upsertListAsync$slambda(this.f9w_1, this.g9w_1, completion);
  };
  function ClazzLogDao_Repo$upsertListAsync$slambda_0(this$0, $entityList, resultContinuation) {
    var i = new ClazzLogDao_Repo$upsertListAsync$slambda(this$0, $entityList, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzLogDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.p9w_1 = this$0;
    this.q9w_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(ClazzLogDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.p9w_1.t9v_1.insertAsync(this.q9w_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ClazzLogDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new ClazzLogDao_Repo$insertAsync$slambda(this.p9w_1, this.q9w_1, completion);
  };
  function ClazzLogDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new ClazzLogDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByClazzUidAsyncCOROUTINE$75(_this__u8e3s4, clazzUid, excludeStatus, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.z9w_1 = _this__u8e3s4;
    this.a9x_1 = clazzUid;
    this.b9x_1 = excludeStatus;
  }
  protoOf($findByClazzUidAsyncCOROUTINE$75).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.c9x_1 = this.z9w_1.s9v_1;
            var tmp_1 = this;
            tmp_1.d9x_1 = 'ClazzLogDao/findByClazzUidAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.e9x_1 = this.z9w_1.u9v_1;
            var tmp_3 = this;
            tmp_3.f9x_1 = this.e9x_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.z9w_1.s9v_1.w38(), 'ClazzLogDao/findByClazzUidAsync');
            doorNodeIdHeader(this_0, this.z9w_1.s9v_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.z9w_1.s9v_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.a9x_1));
            parameter(this_0, 'excludeStatus', this.z9w_1.s9v_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.b9x_1));
            tmp_4.g9x_1 = this_0;
            this.g9x_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.h9x_1 = this.f9x_1;
            var tmp_6 = this;
            tmp_6.i9x_1 = this.g9x_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.i9x_1, this.h9x_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.j9x_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.z9w_1.r9v_1, this.j9x_1, this.z9w_1.s9v_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.k9x_1 = this.kd_1;
              Napier_getInstance().q5d(this.k9x_1, 'DoorLog', ClazzLogDao_Repo$findByClazzUidAsync$lambda(this.c9x_1, this.d9x_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.z9w_1.t9v_1.c9p(this.a9x_1, this.b9x_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $findMostRecentClazzLogToEditUidCOROUTINE$78(_this__u8e3s4, clazzUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.t9x_1 = _this__u8e3s4;
    this.u9x_1 = clazzUid;
  }
  protoOf($findMostRecentClazzLogToEditUidCOROUTINE$78).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.t9x_1.t9v_1.e9p(this.u9x_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$79(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.d9y_1 = _this__u8e3s4;
    this.e9y_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$79).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.d9y_1.s9v_1, 'ClazzLog', ClazzLogDao_Repo$insertAsync$slambda_0(this.d9y_1, this.e9y_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ClazzLogDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ClazzLogDao.call(this);
    this.r9v_1 = _db;
    this.s9v_1 = _repo;
    this.t9v_1 = _dao;
    this.u9v_1 = _httpClient;
    this.v9v_1 = _clientId;
    this.w9v_1 = _endpoint;
  }
  protoOf(ClazzLogDao_Repo).b9p = function (clazzUid, excludeStatus) {
    var tmp = this.t9v_1.b9p(clazzUid, excludeStatus);
    return new DoorRepositoryReplicatePullPagingSource(this.s9v_1, 'ClazzLogDao/findByClazzUidAsFactory', tmp, ClazzLogDao_Repo$findByClazzUidAsFactory$slambda_0(this, clazzUid, excludeStatus, null));
  };
  protoOf(ClazzLogDao_Repo).c9p = function (clazzUid, excludeStatus, $completion) {
    var tmp = new $findByClazzUidAsyncCOROUTINE$75(this, clazzUid, excludeStatus, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_Repo).d9p = function (clazzUid, excludeStatusFilter) {
    var _result = this.t9v_1.d9p(clazzUid, excludeStatusFilter);
    return _result;
  };
  protoOf(ClazzLogDao_Repo).e9p = function (clazzUid, $completion) {
    var tmp = new $findMostRecentClazzLogToEditUidCOROUTINE$78(this, clazzUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_Repo).f9p = function (entityList, $completion) {
    return withRepoChangeMonitorAsync(this.s9v_1, 'ClazzLog', ClazzLogDao_Repo$upsertListAsync$slambda_0(this, entityList, null), $completion);
  };
  protoOf(ClazzLogDao_Repo).b9r = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$79(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_Repo).insertAsync = function (entity, $completion) {
    return this.b9r(entity instanceof ClazzLog ? entity : THROW_CCE(), $completion);
  };
  function CommentsDao() {
  }
  function $insertAsyncCOROUTINE$80(_this__u8e3s4, comments, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.s9y_1 = _this__u8e3s4;
    this.t9y_1 = comments;
  }
  protoOf($insertAsyncCOROUTINE$80).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.u9y_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.s9y_1.w9y_1));
            if (this.t9y_1.y9y_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.u9y_1.b62(208, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.v9y_1 = suspendResult;
            this.t9y_1.y9y_1 = this.v9y_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.t9y_1.i9z_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.s9y_1.x9y_1.f9y(this.t9y_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.t9y_1.y9y_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CommentsDao_DoorWrapper(_db, _dao) {
    CommentsDao.call(this);
    this.w9y_1 = _db;
    this.x9y_1 = _dao;
  }
  protoOf(CommentsDao_DoorWrapper).f9y = function (comments, $completion) {
    var tmp = new $insertAsyncCOROUTINE$80(this, comments, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_DoorWrapper).g9y = function (uid, deleted, changeTime, $completion) {
    return this.x9y_1.g9y(uid, deleted, changeTime, $completion);
  };
  protoOf(CommentsDao_DoorWrapper).h9y = function (accountPersonUid, assignmentUid, includeDeleted) {
    return this.x9y_1.h9y(accountPersonUid, assignmentUid, includeDeleted);
  };
  protoOf(CommentsDao_DoorWrapper).i9y = function (submitterUid, assignmentUid, includeDeleted) {
    return this.x9y_1.i9y(submitterUid, assignmentUid, includeDeleted);
  };
  protoOf(CommentsDao_DoorWrapper).j9y = function (assignmentUid, includeDeleted) {
    return this.x9y_1.j9y(assignmentUid, includeDeleted);
  };
  function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda$lambda$lambda(_result));
  }
  function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_firstNames = $_result.rz('firstNames');
      var _tmp_lastName = $_result.rz('lastName');
      var _tmp_pictureUri = $_result.rz('pictureUri');
      var _tmp_Comments_nullCount = 0;
      var _tmp_commentsUid = $_result.l5m('commentsUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_commentsText = $_result.rz('commentsText');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_commentsEntityUid = $_result.l5m('commentsEntityUid');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_commentsStatus = $_result.k5m('commentsStatus');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_commentsFromPersonUid = $_result.l5m('commentsFromPersonUid');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_commentsForSubmitterUid = $_result.l5m('commentsForSubmitterUid');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_commentsFromSubmitterUid = $_result.l5m('commentsFromSubmitterUid');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_commentsFlagged = $_result.w65('commentsFlagged');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_commentsDeleted = $_result.w65('commentsDeleted');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_commentsDateTimeAdded = $_result.l5m('commentsDateTimeAdded');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_commentsLct = $_result.l5m('commentsLct');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_Comments_isAllNull = _tmp_Comments_nullCount === 11;
      // Inline function 'kotlin.apply' call
      var this_0 = new CommentsAndName();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.k9z_1 = _tmp_firstNames;
      this_0.l9z_1 = _tmp_lastName;
      this_0.m9z_1 = _tmp_pictureUri;
      if (!_tmp_Comments_isAllNull) {
        var tmp_10 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new Comments();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.y9y_1 = _tmp_commentsUid;
        this_1.z9y_1 = _tmp_commentsText;
        this_1.a9z_1 = _tmp_commentsEntityUid;
        this_1.b9z_1 = _tmp_commentsStatus;
        this_1.c9z_1 = _tmp_commentsFromPersonUid;
        this_1.d9z_1 = _tmp_commentsForSubmitterUid;
        this_1.e9z_1 = _tmp_commentsFromSubmitterUid;
        this_1.f9z_1 = _tmp_commentsFlagged;
        this_1.g9z_1 = _tmp_commentsDeleted;
        this_1.h9z_1 = _tmp_commentsDateTimeAdded;
        this_1.i9z_1 = _tmp_commentsLct;
        tmp_10.j9z_1 = this_1;
      }
      return this_0;
    };
  }
  function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda$lambda$lambda(_result));
  }
  function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda($assignmentUid, $accountPersonUid, $includeDeleted, $_limit, $_offset, resultContinuation) {
    this.v9z_1 = $assignmentUid;
    this.w9z_1 = $accountPersonUid;
    this.x9z_1 = $includeDeleted;
    this.y9z_1 = $_limit;
    this.z9z_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda).ba0 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda).he = function (p1, $completion) {
    return this.ba0((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.aa0_1.i5h(1, this.v9z_1);
            this.aa0_1.i5h(2, this.w9z_1);
            this.aa0_1.i5h(3, this.v9z_1);
            this.aa0_1.i5h(4, this.v9z_1);
            this.aa0_1.i5h(5, this.w9z_1);
            this.aa0_1.i5h(6, this.v9z_1);
            this.aa0_1.i5h(7, this.w9z_1);
            this.aa0_1.i5h(8, this.v9z_1);
            this.aa0_1.i5h(9, this.v9z_1);
            this.aa0_1.i5h(10, this.w9z_1);
            this.aa0_1.i5h(11, this.v9z_1);
            this.aa0_1.v5g(12, this.x9z_1);
            this.aa0_1.h5h(13, this.y9z_1);
            this.aa0_1.h5h(14, this.z9z_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.aa0_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda(this.v9z_1, this.w9z_1, this.x9z_1, this.y9z_1, this.z9z_1, completion);
    i.aa0_1 = _stmt;
    return i;
  };
  function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda_0($assignmentUid, $accountPersonUid, $includeDeleted, $_limit, $_offset, resultContinuation) {
    var i = new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda($assignmentUid, $accountPersonUid, $includeDeleted, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.ba0(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda($assignmentUid, $accountPersonUid, $includeDeleted, resultContinuation) {
    this.ka0_1 = $assignmentUid;
    this.la0_1 = $accountPersonUid;
    this.ma0_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.na0_1.i5h(1, this.ka0_1);
            this.na0_1.i5h(2, this.la0_1);
            this.na0_1.i5h(3, this.ka0_1);
            this.na0_1.i5h(4, this.ka0_1);
            this.na0_1.i5h(5, this.la0_1);
            this.na0_1.i5h(6, this.ka0_1);
            this.na0_1.i5h(7, this.la0_1);
            this.na0_1.i5h(8, this.ka0_1);
            this.na0_1.i5h(9, this.ka0_1);
            this.na0_1.i5h(10, this.la0_1);
            this.na0_1.i5h(11, this.ka0_1);
            this.na0_1.v5g(12, this.ma0_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.na0_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda(this.ka0_1, this.la0_1, this.ma0_1, completion);
    i.na0_1 = _stmt;
    return i;
  };
  function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda_0($assignmentUid, $accountPersonUid, $includeDeleted, resultContinuation) {
    var i = new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda($assignmentUid, $accountPersonUid, $includeDeleted, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda$lambda$lambda(_result));
  }
  function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_firstNames = $_result.rz('firstNames');
      var _tmp_lastName = $_result.rz('lastName');
      var _tmp_pictureUri = $_result.rz('pictureUri');
      var _tmp_Comments_nullCount = 0;
      var _tmp_commentsUid = $_result.l5m('commentsUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_commentsText = $_result.rz('commentsText');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_commentsEntityUid = $_result.l5m('commentsEntityUid');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_commentsStatus = $_result.k5m('commentsStatus');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_commentsFromPersonUid = $_result.l5m('commentsFromPersonUid');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_commentsForSubmitterUid = $_result.l5m('commentsForSubmitterUid');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_commentsFromSubmitterUid = $_result.l5m('commentsFromSubmitterUid');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_commentsFlagged = $_result.w65('commentsFlagged');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_commentsDeleted = $_result.w65('commentsDeleted');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_commentsDateTimeAdded = $_result.l5m('commentsDateTimeAdded');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_commentsLct = $_result.l5m('commentsLct');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_Comments_isAllNull = _tmp_Comments_nullCount === 11;
      // Inline function 'kotlin.apply' call
      var this_0 = new CommentsAndName();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.k9z_1 = _tmp_firstNames;
      this_0.l9z_1 = _tmp_lastName;
      this_0.m9z_1 = _tmp_pictureUri;
      if (!_tmp_Comments_isAllNull) {
        var tmp_10 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new Comments();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.y9y_1 = _tmp_commentsUid;
        this_1.z9y_1 = _tmp_commentsText;
        this_1.a9z_1 = _tmp_commentsEntityUid;
        this_1.b9z_1 = _tmp_commentsStatus;
        this_1.c9z_1 = _tmp_commentsFromPersonUid;
        this_1.d9z_1 = _tmp_commentsForSubmitterUid;
        this_1.e9z_1 = _tmp_commentsFromSubmitterUid;
        this_1.f9z_1 = _tmp_commentsFlagged;
        this_1.g9z_1 = _tmp_commentsDeleted;
        this_1.h9z_1 = _tmp_commentsDateTimeAdded;
        this_1.i9z_1 = _tmp_commentsLct;
        tmp_10.j9z_1 = this_1;
      }
      return this_0;
    };
  }
  function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda$lambda$lambda(_result));
  }
  function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda($submitterUid, $assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation) {
    this.wa0_1 = $submitterUid;
    this.xa0_1 = $assignmentUid;
    this.ya0_1 = $includeDeleted;
    this.za0_1 = $_limit;
    this.aa1_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda).ba0 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda).he = function (p1, $completion) {
    return this.ba0((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ba1_1.i5h(1, this.wa0_1);
            this.ba1_1.i5h(2, this.xa0_1);
            this.ba1_1.v5g(3, this.ya0_1);
            this.ba1_1.h5h(4, this.za0_1);
            this.ba1_1.h5h(5, this.aa1_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ba1_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda(this.wa0_1, this.xa0_1, this.ya0_1, this.za0_1, this.aa1_1, completion);
    i.ba1_1 = _stmt;
    return i;
  };
  function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda_0($submitterUid, $assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation) {
    var i = new CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda($submitterUid, $assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.ba0(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda($submitterUid, $assignmentUid, $includeDeleted, resultContinuation) {
    this.ka1_1 = $submitterUid;
    this.la1_1 = $assignmentUid;
    this.ma1_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.na1_1.i5h(1, this.ka1_1);
            this.na1_1.i5h(2, this.la1_1);
            this.na1_1.v5g(3, this.ma1_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.na1_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda(this.ka1_1, this.la1_1, this.ma1_1, completion);
    i.na1_1 = _stmt;
    return i;
  };
  function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda_0($submitterUid, $assignmentUid, $includeDeleted, resultContinuation) {
    var i = new CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda($submitterUid, $assignmentUid, $includeDeleted, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda$lambda$lambda(_result));
  }
  function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_firstNames = $_result.rz('firstNames');
      var _tmp_lastName = $_result.rz('lastName');
      var _tmp_pictureUri = $_result.rz('pictureUri');
      var _tmp_Comments_nullCount = 0;
      var _tmp_commentsUid = $_result.l5m('commentsUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_commentsText = $_result.rz('commentsText');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_commentsEntityUid = $_result.l5m('commentsEntityUid');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_commentsStatus = $_result.k5m('commentsStatus');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_commentsFromPersonUid = $_result.l5m('commentsFromPersonUid');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_commentsForSubmitterUid = $_result.l5m('commentsForSubmitterUid');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_commentsFromSubmitterUid = $_result.l5m('commentsFromSubmitterUid');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_commentsFlagged = $_result.w65('commentsFlagged');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_commentsDeleted = $_result.w65('commentsDeleted');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_commentsDateTimeAdded = $_result.l5m('commentsDateTimeAdded');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_commentsLct = $_result.l5m('commentsLct');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_Comments_isAllNull = _tmp_Comments_nullCount === 11;
      // Inline function 'kotlin.apply' call
      var this_0 = new CommentsAndName();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.k9z_1 = _tmp_firstNames;
      this_0.l9z_1 = _tmp_lastName;
      this_0.m9z_1 = _tmp_pictureUri;
      if (!_tmp_Comments_isAllNull) {
        var tmp_10 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new Comments();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.y9y_1 = _tmp_commentsUid;
        this_1.z9y_1 = _tmp_commentsText;
        this_1.a9z_1 = _tmp_commentsEntityUid;
        this_1.b9z_1 = _tmp_commentsStatus;
        this_1.c9z_1 = _tmp_commentsFromPersonUid;
        this_1.d9z_1 = _tmp_commentsForSubmitterUid;
        this_1.e9z_1 = _tmp_commentsFromSubmitterUid;
        this_1.f9z_1 = _tmp_commentsFlagged;
        this_1.g9z_1 = _tmp_commentsDeleted;
        this_1.h9z_1 = _tmp_commentsDateTimeAdded;
        this_1.i9z_1 = _tmp_commentsLct;
        tmp_10.j9z_1 = this_1;
      }
      return this_0;
    };
  }
  function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda$lambda$lambda(_result));
  }
  function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda($assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation) {
    this.wa1_1 = $assignmentUid;
    this.xa1_1 = $includeDeleted;
    this.ya1_1 = $_limit;
    this.za1_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda).ba0 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda).he = function (p1, $completion) {
    return this.ba0((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.aa2_1.i5h(1, this.wa1_1);
            this.aa2_1.v5g(2, this.xa1_1);
            this.aa2_1.h5h(3, this.ya1_1);
            this.aa2_1.h5h(4, this.za1_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.aa2_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda(this.wa1_1, this.xa1_1, this.ya1_1, this.za1_1, completion);
    i.aa2_1 = _stmt;
    return i;
  };
  function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda_0($assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation) {
    var i = new CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda($assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.ba0(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda($assignmentUid, $includeDeleted, resultContinuation) {
    this.ja2_1 = $assignmentUid;
    this.ka2_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.la2_1.i5h(1, this.ja2_1);
            this.la2_1.v5g(2, this.ka2_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.la2_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda(this.ja2_1, this.ka2_1, completion);
    i.la2_1 = _stmt;
    return i;
  };
  function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda_0($assignmentUid, $includeDeleted, resultContinuation) {
    var i = new CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda($assignmentUid, $includeDeleted, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CommentsDao_JdbcImpl$_insertAdapterComments_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ma2_1);
  }
  protoOf(CommentsDao_JdbcImpl$_insertAdapterComments_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO Comments (commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(CommentsDao_JdbcImpl$_insertAdapterComments_abort$1).qa2 = function (stmt, entity) {
    if (entity.y9y_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.y9y_1);
    }
    stmt.l5h(2, entity.z9y_1);
    stmt.i5h(3, entity.a9z_1);
    stmt.h5h(4, entity.b9z_1);
    stmt.i5h(5, entity.c9z_1);
    stmt.i5h(6, entity.d9z_1);
    stmt.i5h(7, entity.e9z_1);
    stmt.v5g(8, entity.f9z_1);
    stmt.v5g(9, entity.g9z_1);
    stmt.i5h(10, entity.h9z_1);
    stmt.i5h(11, entity.i9z_1);
  };
  protoOf(CommentsDao_JdbcImpl$_insertAdapterComments_abort$1).c5f = function (stmt, entity) {
    return this.qa2(stmt, entity instanceof Comments ? entity : THROW_CCE());
  };
  function CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda($deleted, $changeTime, $uid, resultContinuation) {
    this.za2_1 = $deleted;
    this.aa3_1 = $changeTime;
    this.ba3_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ca3_1.v5g(1, this.za2_1);
            this.ca3_1.i5h(2, this.aa3_1);
            this.ca3_1.i5h(3, this.ba3_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.ca3_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda).z5e = function (_stmt, completion) {
    var i = new CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda(this.za2_1, this.aa3_1, this.ba3_1, completion);
    i.ca3_1 = _stmt;
    return i;
  };
  function CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda_0($deleted, $changeTime, $uid, resultContinuation) {
    var i = new CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda($deleted, $changeTime, $uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1(this$0, $assignmentUid, $accountPersonUid, $includeDeleted) {
    this.ja3_1 = this$0;
    this.ka3_1 = $assignmentUid;
    this.la3_1 = $accountPersonUid;
    this.ma3_1 = $includeDeleted;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['ClazzAssignment', 'CourseGroupMember', 'Comments', 'ClazzEnrolment', 'Person', 'PersonPicture'];
    DoorLimitOffsetPagingSource.call(this, this$0.ma2_1, tmp$ret$2);
  }
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1).na3 = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM (\n        SELECT Comments.*,\n               Person.firstNames AS firstNames, \n               Person.lastName AS lastName,\n               PersonPicture.personPictureThumbnailUri AS pictureUri\n          FROM Comments\n               LEFT JOIN Person \n                    ON Person.personUid = Comments.commentsFromPersonUid\n               LEFT JOIN PersonPicture\n                    ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n         WHERE Comments.commentsForSubmitterUid = (\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = CAST(? AS BIGINT))\n                              AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n                            LIMIT 1), -1)\n                    END\n    )\n           AND Comments.commentsForSubmitterUid != 0\n           AND Comments.commentsEntityUid = CAST(? AS BIGINT)\n           AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1) \n      ORDER BY Comments.commentsDateTimeAdded DESC     \n    ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n        SELECT Comments.*,\n               Person.firstNames AS firstNames, \n               Person.lastName AS lastName,\n               PersonPicture.personPictureThumbnailUri AS pictureUri\n          FROM Comments\n               LEFT JOIN Person \n                    ON Person.personUid = Comments.commentsFromPersonUid\n               LEFT JOIN PersonPicture\n                    ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n         WHERE Comments.commentsForSubmitterUid = (\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = ?)\n                              AND CourseGroupMember.cgmPersonUid = ?\n                            LIMIT 1), -1)\n                    END\n    )\n           AND Comments.commentsForSubmitterUid != 0\n           AND Comments.commentsEntityUid = ?\n           AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1) \n      ORDER BY Comments.commentsDateTimeAdded DESC     \n    ) AS _PagingData LIMIT ? OFFSET ?\n', true);
    return prepareAndUseStatementAsync(this.ja3_1.ma2_1, tmp, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda_0(this.ka3_1, this.la3_1, this.ma3_1, _limit, _offset, null), $completion);
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1).j5p = function (_limit, _offset, $completion) {
    return this.na3(_limit, _offset, $completion);
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n        SELECT Comments.*,\n               Person.firstNames AS firstNames, \n               Person.lastName AS lastName,\n               PersonPicture.personPictureThumbnailUri AS pictureUri\n          FROM Comments\n               LEFT JOIN Person \n                    ON Person.personUid = Comments.commentsFromPersonUid\n               LEFT JOIN PersonPicture\n                    ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n         WHERE Comments.commentsForSubmitterUid = (\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = CAST(? AS BIGINT))\n                              AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n                            LIMIT 1), -1)\n                    END\n    )\n           AND Comments.commentsForSubmitterUid != 0\n           AND Comments.commentsEntityUid = CAST(? AS BIGINT)\n           AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1) \n      ORDER BY Comments.commentsDateTimeAdded DESC     \n    ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n        SELECT Comments.*,\n               Person.firstNames AS firstNames, \n               Person.lastName AS lastName,\n               PersonPicture.personPictureThumbnailUri AS pictureUri\n          FROM Comments\n               LEFT JOIN Person \n                    ON Person.personUid = Comments.commentsFromPersonUid\n               LEFT JOIN PersonPicture\n                    ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n         WHERE Comments.commentsForSubmitterUid = (\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = ?)\n                              AND CourseGroupMember.cgmPersonUid = ?\n                            LIMIT 1), -1)\n                    END\n    )\n           AND Comments.commentsForSubmitterUid != 0\n           AND Comments.commentsEntityUid = ?\n           AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1) \n      ORDER BY Comments.commentsDateTimeAdded DESC     \n    ) AS _PagingCount\n', true);
    return prepareAndUseStatementAsync(this.ja3_1.ma2_1, tmp, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda_0(this.ka3_1, this.la3_1, this.ma3_1, null), $completion);
  };
  function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1(this$0, $submitterUid, $assignmentUid, $includeDeleted) {
    this.ua3_1 = this$0;
    this.va3_1 = $submitterUid;
    this.wa3_1 = $assignmentUid;
    this.xa3_1 = $includeDeleted;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['Comments', 'Person', 'PersonPicture'];
    DoorLimitOffsetPagingSource.call(this, this$0.ma2_1, tmp$ret$2);
  }
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1).na3 = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM (\n        SELECT Comments.*,\n               Person.firstNames AS firstNames, \n               Person.lastName AS lastName,\n               PersonPicture.personPictureThumbnailUri AS pictureUri\n          FROM Comments\n               LEFT JOIN Person \n                    ON Person.personUid = Comments.commentsFromPersonUid\n               LEFT JOIN PersonPicture\n                    ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n         WHERE Comments.commentsForSubmitterUid = CAST(? AS BIGINT)\n           AND Comments.commentsEntityUid = CAST(? AS BIGINT)\n           AND (NOT Comments.commentsDeleted OR CAST(? AS INTEGER) = 1)\n      ORDER BY Comments.commentsDateTimeAdded DESC        \n    ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n        SELECT Comments.*,\n               Person.firstNames AS firstNames, \n               Person.lastName AS lastName,\n               PersonPicture.personPictureThumbnailUri AS pictureUri\n          FROM Comments\n               LEFT JOIN Person \n                    ON Person.personUid = Comments.commentsFromPersonUid\n               LEFT JOIN PersonPicture\n                    ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n         WHERE Comments.commentsForSubmitterUid = ?\n           AND Comments.commentsEntityUid = ?\n           AND (NOT Comments.commentsDeleted OR CAST(? AS INTEGER) = 1)\n      ORDER BY Comments.commentsDateTimeAdded DESC        \n    ) AS _PagingData LIMIT ? OFFSET ?\n', true);
    return prepareAndUseStatementAsync(this.ua3_1.ma2_1, tmp, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda_0(this.va3_1, this.wa3_1, this.xa3_1, _limit, _offset, null), $completion);
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1).j5p = function (_limit, _offset, $completion) {
    return this.na3(_limit, _offset, $completion);
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n        SELECT Comments.*,\n               Person.firstNames AS firstNames, \n               Person.lastName AS lastName,\n               PersonPicture.personPictureThumbnailUri AS pictureUri\n          FROM Comments\n               LEFT JOIN Person \n                    ON Person.personUid = Comments.commentsFromPersonUid\n               LEFT JOIN PersonPicture\n                    ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n         WHERE Comments.commentsForSubmitterUid = CAST(? AS BIGINT)\n           AND Comments.commentsEntityUid = CAST(? AS BIGINT)\n           AND (NOT Comments.commentsDeleted OR CAST(? AS INTEGER) = 1)\n      ORDER BY Comments.commentsDateTimeAdded DESC        \n    ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n        SELECT Comments.*,\n               Person.firstNames AS firstNames, \n               Person.lastName AS lastName,\n               PersonPicture.personPictureThumbnailUri AS pictureUri\n          FROM Comments\n               LEFT JOIN Person \n                    ON Person.personUid = Comments.commentsFromPersonUid\n               LEFT JOIN PersonPicture\n                    ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n         WHERE Comments.commentsForSubmitterUid = ?\n           AND Comments.commentsEntityUid = ?\n           AND (NOT Comments.commentsDeleted OR CAST(? AS INTEGER) = 1)\n      ORDER BY Comments.commentsDateTimeAdded DESC        \n    ) AS _PagingCount\n', true);
    return prepareAndUseStatementAsync(this.ua3_1.ma2_1, tmp, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda_0(this.va3_1, this.wa3_1, this.xa3_1, null), $completion);
  };
  function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1(this$0, $assignmentUid, $includeDeleted) {
    this.ea4_1 = this$0;
    this.fa4_1 = $assignmentUid;
    this.ga4_1 = $includeDeleted;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['Comments', 'Person', 'PersonPicture'];
    DoorLimitOffsetPagingSource.call(this, this$0.ma2_1, tmp$ret$2);
  }
  protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1).na3 = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM (\n        SELECT Comments.*,\n               Person.firstNames AS firstNames, \n               Person.lastName AS lastName,\n               PersonPicture.personPictureThumbnailUri AS pictureUri\n          FROM Comments\n               LEFT JOIN Person \n                    ON Person.personUid = Comments.commentsFromPersonUid\n               LEFT JOIN PersonPicture\n                    ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n         WHERE Comments.commentsEntityUid = CAST(? AS BIGINT)\n           AND Comments.commentsForSubmitterUid = 0\n           AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1)\n      ORDER BY Comments.commentsDateTimeAdded DESC     \n    ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n        SELECT Comments.*,\n               Person.firstNames AS firstNames, \n               Person.lastName AS lastName,\n               PersonPicture.personPictureThumbnailUri AS pictureUri\n          FROM Comments\n               LEFT JOIN Person \n                    ON Person.personUid = Comments.commentsFromPersonUid\n               LEFT JOIN PersonPicture\n                    ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n         WHERE Comments.commentsEntityUid = ?\n           AND Comments.commentsForSubmitterUid = 0\n           AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1)\n      ORDER BY Comments.commentsDateTimeAdded DESC     \n    ) AS _PagingData LIMIT ? OFFSET ?\n', true);
    return prepareAndUseStatementAsync(this.ea4_1.ma2_1, tmp, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda_0(this.fa4_1, this.ga4_1, _limit, _offset, null), $completion);
  };
  protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1).j5p = function (_limit, _offset, $completion) {
    return this.na3(_limit, _offset, $completion);
  };
  protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n        SELECT Comments.*,\n               Person.firstNames AS firstNames, \n               Person.lastName AS lastName,\n               PersonPicture.personPictureThumbnailUri AS pictureUri\n          FROM Comments\n               LEFT JOIN Person \n                    ON Person.personUid = Comments.commentsFromPersonUid\n               LEFT JOIN PersonPicture\n                    ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n         WHERE Comments.commentsEntityUid = CAST(? AS BIGINT)\n           AND Comments.commentsForSubmitterUid = 0\n           AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1)\n      ORDER BY Comments.commentsDateTimeAdded DESC     \n    ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n        SELECT Comments.*,\n               Person.firstNames AS firstNames, \n               Person.lastName AS lastName,\n               PersonPicture.personPictureThumbnailUri AS pictureUri\n          FROM Comments\n               LEFT JOIN Person \n                    ON Person.personUid = Comments.commentsFromPersonUid\n               LEFT JOIN PersonPicture\n                    ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n         WHERE Comments.commentsEntityUid = ?\n           AND Comments.commentsForSubmitterUid = 0\n           AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1)\n      ORDER BY Comments.commentsDateTimeAdded DESC     \n    ) AS _PagingCount\n', true);
    return prepareAndUseStatementAsync(this.ea4_1.ma2_1, tmp, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda_0(this.fa4_1, this.ga4_1, null), $completion);
  };
  function $insertAsyncCOROUTINE$81(_this__u8e3s4, comments, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.pa4_1 = _this__u8e3s4;
    this.qa4_1 = comments;
  }
  protoOf($insertAsyncCOROUTINE$81).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.pa4_1.na2_1.j5g(this.qa4_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateDeletedByCommentUidCOROUTINE$82(_this__u8e3s4, uid, deleted, changeTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.za4_1 = _this__u8e3s4;
    this.aa5_1 = uid;
    this.ba5_1 = deleted;
    this.ca5_1 = changeTime;
  }
  protoOf($updateDeletedByCommentUidCOROUTINE$82).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE Comments \n           SET commentsDeleted = ?,\n               commentsLct = CAST(? AS BIGINT)\n         WHERE Comments.commentsUid = CAST(? AS BIGINT)\n    ', VOID, VOID, VOID, '\n        UPDATE Comments \n           SET commentsDeleted = ?,\n               commentsLct = ?\n         WHERE Comments.commentsUid = ?\n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.za4_1.ma2_1, tmp_0, CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda_0(this.ba5_1, this.ca5_1, this.aa5_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CommentsDao_JdbcImpl(_db) {
    CommentsDao.call(this);
    this.ma2_1 = _db;
    var tmp = this;
    tmp.na2_1 = new CommentsDao_JdbcImpl$_insertAdapterComments_abort$1(this);
  }
  protoOf(CommentsDao_JdbcImpl).f9y = function (comments, $completion) {
    var tmp = new $insertAsyncCOROUTINE$81(this, comments, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_JdbcImpl).g9y = function (uid, deleted, changeTime, $completion) {
    var tmp = new $updateDeletedByCommentUidCOROUTINE$82(this, uid, deleted, changeTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_JdbcImpl).h9y = function (accountPersonUid, assignmentUid, includeDeleted) {
    return new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1(this, assignmentUid, accountPersonUid, includeDeleted);
  };
  protoOf(CommentsDao_JdbcImpl).i9y = function (submitterUid, assignmentUid, includeDeleted) {
    return new CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1(this, submitterUid, assignmentUid, includeDeleted);
  };
  protoOf(CommentsDao_JdbcImpl).j9y = function (assignmentUid, includeDeleted) {
    return new CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1(this, assignmentUid, includeDeleted);
  };
  function CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CommentsDao_Repo$insertAsync$slambda(this$0, $comments, resultContinuation) {
    this.la5_1 = this$0;
    this.ma5_1 = $comments;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(CommentsDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.la5_1.pa5_1.f9y(this.ma5_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CommentsDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new CommentsDao_Repo$insertAsync$slambda(this.la5_1, this.ma5_1, completion);
  };
  function CommentsDao_Repo$insertAsync$slambda_0(this$0, $comments, resultContinuation) {
    var i = new CommentsDao_Repo$insertAsync$slambda(this$0, $comments, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CommentsDao_Repo$updateDeletedByCommentUid$slambda(this$0, $uid, $deleted, $changeTime, resultContinuation) {
    this.ba6_1 = this$0;
    this.ca6_1 = $uid;
    this.da6_1 = $deleted;
    this.ea6_1 = $changeTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_Repo$updateDeletedByCommentUid$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_Repo$updateDeletedByCommentUid$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CommentsDao_Repo$updateDeletedByCommentUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.ba6_1.pa5_1.g9y(this.ca6_1, this.da6_1, this.ea6_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CommentsDao_Repo$updateDeletedByCommentUid$slambda).y77 = function (completion) {
    return new CommentsDao_Repo$updateDeletedByCommentUid$slambda(this.ba6_1, this.ca6_1, this.da6_1, this.ea6_1, completion);
  };
  function CommentsDao_Repo$updateDeletedByCommentUid$slambda_0(this$0, $uid, $deleted, $changeTime, resultContinuation) {
    var i = new CommentsDao_Repo$updateDeletedByCommentUid$slambda(this$0, $uid, $deleted, $changeTime, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda(this$0, $accountPersonUid, $assignmentUid, $includeDeleted, resultContinuation) {
    this.na6_1 = this$0;
    this.oa6_1 = $accountPersonUid;
    this.pa6_1 = $assignmentUid;
    this.qa6_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda).k85 = function (_pagingParams, $completion) {
    var tmp = this.l85(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda).he = function (p1, $completion) {
    return this.k85(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            var tmp_0 = this;
            tmp_0.ta6_1 = this.na6_1.oa5_1;
            var tmp_1 = this;
            tmp_1.ua6_1 = 'CommentsDao/findPrivateCommentsForUserByAssignmentUid';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.va6_1 = this.na6_1.qa5_1;
            var tmp_3 = this;
            tmp_3.wa6_1 = this.va6_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.na6_1.oa5_1.w38(), 'CommentsDao/findPrivateCommentsForUserByAssignmentUid');
            doorNodeIdHeader(this_0, this.na6_1.oa5_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.na6_1.oa5_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.oa6_1));
            parameter(this_0, 'assignmentUid', this.na6_1.oa5_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.pa6_1));
            parameter(this_0, 'includeDeleted', this.na6_1.oa5_1.w38().k65_1.e45(serializer_2(BooleanCompanionObject_instance), this.qa6_1));
            pagingSourceLoadParameters(this_0, this.na6_1.oa5_1.w38().k65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.ra6_1);
            tmp_4.xa6_1 = this_0;
            this.xa6_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.ya6_1 = this.wa6_1;
            var tmp_6 = this;
            tmp_6.za6_1 = this.xa6_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.za6_1, this.ya6_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.aa7_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.na6_1.na5_1, this.aa7_1, this.na6_1.oa5_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.sa6_1 = endOfPaginationReached(this.aa7_1);
            this.id_1 = 5;
            this.hd_1 = 7;
            continue $sm;
          case 4:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda$lambda(this.ta6_1, this.ua6_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 5:
            throw this.kd_1;
          case 6:
            this.id_1 = 5;
            if (false) {
              this.hd_1 = 1;
              continue $sm;
            }

            this.hd_1 = 7;
            continue $sm;
          case 7:
            return this.sa6_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda).l85 = function (_pagingParams, completion) {
    var i = new CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda(this.na6_1, this.oa6_1, this.pa6_1, this.qa6_1, completion);
    i.ra6_1 = _pagingParams;
    return i;
  };
  function CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda_0(this$0, $accountPersonUid, $assignmentUid, $includeDeleted, resultContinuation) {
    var i = new CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda(this$0, $accountPersonUid, $assignmentUid, $includeDeleted, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.k85(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda(this$0, $submitterUid, $assignmentUid, $includeDeleted, resultContinuation) {
    this.ja7_1 = this$0;
    this.ka7_1 = $submitterUid;
    this.la7_1 = $assignmentUid;
    this.ma7_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda).k85 = function (_pagingParams, $completion) {
    var tmp = this.l85(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda).he = function (p1, $completion) {
    return this.k85(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            var tmp_0 = this;
            tmp_0.pa7_1 = this.ja7_1.oa5_1;
            var tmp_1 = this;
            tmp_1.qa7_1 = 'CommentsDao/findPrivateCommentsForSubmitterByAssignmentUid';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.ra7_1 = this.ja7_1.qa5_1;
            var tmp_3 = this;
            tmp_3.sa7_1 = this.ra7_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ja7_1.oa5_1.w38(), 'CommentsDao/findPrivateCommentsForSubmitterByAssignmentUid');
            doorNodeIdHeader(this_0, this.ja7_1.oa5_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'submitterUid', this.ja7_1.oa5_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ka7_1));
            parameter(this_0, 'assignmentUid', this.ja7_1.oa5_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.la7_1));
            parameter(this_0, 'includeDeleted', this.ja7_1.oa5_1.w38().k65_1.e45(serializer_2(BooleanCompanionObject_instance), this.ma7_1));
            pagingSourceLoadParameters(this_0, this.ja7_1.oa5_1.w38().k65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.na7_1);
            tmp_4.ta7_1 = this_0;
            this.ta7_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.ua7_1 = this.sa7_1;
            var tmp_6 = this;
            tmp_6.va7_1 = this.ta7_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.va7_1, this.ua7_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.wa7_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ja7_1.na5_1, this.wa7_1, this.ja7_1.oa5_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.oa7_1 = endOfPaginationReached(this.wa7_1);
            this.id_1 = 5;
            this.hd_1 = 7;
            continue $sm;
          case 4:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda$lambda(this.pa7_1, this.qa7_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 5:
            throw this.kd_1;
          case 6:
            this.id_1 = 5;
            if (false) {
              this.hd_1 = 1;
              continue $sm;
            }

            this.hd_1 = 7;
            continue $sm;
          case 7:
            return this.oa7_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda).l85 = function (_pagingParams, completion) {
    var i = new CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda(this.ja7_1, this.ka7_1, this.la7_1, this.ma7_1, completion);
    i.na7_1 = _pagingParams;
    return i;
  };
  function CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda_0(this$0, $submitterUid, $assignmentUid, $includeDeleted, resultContinuation) {
    var i = new CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda(this$0, $submitterUid, $assignmentUid, $includeDeleted, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.k85(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda(this$0, $assignmentUid, $includeDeleted, resultContinuation) {
    this.fa8_1 = this$0;
    this.ga8_1 = $assignmentUid;
    this.ha8_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda).k85 = function (_pagingParams, $completion) {
    var tmp = this.l85(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda).he = function (p1, $completion) {
    return this.k85(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            var tmp_0 = this;
            tmp_0.ka8_1 = this.fa8_1.oa5_1;
            var tmp_1 = this;
            tmp_1.la8_1 = 'CommentsDao/findCourseCommentsByAssignmentUid';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.ma8_1 = this.fa8_1.qa5_1;
            var tmp_3 = this;
            tmp_3.na8_1 = this.ma8_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.fa8_1.oa5_1.w38(), 'CommentsDao/findCourseCommentsByAssignmentUid');
            doorNodeIdHeader(this_0, this.fa8_1.oa5_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'assignmentUid', this.fa8_1.oa5_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ga8_1));
            parameter(this_0, 'includeDeleted', this.fa8_1.oa5_1.w38().k65_1.e45(serializer_2(BooleanCompanionObject_instance), this.ha8_1));
            pagingSourceLoadParameters(this_0, this.fa8_1.oa5_1.w38().k65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.ia8_1);
            tmp_4.oa8_1 = this_0;
            this.oa8_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.pa8_1 = this.na8_1;
            var tmp_6 = this;
            tmp_6.qa8_1 = this.oa8_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.qa8_1, this.pa8_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.ra8_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.fa8_1.na5_1, this.ra8_1, this.fa8_1.oa5_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.ja8_1 = endOfPaginationReached(this.ra8_1);
            this.id_1 = 5;
            this.hd_1 = 7;
            continue $sm;
          case 4:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda$lambda(this.ka8_1, this.la8_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 5:
            throw this.kd_1;
          case 6:
            this.id_1 = 5;
            if (false) {
              this.hd_1 = 1;
              continue $sm;
            }

            this.hd_1 = 7;
            continue $sm;
          case 7:
            return this.ja8_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda).l85 = function (_pagingParams, completion) {
    var i = new CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda(this.fa8_1, this.ga8_1, this.ha8_1, completion);
    i.ia8_1 = _pagingParams;
    return i;
  };
  function CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda_0(this$0, $assignmentUid, $includeDeleted, resultContinuation) {
    var i = new CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda(this$0, $assignmentUid, $includeDeleted, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.k85(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$83(_this__u8e3s4, comments, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.aa9_1 = _this__u8e3s4;
    this.ba9_1 = comments;
  }
  protoOf($insertAsyncCOROUTINE$83).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.aa9_1.oa5_1, 'Comments', CommentsDao_Repo$insertAsync$slambda_0(this.aa9_1, this.ba9_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CommentsDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    CommentsDao.call(this);
    this.na5_1 = _db;
    this.oa5_1 = _repo;
    this.pa5_1 = _dao;
    this.qa5_1 = _httpClient;
    this.ra5_1 = _clientId;
    this.sa5_1 = _endpoint;
  }
  protoOf(CommentsDao_Repo).f9y = function (comments, $completion) {
    var tmp = new $insertAsyncCOROUTINE$83(this, comments, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_Repo).g9y = function (uid, deleted, changeTime, $completion) {
    return withRepoChangeMonitorAsync(this.oa5_1, 'Comments', CommentsDao_Repo$updateDeletedByCommentUid$slambda_0(this, uid, deleted, changeTime, null), $completion);
  };
  protoOf(CommentsDao_Repo).h9y = function (accountPersonUid, assignmentUid, includeDeleted) {
    var tmp = this.pa5_1.h9y(accountPersonUid, assignmentUid, includeDeleted);
    return new DoorRepositoryReplicatePullPagingSource(this.oa5_1, 'CommentsDao/findPrivateCommentsForUserByAssignmentUid', tmp, CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda_0(this, accountPersonUid, assignmentUid, includeDeleted, null));
  };
  protoOf(CommentsDao_Repo).i9y = function (submitterUid, assignmentUid, includeDeleted) {
    var tmp = this.pa5_1.i9y(submitterUid, assignmentUid, includeDeleted);
    return new DoorRepositoryReplicatePullPagingSource(this.oa5_1, 'CommentsDao/findPrivateCommentsForSubmitterByAssignmentUid', tmp, CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda_0(this, submitterUid, assignmentUid, includeDeleted, null));
  };
  protoOf(CommentsDao_Repo).j9y = function (assignmentUid, includeDeleted) {
    var tmp = this.pa5_1.j9y(assignmentUid, includeDeleted);
    return new DoorRepositoryReplicatePullPagingSource(this.oa5_1, 'CommentsDao/findCourseCommentsByAssignmentUid', tmp, CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda_0(this, assignmentUid, includeDeleted, null));
  };
  function ContentCategoryDao() {
  }
  function $insertAsyncCOROUTINE$86(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ka9_1 = _this__u8e3s4;
    this.la9_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$86).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.ma9_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.ka9_1.oa9_1));
            if (this.la9_1.qa9_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.ma9_1.b62(1, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.na9_1 = suspendResult;
            this.la9_1.qa9_1 = this.na9_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.la9_1.wa9_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.ka9_1.pa9_1.insertAsync(this.la9_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.la9_1.qa9_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentCategoryDao_DoorWrapper(_db, _dao) {
    ContentCategoryDao.call(this);
    this.oa9_1 = _db;
    this.pa9_1 = _dao;
  }
  protoOf(ContentCategoryDao_DoorWrapper).xa9 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$86(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentCategoryDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.xa9(entity instanceof ContentCategory ? entity : THROW_CCE(), $completion);
  };
  function ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ya9_1);
  }
  protoOf(ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO ContentCategory (contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1).caa = function (stmt, entity) {
    if (entity.qa9_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.qa9_1);
    }
    stmt.i5h(2, entity.ra9_1);
    stmt.l5h(3, entity.sa9_1);
    stmt.i5h(4, entity.ta9_1);
    stmt.i5h(5, entity.ua9_1);
    stmt.h5h(6, entity.va9_1);
    stmt.i5h(7, entity.wa9_1);
  };
  protoOf(ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1).c5f = function (stmt, entity) {
    return this.caa(stmt, entity instanceof ContentCategory ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$87(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.laa_1 = _this__u8e3s4;
    this.maa_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$87).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.laa_1.za9_1.j5g(this.maa_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentCategoryDao_JdbcImpl(_db) {
    ContentCategoryDao.call(this);
    this.ya9_1 = _db;
    var tmp = this;
    tmp.za9_1 = new ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1(this);
  }
  protoOf(ContentCategoryDao_JdbcImpl).xa9 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$87(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentCategoryDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.xa9(entity instanceof ContentCategory ? entity : THROW_CCE(), $completion);
  };
  function ContentCategoryDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.vaa_1 = this$0;
    this.waa_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentCategoryDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentCategoryDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(ContentCategoryDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.vaa_1.zaa_1.insertAsync(this.waa_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentCategoryDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new ContentCategoryDao_Repo$insertAsync$slambda(this.vaa_1, this.waa_1, completion);
  };
  function ContentCategoryDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new ContentCategoryDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$88(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.lab_1 = _this__u8e3s4;
    this.mab_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$88).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.lab_1.yaa_1, 'ContentCategory', ContentCategoryDao_Repo$insertAsync$slambda_0(this.lab_1, this.mab_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentCategoryDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ContentCategoryDao.call(this);
    this.xaa_1 = _db;
    this.yaa_1 = _repo;
    this.zaa_1 = _dao;
    this.aab_1 = _httpClient;
    this.bab_1 = _clientId;
    this.cab_1 = _endpoint;
  }
  protoOf(ContentCategoryDao_Repo).xa9 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$88(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentCategoryDao_Repo).insertAsync = function (entity, $completion) {
    return this.xa9(entity instanceof ContentCategory ? entity : THROW_CCE(), $completion);
  };
  function ContentCategorySchemaDao() {
  }
  function $insertAsyncCOROUTINE$89(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vab_1 = _this__u8e3s4;
    this.wab_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$89).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.xab_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.vab_1.zab_1));
            if (this.wab_1.bac_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.xab_1.b62(2, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.yab_1 = suspendResult;
            this.wab_1.bac_1 = this.yab_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.wab_1.hac_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.vab_1.aac_1.insertAsync(this.wab_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.wab_1.bac_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentCategorySchemaDao_DoorWrapper(_db, _dao) {
    ContentCategorySchemaDao.call(this);
    this.zab_1 = _db;
    this.aac_1 = _dao;
  }
  protoOf(ContentCategorySchemaDao_DoorWrapper).iac = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$89(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentCategorySchemaDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.iac(entity instanceof ContentCategorySchema ? entity : THROW_CCE(), $completion);
  };
  function ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.jac_1);
  }
  protoOf(ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO ContentCategorySchema (contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1).nac = function (stmt, entity) {
    if (entity.bac_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.bac_1);
    }
    stmt.l5h(2, entity.cac_1);
    stmt.l5h(3, entity.dac_1);
    stmt.i5h(4, entity.eac_1);
    stmt.i5h(5, entity.fac_1);
    stmt.h5h(6, entity.gac_1);
    stmt.i5h(7, entity.hac_1);
  };
  protoOf(ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1).c5f = function (stmt, entity) {
    return this.nac(stmt, entity instanceof ContentCategorySchema ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$90(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.wac_1 = _this__u8e3s4;
    this.xac_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$90).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.wac_1.kac_1.j5g(this.xac_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentCategorySchemaDao_JdbcImpl(_db) {
    ContentCategorySchemaDao.call(this);
    this.jac_1 = _db;
    var tmp = this;
    tmp.kac_1 = new ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1(this);
  }
  protoOf(ContentCategorySchemaDao_JdbcImpl).iac = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$90(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentCategorySchemaDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.iac(entity instanceof ContentCategorySchema ? entity : THROW_CCE(), $completion);
  };
  function ContentCategorySchemaDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.gad_1 = this$0;
    this.had_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentCategorySchemaDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentCategorySchemaDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(ContentCategorySchemaDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.gad_1.kad_1.insertAsync(this.had_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentCategorySchemaDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new ContentCategorySchemaDao_Repo$insertAsync$slambda(this.gad_1, this.had_1, completion);
  };
  function ContentCategorySchemaDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new ContentCategorySchemaDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$91(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.wad_1 = _this__u8e3s4;
    this.xad_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$91).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.wad_1.jad_1, 'ContentCategorySchema', ContentCategorySchemaDao_Repo$insertAsync$slambda_0(this.wad_1, this.xad_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentCategorySchemaDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ContentCategorySchemaDao.call(this);
    this.iad_1 = _db;
    this.jad_1 = _repo;
    this.kad_1 = _dao;
    this.lad_1 = _httpClient;
    this.mad_1 = _clientId;
    this.nad_1 = _endpoint;
  }
  protoOf(ContentCategorySchemaDao_Repo).iac = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$91(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentCategorySchemaDao_Repo).insertAsync = function (entity, $completion) {
    return this.iac(entity instanceof ContentCategorySchema ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryContentCategoryJoinDao() {
  }
  function $insertAsyncCOROUTINE$92(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.gae_1 = _this__u8e3s4;
    this.hae_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$92).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.iae_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.gae_1.kae_1));
            if (this.hae_1.mae_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.iae_1.b62(3, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.jae_1 = suspendResult;
            this.hae_1.mae_1 = this.jae_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.hae_1.sae_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.gae_1.lae_1.insertAsync(this.hae_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.hae_1.mae_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentEntryContentCategoryJoinDao_DoorWrapper(_db, _dao) {
    ContentEntryContentCategoryJoinDao.call(this);
    this.kae_1 = _db;
    this.lae_1 = _dao;
  }
  protoOf(ContentEntryContentCategoryJoinDao_DoorWrapper).tae = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$92(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryContentCategoryJoinDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.tae(entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.uae_1);
  }
  protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO ContentEntryContentCategoryJoin (ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1).yae = function (stmt, entity) {
    if (entity.mae_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.mae_1);
    }
    stmt.i5h(2, entity.nae_1);
    stmt.i5h(3, entity.oae_1);
    stmt.i5h(4, entity.pae_1);
    stmt.i5h(5, entity.qae_1);
    stmt.h5h(6, entity.rae_1);
    stmt.i5h(7, entity.sae_1);
  };
  protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1).c5f = function (stmt, entity) {
    return this.yae(stmt, entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$93(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.haf_1 = _this__u8e3s4;
    this.iaf_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$93).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.haf_1.vae_1.j5g(this.iaf_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentEntryContentCategoryJoinDao_JdbcImpl(_db) {
    ContentEntryContentCategoryJoinDao.call(this);
    this.uae_1 = _db;
    var tmp = this;
    tmp.vae_1 = new ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1(this);
  }
  protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl).tae = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$93(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.tae(entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.raf_1 = this$0;
    this.saf_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.raf_1.vaf_1.insertAsync(this.saf_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda(this.raf_1, this.saf_1, completion);
  };
  function ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$94(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.hag_1 = _this__u8e3s4;
    this.iag_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$94).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.hag_1.uaf_1, 'ContentEntryContentCategoryJoin', ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda_0(this.hag_1, this.iag_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentEntryContentCategoryJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ContentEntryContentCategoryJoinDao.call(this);
    this.taf_1 = _db;
    this.uaf_1 = _repo;
    this.vaf_1 = _dao;
    this.waf_1 = _httpClient;
    this.xaf_1 = _clientId;
    this.yaf_1 = _endpoint;
  }
  protoOf(ContentEntryContentCategoryJoinDao_Repo).tae = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$94(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryContentCategoryJoinDao_Repo).insertAsync = function (entity, $completion) {
    return this.tae(entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryDao() {
  }
  function $upsertAsyncCOROUTINE$96(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zag_1 = _this__u8e3s4;
    this.aah_1 = entity;
  }
  protoOf($upsertAsyncCOROUTINE$96).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.bah_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.zag_1.dah_1));
            if (this.aah_1.fah_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.bah_1.b62(42, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.cah_1 = suspendResult;
            this.aah_1.fah_1 = this.cah_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.aah_1.fai_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.zag_1.eah_1.jag(this.aah_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return Unit_instance;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$97(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.oai_1 = _this__u8e3s4;
    this.pai_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$97).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.qai_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.oai_1.dah_1));
            if (this.pai_1.fah_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.qai_1.b62(42, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.rai_1 = suspendResult;
            this.pai_1.fah_1 = this.rai_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.pai_1.fai_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.oai_1.eah_1.insertAsync(this.pai_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.pai_1.fah_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentEntryDao_DoorWrapper(_db, _dao) {
    ContentEntryDao.call(this);
    this.dah_1 = _db;
    this.eah_1 = _dao;
  }
  protoOf(ContentEntryDao_DoorWrapper).jag = function (entity, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$96(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_DoorWrapper).kag = function (entryUid, $completion) {
    return this.eah_1.kag(entryUid, $completion);
  };
  protoOf(ContentEntryDao_DoorWrapper).lag = function (uid, $completion) {
    return this.eah_1.lag(uid, $completion);
  };
  protoOf(ContentEntryDao_DoorWrapper).mag = function (contentEntryUid, clazzUid, courseBlockUid, accountPersonUid) {
    return this.eah_1.mag(contentEntryUid, clazzUid, courseBlockUid, accountPersonUid);
  };
  protoOf(ContentEntryDao_DoorWrapper).nag = function (entryUid, $completion) {
    return this.eah_1.nag(entryUid, $completion);
  };
  protoOf(ContentEntryDao_DoorWrapper).oag = function (accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted) {
    return this.eah_1.oag(accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted);
  };
  protoOf(ContentEntryDao_DoorWrapper).pag = function (accountPersonUid) {
    return this.eah_1.pag(accountPersonUid);
  };
  protoOf(ContentEntryDao_DoorWrapper).qag = function (accountPersonUid) {
    return this.eah_1.qag(accountPersonUid);
  };
  protoOf(ContentEntryDao_DoorWrapper).sai = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$97(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.sai(entity instanceof ContentEntry ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) {
    return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result));
  }
  function ContentEntryDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_contentEntryUid = $_result.l5m('contentEntryUid');
      var _tmp_title = $_result.rz('title');
      var _tmp_description = $_result.rz('description');
      var _tmp_entryId = $_result.rz('entryId');
      var _tmp_author = $_result.rz('author');
      var _tmp_publisher = $_result.rz('publisher');
      var _tmp_licenseType = $_result.k5m('licenseType');
      var _tmp_licenseName = $_result.rz('licenseName');
      var _tmp_licenseUrl = $_result.rz('licenseUrl');
      var _tmp_sourceUrl = $_result.rz('sourceUrl');
      var _tmp_thumbnailUrl = $_result.rz('thumbnailUrl');
      var _tmp_lastModified = $_result.l5m('lastModified');
      var _tmp_primaryLanguageUid = $_result.l5m('primaryLanguageUid');
      var _tmp_languageVariantUid = $_result.l5m('languageVariantUid');
      var _tmp_contentFlags = $_result.k5m('contentFlags');
      var _tmp_leaf = $_result.w65('leaf');
      var _tmp_publik = $_result.w65('publik');
      var _tmp_ceInactive = $_result.w65('ceInactive');
      var _tmp_completionCriteria = $_result.k5m('completionCriteria');
      var _tmp_minScore = $_result.k5m('minScore');
      var _tmp_contentTypeFlag = $_result.k5m('contentTypeFlag');
      var _tmp_contentOwner = $_result.l5m('contentOwner');
      var _tmp_contentOwnerType = $_result.k5m('contentOwnerType');
      var _tmp_contentEntryLocalChangeSeqNum = $_result.l5m('contentEntryLocalChangeSeqNum');
      var _tmp_contentEntryMasterChangeSeqNum = $_result.l5m('contentEntryMasterChangeSeqNum');
      var _tmp_contentEntryLastChangedBy = $_result.k5m('contentEntryLastChangedBy');
      var _tmp_contentEntryLct = $_result.l5m('contentEntryLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new ContentEntry();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByUidAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.fah_1 = _tmp_contentEntryUid;
      this_0.gah_1 = _tmp_title;
      this_0.hah_1 = _tmp_description;
      this_0.iah_1 = _tmp_entryId;
      this_0.jah_1 = _tmp_author;
      this_0.kah_1 = _tmp_publisher;
      this_0.lah_1 = _tmp_licenseType;
      this_0.mah_1 = _tmp_licenseName;
      this_0.nah_1 = _tmp_licenseUrl;
      this_0.oah_1 = _tmp_sourceUrl;
      this_0.pah_1 = _tmp_thumbnailUrl;
      this_0.qah_1 = _tmp_lastModified;
      this_0.rah_1 = _tmp_primaryLanguageUid;
      this_0.sah_1 = _tmp_languageVariantUid;
      this_0.tah_1 = _tmp_contentFlags;
      this_0.uah_1 = _tmp_leaf;
      this_0.vah_1 = _tmp_publik;
      this_0.wah_1 = _tmp_ceInactive;
      this_0.xah_1 = _tmp_completionCriteria;
      this_0.yah_1 = _tmp_minScore;
      this_0.zah_1 = _tmp_contentTypeFlag;
      this_0.aai_1 = _tmp_contentOwner;
      this_0.bai_1 = _tmp_contentOwnerType;
      this_0.cai_1 = _tmp_contentEntryLocalChangeSeqNum;
      this_0.dai_1 = _tmp_contentEntryMasterChangeSeqNum;
      this_0.eai_1 = _tmp_contentEntryLastChangedBy;
      this_0.fai_1 = _tmp_contentEntryLct;
      return this_0;
    };
  }
  function ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda$lambda(_result) {
    return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda$lambda$lambda(_result));
  }
  function ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_ContentEntry_nullCount = 0;
      var _tmp_contentEntryUid = $_result.l5m('contentEntryUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_title = $_result.rz('title');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_description = $_result.rz('description');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_entryId = $_result.rz('entryId');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_author = $_result.rz('author');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_publisher = $_result.rz('publisher');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_licenseType = $_result.k5m('licenseType');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_licenseName = $_result.rz('licenseName');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_licenseUrl = $_result.rz('licenseUrl');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_sourceUrl = $_result.rz('sourceUrl');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_thumbnailUrl = $_result.rz('thumbnailUrl');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_lastModified = $_result.l5m('lastModified');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_primaryLanguageUid = $_result.l5m('primaryLanguageUid');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_languageVariantUid = $_result.l5m('languageVariantUid');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_contentFlags = $_result.k5m('contentFlags');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_leaf = $_result.w65('leaf');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_publik = $_result.w65('publik');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_ceInactive = $_result.w65('ceInactive');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_completionCriteria = $_result.k5m('completionCriteria');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_minScore = $_result.k5m('minScore');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_contentTypeFlag = $_result.k5m('contentTypeFlag');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_contentOwner = $_result.l5m('contentOwner');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_contentOwnerType = $_result.k5m('contentOwnerType');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_contentEntryLocalChangeSeqNum = $_result.l5m('contentEntryLocalChangeSeqNum');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_contentEntryMasterChangeSeqNum = $_result.l5m('contentEntryMasterChangeSeqNum');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_contentEntryLastChangedBy = $_result.k5m('contentEntryLastChangedBy');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_contentEntryLct = $_result.l5m('contentEntryLct');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27;
      var _tmp_ContentEntryPicture2_nullCount = 0;
      var _tmp_cepUid = $_result.l5m('cepUid');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_cepLct = $_result.l5m('cepLct');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_cepPictureUri = $_result.rz('cepPictureUri');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_cepThumbnailUri = $_result.rz('cepThumbnailUri');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4;
      // Inline function 'kotlin.apply' call
      var this_0 = new ContentEntryAndPicture();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByUidWithEditDetails.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_ContentEntry_isAllNull) {
        var tmp_30 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new ContentEntry();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByUidWithEditDetails.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.fah_1 = _tmp_contentEntryUid;
        this_1.gah_1 = _tmp_title;
        this_1.hah_1 = _tmp_description;
        this_1.iah_1 = _tmp_entryId;
        this_1.jah_1 = _tmp_author;
        this_1.kah_1 = _tmp_publisher;
        this_1.lah_1 = _tmp_licenseType;
        this_1.mah_1 = _tmp_licenseName;
        this_1.nah_1 = _tmp_licenseUrl;
        this_1.oah_1 = _tmp_sourceUrl;
        this_1.pah_1 = _tmp_thumbnailUrl;
        this_1.qah_1 = _tmp_lastModified;
        this_1.rah_1 = _tmp_primaryLanguageUid;
        this_1.sah_1 = _tmp_languageVariantUid;
        this_1.tah_1 = _tmp_contentFlags;
        this_1.uah_1 = _tmp_leaf;
        this_1.vah_1 = _tmp_publik;
        this_1.wah_1 = _tmp_ceInactive;
        this_1.xah_1 = _tmp_completionCriteria;
        this_1.yah_1 = _tmp_minScore;
        this_1.zah_1 = _tmp_contentTypeFlag;
        this_1.aai_1 = _tmp_contentOwner;
        this_1.bai_1 = _tmp_contentOwnerType;
        this_1.cai_1 = _tmp_contentEntryLocalChangeSeqNum;
        this_1.dai_1 = _tmp_contentEntryMasterChangeSeqNum;
        this_1.eai_1 = _tmp_contentEntryLastChangedBy;
        this_1.fai_1 = _tmp_contentEntryLct;
        tmp_30.tai_1 = this_1;
      }
      if (!_tmp_ContentEntryPicture2_isAllNull) {
        var tmp_31 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new ContentEntryPicture2();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByUidWithEditDetails.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.vai_1 = _tmp_cepUid;
        this_2.wai_1 = _tmp_cepLct;
        this_2.xai_1 = _tmp_cepPictureUri;
        this_2.yai_1 = _tmp_cepThumbnailUri;
        tmp_31.uai_1 = this_2;
      }
      return this_0;
    };
  }
  function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_ContentEntry_nullCount = 0;
      var _tmp_contentEntryUid = $_result.l5m('contentEntryUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_title = $_result.rz('title');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_description = $_result.rz('description');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_entryId = $_result.rz('entryId');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_author = $_result.rz('author');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_publisher = $_result.rz('publisher');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_licenseType = $_result.k5m('licenseType');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_licenseName = $_result.rz('licenseName');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_licenseUrl = $_result.rz('licenseUrl');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_sourceUrl = $_result.rz('sourceUrl');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_thumbnailUrl = $_result.rz('thumbnailUrl');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_lastModified = $_result.l5m('lastModified');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_primaryLanguageUid = $_result.l5m('primaryLanguageUid');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_languageVariantUid = $_result.l5m('languageVariantUid');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_contentFlags = $_result.k5m('contentFlags');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_leaf = $_result.w65('leaf');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_publik = $_result.w65('publik');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_ceInactive = $_result.w65('ceInactive');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_completionCriteria = $_result.k5m('completionCriteria');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_minScore = $_result.k5m('minScore');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_contentTypeFlag = $_result.k5m('contentTypeFlag');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_contentOwner = $_result.l5m('contentOwner');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_contentOwnerType = $_result.k5m('contentOwnerType');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_contentEntryLocalChangeSeqNum = $_result.l5m('contentEntryLocalChangeSeqNum');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_contentEntryMasterChangeSeqNum = $_result.l5m('contentEntryMasterChangeSeqNum');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_contentEntryLastChangedBy = $_result.k5m('contentEntryLastChangedBy');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_contentEntryLct = $_result.l5m('contentEntryLct');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27;
      var _tmp_ContentEntryVersion_nullCount = 0;
      var _tmp_cevUid = $_result.l5m('cevUid');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_cevContentEntryUid = $_result.l5m('cevContentEntryUid');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_cevOpenUri = $_result.rz('cevOpenUri');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_cevContentType = $_result.rz('cevContentType');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_cevManifestUrl = $_result.rz('cevManifestUrl');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_cevSize = $_result.l5m('cevSize');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_cevInActive = $_result.w65('cevInActive');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_cevLastModified = $_result.l5m('cevLastModified');
      var tmp_33;
      if ($_result.d67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_cevLct = $_result.l5m('cevLct');
      var tmp_34;
      if ($_result.d67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_cevStorageSize = $_result.l5m('cevStorageSize');
      var tmp_35;
      if ($_result.d67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_cevOriginalSize = $_result.l5m('cevOriginalSize');
      var tmp_36;
      if ($_result.d67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_ContentEntryVersion_isAllNull = _tmp_ContentEntryVersion_nullCount === 11;
      var _tmp_ContentEntryPicture2_nullCount = 0;
      var _tmp_cepUid = $_result.l5m('cepUid');
      var tmp_37;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_cepLct = $_result.l5m('cepLct');
      var tmp_38;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_cepPictureUri = $_result.rz('cepPictureUri');
      var tmp_39;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_cepThumbnailUri = $_result.rz('cepThumbnailUri');
      var tmp_40;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4;
      var _tmp_BlockStatus_nullCount = 0;
      var _tmp_sPersonUid = $_result.l5m('sPersonUid');
      var tmp_41;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_sCbUid = $_result.l5m('sCbUid');
      var tmp_42;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_sProgress = getIntNullable($_result, 'sProgress');
      var tmp_43;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_sIsCompleted = $_result.w65('sIsCompleted');
      var tmp_44;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess');
      var tmp_45;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_45 = Unit_instance;
      }
      var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled');
      var tmp_46;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_46 = Unit_instance;
      }
      var _tmp_BlockStatus_isAllNull = _tmp_BlockStatus_nullCount === 6;
      // Inline function 'kotlin.apply' call
      var this_0 = new ContentEntryAndDetail();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByContentEntryUidWithDetailsAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_ContentEntry_isAllNull) {
        var tmp_47 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new ContentEntry();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByContentEntryUidWithDetailsAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.fah_1 = _tmp_contentEntryUid;
        this_1.gah_1 = _tmp_title;
        this_1.hah_1 = _tmp_description;
        this_1.iah_1 = _tmp_entryId;
        this_1.jah_1 = _tmp_author;
        this_1.kah_1 = _tmp_publisher;
        this_1.lah_1 = _tmp_licenseType;
        this_1.mah_1 = _tmp_licenseName;
        this_1.nah_1 = _tmp_licenseUrl;
        this_1.oah_1 = _tmp_sourceUrl;
        this_1.pah_1 = _tmp_thumbnailUrl;
        this_1.qah_1 = _tmp_lastModified;
        this_1.rah_1 = _tmp_primaryLanguageUid;
        this_1.sah_1 = _tmp_languageVariantUid;
        this_1.tah_1 = _tmp_contentFlags;
        this_1.uah_1 = _tmp_leaf;
        this_1.vah_1 = _tmp_publik;
        this_1.wah_1 = _tmp_ceInactive;
        this_1.xah_1 = _tmp_completionCriteria;
        this_1.yah_1 = _tmp_minScore;
        this_1.zah_1 = _tmp_contentTypeFlag;
        this_1.aai_1 = _tmp_contentOwner;
        this_1.bai_1 = _tmp_contentOwnerType;
        this_1.cai_1 = _tmp_contentEntryLocalChangeSeqNum;
        this_1.dai_1 = _tmp_contentEntryMasterChangeSeqNum;
        this_1.eai_1 = _tmp_contentEntryLastChangedBy;
        this_1.fai_1 = _tmp_contentEntryLct;
        tmp_47.zai_1 = this_1;
      }
      if (!_tmp_ContentEntryVersion_isAllNull) {
        var tmp_48 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new ContentEntryVersion();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByContentEntryUidWithDetailsAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.daj_1 = _tmp_cevUid;
        this_2.eaj_1 = _tmp_cevContentEntryUid;
        this_2.faj_1 = _tmp_cevOpenUri;
        this_2.gaj_1 = _tmp_cevContentType;
        this_2.haj_1 = _tmp_cevManifestUrl;
        this_2.iaj_1 = _tmp_cevSize;
        this_2.jaj_1 = _tmp_cevInActive;
        this_2.kaj_1 = _tmp_cevLastModified;
        this_2.laj_1 = _tmp_cevLct;
        this_2.maj_1 = _tmp_cevStorageSize;
        this_2.naj_1 = _tmp_cevOriginalSize;
        tmp_48.aaj_1 = this_2;
      }
      if (!_tmp_ContentEntryPicture2_isAllNull) {
        var tmp_49 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new ContentEntryPicture2();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByContentEntryUidWithDetailsAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.vai_1 = _tmp_cepUid;
        this_3.wai_1 = _tmp_cepLct;
        this_3.xai_1 = _tmp_cepPictureUri;
        this_3.yai_1 = _tmp_cepThumbnailUri;
        tmp_49.baj_1 = this_3;
      }
      if (!_tmp_BlockStatus_isAllNull) {
        var tmp_50 = this_0;
        // Inline function 'kotlin.apply' call
        var this_4 = new BlockStatus();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByContentEntryUidWithDetailsAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_4.oaj_1 = _tmp_sPersonUid;
        this_4.paj_1 = _tmp_sCbUid;
        this_4.qaj_1 = _tmp_sProgress;
        this_4.raj_1 = _tmp_sIsCompleted;
        this_4.saj_1 = _tmp_sIsSuccess;
        this_4.taj_1 = _tmp_sScoreScaled;
        tmp_50.caj_1 = this_4;
      }
      return this_0;
    };
  }
  function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation) {
    this.cak_1 = $clazzUid;
    this.dak_1 = $accountPersonUid;
    this.eak_1 = $courseBlockUid;
    this.fak_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda).hak = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.hak((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.gak_1.i5h(1, this.cak_1);
            this.gak_1.i5h(2, this.cak_1);
            this.gak_1.i5h(3, this.dak_1);
            this.gak_1.i5h(4, this.dak_1);
            this.gak_1.i5h(5, this.eak_1);
            this.gak_1.i5h(6, this.dak_1);
            this.gak_1.i5h(7, this.dak_1);
            this.gak_1.i5h(8, this.dak_1);
            this.gak_1.i5h(9, this.dak_1);
            this.gak_1.i5h(10, this.dak_1);
            this.gak_1.i5h(11, this.fak_1);
            this.gak_1.i5h(12, this.fak_1);
            this.gak_1.i5h(13, this.fak_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.gak_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda(this.cak_1, this.dak_1, this.eak_1, this.fak_1, completion);
    i.gak_1 = _stmt;
    return i;
  };
  function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda_0($clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation) {
    var i = new ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.hak(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda$lambda(_result) {
    return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda$lambda$lambda(_result));
  }
  function ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.k60(1);
    };
  }
  function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda$lambda$lambda(_result));
  }
  function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_ContentEntry_nullCount = 0;
      var _tmp_contentEntryUid = $_result.l5m('contentEntryUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_title = $_result.rz('title');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_description = $_result.rz('description');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_entryId = $_result.rz('entryId');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_author = $_result.rz('author');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_publisher = $_result.rz('publisher');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_licenseType = $_result.k5m('licenseType');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_licenseName = $_result.rz('licenseName');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_licenseUrl = $_result.rz('licenseUrl');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_sourceUrl = $_result.rz('sourceUrl');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_thumbnailUrl = $_result.rz('thumbnailUrl');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_lastModified = $_result.l5m('lastModified');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_primaryLanguageUid = $_result.l5m('primaryLanguageUid');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_languageVariantUid = $_result.l5m('languageVariantUid');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_contentFlags = $_result.k5m('contentFlags');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_leaf = $_result.w65('leaf');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_publik = $_result.w65('publik');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_ceInactive = $_result.w65('ceInactive');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_completionCriteria = $_result.k5m('completionCriteria');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_minScore = $_result.k5m('minScore');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_contentTypeFlag = $_result.k5m('contentTypeFlag');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_contentOwner = $_result.l5m('contentOwner');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_contentOwnerType = $_result.k5m('contentOwnerType');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_contentEntryLocalChangeSeqNum = $_result.l5m('contentEntryLocalChangeSeqNum');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_contentEntryMasterChangeSeqNum = $_result.l5m('contentEntryMasterChangeSeqNum');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_contentEntryLastChangedBy = $_result.k5m('contentEntryLastChangedBy');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_contentEntryLct = $_result.l5m('contentEntryLct');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27;
      var _tmp_ContentEntryPicture2_nullCount = 0;
      var _tmp_cepUid = $_result.l5m('cepUid');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_cepLct = $_result.l5m('cepLct');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_cepPictureUri = $_result.rz('cepPictureUri');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_cepThumbnailUri = $_result.rz('cepThumbnailUri');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4;
      var _tmp_ContentEntryParentChildJoin_nullCount = 0;
      var _tmp_cepcjUid = $_result.l5m('cepcjUid');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_cepcjLocalChangeSeqNum = $_result.l5m('cepcjLocalChangeSeqNum');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_cepcjMasterChangeSeqNum = $_result.l5m('cepcjMasterChangeSeqNum');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_cepcjLastChangedBy = $_result.k5m('cepcjLastChangedBy');
      var tmp_33;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_cepcjLct = $_result.l5m('cepcjLct');
      var tmp_34;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_cepcjDeleted = $_result.w65('cepcjDeleted');
      var tmp_35;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_cepcjParentContentEntryUid = $_result.l5m('cepcjParentContentEntryUid');
      var tmp_36;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_cepcjChildContentEntryUid = $_result.l5m('cepcjChildContentEntryUid');
      var tmp_37;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_childIndex = $_result.k5m('childIndex');
      var tmp_38;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_ContentEntryParentChildJoin_isAllNull = _tmp_ContentEntryParentChildJoin_nullCount === 9;
      var _tmp_BlockStatus_nullCount = 0;
      var _tmp_sPersonUid = $_result.l5m('sPersonUid');
      var tmp_39;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_sCbUid = $_result.l5m('sCbUid');
      var tmp_40;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_sProgress = getIntNullable($_result, 'sProgress');
      var tmp_41;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_sIsCompleted = $_result.w65('sIsCompleted');
      var tmp_42;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess');
      var tmp_43;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled');
      var tmp_44;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_BlockStatus_isAllNull = _tmp_BlockStatus_nullCount === 6;
      // Inline function 'kotlin.apply' call
      var this_0 = new ContentEntryAndListDetail();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_ContentEntry_isAllNull) {
        var tmp_45 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new ContentEntry();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.fah_1 = _tmp_contentEntryUid;
        this_1.gah_1 = _tmp_title;
        this_1.hah_1 = _tmp_description;
        this_1.iah_1 = _tmp_entryId;
        this_1.jah_1 = _tmp_author;
        this_1.kah_1 = _tmp_publisher;
        this_1.lah_1 = _tmp_licenseType;
        this_1.mah_1 = _tmp_licenseName;
        this_1.nah_1 = _tmp_licenseUrl;
        this_1.oah_1 = _tmp_sourceUrl;
        this_1.pah_1 = _tmp_thumbnailUrl;
        this_1.qah_1 = _tmp_lastModified;
        this_1.rah_1 = _tmp_primaryLanguageUid;
        this_1.sah_1 = _tmp_languageVariantUid;
        this_1.tah_1 = _tmp_contentFlags;
        this_1.uah_1 = _tmp_leaf;
        this_1.vah_1 = _tmp_publik;
        this_1.wah_1 = _tmp_ceInactive;
        this_1.xah_1 = _tmp_completionCriteria;
        this_1.yah_1 = _tmp_minScore;
        this_1.zah_1 = _tmp_contentTypeFlag;
        this_1.aai_1 = _tmp_contentOwner;
        this_1.bai_1 = _tmp_contentOwnerType;
        this_1.cai_1 = _tmp_contentEntryLocalChangeSeqNum;
        this_1.dai_1 = _tmp_contentEntryMasterChangeSeqNum;
        this_1.eai_1 = _tmp_contentEntryLastChangedBy;
        this_1.fai_1 = _tmp_contentEntryLct;
        tmp_45.iak_1 = this_1;
      }
      if (!_tmp_ContentEntryPicture2_isAllNull) {
        var tmp_46 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new ContentEntryPicture2();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.vai_1 = _tmp_cepUid;
        this_2.wai_1 = _tmp_cepLct;
        this_2.xai_1 = _tmp_cepPictureUri;
        this_2.yai_1 = _tmp_cepThumbnailUri;
        tmp_46.jak_1 = this_2;
      }
      if (!_tmp_ContentEntryParentChildJoin_isAllNull) {
        var tmp_47 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new ContentEntryParentChildJoin();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.pak_1 = _tmp_cepcjUid;
        this_3.qak_1 = _tmp_cepcjLocalChangeSeqNum;
        this_3.rak_1 = _tmp_cepcjMasterChangeSeqNum;
        this_3.sak_1 = _tmp_cepcjLastChangedBy;
        this_3.tak_1 = _tmp_cepcjLct;
        this_3.uak_1 = _tmp_cepcjDeleted;
        this_3.mak_1 = _tmp_cepcjParentContentEntryUid;
        this_3.nak_1 = _tmp_cepcjChildContentEntryUid;
        this_3.oak_1 = _tmp_childIndex;
        tmp_47.kak_1 = this_3;
      }
      if (!_tmp_BlockStatus_isAllNull) {
        var tmp_48 = this_0;
        // Inline function 'kotlin.apply' call
        var this_4 = new BlockStatus();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_4.oaj_1 = _tmp_sPersonUid;
        this_4.paj_1 = _tmp_sCbUid;
        this_4.qaj_1 = _tmp_sProgress;
        this_4.raj_1 = _tmp_sIsCompleted;
        this_4.saj_1 = _tmp_sIsSuccess;
        this_4.taj_1 = _tmp_sScoreScaled;
        tmp_48.lak_1 = this_4;
      }
      return this_0;
    };
  }
  function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda$lambda$lambda(_result));
  }
  function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, $_limit, $_offset, resultContinuation) {
    this.dal_1 = $accountPersonUid;
    this.eal_1 = $parentUid;
    this.fal_1 = $langParam;
    this.gal_1 = $categoryParam0;
    this.hal_1 = $includeDeleted;
    this.ial_1 = $sortOrder;
    this.jal_1 = $_limit;
    this.kal_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda).mal = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda).he = function (p1, $completion) {
    return this.mal((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.lal_1.i5h(1, this.dal_1);
            this.lal_1.i5h(2, this.dal_1);
            this.lal_1.i5h(3, this.dal_1);
            this.lal_1.i5h(4, this.dal_1);
            this.lal_1.i5h(5, this.dal_1);
            this.lal_1.i5h(6, this.dal_1);
            this.lal_1.i5h(7, this.eal_1);
            this.lal_1.i5h(8, this.fal_1);
            this.lal_1.i5h(9, this.fal_1);
            this.lal_1.i5h(10, this.gal_1);
            this.lal_1.i5h(11, this.gal_1);
            this.lal_1.v5g(12, this.hal_1);
            this.lal_1.h5h(13, this.ial_1);
            this.lal_1.h5h(14, this.ial_1);
            this.lal_1.h5h(15, this.jal_1);
            this.lal_1.h5h(16, this.kal_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.lal_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda(this.dal_1, this.eal_1, this.fal_1, this.gal_1, this.hal_1, this.ial_1, this.jal_1, this.kal_1, completion);
    i.lal_1 = _stmt;
    return i;
  };
  function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda_0($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, $_limit, $_offset, resultContinuation) {
    var i = new ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.mal(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, resultContinuation) {
    this.val_1 = $accountPersonUid;
    this.wal_1 = $parentUid;
    this.xal_1 = $langParam;
    this.yal_1 = $categoryParam0;
    this.zal_1 = $includeDeleted;
    this.aam_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.bam_1.i5h(1, this.val_1);
            this.bam_1.i5h(2, this.val_1);
            this.bam_1.i5h(3, this.val_1);
            this.bam_1.i5h(4, this.val_1);
            this.bam_1.i5h(5, this.val_1);
            this.bam_1.i5h(6, this.val_1);
            this.bam_1.i5h(7, this.wal_1);
            this.bam_1.i5h(8, this.xal_1);
            this.bam_1.i5h(9, this.xal_1);
            this.bam_1.i5h(10, this.yal_1);
            this.bam_1.i5h(11, this.yal_1);
            this.bam_1.v5g(12, this.zal_1);
            this.bam_1.h5h(13, this.aam_1);
            this.bam_1.h5h(14, this.aam_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.bam_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda(this.val_1, this.wal_1, this.xal_1, this.yal_1, this.zal_1, this.aam_1, completion);
    i.bam_1 = _stmt;
    return i;
  };
  function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda_0($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, resultContinuation) {
    var i = new ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda$lambda$lambda(_result));
  }
  function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_ContentEntry_nullCount = 0;
      var _tmp_contentEntryUid = $_result.l5m('contentEntryUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_title = $_result.rz('title');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_description = $_result.rz('description');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_entryId = $_result.rz('entryId');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_author = $_result.rz('author');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_publisher = $_result.rz('publisher');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_licenseType = $_result.k5m('licenseType');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_licenseName = $_result.rz('licenseName');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_licenseUrl = $_result.rz('licenseUrl');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_sourceUrl = $_result.rz('sourceUrl');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_thumbnailUrl = $_result.rz('thumbnailUrl');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_lastModified = $_result.l5m('lastModified');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_primaryLanguageUid = $_result.l5m('primaryLanguageUid');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_languageVariantUid = $_result.l5m('languageVariantUid');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_contentFlags = $_result.k5m('contentFlags');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_leaf = $_result.w65('leaf');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_publik = $_result.w65('publik');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_ceInactive = $_result.w65('ceInactive');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_completionCriteria = $_result.k5m('completionCriteria');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_minScore = $_result.k5m('minScore');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_contentTypeFlag = $_result.k5m('contentTypeFlag');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_contentOwner = $_result.l5m('contentOwner');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_contentOwnerType = $_result.k5m('contentOwnerType');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_contentEntryLocalChangeSeqNum = $_result.l5m('contentEntryLocalChangeSeqNum');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_contentEntryMasterChangeSeqNum = $_result.l5m('contentEntryMasterChangeSeqNum');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_contentEntryLastChangedBy = $_result.k5m('contentEntryLastChangedBy');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_contentEntryLct = $_result.l5m('contentEntryLct');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27;
      var _tmp_ContentEntryPicture2_nullCount = 0;
      var _tmp_cepUid = $_result.l5m('cepUid');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_cepLct = $_result.l5m('cepLct');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_cepPictureUri = $_result.rz('cepPictureUri');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_cepThumbnailUri = $_result.rz('cepThumbnailUri');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4;
      var _tmp_ContentEntryParentChildJoin_nullCount = 0;
      var _tmp_cepcjUid = $_result.l5m('cepcjUid');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_cepcjLocalChangeSeqNum = $_result.l5m('cepcjLocalChangeSeqNum');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_cepcjMasterChangeSeqNum = $_result.l5m('cepcjMasterChangeSeqNum');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_cepcjLastChangedBy = $_result.k5m('cepcjLastChangedBy');
      var tmp_33;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_cepcjLct = $_result.l5m('cepcjLct');
      var tmp_34;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_cepcjDeleted = $_result.w65('cepcjDeleted');
      var tmp_35;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_cepcjParentContentEntryUid = $_result.l5m('cepcjParentContentEntryUid');
      var tmp_36;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_cepcjChildContentEntryUid = $_result.l5m('cepcjChildContentEntryUid');
      var tmp_37;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_childIndex = $_result.k5m('childIndex');
      var tmp_38;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_ContentEntryParentChildJoin_isAllNull = _tmp_ContentEntryParentChildJoin_nullCount === 9;
      var _tmp_BlockStatus_nullCount = 0;
      var _tmp_sPersonUid = $_result.l5m('sPersonUid');
      var tmp_39;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_sCbUid = $_result.l5m('sCbUid');
      var tmp_40;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_sProgress = getIntNullable($_result, 'sProgress');
      var tmp_41;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_sIsCompleted = $_result.w65('sIsCompleted');
      var tmp_42;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess');
      var tmp_43;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled');
      var tmp_44;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_BlockStatus_isAllNull = _tmp_BlockStatus_nullCount === 6;
      // Inline function 'kotlin.apply' call
      var this_0 = new ContentEntryAndListDetail();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_ContentEntry_isAllNull) {
        var tmp_45 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new ContentEntry();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.fah_1 = _tmp_contentEntryUid;
        this_1.gah_1 = _tmp_title;
        this_1.hah_1 = _tmp_description;
        this_1.iah_1 = _tmp_entryId;
        this_1.jah_1 = _tmp_author;
        this_1.kah_1 = _tmp_publisher;
        this_1.lah_1 = _tmp_licenseType;
        this_1.mah_1 = _tmp_licenseName;
        this_1.nah_1 = _tmp_licenseUrl;
        this_1.oah_1 = _tmp_sourceUrl;
        this_1.pah_1 = _tmp_thumbnailUrl;
        this_1.qah_1 = _tmp_lastModified;
        this_1.rah_1 = _tmp_primaryLanguageUid;
        this_1.sah_1 = _tmp_languageVariantUid;
        this_1.tah_1 = _tmp_contentFlags;
        this_1.uah_1 = _tmp_leaf;
        this_1.vah_1 = _tmp_publik;
        this_1.wah_1 = _tmp_ceInactive;
        this_1.xah_1 = _tmp_completionCriteria;
        this_1.yah_1 = _tmp_minScore;
        this_1.zah_1 = _tmp_contentTypeFlag;
        this_1.aai_1 = _tmp_contentOwner;
        this_1.bai_1 = _tmp_contentOwnerType;
        this_1.cai_1 = _tmp_contentEntryLocalChangeSeqNum;
        this_1.dai_1 = _tmp_contentEntryMasterChangeSeqNum;
        this_1.eai_1 = _tmp_contentEntryLastChangedBy;
        this_1.fai_1 = _tmp_contentEntryLct;
        tmp_45.iak_1 = this_1;
      }
      if (!_tmp_ContentEntryPicture2_isAllNull) {
        var tmp_46 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new ContentEntryPicture2();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.vai_1 = _tmp_cepUid;
        this_2.wai_1 = _tmp_cepLct;
        this_2.xai_1 = _tmp_cepPictureUri;
        this_2.yai_1 = _tmp_cepThumbnailUri;
        tmp_46.jak_1 = this_2;
      }
      if (!_tmp_ContentEntryParentChildJoin_isAllNull) {
        var tmp_47 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new ContentEntryParentChildJoin();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.pak_1 = _tmp_cepcjUid;
        this_3.qak_1 = _tmp_cepcjLocalChangeSeqNum;
        this_3.rak_1 = _tmp_cepcjMasterChangeSeqNum;
        this_3.sak_1 = _tmp_cepcjLastChangedBy;
        this_3.tak_1 = _tmp_cepcjLct;
        this_3.uak_1 = _tmp_cepcjDeleted;
        this_3.mak_1 = _tmp_cepcjParentContentEntryUid;
        this_3.nak_1 = _tmp_cepcjChildContentEntryUid;
        this_3.oak_1 = _tmp_childIndex;
        tmp_47.kak_1 = this_3;
      }
      if (!_tmp_BlockStatus_isAllNull) {
        var tmp_48 = this_0;
        // Inline function 'kotlin.apply' call
        var this_4 = new BlockStatus();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_4.oaj_1 = _tmp_sPersonUid;
        this_4.paj_1 = _tmp_sCbUid;
        this_4.qaj_1 = _tmp_sProgress;
        this_4.raj_1 = _tmp_sIsCompleted;
        this_4.saj_1 = _tmp_sIsSuccess;
        this_4.taj_1 = _tmp_sScoreScaled;
        tmp_48.lak_1 = this_4;
      }
      return this_0;
    };
  }
  function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda$lambda$lambda(_result));
  }
  function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda($accountPersonUid, $_limit, $_offset, resultContinuation) {
    this.kam_1 = $accountPersonUid;
    this.lam_1 = $_limit;
    this.mam_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda).mal = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda).he = function (p1, $completion) {
    return this.mal((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.nam_1.i5h(1, this.kam_1);
            this.nam_1.i5h(2, this.kam_1);
            this.nam_1.i5h(3, this.kam_1);
            this.nam_1.i5h(4, this.kam_1);
            this.nam_1.i5h(5, this.kam_1);
            this.nam_1.i5h(6, this.kam_1);
            this.nam_1.i5h(7, this.kam_1);
            this.nam_1.h5h(8, this.lam_1);
            this.nam_1.h5h(9, this.mam_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.nam_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda(this.kam_1, this.lam_1, this.mam_1, completion);
    i.nam_1 = _stmt;
    return i;
  };
  function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda_0($accountPersonUid, $_limit, $_offset, resultContinuation) {
    var i = new ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda($accountPersonUid, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.mal(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda($accountPersonUid, resultContinuation) {
    this.wam_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.xam_1.i5h(1, this.wam_1);
            this.xam_1.i5h(2, this.wam_1);
            this.xam_1.i5h(3, this.wam_1);
            this.xam_1.i5h(4, this.wam_1);
            this.xam_1.i5h(5, this.wam_1);
            this.xam_1.i5h(6, this.wam_1);
            this.xam_1.i5h(7, this.wam_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.xam_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda(this.wam_1, completion);
    i.xam_1 = _stmt;
    return i;
  };
  function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda_0($accountPersonUid, resultContinuation) {
    var i = new ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda($accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda$lambda$lambda(_result));
  }
  function ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_ContentEntry_nullCount = 0;
      var _tmp_contentEntryUid = $_result.l5m('contentEntryUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_title = $_result.rz('title');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_description = $_result.rz('description');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_entryId = $_result.rz('entryId');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_author = $_result.rz('author');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_publisher = $_result.rz('publisher');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_licenseType = $_result.k5m('licenseType');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_licenseName = $_result.rz('licenseName');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_licenseUrl = $_result.rz('licenseUrl');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_sourceUrl = $_result.rz('sourceUrl');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_thumbnailUrl = $_result.rz('thumbnailUrl');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_lastModified = $_result.l5m('lastModified');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_primaryLanguageUid = $_result.l5m('primaryLanguageUid');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_languageVariantUid = $_result.l5m('languageVariantUid');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_contentFlags = $_result.k5m('contentFlags');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_leaf = $_result.w65('leaf');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_publik = $_result.w65('publik');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_ceInactive = $_result.w65('ceInactive');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_completionCriteria = $_result.k5m('completionCriteria');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_minScore = $_result.k5m('minScore');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_contentTypeFlag = $_result.k5m('contentTypeFlag');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_contentOwner = $_result.l5m('contentOwner');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_contentOwnerType = $_result.k5m('contentOwnerType');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_contentEntryLocalChangeSeqNum = $_result.l5m('contentEntryLocalChangeSeqNum');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_contentEntryMasterChangeSeqNum = $_result.l5m('contentEntryMasterChangeSeqNum');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_contentEntryLastChangedBy = $_result.k5m('contentEntryLastChangedBy');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_contentEntryLct = $_result.l5m('contentEntryLct');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27;
      var _tmp_ContentEntryPicture2_nullCount = 0;
      var _tmp_cepUid = $_result.l5m('cepUid');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_cepLct = $_result.l5m('cepLct');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_cepPictureUri = $_result.rz('cepPictureUri');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_cepThumbnailUri = $_result.rz('cepThumbnailUri');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4;
      var _tmp_ContentEntryParentChildJoin_nullCount = 0;
      var _tmp_cepcjUid = $_result.l5m('cepcjUid');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_cepcjLocalChangeSeqNum = $_result.l5m('cepcjLocalChangeSeqNum');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_cepcjMasterChangeSeqNum = $_result.l5m('cepcjMasterChangeSeqNum');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_cepcjLastChangedBy = $_result.k5m('cepcjLastChangedBy');
      var tmp_33;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_cepcjLct = $_result.l5m('cepcjLct');
      var tmp_34;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_cepcjDeleted = $_result.w65('cepcjDeleted');
      var tmp_35;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_cepcjParentContentEntryUid = $_result.l5m('cepcjParentContentEntryUid');
      var tmp_36;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_cepcjChildContentEntryUid = $_result.l5m('cepcjChildContentEntryUid');
      var tmp_37;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_childIndex = $_result.k5m('childIndex');
      var tmp_38;
      if ($_result.d67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_ContentEntryParentChildJoin_isAllNull = _tmp_ContentEntryParentChildJoin_nullCount === 9;
      var _tmp_BlockStatus_nullCount = 0;
      var _tmp_sPersonUid = $_result.l5m('sPersonUid');
      var tmp_39;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_sCbUid = $_result.l5m('sCbUid');
      var tmp_40;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_sProgress = getIntNullable($_result, 'sProgress');
      var tmp_41;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_sIsCompleted = $_result.w65('sIsCompleted');
      var tmp_42;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess');
      var tmp_43;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled');
      var tmp_44;
      if ($_result.d67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_BlockStatus_isAllNull = _tmp_BlockStatus_nullCount === 6;
      // Inline function 'kotlin.apply' call
      var this_0 = new ContentEntryAndListDetail();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_ContentEntry_isAllNull) {
        var tmp_45 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new ContentEntry();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.fah_1 = _tmp_contentEntryUid;
        this_1.gah_1 = _tmp_title;
        this_1.hah_1 = _tmp_description;
        this_1.iah_1 = _tmp_entryId;
        this_1.jah_1 = _tmp_author;
        this_1.kah_1 = _tmp_publisher;
        this_1.lah_1 = _tmp_licenseType;
        this_1.mah_1 = _tmp_licenseName;
        this_1.nah_1 = _tmp_licenseUrl;
        this_1.oah_1 = _tmp_sourceUrl;
        this_1.pah_1 = _tmp_thumbnailUrl;
        this_1.qah_1 = _tmp_lastModified;
        this_1.rah_1 = _tmp_primaryLanguageUid;
        this_1.sah_1 = _tmp_languageVariantUid;
        this_1.tah_1 = _tmp_contentFlags;
        this_1.uah_1 = _tmp_leaf;
        this_1.vah_1 = _tmp_publik;
        this_1.wah_1 = _tmp_ceInactive;
        this_1.xah_1 = _tmp_completionCriteria;
        this_1.yah_1 = _tmp_minScore;
        this_1.zah_1 = _tmp_contentTypeFlag;
        this_1.aai_1 = _tmp_contentOwner;
        this_1.bai_1 = _tmp_contentOwnerType;
        this_1.cai_1 = _tmp_contentEntryLocalChangeSeqNum;
        this_1.dai_1 = _tmp_contentEntryMasterChangeSeqNum;
        this_1.eai_1 = _tmp_contentEntryLastChangedBy;
        this_1.fai_1 = _tmp_contentEntryLct;
        tmp_45.iak_1 = this_1;
      }
      if (!_tmp_ContentEntryPicture2_isAllNull) {
        var tmp_46 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new ContentEntryPicture2();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.vai_1 = _tmp_cepUid;
        this_2.wai_1 = _tmp_cepLct;
        this_2.xai_1 = _tmp_cepPictureUri;
        this_2.yai_1 = _tmp_cepThumbnailUri;
        tmp_46.jak_1 = this_2;
      }
      if (!_tmp_ContentEntryParentChildJoin_isAllNull) {
        var tmp_47 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new ContentEntryParentChildJoin();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.pak_1 = _tmp_cepcjUid;
        this_3.qak_1 = _tmp_cepcjLocalChangeSeqNum;
        this_3.rak_1 = _tmp_cepcjMasterChangeSeqNum;
        this_3.sak_1 = _tmp_cepcjLastChangedBy;
        this_3.tak_1 = _tmp_cepcjLct;
        this_3.uak_1 = _tmp_cepcjDeleted;
        this_3.mak_1 = _tmp_cepcjParentContentEntryUid;
        this_3.nak_1 = _tmp_cepcjChildContentEntryUid;
        this_3.oak_1 = _tmp_childIndex;
        tmp_47.kak_1 = this_3;
      }
      if (!_tmp_BlockStatus_isAllNull) {
        var tmp_48 = this_0;
        // Inline function 'kotlin.apply' call
        var this_4 = new BlockStatus();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_4.oaj_1 = _tmp_sPersonUid;
        this_4.paj_1 = _tmp_sCbUid;
        this_4.qaj_1 = _tmp_sProgress;
        this_4.raj_1 = _tmp_sIsCompleted;
        this_4.saj_1 = _tmp_sIsSuccess;
        this_4.taj_1 = _tmp_sScoreScaled;
        tmp_48.lak_1 = this_4;
      }
      return this_0;
    };
  }
  function ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda$lambda$lambda(_result));
  }
  function ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda($accountPersonUid, $_limit, $_offset, resultContinuation) {
    this.gan_1 = $accountPersonUid;
    this.han_1 = $_limit;
    this.ian_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda).mal = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda).he = function (p1, $completion) {
    return this.mal((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.jan_1.i5h(1, this.gan_1);
            this.jan_1.i5h(2, this.gan_1);
            this.jan_1.i5h(3, this.gan_1);
            this.jan_1.i5h(4, this.gan_1);
            this.jan_1.i5h(5, this.gan_1);
            this.jan_1.i5h(6, this.gan_1);
            this.jan_1.i5h(7, this.gan_1);
            this.jan_1.h5h(8, this.han_1);
            this.jan_1.h5h(9, this.ian_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.jan_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda(this.gan_1, this.han_1, this.ian_1, completion);
    i.jan_1 = _stmt;
    return i;
  };
  function ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda_0($accountPersonUid, $_limit, $_offset, resultContinuation) {
    var i = new ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda($accountPersonUid, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.mal(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda($accountPersonUid, resultContinuation) {
    this.san_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.tan_1.i5h(1, this.san_1);
            this.tan_1.i5h(2, this.san_1);
            this.tan_1.i5h(3, this.san_1);
            this.tan_1.i5h(4, this.san_1);
            this.tan_1.i5h(5, this.san_1);
            this.tan_1.i5h(6, this.san_1);
            this.tan_1.i5h(7, this.san_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.tan_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda(this.san_1, completion);
    i.tan_1 = _stmt;
    return i;
  };
  function ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda_0($accountPersonUid, resultContinuation) {
    var i = new ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda($accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.uan_1);
  }
  protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO ContentEntry (contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1).zan = function (stmt, entity) {
    if (entity.fah_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.fah_1);
    }
    stmt.l5h(2, entity.gah_1);
    stmt.l5h(3, entity.hah_1);
    stmt.l5h(4, entity.iah_1);
    stmt.l5h(5, entity.jah_1);
    stmt.l5h(6, entity.kah_1);
    stmt.h5h(7, entity.lah_1);
    stmt.l5h(8, entity.mah_1);
    stmt.l5h(9, entity.nah_1);
    stmt.l5h(10, entity.oah_1);
    stmt.l5h(11, entity.pah_1);
    stmt.i5h(12, entity.qah_1);
    stmt.i5h(13, entity.rah_1);
    stmt.i5h(14, entity.sah_1);
    stmt.h5h(15, entity.tah_1);
    stmt.v5g(16, entity.uah_1);
    stmt.v5g(17, entity.vah_1);
    stmt.v5g(18, entity.wah_1);
    stmt.h5h(19, entity.xah_1);
    stmt.h5h(20, entity.yah_1);
    stmt.h5h(21, entity.zah_1);
    stmt.i5h(22, entity.aai_1);
    stmt.h5h(23, entity.bai_1);
    stmt.i5h(24, entity.cai_1);
    stmt.i5h(25, entity.dai_1);
    stmt.h5h(26, entity.eai_1);
    stmt.i5h(27, entity.fai_1);
  };
  protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1).c5f = function (stmt, entity) {
    return this.zan(stmt, entity instanceof ContentEntry ? entity : THROW_CCE());
  };
  function ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.uan_1);
  }
  protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO ContentEntry (contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1).zan = function (stmt, entity) {
    if (entity.fah_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.fah_1);
    }
    stmt.l5h(2, entity.gah_1);
    stmt.l5h(3, entity.hah_1);
    stmt.l5h(4, entity.iah_1);
    stmt.l5h(5, entity.jah_1);
    stmt.l5h(6, entity.kah_1);
    stmt.h5h(7, entity.lah_1);
    stmt.l5h(8, entity.mah_1);
    stmt.l5h(9, entity.nah_1);
    stmt.l5h(10, entity.oah_1);
    stmt.l5h(11, entity.pah_1);
    stmt.i5h(12, entity.qah_1);
    stmt.i5h(13, entity.rah_1);
    stmt.i5h(14, entity.sah_1);
    stmt.h5h(15, entity.tah_1);
    stmt.v5g(16, entity.uah_1);
    stmt.v5g(17, entity.vah_1);
    stmt.v5g(18, entity.wah_1);
    stmt.h5h(19, entity.xah_1);
    stmt.h5h(20, entity.yah_1);
    stmt.h5h(21, entity.zah_1);
    stmt.i5h(22, entity.aai_1);
    stmt.h5h(23, entity.bai_1);
    stmt.i5h(24, entity.cai_1);
    stmt.i5h(25, entity.dai_1);
    stmt.h5h(26, entity.eai_1);
    stmt.i5h(27, entity.fai_1);
  };
  protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1).c5f = function (stmt, entity) {
    return this.zan(stmt, entity instanceof ContentEntry ? entity : THROW_CCE());
  };
  function ContentEntryDao_JdbcImpl$findByUidAsync$slambda($entryUid, resultContinuation) {
    this.kao_1 = $entryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$findByUidAsync$slambda).mao = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_JdbcImpl$findByUidAsync$slambda).he = function (p1, $completion) {
    return this.mao((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$findByUidAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.lao_1.i5h(1, this.kao_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.lao_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findByUidAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryDao_JdbcImpl$findByUidAsync$slambda).z5e = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$findByUidAsync$slambda(this.kao_1, completion);
    i.lao_1 = _stmt;
    return i;
  };
  function ContentEntryDao_JdbcImpl$findByUidAsync$slambda_0($entryUid, resultContinuation) {
    var i = new ContentEntryDao_JdbcImpl$findByUidAsync$slambda($entryUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.mao(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda($uid, resultContinuation) {
    this.vao_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda).xao = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda).he = function (p1, $completion) {
    return this.xao((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.wao_1.i5h(1, this.vao_1);
            this.wao_1.i5h(2, this.vao_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.wao_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda).z5e = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda(this.vao_1, completion);
    i.wao_1 = _stmt;
    return i;
  };
  function ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda_0($uid, resultContinuation) {
    var i = new ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda($uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.xao(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation) {
    this.gap_1 = this$0;
    this.hap_1 = $clazzUid;
    this.iap_1 = $accountPersonUid;
    this.jap_1 = $courseBlockUid;
    this.kap_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda).lap = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda).z77 = function ($completion) {
    return this.lap($completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n              -- When the user is viewing ContentEntryDetail where the class is specified eg \n              -- for a ContentEntry that is part of a Clazz then results information will only be\n              -- included if the user is a student in the class\n              -- If the user is viewing the ContentEntryDetail via the library then the results\n              -- information will always be included\n              WITH IncludeResults(includeResults) AS (\n                   SELECT CAST(\n                      (SELECT (CAST(? AS BIGINT) = 0)\n                           OR (\n        (SELECT EXISTS(\n                SELECT 1\n                  FROM ClazzEnrolment\n                 WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n                   AND ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                   AND ClazzEnrolment.clazzEnrolmentRole = 1000))\n    )\n                      ) AS INTEGER)\n                  )\n\n              SELECT ContentEntry.*, ContentEntryVersion.*, ContentEntryPicture2.*,\n                   CAST(? AS BIGINT) AS sPersonUid,\n                   CAST(? AS BIGINT) AS sCbUid,\n                   \n                   (SELECT MAX(StatementEntity.extensionProgress)\n                     FROM StatementEntity\n                    WHERE (SELECT includeResults FROM IncludeResults) = 1\n                      AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                      AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                      AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                   ) AS sProgress,\n                   (SELECT CASE\n                       -- If a successful completion statement exists, then count as success\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1    \n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n    )))\n                            THEN 1\n                       -- Else if no success record exists, however a fail record exists, mark as failed\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n    )))\n                            THEN 0\n                            \n                       ELSE NULL\n                       END                    \n                   ) AS sIsSuccess,\n                   (SELECT EXISTS(\n                           SELECT 1\n                             FROM StatementEntity\n                            WHERE (SELECT includeResults FROM IncludeResults) = 1\n                              AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                              AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                              AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                   ) AS sIsCompleted,\n                   (SELECT MAX(StatementEntity.resultScoreScaled)\n                      FROM StatementEntity\n                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                   ) AS sScoreScaled\n    \n              FROM ContentEntry\n                   LEFT JOIN ContentEntryVersion\n                             ON ContentEntryVersion.cevUid = \n                             (SELECT ContentEntryVersion.cevUid\n                                FROM ContentEntryVersion\n                               WHERE ContentEntryVersion.cevContentEntryUid = CAST(? AS BIGINT)\n                                 AND CAST(cevInActive AS INTEGER) = 0\n                            ORDER BY ContentEntryVersion.cevLct DESC\n                              LIMIT 1)\n                   LEFT JOIN ContentEntryPicture2\n                             ON ContentEntryPicture2.cepUid = CAST(? AS BIGINT)   \n             WHERE ContentEntry.contentEntryUid = CAST(? AS BIGINT)\n            ', VOID, VOID, VOID, '\n              -- When the user is viewing ContentEntryDetail where the class is specified eg \n              -- for a ContentEntry that is part of a Clazz then results information will only be\n              -- included if the user is a student in the class\n              -- If the user is viewing the ContentEntryDetail via the library then the results\n              -- information will always be included\n              WITH IncludeResults(includeResults) AS (\n                   SELECT CAST(\n                      (SELECT (? = 0)\n                           OR (\n        (SELECT EXISTS(\n                SELECT 1\n                  FROM ClazzEnrolment\n                 WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n                   AND ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                   AND ClazzEnrolment.clazzEnrolmentRole = 1000))\n    )\n                      ) AS INTEGER)\n                  )\n\n              SELECT ContentEntry.*, ContentEntryVersion.*, ContentEntryPicture2.*,\n                   ? AS sPersonUid,\n                   ? AS sCbUid,\n                   \n                   (SELECT MAX(StatementEntity.extensionProgress)\n                     FROM StatementEntity\n                    WHERE (SELECT includeResults FROM IncludeResults) = 1\n                      AND StatementEntity.statementActorPersonUid = ?\n                      AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                      AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                   ) AS sProgress,\n                   (SELECT CASE\n                       -- If a successful completion statement exists, then count as success\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = ?\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1    \n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n    )))\n                            THEN 1\n                       -- Else if no success record exists, however a fail record exists, mark as failed\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = ?\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n    )))\n                            THEN 0\n                            \n                       ELSE NULL\n                       END                    \n                   ) AS sIsSuccess,\n                   (SELECT EXISTS(\n                           SELECT 1\n                             FROM StatementEntity\n                            WHERE (SELECT includeResults FROM IncludeResults) = 1\n                              AND StatementEntity.statementActorPersonUid = ?\n                              AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                              AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                   ) AS sIsCompleted,\n                   (SELECT MAX(StatementEntity.resultScoreScaled)\n                      FROM StatementEntity\n                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                       AND StatementEntity.statementActorPersonUid = ?\n                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                   ) AS sScoreScaled\n    \n              FROM ContentEntry\n                   LEFT JOIN ContentEntryVersion\n                             ON ContentEntryVersion.cevUid = \n                             (SELECT ContentEntryVersion.cevUid\n                                FROM ContentEntryVersion\n                               WHERE ContentEntryVersion.cevContentEntryUid = ?\n                                 AND CAST(cevInActive AS INTEGER) = 0\n                            ORDER BY ContentEntryVersion.cevLct DESC\n                              LIMIT 1)\n                   LEFT JOIN ContentEntryPicture2\n                             ON ContentEntryPicture2.cepUid = ?   \n             WHERE ContentEntry.contentEntryUid = ?\n            \n', true);
            suspendResult = prepareAndUseStatementAsync(this.gap_1.uan_1, tmp_0, ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda_0(this.hap_1, this.iap_1, this.jap_1, this.kap_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda).y77 = function (completion) {
    return new ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda(this.gap_1, this.hap_1, this.iap_1, this.jap_1, this.kap_1, completion);
  };
  function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda_0(this$0, $clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation) {
    var i = new ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation);
    var l = function ($completion) {
      return i.lap($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda($entryUid, resultContinuation) {
    this.uap_1 = $entryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda).u8k = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda).he = function (p1, $completion) {
    return this.u8k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.vap_1.i5h(1, this.uap_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.vap_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda).z5e = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda(this.uap_1, completion);
    i.vap_1 = _stmt;
    return i;
  };
  function ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda_0($entryUid, resultContinuation) {
    var i = new ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda($entryUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.u8k(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1(this$0, $accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder) {
    this.caq_1 = this$0;
    this.daq_1 = $accountPersonUid;
    this.eaq_1 = $parentUid;
    this.faq_1 = $langParam;
    this.gaq_1 = $categoryParam0;
    this.haq_1 = $includeDeleted;
    this.iaq_1 = $sortOrder;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['ContentEntry', 'ContentEntryContentCategoryJoin', 'ContentEntryPicture2', 'StatementEntity', 'ContentEntryParentChildJoin'];
    DoorLimitOffsetPagingSource.call(this, this$0.uan_1, tmp$ret$2);
  }
  protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1).jaq = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig("SELECT * FROM (\n            WITH IncludeResults(includeResults) AS (SELECT 1)\n            \n            SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n                   \n               CAST(? AS BIGINT) AS sPersonUid,\n               0 AS sCbUid,\n               \n                   (SELECT MAX(StatementEntity.extensionProgress)\n                     FROM StatementEntity\n                    WHERE (SELECT includeResults FROM IncludeResults) = 1\n                      AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                      AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                      AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                   ) AS sProgress,\n                   (SELECT CASE\n                       -- If a successful completion statement exists, then count as success\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1    \n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n    )))\n                            THEN 1\n                       -- Else if no success record exists, however a fail record exists, mark as failed\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n    )))\n                            THEN 0\n                            \n                       ELSE NULL\n                       END                    \n                   ) AS sIsSuccess,\n                   (SELECT EXISTS(\n                           SELECT 1\n                             FROM StatementEntity\n                            WHERE (SELECT includeResults FROM IncludeResults) = 1\n                              AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                              AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                              AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                   ) AS sIsCompleted,\n                   (SELECT MAX(StatementEntity.resultScoreScaled)\n                      FROM StatementEntity\n                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                   ) AS sScoreScaled\n    \n    \n              FROM ContentEntry \n                    LEFT JOIN ContentEntryParentChildJoin \n                         ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid \n                    LEFT JOIN ContentEntryPicture2\n                         ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n             WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = CAST(? AS BIGINT) \n               AND (CAST(? AS BIGINT) = 0 OR ContentEntry.primaryLanguageUid = CAST(? AS BIGINT))\n               AND (CAST(? AS BIGINT) = 0 OR CAST(? AS BIGINT) \n                    IN (SELECT ceccjContentCategoryUid \n                          FROM ContentEntryContentCategoryJoin \n                         WHERE ceccjContentEntryUid = ContentEntry.contentEntryUid)) \n               AND (CAST(? AS INTEGER) = 1 OR CAST(ContentEntryParentChildJoin.cepcjDeleted AS INTEGER) = 0)          \n            ORDER BY ContentEntryParentChildJoin.childIndex,\n                     CASE(?)\n                     WHEN 1 THEN ContentEntry.title\n                     ELSE ''\n                     END ASC,\n                     CASE(?)\n                     WHEN 2 THEN ContentEntry.title\n                     ELSE ''\n                     END DESC,             \n                     ContentEntry.contentEntryUid) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n            WITH IncludeResults(includeResults) AS (SELECT 1)\n            \n            SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n                   \n               ? AS sPersonUid,\n               0 AS sCbUid,\n               \n                   (SELECT MAX(StatementEntity.extensionProgress)\n                     FROM StatementEntity\n                    WHERE (SELECT includeResults FROM IncludeResults) = 1\n                      AND StatementEntity.statementActorPersonUid = ?\n                      AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                      AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                   ) AS sProgress,\n                   (SELECT CASE\n                       -- If a successful completion statement exists, then count as success\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = ?\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1    \n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n    )))\n                            THEN 1\n                       -- Else if no success record exists, however a fail record exists, mark as failed\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = ?\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n    )))\n                            THEN 0\n                            \n                       ELSE NULL\n                       END                    \n                   ) AS sIsSuccess,\n                   (SELECT EXISTS(\n                           SELECT 1\n                             FROM StatementEntity\n                            WHERE (SELECT includeResults FROM IncludeResults) = 1\n                              AND StatementEntity.statementActorPersonUid = ?\n                              AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                              AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                   ) AS sIsCompleted,\n                   (SELECT MAX(StatementEntity.resultScoreScaled)\n                      FROM StatementEntity\n                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                       AND StatementEntity.statementActorPersonUid = ?\n                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                   ) AS sScoreScaled\n    \n    \n              FROM ContentEntry \n                    LEFT JOIN ContentEntryParentChildJoin \n                         ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid \n                    LEFT JOIN ContentEntryPicture2\n                         ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n             WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ? \n               AND (? = 0 OR ContentEntry.primaryLanguageUid = ?)\n               AND (? = 0 OR ? \n                    IN (SELECT ceccjContentCategoryUid \n                          FROM ContentEntryContentCategoryJoin \n                         WHERE ceccjContentEntryUid = ContentEntry.contentEntryUid)) \n               AND (CAST(? AS INTEGER) = 1 OR CAST(ContentEntryParentChildJoin.cepcjDeleted AS INTEGER) = 0)          \n            ORDER BY ContentEntryParentChildJoin.childIndex,\n                     CASE(?)\n                     WHEN 1 THEN ContentEntry.title\n                     ELSE ''\n                     END ASC,\n                     CASE(?)\n                     WHEN 2 THEN ContentEntry.title\n                     ELSE ''\n                     END DESC,             \n                     ContentEntry.contentEntryUid) AS _PagingData LIMIT ? OFFSET ?\n", true);
    return prepareAndUseStatementAsync(this.caq_1.uan_1, tmp, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda_0(this.daq_1, this.eaq_1, this.faq_1, this.gaq_1, this.haq_1, this.iaq_1, _limit, _offset, null), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1).j5p = function (_limit, _offset, $completion) {
    return this.jaq(_limit, _offset, $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n            WITH IncludeResults(includeResults) AS (SELECT 1)\n            \n            SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n                   \n               CAST(? AS BIGINT) AS sPersonUid,\n               0 AS sCbUid,\n               \n                   (SELECT MAX(StatementEntity.extensionProgress)\n                     FROM StatementEntity\n                    WHERE (SELECT includeResults FROM IncludeResults) = 1\n                      AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                      AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                      AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                   ) AS sProgress,\n                   (SELECT CASE\n                       -- If a successful completion statement exists, then count as success\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1    \n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n    )))\n                            THEN 1\n                       -- Else if no success record exists, however a fail record exists, mark as failed\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n    )))\n                            THEN 0\n                            \n                       ELSE NULL\n                       END                    \n                   ) AS sIsSuccess,\n                   (SELECT EXISTS(\n                           SELECT 1\n                             FROM StatementEntity\n                            WHERE (SELECT includeResults FROM IncludeResults) = 1\n                              AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                              AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                              AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                   ) AS sIsCompleted,\n                   (SELECT MAX(StatementEntity.resultScoreScaled)\n                      FROM StatementEntity\n                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                   ) AS sScoreScaled\n    \n    \n              FROM ContentEntry \n                    LEFT JOIN ContentEntryParentChildJoin \n                         ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid \n                    LEFT JOIN ContentEntryPicture2\n                         ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n             WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = CAST(? AS BIGINT) \n               AND (CAST(? AS BIGINT) = 0 OR ContentEntry.primaryLanguageUid = CAST(? AS BIGINT))\n               AND (CAST(? AS BIGINT) = 0 OR CAST(? AS BIGINT) \n                    IN (SELECT ceccjContentCategoryUid \n                          FROM ContentEntryContentCategoryJoin \n                         WHERE ceccjContentEntryUid = ContentEntry.contentEntryUid)) \n               AND (CAST(? AS INTEGER) = 1 OR CAST(ContentEntryParentChildJoin.cepcjDeleted AS INTEGER) = 0)          \n            ORDER BY ContentEntryParentChildJoin.childIndex,\n                     CASE(?)\n                     WHEN 1 THEN ContentEntry.title\n                     ELSE ''\n                     END ASC,\n                     CASE(?)\n                     WHEN 2 THEN ContentEntry.title\n                     ELSE ''\n                     END DESC,             \n                     ContentEntry.contentEntryUid) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n            WITH IncludeResults(includeResults) AS (SELECT 1)\n            \n            SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n                   \n               ? AS sPersonUid,\n               0 AS sCbUid,\n               \n                   (SELECT MAX(StatementEntity.extensionProgress)\n                     FROM StatementEntity\n                    WHERE (SELECT includeResults FROM IncludeResults) = 1\n                      AND StatementEntity.statementActorPersonUid = ?\n                      AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                      AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                   ) AS sProgress,\n                   (SELECT CASE\n                       -- If a successful completion statement exists, then count as success\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = ?\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1    \n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n    )))\n                            THEN 1\n                       -- Else if no success record exists, however a fail record exists, mark as failed\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = ?\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n    )))\n                            THEN 0\n                            \n                       ELSE NULL\n                       END                    \n                   ) AS sIsSuccess,\n                   (SELECT EXISTS(\n                           SELECT 1\n                             FROM StatementEntity\n                            WHERE (SELECT includeResults FROM IncludeResults) = 1\n                              AND StatementEntity.statementActorPersonUid = ?\n                              AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                              AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                   ) AS sIsCompleted,\n                   (SELECT MAX(StatementEntity.resultScoreScaled)\n                      FROM StatementEntity\n                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                       AND StatementEntity.statementActorPersonUid = ?\n                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                   ) AS sScoreScaled\n    \n    \n              FROM ContentEntry \n                    LEFT JOIN ContentEntryParentChildJoin \n                         ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid \n                    LEFT JOIN ContentEntryPicture2\n                         ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n             WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ? \n               AND (? = 0 OR ContentEntry.primaryLanguageUid = ?)\n               AND (? = 0 OR ? \n                    IN (SELECT ceccjContentCategoryUid \n                          FROM ContentEntryContentCategoryJoin \n                         WHERE ceccjContentEntryUid = ContentEntry.contentEntryUid)) \n               AND (CAST(? AS INTEGER) = 1 OR CAST(ContentEntryParentChildJoin.cepcjDeleted AS INTEGER) = 0)          \n            ORDER BY ContentEntryParentChildJoin.childIndex,\n                     CASE(?)\n                     WHEN 1 THEN ContentEntry.title\n                     ELSE ''\n                     END ASC,\n                     CASE(?)\n                     WHEN 2 THEN ContentEntry.title\n                     ELSE ''\n                     END DESC,             \n                     ContentEntry.contentEntryUid) AS _PagingCount\n", true);
    return prepareAndUseStatementAsync(this.caq_1.uan_1, tmp, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda_0(this.daq_1, this.eaq_1, this.faq_1, this.gaq_1, this.haq_1, this.iaq_1, null), $completion);
  };
  function ContentEntryDao_JdbcImpl$getContentFromMyCourses$1(this$0, $accountPersonUid) {
    this.qaq_1 = this$0;
    this.raq_1 = $accountPersonUid;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['ContentEntry', 'CourseBlock', 'ClazzEnrolment', 'ContentEntryPicture2', 'StatementEntity', 'ContentEntryParentChildJoin'];
    DoorLimitOffsetPagingSource.call(this, this$0.uan_1, tmp$ret$2);
  }
  protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$1).jaq = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM (\n        WITH IncludeResults(includeResults) AS (SELECT 1)\n        \n        SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n               \n               CAST(? AS BIGINT) AS sPersonUid,\n               0 AS sCbUid,\n               \n                   (SELECT MAX(StatementEntity.extensionProgress)\n                     FROM StatementEntity\n                    WHERE (SELECT includeResults FROM IncludeResults) = 1\n                      AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                      AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                      AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                   ) AS sProgress,\n                   (SELECT CASE\n                       -- If a successful completion statement exists, then count as success\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1    \n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n    )))\n                            THEN 1\n                       -- Else if no success record exists, however a fail record exists, mark as failed\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n    )))\n                            THEN 0\n                            \n                       ELSE NULL\n                       END                    \n                   ) AS sIsSuccess,\n                   (SELECT EXISTS(\n                           SELECT 1\n                             FROM StatementEntity\n                            WHERE (SELECT includeResults FROM IncludeResults) = 1\n                              AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                              AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                              AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                   ) AS sIsCompleted,\n                   (SELECT MAX(StatementEntity.resultScoreScaled)\n                      FROM StatementEntity\n                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                   ) AS sScoreScaled\n    \n    \n          FROM CourseBlock\n               JOIN ContentEntry \n                    ON CourseBlock.cbType = 104\n                       AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n                       AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n               LEFT JOIN ContentEntryParentChildJoin\n                         ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n               LEFT JOIN ContentEntryPicture2\n                         ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid          \n         WHERE CourseBlock.cbClazzUid IN\n               (SELECT ClazzEnrolment.clazzEnrolmentClazzUid\n                  FROM ClazzEnrolment\n                 WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT))\n    ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n        WITH IncludeResults(includeResults) AS (SELECT 1)\n        \n        SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n               \n               ? AS sPersonUid,\n               0 AS sCbUid,\n               \n                   (SELECT MAX(StatementEntity.extensionProgress)\n                     FROM StatementEntity\n                    WHERE (SELECT includeResults FROM IncludeResults) = 1\n                      AND StatementEntity.statementActorPersonUid = ?\n                      AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                      AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                   ) AS sProgress,\n                   (SELECT CASE\n                       -- If a successful completion statement exists, then count as success\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = ?\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1    \n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n    )))\n                            THEN 1\n                       -- Else if no success record exists, however a fail record exists, mark as failed\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = ?\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n    )))\n                            THEN 0\n                            \n                       ELSE NULL\n                       END                    \n                   ) AS sIsSuccess,\n                   (SELECT EXISTS(\n                           SELECT 1\n                             FROM StatementEntity\n                            WHERE (SELECT includeResults FROM IncludeResults) = 1\n                              AND StatementEntity.statementActorPersonUid = ?\n                              AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                              AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                   ) AS sIsCompleted,\n                   (SELECT MAX(StatementEntity.resultScoreScaled)\n                      FROM StatementEntity\n                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                       AND StatementEntity.statementActorPersonUid = ?\n                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                   ) AS sScoreScaled\n    \n    \n          FROM CourseBlock\n               JOIN ContentEntry \n                    ON CourseBlock.cbType = 104\n                       AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n                       AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n               LEFT JOIN ContentEntryParentChildJoin\n                         ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n               LEFT JOIN ContentEntryPicture2\n                         ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid          \n         WHERE CourseBlock.cbClazzUid IN\n               (SELECT ClazzEnrolment.clazzEnrolmentClazzUid\n                  FROM ClazzEnrolment\n                 WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?)\n    ) AS _PagingData LIMIT ? OFFSET ?\n', true);
    return prepareAndUseStatementAsync(this.qaq_1.uan_1, tmp, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda_0(this.raq_1, _limit, _offset, null), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$1).j5p = function (_limit, _offset, $completion) {
    return this.jaq(_limit, _offset, $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n        WITH IncludeResults(includeResults) AS (SELECT 1)\n        \n        SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n               \n               CAST(? AS BIGINT) AS sPersonUid,\n               0 AS sCbUid,\n               \n                   (SELECT MAX(StatementEntity.extensionProgress)\n                     FROM StatementEntity\n                    WHERE (SELECT includeResults FROM IncludeResults) = 1\n                      AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                      AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                      AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                   ) AS sProgress,\n                   (SELECT CASE\n                       -- If a successful completion statement exists, then count as success\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1    \n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n    )))\n                            THEN 1\n                       -- Else if no success record exists, however a fail record exists, mark as failed\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n    )))\n                            THEN 0\n                            \n                       ELSE NULL\n                       END                    \n                   ) AS sIsSuccess,\n                   (SELECT EXISTS(\n                           SELECT 1\n                             FROM StatementEntity\n                            WHERE (SELECT includeResults FROM IncludeResults) = 1\n                              AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                              AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                              AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                   ) AS sIsCompleted,\n                   (SELECT MAX(StatementEntity.resultScoreScaled)\n                      FROM StatementEntity\n                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                   ) AS sScoreScaled\n    \n    \n          FROM CourseBlock\n               JOIN ContentEntry \n                    ON CourseBlock.cbType = 104\n                       AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n                       AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n               LEFT JOIN ContentEntryParentChildJoin\n                         ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n               LEFT JOIN ContentEntryPicture2\n                         ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid          \n         WHERE CourseBlock.cbClazzUid IN\n               (SELECT ClazzEnrolment.clazzEnrolmentClazzUid\n                  FROM ClazzEnrolment\n                 WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT))\n    ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n        WITH IncludeResults(includeResults) AS (SELECT 1)\n        \n        SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n               \n               ? AS sPersonUid,\n               0 AS sCbUid,\n               \n                   (SELECT MAX(StatementEntity.extensionProgress)\n                     FROM StatementEntity\n                    WHERE (SELECT includeResults FROM IncludeResults) = 1\n                      AND StatementEntity.statementActorPersonUid = ?\n                      AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                      AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                   ) AS sProgress,\n                   (SELECT CASE\n                       -- If a successful completion statement exists, then count as success\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = ?\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1    \n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n    )))\n                            THEN 1\n                       -- Else if no success record exists, however a fail record exists, mark as failed\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = ?\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n    )))\n                            THEN 0\n                            \n                       ELSE NULL\n                       END                    \n                   ) AS sIsSuccess,\n                   (SELECT EXISTS(\n                           SELECT 1\n                             FROM StatementEntity\n                            WHERE (SELECT includeResults FROM IncludeResults) = 1\n                              AND StatementEntity.statementActorPersonUid = ?\n                              AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                              AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                   ) AS sIsCompleted,\n                   (SELECT MAX(StatementEntity.resultScoreScaled)\n                      FROM StatementEntity\n                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                       AND StatementEntity.statementActorPersonUid = ?\n                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                   ) AS sScoreScaled\n    \n    \n          FROM CourseBlock\n               JOIN ContentEntry \n                    ON CourseBlock.cbType = 104\n                       AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n                       AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n               LEFT JOIN ContentEntryParentChildJoin\n                         ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n               LEFT JOIN ContentEntryPicture2\n                         ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid          \n         WHERE CourseBlock.cbClazzUid IN\n               (SELECT ClazzEnrolment.clazzEnrolmentClazzUid\n                  FROM ClazzEnrolment\n                 WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?)\n    ) AS _PagingCount\n', true);
    return prepareAndUseStatementAsync(this.qaq_1.uan_1, tmp, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda_0(this.raq_1, null), $completion);
  };
  function ContentEntryDao_JdbcImpl$getContentByOwner$1(this$0, $accountPersonUid) {
    this.yaq_1 = this$0;
    this.zaq_1 = $accountPersonUid;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['ContentEntry', 'ContentEntryPicture2', 'StatementEntity', 'ContentEntryParentChildJoin'];
    DoorLimitOffsetPagingSource.call(this, this$0.uan_1, tmp$ret$2);
  }
  protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$1).jaq = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM (\n        WITH IncludeResults(includeResults) AS (SELECT 1)\n        \n        SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*, \n               \n               CAST(? AS BIGINT) AS sPersonUid,\n               0 AS sCbUid,\n               \n                   (SELECT MAX(StatementEntity.extensionProgress)\n                     FROM StatementEntity\n                    WHERE (SELECT includeResults FROM IncludeResults) = 1\n                      AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                      AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                      AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                   ) AS sProgress,\n                   (SELECT CASE\n                       -- If a successful completion statement exists, then count as success\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1    \n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n    )))\n                            THEN 1\n                       -- Else if no success record exists, however a fail record exists, mark as failed\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n    )))\n                            THEN 0\n                            \n                       ELSE NULL\n                       END                    \n                   ) AS sIsSuccess,\n                   (SELECT EXISTS(\n                           SELECT 1\n                             FROM StatementEntity\n                            WHERE (SELECT includeResults FROM IncludeResults) = 1\n                              AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                              AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                              AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                   ) AS sIsCompleted,\n                   (SELECT MAX(StatementEntity.resultScoreScaled)\n                      FROM StatementEntity\n                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                   ) AS sScoreScaled\n    \n    \n          FROM ContentEntry\n               LEFT JOIN ContentEntryParentChildJoin\n                         ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n               LEFT JOIN ContentEntryPicture2\n                         ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n         WHERE ContentEntry.contentOwner = CAST(? AS BIGINT)\n    ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n        WITH IncludeResults(includeResults) AS (SELECT 1)\n        \n        SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*, \n               \n               ? AS sPersonUid,\n               0 AS sCbUid,\n               \n                   (SELECT MAX(StatementEntity.extensionProgress)\n                     FROM StatementEntity\n                    WHERE (SELECT includeResults FROM IncludeResults) = 1\n                      AND StatementEntity.statementActorPersonUid = ?\n                      AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                      AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                   ) AS sProgress,\n                   (SELECT CASE\n                       -- If a successful completion statement exists, then count as success\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = ?\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1    \n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n    )))\n                            THEN 1\n                       -- Else if no success record exists, however a fail record exists, mark as failed\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = ?\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n    )))\n                            THEN 0\n                            \n                       ELSE NULL\n                       END                    \n                   ) AS sIsSuccess,\n                   (SELECT EXISTS(\n                           SELECT 1\n                             FROM StatementEntity\n                            WHERE (SELECT includeResults FROM IncludeResults) = 1\n                              AND StatementEntity.statementActorPersonUid = ?\n                              AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                              AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                   ) AS sIsCompleted,\n                   (SELECT MAX(StatementEntity.resultScoreScaled)\n                      FROM StatementEntity\n                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                       AND StatementEntity.statementActorPersonUid = ?\n                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                   ) AS sScoreScaled\n    \n    \n          FROM ContentEntry\n               LEFT JOIN ContentEntryParentChildJoin\n                         ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n               LEFT JOIN ContentEntryPicture2\n                         ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n         WHERE ContentEntry.contentOwner = ?\n    ) AS _PagingData LIMIT ? OFFSET ?\n', true);
    return prepareAndUseStatementAsync(this.yaq_1.uan_1, tmp, ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda_0(this.zaq_1, _limit, _offset, null), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$1).j5p = function (_limit, _offset, $completion) {
    return this.jaq(_limit, _offset, $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n        WITH IncludeResults(includeResults) AS (SELECT 1)\n        \n        SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*, \n               \n               CAST(? AS BIGINT) AS sPersonUid,\n               0 AS sCbUid,\n               \n                   (SELECT MAX(StatementEntity.extensionProgress)\n                     FROM StatementEntity\n                    WHERE (SELECT includeResults FROM IncludeResults) = 1\n                      AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                      AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                      AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                   ) AS sProgress,\n                   (SELECT CASE\n                       -- If a successful completion statement exists, then count as success\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1    \n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n    )))\n                            THEN 1\n                       -- Else if no success record exists, however a fail record exists, mark as failed\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n    )))\n                            THEN 0\n                            \n                       ELSE NULL\n                       END                    \n                   ) AS sIsSuccess,\n                   (SELECT EXISTS(\n                           SELECT 1\n                             FROM StatementEntity\n                            WHERE (SELECT includeResults FROM IncludeResults) = 1\n                              AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                              AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                              AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                   ) AS sIsCompleted,\n                   (SELECT MAX(StatementEntity.resultScoreScaled)\n                      FROM StatementEntity\n                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                       AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                   ) AS sScoreScaled\n    \n    \n          FROM ContentEntry\n               LEFT JOIN ContentEntryParentChildJoin\n                         ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n               LEFT JOIN ContentEntryPicture2\n                         ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n         WHERE ContentEntry.contentOwner = CAST(? AS BIGINT)\n    ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n        WITH IncludeResults(includeResults) AS (SELECT 1)\n        \n        SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*, \n               \n               ? AS sPersonUid,\n               0 AS sCbUid,\n               \n                   (SELECT MAX(StatementEntity.extensionProgress)\n                     FROM StatementEntity\n                    WHERE (SELECT includeResults FROM IncludeResults) = 1\n                      AND StatementEntity.statementActorPersonUid = ?\n                      AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                      AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                   ) AS sProgress,\n                   (SELECT CASE\n                       -- If a successful completion statement exists, then count as success\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = ?\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1    \n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n    )))\n                            THEN 1\n                       -- Else if no success record exists, however a fail record exists, mark as failed\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = ?\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n    )))\n                            THEN 0\n                            \n                       ELSE NULL\n                       END                    \n                   ) AS sIsSuccess,\n                   (SELECT EXISTS(\n                           SELECT 1\n                             FROM StatementEntity\n                            WHERE (SELECT includeResults FROM IncludeResults) = 1\n                              AND StatementEntity.statementActorPersonUid = ?\n                              AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                              AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                   ) AS sIsCompleted,\n                   (SELECT MAX(StatementEntity.resultScoreScaled)\n                      FROM StatementEntity\n                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                       AND StatementEntity.statementActorPersonUid = ?\n                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                   ) AS sScoreScaled\n    \n    \n          FROM ContentEntry\n               LEFT JOIN ContentEntryParentChildJoin\n                         ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n               LEFT JOIN ContentEntryPicture2\n                         ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n         WHERE ContentEntry.contentOwner = ?\n    ) AS _PagingCount\n', true);
    return prepareAndUseStatementAsync(this.yaq_1.uan_1, tmp, ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda_0(this.zaq_1, null), $completion);
  };
  function $insertAsyncCOROUTINE$98(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.iar_1 = _this__u8e3s4;
    this.jar_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$98).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.iar_1.van_1.j5g(this.jar_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentEntryDao_JdbcImpl(_db) {
    ContentEntryDao.call(this);
    this.uan_1 = _db;
    var tmp = this;
    tmp.van_1 = new ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1(this);
    var tmp_0 = this;
    tmp_0.wan_1 = new ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1(this);
  }
  protoOf(ContentEntryDao_JdbcImpl).jag = function (entity, $completion) {
    return this.wan_1.i5g(entity, $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl).sai = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$98(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.sai(entity instanceof ContentEntry ? entity : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl).kag = function (entryUid, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM ContentEntry WHERE contentEntryUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM ContentEntry WHERE contentEntryUid = ?\n', true);
    return prepareAndUseStatementAsync(this.uan_1, tmp, ContentEntryDao_JdbcImpl$findByUidAsync$slambda_0(entryUid, null), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl).lag = function (uid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT ContentEntry.*, ContentEntryPicture2.*\n          FROM ContentEntry\n               LEFT JOIN ContentEntryPicture2 \n                         ON ContentEntryPicture2.cepUid = CAST(? AS BIGINT)\n         WHERE ContentEntry.contentEntryUid = CAST(? AS BIGINT)                \n    ', VOID, VOID, VOID, '\n        SELECT ContentEntry.*, ContentEntryPicture2.*\n          FROM ContentEntry\n               LEFT JOIN ContentEntryPicture2 \n                         ON ContentEntryPicture2.cepUid = ?\n         WHERE ContentEntry.contentEntryUid = ?                \n    \n', true);
    return prepareAndUseStatementAsync(this.uan_1, tmp, ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda_0(uid, null), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl).mag = function (contentEntryUid, clazzUid, courseBlockUid, accountPersonUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['ContentEntry', 'ContentEntryVersion', 'ContentEntryPicture2', 'CourseBlock', 'ClazzEnrolment', 'StatementEntity'];
    return doorFlow(this.uan_1, tmp, ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda_0(this, clazzUid, accountPersonUid, courseBlockUid, contentEntryUid, null));
  };
  protoOf(ContentEntryDao_JdbcImpl).nag = function (entryUid, $completion) {
    var tmp = new PreparedStatementConfig('SELECT title FROM ContentEntry WHERE contentEntryUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT title FROM ContentEntry WHERE contentEntryUid = ?\n', true);
    return prepareAndUseStatementAsync(this.uan_1, tmp, ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda_0(entryUid, null), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl).oag = function (accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted) {
    return new ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1(this, accountPersonUid, parentUid, langParam, categoryParam0, includeDeleted, sortOrder);
  };
  protoOf(ContentEntryDao_JdbcImpl).pag = function (accountPersonUid) {
    return new ContentEntryDao_JdbcImpl$getContentFromMyCourses$1(this, accountPersonUid);
  };
  protoOf(ContentEntryDao_JdbcImpl).qag = function (accountPersonUid) {
    return new ContentEntryDao_JdbcImpl$getContentByOwner$1(this, accountPersonUid);
  };
  function ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ContentEntryDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation) {
    this.sar_1 = this$0;
    this.tar_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_Repo$upsertAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_Repo$upsertAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ContentEntryDao_Repo$upsertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.sar_1.war_1.jag(this.tar_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryDao_Repo$upsertAsync$slambda).y77 = function (completion) {
    return new ContentEntryDao_Repo$upsertAsync$slambda(this.sar_1, this.tar_1, completion);
  };
  function ContentEntryDao_Repo$upsertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new ContentEntryDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ContentEntryDao_Repo$findByUidWithEditDetails$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda(this$0, $contentEntryUid, $clazzUid, $courseBlockUid, $accountPersonUid, resultContinuation) {
    this.jas_1 = this$0;
    this.kas_1 = $contentEntryUid;
    this.las_1 = $clazzUid;
    this.mas_1 = $courseBlockUid;
    this.nas_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.oas_1 = this.jas_1.var_1;
            var tmp_1 = this;
            tmp_1.pas_1 = 'ContentEntryDao/findByContentEntryUidWithDetailsAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.qas_1 = this.jas_1.xar_1;
            var tmp_3 = this;
            tmp_3.ras_1 = this.qas_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.jas_1.var_1.w38(), 'ContentEntryDao/findByContentEntryUidWithDetailsAsFlow');
            doorNodeIdHeader(this_0, this.jas_1.var_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'contentEntryUid', this.jas_1.var_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.kas_1));
            parameter(this_0, 'clazzUid', this.jas_1.var_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.las_1));
            parameter(this_0, 'courseBlockUid', this.jas_1.var_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.mas_1));
            parameter(this_0, 'accountPersonUid', this.jas_1.var_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.nas_1));
            tmp_4.sas_1 = this_0;
            this.sas_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.tas_1 = this.ras_1;
            var tmp_6 = this;
            tmp_6.uas_1 = this.sas_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.uas_1, this.tas_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.vas_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.jas_1.uar_1, this.vas_1, this.jas_1.var_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda$lambda(this.oas_1, this.pas_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda).y77 = function (completion) {
    return new ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda(this.jas_1, this.kas_1, this.las_1, this.mas_1, this.nas_1, completion);
  };
  function ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda_0(this$0, $contentEntryUid, $clazzUid, $courseBlockUid, $accountPersonUid, resultContinuation) {
    var i = new ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda(this$0, $contentEntryUid, $clazzUid, $courseBlockUid, $accountPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ContentEntryDao_Repo$findTitleByUidAsync$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda(this$0, $accountPersonUid, $parentUid, $langParam, $categoryParam0, $sortOrder, $includeDeleted, resultContinuation) {
    this.eat_1 = this$0;
    this.fat_1 = $accountPersonUid;
    this.gat_1 = $parentUid;
    this.hat_1 = $langParam;
    this.iat_1 = $categoryParam0;
    this.jat_1 = $sortOrder;
    this.kat_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda).k85 = function (_pagingParams, $completion) {
    var tmp = this.l85(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda).he = function (p1, $completion) {
    return this.k85(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            var tmp_0 = this;
            tmp_0.nat_1 = this.eat_1.var_1;
            var tmp_1 = this;
            tmp_1.oat_1 = 'ContentEntryDao/getChildrenByParentUidWithCategoryFilterOrderByName';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.pat_1 = this.eat_1.xar_1;
            var tmp_3 = this;
            tmp_3.qat_1 = this.pat_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.eat_1.var_1.w38(), 'ContentEntryDao/getChildrenByParentUidWithCategoryFilterOrderByName');
            doorNodeIdHeader(this_0, this.eat_1.var_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.eat_1.var_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.fat_1));
            parameter(this_0, 'parentUid', this.eat_1.var_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.gat_1));
            parameter(this_0, 'langParam', this.eat_1.var_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.hat_1));
            parameter(this_0, 'categoryParam0', this.eat_1.var_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.iat_1));
            parameter(this_0, 'sortOrder', this.eat_1.var_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.jat_1));
            parameter(this_0, 'includeDeleted', this.eat_1.var_1.w38().k65_1.e45(serializer_2(BooleanCompanionObject_instance), this.kat_1));
            pagingSourceLoadParameters(this_0, this.eat_1.var_1.w38().k65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.lat_1);
            tmp_4.rat_1 = this_0;
            this.rat_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.sat_1 = this.qat_1;
            var tmp_6 = this;
            tmp_6.tat_1 = this.rat_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.tat_1, this.sat_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.uat_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.eat_1.uar_1, this.uat_1, this.eat_1.var_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.mat_1 = endOfPaginationReached(this.uat_1);
            this.id_1 = 5;
            this.hd_1 = 7;
            continue $sm;
          case 4:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda$lambda(this.nat_1, this.oat_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 5:
            throw this.kd_1;
          case 6:
            this.id_1 = 5;
            if (false) {
              this.hd_1 = 1;
              continue $sm;
            }

            this.hd_1 = 7;
            continue $sm;
          case 7:
            return this.mat_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda).l85 = function (_pagingParams, completion) {
    var i = new ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda(this.eat_1, this.fat_1, this.gat_1, this.hat_1, this.iat_1, this.jat_1, this.kat_1, completion);
    i.lat_1 = _pagingParams;
    return i;
  };
  function ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda_0(this$0, $accountPersonUid, $parentUid, $langParam, $categoryParam0, $sortOrder, $includeDeleted, resultContinuation) {
    var i = new ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda(this$0, $accountPersonUid, $parentUid, $langParam, $categoryParam0, $sortOrder, $includeDeleted, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.k85(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.dau_1 = this$0;
    this.eau_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(ContentEntryDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.dau_1.war_1.insertAsync(this.eau_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new ContentEntryDao_Repo$insertAsync$slambda(this.dau_1, this.eau_1, completion);
  };
  function ContentEntryDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new ContentEntryDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByUidAsyncCOROUTINE$100(_this__u8e3s4, entryUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.nau_1 = _this__u8e3s4;
    this.oau_1 = entryUid;
  }
  protoOf($findByUidAsyncCOROUTINE$100).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.nau_1.war_1.kag(this.oau_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $findByUidWithEditDetailsCOROUTINE$102(_this__u8e3s4, uid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.xau_1 = _this__u8e3s4;
    this.yau_1 = uid;
  }
  protoOf($findByUidWithEditDetailsCOROUTINE$102).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.zau_1 = this.xau_1.var_1;
            var tmp_1 = this;
            tmp_1.aav_1 = 'ContentEntryDao/findByUidWithEditDetails';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.bav_1 = this.xau_1.xar_1;
            var tmp_3 = this;
            tmp_3.cav_1 = this.bav_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.xau_1.var_1.w38(), 'ContentEntryDao/findByUidWithEditDetails');
            doorNodeIdHeader(this_0, this.xau_1.var_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.xau_1.var_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.yau_1));
            tmp_4.dav_1 = this_0;
            this.dav_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.eav_1 = this.cav_1;
            var tmp_6 = this;
            tmp_6.fav_1 = this.dav_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.fav_1, this.eav_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.gav_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.xau_1.uar_1, this.gav_1, this.xau_1.var_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.hav_1 = this.kd_1;
              Napier_getInstance().q5d(this.hav_1, 'DoorLog', ContentEntryDao_Repo$findByUidWithEditDetails$lambda(this.zau_1, this.aav_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.xau_1.war_1.lag(this.yau_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $findTitleByUidAsyncCOROUTINE$103(_this__u8e3s4, entryUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.qav_1 = _this__u8e3s4;
    this.rav_1 = entryUid;
  }
  protoOf($findTitleByUidAsyncCOROUTINE$103).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.sav_1 = this.qav_1.var_1;
            var tmp_1 = this;
            tmp_1.tav_1 = 'ContentEntryDao/findTitleByUidAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.uav_1 = this.qav_1.xar_1;
            var tmp_3 = this;
            tmp_3.vav_1 = this.uav_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.qav_1.var_1.w38(), 'ContentEntryDao/findTitleByUidAsync');
            doorNodeIdHeader(this_0, this.qav_1.var_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'entryUid', this.qav_1.var_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.rav_1));
            tmp_4.wav_1 = this_0;
            this.wav_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.xav_1 = this.vav_1;
            var tmp_6 = this;
            tmp_6.yav_1 = this.wav_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.yav_1, this.xav_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.zav_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.qav_1.uar_1, this.zav_1, this.qav_1.var_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.aaw_1 = this.kd_1;
              Napier_getInstance().q5d(this.aaw_1, 'DoorLog', ContentEntryDao_Repo$findTitleByUidAsync$lambda(this.sav_1, this.tav_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.qav_1.war_1.nag(this.rav_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$112(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.jaw_1 = _this__u8e3s4;
    this.kaw_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$112).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.jaw_1.var_1, 'ContentEntry', ContentEntryDao_Repo$insertAsync$slambda_0(this.jaw_1, this.kaw_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentEntryDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ContentEntryDao.call(this);
    this.uar_1 = _db;
    this.var_1 = _repo;
    this.war_1 = _dao;
    this.xar_1 = _httpClient;
    this.yar_1 = _clientId;
    this.zar_1 = _endpoint;
    this.aas_1 = new RepoDaoFlowHelper(this.var_1);
  }
  protoOf(ContentEntryDao_Repo).jag = function (entity, $completion) {
    return withRepoChangeMonitorAsync(this.var_1, 'ContentEntry', ContentEntryDao_Repo$upsertAsync$slambda_0(this, entity, null), $completion);
  };
  protoOf(ContentEntryDao_Repo).kag = function (entryUid, $completion) {
    var tmp = new $findByUidAsyncCOROUTINE$100(this, entryUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_Repo).lag = function (uid, $completion) {
    var tmp = new $findByUidWithEditDetailsCOROUTINE$102(this, uid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_Repo).mag = function (contentEntryUid, clazzUid, courseBlockUid, accountPersonUid) {
    var tmp = this.war_1.mag(contentEntryUid, clazzUid, courseBlockUid, accountPersonUid);
    return this.aas_1.b67(tmp, ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda_0(this, contentEntryUid, clazzUid, courseBlockUid, accountPersonUid, null));
  };
  protoOf(ContentEntryDao_Repo).nag = function (entryUid, $completion) {
    var tmp = new $findTitleByUidAsyncCOROUTINE$103(this, entryUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_Repo).oag = function (accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted) {
    var tmp = this.war_1.oag(accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted);
    return new DoorRepositoryReplicatePullPagingSource(this.var_1, 'ContentEntryDao/getChildrenByParentUidWithCategoryFilterOrderByName', tmp, ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda_0(this, accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted, null));
  };
  protoOf(ContentEntryDao_Repo).pag = function (accountPersonUid) {
    var _result = this.war_1.pag(accountPersonUid);
    return _result;
  };
  protoOf(ContentEntryDao_Repo).qag = function (accountPersonUid) {
    var _result = this.war_1.qag(accountPersonUid);
    return _result;
  };
  protoOf(ContentEntryDao_Repo).sai = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$112(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_Repo).insertAsync = function (entity, $completion) {
    return this.sai(entity instanceof ContentEntry ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryImportJobDao() {
  }
  function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda$lambda(_result) {
    return mapRows(_result, ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda$lambda$lambda(_result));
  }
  function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_cjiUid = $_result.l5m('cjiUid');
      var _tmp_cjiItemProgress = $_result.l5m('cjiItemProgress');
      var _tmp_cjiItemTotal = $_result.l5m('cjiItemTotal');
      var _tmp_cjiStatus = $_result.k5m('cjiStatus');
      var _tmp_cjiError = $_result.rz('cjiError');
      var _tmp_cjiOwnerPersonUid = $_result.l5m('cjiOwnerPersonUid');
      // Inline function 'kotlin.apply' call
      var this_0 = new ContentEntryImportJobProgress();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ContentEntryImportJobDao_JdbcImpl.findInProgressJobsByContentEntryUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.maw_1 = _tmp_cjiUid;
      this_0.naw_1 = _tmp_cjiItemProgress;
      this_0.oaw_1 = _tmp_cjiItemTotal;
      this_0.paw_1 = _tmp_cjiStatus;
      this_0.qaw_1 = _tmp_cjiError;
      this_0.raw_1 = _tmp_cjiOwnerPersonUid;
      return this_0;
    };
  }
  function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda($contentEntryUid, resultContinuation) {
    this.aax_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda).cax = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda).he = function (p1, $completion) {
    return this.cax((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.bax_1.i5h(1, this.aax_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.bax_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda(this.aax_1, completion);
    i.bax_1 = _stmt;
    return i;
  };
  function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda_0($contentEntryUid, resultContinuation) {
    var i = new ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda($contentEntryUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.cax(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.dax_1);
  }
  protoOf(ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO ContentEntryImportJob (cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1).hax = function (stmt, entity) {
    if (entity.iax_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.iax_1);
    }
    stmt.l5h(2, entity.jax_1);
    stmt.l5h(3, entity.kax_1);
    stmt.i5h(4, entity.lax_1);
    stmt.i5h(5, entity.max_1);
    stmt.i5h(6, entity.nax_1);
    stmt.i5h(7, entity.oax_1);
    stmt.i5h(8, entity.pax_1);
    stmt.h5h(9, entity.qax_1);
    stmt.h5h(10, entity.rax_1);
    stmt.h5h(11, entity.sax_1);
    stmt.i5h(12, entity.tax_1);
    stmt.i5h(13, entity.uax_1);
    stmt.i5h(14, entity.vax_1);
    stmt.v5g(15, entity.wax_1);
    stmt.h5h(16, entity.xax_1);
    stmt.l5h(17, entity.yax_1);
    stmt.v5g(18, entity.zax_1);
    stmt.i5h(19, entity.aay_1);
    stmt.l5h(20, entity.bay_1);
  };
  protoOf(ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1).c5f = function (stmt, entity) {
    return this.hax(stmt, entity instanceof ContentEntryImportJob ? entity : THROW_CCE());
  };
  function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda(this$0, $contentEntryUid, resultContinuation) {
    this.kay_1 = this$0;
    this.lay_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda).may = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda).z77 = function ($completion) {
    return this.may($completion);
  };
  protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT ContentEntryImportJob.cjiUid,\n               ContentEntryImportJob.cjiItemProgress,\n               ContentEntryImportJob.cjiItemTotal,\n               ContentEntryImportJob.cjiStatus,\n               ContentEntryImportJob.cjiError,\n               ContentEntryImportJob.cjiOwnerPersonUid\n          FROM ContentEntryImportJob\n         WHERE ContentEntryImportJob.cjiContentEntryUid = CAST(? AS BIGINT)\n           AND (   ContentEntryImportJob.cjiStatus BETWEEN 4 AND 20\n                OR (ContentEntryImportJob.cjiStatus = 25 AND NOT ContentEntryImportJob.cjiErrorDismissed))\n    ', VOID, VOID, VOID, '\n        SELECT ContentEntryImportJob.cjiUid,\n               ContentEntryImportJob.cjiItemProgress,\n               ContentEntryImportJob.cjiItemTotal,\n               ContentEntryImportJob.cjiStatus,\n               ContentEntryImportJob.cjiError,\n               ContentEntryImportJob.cjiOwnerPersonUid\n          FROM ContentEntryImportJob\n         WHERE ContentEntryImportJob.cjiContentEntryUid = ?\n           AND (   ContentEntryImportJob.cjiStatus BETWEEN 4 AND 20\n                OR (ContentEntryImportJob.cjiStatus = 25 AND NOT ContentEntryImportJob.cjiErrorDismissed))\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.kay_1.dax_1, tmp_0, ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda_0(this.lay_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda).y77 = function (completion) {
    return new ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda(this.kay_1, this.lay_1, completion);
  };
  function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda_0(this$0, $contentEntryUid, resultContinuation) {
    var i = new ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda(this$0, $contentEntryUid, resultContinuation);
    var l = function ($completion) {
      return i.may($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ContentEntryImportJobDao_JdbcImpl(_db) {
    ContentEntryImportJobDao.call(this);
    this.dax_1 = _db;
    var tmp = this;
    tmp.eax_1 = new ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1(this);
  }
  protoOf(ContentEntryImportJobDao_JdbcImpl).law = function (contentEntryUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['ContentEntryImportJob'];
    return doorFlow(this.dax_1, tmp, ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda_0(this, contentEntryUid, null));
  };
  function ContentEntryParentChildJoinDao() {
  }
  function $insertAsyncCOROUTINE$119(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.xay_1 = _this__u8e3s4;
    this.yay_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$119).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.zay_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.xay_1.baz_1));
            if (this.yay_1.pak_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.zay_1.b62(7, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.aaz_1 = suspendResult;
            this.yay_1.pak_1 = this.aaz_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.yay_1.tak_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.xay_1.caz_1.insertAsync(this.yay_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.yay_1.pak_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentEntryParentChildJoinDao_DoorWrapper(_db, _dao) {
    ContentEntryParentChildJoinDao.call(this);
    this.baz_1 = _db;
    this.caz_1 = _dao;
  }
  protoOf(ContentEntryParentChildJoinDao_DoorWrapper).nay = function (contentEntryUid, selectedItems, updateTime, $completion) {
    return this.caz_1.nay(contentEntryUid, selectedItems, updateTime, $completion);
  };
  protoOf(ContentEntryParentChildJoinDao_DoorWrapper).oay = function (selectedUids, isDeleted, updateTime, $completion) {
    return this.caz_1.oay(selectedUids, isDeleted, updateTime, $completion);
  };
  protoOf(ContentEntryParentChildJoinDao_DoorWrapper).daz = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$119(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryParentChildJoinDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.daz(entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.eaz_1);
  }
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO ContentEntryParentChildJoin (cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1).jaz = function (stmt, entity) {
    if (entity.pak_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.pak_1);
    }
    stmt.i5h(2, entity.qak_1);
    stmt.i5h(3, entity.rak_1);
    stmt.h5h(4, entity.sak_1);
    stmt.i5h(5, entity.tak_1);
    stmt.v5g(6, entity.uak_1);
    stmt.i5h(7, entity.mak_1);
    stmt.i5h(8, entity.nak_1);
    stmt.h5h(9, entity.oak_1);
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1).c5f = function (stmt, entity) {
    return this.jaz(stmt, entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE());
  };
  function ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.eaz_1);
  }
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO ContentEntryParentChildJoin (cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1).jaz = function (stmt, entity) {
    if (entity.pak_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.pak_1);
    }
    stmt.i5h(2, entity.qak_1);
    stmt.i5h(3, entity.rak_1);
    stmt.h5h(4, entity.sak_1);
    stmt.i5h(5, entity.tak_1);
    stmt.v5g(6, entity.uak_1);
    stmt.i5h(7, entity.mak_1);
    stmt.i5h(8, entity.nak_1);
    stmt.h5h(9, entity.oak_1);
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1).c5f = function (stmt, entity) {
    return this.jaz(stmt, entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE());
  };
  function ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda($contentEntryUid, $updateTime, $selectedItems, resultContinuation) {
    this.uaz_1 = $contentEntryUid;
    this.vaz_1 = $updateTime;
    this.waz_1 = $selectedItems;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.xaz_1.i5h(1, this.uaz_1);
            this.xaz_1.i5h(2, this.vaz_1);
            var tmp_0 = this.xaz_1.e5g();
            var this_0 = this.waz_1;
            this.xaz_1.m5h(3, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.xaz_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda).z5e = function (_stmt, completion) {
    var i = new ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda(this.uaz_1, this.vaz_1, this.waz_1, completion);
    i.xaz_1 = _stmt;
    return i;
  };
  function ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda_0($contentEntryUid, $updateTime, $selectedItems, resultContinuation) {
    var i = new ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda($contentEntryUid, $updateTime, $selectedItems, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda($isDeleted, $updateTime, $selectedUids, resultContinuation) {
    this.gb0_1 = $isDeleted;
    this.hb0_1 = $updateTime;
    this.ib0_1 = $selectedUids;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.jb0_1.v5g(1, this.gb0_1);
            this.jb0_1.i5h(2, this.hb0_1);
            var tmp_0 = this.jb0_1.e5g();
            var this_0 = this.ib0_1;
            this.jb0_1.m5h(3, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.jb0_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda).z5e = function (_stmt, completion) {
    var i = new ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda(this.gb0_1, this.hb0_1, this.ib0_1, completion);
    i.jb0_1 = _stmt;
    return i;
  };
  function ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda_0($isDeleted, $updateTime, $selectedUids, resultContinuation) {
    var i = new ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda($isDeleted, $updateTime, $selectedUids, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$120(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.sb0_1 = _this__u8e3s4;
    this.tb0_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$120).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.sb0_1.faz_1.j5g(this.tb0_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $moveListOfEntriesToNewParentCOROUTINE$121(_this__u8e3s4, contentEntryUid, selectedItems, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.cb1_1 = _this__u8e3s4;
    this.db1_1 = contentEntryUid;
    this.eb1_1 = selectedItems;
    this.fb1_1 = updateTime;
  }
  protoOf($moveListOfEntriesToNewParentCOROUTINE$121).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE ContentEntryParentChildJoin \n           SET cepcjParentContentEntryUid = CAST(? AS BIGINT), \n               cepcjLct = CAST(? AS BIGINT) \n               WHERE cepcjUid IN (?)\n    ', true, VOID, VOID, '\n        UPDATE ContentEntryParentChildJoin \n           SET cepcjParentContentEntryUid = ?, \n               cepcjLct = ? \n               WHERE cepcjUid IN (?)\n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.cb1_1.eaz_1, tmp_0, ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda_0(this.db1_1, this.fb1_1, this.eb1_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $setEntriesDeletedCOROUTINE$122(_this__u8e3s4, selectedUids, isDeleted, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ob1_1 = _this__u8e3s4;
    this.pb1_1 = selectedUids;
    this.qb1_1 = isDeleted;
    this.rb1_1 = updateTime;
  }
  protoOf($setEntriesDeletedCOROUTINE$122).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE ContentEntryParentChildJoin\n           SET cepcjDeleted = ?,\n               cepcjLct = CAST(? AS BIGINT)\n         WHERE cepcjUid IN (?) \n    ', true, VOID, VOID, '\n        UPDATE ContentEntryParentChildJoin\n           SET cepcjDeleted = ?,\n               cepcjLct = ?\n         WHERE cepcjUid IN (?) \n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.ob1_1.eaz_1, tmp_0, ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda_0(this.qb1_1, this.rb1_1, this.pb1_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentEntryParentChildJoinDao_JdbcImpl(_db) {
    ContentEntryParentChildJoinDao.call(this);
    this.eaz_1 = _db;
    var tmp = this;
    tmp.faz_1 = new ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1(this);
    var tmp_0 = this;
    tmp_0.gaz_1 = new ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1(this);
  }
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl).daz = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$120(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.daz(entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl).nay = function (contentEntryUid, selectedItems, updateTime, $completion) {
    var tmp = new $moveListOfEntriesToNewParentCOROUTINE$121(this, contentEntryUid, selectedItems, updateTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl).oay = function (selectedUids, isDeleted, updateTime, $completion) {
    var tmp = new $setEntriesDeletedCOROUTINE$122(this, selectedUids, isDeleted, updateTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda(this$0, $contentEntryUid, $selectedItems, $updateTime, resultContinuation) {
    this.ab2_1 = this$0;
    this.bb2_1 = $contentEntryUid;
    this.cb2_1 = $selectedItems;
    this.db2_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.ab2_1.gb2_1.nay(this.bb2_1, this.cb2_1, this.db2_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda).y77 = function (completion) {
    return new ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda(this.ab2_1, this.bb2_1, this.cb2_1, this.db2_1, completion);
  };
  function ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda_0(this$0, $contentEntryUid, $selectedItems, $updateTime, resultContinuation) {
    var i = new ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda(this$0, $contentEntryUid, $selectedItems, $updateTime, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda(this$0, $selectedUids, $isDeleted, $updateTime, resultContinuation) {
    this.sb2_1 = this$0;
    this.tb2_1 = $selectedUids;
    this.ub2_1 = $isDeleted;
    this.vb2_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.sb2_1.gb2_1.oay(this.tb2_1, this.ub2_1, this.vb2_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda).y77 = function (completion) {
    return new ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda(this.sb2_1, this.tb2_1, this.ub2_1, this.vb2_1, completion);
  };
  function ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda_0(this$0, $selectedUids, $isDeleted, $updateTime, resultContinuation) {
    var i = new ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda(this$0, $selectedUids, $isDeleted, $updateTime, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ContentEntryParentChildJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.eb3_1 = this$0;
    this.fb3_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryParentChildJoinDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryParentChildJoinDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(ContentEntryParentChildJoinDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.eb3_1.gb2_1.insertAsync(this.fb3_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryParentChildJoinDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new ContentEntryParentChildJoinDao_Repo$insertAsync$slambda(this.eb3_1, this.fb3_1, completion);
  };
  function ContentEntryParentChildJoinDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new ContentEntryParentChildJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$126(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ob3_1 = _this__u8e3s4;
    this.pb3_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$126).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.ob3_1.fb2_1, 'ContentEntryParentChildJoin', ContentEntryParentChildJoinDao_Repo$insertAsync$slambda_0(this.ob3_1, this.pb3_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentEntryParentChildJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ContentEntryParentChildJoinDao.call(this);
    this.eb2_1 = _db;
    this.fb2_1 = _repo;
    this.gb2_1 = _dao;
    this.hb2_1 = _httpClient;
    this.ib2_1 = _clientId;
    this.jb2_1 = _endpoint;
  }
  protoOf(ContentEntryParentChildJoinDao_Repo).nay = function (contentEntryUid, selectedItems, updateTime, $completion) {
    return withRepoChangeMonitorAsync(this.fb2_1, 'ContentEntryParentChildJoin', ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda_0(this, contentEntryUid, selectedItems, updateTime, null), $completion);
  };
  protoOf(ContentEntryParentChildJoinDao_Repo).oay = function (selectedUids, isDeleted, updateTime, $completion) {
    return withRepoChangeMonitorAsync(this.fb2_1, 'ContentEntryParentChildJoin', ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda_0(this, selectedUids, isDeleted, updateTime, null), $completion);
  };
  protoOf(ContentEntryParentChildJoinDao_Repo).daz = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$126(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryParentChildJoinDao_Repo).insertAsync = function (entity, $completion) {
    return this.daz(entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryPicture2Dao() {
  }
  function ContentEntryPicture2Dao_DoorWrapper(_db, _dao) {
    ContentEntryPicture2Dao.call(this);
    this.sb3_1 = _db;
    this.tb3_1 = _dao;
  }
  protoOf(ContentEntryPicture2Dao_DoorWrapper).qb3 = function (entities, $completion) {
    // Inline function 'kotlin.collections.mutableListOf' call
    var _generatedPks = ArrayList_init_$Create$();
    // Inline function 'kotlin.collections.forEach' call
    // Inline function 'kotlin.collections.iterator' call
    var tmp0_iterator = entities.w();
    while (tmp0_iterator.f()) {
      var element = tmp0_iterator.e();
      // Inline function 'com.ustadmobile.core.db.dao.ContentEntryPicture2Dao_DoorWrapper.upsertListAsync.<anonymous>' call
      element.wai_1 = systemTimeInMillis();
    }
    return this.tb3_1.qb3(entities, $completion);
  };
  protoOf(ContentEntryPicture2Dao_DoorWrapper).rb3 = function (uid, uri, thumbnailUri, time, $completion) {
    return this.tb3_1.rb3(uid, uri, thumbnailUri, time, $completion);
  };
  function ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ub3_1);
  }
  protoOf(ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO ContentEntryPicture2 (cepUid, cepLct, cepPictureUri, cepThumbnailUri) VALUES(?, ?, ?, ?)';
  };
  protoOf(ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1).yb3 = function (stmt, entity) {
    stmt.i5h(1, entity.vai_1);
    stmt.i5h(2, entity.wai_1);
    stmt.l5h(3, entity.xai_1);
    stmt.l5h(4, entity.yai_1);
  };
  protoOf(ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1).c5f = function (stmt, entity) {
    return this.yb3(stmt, entity instanceof ContentEntryPicture2 ? entity : THROW_CCE());
  };
  function ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation) {
    this.hb4_1 = $uri;
    this.ib4_1 = $thumbnailUri;
    this.jb4_1 = $time;
    this.kb4_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.lb4_1.l5h(1, this.hb4_1);
            this.lb4_1.l5h(2, this.ib4_1);
            this.lb4_1.i5h(3, this.jb4_1);
            this.lb4_1.i5h(4, this.kb4_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.lb4_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda).z5e = function (_stmt, completion) {
    var i = new ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda(this.hb4_1, this.ib4_1, this.jb4_1, this.kb4_1, completion);
    i.lb4_1 = _stmt;
    return i;
  };
  function ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda_0($uri, $thumbnailUri, $time, $uid, resultContinuation) {
    var i = new ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $updateUriCOROUTINE$127(_this__u8e3s4, uid, uri, thumbnailUri, time, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ub4_1 = _this__u8e3s4;
    this.vb4_1 = uid;
    this.wb4_1 = uri;
    this.xb4_1 = thumbnailUri;
    this.yb4_1 = time;
  }
  protoOf($updateUriCOROUTINE$127).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE ContentEntryPicture2\n           SET cepPictureUri = ?,\n               cepThumbnailUri = ?,\n               cepLct = CAST(? AS BIGINT)\n         WHERE cepUid = CAST(? AS BIGINT)  \n    ', VOID, VOID, VOID, '\n        UPDATE ContentEntryPicture2\n           SET cepPictureUri = ?,\n               cepThumbnailUri = ?,\n               cepLct = ?\n         WHERE cepUid = ?  \n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.ub4_1.ub3_1, tmp_0, ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda_0(this.wb4_1, this.xb4_1, this.yb4_1, this.vb4_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentEntryPicture2Dao_JdbcImpl(_db) {
    ContentEntryPicture2Dao.call(this);
    this.ub3_1 = _db;
    var tmp = this;
    tmp.vb3_1 = new ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1(this);
  }
  protoOf(ContentEntryPicture2Dao_JdbcImpl).qb3 = function (entities, $completion) {
    return this.vb3_1.m5g(entities, $completion);
  };
  protoOf(ContentEntryPicture2Dao_JdbcImpl).rb3 = function (uid, uri, thumbnailUri, time, $completion) {
    var tmp = new $updateUriCOROUTINE$127(this, uid, uri, thumbnailUri, time, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function ContentEntryPicture2Dao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) {
    this.hb5_1 = this$0;
    this.ib5_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryPicture2Dao_Repo$upsertListAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryPicture2Dao_Repo$upsertListAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ContentEntryPicture2Dao_Repo$upsertListAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.hb5_1.lb5_1.qb3(this.ib5_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryPicture2Dao_Repo$upsertListAsync$slambda).y77 = function (completion) {
    return new ContentEntryPicture2Dao_Repo$upsertListAsync$slambda(this.hb5_1, this.ib5_1, completion);
  };
  function ContentEntryPicture2Dao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) {
    var i = new ContentEntryPicture2Dao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ContentEntryPicture2Dao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) {
    this.xb5_1 = this$0;
    this.yb5_1 = $uid;
    this.zb5_1 = $uri;
    this.ab6_1 = $thumbnailUri;
    this.bb6_1 = $time;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryPicture2Dao_Repo$updateUri$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryPicture2Dao_Repo$updateUri$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ContentEntryPicture2Dao_Repo$updateUri$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.xb5_1.lb5_1.rb3(this.yb5_1, this.zb5_1, this.ab6_1, this.bb6_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryPicture2Dao_Repo$updateUri$slambda).y77 = function (completion) {
    return new ContentEntryPicture2Dao_Repo$updateUri$slambda(this.xb5_1, this.yb5_1, this.zb5_1, this.ab6_1, this.bb6_1, completion);
  };
  function ContentEntryPicture2Dao_Repo$updateUri$slambda_0(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) {
    var i = new ContentEntryPicture2Dao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ContentEntryPicture2Dao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ContentEntryPicture2Dao.call(this);
    this.jb5_1 = _db;
    this.kb5_1 = _repo;
    this.lb5_1 = _dao;
    this.mb5_1 = _httpClient;
    this.nb5_1 = _clientId;
    this.ob5_1 = _endpoint;
  }
  protoOf(ContentEntryPicture2Dao_Repo).qb3 = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.kb5_1, 'ContentEntryPicture2', ContentEntryPicture2Dao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(ContentEntryPicture2Dao_Repo).rb3 = function (uid, uri, thumbnailUri, time, $completion) {
    return withRepoChangeMonitorAsync(this.kb5_1, 'ContentEntryPicture2', ContentEntryPicture2Dao_Repo$updateUri$slambda_0(this, uid, uri, thumbnailUri, time, null), $completion);
  };
  function ContentEntryPictureDao() {
  }
  function $insertAsyncCOROUTINE$128(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.kb6_1 = _this__u8e3s4;
    this.lb6_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$128).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.mb6_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.kb6_1.ob6_1));
            if (this.lb6_1.qb6_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.mb6_1.b62(138, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.nb6_1 = suspendResult;
            this.lb6_1.qb6_1 = this.nb6_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.lb6_1.vb6_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.kb6_1.pb6_1.insertAsync(this.lb6_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.lb6_1.qb6_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentEntryPictureDao_DoorWrapper(_db, _dao) {
    ContentEntryPictureDao.call(this);
    this.ob6_1 = _db;
    this.pb6_1 = _dao;
  }
  protoOf(ContentEntryPictureDao_DoorWrapper).yb6 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$128(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryPictureDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.yb6(entity instanceof ContentEntryPicture ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.zb6_1);
  }
  protoOf(ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO ContentEntryPicture (cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1).db7 = function (stmt, entity) {
    if (entity.qb6_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.qb6_1);
    }
    stmt.i5h(2, entity.rb6_1);
    stmt.l5h(3, entity.sb6_1);
    stmt.l5h(4, entity.tb6_1);
    stmt.h5h(5, entity.ub6_1);
    stmt.i5h(6, entity.vb6_1);
    stmt.l5h(7, entity.wb6_1);
    stmt.v5g(8, entity.xb6_1);
  };
  protoOf(ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1).c5f = function (stmt, entity) {
    return this.db7(stmt, entity instanceof ContentEntryPicture ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$129(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.mb7_1 = _this__u8e3s4;
    this.nb7_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$129).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.mb7_1.ab7_1.j5g(this.nb7_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentEntryPictureDao_JdbcImpl(_db) {
    ContentEntryPictureDao.call(this);
    this.zb6_1 = _db;
    var tmp = this;
    tmp.ab7_1 = new ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1(this);
  }
  protoOf(ContentEntryPictureDao_JdbcImpl).yb6 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$129(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryPictureDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.yb6(entity instanceof ContentEntryPicture ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryPictureDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.wb7_1 = this$0;
    this.xb7_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryPictureDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryPictureDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(ContentEntryPictureDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.wb7_1.ab8_1.insertAsync(this.xb7_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryPictureDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new ContentEntryPictureDao_Repo$insertAsync$slambda(this.wb7_1, this.xb7_1, completion);
  };
  function ContentEntryPictureDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new ContentEntryPictureDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$132(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.mb8_1 = _this__u8e3s4;
    this.nb8_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$132).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.mb8_1.zb7_1, 'ContentEntryPicture', ContentEntryPictureDao_Repo$insertAsync$slambda_0(this.mb8_1, this.nb8_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentEntryPictureDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ContentEntryPictureDao.call(this);
    this.yb7_1 = _db;
    this.zb7_1 = _repo;
    this.ab8_1 = _dao;
    this.bb8_1 = _httpClient;
    this.cb8_1 = _clientId;
    this.db8_1 = _endpoint;
  }
  protoOf(ContentEntryPictureDao_Repo).yb6 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$132(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryPictureDao_Repo).insertAsync = function (entity, $completion) {
    return this.yb6(entity instanceof ContentEntryPicture ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryRelatedEntryJoinDao() {
  }
  function $insertAsyncCOROUTINE$133(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.wb8_1 = _this__u8e3s4;
    this.xb8_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$133).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.yb8_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.wb8_1.ab9_1));
            if (this.xb8_1.cb9_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.yb8_1.b62(8, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.zb8_1 = suspendResult;
            this.xb8_1.cb9_1 = this.zb8_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.xb8_1.lb9_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.wb8_1.bb9_1.insertAsync(this.xb8_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.xb8_1.cb9_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentEntryRelatedEntryJoinDao_DoorWrapper(_db, _dao) {
    ContentEntryRelatedEntryJoinDao.call(this);
    this.ab9_1 = _db;
    this.bb9_1 = _dao;
  }
  protoOf(ContentEntryRelatedEntryJoinDao_DoorWrapper).mb9 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$133(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryRelatedEntryJoinDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.mb9(entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.nb9_1);
  }
  protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO ContentEntryRelatedEntryJoin (cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1).rb9 = function (stmt, entity) {
    if (entity.cb9_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.cb9_1);
    }
    stmt.i5h(2, entity.db9_1);
    stmt.i5h(3, entity.eb9_1);
    stmt.h5h(4, entity.fb9_1);
    stmt.h5h(5, entity.gb9_1);
    stmt.l5h(6, entity.hb9_1);
    stmt.i5h(7, entity.ib9_1);
    stmt.i5h(8, entity.jb9_1);
    stmt.i5h(9, entity.kb9_1);
    stmt.i5h(10, entity.lb9_1);
  };
  protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1).c5f = function (stmt, entity) {
    return this.rb9(stmt, entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$134(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.aba_1 = _this__u8e3s4;
    this.bba_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$134).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.aba_1.ob9_1.j5g(this.bba_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentEntryRelatedEntryJoinDao_JdbcImpl(_db) {
    ContentEntryRelatedEntryJoinDao.call(this);
    this.nb9_1 = _db;
    var tmp = this;
    tmp.ob9_1 = new ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1(this);
  }
  protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).mb9 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$134(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.mb9(entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.kba_1 = this$0;
    this.lba_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.kba_1.oba_1.insertAsync(this.lba_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda(this.kba_1, this.lba_1, completion);
  };
  function ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$136(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.abb_1 = _this__u8e3s4;
    this.bbb_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$136).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.abb_1.nba_1, 'ContentEntryRelatedEntryJoin', ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda_0(this.abb_1, this.bbb_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentEntryRelatedEntryJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ContentEntryRelatedEntryJoinDao.call(this);
    this.mba_1 = _db;
    this.nba_1 = _repo;
    this.oba_1 = _dao;
    this.pba_1 = _httpClient;
    this.qba_1 = _clientId;
    this.rba_1 = _endpoint;
  }
  protoOf(ContentEntryRelatedEntryJoinDao_Repo).mb9 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$136(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryRelatedEntryJoinDao_Repo).insertAsync = function (entity, $completion) {
    return this.mb9(entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryVersionDao() {
  }
  function ContentEntryVersionDao_DoorWrapper(_db, _dao) {
    ContentEntryVersionDao.call(this);
    this.gbb_1 = _db;
    this.hbb_1 = _dao;
  }
  protoOf(ContentEntryVersionDao_DoorWrapper).cbb = function (cevUid, $completion) {
    return this.hbb_1.cbb(cevUid, $completion);
  };
  protoOf(ContentEntryVersionDao_DoorWrapper).dbb = function (contentEntryUid, $completion) {
    return this.hbb_1.dbb(contentEntryUid, $completion);
  };
  protoOf(ContentEntryVersionDao_DoorWrapper).ebb = function (contentEntryUid) {
    return this.hbb_1.ebb(contentEntryUid);
  };
  protoOf(ContentEntryVersionDao_DoorWrapper).fbb = function (entityUid, transferJobItemUid, $completion) {
    return this.hbb_1.fbb(entityUid, transferJobItemUid, $completion);
  };
  function ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) {
    return mapNextRow(_result, null, ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result));
  }
  function ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_cevUid = $_result.l5m('cevUid');
      var _tmp_cevContentEntryUid = $_result.l5m('cevContentEntryUid');
      var _tmp_cevOpenUri = $_result.rz('cevOpenUri');
      var _tmp_cevContentType = $_result.rz('cevContentType');
      var _tmp_cevManifestUrl = $_result.rz('cevManifestUrl');
      var _tmp_cevSize = $_result.l5m('cevSize');
      var _tmp_cevInActive = $_result.w65('cevInActive');
      var _tmp_cevLastModified = $_result.l5m('cevLastModified');
      var _tmp_cevLct = $_result.l5m('cevLct');
      var _tmp_cevStorageSize = $_result.l5m('cevStorageSize');
      var _tmp_cevOriginalSize = $_result.l5m('cevOriginalSize');
      // Inline function 'kotlin.apply' call
      var this_0 = new ContentEntryVersion();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ContentEntryVersionDao_JdbcImpl.findByUidAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.daj_1 = _tmp_cevUid;
      this_0.eaj_1 = _tmp_cevContentEntryUid;
      this_0.faj_1 = _tmp_cevOpenUri;
      this_0.gaj_1 = _tmp_cevContentType;
      this_0.haj_1 = _tmp_cevManifestUrl;
      this_0.iaj_1 = _tmp_cevSize;
      this_0.jaj_1 = _tmp_cevInActive;
      this_0.kaj_1 = _tmp_cevLastModified;
      this_0.laj_1 = _tmp_cevLct;
      this_0.maj_1 = _tmp_cevStorageSize;
      this_0.naj_1 = _tmp_cevOriginalSize;
      return this_0;
    };
  }
  function ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda$lambda(_result) {
    return mapNextRow(_result, null, ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda$lambda$lambda(_result));
  }
  function ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_cevUid = $_result.l5m('cevUid');
      var _tmp_cevContentEntryUid = $_result.l5m('cevContentEntryUid');
      var _tmp_cevOpenUri = $_result.rz('cevOpenUri');
      var _tmp_cevContentType = $_result.rz('cevContentType');
      var _tmp_cevManifestUrl = $_result.rz('cevManifestUrl');
      var _tmp_cevSize = $_result.l5m('cevSize');
      var _tmp_cevInActive = $_result.w65('cevInActive');
      var _tmp_cevLastModified = $_result.l5m('cevLastModified');
      var _tmp_cevLct = $_result.l5m('cevLct');
      var _tmp_cevStorageSize = $_result.l5m('cevStorageSize');
      var _tmp_cevOriginalSize = $_result.l5m('cevOriginalSize');
      // Inline function 'kotlin.apply' call
      var this_0 = new ContentEntryVersion();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ContentEntryVersionDao_JdbcImpl.findLatestVersionUidByContentEntryUidEntity.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.daj_1 = _tmp_cevUid;
      this_0.eaj_1 = _tmp_cevContentEntryUid;
      this_0.faj_1 = _tmp_cevOpenUri;
      this_0.gaj_1 = _tmp_cevContentType;
      this_0.haj_1 = _tmp_cevManifestUrl;
      this_0.iaj_1 = _tmp_cevSize;
      this_0.jaj_1 = _tmp_cevInActive;
      this_0.kaj_1 = _tmp_cevLastModified;
      this_0.laj_1 = _tmp_cevLct;
      this_0.maj_1 = _tmp_cevStorageSize;
      this_0.naj_1 = _tmp_cevOriginalSize;
      return this_0;
    };
  }
  function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_cevUid = $_result.l5m('cevUid');
      var _tmp_cevContentEntryUid = $_result.l5m('cevContentEntryUid');
      var _tmp_cevOpenUri = $_result.rz('cevOpenUri');
      var _tmp_cevContentType = $_result.rz('cevContentType');
      var _tmp_cevManifestUrl = $_result.rz('cevManifestUrl');
      var _tmp_cevSize = $_result.l5m('cevSize');
      var _tmp_cevInActive = $_result.w65('cevInActive');
      var _tmp_cevLastModified = $_result.l5m('cevLastModified');
      var _tmp_cevLct = $_result.l5m('cevLct');
      var _tmp_cevStorageSize = $_result.l5m('cevStorageSize');
      var _tmp_cevOriginalSize = $_result.l5m('cevOriginalSize');
      // Inline function 'kotlin.apply' call
      var this_0 = new ContentEntryVersion();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ContentEntryVersionDao_JdbcImpl.findLatestByContentEntryUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.daj_1 = _tmp_cevUid;
      this_0.eaj_1 = _tmp_cevContentEntryUid;
      this_0.faj_1 = _tmp_cevOpenUri;
      this_0.gaj_1 = _tmp_cevContentType;
      this_0.haj_1 = _tmp_cevManifestUrl;
      this_0.iaj_1 = _tmp_cevSize;
      this_0.jaj_1 = _tmp_cevInActive;
      this_0.kaj_1 = _tmp_cevLastModified;
      this_0.laj_1 = _tmp_cevLct;
      this_0.maj_1 = _tmp_cevStorageSize;
      this_0.naj_1 = _tmp_cevOriginalSize;
      return this_0;
    };
  }
  function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda($contentEntryUid, resultContinuation) {
    this.qbb_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda).sbb = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.sbb((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.rbb_1.i5h(1, this.qbb_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.rbb_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda(this.qbb_1, completion);
    i.rbb_1 = _stmt;
    return i;
  };
  function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda_0($contentEntryUid, resultContinuation) {
    var i = new ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda($contentEntryUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.sbb(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.tbb_1);
  }
  protoOf(ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO ContentEntryVersion (cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1).xbb = function (stmt, entity) {
    if (entity.daj_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.daj_1);
    }
    stmt.i5h(2, entity.eaj_1);
    stmt.l5h(3, entity.faj_1);
    stmt.l5h(4, entity.gaj_1);
    stmt.l5h(5, entity.haj_1);
    stmt.i5h(6, entity.iaj_1);
    stmt.v5g(7, entity.jaj_1);
    stmt.i5h(8, entity.kaj_1);
    stmt.i5h(9, entity.laj_1);
    stmt.i5h(10, entity.maj_1);
    stmt.i5h(11, entity.naj_1);
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1).c5f = function (stmt, entity) {
    return this.xbb(stmt, entity instanceof ContentEntryVersion ? entity : THROW_CCE());
  };
  function ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda($cevUid, resultContinuation) {
    this.gbc_1 = $cevUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda).sbb = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda).he = function (p1, $completion) {
    return this.sbb((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hbc_1.i5h(1, this.gbc_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.hbc_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda).z5e = function (_stmt, completion) {
    var i = new ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda(this.gbc_1, completion);
    i.hbc_1 = _stmt;
    return i;
  };
  function ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda_0($cevUid, resultContinuation) {
    var i = new ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda($cevUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.sbb(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda($contentEntryUid, resultContinuation) {
    this.qbc_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda).sbb = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda).he = function (p1, $completion) {
    return this.sbb((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.rbc_1.i5h(1, this.qbc_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.rbc_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda).z5e = function (_stmt, completion) {
    var i = new ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda(this.qbc_1, completion);
    i.rbc_1 = _stmt;
    return i;
  };
  function ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda_0($contentEntryUid, resultContinuation) {
    var i = new ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda($contentEntryUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.sbb(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda(this$0, $contentEntryUid, resultContinuation) {
    this.abd_1 = this$0;
    this.bbd_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda).cbd = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda).z77 = function ($completion) {
    return this.cbd($completion);
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT ContentEntryVersion.*\n          FROM ContentEntryVersion\n         WHERE ContentEntryVersion.cevContentEntryUid = CAST(? AS BIGINT)\n      ORDER BY ContentEntryVersion.cevLastModified DESC\n         LIMIT 1\n    ', VOID, VOID, VOID, '\n        SELECT ContentEntryVersion.*\n          FROM ContentEntryVersion\n         WHERE ContentEntryVersion.cevContentEntryUid = ?\n      ORDER BY ContentEntryVersion.cevLastModified DESC\n         LIMIT 1\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.abd_1.tbb_1, tmp_0, ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda_0(this.bbd_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda).y77 = function (completion) {
    return new ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda(this.abd_1, this.bbd_1, completion);
  };
  function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda_0(this$0, $contentEntryUid, resultContinuation) {
    var i = new ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda(this$0, $contentEntryUid, resultContinuation);
    var l = function ($completion) {
      return i.cbd($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda($entityUid, $transferJobItemUid, resultContinuation) {
    this.lbd_1 = $entityUid;
    this.mbd_1 = $transferJobItemUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.nbd_1.i5h(1, this.lbd_1);
            this.nbd_1.h5h(2, this.mbd_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.nbd_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda).z5e = function (_stmt, completion) {
    var i = new ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda(this.lbd_1, this.mbd_1, completion);
    i.nbd_1 = _stmt;
    return i;
  };
  function ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda_0($entityUid, $transferJobItemUid, resultContinuation) {
    var i = new ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda($entityUid, $transferJobItemUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $updateTransferJobItemEtagCOROUTINE$139(_this__u8e3s4, entityUid, transferJobItemUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.wbd_1 = _this__u8e3s4;
    this.xbd_1 = entityUid;
    this.ybd_1 = transferJobItemUid;
  }
  protoOf($updateTransferJobItemEtagCOROUTINE$139).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE TransferJobItem\n           SET tjiEntityEtag = \n               (SELECT cevLct\n                  FROM ContentEntryVersion\n                 WHERE cevUid = CAST(? AS BIGINT))\n         WHERE tjiUid = ?\n    ', VOID, VOID, VOID, '\n        UPDATE TransferJobItem\n           SET tjiEntityEtag = \n               (SELECT cevLct\n                  FROM ContentEntryVersion\n                 WHERE cevUid = ?)\n         WHERE tjiUid = ?\n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.wbd_1.tbb_1, tmp_0, ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda_0(this.xbd_1, this.ybd_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentEntryVersionDao_JdbcImpl(_db) {
    ContentEntryVersionDao.call(this);
    this.tbb_1 = _db;
    var tmp = this;
    tmp.ubb_1 = new ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1(this);
  }
  protoOf(ContentEntryVersionDao_JdbcImpl).cbb = function (cevUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT ContentEntryVersion.*\n          FROM ContentEntryVersion\n         WHERE cevUid = CAST(? AS BIGINT) \n    ', VOID, VOID, VOID, '\n        SELECT ContentEntryVersion.*\n          FROM ContentEntryVersion\n         WHERE cevUid = ? \n    \n', true);
    return prepareAndUseStatementAsync(this.tbb_1, tmp, ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda_0(cevUid, null), $completion);
  };
  protoOf(ContentEntryVersionDao_JdbcImpl).dbb = function (contentEntryUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT ContentEntryVersion.*\n          FROM ContentEntryVersion\n         WHERE ContentEntryVersion.cevContentEntryUid = CAST(? AS BIGINT)\n      ORDER BY ContentEntryVersion.cevLastModified DESC\n         LIMIT 1\n    ', VOID, VOID, VOID, '\n        SELECT ContentEntryVersion.*\n          FROM ContentEntryVersion\n         WHERE ContentEntryVersion.cevContentEntryUid = ?\n      ORDER BY ContentEntryVersion.cevLastModified DESC\n         LIMIT 1\n    \n', true);
    return prepareAndUseStatementAsync(this.tbb_1, tmp, ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda_0(contentEntryUid, null), $completion);
  };
  protoOf(ContentEntryVersionDao_JdbcImpl).ebb = function (contentEntryUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['ContentEntryVersion'];
    return doorFlow(this.tbb_1, tmp, ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda_0(this, contentEntryUid, null));
  };
  protoOf(ContentEntryVersionDao_JdbcImpl).fbb = function (entityUid, transferJobItemUid, $completion) {
    var tmp = new $updateTransferJobItemEtagCOROUTINE$139(this, entityUid, transferJobItemUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ContentEntryVersionDao_Repo$findLatestVersionUidByContentEntryUidEntity$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda(this$0, $contentEntryUid, resultContinuation) {
    this.hbe_1 = this$0;
    this.ibe_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.jbe_1 = this.hbe_1.sbe_1;
            var tmp_1 = this;
            tmp_1.kbe_1 = 'ContentEntryVersionDao/findLatestByContentEntryUidAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.lbe_1 = this.hbe_1.ube_1;
            var tmp_3 = this;
            tmp_3.mbe_1 = this.lbe_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.hbe_1.sbe_1.w38(), 'ContentEntryVersionDao/findLatestByContentEntryUidAsFlow');
            doorNodeIdHeader(this_0, this.hbe_1.sbe_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'contentEntryUid', this.hbe_1.sbe_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ibe_1));
            tmp_4.nbe_1 = this_0;
            this.nbe_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.obe_1 = this.mbe_1;
            var tmp_6 = this;
            tmp_6.pbe_1 = this.nbe_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.pbe_1, this.obe_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.qbe_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.hbe_1.rbe_1, this.qbe_1, this.hbe_1.sbe_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda$lambda(this.jbe_1, this.kbe_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda).y77 = function (completion) {
    return new ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda(this.hbe_1, this.ibe_1, completion);
  };
  function ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda_0(this$0, $contentEntryUid, resultContinuation) {
    var i = new ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda(this$0, $contentEntryUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda(this$0, $entityUid, $transferJobItemUid, resultContinuation) {
    this.gbf_1 = this$0;
    this.hbf_1 = $entityUid;
    this.ibf_1 = $transferJobItemUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.gbf_1.tbe_1.fbb(this.hbf_1, this.ibf_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda).y77 = function (completion) {
    return new ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda(this.gbf_1, this.hbf_1, this.ibf_1, completion);
  };
  function ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda_0(this$0, $entityUid, $transferJobItemUid, resultContinuation) {
    var i = new ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda(this$0, $entityUid, $transferJobItemUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByUidAsyncCOROUTINE$140(_this__u8e3s4, cevUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.rbf_1 = _this__u8e3s4;
    this.sbf_1 = cevUid;
  }
  protoOf($findByUidAsyncCOROUTINE$140).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.rbf_1.tbe_1.cbb(this.sbf_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $findLatestVersionUidByContentEntryUidEntityCOROUTINE$142(_this__u8e3s4, contentEntryUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.bbg_1 = _this__u8e3s4;
    this.cbg_1 = contentEntryUid;
  }
  protoOf($findLatestVersionUidByContentEntryUidEntityCOROUTINE$142).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.dbg_1 = this.bbg_1.sbe_1;
            var tmp_1 = this;
            tmp_1.ebg_1 = 'ContentEntryVersionDao/findLatestVersionUidByContentEntryUidEntity';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.fbg_1 = this.bbg_1.ube_1;
            var tmp_3 = this;
            tmp_3.gbg_1 = this.fbg_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.bbg_1.sbe_1.w38(), 'ContentEntryVersionDao/findLatestVersionUidByContentEntryUidEntity');
            doorNodeIdHeader(this_0, this.bbg_1.sbe_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'contentEntryUid', this.bbg_1.sbe_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.cbg_1));
            tmp_4.hbg_1 = this_0;
            this.hbg_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.ibg_1 = this.gbg_1;
            var tmp_6 = this;
            tmp_6.jbg_1 = this.hbg_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.jbg_1, this.ibg_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.kbg_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.bbg_1.rbe_1, this.kbg_1, this.bbg_1.sbe_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.lbg_1 = this.kd_1;
              Napier_getInstance().q5d(this.lbg_1, 'DoorLog', ContentEntryVersionDao_Repo$findLatestVersionUidByContentEntryUidEntity$lambda(this.dbg_1, this.ebg_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.bbg_1.tbe_1.dbb(this.cbg_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ContentEntryVersionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ContentEntryVersionDao.call(this);
    this.rbe_1 = _db;
    this.sbe_1 = _repo;
    this.tbe_1 = _dao;
    this.ube_1 = _httpClient;
    this.vbe_1 = _clientId;
    this.wbe_1 = _endpoint;
    this.xbe_1 = new RepoDaoFlowHelper(this.sbe_1);
  }
  protoOf(ContentEntryVersionDao_Repo).cbb = function (cevUid, $completion) {
    var tmp = new $findByUidAsyncCOROUTINE$140(this, cevUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryVersionDao_Repo).dbb = function (contentEntryUid, $completion) {
    var tmp = new $findLatestVersionUidByContentEntryUidEntityCOROUTINE$142(this, contentEntryUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryVersionDao_Repo).ebb = function (contentEntryUid) {
    var tmp = this.tbe_1.ebb(contentEntryUid);
    return this.xbe_1.b67(tmp, ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda_0(this, contentEntryUid, null));
  };
  protoOf(ContentEntryVersionDao_Repo).fbb = function (entityUid, transferJobItemUid, $completion) {
    return withRepoChangeMonitorAsync(this.sbe_1, 'TransferJobItem', ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda_0(this, entityUid, transferJobItemUid, null), $completion);
  };
  function CourseAssignmentMarkDao() {
  }
  function $insertAsyncCOROUTINE$144(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.wbg_1 = _this__u8e3s4;
    this.xbg_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$144).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.ybg_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.wbg_1.abh_1));
            if (this.xbg_1.cbh_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.ybg_1.b62(523, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.zbg_1 = suspendResult;
            this.xbg_1.cbh_1 = this.zbg_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.xbg_1.lbh_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.wbg_1.bbh_1.insertAsync(this.xbg_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.xbg_1.cbh_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseAssignmentMarkDao_DoorWrapper(_db, _dao) {
    CourseAssignmentMarkDao.call(this);
    this.abh_1 = _db;
    this.bbh_1 = _dao;
  }
  protoOf(CourseAssignmentMarkDao_DoorWrapper).mbg = function (accountPersonUid, assignmentUid) {
    return this.bbh_1.mbg(accountPersonUid, assignmentUid);
  };
  protoOf(CourseAssignmentMarkDao_DoorWrapper).nbg = function (submitterUid, assignmentUid) {
    return this.bbh_1.nbg(submitterUid, assignmentUid);
  };
  protoOf(CourseAssignmentMarkDao_DoorWrapper).nbh = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$144(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentMarkDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.nbh(entity instanceof CourseAssignmentMark ? entity : THROW_CCE(), $completion);
  };
  function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda$lambda(_result) {
    return mapRows(_result, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_markerFirstNames = $_result.rz('markerFirstNames');
      var _tmp_markerLastName = $_result.rz('markerLastName');
      var _tmp_markerPictureUri = $_result.rz('markerPictureUri');
      var _tmp_CourseAssignmentMark_nullCount = 0;
      var _tmp_camUid = $_result.l5m('camUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_camAssignmentUid = $_result.l5m('camAssignmentUid');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_camSubmitterUid = $_result.l5m('camSubmitterUid');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_camMarkerSubmitterUid = $_result.l5m('camMarkerSubmitterUid');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_camMarkerPersonUid = $_result.l5m('camMarkerPersonUid');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_camMarkerComment = $_result.rz('camMarkerComment');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_camMark = $_result.y65('camMark');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_camMaxMark = $_result.y65('camMaxMark');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_camPenalty = $_result.y65('camPenalty');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_camLct = $_result.l5m('camLct');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_camClazzUid = $_result.l5m('camClazzUid');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_CourseAssignmentMark_isAllNull = _tmp_CourseAssignmentMark_nullCount === 11;
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseAssignmentMarkAndMarkerName();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentMarkDao_JdbcImpl.getAllMarksForUserAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.pbh_1 = _tmp_markerFirstNames;
      this_0.qbh_1 = _tmp_markerLastName;
      this_0.rbh_1 = _tmp_markerPictureUri;
      if (!_tmp_CourseAssignmentMark_isAllNull) {
        var tmp_10 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new CourseAssignmentMark();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentMarkDao_JdbcImpl.getAllMarksForUserAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.cbh_1 = _tmp_camUid;
        this_1.dbh_1 = _tmp_camAssignmentUid;
        this_1.ebh_1 = _tmp_camSubmitterUid;
        this_1.fbh_1 = _tmp_camMarkerSubmitterUid;
        this_1.gbh_1 = _tmp_camMarkerPersonUid;
        this_1.hbh_1 = _tmp_camMarkerComment;
        this_1.ibh_1 = _tmp_camMark;
        this_1.jbh_1 = _tmp_camMaxMark;
        this_1.kbh_1 = _tmp_camPenalty;
        this_1.lbh_1 = _tmp_camLct;
        this_1.mbh_1 = _tmp_camClazzUid;
        tmp_10.obh_1 = this_1;
      }
      return this_0;
    };
  }
  function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation) {
    this.abi_1 = $assignmentUid;
    this.bbi_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda).dbi = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.dbi((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.cbi_1.i5h(1, this.abi_1);
            this.cbi_1.i5h(2, this.bbi_1);
            this.cbi_1.i5h(3, this.abi_1);
            this.cbi_1.i5h(4, this.abi_1);
            this.cbi_1.i5h(5, this.bbi_1);
            this.cbi_1.i5h(6, this.abi_1);
            this.cbi_1.i5h(7, this.bbi_1);
            this.cbi_1.i5h(8, this.abi_1);
            this.cbi_1.i5h(9, this.abi_1);
            this.cbi_1.i5h(10, this.bbi_1);
            this.cbi_1.i5h(11, this.abi_1);
            this.cbi_1.i5h(12, this.abi_1);
            this.cbi_1.i5h(13, this.bbi_1);
            this.cbi_1.i5h(14, this.abi_1);
            this.cbi_1.i5h(15, this.abi_1);
            this.cbi_1.i5h(16, this.bbi_1);
            this.cbi_1.i5h(17, this.abi_1);
            this.cbi_1.i5h(18, this.bbi_1);
            this.cbi_1.i5h(19, this.abi_1);
            this.cbi_1.i5h(20, this.abi_1);
            this.cbi_1.i5h(21, this.bbi_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.cbi_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda(this.abi_1, this.bbi_1, completion);
    i.cbi_1 = _stmt;
    return i;
  };
  function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda_0($assignmentUid, $accountPersonUid, resultContinuation) {
    var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.dbi(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda$lambda(_result) {
    return mapRows(_result, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_markerFirstNames = $_result.rz('markerFirstNames');
      var _tmp_markerLastName = $_result.rz('markerLastName');
      var _tmp_markerPictureUri = $_result.rz('markerPictureUri');
      var _tmp_CourseAssignmentMark_nullCount = 0;
      var _tmp_camUid = $_result.l5m('camUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_camAssignmentUid = $_result.l5m('camAssignmentUid');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_camSubmitterUid = $_result.l5m('camSubmitterUid');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_camMarkerSubmitterUid = $_result.l5m('camMarkerSubmitterUid');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_camMarkerPersonUid = $_result.l5m('camMarkerPersonUid');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_camMarkerComment = $_result.rz('camMarkerComment');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_camMark = $_result.y65('camMark');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_camMaxMark = $_result.y65('camMaxMark');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_camPenalty = $_result.y65('camPenalty');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_camLct = $_result.l5m('camLct');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_camClazzUid = $_result.l5m('camClazzUid');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_CourseAssignmentMark_isAllNull = _tmp_CourseAssignmentMark_nullCount === 11;
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseAssignmentMarkAndMarkerName();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentMarkDao_JdbcImpl.getAllMarksForSubmitterAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.pbh_1 = _tmp_markerFirstNames;
      this_0.qbh_1 = _tmp_markerLastName;
      this_0.rbh_1 = _tmp_markerPictureUri;
      if (!_tmp_CourseAssignmentMark_isAllNull) {
        var tmp_10 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new CourseAssignmentMark();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentMarkDao_JdbcImpl.getAllMarksForSubmitterAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.cbh_1 = _tmp_camUid;
        this_1.dbh_1 = _tmp_camAssignmentUid;
        this_1.ebh_1 = _tmp_camSubmitterUid;
        this_1.fbh_1 = _tmp_camMarkerSubmitterUid;
        this_1.gbh_1 = _tmp_camMarkerPersonUid;
        this_1.hbh_1 = _tmp_camMarkerComment;
        this_1.ibh_1 = _tmp_camMark;
        this_1.jbh_1 = _tmp_camMaxMark;
        this_1.kbh_1 = _tmp_camPenalty;
        this_1.lbh_1 = _tmp_camLct;
        this_1.mbh_1 = _tmp_camClazzUid;
        tmp_10.obh_1 = this_1;
      }
      return this_0;
    };
  }
  function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda($assignmentUid, $submitterUid, resultContinuation) {
    this.mbi_1 = $assignmentUid;
    this.nbi_1 = $submitterUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda).dbi = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.dbi((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.obi_1.i5h(1, this.mbi_1);
            this.obi_1.i5h(2, this.nbi_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.obi_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda(this.mbi_1, this.nbi_1, completion);
    i.obi_1 = _stmt;
    return i;
  };
  function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda_0($assignmentUid, $submitterUid, resultContinuation) {
    var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda($assignmentUid, $submitterUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.dbi(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.pbi_1);
  }
  protoOf(CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO CourseAssignmentMark (camUid, camAssignmentUid, camSubmitterUid, camMarkerSubmitterUid, camMarkerPersonUid, camMarkerComment, camMark, camMaxMark, camPenalty, camLct, camClazzUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1).tbi = function (stmt, entity) {
    if (entity.cbh_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.cbh_1);
    }
    stmt.i5h(2, entity.dbh_1);
    stmt.i5h(3, entity.ebh_1);
    stmt.i5h(4, entity.fbh_1);
    stmt.i5h(5, entity.gbh_1);
    stmt.l5h(6, entity.hbh_1);
    stmt.j5h(7, entity.ibh_1);
    stmt.j5h(8, entity.jbh_1);
    stmt.j5h(9, entity.kbh_1);
    stmt.i5h(10, entity.lbh_1);
    stmt.i5h(11, entity.mbh_1);
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1).c5f = function (stmt, entity) {
    return this.tbi(stmt, entity instanceof CourseAssignmentMark ? entity : THROW_CCE());
  };
  function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation) {
    this.cbj_1 = this$0;
    this.dbj_1 = $assignmentUid;
    this.ebj_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda).fbj = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda).z77 = function ($completion) {
    return this.fbj($completion);
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT CourseAssignmentMark.*,\n               Person.firstNames AS markerFirstNames,\n               Person.lastName AS markerLastName,\n               PersonPicture.personPictureThumbnailUri AS markerPictureUri\n          FROM CourseAssignmentMark\n               LEFT JOIN Person\n                         ON Person.personUid = CourseAssignmentMark.camMarkerPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = CourseAssignmentMark.camMarkerPersonUid\n         WHERE (\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = CAST(? AS BIGINT))\n                              AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n                            LIMIT 1), -1)\n                    END\n    ) > 0\n           AND CourseAssignmentMark.camAssignmentUid = CAST(? AS BIGINT)\n           AND CourseAssignmentMark.camSubmitterUid = (\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = CAST(? AS BIGINT))\n                              AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n                            LIMIT 1), -1)\n                    END\n    )\n      ORDER BY CourseAssignmentMark.camLct DESC    \n    ', VOID, VOID, VOID, '\n        SELECT CourseAssignmentMark.*,\n               Person.firstNames AS markerFirstNames,\n               Person.lastName AS markerLastName,\n               PersonPicture.personPictureThumbnailUri AS markerPictureUri\n          FROM CourseAssignmentMark\n               LEFT JOIN Person\n                         ON Person.personUid = CourseAssignmentMark.camMarkerPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = CourseAssignmentMark.camMarkerPersonUid\n         WHERE (\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = ?)\n                              AND CourseGroupMember.cgmPersonUid = ?\n                            LIMIT 1), -1)\n                    END\n    ) > 0\n           AND CourseAssignmentMark.camAssignmentUid = ?\n           AND CourseAssignmentMark.camSubmitterUid = (\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = ?)\n                              AND CourseGroupMember.cgmPersonUid = ?\n                            LIMIT 1), -1)\n                    END\n    )\n      ORDER BY CourseAssignmentMark.camLct DESC    \n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.cbj_1.pbi_1, tmp_0, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda_0(this.dbj_1, this.ebj_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda).y77 = function (completion) {
    return new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda(this.cbj_1, this.dbj_1, this.ebj_1, completion);
  };
  function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda_0(this$0, $assignmentUid, $accountPersonUid, resultContinuation) {
    var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.fbj($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda(this$0, $assignmentUid, $submitterUid, resultContinuation) {
    this.obj_1 = this$0;
    this.pbj_1 = $assignmentUid;
    this.qbj_1 = $submitterUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda).fbj = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda).z77 = function ($completion) {
    return this.fbj($completion);
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT CourseAssignmentMark.*,\n               Person.firstNames AS markerFirstNames,\n               Person.lastName AS markerLastName,\n               PersonPicture.personPictureThumbnailUri AS markerPictureUri\n          FROM CourseAssignmentMark\n               LEFT JOIN Person\n                         ON Person.personUid = CourseAssignmentMark.camMarkerPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = CourseAssignmentMark.camMarkerPersonUid\n         WHERE CourseAssignmentMark.camAssignmentUid = CAST(? AS BIGINT)\n           AND CourseAssignmentMark.camSubmitterUid = CAST(? AS BIGINT)\n      ORDER BY CourseAssignmentMark.camLct DESC                             \n    ', VOID, VOID, VOID, '\n        SELECT CourseAssignmentMark.*,\n               Person.firstNames AS markerFirstNames,\n               Person.lastName AS markerLastName,\n               PersonPicture.personPictureThumbnailUri AS markerPictureUri\n          FROM CourseAssignmentMark\n               LEFT JOIN Person\n                         ON Person.personUid = CourseAssignmentMark.camMarkerPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = CourseAssignmentMark.camMarkerPersonUid\n         WHERE CourseAssignmentMark.camAssignmentUid = ?\n           AND CourseAssignmentMark.camSubmitterUid = ?\n      ORDER BY CourseAssignmentMark.camLct DESC                             \n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.obj_1.pbi_1, tmp_0, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda_0(this.pbj_1, this.qbj_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda).y77 = function (completion) {
    return new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda(this.obj_1, this.pbj_1, this.qbj_1, completion);
  };
  function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda_0(this$0, $assignmentUid, $submitterUid, resultContinuation) {
    var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda(this$0, $assignmentUid, $submitterUid, resultContinuation);
    var l = function ($completion) {
      return i.fbj($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$145(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zbj_1 = _this__u8e3s4;
    this.abk_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$145).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.zbj_1.qbi_1.j5g(this.abk_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseAssignmentMarkDao_JdbcImpl(_db) {
    CourseAssignmentMarkDao.call(this);
    this.pbi_1 = _db;
    var tmp = this;
    tmp.qbi_1 = new CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1(this);
  }
  protoOf(CourseAssignmentMarkDao_JdbcImpl).nbh = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$145(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.nbh(entity instanceof CourseAssignmentMark ? entity : THROW_CCE(), $completion);
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl).mbg = function (accountPersonUid, assignmentUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['CourseAssignmentMark', 'Person', 'ClazzAssignment', 'CourseGroupMember', 'ClazzEnrolment', 'PersonPicture'];
    return doorFlow(this.pbi_1, tmp, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda_0(this, assignmentUid, accountPersonUid, null));
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl).nbg = function (submitterUid, assignmentUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['CourseAssignmentMark', 'Person', 'PersonPicture'];
    return doorFlow(this.pbi_1, tmp, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda_0(this, assignmentUid, submitterUid, null));
  };
  function CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation) {
    this.jbk_1 = this$0;
    this.kbk_1 = $accountPersonUid;
    this.lbk_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.mbk_1 = this.jbk_1.vbk_1;
            var tmp_1 = this;
            tmp_1.nbk_1 = 'CourseAssignmentMarkDao/getAllMarksForUserAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.obk_1 = this.jbk_1.xbk_1;
            var tmp_3 = this;
            tmp_3.pbk_1 = this.obk_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.jbk_1.vbk_1.w38(), 'CourseAssignmentMarkDao/getAllMarksForUserAsFlow');
            doorNodeIdHeader(this_0, this.jbk_1.vbk_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.jbk_1.vbk_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.kbk_1));
            parameter(this_0, 'assignmentUid', this.jbk_1.vbk_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.lbk_1));
            tmp_4.qbk_1 = this_0;
            this.qbk_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.rbk_1 = this.pbk_1;
            var tmp_6 = this;
            tmp_6.sbk_1 = this.qbk_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.sbk_1, this.rbk_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.tbk_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.jbk_1.ubk_1, this.tbk_1, this.jbk_1.vbk_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda$lambda(this.mbk_1, this.nbk_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda).y77 = function (completion) {
    return new CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda(this.jbk_1, this.kbk_1, this.lbk_1, completion);
  };
  function CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda_0(this$0, $accountPersonUid, $assignmentUid, resultContinuation) {
    var i = new CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation) {
    this.jbl_1 = this$0;
    this.kbl_1 = $submitterUid;
    this.lbl_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.mbl_1 = this.jbl_1.vbk_1;
            var tmp_1 = this;
            tmp_1.nbl_1 = 'CourseAssignmentMarkDao/getAllMarksForSubmitterAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.obl_1 = this.jbl_1.xbk_1;
            var tmp_3 = this;
            tmp_3.pbl_1 = this.obl_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.jbl_1.vbk_1.w38(), 'CourseAssignmentMarkDao/getAllMarksForSubmitterAsFlow');
            doorNodeIdHeader(this_0, this.jbl_1.vbk_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'submitterUid', this.jbl_1.vbk_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.kbl_1));
            parameter(this_0, 'assignmentUid', this.jbl_1.vbk_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.lbl_1));
            tmp_4.qbl_1 = this_0;
            this.qbl_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.rbl_1 = this.pbl_1;
            var tmp_6 = this;
            tmp_6.sbl_1 = this.qbl_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.sbl_1, this.rbl_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.tbl_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.jbl_1.ubk_1, this.tbl_1, this.jbl_1.vbk_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda$lambda(this.mbl_1, this.nbl_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda).y77 = function (completion) {
    return new CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda(this.jbl_1, this.kbl_1, this.lbl_1, completion);
  };
  function CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda_0(this$0, $submitterUid, $assignmentUid, resultContinuation) {
    var i = new CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentMarkDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.cbm_1 = this$0;
    this.dbm_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentMarkDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentMarkDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(CourseAssignmentMarkDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.cbm_1.wbk_1.insertAsync(this.dbm_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentMarkDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new CourseAssignmentMarkDao_Repo$insertAsync$slambda(this.cbm_1, this.dbm_1, completion);
  };
  function CourseAssignmentMarkDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new CourseAssignmentMarkDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$148(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.mbm_1 = _this__u8e3s4;
    this.nbm_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$148).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.mbm_1.vbk_1, 'CourseAssignmentMark', CourseAssignmentMarkDao_Repo$insertAsync$slambda_0(this.mbm_1, this.nbm_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseAssignmentMarkDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    CourseAssignmentMarkDao.call(this);
    this.ubk_1 = _db;
    this.vbk_1 = _repo;
    this.wbk_1 = _dao;
    this.xbk_1 = _httpClient;
    this.ybk_1 = _clientId;
    this.zbk_1 = _endpoint;
    this.abl_1 = new RepoDaoFlowHelper(this.vbk_1);
  }
  protoOf(CourseAssignmentMarkDao_Repo).mbg = function (accountPersonUid, assignmentUid) {
    var tmp = this.wbk_1.mbg(accountPersonUid, assignmentUid);
    return this.abl_1.b67(tmp, CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda_0(this, accountPersonUid, assignmentUid, null));
  };
  protoOf(CourseAssignmentMarkDao_Repo).nbg = function (submitterUid, assignmentUid) {
    var tmp = this.wbk_1.nbg(submitterUid, assignmentUid);
    return this.abl_1.b67(tmp, CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda_0(this, submitterUid, assignmentUid, null));
  };
  protoOf(CourseAssignmentMarkDao_Repo).nbh = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$148(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentMarkDao_Repo).insertAsync = function (entity, $completion) {
    return this.nbh(entity instanceof CourseAssignmentMark ? entity : THROW_CCE(), $completion);
  };
  function CourseAssignmentSubmissionDao() {
  }
  function $insertAsyncCOROUTINE$150(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.bbn_1 = _this__u8e3s4;
    this.cbn_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$150).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.dbn_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.bbn_1.fbn_1));
            if (this.cbn_1.hbn_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.dbn_1.b62(522, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.ebn_1 = suspendResult;
            this.cbn_1.hbn_1 = this.ebn_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.cbn_1.nbn_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.bbn_1.gbn_1.insertAsync(this.cbn_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.cbn_1.hbn_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseAssignmentSubmissionDao_DoorWrapper(_db, _dao) {
    CourseAssignmentSubmissionDao.call(this);
    this.fbn_1 = _db;
    this.gbn_1 = _dao;
  }
  protoOf(CourseAssignmentSubmissionDao_DoorWrapper).obm = function (submitterUid, assignmentUid) {
    return this.gbn_1.obm(submitterUid, assignmentUid);
  };
  protoOf(CourseAssignmentSubmissionDao_DoorWrapper).pbm = function (accountPersonUid, assignmentUid, $completion) {
    return this.gbn_1.pbm(accountPersonUid, assignmentUid, $completion);
  };
  protoOf(CourseAssignmentSubmissionDao_DoorWrapper).qbm = function (assignmentUid, $completion) {
    return this.gbn_1.qbm(assignmentUid, $completion);
  };
  protoOf(CourseAssignmentSubmissionDao_DoorWrapper).rbm = function (assignmentUid) {
    return this.gbn_1.rbm(assignmentUid);
  };
  protoOf(CourseAssignmentSubmissionDao_DoorWrapper).sbm = function (accountPersonUid, assignmentUid) {
    return this.gbn_1.sbm(accountPersonUid, assignmentUid);
  };
  protoOf(CourseAssignmentSubmissionDao_DoorWrapper).pbn = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$150(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.pbn(entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE(), $completion);
  };
  function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda$lambda(_result) {
    return mapRows(_result, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_casUid = $_result.l5m('casUid');
      var _tmp_casAssignmentUid = $_result.l5m('casAssignmentUid');
      var _tmp_casSubmitterUid = $_result.l5m('casSubmitterUid');
      var _tmp_casSubmitterPersonUid = $_result.l5m('casSubmitterPersonUid');
      var _tmp_casText = $_result.rz('casText');
      var _tmp_casType = $_result.k5m('casType');
      var _tmp_casTimestamp = $_result.l5m('casTimestamp');
      var _tmp_casClazzUid = $_result.l5m('casClazzUid');
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseAssignmentSubmission();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionDao_JdbcImpl.getAllSubmissionsFromSubmitterAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.hbn_1 = _tmp_casUid;
      this_0.ibn_1 = _tmp_casAssignmentUid;
      this_0.jbn_1 = _tmp_casSubmitterUid;
      this_0.kbn_1 = _tmp_casSubmitterPersonUid;
      this_0.lbn_1 = _tmp_casText;
      this_0.mbn_1 = _tmp_casType;
      this_0.nbn_1 = _tmp_casTimestamp;
      this_0.obn_1 = _tmp_casClazzUid;
      return this_0;
    };
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda($assignmentUid, $submitterUid, resultContinuation) {
    this.ybn_1 = $assignmentUid;
    this.zbn_1 = $submitterUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda).bbo = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.bbo((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.abo_1.i5h(1, this.ybn_1);
            this.abo_1.i5h(2, this.zbn_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.abo_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda(this.ybn_1, this.zbn_1, completion);
    i.abo_1 = _stmt;
    return i;
  };
  function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda_0($assignmentUid, $submitterUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda($assignmentUid, $submitterUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.bbo(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda$lambda(_result) {
    return mapNextRow(_result, false, CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda$lambda$lambda(_result));
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.a74(1);
    };
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda$lambda(_result) {
    return mapNextRow(_result, false, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda$lambda$lambda(_result));
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.a74(1);
    };
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, false, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda$lambda$lambda(_result));
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.a74(1);
    };
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda($assignmentUid, resultContinuation) {
    this.kbo_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda).m9s = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda).he = function (p1, $completion) {
    return this.m9s((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.lbo_1.i5h(1, this.kbo_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.lbo_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda(this.kbo_1, completion);
    i.lbo_1 = _stmt;
    return i;
  };
  function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda_0($assignmentUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda($assignmentUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.m9s(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda$lambda(_result) {
    return mapRows(_result, CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda$lambda$lambda(_result));
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_casUid = $_result.l5m('casUid');
      var _tmp_casAssignmentUid = $_result.l5m('casAssignmentUid');
      var _tmp_casSubmitterUid = $_result.l5m('casSubmitterUid');
      var _tmp_casSubmitterPersonUid = $_result.l5m('casSubmitterPersonUid');
      var _tmp_casText = $_result.rz('casText');
      var _tmp_casType = $_result.k5m('casType');
      var _tmp_casTimestamp = $_result.l5m('casTimestamp');
      var _tmp_casClazzUid = $_result.l5m('casClazzUid');
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseAssignmentSubmission();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionDao_JdbcImpl.findByAssignmentUidAndAccountPersonUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.hbn_1 = _tmp_casUid;
      this_0.ibn_1 = _tmp_casAssignmentUid;
      this_0.jbn_1 = _tmp_casSubmitterUid;
      this_0.kbn_1 = _tmp_casSubmitterPersonUid;
      this_0.lbn_1 = _tmp_casText;
      this_0.mbn_1 = _tmp_casType;
      this_0.nbn_1 = _tmp_casTimestamp;
      this_0.obn_1 = _tmp_casClazzUid;
      return this_0;
    };
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation) {
    this.ubo_1 = $assignmentUid;
    this.vbo_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda).bbo = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda).he = function (p1, $completion) {
    return this.bbo((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.wbo_1.i5h(1, this.ubo_1);
            this.wbo_1.i5h(2, this.ubo_1);
            this.wbo_1.i5h(3, this.vbo_1);
            this.wbo_1.i5h(4, this.ubo_1);
            this.wbo_1.i5h(5, this.ubo_1);
            this.wbo_1.i5h(6, this.vbo_1);
            this.wbo_1.i5h(7, this.ubo_1);
            this.wbo_1.i5h(8, this.vbo_1);
            this.wbo_1.i5h(9, this.ubo_1);
            this.wbo_1.i5h(10, this.ubo_1);
            this.wbo_1.i5h(11, this.vbo_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.wbo_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda(this.ubo_1, this.vbo_1, completion);
    i.wbo_1 = _stmt;
    return i;
  };
  function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda_0($assignmentUid, $accountPersonUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.bbo(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.xbo_1);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO CourseAssignmentSubmission (casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1).bbp = function (stmt, entity) {
    if (entity.hbn_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.hbn_1);
    }
    stmt.i5h(2, entity.ibn_1);
    stmt.i5h(3, entity.jbn_1);
    stmt.i5h(4, entity.kbn_1);
    stmt.l5h(5, entity.lbn_1);
    stmt.h5h(6, entity.mbn_1);
    stmt.i5h(7, entity.nbn_1);
    stmt.i5h(8, entity.obn_1);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1).c5f = function (stmt, entity) {
    return this.bbp(stmt, entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE());
  };
  function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda(this$0, $assignmentUid, $submitterUid, resultContinuation) {
    this.kbp_1 = this$0;
    this.lbp_1 = $assignmentUid;
    this.mbp_1 = $submitterUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda).nbp = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda).z77 = function ($completion) {
    return this.nbp($completion);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT CourseAssignmentSubmission.*\n          FROM CourseAssignmentSubmission\n         WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n           AND CourseAssignmentSubmission.casSubmitterUid = CAST(? AS BIGINT)\n      ORDER BY CourseAssignmentSubmission.casTimestamp DESC      \n    ', VOID, VOID, VOID, '\n        SELECT CourseAssignmentSubmission.*\n          FROM CourseAssignmentSubmission\n         WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n           AND CourseAssignmentSubmission.casSubmitterUid = ?\n      ORDER BY CourseAssignmentSubmission.casTimestamp DESC      \n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.kbp_1.xbo_1, tmp_0, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda_0(this.lbp_1, this.mbp_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda).y77 = function (completion) {
    return new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda(this.kbp_1, this.lbp_1, this.mbp_1, completion);
  };
  function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda_0(this$0, $assignmentUid, $submitterUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda(this$0, $assignmentUid, $submitterUid, resultContinuation);
    var l = function ($completion) {
      return i.nbp($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda($assignmentUid, $accountPersonUid, resultContinuation) {
    this.wbp_1 = $assignmentUid;
    this.xbp_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda).m9s = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda).he = function (p1, $completion) {
    return this.m9s((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ybp_1.i5h(1, this.wbp_1);
            this.ybp_1.i5h(2, this.xbp_1);
            this.ybp_1.i5h(3, this.wbp_1);
            this.ybp_1.i5h(4, this.wbp_1);
            this.ybp_1.i5h(5, this.xbp_1);
            this.ybp_1.i5h(6, this.wbp_1);
            this.ybp_1.i5h(7, this.xbp_1);
            this.ybp_1.i5h(8, this.wbp_1);
            this.ybp_1.i5h(9, this.wbp_1);
            this.ybp_1.i5h(10, this.xbp_1);
            this.ybp_1.i5h(11, this.wbp_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ybp_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda).z5e = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda(this.wbp_1, this.xbp_1, completion);
    i.ybp_1 = _stmt;
    return i;
  };
  function CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda_0($assignmentUid, $accountPersonUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda($assignmentUid, $accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.m9s(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda($assignmentUid, resultContinuation) {
    this.hbq_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda).m9s = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda).he = function (p1, $completion) {
    return this.m9s((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ibq_1.i5h(1, this.hbq_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ibq_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda).z5e = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda(this.hbq_1, completion);
    i.ibq_1 = _stmt;
    return i;
  };
  function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda_0($assignmentUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda($assignmentUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.m9s(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda(this$0, $assignmentUid, resultContinuation) {
    this.rbq_1 = this$0;
    this.sbq_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda).b9u = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda).z77 = function ($completion) {
    return this.b9u($completion);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n         SELECT NOT EXISTS(SELECT 1\n                        FROM CourseAssignmentSubmission\n                       WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n                       LIMIT 1)\n    ', VOID, VOID, VOID, '\n         SELECT NOT EXISTS(SELECT 1\n                        FROM CourseAssignmentSubmission\n                       WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n                       LIMIT 1)\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.rbq_1.xbo_1, tmp_0, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda_0(this.sbq_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda).y77 = function (completion) {
    return new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda(this.rbq_1, this.sbq_1, completion);
  };
  function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda_0(this$0, $assignmentUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda(this$0, $assignmentUid, resultContinuation);
    var l = function ($completion) {
      return i.b9u($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation) {
    this.bbr_1 = this$0;
    this.cbr_1 = $assignmentUid;
    this.dbr_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda).nbp = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda).z77 = function ($completion) {
    return this.nbp($completion);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT CourseAssignmentSubmission.*\n          FROM CourseAssignmentSubmission\n         WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n           AND CourseAssignmentSubmission.casSubmitterUid = \n               (\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = CAST(? AS BIGINT))\n                              AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n                            LIMIT 1), -1)\n                    END\n    )\n      ORDER BY CourseAssignmentSubmission.casTimestamp DESC\n    ', VOID, VOID, VOID, '\n        SELECT CourseAssignmentSubmission.*\n          FROM CourseAssignmentSubmission\n         WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n           AND CourseAssignmentSubmission.casSubmitterUid = \n               (\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = ?)\n                              AND CourseGroupMember.cgmPersonUid = ?\n                            LIMIT 1), -1)\n                    END\n    )\n      ORDER BY CourseAssignmentSubmission.casTimestamp DESC\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.bbr_1.xbo_1, tmp_0, CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda_0(this.cbr_1, this.dbr_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda).y77 = function (completion) {
    return new CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda(this.bbr_1, this.cbr_1, this.dbr_1, completion);
  };
  function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda_0(this$0, $assignmentUid, $accountPersonUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.nbp($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$151(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.mbr_1 = _this__u8e3s4;
    this.nbr_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$151).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.mbr_1.ybo_1.j5g(this.nbr_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseAssignmentSubmissionDao_JdbcImpl(_db) {
    CourseAssignmentSubmissionDao.call(this);
    this.xbo_1 = _db;
    var tmp = this;
    tmp.ybo_1 = new CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1(this);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl).pbn = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$151(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.pbn(entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE(), $completion);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl).obm = function (submitterUid, assignmentUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['CourseAssignmentSubmission'];
    return doorFlow(this.xbo_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda_0(this, assignmentUid, submitterUid, null));
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl).pbm = function (accountPersonUid, assignmentUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT EXISTS\n               (SELECT CourseAssignmentSubmission.casUid\n                  FROM CourseAssignmentSubmission\n                 WHERE CourseAssignmentSubmission.casSubmitterUid = (\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = CAST(? AS BIGINT))\n                              AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n                            LIMIT 1), -1)\n                    END\n    )\n                   AND CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT))\n    ', VOID, VOID, VOID, '\n        SELECT EXISTS\n               (SELECT CourseAssignmentSubmission.casUid\n                  FROM CourseAssignmentSubmission\n                 WHERE CourseAssignmentSubmission.casSubmitterUid = (\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = ?)\n                              AND CourseGroupMember.cgmPersonUid = ?\n                            LIMIT 1), -1)\n                    END\n    )\n                   AND CourseAssignmentSubmission.casAssignmentUid = ?)\n    \n', true);
    return prepareAndUseStatementAsync(this.xbo_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda_0(assignmentUid, accountPersonUid, null), $completion);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl).qbm = function (assignmentUid, $completion) {
    var tmp = new PreparedStatementConfig('\n         SELECT NOT EXISTS(SELECT 1\n                        FROM CourseAssignmentSubmission\n                       WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n                       LIMIT 1)\n    ', VOID, VOID, VOID, '\n         SELECT NOT EXISTS(SELECT 1\n                        FROM CourseAssignmentSubmission\n                       WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n                       LIMIT 1)\n    \n', true);
    return prepareAndUseStatementAsync(this.xbo_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda_0(assignmentUid, null), $completion);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl).rbm = function (assignmentUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['CourseAssignmentSubmission'];
    return doorFlow(this.xbo_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda_0(this, assignmentUid, null));
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl).sbm = function (accountPersonUid, assignmentUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['CourseAssignmentSubmission', 'ClazzAssignment', 'CourseGroupMember', 'ClazzEnrolment'];
    return doorFlow(this.xbo_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda_0(this, assignmentUid, accountPersonUid, null));
  };
  function CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation) {
    this.wbr_1 = this$0;
    this.xbr_1 = $submitterUid;
    this.ybr_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.zbr_1 = this.wbr_1.ibs_1;
            var tmp_1 = this;
            tmp_1.abs_1 = 'CourseAssignmentSubmissionDao/getAllSubmissionsFromSubmitterAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.bbs_1 = this.wbr_1.kbs_1;
            var tmp_3 = this;
            tmp_3.cbs_1 = this.bbs_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.wbr_1.ibs_1.w38(), 'CourseAssignmentSubmissionDao/getAllSubmissionsFromSubmitterAsFlow');
            doorNodeIdHeader(this_0, this.wbr_1.ibs_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'submitterUid', this.wbr_1.ibs_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.xbr_1));
            parameter(this_0, 'assignmentUid', this.wbr_1.ibs_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ybr_1));
            tmp_4.dbs_1 = this_0;
            this.dbs_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.ebs_1 = this.cbs_1;
            var tmp_6 = this;
            tmp_6.fbs_1 = this.dbs_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.fbs_1, this.ebs_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.gbs_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.wbr_1.hbs_1, this.gbs_1, this.wbr_1.ibs_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda$lambda(this.zbr_1, this.abs_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda).y77 = function (completion) {
    return new CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda(this.wbr_1, this.xbr_1, this.ybr_1, completion);
  };
  function CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda_0(this$0, $submitterUid, $assignmentUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation) {
    this.wbs_1 = this$0;
    this.xbs_1 = $accountPersonUid;
    this.ybs_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.zbs_1 = this.wbs_1.ibs_1;
            var tmp_1 = this;
            tmp_1.abt_1 = 'CourseAssignmentSubmissionDao/findByAssignmentUidAndAccountPersonUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.bbt_1 = this.wbs_1.kbs_1;
            var tmp_3 = this;
            tmp_3.cbt_1 = this.bbt_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.wbs_1.ibs_1.w38(), 'CourseAssignmentSubmissionDao/findByAssignmentUidAndAccountPersonUid');
            doorNodeIdHeader(this_0, this.wbs_1.ibs_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.wbs_1.ibs_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.xbs_1));
            parameter(this_0, 'assignmentUid', this.wbs_1.ibs_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ybs_1));
            tmp_4.dbt_1 = this_0;
            this.dbt_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.ebt_1 = this.cbt_1;
            var tmp_6 = this;
            tmp_6.fbt_1 = this.dbt_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.fbt_1, this.ebt_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.gbt_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.wbs_1.hbs_1, this.gbt_1, this.wbs_1.ibs_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda$lambda(this.zbs_1, this.abt_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda).y77 = function (completion) {
    return new CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda(this.wbs_1, this.xbs_1, this.ybs_1, completion);
  };
  function CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda_0(this$0, $accountPersonUid, $assignmentUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.pbt_1 = this$0;
    this.qbt_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(CourseAssignmentSubmissionDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.pbt_1.jbs_1.insertAsync(this.qbt_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new CourseAssignmentSubmissionDao_Repo$insertAsync$slambda(this.pbt_1, this.qbt_1, completion);
  };
  function CourseAssignmentSubmissionDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new CourseAssignmentSubmissionDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $doesUserHaveSubmissionsCOROUTINE$153(_this__u8e3s4, accountPersonUid, assignmentUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zbt_1 = _this__u8e3s4;
    this.abu_1 = accountPersonUid;
    this.bbu_1 = assignmentUid;
  }
  protoOf($doesUserHaveSubmissionsCOROUTINE$153).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.zbt_1.jbs_1.pbm(this.abu_1, this.bbu_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $checkNoSubmissionsMadeAsyncCOROUTINE$157(_this__u8e3s4, assignmentUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.kbu_1 = _this__u8e3s4;
    this.lbu_1 = assignmentUid;
  }
  protoOf($checkNoSubmissionsMadeAsyncCOROUTINE$157).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.kbu_1.jbs_1.qbm(this.lbu_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$158(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ubu_1 = _this__u8e3s4;
    this.vbu_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$158).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.ubu_1.ibs_1, 'CourseAssignmentSubmission', CourseAssignmentSubmissionDao_Repo$insertAsync$slambda_0(this.ubu_1, this.vbu_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseAssignmentSubmissionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    CourseAssignmentSubmissionDao.call(this);
    this.hbs_1 = _db;
    this.ibs_1 = _repo;
    this.jbs_1 = _dao;
    this.kbs_1 = _httpClient;
    this.lbs_1 = _clientId;
    this.mbs_1 = _endpoint;
    this.nbs_1 = new RepoDaoFlowHelper(this.ibs_1);
  }
  protoOf(CourseAssignmentSubmissionDao_Repo).obm = function (submitterUid, assignmentUid) {
    var tmp = this.jbs_1.obm(submitterUid, assignmentUid);
    return this.nbs_1.b67(tmp, CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda_0(this, submitterUid, assignmentUid, null));
  };
  protoOf(CourseAssignmentSubmissionDao_Repo).pbm = function (accountPersonUid, assignmentUid, $completion) {
    var tmp = new $doesUserHaveSubmissionsCOROUTINE$153(this, accountPersonUid, assignmentUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_Repo).qbm = function (assignmentUid, $completion) {
    var tmp = new $checkNoSubmissionsMadeAsyncCOROUTINE$157(this, assignmentUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_Repo).rbm = function (assignmentUid) {
    var _result = this.jbs_1.rbm(assignmentUid);
    return _result;
  };
  protoOf(CourseAssignmentSubmissionDao_Repo).sbm = function (accountPersonUid, assignmentUid) {
    var tmp = this.jbs_1.sbm(accountPersonUid, assignmentUid);
    return this.nbs_1.b67(tmp, CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda_0(this, accountPersonUid, assignmentUid, null));
  };
  protoOf(CourseAssignmentSubmissionDao_Repo).pbn = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$158(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_Repo).insertAsync = function (entity, $completion) {
    return this.pbn(entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE(), $completion);
  };
  function CourseAssignmentSubmissionFileDao() {
  }
  function $insertListAsyncCOROUTINE$159(_this__u8e3s4, entityList, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.kbv_1 = _this__u8e3s4;
    this.lbv_1 = entityList;
  }
  protoOf($insertListAsyncCOROUTINE$159).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.mbv_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.kbv_1.tbv_1));
            var tmp_0 = this;
            tmp_0.nbv_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.obv_1 = this.lbv_1.w();
            var tmp_2 = this;
            tmp_2.pbv_1 = this.obv_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.pbv_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.qbv_1 = this.pbv_1.e();
            var tmp_3 = this;
            tmp_3.rbv_1 = this.qbv_1;
            if (this.rbv_1.vbv_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.mbv_1.b62(90, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.sbv_1 = suspendResult;
            this.rbv_1.vbv_1 = this.sbv_1;
            var this_0 = this.nbv_1;
            var element = this.sbv_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.rbv_1.ebw_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.kbv_1.ubv_1.wbu(this.lbv_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            return Unit_instance;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$160(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.obw_1 = _this__u8e3s4;
    this.pbw_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$160).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.qbw_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.obw_1.tbv_1));
            if (this.pbw_1.vbv_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.qbw_1.b62(90, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.rbw_1 = suspendResult;
            this.pbw_1.vbv_1 = this.rbw_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.pbw_1.ebw_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.obw_1.ubv_1.insertAsync(this.pbw_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.pbw_1.vbv_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseAssignmentSubmissionFileDao_DoorWrapper(_db, _dao) {
    CourseAssignmentSubmissionFileDao.call(this);
    this.tbv_1 = _db;
    this.ubv_1 = _dao;
  }
  protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).wbu = function (entityList, $completion) {
    var tmp = new $insertListAsyncCOROUTINE$159(this, entityList, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).xbu = function (submissionUid) {
    return this.ubv_1.xbu(submissionUid);
  };
  protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).ybu = function (accountPersonUid, assignmentUid) {
    return this.ubv_1.ybu(accountPersonUid, assignmentUid);
  };
  protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).zbu = function (submitterUid, assignmentUid) {
    return this.ubv_1.zbu(submitterUid, assignmentUid);
  };
  protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).abv = function (casaUid, uri, updateTime, $completion) {
    return this.ubv_1.abv(casaUid, uri, updateTime, $completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).bbv = function (casaUid, deleted, updateTime, $completion) {
    return this.ubv_1.bbv(casaUid, deleted, updateTime, $completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).sbw = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$160(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.sbw(entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE(), $completion);
  };
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda$lambda(_result) {
    return mapRows(_result, CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda$lambda$lambda(_result));
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_CourseAssignmentSubmissionFile_nullCount = 0;
      var _tmp_casaUid = $_result.l5m('casaUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_casaSubmissionUid = $_result.l5m('casaSubmissionUid');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_casaSubmitterUid = $_result.l5m('casaSubmitterUid');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_casaCaUid = $_result.l5m('casaCaUid');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_casaClazzUid = $_result.l5m('casaClazzUid');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_casaMimeType = $_result.rz('casaMimeType');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_casaFileName = $_result.rz('casaFileName');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_casaUri = $_result.rz('casaUri');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_casaSize = $_result.k5m('casaSize');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_casaTimestamp = $_result.l5m('casaTimestamp');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_casaDeleted = $_result.w65('casaDeleted');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_CourseAssignmentSubmissionFile_isAllNull = _tmp_CourseAssignmentSubmissionFile_nullCount === 11;
      var _tmp_TransferJobItem_nullCount = 0;
      var _tmp_tjiUid = $_result.k5m('tjiUid');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_tjiTjUid = $_result.k5m('tjiTjUid');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_tjTotalSize = $_result.l5m('tjTotalSize');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_tjTransferred = $_result.l5m('tjTransferred');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_tjAttemptCount = $_result.k5m('tjAttemptCount');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_tjiSrc = $_result.rz('tjiSrc');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_tjiDest = $_result.rz('tjiDest');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_tjiType = $_result.k5m('tjiType');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_tjiStatus = $_result.k5m('tjiStatus');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_tjiTableId = $_result.k5m('tjiTableId');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_tjiEntityUid = $_result.l5m('tjiEntityUid');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_tjiEntityEtag = $_result.l5m('tjiEntityEtag');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_tjiLockIdToRelease = $_result.l5m('tjiLockIdToRelease');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_tjiPartialTmpFile = $_result.rz('tjiPartialTmpFile');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_TransferJobItem_isAllNull = _tmp_TransferJobItem_nullCount === 14;
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseAssignmentSubmissionFileAndTransferJob();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getBySubmissionUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_CourseAssignmentSubmissionFile_isAllNull) {
        var tmp_24 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new CourseAssignmentSubmissionFile();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getBySubmissionUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.vbv_1 = _tmp_casaUid;
        this_1.wbv_1 = _tmp_casaSubmissionUid;
        this_1.xbv_1 = _tmp_casaSubmitterUid;
        this_1.ybv_1 = _tmp_casaCaUid;
        this_1.zbv_1 = _tmp_casaClazzUid;
        this_1.abw_1 = _tmp_casaMimeType;
        this_1.bbw_1 = _tmp_casaFileName;
        this_1.cbw_1 = _tmp_casaUri;
        this_1.dbw_1 = _tmp_casaSize;
        this_1.ebw_1 = _tmp_casaTimestamp;
        this_1.fbw_1 = _tmp_casaDeleted;
        tmp_24.tbw_1 = this_1;
      }
      if (!_tmp_TransferJobItem_isAllNull) {
        var tmp_25 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new TransferJobItem();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getBySubmissionUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.vbw_1 = _tmp_tjiUid;
        this_2.wbw_1 = _tmp_tjiTjUid;
        this_2.xbw_1 = _tmp_tjTotalSize;
        this_2.ybw_1 = _tmp_tjTransferred;
        this_2.zbw_1 = _tmp_tjAttemptCount;
        this_2.abx_1 = _tmp_tjiSrc;
        this_2.bbx_1 = _tmp_tjiDest;
        this_2.cbx_1 = _tmp_tjiType;
        this_2.dbx_1 = _tmp_tjiStatus;
        this_2.ebx_1 = _tmp_tjiTableId;
        this_2.fbx_1 = _tmp_tjiEntityUid;
        this_2.gbx_1 = _tmp_tjiEntityEtag;
        this_2.hbx_1 = _tmp_tjiLockIdToRelease;
        this_2.ibx_1 = _tmp_tjiPartialTmpFile;
        tmp_25.ubw_1 = this_2;
      }
      return this_0;
    };
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda($submissionUid, resultContinuation) {
    this.rbx_1 = $submissionUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda).tbx = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda).he = function (p1, $completion) {
    return this.tbx((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.sbx_1.i5h(1, this.rbx_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.sbx_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda(this.rbx_1, completion);
    i.sbx_1 = _stmt;
    return i;
  };
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda_0($submissionUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda($submissionUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.tbx(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda$lambda(_result) {
    return mapRows(_result, CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda$lambda$lambda(_result));
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_CourseAssignmentSubmissionFile_nullCount = 0;
      var _tmp_casaUid = $_result.l5m('casaUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_casaSubmissionUid = $_result.l5m('casaSubmissionUid');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_casaSubmitterUid = $_result.l5m('casaSubmitterUid');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_casaCaUid = $_result.l5m('casaCaUid');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_casaClazzUid = $_result.l5m('casaClazzUid');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_casaMimeType = $_result.rz('casaMimeType');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_casaFileName = $_result.rz('casaFileName');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_casaUri = $_result.rz('casaUri');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_casaSize = $_result.k5m('casaSize');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_casaTimestamp = $_result.l5m('casaTimestamp');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_casaDeleted = $_result.w65('casaDeleted');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_CourseAssignmentSubmissionFile_isAllNull = _tmp_CourseAssignmentSubmissionFile_nullCount === 11;
      var _tmp_TransferJobItem_nullCount = 0;
      var _tmp_tjiUid = $_result.k5m('tjiUid');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_tjiTjUid = $_result.k5m('tjiTjUid');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_tjTotalSize = $_result.l5m('tjTotalSize');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_tjTransferred = $_result.l5m('tjTransferred');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_tjAttemptCount = $_result.k5m('tjAttemptCount');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_tjiSrc = $_result.rz('tjiSrc');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_tjiDest = $_result.rz('tjiDest');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_tjiType = $_result.k5m('tjiType');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_tjiStatus = $_result.k5m('tjiStatus');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_tjiTableId = $_result.k5m('tjiTableId');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_tjiEntityUid = $_result.l5m('tjiEntityUid');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_tjiEntityEtag = $_result.l5m('tjiEntityEtag');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_tjiLockIdToRelease = $_result.l5m('tjiLockIdToRelease');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_tjiPartialTmpFile = $_result.rz('tjiPartialTmpFile');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_TransferJobItem_isAllNull = _tmp_TransferJobItem_nullCount === 14;
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseAssignmentSubmissionFileAndTransferJob();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getByAssignmentUidAndPersonUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_CourseAssignmentSubmissionFile_isAllNull) {
        var tmp_24 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new CourseAssignmentSubmissionFile();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getByAssignmentUidAndPersonUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.vbv_1 = _tmp_casaUid;
        this_1.wbv_1 = _tmp_casaSubmissionUid;
        this_1.xbv_1 = _tmp_casaSubmitterUid;
        this_1.ybv_1 = _tmp_casaCaUid;
        this_1.zbv_1 = _tmp_casaClazzUid;
        this_1.abw_1 = _tmp_casaMimeType;
        this_1.bbw_1 = _tmp_casaFileName;
        this_1.cbw_1 = _tmp_casaUri;
        this_1.dbw_1 = _tmp_casaSize;
        this_1.ebw_1 = _tmp_casaTimestamp;
        this_1.fbw_1 = _tmp_casaDeleted;
        tmp_24.tbw_1 = this_1;
      }
      if (!_tmp_TransferJobItem_isAllNull) {
        var tmp_25 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new TransferJobItem();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getByAssignmentUidAndPersonUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.vbw_1 = _tmp_tjiUid;
        this_2.wbw_1 = _tmp_tjiTjUid;
        this_2.xbw_1 = _tmp_tjTotalSize;
        this_2.ybw_1 = _tmp_tjTransferred;
        this_2.zbw_1 = _tmp_tjAttemptCount;
        this_2.abx_1 = _tmp_tjiSrc;
        this_2.bbx_1 = _tmp_tjiDest;
        this_2.cbx_1 = _tmp_tjiType;
        this_2.dbx_1 = _tmp_tjiStatus;
        this_2.ebx_1 = _tmp_tjiTableId;
        this_2.fbx_1 = _tmp_tjiEntityUid;
        this_2.gbx_1 = _tmp_tjiEntityEtag;
        this_2.hbx_1 = _tmp_tjiLockIdToRelease;
        this_2.ibx_1 = _tmp_tjiPartialTmpFile;
        tmp_25.ubw_1 = this_2;
      }
      return this_0;
    };
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation) {
    this.cby_1 = $assignmentUid;
    this.dby_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda).tbx = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda).he = function (p1, $completion) {
    return this.tbx((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.eby_1.i5h(1, this.cby_1);
            this.eby_1.i5h(2, this.cby_1);
            this.eby_1.i5h(3, this.dby_1);
            this.eby_1.i5h(4, this.cby_1);
            this.eby_1.i5h(5, this.cby_1);
            this.eby_1.i5h(6, this.dby_1);
            this.eby_1.i5h(7, this.cby_1);
            this.eby_1.i5h(8, this.dby_1);
            this.eby_1.i5h(9, this.cby_1);
            this.eby_1.i5h(10, this.cby_1);
            this.eby_1.i5h(11, this.dby_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.eby_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda(this.cby_1, this.dby_1, completion);
    i.eby_1 = _stmt;
    return i;
  };
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda_0($assignmentUid, $accountPersonUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.tbx(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda$lambda(_result) {
    return mapRows(_result, CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_CourseAssignmentSubmissionFile_nullCount = 0;
      var _tmp_casaUid = $_result.l5m('casaUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_casaSubmissionUid = $_result.l5m('casaSubmissionUid');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_casaSubmitterUid = $_result.l5m('casaSubmitterUid');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_casaCaUid = $_result.l5m('casaCaUid');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_casaClazzUid = $_result.l5m('casaClazzUid');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_casaMimeType = $_result.rz('casaMimeType');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_casaFileName = $_result.rz('casaFileName');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_casaUri = $_result.rz('casaUri');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_casaSize = $_result.k5m('casaSize');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_casaTimestamp = $_result.l5m('casaTimestamp');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_casaDeleted = $_result.w65('casaDeleted');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_CourseAssignmentSubmissionFile_isAllNull = _tmp_CourseAssignmentSubmissionFile_nullCount === 11;
      var _tmp_TransferJobItem_nullCount = 0;
      var _tmp_tjiUid = $_result.k5m('tjiUid');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_tjiTjUid = $_result.k5m('tjiTjUid');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_tjTotalSize = $_result.l5m('tjTotalSize');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_tjTransferred = $_result.l5m('tjTransferred');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_tjAttemptCount = $_result.k5m('tjAttemptCount');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_tjiSrc = $_result.rz('tjiSrc');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_tjiDest = $_result.rz('tjiDest');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_tjiType = $_result.k5m('tjiType');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_tjiStatus = $_result.k5m('tjiStatus');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_tjiTableId = $_result.k5m('tjiTableId');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_tjiEntityUid = $_result.l5m('tjiEntityUid');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_tjiEntityEtag = $_result.l5m('tjiEntityEtag');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_tjiLockIdToRelease = $_result.l5m('tjiLockIdToRelease');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_tjiPartialTmpFile = $_result.rz('tjiPartialTmpFile');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_TransferJobItem_isAllNull = _tmp_TransferJobItem_nullCount === 14;
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseAssignmentSubmissionFileAndTransferJob();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getAllSubmissionFilesFromSubmitterAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_CourseAssignmentSubmissionFile_isAllNull) {
        var tmp_24 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new CourseAssignmentSubmissionFile();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getAllSubmissionFilesFromSubmitterAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.vbv_1 = _tmp_casaUid;
        this_1.wbv_1 = _tmp_casaSubmissionUid;
        this_1.xbv_1 = _tmp_casaSubmitterUid;
        this_1.ybv_1 = _tmp_casaCaUid;
        this_1.zbv_1 = _tmp_casaClazzUid;
        this_1.abw_1 = _tmp_casaMimeType;
        this_1.bbw_1 = _tmp_casaFileName;
        this_1.cbw_1 = _tmp_casaUri;
        this_1.dbw_1 = _tmp_casaSize;
        this_1.ebw_1 = _tmp_casaTimestamp;
        this_1.fbw_1 = _tmp_casaDeleted;
        tmp_24.tbw_1 = this_1;
      }
      if (!_tmp_TransferJobItem_isAllNull) {
        var tmp_25 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new TransferJobItem();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getAllSubmissionFilesFromSubmitterAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.vbw_1 = _tmp_tjiUid;
        this_2.wbw_1 = _tmp_tjiTjUid;
        this_2.xbw_1 = _tmp_tjTotalSize;
        this_2.ybw_1 = _tmp_tjTransferred;
        this_2.zbw_1 = _tmp_tjAttemptCount;
        this_2.abx_1 = _tmp_tjiSrc;
        this_2.bbx_1 = _tmp_tjiDest;
        this_2.cbx_1 = _tmp_tjiType;
        this_2.dbx_1 = _tmp_tjiStatus;
        this_2.ebx_1 = _tmp_tjiTableId;
        this_2.fbx_1 = _tmp_tjiEntityUid;
        this_2.gbx_1 = _tmp_tjiEntityEtag;
        this_2.hbx_1 = _tmp_tjiLockIdToRelease;
        this_2.ibx_1 = _tmp_tjiPartialTmpFile;
        tmp_25.ubw_1 = this_2;
      }
      return this_0;
    };
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda($submitterUid, $assignmentUid, resultContinuation) {
    this.nby_1 = $submitterUid;
    this.oby_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda).tbx = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.tbx((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.pby_1.i5h(1, this.nby_1);
            this.pby_1.i5h(2, this.oby_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.pby_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda(this.nby_1, this.oby_1, completion);
    i.pby_1 = _stmt;
    return i;
  };
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda_0($submitterUid, $assignmentUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda($submitterUid, $assignmentUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.tbx(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.qby_1);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO CourseAssignmentSubmissionFile (casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1).uby = function (stmt, entity) {
    if (entity.vbv_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.vbv_1);
    }
    stmt.i5h(2, entity.wbv_1);
    stmt.i5h(3, entity.xbv_1);
    stmt.i5h(4, entity.ybv_1);
    stmt.i5h(5, entity.zbv_1);
    stmt.l5h(6, entity.abw_1);
    stmt.l5h(7, entity.bbw_1);
    stmt.l5h(8, entity.cbw_1);
    stmt.h5h(9, entity.dbw_1);
    stmt.i5h(10, entity.ebw_1);
    stmt.v5g(11, entity.fbw_1);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1).c5f = function (stmt, entity) {
    return this.uby(stmt, entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE());
  };
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda(this$0, $submissionUid, resultContinuation) {
    this.dbz_1 = this$0;
    this.ebz_1 = $submissionUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda).fbz = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda).z77 = function ($completion) {
    return this.fbz($completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT CourseAssignmentSubmissionFile.*, TransferJobItem.*\n          FROM CourseAssignmentSubmissionFile\n               LEFT JOIN TransferJobItem\n                         ON TransferJobItem.tjiEntityUid = CourseAssignmentSubmissionFile.casaUid\n                            AND TransferJobItem.tjiTableId = 90\n         WHERE CourseAssignmentSubmissionFile.casaSubmissionUid = CAST(? AS BIGINT)\n           AND NOT CourseAssignmentSubmissionFile.casaDeleted\n    ', VOID, VOID, VOID, '\n        SELECT CourseAssignmentSubmissionFile.*, TransferJobItem.*\n          FROM CourseAssignmentSubmissionFile\n               LEFT JOIN TransferJobItem\n                         ON TransferJobItem.tjiEntityUid = CourseAssignmentSubmissionFile.casaUid\n                            AND TransferJobItem.tjiTableId = 90\n         WHERE CourseAssignmentSubmissionFile.casaSubmissionUid = ?\n           AND NOT CourseAssignmentSubmissionFile.casaDeleted\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.dbz_1.qby_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda_0(this.ebz_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda).y77 = function (completion) {
    return new CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda(this.dbz_1, this.ebz_1, completion);
  };
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda_0(this$0, $submissionUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda(this$0, $submissionUid, resultContinuation);
    var l = function ($completion) {
      return i.fbz($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation) {
    this.obz_1 = this$0;
    this.pbz_1 = $assignmentUid;
    this.qbz_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda).fbz = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda).z77 = function ($completion) {
    return this.fbz($completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT CourseAssignmentSubmissionFile.*, TransferJobItem.*\n          FROM CourseAssignmentSubmissionFile\n               LEFT JOIN TransferJobItem\n                         ON TransferJobItem.tjiEntityUid = CourseAssignmentSubmissionFile.casaUid\n                            AND TransferJobItem.tjiTableId = 90\n         WHERE CourseAssignmentSubmissionFile.casaSubmissionUid IN\n               (SELECT CourseAssignmentSubmission.casUid\n                  FROM CourseAssignmentSubmission\n                 WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n                   AND CourseAssignmentSubmission.casSubmitterUid = \n                       (\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = CAST(? AS BIGINT))\n                              AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n                            LIMIT 1), -1)\n                    END\n    ))\n           AND NOT CourseAssignmentSubmissionFile.casaDeleted        \n    ', VOID, VOID, VOID, '\n        SELECT CourseAssignmentSubmissionFile.*, TransferJobItem.*\n          FROM CourseAssignmentSubmissionFile\n               LEFT JOIN TransferJobItem\n                         ON TransferJobItem.tjiEntityUid = CourseAssignmentSubmissionFile.casaUid\n                            AND TransferJobItem.tjiTableId = 90\n         WHERE CourseAssignmentSubmissionFile.casaSubmissionUid IN\n               (SELECT CourseAssignmentSubmission.casUid\n                  FROM CourseAssignmentSubmission\n                 WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n                   AND CourseAssignmentSubmission.casSubmitterUid = \n                       (\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = ?)\n                              AND CourseGroupMember.cgmPersonUid = ?\n                            LIMIT 1), -1)\n                    END\n    ))\n           AND NOT CourseAssignmentSubmissionFile.casaDeleted        \n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.obz_1.qby_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda_0(this.pbz_1, this.qbz_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda).y77 = function (completion) {
    return new CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda(this.obz_1, this.pbz_1, this.qbz_1, completion);
  };
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda_0(this$0, $assignmentUid, $accountPersonUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.fbz($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation) {
    this.zbz_1 = this$0;
    this.ac0_1 = $submitterUid;
    this.bc0_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda).fbz = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda).z77 = function ($completion) {
    return this.fbz($completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT CourseAssignmentSubmissionFile.*, TransferJobItem.*\n          FROM CourseAssignmentSubmissionFile\n               LEFT JOIN TransferJobItem\n                         ON TransferJobItem.tjiEntityUid = CourseAssignmentSubmissionFile.casaUid\n                            AND TransferJobItem.tjiTableId = 90\n         WHERE CourseAssignmentSubmissionFile.casaSubmitterUid = CAST(? AS BIGINT)\n           AND CourseAssignmentSubmissionFile.casaCaUid = CAST(? AS BIGINT)\n           AND NOT CourseAssignmentSubmissionFile.casaDeleted\n    ', VOID, VOID, VOID, '\n        SELECT CourseAssignmentSubmissionFile.*, TransferJobItem.*\n          FROM CourseAssignmentSubmissionFile\n               LEFT JOIN TransferJobItem\n                         ON TransferJobItem.tjiEntityUid = CourseAssignmentSubmissionFile.casaUid\n                            AND TransferJobItem.tjiTableId = 90\n         WHERE CourseAssignmentSubmissionFile.casaSubmitterUid = ?\n           AND CourseAssignmentSubmissionFile.casaCaUid = ?\n           AND NOT CourseAssignmentSubmissionFile.casaDeleted\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.zbz_1.qby_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda_0(this.ac0_1, this.bc0_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda).y77 = function (completion) {
    return new CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this.zbz_1, this.ac0_1, this.bc0_1, completion);
  };
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda_0(this$0, $submitterUid, $assignmentUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation);
    var l = function ($completion) {
      return i.fbz($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda($uri, $updateTime, $casaUid, resultContinuation) {
    this.kc0_1 = $uri;
    this.lc0_1 = $updateTime;
    this.mc0_1 = $casaUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.nc0_1.l5h(1, this.kc0_1);
            this.nc0_1.i5h(2, this.lc0_1);
            this.nc0_1.i5h(3, this.mc0_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.nc0_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda).z5e = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda(this.kc0_1, this.lc0_1, this.mc0_1, completion);
    i.nc0_1 = _stmt;
    return i;
  };
  function CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda_0($uri, $updateTime, $casaUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda($uri, $updateTime, $casaUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda($deleted, $updateTime, $casaUid, resultContinuation) {
    this.wc0_1 = $deleted;
    this.xc0_1 = $updateTime;
    this.yc0_1 = $casaUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.zc0_1.v5g(1, this.wc0_1);
            this.zc0_1.i5h(2, this.xc0_1);
            this.zc0_1.i5h(3, this.yc0_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.zc0_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda).z5e = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda(this.wc0_1, this.xc0_1, this.yc0_1, completion);
    i.zc0_1 = _stmt;
    return i;
  };
  function CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda_0($deleted, $updateTime, $casaUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda($deleted, $updateTime, $casaUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$161(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ic1_1 = _this__u8e3s4;
    this.jc1_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$161).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.ic1_1.rby_1.j5g(this.jc1_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateUriCOROUTINE$162(_this__u8e3s4, casaUid, uri, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.sc1_1 = _this__u8e3s4;
    this.tc1_1 = casaUid;
    this.uc1_1 = uri;
    this.vc1_1 = updateTime;
  }
  protoOf($updateUriCOROUTINE$162).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE CourseAssignmentSubmissionFile\n           SET casaUri = ?,\n               casaTimestamp = CAST(? AS BIGINT)\n         WHERE casaUid = CAST(? AS BIGINT)\n    ', VOID, VOID, VOID, '\n        UPDATE CourseAssignmentSubmissionFile\n           SET casaUri = ?,\n               casaTimestamp = ?\n         WHERE casaUid = ?\n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.sc1_1.qby_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda_0(this.uc1_1, this.vc1_1, this.tc1_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $setDeletedCOROUTINE$163(_this__u8e3s4, casaUid, deleted, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ec2_1 = _this__u8e3s4;
    this.fc2_1 = casaUid;
    this.gc2_1 = deleted;
    this.hc2_1 = updateTime;
  }
  protoOf($setDeletedCOROUTINE$163).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE CourseAssignmentSubmissionFile\n           SET casaDeleted = ?,\n               casaTimestamp = CAST(? AS BIGINT)\n         WHERE casaUid = CAST(? AS BIGINT)\n    ', VOID, VOID, VOID, '\n        UPDATE CourseAssignmentSubmissionFile\n           SET casaDeleted = ?,\n               casaTimestamp = ?\n         WHERE casaUid = ?\n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.ec2_1.qby_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda_0(this.gc2_1, this.hc2_1, this.fc2_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseAssignmentSubmissionFileDao_JdbcImpl(_db) {
    CourseAssignmentSubmissionFileDao.call(this);
    this.qby_1 = _db;
    var tmp = this;
    tmp.rby_1 = new CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1(this);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).wbu = function (entityList, $completion) {
    return this.rby_1.m5g(entityList, $completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).sbw = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$161(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.sbw(entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE(), $completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).xbu = function (submissionUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['TransferJobItem', 'CourseAssignmentSubmissionFile'];
    return doorFlow(this.qby_1, tmp, CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda_0(this, submissionUid, null));
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).ybu = function (accountPersonUid, assignmentUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['CourseAssignmentSubmission', 'ClazzAssignment', 'TransferJobItem', 'CourseGroupMember', 'CourseAssignmentSubmissionFile', 'ClazzEnrolment'];
    return doorFlow(this.qby_1, tmp, CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda_0(this, assignmentUid, accountPersonUid, null));
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).zbu = function (submitterUid, assignmentUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['TransferJobItem', 'CourseAssignmentSubmissionFile'];
    return doorFlow(this.qby_1, tmp, CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda_0(this, submitterUid, assignmentUid, null));
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).abv = function (casaUid, uri, updateTime, $completion) {
    var tmp = new $updateUriCOROUTINE$162(this, casaUid, uri, updateTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).bbv = function (casaUid, deleted, updateTime, $completion) {
    var tmp = new $setDeletedCOROUTINE$163(this, casaUid, deleted, updateTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation) {
    this.qc2_1 = this$0;
    this.rc2_1 = $entityList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.qc2_1.uc2_1.wbu(this.rc2_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda).y77 = function (completion) {
    return new CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda(this.qc2_1, this.rc2_1, completion);
  };
  function CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda_0(this$0, $entityList, resultContinuation) {
    var i = new CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation) {
    this.hc3_1 = this$0;
    this.ic3_1 = $accountPersonUid;
    this.jc3_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.kc3_1 = this.hc3_1.tc2_1;
            var tmp_1 = this;
            tmp_1.lc3_1 = 'CourseAssignmentSubmissionFileDao/getByAssignmentUidAndPersonUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.mc3_1 = this.hc3_1.vc2_1;
            var tmp_3 = this;
            tmp_3.nc3_1 = this.mc3_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.hc3_1.tc2_1.w38(), 'CourseAssignmentSubmissionFileDao/getByAssignmentUidAndPersonUid');
            doorNodeIdHeader(this_0, this.hc3_1.tc2_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.hc3_1.tc2_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ic3_1));
            parameter(this_0, 'assignmentUid', this.hc3_1.tc2_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.jc3_1));
            tmp_4.oc3_1 = this_0;
            this.oc3_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.pc3_1 = this.nc3_1;
            var tmp_6 = this;
            tmp_6.qc3_1 = this.oc3_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.qc3_1, this.pc3_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.rc3_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.hc3_1.sc2_1, this.rc3_1, this.hc3_1.tc2_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda$lambda(this.kc3_1, this.lc3_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda).y77 = function (completion) {
    return new CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda(this.hc3_1, this.ic3_1, this.jc3_1, completion);
  };
  function CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda_0(this$0, $accountPersonUid, $assignmentUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation) {
    this.ac4_1 = this$0;
    this.bc4_1 = $submitterUid;
    this.cc4_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.dc4_1 = this.ac4_1.tc2_1;
            var tmp_1 = this;
            tmp_1.ec4_1 = 'CourseAssignmentSubmissionFileDao/getAllSubmissionFilesFromSubmitterAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.fc4_1 = this.ac4_1.vc2_1;
            var tmp_3 = this;
            tmp_3.gc4_1 = this.fc4_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ac4_1.tc2_1.w38(), 'CourseAssignmentSubmissionFileDao/getAllSubmissionFilesFromSubmitterAsFlow');
            doorNodeIdHeader(this_0, this.ac4_1.tc2_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'submitterUid', this.ac4_1.tc2_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.bc4_1));
            parameter(this_0, 'assignmentUid', this.ac4_1.tc2_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.cc4_1));
            tmp_4.hc4_1 = this_0;
            this.hc4_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.ic4_1 = this.gc4_1;
            var tmp_6 = this;
            tmp_6.jc4_1 = this.hc4_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.jc4_1, this.ic4_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.kc4_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ac4_1.sc2_1, this.kc4_1, this.ac4_1.tc2_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda$lambda(this.dc4_1, this.ec4_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda).y77 = function (completion) {
    return new CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this.ac4_1, this.bc4_1, this.cc4_1, completion);
  };
  function CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda_0(this$0, $submitterUid, $assignmentUid, resultContinuation) {
    var i = new CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda(this$0, $casaUid, $uri, $updateTime, resultContinuation) {
    this.tc4_1 = this$0;
    this.uc4_1 = $casaUid;
    this.vc4_1 = $uri;
    this.wc4_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.tc4_1.uc2_1.abv(this.uc4_1, this.vc4_1, this.wc4_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda).y77 = function (completion) {
    return new CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda(this.tc4_1, this.uc4_1, this.vc4_1, this.wc4_1, completion);
  };
  function CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda_0(this$0, $casaUid, $uri, $updateTime, resultContinuation) {
    var i = new CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda(this$0, $casaUid, $uri, $updateTime, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda(this$0, $casaUid, $deleted, $updateTime, resultContinuation) {
    this.fc5_1 = this$0;
    this.gc5_1 = $casaUid;
    this.hc5_1 = $deleted;
    this.ic5_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.fc5_1.uc2_1.bbv(this.gc5_1, this.hc5_1, this.ic5_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda).y77 = function (completion) {
    return new CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda(this.fc5_1, this.gc5_1, this.hc5_1, this.ic5_1, completion);
  };
  function CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda_0(this$0, $casaUid, $deleted, $updateTime, resultContinuation) {
    var i = new CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda(this$0, $casaUid, $deleted, $updateTime, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.rc5_1 = this$0;
    this.sc5_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.rc5_1.uc2_1.insertAsync(this.sc5_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda(this.rc5_1, this.sc5_1, completion);
  };
  function CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$164(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.bc6_1 = _this__u8e3s4;
    this.cc6_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$164).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.bc6_1.tc2_1, 'CourseAssignmentSubmissionFile', CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda_0(this.bc6_1, this.cc6_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseAssignmentSubmissionFileDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    CourseAssignmentSubmissionFileDao.call(this);
    this.sc2_1 = _db;
    this.tc2_1 = _repo;
    this.uc2_1 = _dao;
    this.vc2_1 = _httpClient;
    this.wc2_1 = _clientId;
    this.xc2_1 = _endpoint;
    this.yc2_1 = new RepoDaoFlowHelper(this.tc2_1);
  }
  protoOf(CourseAssignmentSubmissionFileDao_Repo).wbu = function (entityList, $completion) {
    return withRepoChangeMonitorAsync(this.tc2_1, 'CourseAssignmentSubmissionFile', CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda_0(this, entityList, null), $completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo).xbu = function (submissionUid) {
    var _result = this.uc2_1.xbu(submissionUid);
    return _result;
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo).ybu = function (accountPersonUid, assignmentUid) {
    var tmp = this.uc2_1.ybu(accountPersonUid, assignmentUid);
    return this.yc2_1.b67(tmp, CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda_0(this, accountPersonUid, assignmentUid, null));
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo).zbu = function (submitterUid, assignmentUid) {
    var tmp = this.uc2_1.zbu(submitterUid, assignmentUid);
    return this.yc2_1.b67(tmp, CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda_0(this, submitterUid, assignmentUid, null));
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo).abv = function (casaUid, uri, updateTime, $completion) {
    return withRepoChangeMonitorAsync(this.tc2_1, 'CourseAssignmentSubmissionFile', CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda_0(this, casaUid, uri, updateTime, null), $completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo).bbv = function (casaUid, deleted, updateTime, $completion) {
    return withRepoChangeMonitorAsync(this.tc2_1, 'CourseAssignmentSubmissionFile', CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda_0(this, casaUid, deleted, updateTime, null), $completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo).sbw = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$164(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo).insertAsync = function (entity, $completion) {
    return this.sbw(entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE(), $completion);
  };
  function CourseBlockDao() {
  }
  function $upsertListAsyncCOROUTINE$166(_this__u8e3s4, entities, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.uc6_1 = _this__u8e3s4;
    this.vc6_1 = entities;
  }
  protoOf($upsertListAsyncCOROUTINE$166).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.wc6_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.uc6_1.dc7_1));
            var tmp_0 = this;
            tmp_0.xc6_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.yc6_1 = this.vc6_1.w();
            var tmp_2 = this;
            tmp_2.zc6_1 = this.yc6_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.zc6_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.ac7_1 = this.zc6_1.e();
            var tmp_3 = this;
            tmp_3.bc7_1 = this.ac7_1;
            if (this.bc7_1.w7w_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.wc6_1.b62(124, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.cc7_1 = suspendResult;
            this.bc7_1.w7w_1 = this.cc7_1;
            var this_0 = this.xc6_1;
            var element = this.cc7_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.bc7_1.p7x_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.uc6_1.ec7_1.hc6(this.vc6_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            return Unit_instance;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$167(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.nc7_1 = _this__u8e3s4;
    this.oc7_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$167).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.pc7_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.nc7_1.dc7_1));
            if (this.oc7_1.w7w_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.pc7_1.b62(124, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.qc7_1 = suspendResult;
            this.oc7_1.w7w_1 = this.qc7_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.oc7_1.p7x_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.nc7_1.ec7_1.insertAsync(this.oc7_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.oc7_1.w7w_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseBlockDao_DoorWrapper(_db, _dao) {
    CourseBlockDao.call(this);
    this.dc7_1 = _db;
    this.ec7_1 = _dao;
  }
  protoOf(CourseBlockDao_DoorWrapper).dc6 = function (uid) {
    return this.ec7_1.dc6(uid);
  };
  protoOf(CourseBlockDao_DoorWrapper).ec6 = function (clazzUid, includeInactive, $completion) {
    return this.ec7_1.ec6(clazzUid, includeInactive, $completion);
  };
  protoOf(CourseBlockDao_DoorWrapper).fc6 = function (clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid) {
    return this.ec7_1.fc6(clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid);
  };
  protoOf(CourseBlockDao_DoorWrapper).gc6 = function (cbUid, active, changeTime, $completion) {
    return this.ec7_1.gc6(cbUid, active, changeTime, $completion);
  };
  protoOf(CourseBlockDao_DoorWrapper).hc6 = function (entities, $completion) {
    var tmp = new $upsertListAsyncCOROUTINE$166(this, entities, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_DoorWrapper).ic6 = function (postUid, $completion) {
    return this.ec7_1.ic6(postUid, $completion);
  };
  protoOf(CourseBlockDao_DoorWrapper).jc6 = function (courseBlockUid, $completion) {
    return this.ec7_1.jc6(courseBlockUid, $completion);
  };
  protoOf(CourseBlockDao_DoorWrapper).kc6 = function (assignmentUid) {
    return this.ec7_1.kc6(assignmentUid);
  };
  protoOf(CourseBlockDao_DoorWrapper).lc6 = function (clazzUid) {
    return this.ec7_1.lc6(clazzUid);
  };
  protoOf(CourseBlockDao_DoorWrapper).rc7 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$167(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.rc7(entity instanceof CourseBlock ? entity : THROW_CCE(), $completion);
  };
  function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_CourseBlock_nullCount = 0;
      var _tmp_cbUid = $_result.l5m('cbUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_cbType = $_result.k5m('cbType');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_cbIndentLevel = $_result.k5m('cbIndentLevel');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_cbModuleParentBlockUid = $_result.l5m('cbModuleParentBlockUid');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_cbTitle = $_result.rz('cbTitle');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_cbDescription = $_result.rz('cbDescription');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_cbCompletionCriteria = $_result.k5m('cbCompletionCriteria');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_cbHideUntilDate = $_result.l5m('cbHideUntilDate');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_cbDeadlineDate = $_result.l5m('cbDeadlineDate');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_cbLateSubmissionPenalty = $_result.k5m('cbLateSubmissionPenalty');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_cbGracePeriodDate = $_result.l5m('cbGracePeriodDate');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_cbIndex = $_result.k5m('cbIndex');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_cbClazzUid = $_result.l5m('cbClazzUid');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_cbClazzSourcedId = $_result.rz('cbClazzSourcedId');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_cbActive = $_result.w65('cbActive');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_cbHidden = $_result.w65('cbHidden');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_cbEntityUid = $_result.l5m('cbEntityUid');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_cbLct = $_result.l5m('cbLct');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_cbSourcedId = $_result.rz('cbSourcedId');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_cbMetadata = $_result.rz('cbMetadata');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_cbCreatedByAppId = $_result.rz('cbCreatedByAppId');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23;
      var _tmp_CourseBlockPicture_nullCount = 0;
      var _tmp_cbpUid = $_result.l5m('cbpUid');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_cbpLct = $_result.l5m('cbpLct');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_cbpPictureUri = $_result.rz('cbpPictureUri');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_cbpThumbnailUri = $_result.rz('cbpThumbnailUri');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_CourseBlockPicture_isAllNull = _tmp_CourseBlockPicture_nullCount === 4;
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseBlockAndPicture();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByUidWithPictureAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_CourseBlock_isAllNull) {
        var tmp_26 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new CourseBlock();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByUidWithPictureAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.w7w_1 = _tmp_cbUid;
        this_1.x7w_1 = _tmp_cbType;
        this_1.y7w_1 = _tmp_cbIndentLevel;
        this_1.z7w_1 = _tmp_cbModuleParentBlockUid;
        this_1.a7x_1 = _tmp_cbTitle;
        this_1.b7x_1 = _tmp_cbDescription;
        this_1.c7x_1 = _tmp_cbCompletionCriteria;
        this_1.d7x_1 = _tmp_cbHideUntilDate;
        this_1.e7x_1 = _tmp_cbDeadlineDate;
        this_1.f7x_1 = _tmp_cbLateSubmissionPenalty;
        this_1.g7x_1 = _tmp_cbGracePeriodDate;
        this_1.h7x_1 = _tmp_cbMaxPoints;
        this_1.i7x_1 = _tmp_cbMinPoints;
        this_1.j7x_1 = _tmp_cbIndex;
        this_1.k7x_1 = _tmp_cbClazzUid;
        this_1.l7x_1 = _tmp_cbClazzSourcedId;
        this_1.m7x_1 = _tmp_cbActive;
        this_1.n7x_1 = _tmp_cbHidden;
        this_1.o7x_1 = _tmp_cbEntityUid;
        this_1.p7x_1 = _tmp_cbLct;
        this_1.q7x_1 = _tmp_cbSourcedId;
        this_1.r7x_1 = _tmp_cbMetadata;
        this_1.s7x_1 = _tmp_cbCreatedByAppId;
        tmp_26.sc7_1 = this_1;
      }
      if (!_tmp_CourseBlockPicture_isAllNull) {
        var tmp_27 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new CourseBlockPicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByUidWithPictureAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.z7x_1 = _tmp_cbpUid;
        this_2.a7y_1 = _tmp_cbpLct;
        this_2.b7y_1 = _tmp_cbpPictureUri;
        this_2.c7y_1 = _tmp_cbpThumbnailUri;
        tmp_27.tc7_1 = this_2;
      }
      return this_0;
    };
  }
  function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda($uid, resultContinuation) {
    this.cc8_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).ec8 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.ec8((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.dc8_1.i5h(1, this.cc8_1);
            this.dc8_1.i5h(2, this.cc8_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.dc8_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda(this.cc8_1, completion);
    i.dc8_1 = _stmt;
    return i;
  };
  function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda_0($uid, resultContinuation) {
    var i = new CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda($uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.ec8(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda$lambda(_result) {
    return mapRows(_result, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda$lambda$lambda(_result));
  }
  function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_assignmentCourseGroupSetName = $_result.rz('assignmentCourseGroupSetName');
      var _tmp_CourseBlock_nullCount = 0;
      var _tmp_cbUid = $_result.l5m('cbUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_cbType = $_result.k5m('cbType');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_cbIndentLevel = $_result.k5m('cbIndentLevel');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_cbModuleParentBlockUid = $_result.l5m('cbModuleParentBlockUid');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_cbTitle = $_result.rz('cbTitle');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_cbDescription = $_result.rz('cbDescription');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_cbCompletionCriteria = $_result.k5m('cbCompletionCriteria');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_cbHideUntilDate = $_result.l5m('cbHideUntilDate');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_cbDeadlineDate = $_result.l5m('cbDeadlineDate');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_cbLateSubmissionPenalty = $_result.k5m('cbLateSubmissionPenalty');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_cbGracePeriodDate = $_result.l5m('cbGracePeriodDate');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_cbIndex = $_result.k5m('cbIndex');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_cbClazzUid = $_result.l5m('cbClazzUid');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_cbClazzSourcedId = $_result.rz('cbClazzSourcedId');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_cbActive = $_result.w65('cbActive');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_cbHidden = $_result.w65('cbHidden');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_cbEntityUid = $_result.l5m('cbEntityUid');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_cbLct = $_result.l5m('cbLct');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_cbSourcedId = $_result.rz('cbSourcedId');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_cbMetadata = $_result.rz('cbMetadata');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_cbCreatedByAppId = $_result.rz('cbCreatedByAppId');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23;
      var _tmp_CourseBlockPicture_nullCount = 0;
      var _tmp_cbpUid = $_result.l5m('cbpUid');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_cbpLct = $_result.l5m('cbpLct');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_cbpPictureUri = $_result.rz('cbpPictureUri');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_cbpThumbnailUri = $_result.rz('cbpThumbnailUri');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_CourseBlockPicture_isAllNull = _tmp_CourseBlockPicture_nullCount === 4;
      var _tmp_ContentEntry_nullCount = 0;
      var _tmp_contentEntryUid = $_result.l5m('contentEntryUid');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_title = $_result.rz('title');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_description = $_result.rz('description');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_entryId = $_result.rz('entryId');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_author = $_result.rz('author');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_publisher = $_result.rz('publisher');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_licenseType = $_result.k5m('licenseType');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_licenseName = $_result.rz('licenseName');
      var tmp_33;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_licenseUrl = $_result.rz('licenseUrl');
      var tmp_34;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_sourceUrl = $_result.rz('sourceUrl');
      var tmp_35;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_thumbnailUrl = $_result.rz('thumbnailUrl');
      var tmp_36;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_lastModified = $_result.l5m('lastModified');
      var tmp_37;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_primaryLanguageUid = $_result.l5m('primaryLanguageUid');
      var tmp_38;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_languageVariantUid = $_result.l5m('languageVariantUid');
      var tmp_39;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_contentFlags = $_result.k5m('contentFlags');
      var tmp_40;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_leaf = $_result.w65('leaf');
      var tmp_41;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_publik = $_result.w65('publik');
      var tmp_42;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_ceInactive = $_result.w65('ceInactive');
      var tmp_43;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_completionCriteria = $_result.k5m('completionCriteria');
      var tmp_44;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_minScore = $_result.k5m('minScore');
      var tmp_45;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_45 = Unit_instance;
      }
      var _tmp_contentTypeFlag = $_result.k5m('contentTypeFlag');
      var tmp_46;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_46 = Unit_instance;
      }
      var _tmp_contentOwner = $_result.l5m('contentOwner');
      var tmp_47;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_47 = Unit_instance;
      }
      var _tmp_contentOwnerType = $_result.k5m('contentOwnerType');
      var tmp_48;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_48 = Unit_instance;
      }
      var _tmp_contentEntryLocalChangeSeqNum = $_result.l5m('contentEntryLocalChangeSeqNum');
      var tmp_49;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_49 = Unit_instance;
      }
      var _tmp_contentEntryMasterChangeSeqNum = $_result.l5m('contentEntryMasterChangeSeqNum');
      var tmp_50;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_50 = Unit_instance;
      }
      var _tmp_contentEntryLastChangedBy = $_result.k5m('contentEntryLastChangedBy');
      var tmp_51;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_51 = Unit_instance;
      }
      var _tmp_contentEntryLct = $_result.l5m('contentEntryLct');
      var tmp_52;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_52 = Unit_instance;
      }
      var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27;
      var _tmp_Language_nullCount = 0;
      var _tmp_langUid = $_result.l5m('langUid');
      var tmp_53;
      if ($_result.d67()) {
        _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0;
        tmp_53 = Unit_instance;
      }
      var _tmp_name = $_result.rz('name');
      var tmp_54;
      if ($_result.d67()) {
        _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0;
        tmp_54 = Unit_instance;
      }
      var _tmp_iso_639_1_standard = $_result.rz('iso_639_1_standard');
      var tmp_55;
      if ($_result.d67()) {
        _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0;
        tmp_55 = Unit_instance;
      }
      var _tmp_iso_639_2_standard = $_result.rz('iso_639_2_standard');
      var tmp_56;
      if ($_result.d67()) {
        _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0;
        tmp_56 = Unit_instance;
      }
      var _tmp_iso_639_3_standard = $_result.rz('iso_639_3_standard');
      var tmp_57;
      if ($_result.d67()) {
        _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0;
        tmp_57 = Unit_instance;
      }
      var _tmp_Language_Type = $_result.rz('Language_Type');
      var tmp_58;
      if ($_result.d67()) {
        _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0;
        tmp_58 = Unit_instance;
      }
      var _tmp_languageActive = $_result.w65('languageActive');
      var tmp_59;
      if ($_result.d67()) {
        _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0;
        tmp_59 = Unit_instance;
      }
      var _tmp_langLocalChangeSeqNum = $_result.l5m('langLocalChangeSeqNum');
      var tmp_60;
      if ($_result.d67()) {
        _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0;
        tmp_60 = Unit_instance;
      }
      var _tmp_langMasterChangeSeqNum = $_result.l5m('langMasterChangeSeqNum');
      var tmp_61;
      if ($_result.d67()) {
        _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0;
        tmp_61 = Unit_instance;
      }
      var _tmp_langLastChangedBy = $_result.k5m('langLastChangedBy');
      var tmp_62;
      if ($_result.d67()) {
        _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0;
        tmp_62 = Unit_instance;
      }
      var _tmp_langLct = $_result.l5m('langLct');
      var tmp_63;
      if ($_result.d67()) {
        _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0;
        tmp_63 = Unit_instance;
      }
      var _tmp_Language_isAllNull = _tmp_Language_nullCount === 11;
      var _tmp_ClazzAssignment_nullCount = 0;
      var _tmp_caUid = $_result.l5m('caUid');
      var tmp_64;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_64 = Unit_instance;
      }
      var _tmp_caTitle = $_result.rz('caTitle');
      var tmp_65;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_65 = Unit_instance;
      }
      var _tmp_caDescription = $_result.rz('caDescription');
      var tmp_66;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_66 = Unit_instance;
      }
      var _tmp_caGroupUid = $_result.l5m('caGroupUid');
      var tmp_67;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_67 = Unit_instance;
      }
      var _tmp_caActive = $_result.w65('caActive');
      var tmp_68;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_68 = Unit_instance;
      }
      var _tmp_caClassCommentEnabled = $_result.w65('caClassCommentEnabled');
      var tmp_69;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_69 = Unit_instance;
      }
      var _tmp_caPrivateCommentsEnabled = $_result.w65('caPrivateCommentsEnabled');
      var tmp_70;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_70 = Unit_instance;
      }
      var _tmp_caCompletionCriteria = $_result.k5m('caCompletionCriteria');
      var tmp_71;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_71 = Unit_instance;
      }
      var _tmp_caRequireFileSubmission = $_result.w65('caRequireFileSubmission');
      var tmp_72;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_72 = Unit_instance;
      }
      var _tmp_caFileType = $_result.k5m('caFileType');
      var tmp_73;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_73 = Unit_instance;
      }
      var _tmp_caSizeLimit = $_result.k5m('caSizeLimit');
      var tmp_74;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_74 = Unit_instance;
      }
      var _tmp_caNumberOfFiles = $_result.k5m('caNumberOfFiles');
      var tmp_75;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_75 = Unit_instance;
      }
      var _tmp_caSubmissionPolicy = $_result.k5m('caSubmissionPolicy');
      var tmp_76;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_76 = Unit_instance;
      }
      var _tmp_caMarkingType = $_result.k5m('caMarkingType');
      var tmp_77;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_77 = Unit_instance;
      }
      var _tmp_caRequireTextSubmission = $_result.w65('caRequireTextSubmission');
      var tmp_78;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_78 = Unit_instance;
      }
      var _tmp_caTextLimitType = $_result.k5m('caTextLimitType');
      var tmp_79;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_79 = Unit_instance;
      }
      var _tmp_caTextLimit = $_result.k5m('caTextLimit');
      var tmp_80;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_80 = Unit_instance;
      }
      var _tmp_caXObjectUid = $_result.l5m('caXObjectUid');
      var tmp_81;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_81 = Unit_instance;
      }
      var _tmp_caClazzUid = $_result.l5m('caClazzUid');
      var tmp_82;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_82 = Unit_instance;
      }
      var _tmp_caPeerReviewerCount = $_result.k5m('caPeerReviewerCount');
      var tmp_83;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_83 = Unit_instance;
      }
      var _tmp_caLocalChangeSeqNum = $_result.l5m('caLocalChangeSeqNum');
      var tmp_84;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_84 = Unit_instance;
      }
      var _tmp_caMasterChangeSeqNum = $_result.l5m('caMasterChangeSeqNum');
      var tmp_85;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_85 = Unit_instance;
      }
      var _tmp_caLastChangedBy = $_result.k5m('caLastChangedBy');
      var tmp_86;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_86 = Unit_instance;
      }
      var _tmp_caLct = $_result.l5m('caLct');
      var tmp_87;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_87 = Unit_instance;
      }
      var _tmp_ClazzAssignment_isAllNull = _tmp_ClazzAssignment_nullCount === 24;
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseBlockAndDbEntities();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.kc8_1 = _tmp_assignmentCourseGroupSetName;
      if (!_tmp_CourseBlock_isAllNull) {
        var tmp_88 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new CourseBlock();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.w7w_1 = _tmp_cbUid;
        this_1.x7w_1 = _tmp_cbType;
        this_1.y7w_1 = _tmp_cbIndentLevel;
        this_1.z7w_1 = _tmp_cbModuleParentBlockUid;
        this_1.a7x_1 = _tmp_cbTitle;
        this_1.b7x_1 = _tmp_cbDescription;
        this_1.c7x_1 = _tmp_cbCompletionCriteria;
        this_1.d7x_1 = _tmp_cbHideUntilDate;
        this_1.e7x_1 = _tmp_cbDeadlineDate;
        this_1.f7x_1 = _tmp_cbLateSubmissionPenalty;
        this_1.g7x_1 = _tmp_cbGracePeriodDate;
        this_1.h7x_1 = _tmp_cbMaxPoints;
        this_1.i7x_1 = _tmp_cbMinPoints;
        this_1.j7x_1 = _tmp_cbIndex;
        this_1.k7x_1 = _tmp_cbClazzUid;
        this_1.l7x_1 = _tmp_cbClazzSourcedId;
        this_1.m7x_1 = _tmp_cbActive;
        this_1.n7x_1 = _tmp_cbHidden;
        this_1.o7x_1 = _tmp_cbEntityUid;
        this_1.p7x_1 = _tmp_cbLct;
        this_1.q7x_1 = _tmp_cbSourcedId;
        this_1.r7x_1 = _tmp_cbMetadata;
        this_1.s7x_1 = _tmp_cbCreatedByAppId;
        tmp_88.fc8_1 = this_1;
      }
      if (!_tmp_CourseBlockPicture_isAllNull) {
        var tmp_89 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new CourseBlockPicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.z7x_1 = _tmp_cbpUid;
        this_2.a7y_1 = _tmp_cbpLct;
        this_2.b7y_1 = _tmp_cbpPictureUri;
        this_2.c7y_1 = _tmp_cbpThumbnailUri;
        tmp_89.gc8_1 = this_2;
      }
      if (!_tmp_ContentEntry_isAllNull) {
        var tmp_90 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new ContentEntry();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.fah_1 = _tmp_contentEntryUid;
        this_3.gah_1 = _tmp_title;
        this_3.hah_1 = _tmp_description;
        this_3.iah_1 = _tmp_entryId;
        this_3.jah_1 = _tmp_author;
        this_3.kah_1 = _tmp_publisher;
        this_3.lah_1 = _tmp_licenseType;
        this_3.mah_1 = _tmp_licenseName;
        this_3.nah_1 = _tmp_licenseUrl;
        this_3.oah_1 = _tmp_sourceUrl;
        this_3.pah_1 = _tmp_thumbnailUrl;
        this_3.qah_1 = _tmp_lastModified;
        this_3.rah_1 = _tmp_primaryLanguageUid;
        this_3.sah_1 = _tmp_languageVariantUid;
        this_3.tah_1 = _tmp_contentFlags;
        this_3.uah_1 = _tmp_leaf;
        this_3.vah_1 = _tmp_publik;
        this_3.wah_1 = _tmp_ceInactive;
        this_3.xah_1 = _tmp_completionCriteria;
        this_3.yah_1 = _tmp_minScore;
        this_3.zah_1 = _tmp_contentTypeFlag;
        this_3.aai_1 = _tmp_contentOwner;
        this_3.bai_1 = _tmp_contentOwnerType;
        this_3.cai_1 = _tmp_contentEntryLocalChangeSeqNum;
        this_3.dai_1 = _tmp_contentEntryMasterChangeSeqNum;
        this_3.eai_1 = _tmp_contentEntryLastChangedBy;
        this_3.fai_1 = _tmp_contentEntryLct;
        tmp_90.hc8_1 = this_3;
      }
      if (!_tmp_Language_isAllNull) {
        var tmp_91 = this_0;
        // Inline function 'kotlin.apply' call
        var this_4 = new Language();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_4.lc8_1 = _tmp_langUid;
        this_4.mc8_1 = _tmp_name;
        this_4.nc8_1 = _tmp_iso_639_1_standard;
        this_4.oc8_1 = _tmp_iso_639_2_standard;
        this_4.pc8_1 = _tmp_iso_639_3_standard;
        this_4.qc8_1 = _tmp_Language_Type;
        this_4.rc8_1 = _tmp_languageActive;
        this_4.sc8_1 = _tmp_langLocalChangeSeqNum;
        this_4.tc8_1 = _tmp_langMasterChangeSeqNum;
        this_4.uc8_1 = _tmp_langLastChangedBy;
        this_4.vc8_1 = _tmp_langLct;
        tmp_91.ic8_1 = this_4;
      }
      if (!_tmp_ClazzAssignment_isAllNull) {
        var tmp_92 = this_0;
        // Inline function 'kotlin.apply' call
        var this_5 = new ClazzAssignment();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_5.q7s_1 = _tmp_caUid;
        this_5.r7s_1 = _tmp_caTitle;
        this_5.s7s_1 = _tmp_caDescription;
        this_5.t7s_1 = _tmp_caGroupUid;
        this_5.u7s_1 = _tmp_caActive;
        this_5.v7s_1 = _tmp_caClassCommentEnabled;
        this_5.w7s_1 = _tmp_caPrivateCommentsEnabled;
        this_5.x7s_1 = _tmp_caCompletionCriteria;
        this_5.y7s_1 = _tmp_caRequireFileSubmission;
        this_5.z7s_1 = _tmp_caFileType;
        this_5.a7t_1 = _tmp_caSizeLimit;
        this_5.b7t_1 = _tmp_caNumberOfFiles;
        this_5.c7t_1 = _tmp_caSubmissionPolicy;
        this_5.d7t_1 = _tmp_caMarkingType;
        this_5.e7t_1 = _tmp_caRequireTextSubmission;
        this_5.f7t_1 = _tmp_caTextLimitType;
        this_5.g7t_1 = _tmp_caTextLimit;
        this_5.h7t_1 = _tmp_caXObjectUid;
        this_5.i7t_1 = _tmp_caClazzUid;
        this_5.j7t_1 = _tmp_caPeerReviewerCount;
        this_5.k7t_1 = _tmp_caLocalChangeSeqNum;
        this_5.l7t_1 = _tmp_caMasterChangeSeqNum;
        this_5.m7t_1 = _tmp_caLastChangedBy;
        this_5.n7t_1 = _tmp_caLct;
        tmp_92.jc8_1 = this_5;
      }
      return this_0;
    };
  }
  function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda$lambda(_result) {
    return mapRows(_result, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_CourseBlock_nullCount = 0;
      var _tmp_cbUid = $_result.l5m('cbUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_cbType = $_result.k5m('cbType');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_cbIndentLevel = $_result.k5m('cbIndentLevel');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_cbModuleParentBlockUid = $_result.l5m('cbModuleParentBlockUid');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_cbTitle = $_result.rz('cbTitle');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_cbDescription = $_result.rz('cbDescription');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_cbCompletionCriteria = $_result.k5m('cbCompletionCriteria');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_cbHideUntilDate = $_result.l5m('cbHideUntilDate');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_cbDeadlineDate = $_result.l5m('cbDeadlineDate');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_cbLateSubmissionPenalty = $_result.k5m('cbLateSubmissionPenalty');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_cbGracePeriodDate = $_result.l5m('cbGracePeriodDate');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_cbIndex = $_result.k5m('cbIndex');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_cbClazzUid = $_result.l5m('cbClazzUid');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_cbClazzSourcedId = $_result.rz('cbClazzSourcedId');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_cbActive = $_result.w65('cbActive');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_cbHidden = $_result.w65('cbHidden');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_cbEntityUid = $_result.l5m('cbEntityUid');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_cbLct = $_result.l5m('cbLct');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_cbSourcedId = $_result.rz('cbSourcedId');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_cbMetadata = $_result.rz('cbMetadata');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_cbCreatedByAppId = $_result.rz('cbCreatedByAppId');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23;
      var _tmp_CourseBlockPicture_nullCount = 0;
      var _tmp_cbpUid = $_result.l5m('cbpUid');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_cbpLct = $_result.l5m('cbpLct');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_cbpPictureUri = $_result.rz('cbpPictureUri');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_cbpThumbnailUri = $_result.rz('cbpThumbnailUri');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_CourseBlockPicture_isAllNull = _tmp_CourseBlockPicture_nullCount === 4;
      var _tmp_ContentEntry_nullCount = 0;
      var _tmp_contentEntryUid = $_result.l5m('contentEntryUid');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_title = $_result.rz('title');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_description = $_result.rz('description');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_entryId = $_result.rz('entryId');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_author = $_result.rz('author');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_publisher = $_result.rz('publisher');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_licenseType = $_result.k5m('licenseType');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_licenseName = $_result.rz('licenseName');
      var tmp_33;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_licenseUrl = $_result.rz('licenseUrl');
      var tmp_34;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_sourceUrl = $_result.rz('sourceUrl');
      var tmp_35;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_thumbnailUrl = $_result.rz('thumbnailUrl');
      var tmp_36;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_lastModified = $_result.l5m('lastModified');
      var tmp_37;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_primaryLanguageUid = $_result.l5m('primaryLanguageUid');
      var tmp_38;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_languageVariantUid = $_result.l5m('languageVariantUid');
      var tmp_39;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_contentFlags = $_result.k5m('contentFlags');
      var tmp_40;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_leaf = $_result.w65('leaf');
      var tmp_41;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_publik = $_result.w65('publik');
      var tmp_42;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_ceInactive = $_result.w65('ceInactive');
      var tmp_43;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_completionCriteria = $_result.k5m('completionCriteria');
      var tmp_44;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_minScore = $_result.k5m('minScore');
      var tmp_45;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_45 = Unit_instance;
      }
      var _tmp_contentTypeFlag = $_result.k5m('contentTypeFlag');
      var tmp_46;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_46 = Unit_instance;
      }
      var _tmp_contentOwner = $_result.l5m('contentOwner');
      var tmp_47;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_47 = Unit_instance;
      }
      var _tmp_contentOwnerType = $_result.k5m('contentOwnerType');
      var tmp_48;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_48 = Unit_instance;
      }
      var _tmp_contentEntryLocalChangeSeqNum = $_result.l5m('contentEntryLocalChangeSeqNum');
      var tmp_49;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_49 = Unit_instance;
      }
      var _tmp_contentEntryMasterChangeSeqNum = $_result.l5m('contentEntryMasterChangeSeqNum');
      var tmp_50;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_50 = Unit_instance;
      }
      var _tmp_contentEntryLastChangedBy = $_result.k5m('contentEntryLastChangedBy');
      var tmp_51;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_51 = Unit_instance;
      }
      var _tmp_contentEntryLct = $_result.l5m('contentEntryLct');
      var tmp_52;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_52 = Unit_instance;
      }
      var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27;
      var _tmp_ContentEntryPicture2_nullCount = 0;
      var _tmp_cepUid = $_result.l5m('cepUid');
      var tmp_53;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_53 = Unit_instance;
      }
      var _tmp_cepLct = $_result.l5m('cepLct');
      var tmp_54;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_54 = Unit_instance;
      }
      var _tmp_cepPictureUri = $_result.rz('cepPictureUri');
      var tmp_55;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_55 = Unit_instance;
      }
      var _tmp_cepThumbnailUri = $_result.rz('cepThumbnailUri');
      var tmp_56;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_56 = Unit_instance;
      }
      var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4;
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseBlockAndDisplayDetails();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_CourseBlock_isAllNull) {
        var tmp_57 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new CourseBlock();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.w7w_1 = _tmp_cbUid;
        this_1.x7w_1 = _tmp_cbType;
        this_1.y7w_1 = _tmp_cbIndentLevel;
        this_1.z7w_1 = _tmp_cbModuleParentBlockUid;
        this_1.a7x_1 = _tmp_cbTitle;
        this_1.b7x_1 = _tmp_cbDescription;
        this_1.c7x_1 = _tmp_cbCompletionCriteria;
        this_1.d7x_1 = _tmp_cbHideUntilDate;
        this_1.e7x_1 = _tmp_cbDeadlineDate;
        this_1.f7x_1 = _tmp_cbLateSubmissionPenalty;
        this_1.g7x_1 = _tmp_cbGracePeriodDate;
        this_1.h7x_1 = _tmp_cbMaxPoints;
        this_1.i7x_1 = _tmp_cbMinPoints;
        this_1.j7x_1 = _tmp_cbIndex;
        this_1.k7x_1 = _tmp_cbClazzUid;
        this_1.l7x_1 = _tmp_cbClazzSourcedId;
        this_1.m7x_1 = _tmp_cbActive;
        this_1.n7x_1 = _tmp_cbHidden;
        this_1.o7x_1 = _tmp_cbEntityUid;
        this_1.p7x_1 = _tmp_cbLct;
        this_1.q7x_1 = _tmp_cbSourcedId;
        this_1.r7x_1 = _tmp_cbMetadata;
        this_1.s7x_1 = _tmp_cbCreatedByAppId;
        tmp_57.wc8_1 = this_1;
      }
      if (!_tmp_CourseBlockPicture_isAllNull) {
        var tmp_58 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new CourseBlockPicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.z7x_1 = _tmp_cbpUid;
        this_2.a7y_1 = _tmp_cbpLct;
        this_2.b7y_1 = _tmp_cbpPictureUri;
        this_2.c7y_1 = _tmp_cbpThumbnailUri;
        tmp_58.xc8_1 = this_2;
      }
      if (!_tmp_ContentEntry_isAllNull) {
        var tmp_59 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new ContentEntry();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.fah_1 = _tmp_contentEntryUid;
        this_3.gah_1 = _tmp_title;
        this_3.hah_1 = _tmp_description;
        this_3.iah_1 = _tmp_entryId;
        this_3.jah_1 = _tmp_author;
        this_3.kah_1 = _tmp_publisher;
        this_3.lah_1 = _tmp_licenseType;
        this_3.mah_1 = _tmp_licenseName;
        this_3.nah_1 = _tmp_licenseUrl;
        this_3.oah_1 = _tmp_sourceUrl;
        this_3.pah_1 = _tmp_thumbnailUrl;
        this_3.qah_1 = _tmp_lastModified;
        this_3.rah_1 = _tmp_primaryLanguageUid;
        this_3.sah_1 = _tmp_languageVariantUid;
        this_3.tah_1 = _tmp_contentFlags;
        this_3.uah_1 = _tmp_leaf;
        this_3.vah_1 = _tmp_publik;
        this_3.wah_1 = _tmp_ceInactive;
        this_3.xah_1 = _tmp_completionCriteria;
        this_3.yah_1 = _tmp_minScore;
        this_3.zah_1 = _tmp_contentTypeFlag;
        this_3.aai_1 = _tmp_contentOwner;
        this_3.bai_1 = _tmp_contentOwnerType;
        this_3.cai_1 = _tmp_contentEntryLocalChangeSeqNum;
        this_3.dai_1 = _tmp_contentEntryMasterChangeSeqNum;
        this_3.eai_1 = _tmp_contentEntryLastChangedBy;
        this_3.fai_1 = _tmp_contentEntryLct;
        tmp_59.yc8_1 = this_3;
      }
      if (!_tmp_ContentEntryPicture2_isAllNull) {
        var tmp_60 = this_0;
        // Inline function 'kotlin.apply' call
        var this_4 = new ContentEntryPicture2();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_4.vai_1 = _tmp_cepUid;
        this_4.wai_1 = _tmp_cepLct;
        this_4.xai_1 = _tmp_cepPictureUri;
        this_4.yai_1 = _tmp_cepThumbnailUri;
        tmp_60.zc8_1 = this_4;
      }
      return this_0;
    };
  }
  function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda($clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) {
    this.ic9_1 = $clazzUid;
    this.jc9_1 = $includeInactive;
    this.kc9_1 = $includeHidden;
    this.lc9_1 = $hideUntilFilterTime;
    this.mc9_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda).oc9 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.oc9((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.nc9_1.i5h(1, this.ic9_1);
            this.nc9_1.v5g(2, this.jc9_1);
            this.nc9_1.v5g(3, this.kc9_1);
            this.nc9_1.i5h(4, this.lc9_1);
            this.nc9_1.i5h(5, this.lc9_1);
            this.nc9_1.i5h(6, this.mc9_1);
            this.nc9_1.i5h(7, this.mc9_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.nc9_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda(this.ic9_1, this.jc9_1, this.kc9_1, this.lc9_1, this.mc9_1, completion);
    i.nc9_1 = _stmt;
    return i;
  };
  function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda_0($clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) {
    var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda($clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.oc9(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda$lambda(_result) {
    return mapNextRow(_result, null, CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda$lambda$lambda(_result));
  }
  function CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_clazzUid = $_result.l5m('clazzUid');
      var _tmp_courseBlockUid = $_result.l5m('courseBlockUid');
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseBlockUidAndClazzUid();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findCourseBlockAndClazzUidByDiscussionPostUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.pc9_1 = _tmp_clazzUid;
      this_0.qc9_1 = _tmp_courseBlockUid;
      return this_0;
    };
  }
  function CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda$lambda(_result) {
    var tmp = new Long(0, 0);
    return mapNextRow(_result, tmp, CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda$lambda$lambda(_result));
  }
  function CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.m5e(1);
    };
  }
  function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda$lambda$lambda(_result));
  }
  function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_CourseBlock_nullCount = 0;
      var _tmp_cbUid = $_result.l5m('cbUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_cbType = $_result.k5m('cbType');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_cbIndentLevel = $_result.k5m('cbIndentLevel');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_cbModuleParentBlockUid = $_result.l5m('cbModuleParentBlockUid');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_cbTitle = $_result.rz('cbTitle');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_cbDescription = $_result.rz('cbDescription');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_cbCompletionCriteria = $_result.k5m('cbCompletionCriteria');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_cbHideUntilDate = $_result.l5m('cbHideUntilDate');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_cbDeadlineDate = $_result.l5m('cbDeadlineDate');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_cbLateSubmissionPenalty = $_result.k5m('cbLateSubmissionPenalty');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_cbGracePeriodDate = $_result.l5m('cbGracePeriodDate');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_cbIndex = $_result.k5m('cbIndex');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_cbClazzUid = $_result.l5m('cbClazzUid');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_cbClazzSourcedId = $_result.rz('cbClazzSourcedId');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_cbActive = $_result.w65('cbActive');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_cbHidden = $_result.w65('cbHidden');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_cbEntityUid = $_result.l5m('cbEntityUid');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_cbLct = $_result.l5m('cbLct');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_cbSourcedId = $_result.rz('cbSourcedId');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_cbMetadata = $_result.rz('cbMetadata');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_cbCreatedByAppId = $_result.rz('cbCreatedByAppId');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23;
      var _tmp_ClazzAssignment_nullCount = 0;
      var _tmp_caUid = $_result.l5m('caUid');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_caTitle = $_result.rz('caTitle');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_caDescription = $_result.rz('caDescription');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_caGroupUid = $_result.l5m('caGroupUid');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_caActive = $_result.w65('caActive');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_caClassCommentEnabled = $_result.w65('caClassCommentEnabled');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_caPrivateCommentsEnabled = $_result.w65('caPrivateCommentsEnabled');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_caCompletionCriteria = $_result.k5m('caCompletionCriteria');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_caRequireFileSubmission = $_result.w65('caRequireFileSubmission');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_caFileType = $_result.k5m('caFileType');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_caSizeLimit = $_result.k5m('caSizeLimit');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_caNumberOfFiles = $_result.k5m('caNumberOfFiles');
      var tmp_33;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_caSubmissionPolicy = $_result.k5m('caSubmissionPolicy');
      var tmp_34;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_caMarkingType = $_result.k5m('caMarkingType');
      var tmp_35;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_caRequireTextSubmission = $_result.w65('caRequireTextSubmission');
      var tmp_36;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_caTextLimitType = $_result.k5m('caTextLimitType');
      var tmp_37;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_caTextLimit = $_result.k5m('caTextLimit');
      var tmp_38;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_caXObjectUid = $_result.l5m('caXObjectUid');
      var tmp_39;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_caClazzUid = $_result.l5m('caClazzUid');
      var tmp_40;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_caPeerReviewerCount = $_result.k5m('caPeerReviewerCount');
      var tmp_41;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_caLocalChangeSeqNum = $_result.l5m('caLocalChangeSeqNum');
      var tmp_42;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_caMasterChangeSeqNum = $_result.l5m('caMasterChangeSeqNum');
      var tmp_43;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_caLastChangedBy = $_result.k5m('caLastChangedBy');
      var tmp_44;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_caLct = $_result.l5m('caLct');
      var tmp_45;
      if ($_result.d67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_45 = Unit_instance;
      }
      var _tmp_ClazzAssignment_isAllNull = _tmp_ClazzAssignment_nullCount === 24;
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseBlockAndAssignment();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findCourseBlockByAssignmentUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_CourseBlock_isAllNull) {
        var tmp_46 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new CourseBlock();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findCourseBlockByAssignmentUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.w7w_1 = _tmp_cbUid;
        this_1.x7w_1 = _tmp_cbType;
        this_1.y7w_1 = _tmp_cbIndentLevel;
        this_1.z7w_1 = _tmp_cbModuleParentBlockUid;
        this_1.a7x_1 = _tmp_cbTitle;
        this_1.b7x_1 = _tmp_cbDescription;
        this_1.c7x_1 = _tmp_cbCompletionCriteria;
        this_1.d7x_1 = _tmp_cbHideUntilDate;
        this_1.e7x_1 = _tmp_cbDeadlineDate;
        this_1.f7x_1 = _tmp_cbLateSubmissionPenalty;
        this_1.g7x_1 = _tmp_cbGracePeriodDate;
        this_1.h7x_1 = _tmp_cbMaxPoints;
        this_1.i7x_1 = _tmp_cbMinPoints;
        this_1.j7x_1 = _tmp_cbIndex;
        this_1.k7x_1 = _tmp_cbClazzUid;
        this_1.l7x_1 = _tmp_cbClazzSourcedId;
        this_1.m7x_1 = _tmp_cbActive;
        this_1.n7x_1 = _tmp_cbHidden;
        this_1.o7x_1 = _tmp_cbEntityUid;
        this_1.p7x_1 = _tmp_cbLct;
        this_1.q7x_1 = _tmp_cbSourcedId;
        this_1.r7x_1 = _tmp_cbMetadata;
        this_1.s7x_1 = _tmp_cbCreatedByAppId;
        tmp_46.rc9_1 = this_1;
      }
      if (!_tmp_ClazzAssignment_isAllNull) {
        var tmp_47 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new ClazzAssignment();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findCourseBlockByAssignmentUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.q7s_1 = _tmp_caUid;
        this_2.r7s_1 = _tmp_caTitle;
        this_2.s7s_1 = _tmp_caDescription;
        this_2.t7s_1 = _tmp_caGroupUid;
        this_2.u7s_1 = _tmp_caActive;
        this_2.v7s_1 = _tmp_caClassCommentEnabled;
        this_2.w7s_1 = _tmp_caPrivateCommentsEnabled;
        this_2.x7s_1 = _tmp_caCompletionCriteria;
        this_2.y7s_1 = _tmp_caRequireFileSubmission;
        this_2.z7s_1 = _tmp_caFileType;
        this_2.a7t_1 = _tmp_caSizeLimit;
        this_2.b7t_1 = _tmp_caNumberOfFiles;
        this_2.c7t_1 = _tmp_caSubmissionPolicy;
        this_2.d7t_1 = _tmp_caMarkingType;
        this_2.e7t_1 = _tmp_caRequireTextSubmission;
        this_2.f7t_1 = _tmp_caTextLimitType;
        this_2.g7t_1 = _tmp_caTextLimit;
        this_2.h7t_1 = _tmp_caXObjectUid;
        this_2.i7t_1 = _tmp_caClazzUid;
        this_2.j7t_1 = _tmp_caPeerReviewerCount;
        this_2.k7t_1 = _tmp_caLocalChangeSeqNum;
        this_2.l7t_1 = _tmp_caMasterChangeSeqNum;
        this_2.m7t_1 = _tmp_caLastChangedBy;
        this_2.n7t_1 = _tmp_caLct;
        tmp_47.sc9_1 = this_2;
      }
      return this_0;
    };
  }
  function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda($assignmentUid, resultContinuation) {
    this.bca_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda).dca = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda).he = function (p1, $completion) {
    return this.dca((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.cca_1.i5h(1, this.bca_1);
            this.cca_1.i5h(2, this.bca_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.cca_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda(this.bca_1, completion);
    i.cca_1 = _stmt;
    return i;
  };
  function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda_0($assignmentUid, resultContinuation) {
    var i = new CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda($assignmentUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.dca(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda$lambda(_result) {
    return mapRows(_result, CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_CourseBlock_nullCount = 0;
      var _tmp_cbUid = $_result.l5m('cbUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_cbType = $_result.k5m('cbType');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_cbIndentLevel = $_result.k5m('cbIndentLevel');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_cbModuleParentBlockUid = $_result.l5m('cbModuleParentBlockUid');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_cbTitle = $_result.rz('cbTitle');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_cbDescription = $_result.rz('cbDescription');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_cbCompletionCriteria = $_result.k5m('cbCompletionCriteria');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_cbHideUntilDate = $_result.l5m('cbHideUntilDate');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_cbDeadlineDate = $_result.l5m('cbDeadlineDate');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_cbLateSubmissionPenalty = $_result.k5m('cbLateSubmissionPenalty');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_cbGracePeriodDate = $_result.l5m('cbGracePeriodDate');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_cbIndex = $_result.k5m('cbIndex');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_cbClazzUid = $_result.l5m('cbClazzUid');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_cbClazzSourcedId = $_result.rz('cbClazzSourcedId');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_cbActive = $_result.w65('cbActive');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_cbHidden = $_result.w65('cbHidden');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_cbEntityUid = $_result.l5m('cbEntityUid');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_cbLct = $_result.l5m('cbLct');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_cbSourcedId = $_result.rz('cbSourcedId');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_cbMetadata = $_result.rz('cbMetadata');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_cbCreatedByAppId = $_result.rz('cbCreatedByAppId');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23;
      var _tmp_CourseBlockPicture_nullCount = 0;
      var _tmp_cbpUid = $_result.l5m('cbpUid');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_cbpLct = $_result.l5m('cbpLct');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_cbpPictureUri = $_result.rz('cbpPictureUri');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_cbpThumbnailUri = $_result.rz('cbpThumbnailUri');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_CourseBlockPicture_isAllNull = _tmp_CourseBlockPicture_nullCount === 4;
      var _tmp_ContentEntry_nullCount = 0;
      var _tmp_contentEntryUid = $_result.l5m('contentEntryUid');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_title = $_result.rz('title');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_description = $_result.rz('description');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_entryId = $_result.rz('entryId');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_author = $_result.rz('author');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_publisher = $_result.rz('publisher');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_licenseType = $_result.k5m('licenseType');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_licenseName = $_result.rz('licenseName');
      var tmp_33;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_licenseUrl = $_result.rz('licenseUrl');
      var tmp_34;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_sourceUrl = $_result.rz('sourceUrl');
      var tmp_35;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_thumbnailUrl = $_result.rz('thumbnailUrl');
      var tmp_36;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_lastModified = $_result.l5m('lastModified');
      var tmp_37;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_primaryLanguageUid = $_result.l5m('primaryLanguageUid');
      var tmp_38;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_languageVariantUid = $_result.l5m('languageVariantUid');
      var tmp_39;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_contentFlags = $_result.k5m('contentFlags');
      var tmp_40;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_leaf = $_result.w65('leaf');
      var tmp_41;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_publik = $_result.w65('publik');
      var tmp_42;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_ceInactive = $_result.w65('ceInactive');
      var tmp_43;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_completionCriteria = $_result.k5m('completionCriteria');
      var tmp_44;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_minScore = $_result.k5m('minScore');
      var tmp_45;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_45 = Unit_instance;
      }
      var _tmp_contentTypeFlag = $_result.k5m('contentTypeFlag');
      var tmp_46;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_46 = Unit_instance;
      }
      var _tmp_contentOwner = $_result.l5m('contentOwner');
      var tmp_47;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_47 = Unit_instance;
      }
      var _tmp_contentOwnerType = $_result.k5m('contentOwnerType');
      var tmp_48;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_48 = Unit_instance;
      }
      var _tmp_contentEntryLocalChangeSeqNum = $_result.l5m('contentEntryLocalChangeSeqNum');
      var tmp_49;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_49 = Unit_instance;
      }
      var _tmp_contentEntryMasterChangeSeqNum = $_result.l5m('contentEntryMasterChangeSeqNum');
      var tmp_50;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_50 = Unit_instance;
      }
      var _tmp_contentEntryLastChangedBy = $_result.k5m('contentEntryLastChangedBy');
      var tmp_51;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_51 = Unit_instance;
      }
      var _tmp_contentEntryLct = $_result.l5m('contentEntryLct');
      var tmp_52;
      if ($_result.d67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_52 = Unit_instance;
      }
      var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27;
      var _tmp_ContentEntryPicture2_nullCount = 0;
      var _tmp_cepUid = $_result.l5m('cepUid');
      var tmp_53;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_53 = Unit_instance;
      }
      var _tmp_cepLct = $_result.l5m('cepLct');
      var tmp_54;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_54 = Unit_instance;
      }
      var _tmp_cepPictureUri = $_result.rz('cepPictureUri');
      var tmp_55;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_55 = Unit_instance;
      }
      var _tmp_cepThumbnailUri = $_result.rz('cepThumbnailUri');
      var tmp_56;
      if ($_result.d67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_56 = Unit_instance;
      }
      var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4;
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseBlockAndGradebookDisplayDetails();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByClazzUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_CourseBlock_isAllNull) {
        var tmp_57 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new CourseBlock();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByClazzUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.w7w_1 = _tmp_cbUid;
        this_1.x7w_1 = _tmp_cbType;
        this_1.y7w_1 = _tmp_cbIndentLevel;
        this_1.z7w_1 = _tmp_cbModuleParentBlockUid;
        this_1.a7x_1 = _tmp_cbTitle;
        this_1.b7x_1 = _tmp_cbDescription;
        this_1.c7x_1 = _tmp_cbCompletionCriteria;
        this_1.d7x_1 = _tmp_cbHideUntilDate;
        this_1.e7x_1 = _tmp_cbDeadlineDate;
        this_1.f7x_1 = _tmp_cbLateSubmissionPenalty;
        this_1.g7x_1 = _tmp_cbGracePeriodDate;
        this_1.h7x_1 = _tmp_cbMaxPoints;
        this_1.i7x_1 = _tmp_cbMinPoints;
        this_1.j7x_1 = _tmp_cbIndex;
        this_1.k7x_1 = _tmp_cbClazzUid;
        this_1.l7x_1 = _tmp_cbClazzSourcedId;
        this_1.m7x_1 = _tmp_cbActive;
        this_1.n7x_1 = _tmp_cbHidden;
        this_1.o7x_1 = _tmp_cbEntityUid;
        this_1.p7x_1 = _tmp_cbLct;
        this_1.q7x_1 = _tmp_cbSourcedId;
        this_1.r7x_1 = _tmp_cbMetadata;
        this_1.s7x_1 = _tmp_cbCreatedByAppId;
        tmp_57.eca_1 = this_1;
      }
      if (!_tmp_CourseBlockPicture_isAllNull) {
        var tmp_58 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new CourseBlockPicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByClazzUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.z7x_1 = _tmp_cbpUid;
        this_2.a7y_1 = _tmp_cbpLct;
        this_2.b7y_1 = _tmp_cbpPictureUri;
        this_2.c7y_1 = _tmp_cbpThumbnailUri;
        tmp_58.fca_1 = this_2;
      }
      if (!_tmp_ContentEntry_isAllNull) {
        var tmp_59 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new ContentEntry();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByClazzUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.fah_1 = _tmp_contentEntryUid;
        this_3.gah_1 = _tmp_title;
        this_3.hah_1 = _tmp_description;
        this_3.iah_1 = _tmp_entryId;
        this_3.jah_1 = _tmp_author;
        this_3.kah_1 = _tmp_publisher;
        this_3.lah_1 = _tmp_licenseType;
        this_3.mah_1 = _tmp_licenseName;
        this_3.nah_1 = _tmp_licenseUrl;
        this_3.oah_1 = _tmp_sourceUrl;
        this_3.pah_1 = _tmp_thumbnailUrl;
        this_3.qah_1 = _tmp_lastModified;
        this_3.rah_1 = _tmp_primaryLanguageUid;
        this_3.sah_1 = _tmp_languageVariantUid;
        this_3.tah_1 = _tmp_contentFlags;
        this_3.uah_1 = _tmp_leaf;
        this_3.vah_1 = _tmp_publik;
        this_3.wah_1 = _tmp_ceInactive;
        this_3.xah_1 = _tmp_completionCriteria;
        this_3.yah_1 = _tmp_minScore;
        this_3.zah_1 = _tmp_contentTypeFlag;
        this_3.aai_1 = _tmp_contentOwner;
        this_3.bai_1 = _tmp_contentOwnerType;
        this_3.cai_1 = _tmp_contentEntryLocalChangeSeqNum;
        this_3.dai_1 = _tmp_contentEntryMasterChangeSeqNum;
        this_3.eai_1 = _tmp_contentEntryLastChangedBy;
        this_3.fai_1 = _tmp_contentEntryLct;
        tmp_59.gca_1 = this_3;
      }
      if (!_tmp_ContentEntryPicture2_isAllNull) {
        var tmp_60 = this_0;
        // Inline function 'kotlin.apply' call
        var this_4 = new ContentEntryPicture2();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByClazzUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_4.vai_1 = _tmp_cepUid;
        this_4.wai_1 = _tmp_cepLct;
        this_4.xai_1 = _tmp_cepPictureUri;
        this_4.yai_1 = _tmp_cepThumbnailUri;
        tmp_60.hca_1 = this_4;
      }
      return this_0;
    };
  }
  function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda($clazzUid, resultContinuation) {
    this.qca_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda).sca = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.sca((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.rca_1.i5h(1, this.qca_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.rca_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda(this.qca_1, completion);
    i.rca_1 = _stmt;
    return i;
  };
  function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda_0($clazzUid, resultContinuation) {
    var i = new CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda($clazzUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.sca(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.tca_1);
  }
  protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO CourseBlock (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1).yca = function (stmt, entity) {
    if (entity.w7w_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.w7w_1);
    }
    stmt.h5h(2, entity.x7w_1);
    stmt.h5h(3, entity.y7w_1);
    stmt.i5h(4, entity.z7w_1);
    stmt.l5h(5, entity.a7x_1);
    stmt.l5h(6, entity.b7x_1);
    stmt.h5h(7, entity.c7x_1);
    stmt.i5h(8, entity.d7x_1);
    stmt.i5h(9, entity.e7x_1);
    stmt.h5h(10, entity.f7x_1);
    stmt.i5h(11, entity.g7x_1);
    setFloatNullable(stmt, 12, entity.h7x_1);
    setFloatNullable(stmt, 13, entity.i7x_1);
    stmt.h5h(14, entity.j7x_1);
    stmt.i5h(15, entity.k7x_1);
    stmt.l5h(16, entity.l7x_1);
    stmt.v5g(17, entity.m7x_1);
    stmt.v5g(18, entity.n7x_1);
    stmt.i5h(19, entity.o7x_1);
    stmt.i5h(20, entity.p7x_1);
    stmt.l5h(21, entity.q7x_1);
    stmt.l5h(22, entity.r7x_1);
    stmt.l5h(23, entity.s7x_1);
  };
  protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1).c5f = function (stmt, entity) {
    return this.yca(stmt, entity instanceof CourseBlock ? entity : THROW_CCE());
  };
  function CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.tca_1);
  }
  protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO CourseBlock (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1).yca = function (stmt, entity) {
    if (entity.w7w_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.w7w_1);
    }
    stmt.h5h(2, entity.x7w_1);
    stmt.h5h(3, entity.y7w_1);
    stmt.i5h(4, entity.z7w_1);
    stmt.l5h(5, entity.a7x_1);
    stmt.l5h(6, entity.b7x_1);
    stmt.h5h(7, entity.c7x_1);
    stmt.i5h(8, entity.d7x_1);
    stmt.i5h(9, entity.e7x_1);
    stmt.h5h(10, entity.f7x_1);
    stmt.i5h(11, entity.g7x_1);
    setFloatNullable(stmt, 12, entity.h7x_1);
    setFloatNullable(stmt, 13, entity.i7x_1);
    stmt.h5h(14, entity.j7x_1);
    stmt.i5h(15, entity.k7x_1);
    stmt.l5h(16, entity.l7x_1);
    stmt.v5g(17, entity.m7x_1);
    stmt.v5g(18, entity.n7x_1);
    stmt.i5h(19, entity.o7x_1);
    stmt.i5h(20, entity.p7x_1);
    stmt.l5h(21, entity.q7x_1);
    stmt.l5h(22, entity.r7x_1);
    stmt.l5h(23, entity.s7x_1);
  };
  protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1).c5f = function (stmt, entity) {
    return this.yca(stmt, entity instanceof CourseBlock ? entity : THROW_CCE());
  };
  function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation) {
    this.jcb_1 = this$0;
    this.kcb_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).lcb = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).z77 = function ($completion) {
    return this.lcb($completion);
  };
  protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT CourseBlock.*, CourseBlockPicture.*\n          FROM CourseBlock\n               LEFT JOIN CourseBlockPicture \n                         ON CourseBlockPicture.cbpUid = CAST(? AS BIGINT)\n         WHERE CourseBlock.cbUid = CAST(? AS BIGINT)                \n    ', VOID, VOID, VOID, '\n        SELECT CourseBlock.*, CourseBlockPicture.*\n          FROM CourseBlock\n               LEFT JOIN CourseBlockPicture \n                         ON CourseBlockPicture.cbpUid = ?\n         WHERE CourseBlock.cbUid = ?                \n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.jcb_1.tca_1, tmp_0, CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda_0(this.kcb_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).y77 = function (completion) {
    return new CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this.jcb_1, this.kcb_1, completion);
  };
  function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda_0(this$0, $uid, resultContinuation) {
    var i = new CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation);
    var l = function ($completion) {
      return i.lcb($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda($clazzUid, $includeInactive, resultContinuation) {
    this.ucb_1 = $clazzUid;
    this.vcb_1 = $includeInactive;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda).xcb = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda).he = function (p1, $completion) {
    return this.xcb((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.wcb_1.i5h(1, this.ucb_1);
            this.wcb_1.v5g(2, this.vcb_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.wcb_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda).z5e = function (_stmt, completion) {
    var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda(this.ucb_1, this.vcb_1, completion);
    i.wcb_1 = _stmt;
    return i;
  };
  function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda_0($clazzUid, $includeInactive, resultContinuation) {
    var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda($clazzUid, $includeInactive, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.xcb(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda(this$0, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) {
    this.gcc_1 = this$0;
    this.hcc_1 = $clazzUid;
    this.icc_1 = $includeInactive;
    this.jcc_1 = $includeHidden;
    this.kcc_1 = $hideUntilFilterTime;
    this.lcc_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda).mcc = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda).z77 = function ($completion) {
    return this.mcc($completion);
  };
  protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT CourseBlock.*, ContentEntry.*, CourseBlockPicture.*, ContentEntryPicture2.*\n          FROM CourseBlock\n               LEFT JOIN ContentEntry\n                         ON CourseBlock.cbType = 104\n                            AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n               LEFT JOIN CourseBlockPicture\n                         ON CourseBlockPicture.cbpUid = CourseBlock.cbUid    \n               LEFT JOIN ContentEntryPicture2\n                         ON CourseBlock.cbType = 104\n                            AND ContentEntryPicture2.cepUid = CourseBlock.cbEntityUid\n         WHERE CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n           AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive)\n           AND (CAST(? AS INTEGER) = 1 OR NOT CourseBlock.cbHidden)\n           AND (CAST(? AS BIGINT) >= CourseBlock.cbHideUntilDate)\n           AND (CAST(? AS BIGINT) >= COALESCE(\n                (SELECT CourseBlockParent.cbHideUntilDate\n                   FROM CourseBlock CourseBlockParent\n                  WHERE CourseBlockParent.cbUid = CourseBlock.cbModuleParentBlockUid), 0))\n           AND (CourseBlock.cbType != 300)\n           AND CAST(? AS BIGINT) = CAST(? AS BIGINT)        \n      ORDER BY CourseBlock.cbIndex       \n    ', VOID, VOID, VOID, '\n        SELECT CourseBlock.*, ContentEntry.*, CourseBlockPicture.*, ContentEntryPicture2.*\n          FROM CourseBlock\n               LEFT JOIN ContentEntry\n                         ON CourseBlock.cbType = 104\n                            AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n               LEFT JOIN CourseBlockPicture\n                         ON CourseBlockPicture.cbpUid = CourseBlock.cbUid    \n               LEFT JOIN ContentEntryPicture2\n                         ON CourseBlock.cbType = 104\n                            AND ContentEntryPicture2.cepUid = CourseBlock.cbEntityUid\n         WHERE CourseBlock.cbClazzUid = ?\n           AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive)\n           AND (CAST(? AS INTEGER) = 1 OR NOT CourseBlock.cbHidden)\n           AND (? >= CourseBlock.cbHideUntilDate)\n           AND (? >= COALESCE(\n                (SELECT CourseBlockParent.cbHideUntilDate\n                   FROM CourseBlock CourseBlockParent\n                  WHERE CourseBlockParent.cbUid = CourseBlock.cbModuleParentBlockUid), 0))\n           AND (CourseBlock.cbType != 300)\n           AND ? = ?        \n      ORDER BY CourseBlock.cbIndex       \n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.gcc_1.tca_1, tmp_0, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda_0(this.hcc_1, this.icc_1, this.jcc_1, this.kcc_1, this.lcc_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda).y77 = function (completion) {
    return new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda(this.gcc_1, this.hcc_1, this.icc_1, this.jcc_1, this.kcc_1, this.lcc_1, completion);
  };
  function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda_0(this$0, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) {
    var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda(this$0, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.mcc($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockDao_JdbcImpl$updateActiveByUid$slambda($active, $changeTime, $cbUid, resultContinuation) {
    this.vcc_1 = $active;
    this.wcc_1 = $changeTime;
    this.xcc_1 = $cbUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$updateActiveByUid$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl$updateActiveByUid$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseBlockDao_JdbcImpl$updateActiveByUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ycc_1.v5g(1, this.vcc_1);
            this.ycc_1.i5h(2, this.wcc_1);
            this.ycc_1.i5h(3, this.xcc_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.ycc_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseBlockDao_JdbcImpl$updateActiveByUid$slambda).z5e = function (_stmt, completion) {
    var i = new CourseBlockDao_JdbcImpl$updateActiveByUid$slambda(this.vcc_1, this.wcc_1, this.xcc_1, completion);
    i.ycc_1 = _stmt;
    return i;
  };
  function CourseBlockDao_JdbcImpl$updateActiveByUid$slambda_0($active, $changeTime, $cbUid, resultContinuation) {
    var i = new CourseBlockDao_JdbcImpl$updateActiveByUid$slambda($active, $changeTime, $cbUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda($postUid, resultContinuation) {
    this.hcd_1 = $postUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda).jcd = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda).he = function (p1, $completion) {
    return this.jcd((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.icd_1.i5h(1, this.hcd_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.icd_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda).z5e = function (_stmt, completion) {
    var i = new CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda(this.hcd_1, completion);
    i.icd_1 = _stmt;
    return i;
  };
  function CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda_0($postUid, resultContinuation) {
    var i = new CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda($postUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.jcd(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda($courseBlockUid, resultContinuation) {
    this.scd_1 = $courseBlockUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda).o5f = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda).he = function (p1, $completion) {
    return this.o5f((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.tcd_1.i5h(1, this.scd_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.tcd_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda).z5e = function (_stmt, completion) {
    var i = new CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda(this.scd_1, completion);
    i.tcd_1 = _stmt;
    return i;
  };
  function CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda_0($courseBlockUid, resultContinuation) {
    var i = new CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda($courseBlockUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.o5f(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda(this$0, $assignmentUid, resultContinuation) {
    this.cce_1 = this$0;
    this.dce_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda).ece = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda).z77 = function ($completion) {
    return this.ece($completion);
  };
  protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT ClazzAssignment.*, CourseBlock.* \n          FROM ClazzAssignment\n               JOIN CourseBlock \n                    ON CourseBlock.cbEntityUid = CAST(? AS BIGINT)\n         WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n         LIMIT 1 \n    ', VOID, VOID, VOID, '\n        SELECT ClazzAssignment.*, CourseBlock.* \n          FROM ClazzAssignment\n               JOIN CourseBlock \n                    ON CourseBlock.cbEntityUid = ?\n         WHERE ClazzAssignment.caUid = ?\n         LIMIT 1 \n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.cce_1.tca_1, tmp_0, CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda_0(this.dce_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda).y77 = function (completion) {
    return new CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda(this.cce_1, this.dce_1, completion);
  };
  function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda_0(this$0, $assignmentUid, resultContinuation) {
    var i = new CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda(this$0, $assignmentUid, resultContinuation);
    var l = function ($completion) {
      return i.ece($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda(this$0, $clazzUid, resultContinuation) {
    this.nce_1 = this$0;
    this.oce_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda).pce = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda).z77 = function ($completion) {
    return this.pce($completion);
  };
  protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT CourseBlock.*, ContentEntry.*, CourseBlockPicture.*, ContentEntryPicture2.*\n          FROM CourseBlock\n               LEFT JOIN ContentEntry\n                         ON CourseBlock.cbType = 104\n                            AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n               LEFT JOIN CourseBlockPicture\n                         ON CourseBlockPicture.cbpUid = CourseBlock.cbUid    \n               LEFT JOIN ContentEntryPicture2\n                         ON CourseBlock.cbType = 104\n                            AND ContentEntryPicture2.cepUid = CourseBlock.cbEntityUid\n         WHERE CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n           AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n      ORDER BY CourseBlock.cbIndex\n    ', VOID, VOID, VOID, '\n        SELECT CourseBlock.*, ContentEntry.*, CourseBlockPicture.*, ContentEntryPicture2.*\n          FROM CourseBlock\n               LEFT JOIN ContentEntry\n                         ON CourseBlock.cbType = 104\n                            AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n               LEFT JOIN CourseBlockPicture\n                         ON CourseBlockPicture.cbpUid = CourseBlock.cbUid    \n               LEFT JOIN ContentEntryPicture2\n                         ON CourseBlock.cbType = 104\n                            AND ContentEntryPicture2.cepUid = CourseBlock.cbEntityUid\n         WHERE CourseBlock.cbClazzUid = ?\n           AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n      ORDER BY CourseBlock.cbIndex\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.nce_1.tca_1, tmp_0, CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda_0(this.oce_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda).y77 = function (completion) {
    return new CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda(this.nce_1, this.oce_1, completion);
  };
  function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) {
    var i = new CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda(this$0, $clazzUid, resultContinuation);
    var l = function ($completion) {
      return i.pce($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$169(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.yce_1 = _this__u8e3s4;
    this.zce_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$169).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.yce_1.vca_1.j5g(this.zce_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateActiveByUidCOROUTINE$171(_this__u8e3s4, cbUid, active, changeTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.icf_1 = _this__u8e3s4;
    this.jcf_1 = cbUid;
    this.kcf_1 = active;
    this.lcf_1 = changeTime;
  }
  protoOf($updateActiveByUidCOROUTINE$171).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE CourseBlock \n           SET cbActive = ?, \n               cbLct = CAST(? AS BIGINT)\n         WHERE cbUid = CAST(? AS BIGINT)', VOID, VOID, VOID, '\n        UPDATE CourseBlock \n           SET cbActive = ?, \n               cbLct = ?\n         WHERE cbUid = ?\n', false);
            suspendResult = prepareAndUseStatementAsync(this.icf_1.tca_1, tmp_0, CourseBlockDao_JdbcImpl$updateActiveByUid$slambda_0(this.kcf_1, this.lcf_1, this.jcf_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseBlockDao_JdbcImpl(_db) {
    CourseBlockDao.call(this);
    this.tca_1 = _db;
    var tmp = this;
    tmp.uca_1 = new CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1(this);
    var tmp_0 = this;
    tmp_0.vca_1 = new CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1(this);
  }
  protoOf(CourseBlockDao_JdbcImpl).hc6 = function (entities, $completion) {
    return this.uca_1.m5g(entities, $completion);
  };
  protoOf(CourseBlockDao_JdbcImpl).rc7 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$169(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.rc7(entity instanceof CourseBlock ? entity : THROW_CCE(), $completion);
  };
  protoOf(CourseBlockDao_JdbcImpl).dc6 = function (uid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['CourseBlock', 'CourseBlockPicture'];
    return doorFlow(this.tca_1, tmp, CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda_0(this, uid, null));
  };
  protoOf(CourseBlockDao_JdbcImpl).ec6 = function (clazzUid, includeInactive, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT CourseBlock.*, Assignment.*, Entry.*, Language.*, CourseBlockPicture.*,\n               (SELECT CourseGroupSet.cgsName\n                  FROM CourseGroupSet\n                 WHERE CourseBlock.cbType = 103\n                   AND assignment.caGroupUid != 0\n                   AND CourseGroupSet.cgsUid = assignment.caGroupUid) AS assignmentCourseGroupSetName\n          FROM CourseBlock \n               LEFT JOIN ClazzAssignment AS Assignment\n                         ON assignment.caUid = CourseBlock.cbEntityUid\n                            AND CourseBlock.cbType = 103\n               LEFT JOIN ContentEntry AS Entry\n                         ON entry.contentEntryUid = CourseBlock.cbEntityUid\n                            AND CourseBlock.cbType = 104\n               LEFT JOIN Language\n                         ON Language.langUid = Entry.primaryLanguageUid\n                            AND CourseBlock.cbType = 104\n               LEFT JOIN CourseBlockPicture\n                         ON CourseBlockPicture.cbpUid = CourseBlock.cbUid    \n         WHERE CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n           AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive)\n           AND (CourseBlock.cbType != 300)\n      ORDER BY CourseBlock.cbIndex\n          ', VOID, VOID, VOID, '\n        SELECT CourseBlock.*, Assignment.*, Entry.*, Language.*, CourseBlockPicture.*,\n               (SELECT CourseGroupSet.cgsName\n                  FROM CourseGroupSet\n                 WHERE CourseBlock.cbType = 103\n                   AND assignment.caGroupUid != 0\n                   AND CourseGroupSet.cgsUid = assignment.caGroupUid) AS assignmentCourseGroupSetName\n          FROM CourseBlock \n               LEFT JOIN ClazzAssignment AS Assignment\n                         ON assignment.caUid = CourseBlock.cbEntityUid\n                            AND CourseBlock.cbType = 103\n               LEFT JOIN ContentEntry AS Entry\n                         ON entry.contentEntryUid = CourseBlock.cbEntityUid\n                            AND CourseBlock.cbType = 104\n               LEFT JOIN Language\n                         ON Language.langUid = Entry.primaryLanguageUid\n                            AND CourseBlock.cbType = 104\n               LEFT JOIN CourseBlockPicture\n                         ON CourseBlockPicture.cbpUid = CourseBlock.cbUid    \n         WHERE CourseBlock.cbClazzUid = ?\n           AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive)\n           AND (CourseBlock.cbType != 300)\n      ORDER BY CourseBlock.cbIndex\n          \n', true);
    return prepareAndUseStatementAsync(this.tca_1, tmp, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda_0(clazzUid, includeInactive, null), $completion);
  };
  protoOf(CourseBlockDao_JdbcImpl).fc6 = function (clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['ContentEntry', 'CourseBlock', 'CourseBlockPicture', 'ContentEntryPicture2'];
    return doorFlow(this.tca_1, tmp, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda_0(this, clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid, null));
  };
  protoOf(CourseBlockDao_JdbcImpl).gc6 = function (cbUid, active, changeTime, $completion) {
    var tmp = new $updateActiveByUidCOROUTINE$171(this, cbUid, active, changeTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl).ic6 = function (postUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT COALESCE(CourseBlock.cbUid, 0) AS courseBlockUid,\n               COALESCE(CourseBlock.cbClazzUid, 0) AS clazzUid\n          FROM CourseBlock\n         WHERE CourseBlock.cbUid = \n               (SELECT DiscussionPost.discussionPostCourseBlockUid \n                  FROM DiscussionPost\n                 WHERE DiscussionPost.discussionPostUid = CAST(? AS BIGINT))\n         LIMIT 1\n    ', VOID, VOID, VOID, '\n        SELECT COALESCE(CourseBlock.cbUid, 0) AS courseBlockUid,\n               COALESCE(CourseBlock.cbClazzUid, 0) AS clazzUid\n          FROM CourseBlock\n         WHERE CourseBlock.cbUid = \n               (SELECT DiscussionPost.discussionPostCourseBlockUid \n                  FROM DiscussionPost\n                 WHERE DiscussionPost.discussionPostUid = ?)\n         LIMIT 1\n    \n', true);
    return prepareAndUseStatementAsync(this.tca_1, tmp, CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda_0(postUid, null), $completion);
  };
  protoOf(CourseBlockDao_JdbcImpl).jc6 = function (courseBlockUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT COALESCE(CourseBlock.cbClazzUid, 0) AS clazzUid\n          FROM CourseBlock\n         WHERE CourseBlock.cbUid = CAST(? AS BIGINT)\n    ', VOID, VOID, VOID, '\n        SELECT COALESCE(CourseBlock.cbClazzUid, 0) AS clazzUid\n          FROM CourseBlock\n         WHERE CourseBlock.cbUid = ?\n    \n', true);
    return prepareAndUseStatementAsync(this.tca_1, tmp, CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda_0(courseBlockUid, null), $completion);
  };
  protoOf(CourseBlockDao_JdbcImpl).kc6 = function (assignmentUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['ClazzAssignment', 'CourseBlock'];
    return doorFlow(this.tca_1, tmp, CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda_0(this, assignmentUid, null));
  };
  protoOf(CourseBlockDao_JdbcImpl).lc6 = function (clazzUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['ContentEntry', 'CourseBlock', 'CourseBlockPicture', 'ContentEntryPicture2'];
    return doorFlow(this.tca_1, tmp, CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda_0(this, clazzUid, null));
  };
  function CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseBlockDao_Repo$findByClazzUidAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation) {
    this.ucf_1 = this$0;
    this.vcf_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.wcf_1 = this.ucf_1.fcg_1;
            var tmp_1 = this;
            tmp_1.xcf_1 = 'CourseBlockDao/findByUidWithPictureAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ycf_1 = this.ucf_1.hcg_1;
            var tmp_3 = this;
            tmp_3.zcf_1 = this.ycf_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ucf_1.fcg_1.w38(), 'CourseBlockDao/findByUidWithPictureAsFlow');
            doorNodeIdHeader(this_0, this.ucf_1.fcg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.ucf_1.fcg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.vcf_1));
            tmp_4.acg_1 = this_0;
            this.acg_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.bcg_1 = this.zcf_1;
            var tmp_6 = this;
            tmp_6.ccg_1 = this.acg_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.ccg_1, this.bcg_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.dcg_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ucf_1.ecg_1, this.dcg_1, this.ucf_1.fcg_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda$lambda(this.wcf_1, this.xcf_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda).y77 = function (completion) {
    return new CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda(this.ucf_1, this.vcf_1, completion);
  };
  function CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda_0(this$0, $uid, resultContinuation) {
    var i = new CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsync$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda(this$0, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) {
    this.tcg_1 = this$0;
    this.ucg_1 = $clazzUid;
    this.vcg_1 = $includeInactive;
    this.wcg_1 = $includeHidden;
    this.xcg_1 = $hideUntilFilterTime;
    this.ycg_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.zcg_1 = this.tcg_1.fcg_1;
            var tmp_1 = this;
            tmp_1.ach_1 = 'CourseBlockDao/findAllCourseBlockByClazzUidAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.bch_1 = this.tcg_1.hcg_1;
            var tmp_3 = this;
            tmp_3.cch_1 = this.bch_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.tcg_1.fcg_1.w38(), 'CourseBlockDao/findAllCourseBlockByClazzUidAsFlow');
            doorNodeIdHeader(this_0, this.tcg_1.fcg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.tcg_1.fcg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ucg_1));
            parameter(this_0, 'includeInactive', this.tcg_1.fcg_1.w38().k65_1.e45(serializer_2(BooleanCompanionObject_instance), this.vcg_1));
            parameter(this_0, 'includeHidden', this.tcg_1.fcg_1.w38().k65_1.e45(serializer_2(BooleanCompanionObject_instance), this.wcg_1));
            parameter(this_0, 'hideUntilFilterTime', this.tcg_1.fcg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.xcg_1));
            parameter(this_0, 'accountPersonUid', this.tcg_1.fcg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ycg_1));
            tmp_4.dch_1 = this_0;
            this.dch_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.ech_1 = this.cch_1;
            var tmp_6 = this;
            tmp_6.fch_1 = this.dch_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.fch_1, this.ech_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.gch_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.tcg_1.ecg_1, this.gch_1, this.tcg_1.fcg_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda$lambda(this.zcg_1, this.ach_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda).y77 = function (completion) {
    return new CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda(this.tcg_1, this.ucg_1, this.vcg_1, this.wcg_1, this.xcg_1, this.ycg_1, completion);
  };
  function CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda_0(this$0, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) {
    var i = new CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda(this$0, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockDao_Repo$updateActiveByUid$slambda(this$0, $cbUid, $active, $changeTime, resultContinuation) {
    this.pch_1 = this$0;
    this.qch_1 = $cbUid;
    this.rch_1 = $active;
    this.sch_1 = $changeTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_Repo$updateActiveByUid$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo$updateActiveByUid$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseBlockDao_Repo$updateActiveByUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.pch_1.gcg_1.gc6(this.qch_1, this.rch_1, this.sch_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseBlockDao_Repo$updateActiveByUid$slambda).y77 = function (completion) {
    return new CourseBlockDao_Repo$updateActiveByUid$slambda(this.pch_1, this.qch_1, this.rch_1, this.sch_1, completion);
  };
  function CourseBlockDao_Repo$updateActiveByUid$slambda_0(this$0, $cbUid, $active, $changeTime, resultContinuation) {
    var i = new CourseBlockDao_Repo$updateActiveByUid$slambda(this$0, $cbUid, $active, $changeTime, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) {
    this.bci_1 = this$0;
    this.cci_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_Repo$upsertListAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo$upsertListAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseBlockDao_Repo$upsertListAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.bci_1.gcg_1.hc6(this.cci_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseBlockDao_Repo$upsertListAsync$slambda).y77 = function (completion) {
    return new CourseBlockDao_Repo$upsertListAsync$slambda(this.bci_1, this.cci_1, completion);
  };
  function CourseBlockDao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) {
    var i = new CourseBlockDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockDao_Repo$findCourseBlockAndClazzUidByDiscussionPostUid$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda(this$0, $assignmentUid, resultContinuation) {
    this.lci_1 = this$0;
    this.mci_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.nci_1 = this.lci_1.fcg_1;
            var tmp_1 = this;
            tmp_1.oci_1 = 'CourseBlockDao/findCourseBlockByAssignmentUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.pci_1 = this.lci_1.hcg_1;
            var tmp_3 = this;
            tmp_3.qci_1 = this.pci_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.lci_1.fcg_1.w38(), 'CourseBlockDao/findCourseBlockByAssignmentUid');
            doorNodeIdHeader(this_0, this.lci_1.fcg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'assignmentUid', this.lci_1.fcg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.mci_1));
            tmp_4.rci_1 = this_0;
            this.rci_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.sci_1 = this.qci_1;
            var tmp_6 = this;
            tmp_6.tci_1 = this.rci_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.tci_1, this.sci_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.uci_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.lci_1.ecg_1, this.uci_1, this.lci_1.fcg_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda$lambda(this.nci_1, this.oci_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda).y77 = function (completion) {
    return new CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda(this.lci_1, this.mci_1, completion);
  };
  function CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda_0(this$0, $assignmentUid, resultContinuation) {
    var i = new CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda(this$0, $assignmentUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockDao_Repo$findByClazzUidAsFlow$slambda(this$0, $clazzUid, resultContinuation) {
    this.dcj_1 = this$0;
    this.ecj_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_Repo$findByClazzUidAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo$findByClazzUidAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseBlockDao_Repo$findByClazzUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.fcj_1 = this.dcj_1.fcg_1;
            var tmp_1 = this;
            tmp_1.gcj_1 = 'CourseBlockDao/findByClazzUidAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.hcj_1 = this.dcj_1.hcg_1;
            var tmp_3 = this;
            tmp_3.icj_1 = this.hcj_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.dcj_1.fcg_1.w38(), 'CourseBlockDao/findByClazzUidAsFlow');
            doorNodeIdHeader(this_0, this.dcj_1.fcg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.dcj_1.fcg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ecj_1));
            tmp_4.jcj_1 = this_0;
            this.jcj_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.kcj_1 = this.icj_1;
            var tmp_6 = this;
            tmp_6.lcj_1 = this.jcj_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.lcj_1, this.kcj_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.mcj_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.dcj_1.ecg_1, this.mcj_1, this.dcj_1.fcg_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CourseBlockDao_Repo$findByClazzUidAsFlow$slambda$lambda(this.fcj_1, this.gcj_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CourseBlockDao_Repo$findByClazzUidAsFlow$slambda).y77 = function (completion) {
    return new CourseBlockDao_Repo$findByClazzUidAsFlow$slambda(this.dcj_1, this.ecj_1, completion);
  };
  function CourseBlockDao_Repo$findByClazzUidAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) {
    var i = new CourseBlockDao_Repo$findByClazzUidAsFlow$slambda(this$0, $clazzUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.vcj_1 = this$0;
    this.wcj_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(CourseBlockDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.vcj_1.gcg_1.insertAsync(this.wcj_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseBlockDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new CourseBlockDao_Repo$insertAsync$slambda(this.vcj_1, this.wcj_1, completion);
  };
  function CourseBlockDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new CourseBlockDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findAllCourseBlockByClazzUidAsyncCOROUTINE$176(_this__u8e3s4, clazzUid, includeInactive, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.fck_1 = _this__u8e3s4;
    this.gck_1 = clazzUid;
    this.hck_1 = includeInactive;
  }
  protoOf($findAllCourseBlockByClazzUidAsyncCOROUTINE$176).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.ick_1 = this.fck_1.fcg_1;
            var tmp_1 = this;
            tmp_1.jck_1 = 'CourseBlockDao/findAllCourseBlockByClazzUidAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.kck_1 = this.fck_1.hcg_1;
            var tmp_3 = this;
            tmp_3.lck_1 = this.kck_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.fck_1.fcg_1.w38(), 'CourseBlockDao/findAllCourseBlockByClazzUidAsync');
            doorNodeIdHeader(this_0, this.fck_1.fcg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.fck_1.fcg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.gck_1));
            parameter(this_0, 'includeInactive', this.fck_1.fcg_1.w38().k65_1.e45(serializer_2(BooleanCompanionObject_instance), this.hck_1));
            tmp_4.mck_1 = this_0;
            this.mck_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.nck_1 = this.lck_1;
            var tmp_6 = this;
            tmp_6.ock_1 = this.mck_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.ock_1, this.nck_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.pck_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.fck_1.ecg_1, this.pck_1, this.fck_1.fcg_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.qck_1 = this.kd_1;
              Napier_getInstance().q5d(this.qck_1, 'DoorLog', CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsync$lambda(this.ick_1, this.jck_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.fck_1.gcg_1.ec6(this.gck_1, this.hck_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $findCourseBlockAndClazzUidByDiscussionPostUidCOROUTINE$177(_this__u8e3s4, postUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zck_1 = _this__u8e3s4;
    this.acl_1 = postUid;
  }
  protoOf($findCourseBlockAndClazzUidByDiscussionPostUidCOROUTINE$177).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.bcl_1 = this.zck_1.fcg_1;
            var tmp_1 = this;
            tmp_1.ccl_1 = 'CourseBlockDao/findCourseBlockAndClazzUidByDiscussionPostUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.dcl_1 = this.zck_1.hcg_1;
            var tmp_3 = this;
            tmp_3.ecl_1 = this.dcl_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.zck_1.fcg_1.w38(), 'CourseBlockDao/findCourseBlockAndClazzUidByDiscussionPostUid');
            doorNodeIdHeader(this_0, this.zck_1.fcg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'postUid', this.zck_1.fcg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.acl_1));
            tmp_4.fcl_1 = this_0;
            this.fcl_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.gcl_1 = this.ecl_1;
            var tmp_6 = this;
            tmp_6.hcl_1 = this.fcl_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.hcl_1, this.gcl_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.icl_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.zck_1.ecg_1, this.icl_1, this.zck_1.fcg_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.jcl_1 = this.kd_1;
              Napier_getInstance().q5d(this.jcl_1, 'DoorLog', CourseBlockDao_Repo$findCourseBlockAndClazzUidByDiscussionPostUid$lambda(this.bcl_1, this.ccl_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.zck_1.gcg_1.ic6(this.acl_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $findClazzUidByCourseBlockUidCOROUTINE$179(_this__u8e3s4, courseBlockUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.scl_1 = _this__u8e3s4;
    this.tcl_1 = courseBlockUid;
  }
  protoOf($findClazzUidByCourseBlockUidCOROUTINE$179).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.scl_1.gcg_1.jc6(this.tcl_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$183(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ccm_1 = _this__u8e3s4;
    this.dcm_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$183).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.ccm_1.fcg_1, 'CourseBlock', CourseBlockDao_Repo$insertAsync$slambda_0(this.ccm_1, this.dcm_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseBlockDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    CourseBlockDao.call(this);
    this.ecg_1 = _db;
    this.fcg_1 = _repo;
    this.gcg_1 = _dao;
    this.hcg_1 = _httpClient;
    this.icg_1 = _clientId;
    this.jcg_1 = _endpoint;
    this.kcg_1 = new RepoDaoFlowHelper(this.fcg_1);
  }
  protoOf(CourseBlockDao_Repo).dc6 = function (uid) {
    var tmp = this.gcg_1.dc6(uid);
    return this.kcg_1.b67(tmp, CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda_0(this, uid, null));
  };
  protoOf(CourseBlockDao_Repo).ec6 = function (clazzUid, includeInactive, $completion) {
    var tmp = new $findAllCourseBlockByClazzUidAsyncCOROUTINE$176(this, clazzUid, includeInactive, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo).fc6 = function (clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid) {
    var tmp = this.gcg_1.fc6(clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid);
    return this.kcg_1.b67(tmp, CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda_0(this, clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid, null));
  };
  protoOf(CourseBlockDao_Repo).gc6 = function (cbUid, active, changeTime, $completion) {
    return withRepoChangeMonitorAsync(this.fcg_1, 'CourseBlock', CourseBlockDao_Repo$updateActiveByUid$slambda_0(this, cbUid, active, changeTime, null), $completion);
  };
  protoOf(CourseBlockDao_Repo).hc6 = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.fcg_1, 'CourseBlock', CourseBlockDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(CourseBlockDao_Repo).ic6 = function (postUid, $completion) {
    var tmp = new $findCourseBlockAndClazzUidByDiscussionPostUidCOROUTINE$177(this, postUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo).jc6 = function (courseBlockUid, $completion) {
    var tmp = new $findClazzUidByCourseBlockUidCOROUTINE$179(this, courseBlockUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo).kc6 = function (assignmentUid) {
    var tmp = this.gcg_1.kc6(assignmentUid);
    return this.kcg_1.b67(tmp, CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda_0(this, assignmentUid, null));
  };
  protoOf(CourseBlockDao_Repo).lc6 = function (clazzUid) {
    var tmp = this.gcg_1.lc6(clazzUid);
    return this.kcg_1.b67(tmp, CourseBlockDao_Repo$findByClazzUidAsFlow$slambda_0(this, clazzUid, null));
  };
  protoOf(CourseBlockDao_Repo).rc7 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$183(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo).insertAsync = function (entity, $completion) {
    return this.rc7(entity instanceof CourseBlock ? entity : THROW_CCE(), $completion);
  };
  function CourseBlockPictureDao() {
  }
  protoOf(CourseBlockPictureDao).rb3 = function (uid, uri, thumbnailUri, time, $completion) {
    return Unit_instance;
  };
  function CourseBlockPictureDao_DoorWrapper(_db, _dao) {
    CourseBlockPictureDao.call(this);
    this.fcm_1 = _db;
    this.gcm_1 = _dao;
  }
  protoOf(CourseBlockPictureDao_DoorWrapper).ecm = function (entities, $completion) {
    // Inline function 'kotlin.collections.mutableListOf' call
    var _generatedPks = ArrayList_init_$Create$();
    // Inline function 'kotlin.collections.forEach' call
    // Inline function 'kotlin.collections.iterator' call
    var tmp0_iterator = entities.w();
    while (tmp0_iterator.f()) {
      var element = tmp0_iterator.e();
      // Inline function 'com.ustadmobile.core.db.dao.CourseBlockPictureDao_DoorWrapper.upsertListAsync.<anonymous>' call
      element.a7y_1 = systemTimeInMillis();
    }
    return this.gcm_1.ecm(entities, $completion);
  };
  protoOf(CourseBlockPictureDao_DoorWrapper).rb3 = function (uid, uri, thumbnailUri, time, $completion) {
    return this.gcm_1.rb3(uid, uri, thumbnailUri, time, $completion);
  };
  function CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.hcm_1);
  }
  protoOf(CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO CourseBlockPicture (cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) VALUES(?, ?, ?, ?)';
  };
  protoOf(CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1).lcm = function (stmt, entity) {
    stmt.i5h(1, entity.z7x_1);
    stmt.i5h(2, entity.a7y_1);
    stmt.l5h(3, entity.b7y_1);
    stmt.l5h(4, entity.c7y_1);
  };
  protoOf(CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1).c5f = function (stmt, entity) {
    return this.lcm(stmt, entity instanceof CourseBlockPicture ? entity : THROW_CCE());
  };
  function CourseBlockPictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation) {
    this.ucm_1 = $uri;
    this.vcm_1 = $thumbnailUri;
    this.wcm_1 = $time;
    this.xcm_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockPictureDao_JdbcImpl$updateUri$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockPictureDao_JdbcImpl$updateUri$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseBlockPictureDao_JdbcImpl$updateUri$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ycm_1.l5h(1, this.ucm_1);
            this.ycm_1.l5h(2, this.vcm_1);
            this.ycm_1.i5h(3, this.wcm_1);
            this.ycm_1.i5h(4, this.xcm_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.ycm_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseBlockPictureDao_JdbcImpl$updateUri$slambda).z5e = function (_stmt, completion) {
    var i = new CourseBlockPictureDao_JdbcImpl$updateUri$slambda(this.ucm_1, this.vcm_1, this.wcm_1, this.xcm_1, completion);
    i.ycm_1 = _stmt;
    return i;
  };
  function CourseBlockPictureDao_JdbcImpl$updateUri$slambda_0($uri, $thumbnailUri, $time, $uid, resultContinuation) {
    var i = new CourseBlockPictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $updateUriCOROUTINE$184(_this__u8e3s4, uid, uri, thumbnailUri, time, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.hcn_1 = _this__u8e3s4;
    this.icn_1 = uid;
    this.jcn_1 = uri;
    this.kcn_1 = thumbnailUri;
    this.lcn_1 = time;
  }
  protoOf($updateUriCOROUTINE$184).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE CourseBlockPicture\n           SET cbpPictureUri = ?,\n               cbpThumbnailUri = ?,\n               cbpLct = CAST(? AS BIGINT)\n         WHERE cbpUid = CAST(? AS BIGINT)  \n    ', VOID, VOID, VOID, '\n        UPDATE CourseBlockPicture\n           SET cbpPictureUri = ?,\n               cbpThumbnailUri = ?,\n               cbpLct = ?\n         WHERE cbpUid = ?  \n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.hcn_1.hcm_1, tmp_0, CourseBlockPictureDao_JdbcImpl$updateUri$slambda_0(this.jcn_1, this.kcn_1, this.lcn_1, this.icn_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseBlockPictureDao_JdbcImpl(_db) {
    CourseBlockPictureDao.call(this);
    this.hcm_1 = _db;
    var tmp = this;
    tmp.icm_1 = new CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1(this);
  }
  protoOf(CourseBlockPictureDao_JdbcImpl).ecm = function (entities, $completion) {
    return this.icm_1.m5g(entities, $completion);
  };
  protoOf(CourseBlockPictureDao_JdbcImpl).rb3 = function (uid, uri, thumbnailUri, time, $completion) {
    var tmp = new $updateUriCOROUTINE$184(this, uid, uri, thumbnailUri, time, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function CourseBlockPictureDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) {
    this.ucn_1 = this$0;
    this.vcn_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockPictureDao_Repo$upsertListAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockPictureDao_Repo$upsertListAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseBlockPictureDao_Repo$upsertListAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.ucn_1.ycn_1.ecm(this.vcn_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseBlockPictureDao_Repo$upsertListAsync$slambda).y77 = function (completion) {
    return new CourseBlockPictureDao_Repo$upsertListAsync$slambda(this.ucn_1, this.vcn_1, completion);
  };
  function CourseBlockPictureDao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) {
    var i = new CourseBlockPictureDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockPictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) {
    this.kco_1 = this$0;
    this.lco_1 = $uid;
    this.mco_1 = $uri;
    this.nco_1 = $thumbnailUri;
    this.oco_1 = $time;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockPictureDao_Repo$updateUri$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockPictureDao_Repo$updateUri$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseBlockPictureDao_Repo$updateUri$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.kco_1.ycn_1.rb3(this.lco_1, this.mco_1, this.nco_1, this.oco_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseBlockPictureDao_Repo$updateUri$slambda).y77 = function (completion) {
    return new CourseBlockPictureDao_Repo$updateUri$slambda(this.kco_1, this.lco_1, this.mco_1, this.nco_1, this.oco_1, completion);
  };
  function CourseBlockPictureDao_Repo$updateUri$slambda_0(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) {
    var i = new CourseBlockPictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockPictureDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    CourseBlockPictureDao.call(this);
    this.wcn_1 = _db;
    this.xcn_1 = _repo;
    this.ycn_1 = _dao;
    this.zcn_1 = _httpClient;
    this.aco_1 = _clientId;
    this.bco_1 = _endpoint;
  }
  protoOf(CourseBlockPictureDao_Repo).ecm = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.xcn_1, 'CourseBlockPicture', CourseBlockPictureDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(CourseBlockPictureDao_Repo).rb3 = function (uid, uri, thumbnailUri, time, $completion) {
    return withRepoChangeMonitorAsync(this.xcn_1, 'CourseBlockPicture', CourseBlockPictureDao_Repo$updateUri$slambda_0(this, uid, uri, thumbnailUri, time, null), $completion);
  };
  function CourseGroupMemberDao() {
  }
  function $upsertListAsyncCOROUTINE$186(_this__u8e3s4, list, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.bcp_1 = _this__u8e3s4;
    this.ccp_1 = list;
  }
  protoOf($upsertListAsyncCOROUTINE$186).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.dcp_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.bcp_1.kcp_1));
            var tmp_0 = this;
            tmp_0.ecp_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.fcp_1 = this.ccp_1.w();
            var tmp_2 = this;
            tmp_2.gcp_1 = this.fcp_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.gcp_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.hcp_1 = this.gcp_1.e();
            var tmp_3 = this;
            tmp_3.icp_1 = this.hcp_1;
            if (this.icp_1.mcp_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.dcp_1.b62(243, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.jcp_1 = suspendResult;
            this.icp_1.mcp_1 = this.jcp_1;
            var this_0 = this.ecp_1;
            var element = this.jcp_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.icp_1.qcp_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.bcp_1.lcp_1.rco(this.ccp_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            return Unit_instance;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$187(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zcp_1 = _this__u8e3s4;
    this.acq_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$187).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.bcq_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.zcp_1.kcp_1));
            if (this.acq_1.mcp_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.bcq_1.b62(243, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.ccq_1 = suspendResult;
            this.acq_1.mcp_1 = this.ccq_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.acq_1.qcp_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.zcp_1.lcp_1.insertAsync(this.acq_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.acq_1.mcp_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseGroupMemberDao_DoorWrapper(_db, _dao) {
    CourseGroupMemberDao.call(this);
    this.kcp_1 = _db;
    this.lcp_1 = _dao;
  }
  protoOf(CourseGroupMemberDao_DoorWrapper).pco = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid, $completion) {
    return this.lcp_1.pco(cgsUid, clazzUid, time, activeFilter, accountPersonUid, $completion);
  };
  protoOf(CourseGroupMemberDao_DoorWrapper).qco = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid) {
    return this.lcp_1.qco(cgsUid, clazzUid, time, activeFilter, accountPersonUid);
  };
  protoOf(CourseGroupMemberDao_DoorWrapper).rco = function (list, $completion) {
    var tmp = new $upsertListAsyncCOROUTINE$186(this, list, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_DoorWrapper).sco = function (courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion) {
    return this.lcp_1.sco(courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion);
  };
  protoOf(CourseGroupMemberDao_DoorWrapper).dcq = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$187(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.dcq(entity instanceof CourseGroupMember ? entity : THROW_CCE(), $completion);
  };
  function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda$lambda(_result) {
    return mapRows(_result, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda$lambda$lambda(_result));
  }
  function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_name = $_result.rz('name');
      var _tmp_personUid = $_result.l5m('personUid');
      var _tmp_enrolmentIsActive = $_result.w65('enrolmentIsActive');
      var _tmp_pictureUri = $_result.rz('pictureUri');
      var _tmp_CourseGroupMember_nullCount = 0;
      var _tmp_cgmUid = $_result.l5m('cgmUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_cgmSetUid = $_result.l5m('cgmSetUid');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_cgmGroupNumber = $_result.k5m('cgmGroupNumber');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_cgmPersonUid = $_result.l5m('cgmPersonUid');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_cgmLct = $_result.l5m('cgmLct');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_CourseGroupMember_isAllNull = _tmp_CourseGroupMember_nullCount === 5;
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseGroupMemberAndName();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndClazz.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.fcq_1 = _tmp_name;
      this_0.gcq_1 = _tmp_personUid;
      this_0.hcq_1 = _tmp_enrolmentIsActive;
      this_0.icq_1 = _tmp_pictureUri;
      if (!_tmp_CourseGroupMember_isAllNull) {
        var tmp_4 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new CourseGroupMember();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndClazz.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.mcp_1 = _tmp_cgmUid;
        this_1.ncp_1 = _tmp_cgmSetUid;
        this_1.ocp_1 = _tmp_cgmGroupNumber;
        this_1.pcp_1 = _tmp_cgmPersonUid;
        this_1.qcp_1 = _tmp_cgmLct;
        tmp_4.ecq_1 = this_1;
      }
      return this_0;
    };
  }
  function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda$lambda(_result) {
    return mapRows(_result, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_name = $_result.rz('name');
      var _tmp_personUid = $_result.l5m('personUid');
      var _tmp_enrolmentIsActive = $_result.w65('enrolmentIsActive');
      var _tmp_pictureUri = $_result.rz('pictureUri');
      var _tmp_CourseGroupMember_nullCount = 0;
      var _tmp_cgmUid = $_result.l5m('cgmUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_cgmSetUid = $_result.l5m('cgmSetUid');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_cgmGroupNumber = $_result.k5m('cgmGroupNumber');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_cgmPersonUid = $_result.l5m('cgmPersonUid');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_cgmLct = $_result.l5m('cgmLct');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_CourseGroupMember_isAllNull = _tmp_CourseGroupMember_nullCount === 5;
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseGroupMemberAndName();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndClazzAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.fcq_1 = _tmp_name;
      this_0.gcq_1 = _tmp_personUid;
      this_0.hcq_1 = _tmp_enrolmentIsActive;
      this_0.icq_1 = _tmp_pictureUri;
      if (!_tmp_CourseGroupMember_isAllNull) {
        var tmp_4 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new CourseGroupMember();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndClazzAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.mcp_1 = _tmp_cgmUid;
        this_1.ncp_1 = _tmp_cgmSetUid;
        this_1.ocp_1 = _tmp_cgmGroupNumber;
        this_1.pcp_1 = _tmp_cgmPersonUid;
        this_1.qcp_1 = _tmp_cgmLct;
        tmp_4.ecq_1 = this_1;
      }
      return this_0;
    };
  }
  function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) {
    this.rcq_1 = $time;
    this.scq_1 = $clazzUid;
    this.tcq_1 = $cgsUid;
    this.ucq_1 = $activeFilter;
    this.vcq_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda).xcq = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.xcq((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.wcq_1.i5h(1, this.rcq_1);
            this.wcq_1.i5h(2, this.scq_1);
            this.wcq_1.i5h(3, this.tcq_1);
            this.wcq_1.i5h(4, this.scq_1);
            this.wcq_1.i5h(5, this.tcq_1);
            this.wcq_1.h5h(6, this.ucq_1);
            this.wcq_1.h5h(7, this.ucq_1);
            this.wcq_1.i5h(8, this.scq_1);
            this.wcq_1.i5h(9, this.vcq_1);
            this.wcq_1.i5h(10, this.vcq_1);
            this.wcq_1.i5h(11, this.scq_1);
            this.wcq_1.i5h(12, this.vcq_1);
            this.wcq_1.i5h(13, this.vcq_1);
            this.wcq_1.i5h(14, this.vcq_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.wcq_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda(this.rcq_1, this.scq_1, this.tcq_1, this.ucq_1, this.vcq_1, completion);
    i.wcq_1 = _stmt;
    return i;
  };
  function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda_0($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) {
    var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.xcq(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda$lambda(_result) {
    return mapRows(_result, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda$lambda$lambda(_result));
  }
  function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_CourseGroupMember_nullCount = 0;
      var _tmp_cgmUid = $_result.l5m('cgmUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_cgmSetUid = $_result.l5m('cgmSetUid');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_cgmGroupNumber = $_result.k5m('cgmGroupNumber');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_cgmPersonUid = $_result.l5m('cgmPersonUid');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_cgmLct = $_result.l5m('cgmLct');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_CourseGroupMember_isAllNull = _tmp_CourseGroupMember_nullCount === 5;
      var _tmp_Person_nullCount = 0;
      var _tmp_personUid = $_result.l5m('personUid');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_gender = $_result.k5m('gender');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_active = $_result.w65('active');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.l5m('dateOfBirth');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.l5m('personGroupUid');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLct = $_result.l5m('personLct');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_personType = $_result.k5m('personType');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.l5m('personMasterChangeSeqNum');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.l5m('personLocalChangeSeqNum');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.k5m('personLastChangedBy');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_admin = $_result.w65('admin');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24;
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseGroupMemberAndPerson();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndGroupNumAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_CourseGroupMember_isAllNull) {
        var tmp_28 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new CourseGroupMember();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndGroupNumAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.mcp_1 = _tmp_cgmUid;
        this_1.ncp_1 = _tmp_cgmSetUid;
        this_1.ocp_1 = _tmp_cgmGroupNumber;
        this_1.pcp_1 = _tmp_cgmPersonUid;
        this_1.qcp_1 = _tmp_cgmLct;
        tmp_28.ycq_1 = this_1;
      }
      if (!_tmp_Person_isAllNull) {
        var tmp_29 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new Person();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndGroupNumAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.f95_1 = _tmp_personUid;
        this_2.g95_1 = _tmp_username;
        this_2.h95_1 = _tmp_firstNames;
        this_2.i95_1 = _tmp_lastName;
        this_2.j95_1 = _tmp_emailAddr;
        this_2.k95_1 = _tmp_phoneNum;
        this_2.l95_1 = _tmp_gender;
        this_2.m95_1 = _tmp_active;
        this_2.n95_1 = _tmp_dateOfBirth;
        this_2.o95_1 = _tmp_personAddress;
        this_2.p95_1 = _tmp_personOrgId;
        this_2.q95_1 = _tmp_personGroupUid;
        this_2.r95_1 = _tmp_personLct;
        this_2.s95_1 = _tmp_personCountry;
        this_2.t95_1 = _tmp_personType;
        this_2.u95_1 = _tmp_personMasterChangeSeqNum;
        this_2.v95_1 = _tmp_personLocalChangeSeqNum;
        this_2.w95_1 = _tmp_personLastChangedBy;
        this_2.x95_1 = _tmp_admin;
        this_2.y95_1 = _tmp_personNotes;
        this_2.z95_1 = _tmp_fatherName;
        this_2.a96_1 = _tmp_fatherNumber;
        this_2.b96_1 = _tmp_motherName;
        this_2.c96_1 = _tmp_motherNum;
        tmp_29.zcq_1 = this_2;
      }
      return this_0;
    };
  }
  function CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.acr_1);
  }
  protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO CourseGroupMember (cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) VALUES(?, ?, ?, ?, ?)';
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1).fcr = function (stmt, entity) {
    if (entity.mcp_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.mcp_1);
    }
    stmt.i5h(2, entity.ncp_1);
    stmt.h5h(3, entity.ocp_1);
    stmt.i5h(4, entity.pcp_1);
    stmt.i5h(5, entity.qcp_1);
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1).c5f = function (stmt, entity) {
    return this.fcr(stmt, entity instanceof CourseGroupMember ? entity : THROW_CCE());
  };
  function CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.acr_1);
  }
  protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO CourseGroupMember (cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) VALUES(?, ?, ?, ?, ?)';
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1).fcr = function (stmt, entity) {
    if (entity.mcp_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.mcp_1);
    }
    stmt.i5h(2, entity.ncp_1);
    stmt.h5h(3, entity.ocp_1);
    stmt.i5h(4, entity.pcp_1);
    stmt.i5h(5, entity.qcp_1);
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1).c5f = function (stmt, entity) {
    return this.fcr(stmt, entity instanceof CourseGroupMember ? entity : THROW_CCE());
  };
  function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) {
    this.qcr_1 = $time;
    this.rcr_1 = $clazzUid;
    this.scr_1 = $cgsUid;
    this.tcr_1 = $activeFilter;
    this.ucr_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda).xcq = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda).he = function (p1, $completion) {
    return this.xcq((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.vcr_1.i5h(1, this.qcr_1);
            this.vcr_1.i5h(2, this.rcr_1);
            this.vcr_1.i5h(3, this.scr_1);
            this.vcr_1.i5h(4, this.rcr_1);
            this.vcr_1.i5h(5, this.scr_1);
            this.vcr_1.h5h(6, this.tcr_1);
            this.vcr_1.h5h(7, this.tcr_1);
            this.vcr_1.i5h(8, this.rcr_1);
            this.vcr_1.i5h(9, this.ucr_1);
            this.vcr_1.i5h(10, this.ucr_1);
            this.vcr_1.i5h(11, this.rcr_1);
            this.vcr_1.i5h(12, this.ucr_1);
            this.vcr_1.i5h(13, this.ucr_1);
            this.vcr_1.i5h(14, this.ucr_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.vcr_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda).z5e = function (_stmt, completion) {
    var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda(this.qcr_1, this.rcr_1, this.scr_1, this.tcr_1, this.ucr_1, completion);
    i.vcr_1 = _stmt;
    return i;
  };
  function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda_0($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) {
    var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.xcq(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda(this$0, $time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) {
    this.ecs_1 = this$0;
    this.fcs_1 = $time;
    this.gcs_1 = $clazzUid;
    this.hcs_1 = $cgsUid;
    this.ics_1 = $activeFilter;
    this.jcs_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda).kcs = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda).z77 = function ($completion) {
    return this.kcs($completion);
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig("\n        --First get a list of all enrolments - this may contains duplicates for students who leave and re-enrol\n        WITH AllEnrollmentsAndActiveStatus(enrolledPersonUid, isActive) AS \n             (SELECT ClazzEnrolment.clazzEnrolmentPersonUid AS enrolledPersonUid,\n                     (CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft) AS isActive\n                FROM ClazzEnrolment\n               WHERE ClazzEnrolment.clazzEnrolmentClazzUid = \n        CASE(CAST(? AS BIGINT))\n                         WHEN 0 THEN \n                                (SELECT CourseGroupSet.cgsClazzUid\n                                   FROM CourseGroupSet\n                                  WHERE CourseGroupSet.cgsUid = CAST(? AS BIGINT))\n                         ELSE CAST(? AS BIGINT)\n                     END\n    \n                 AND ClazzEnrolment.clazzEnrolmentRole = 1000),\n        --Consolidate and removes any duplicates\n             EnrolledStudentPersonUids(enrolledPersonUid, isActive) AS\n             (SELECT DISTINCT AllEnrollmentsAndActiveStatus.enrolledPersonUid,\n                     (SELECT CAST(AllEnrollmentsInner.isActive AS INTEGER)\n                        FROM AllEnrollmentsAndActiveStatus AllEnrollmentsInner\n                       WHERE AllEnrollmentsInner.enrolledPersonUid = AllEnrollmentsAndActiveStatus.enrolledPersonUid\n                    ORDER BY AllEnrollmentsInner.isActive DESC\n                       LIMIT 1) AS isActive\n                FROM AllEnrollmentsAndActiveStatus)\n        \n        -- Now create a list with each students name, the coursegroupmember object if any and active status        \n        SELECT (Person.firstNames || ' ' || Person.lastName) AS name,\n               Person.personUid,\n               CourseGroupMember.*,\n               PersonPicture.*,\n               EnrolledStudentPersonUids.isActive AS enrolmentIsActive,\n               PersonPicture.personPictureThumbnailUri AS pictureUri\n          FROM EnrolledStudentPersonUids\n               JOIN Person\n                    ON Person.personUid = EnrolledStudentPersonUids.enrolledPersonUid \n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = Person.personUid  \n               -- LEFT JOIN will use the most recent member in case of duplicate assignments eg if      \n               LEFT JOIN CourseGroupMember\n                         ON CourseGroupMember.cgmUid = \n                            (SELECT CourseGroupMember.cgmUid\n                               FROM CourseGroupMember\n                              WHERE CourseGroupMember.cgmPersonUid = EnrolledStudentPersonUids.enrolledPersonUid\n                                AND CourseGroupMember.cgmSetUid = CAST(? AS BIGINT) \n                           ORDER BY CourseGroupMember.cgmLct DESC        \n                              LIMIT 1)\n         WHERE (? = 0 OR ? = EnrolledStudentPersonUids.isActive)  \n               /* \n                * Begin permission check -  must have course view members permission, or active \n                * user must be in the same group \n                */ \n            AND (\n                    ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         8192\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     8192\n                     \n        ) > 0)\n               )\n    )\n                  OR EXISTS(\n                     SELECT 1\n                       FROM CourseGroupMember _CourseGroupMemberForActivePerson\n                      WHERE _CourseGroupMemberForActivePerson.cgmPersonUid = CAST(? AS BIGINT)\n                        AND _CourseGroupMemberForActivePerson.cgmGroupNumber = CourseGroupMember.cgmGroupNumber)     \n                 )\n      ORDER BY Person.firstNames, Person.lastName ASC\n    ", VOID, VOID, VOID, "\n        --First get a list of all enrolments - this may contains duplicates for students who leave and re-enrol\n        WITH AllEnrollmentsAndActiveStatus(enrolledPersonUid, isActive) AS \n             (SELECT ClazzEnrolment.clazzEnrolmentPersonUid AS enrolledPersonUid,\n                     (? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft) AS isActive\n                FROM ClazzEnrolment\n               WHERE ClazzEnrolment.clazzEnrolmentClazzUid = \n        CASE(?)\n                         WHEN 0 THEN \n                                (SELECT CourseGroupSet.cgsClazzUid\n                                   FROM CourseGroupSet\n                                  WHERE CourseGroupSet.cgsUid = ?)\n                         ELSE ?\n                     END\n    \n                 AND ClazzEnrolment.clazzEnrolmentRole = 1000),\n        --Consolidate and removes any duplicates\n             EnrolledStudentPersonUids(enrolledPersonUid, isActive) AS\n             (SELECT DISTINCT AllEnrollmentsAndActiveStatus.enrolledPersonUid,\n                     (SELECT CAST(AllEnrollmentsInner.isActive AS INTEGER)\n                        FROM AllEnrollmentsAndActiveStatus AllEnrollmentsInner\n                       WHERE AllEnrollmentsInner.enrolledPersonUid = AllEnrollmentsAndActiveStatus.enrolledPersonUid\n                    ORDER BY AllEnrollmentsInner.isActive DESC\n                       LIMIT 1) AS isActive\n                FROM AllEnrollmentsAndActiveStatus)\n        \n        -- Now create a list with each students name, the coursegroupmember object if any and active status        \n        SELECT (Person.firstNames || ' ' || Person.lastName) AS name,\n               Person.personUid,\n               CourseGroupMember.*,\n               PersonPicture.*,\n               EnrolledStudentPersonUids.isActive AS enrolmentIsActive,\n               PersonPicture.personPictureThumbnailUri AS pictureUri\n          FROM EnrolledStudentPersonUids\n               JOIN Person\n                    ON Person.personUid = EnrolledStudentPersonUids.enrolledPersonUid \n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = Person.personUid  \n               -- LEFT JOIN will use the most recent member in case of duplicate assignments eg if      \n               LEFT JOIN CourseGroupMember\n                         ON CourseGroupMember.cgmUid = \n                            (SELECT CourseGroupMember.cgmUid\n                               FROM CourseGroupMember\n                              WHERE CourseGroupMember.cgmPersonUid = EnrolledStudentPersonUids.enrolledPersonUid\n                                AND CourseGroupMember.cgmSetUid = ? \n                           ORDER BY CourseGroupMember.cgmLct DESC        \n                              LIMIT 1)\n         WHERE (? = 0 OR ? = EnrolledStudentPersonUids.isActive)  \n               /* \n                * Begin permission check -  must have course view members permission, or active \n                * user must be in the same group \n                */ \n            AND (\n                    ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         8192\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     8192\n                     \n        ) > 0)\n               )\n    )\n                  OR EXISTS(\n                     SELECT 1\n                       FROM CourseGroupMember _CourseGroupMemberForActivePerson\n                      WHERE _CourseGroupMemberForActivePerson.cgmPersonUid = ?\n                        AND _CourseGroupMemberForActivePerson.cgmGroupNumber = CourseGroupMember.cgmGroupNumber)     \n                 )\n      ORDER BY Person.firstNames, Person.lastName ASC\n    \n", true);
            suspendResult = prepareAndUseStatementAsync(this.ecs_1.acr_1, tmp_0, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda_0(this.fcs_1, this.gcs_1, this.hcs_1, this.ics_1, this.jcs_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda).y77 = function (completion) {
    return new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda(this.ecs_1, this.fcs_1, this.gcs_1, this.hcs_1, this.ics_1, this.jcs_1, completion);
  };
  function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda_0(this$0, $time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) {
    var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda(this$0, $time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.kcs($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda($courseGroupSetUid, $groupNum, $accountPersonUid, $assignmentUid, $clazzUid, resultContinuation) {
    this.tcs_1 = $courseGroupSetUid;
    this.ucs_1 = $groupNum;
    this.vcs_1 = $accountPersonUid;
    this.wcs_1 = $assignmentUid;
    this.xcs_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda).zcs = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda).he = function (p1, $completion) {
    return this.zcs((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ycs_1.i5h(1, this.tcs_1);
            this.ycs_1.h5h(2, this.ucs_1);
            this.ycs_1.i5h(3, this.tcs_1);
            this.ycs_1.i5h(4, this.vcs_1);
            this.ycs_1.i5h(5, this.wcs_1);
            this.ycs_1.h5h(6, this.ucs_1);
            this.ycs_1.i5h(7, this.vcs_1);
            this.ycs_1.i5h(8, this.xcs_1);
            this.ycs_1.i5h(9, this.vcs_1);
            this.ycs_1.i5h(10, this.vcs_1);
            this.ycs_1.i5h(11, this.xcs_1);
            this.ycs_1.i5h(12, this.vcs_1);
            this.ycs_1.i5h(13, this.vcs_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ycs_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda).z5e = function (_stmt, completion) {
    var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda(this.tcs_1, this.ucs_1, this.vcs_1, this.wcs_1, this.xcs_1, completion);
    i.ycs_1 = _stmt;
    return i;
  };
  function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda_0($courseGroupSetUid, $groupNum, $accountPersonUid, $assignmentUid, $clazzUid, resultContinuation) {
    var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda($courseGroupSetUid, $groupNum, $accountPersonUid, $assignmentUid, $clazzUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.zcs(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$188(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ict_1 = _this__u8e3s4;
    this.jct_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$188).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.ict_1.bcr_1.j5g(this.jct_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseGroupMemberDao_JdbcImpl(_db) {
    CourseGroupMemberDao.call(this);
    this.acr_1 = _db;
    var tmp = this;
    tmp.bcr_1 = new CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1(this);
    var tmp_0 = this;
    tmp_0.ccr_1 = new CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1(this);
  }
  protoOf(CourseGroupMemberDao_JdbcImpl).rco = function (list, $completion) {
    return this.ccr_1.m5g(list, $completion);
  };
  protoOf(CourseGroupMemberDao_JdbcImpl).dcq = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$188(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.dcq(entity instanceof CourseGroupMember ? entity : THROW_CCE(), $completion);
  };
  protoOf(CourseGroupMemberDao_JdbcImpl).pco = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid, $completion) {
    var tmp = new PreparedStatementConfig("\n        --First get a list of all enrolments - this may contains duplicates for students who leave and re-enrol\n        WITH AllEnrollmentsAndActiveStatus(enrolledPersonUid, isActive) AS \n             (SELECT ClazzEnrolment.clazzEnrolmentPersonUid AS enrolledPersonUid,\n                     (CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft) AS isActive\n                FROM ClazzEnrolment\n               WHERE ClazzEnrolment.clazzEnrolmentClazzUid = \n        CASE(CAST(? AS BIGINT))\n                         WHEN 0 THEN \n                                (SELECT CourseGroupSet.cgsClazzUid\n                                   FROM CourseGroupSet\n                                  WHERE CourseGroupSet.cgsUid = CAST(? AS BIGINT))\n                         ELSE CAST(? AS BIGINT)\n                     END\n    \n                 AND ClazzEnrolment.clazzEnrolmentRole = 1000),\n        --Consolidate and removes any duplicates\n             EnrolledStudentPersonUids(enrolledPersonUid, isActive) AS\n             (SELECT DISTINCT AllEnrollmentsAndActiveStatus.enrolledPersonUid,\n                     (SELECT CAST(AllEnrollmentsInner.isActive AS INTEGER)\n                        FROM AllEnrollmentsAndActiveStatus AllEnrollmentsInner\n                       WHERE AllEnrollmentsInner.enrolledPersonUid = AllEnrollmentsAndActiveStatus.enrolledPersonUid\n                    ORDER BY AllEnrollmentsInner.isActive DESC\n                       LIMIT 1) AS isActive\n                FROM AllEnrollmentsAndActiveStatus)\n        \n        -- Now create a list with each students name, the coursegroupmember object if any and active status        \n        SELECT (Person.firstNames || ' ' || Person.lastName) AS name,\n               Person.personUid,\n               CourseGroupMember.*,\n               PersonPicture.*,\n               EnrolledStudentPersonUids.isActive AS enrolmentIsActive,\n               PersonPicture.personPictureThumbnailUri AS pictureUri\n          FROM EnrolledStudentPersonUids\n               JOIN Person\n                    ON Person.personUid = EnrolledStudentPersonUids.enrolledPersonUid \n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = Person.personUid  \n               -- LEFT JOIN will use the most recent member in case of duplicate assignments eg if      \n               LEFT JOIN CourseGroupMember\n                         ON CourseGroupMember.cgmUid = \n                            (SELECT CourseGroupMember.cgmUid\n                               FROM CourseGroupMember\n                              WHERE CourseGroupMember.cgmPersonUid = EnrolledStudentPersonUids.enrolledPersonUid\n                                AND CourseGroupMember.cgmSetUid = CAST(? AS BIGINT) \n                           ORDER BY CourseGroupMember.cgmLct DESC        \n                              LIMIT 1)\n         WHERE (? = 0 OR ? = EnrolledStudentPersonUids.isActive)  \n               /* \n                * Begin permission check -  must have course view members permission, or active \n                * user must be in the same group \n                */ \n            AND (\n                    ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         8192\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     8192\n                     \n        ) > 0)\n               )\n    )\n                  OR EXISTS(\n                     SELECT 1\n                       FROM CourseGroupMember _CourseGroupMemberForActivePerson\n                      WHERE _CourseGroupMemberForActivePerson.cgmPersonUid = CAST(? AS BIGINT)\n                        AND _CourseGroupMemberForActivePerson.cgmGroupNumber = CourseGroupMember.cgmGroupNumber)     \n                 )\n      ORDER BY Person.firstNames, Person.lastName ASC\n    ", VOID, VOID, VOID, "\n        --First get a list of all enrolments - this may contains duplicates for students who leave and re-enrol\n        WITH AllEnrollmentsAndActiveStatus(enrolledPersonUid, isActive) AS \n             (SELECT ClazzEnrolment.clazzEnrolmentPersonUid AS enrolledPersonUid,\n                     (? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft) AS isActive\n                FROM ClazzEnrolment\n               WHERE ClazzEnrolment.clazzEnrolmentClazzUid = \n        CASE(?)\n                         WHEN 0 THEN \n                                (SELECT CourseGroupSet.cgsClazzUid\n                                   FROM CourseGroupSet\n                                  WHERE CourseGroupSet.cgsUid = ?)\n                         ELSE ?\n                     END\n    \n                 AND ClazzEnrolment.clazzEnrolmentRole = 1000),\n        --Consolidate and removes any duplicates\n             EnrolledStudentPersonUids(enrolledPersonUid, isActive) AS\n             (SELECT DISTINCT AllEnrollmentsAndActiveStatus.enrolledPersonUid,\n                     (SELECT CAST(AllEnrollmentsInner.isActive AS INTEGER)\n                        FROM AllEnrollmentsAndActiveStatus AllEnrollmentsInner\n                       WHERE AllEnrollmentsInner.enrolledPersonUid = AllEnrollmentsAndActiveStatus.enrolledPersonUid\n                    ORDER BY AllEnrollmentsInner.isActive DESC\n                       LIMIT 1) AS isActive\n                FROM AllEnrollmentsAndActiveStatus)\n        \n        -- Now create a list with each students name, the coursegroupmember object if any and active status        \n        SELECT (Person.firstNames || ' ' || Person.lastName) AS name,\n               Person.personUid,\n               CourseGroupMember.*,\n               PersonPicture.*,\n               EnrolledStudentPersonUids.isActive AS enrolmentIsActive,\n               PersonPicture.personPictureThumbnailUri AS pictureUri\n          FROM EnrolledStudentPersonUids\n               JOIN Person\n                    ON Person.personUid = EnrolledStudentPersonUids.enrolledPersonUid \n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = Person.personUid  \n               -- LEFT JOIN will use the most recent member in case of duplicate assignments eg if      \n               LEFT JOIN CourseGroupMember\n                         ON CourseGroupMember.cgmUid = \n                            (SELECT CourseGroupMember.cgmUid\n                               FROM CourseGroupMember\n                              WHERE CourseGroupMember.cgmPersonUid = EnrolledStudentPersonUids.enrolledPersonUid\n                                AND CourseGroupMember.cgmSetUid = ? \n                           ORDER BY CourseGroupMember.cgmLct DESC        \n                              LIMIT 1)\n         WHERE (? = 0 OR ? = EnrolledStudentPersonUids.isActive)  \n               /* \n                * Begin permission check -  must have course view members permission, or active \n                * user must be in the same group \n                */ \n            AND (\n                    ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         8192\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     8192\n                     \n        ) > 0)\n               )\n    )\n                  OR EXISTS(\n                     SELECT 1\n                       FROM CourseGroupMember _CourseGroupMemberForActivePerson\n                      WHERE _CourseGroupMemberForActivePerson.cgmPersonUid = ?\n                        AND _CourseGroupMemberForActivePerson.cgmGroupNumber = CourseGroupMember.cgmGroupNumber)     \n                 )\n      ORDER BY Person.firstNames, Person.lastName ASC\n    \n", true);
    return prepareAndUseStatementAsync(this.acr_1, tmp, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda_0(time, clazzUid, cgsUid, activeFilter, accountPersonUid, null), $completion);
  };
  protoOf(CourseGroupMemberDao_JdbcImpl).qco = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['ClazzEnrolment', 'Person', 'PersonPicture', 'CourseGroupMember', 'CourseGroupSet'];
    return doorFlow(this.acr_1, tmp, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda_0(this, time, clazzUid, cgsUid, activeFilter, accountPersonUid, null));
  };
  protoOf(CourseGroupMemberDao_JdbcImpl).sco = function (courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT CourseGroupMember.*, Person.*\n          FROM CourseGroupMember\n               JOIN Person \n                    ON Person.personUid = CourseGroupMember.cgmPersonUid\n         WHERE (    CourseGroupMember.cgmSetUid = CAST(? AS BIGINT)\n                AND CourseGroupMember.cgmGroupNumber = ?)\n           AND (    /* Grant permission where the active person is in the group */ \n                    EXISTS(SELECT 1\n                             FROM CourseGroupMember CourseGroupMemberInternal\n                            WHERE CourseGroupMemberInternal.cgmSetUid = CAST(? AS BIGINT)\n                              AND CourseGroupMemberInternal.cgmPersonUid = CAST(? AS BIGINT))\n                    /* Grant permission where the activepersonuid is in a group assigned to mark this group */\n                 OR EXISTS(SELECT 1\n                             FROM PeerReviewerAllocation\n                            WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n                              AND PeerReviewerAllocation.praMarkerSubmitterUid = ?\n                              AND EXISTS(SELECT 1\n                                           FROM CourseGroupMember CourseGroupMemberInternal\n                                          WHERE CourseGroupMemberInternal.cgmSetUid = PeerReviewerAllocation.praMarkerSubmitterUid\n                                            AND CourseGroupMemberInternal.cgmPersonUid = CAST(? AS BIGINT))) \n                    /* Grant permission where the active person has the select person permission for the class */                        \n                 OR ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         8192\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     8192\n                     \n        ) > 0)\n               )\n    )    \n               )\n               \n    ', VOID, VOID, VOID, '\n        SELECT CourseGroupMember.*, Person.*\n          FROM CourseGroupMember\n               JOIN Person \n                    ON Person.personUid = CourseGroupMember.cgmPersonUid\n         WHERE (    CourseGroupMember.cgmSetUid = ?\n                AND CourseGroupMember.cgmGroupNumber = ?)\n           AND (    /* Grant permission where the active person is in the group */ \n                    EXISTS(SELECT 1\n                             FROM CourseGroupMember CourseGroupMemberInternal\n                            WHERE CourseGroupMemberInternal.cgmSetUid = ?\n                              AND CourseGroupMemberInternal.cgmPersonUid = ?)\n                    /* Grant permission where the activepersonuid is in a group assigned to mark this group */\n                 OR EXISTS(SELECT 1\n                             FROM PeerReviewerAllocation\n                            WHERE PeerReviewerAllocation.praAssignmentUid = ?\n                              AND PeerReviewerAllocation.praMarkerSubmitterUid = ?\n                              AND EXISTS(SELECT 1\n                                           FROM CourseGroupMember CourseGroupMemberInternal\n                                          WHERE CourseGroupMemberInternal.cgmSetUid = PeerReviewerAllocation.praMarkerSubmitterUid\n                                            AND CourseGroupMemberInternal.cgmPersonUid = ?)) \n                    /* Grant permission where the active person has the select person permission for the class */                        \n                 OR ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         8192\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     8192\n                     \n        ) > 0)\n               )\n    )    \n               )\n               \n    \n', true);
    return prepareAndUseStatementAsync(this.acr_1, tmp, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda_0(courseGroupSetUid, groupNum, accountPersonUid, assignmentUid, clazzUid, null), $completion);
  };
  function CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazz$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda(this$0, $cgsUid, $clazzUid, $time, $activeFilter, $accountPersonUid, resultContinuation) {
    this.sct_1 = this$0;
    this.tct_1 = $cgsUid;
    this.uct_1 = $clazzUid;
    this.vct_1 = $time;
    this.wct_1 = $activeFilter;
    this.xct_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.yct_1 = this.sct_1.hcu_1;
            var tmp_1 = this;
            tmp_1.zct_1 = 'CourseGroupMemberDao/findByCourseGroupSetAndClazzAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.acu_1 = this.sct_1.jcu_1;
            var tmp_3 = this;
            tmp_3.bcu_1 = this.acu_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.sct_1.hcu_1.w38(), 'CourseGroupMemberDao/findByCourseGroupSetAndClazzAsFlow');
            doorNodeIdHeader(this_0, this.sct_1.hcu_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'cgsUid', this.sct_1.hcu_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.tct_1));
            parameter(this_0, 'clazzUid', this.sct_1.hcu_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.uct_1));
            parameter(this_0, 'time', this.sct_1.hcu_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.vct_1));
            parameter(this_0, 'activeFilter', this.sct_1.hcu_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.wct_1));
            parameter(this_0, 'accountPersonUid', this.sct_1.hcu_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.xct_1));
            tmp_4.ccu_1 = this_0;
            this.ccu_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.dcu_1 = this.bcu_1;
            var tmp_6 = this;
            tmp_6.ecu_1 = this.ccu_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.ecu_1, this.dcu_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.fcu_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.sct_1.gcu_1, this.fcu_1, this.sct_1.hcu_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda$lambda(this.yct_1, this.zct_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda).y77 = function (completion) {
    return new CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda(this.sct_1, this.tct_1, this.uct_1, this.vct_1, this.wct_1, this.xct_1, completion);
  };
  function CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda_0(this$0, $cgsUid, $clazzUid, $time, $activeFilter, $accountPersonUid, resultContinuation) {
    var i = new CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda(this$0, $cgsUid, $clazzUid, $time, $activeFilter, $accountPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseGroupMemberDao_Repo$upsertListAsync$slambda(this$0, $list, resultContinuation) {
    this.vcu_1 = this$0;
    this.wcu_1 = $list;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupMemberDao_Repo$upsertListAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_Repo$upsertListAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseGroupMemberDao_Repo$upsertListAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.vcu_1.icu_1.rco(this.wcu_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseGroupMemberDao_Repo$upsertListAsync$slambda).y77 = function (completion) {
    return new CourseGroupMemberDao_Repo$upsertListAsync$slambda(this.vcu_1, this.wcu_1, completion);
  };
  function CourseGroupMemberDao_Repo$upsertListAsync$slambda_0(this$0, $list, resultContinuation) {
    var i = new CourseGroupMemberDao_Repo$upsertListAsync$slambda(this$0, $list, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseGroupMemberDao_Repo$findByCourseGroupSetAndGroupNumAsync$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseGroupMemberDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.fcv_1 = this$0;
    this.gcv_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupMemberDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(CourseGroupMemberDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.fcv_1.icu_1.insertAsync(this.gcv_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseGroupMemberDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new CourseGroupMemberDao_Repo$insertAsync$slambda(this.fcv_1, this.gcv_1, completion);
  };
  function CourseGroupMemberDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new CourseGroupMemberDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByCourseGroupSetAndClazzCOROUTINE$191(_this__u8e3s4, cgsUid, clazzUid, time, activeFilter, accountPersonUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.pcv_1 = _this__u8e3s4;
    this.qcv_1 = cgsUid;
    this.rcv_1 = clazzUid;
    this.scv_1 = time;
    this.tcv_1 = activeFilter;
    this.ucv_1 = accountPersonUid;
  }
  protoOf($findByCourseGroupSetAndClazzCOROUTINE$191).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.vcv_1 = this.pcv_1.hcu_1;
            var tmp_1 = this;
            tmp_1.wcv_1 = 'CourseGroupMemberDao/findByCourseGroupSetAndClazz';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.xcv_1 = this.pcv_1.jcu_1;
            var tmp_3 = this;
            tmp_3.ycv_1 = this.xcv_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.pcv_1.hcu_1.w38(), 'CourseGroupMemberDao/findByCourseGroupSetAndClazz');
            doorNodeIdHeader(this_0, this.pcv_1.hcu_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'cgsUid', this.pcv_1.hcu_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.qcv_1));
            parameter(this_0, 'clazzUid', this.pcv_1.hcu_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.rcv_1));
            parameter(this_0, 'time', this.pcv_1.hcu_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.scv_1));
            parameter(this_0, 'activeFilter', this.pcv_1.hcu_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.tcv_1));
            parameter(this_0, 'accountPersonUid', this.pcv_1.hcu_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ucv_1));
            tmp_4.zcv_1 = this_0;
            this.zcv_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.acw_1 = this.ycv_1;
            var tmp_6 = this;
            tmp_6.bcw_1 = this.zcv_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.bcw_1, this.acw_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.ccw_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.pcv_1.gcu_1, this.ccw_1, this.pcv_1.hcu_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.dcw_1 = this.kd_1;
              Napier_getInstance().q5d(this.dcw_1, 'DoorLog', CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazz$lambda(this.vcv_1, this.wcv_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.pcv_1.icu_1.pco(this.qcv_1, this.rcv_1, this.scv_1, this.tcv_1, this.ucv_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $findByCourseGroupSetAndGroupNumAsyncCOROUTINE$194(_this__u8e3s4, courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.mcw_1 = _this__u8e3s4;
    this.ncw_1 = courseGroupSetUid;
    this.ocw_1 = groupNum;
    this.pcw_1 = clazzUid;
    this.qcw_1 = assignmentUid;
    this.rcw_1 = accountPersonUid;
  }
  protoOf($findByCourseGroupSetAndGroupNumAsyncCOROUTINE$194).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.scw_1 = this.mcw_1.hcu_1;
            var tmp_1 = this;
            tmp_1.tcw_1 = 'CourseGroupMemberDao/findByCourseGroupSetAndGroupNumAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ucw_1 = this.mcw_1.jcu_1;
            var tmp_3 = this;
            tmp_3.vcw_1 = this.ucw_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.mcw_1.hcu_1.w38(), 'CourseGroupMemberDao/findByCourseGroupSetAndGroupNumAsync');
            doorNodeIdHeader(this_0, this.mcw_1.hcu_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'courseGroupSetUid', this.mcw_1.hcu_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ncw_1));
            parameter(this_0, 'groupNum', this.mcw_1.hcu_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.ocw_1));
            parameter(this_0, 'clazzUid', this.mcw_1.hcu_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.pcw_1));
            parameter(this_0, 'assignmentUid', this.mcw_1.hcu_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.qcw_1));
            parameter(this_0, 'accountPersonUid', this.mcw_1.hcu_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.rcw_1));
            tmp_4.wcw_1 = this_0;
            this.wcw_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.xcw_1 = this.vcw_1;
            var tmp_6 = this;
            tmp_6.ycw_1 = this.wcw_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.ycw_1, this.xcw_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.zcw_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.mcw_1.gcu_1, this.zcw_1, this.mcw_1.hcu_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.acx_1 = this.kd_1;
              Napier_getInstance().q5d(this.acx_1, 'DoorLog', CourseGroupMemberDao_Repo$findByCourseGroupSetAndGroupNumAsync$lambda(this.scw_1, this.tcw_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.mcw_1.icu_1.sco(this.ncw_1, this.ocw_1, this.pcw_1, this.qcw_1, this.rcw_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$195(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.jcx_1 = _this__u8e3s4;
    this.kcx_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$195).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.jcx_1.hcu_1, 'CourseGroupMember', CourseGroupMemberDao_Repo$insertAsync$slambda_0(this.jcx_1, this.kcx_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseGroupMemberDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    CourseGroupMemberDao.call(this);
    this.gcu_1 = _db;
    this.hcu_1 = _repo;
    this.icu_1 = _dao;
    this.jcu_1 = _httpClient;
    this.kcu_1 = _clientId;
    this.lcu_1 = _endpoint;
    this.mcu_1 = new RepoDaoFlowHelper(this.hcu_1);
  }
  protoOf(CourseGroupMemberDao_Repo).pco = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid, $completion) {
    var tmp = new $findByCourseGroupSetAndClazzCOROUTINE$191(this, cgsUid, clazzUid, time, activeFilter, accountPersonUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_Repo).qco = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid) {
    var tmp = this.icu_1.qco(cgsUid, clazzUid, time, activeFilter, accountPersonUid);
    return this.mcu_1.b67(tmp, CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda_0(this, cgsUid, clazzUid, time, activeFilter, accountPersonUid, null));
  };
  protoOf(CourseGroupMemberDao_Repo).rco = function (list, $completion) {
    return withRepoChangeMonitorAsync(this.hcu_1, 'CourseGroupMember', CourseGroupMemberDao_Repo$upsertListAsync$slambda_0(this, list, null), $completion);
  };
  protoOf(CourseGroupMemberDao_Repo).sco = function (courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion) {
    var tmp = new $findByCourseGroupSetAndGroupNumAsyncCOROUTINE$194(this, courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_Repo).dcq = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$195(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_Repo).insertAsync = function (entity, $completion) {
    return this.dcq(entity instanceof CourseGroupMember ? entity : THROW_CCE(), $completion);
  };
  function CourseGroupSetDao() {
  }
  function $upsertAsyncCOROUTINE$196(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.wcx_1 = _this__u8e3s4;
    this.xcx_1 = entity;
  }
  protoOf($upsertAsyncCOROUTINE$196).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.ycx_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.wcx_1.acy_1));
            if (this.xcx_1.d7y_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.ycx_1.b62(242, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.zcx_1 = suspendResult;
            this.xcx_1.d7y_1 = this.zcx_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.xcx_1.i7y_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.wcx_1.bcy_1.ncx(this.xcx_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return Unit_instance;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$197(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.kcy_1 = _this__u8e3s4;
    this.lcy_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$197).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.mcy_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.kcy_1.acy_1));
            if (this.lcy_1.d7y_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.mcy_1.b62(242, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.ncy_1 = suspendResult;
            this.lcy_1.d7y_1 = this.ncy_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.lcy_1.i7y_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.kcy_1.bcy_1.insertAsync(this.lcy_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.lcy_1.d7y_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseGroupSetDao_DoorWrapper(_db, _dao) {
    CourseGroupSetDao.call(this);
    this.acy_1 = _db;
    this.bcy_1 = _dao;
  }
  protoOf(CourseGroupSetDao_DoorWrapper).lcx = function (clazzUid, searchText, sortOrder) {
    return this.bcy_1.lcx(clazzUid, searchText, sortOrder);
  };
  protoOf(CourseGroupSetDao_DoorWrapper).mcx = function (uid, $completion) {
    return this.bcy_1.mcx(uid, $completion);
  };
  protoOf(CourseGroupSetDao_DoorWrapper).w8b = function (uid) {
    return this.bcy_1.w8b(uid);
  };
  protoOf(CourseGroupSetDao_DoorWrapper).ncx = function (entity, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$196(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_DoorWrapper).ocy = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$197(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.ocy(entity instanceof CourseGroupSet ? entity : THROW_CCE(), $completion);
  };
  function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda$lambda$lambda(_result));
  }
  function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_cgsUid = $_result.l5m('cgsUid');
      var _tmp_cgsName = $_result.rz('cgsName');
      var _tmp_cgsTotalGroups = $_result.k5m('cgsTotalGroups');
      var _tmp_cgsActive = $_result.w65('cgsActive');
      var _tmp_cgsClazzUid = $_result.l5m('cgsClazzUid');
      var _tmp_cgsLct = $_result.l5m('cgsLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseGroupSet();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.d7y_1 = _tmp_cgsUid;
      this_0.e7y_1 = _tmp_cgsName;
      this_0.f7y_1 = _tmp_cgsTotalGroups;
      this_0.g7y_1 = _tmp_cgsActive;
      this_0.h7y_1 = _tmp_cgsClazzUid;
      this_0.i7y_1 = _tmp_cgsLct;
      return this_0;
    };
  }
  function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda$lambda$lambda(_result));
  }
  function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda($clazzUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) {
    this.xcy_1 = $clazzUid;
    this.ycy_1 = $searchText;
    this.zcy_1 = $sortOrder;
    this.acz_1 = $_limit;
    this.bcz_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda).dcz = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda).he = function (p1, $completion) {
    return this.dcz((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ccz_1.i5h(1, this.xcy_1);
            this.ccz_1.l5h(2, this.ycy_1);
            this.ccz_1.l5h(3, this.ycy_1);
            this.ccz_1.h5h(4, this.zcy_1);
            this.ccz_1.h5h(5, this.zcy_1);
            this.ccz_1.h5h(6, this.acz_1);
            this.ccz_1.h5h(7, this.bcz_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ccz_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda(this.xcy_1, this.ycy_1, this.zcy_1, this.acz_1, this.bcz_1, completion);
    i.ccz_1 = _stmt;
    return i;
  };
  function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda_0($clazzUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) {
    var i = new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda($clazzUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.dcz(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda($clazzUid, $searchText, $sortOrder, resultContinuation) {
    this.mcz_1 = $clazzUid;
    this.ncz_1 = $searchText;
    this.ocz_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.pcz_1.i5h(1, this.mcz_1);
            this.pcz_1.l5h(2, this.ncz_1);
            this.pcz_1.l5h(3, this.ncz_1);
            this.pcz_1.h5h(4, this.ocz_1);
            this.pcz_1.h5h(5, this.ocz_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.pcz_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda(this.mcz_1, this.ncz_1, this.ocz_1, completion);
    i.pcz_1 = _stmt;
    return i;
  };
  function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda_0($clazzUid, $searchText, $sortOrder, resultContinuation) {
    var i = new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda($clazzUid, $searchText, $sortOrder, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) {
    return mapNextRow(_result, null, CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result));
  }
  function CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_cgsUid = $_result.l5m('cgsUid');
      var _tmp_cgsName = $_result.rz('cgsName');
      var _tmp_cgsTotalGroups = $_result.k5m('cgsTotalGroups');
      var _tmp_cgsActive = $_result.w65('cgsActive');
      var _tmp_cgsClazzUid = $_result.l5m('cgsClazzUid');
      var _tmp_cgsLct = $_result.l5m('cgsLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseGroupSet();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseGroupSetDao_JdbcImpl.findByUidAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.d7y_1 = _tmp_cgsUid;
      this_0.e7y_1 = _tmp_cgsName;
      this_0.f7y_1 = _tmp_cgsTotalGroups;
      this_0.g7y_1 = _tmp_cgsActive;
      this_0.h7y_1 = _tmp_cgsClazzUid;
      this_0.i7y_1 = _tmp_cgsLct;
      return this_0;
    };
  }
  function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_cgsUid = $_result.l5m('cgsUid');
      var _tmp_cgsName = $_result.rz('cgsName');
      var _tmp_cgsTotalGroups = $_result.k5m('cgsTotalGroups');
      var _tmp_cgsActive = $_result.w65('cgsActive');
      var _tmp_cgsClazzUid = $_result.l5m('cgsClazzUid');
      var _tmp_cgsLct = $_result.l5m('cgsLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseGroupSet();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseGroupSetDao_JdbcImpl.findByUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.d7y_1 = _tmp_cgsUid;
      this_0.e7y_1 = _tmp_cgsName;
      this_0.f7y_1 = _tmp_cgsTotalGroups;
      this_0.g7y_1 = _tmp_cgsActive;
      this_0.h7y_1 = _tmp_cgsClazzUid;
      this_0.i7y_1 = _tmp_cgsLct;
      return this_0;
    };
  }
  function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda($uid, resultContinuation) {
    this.ycz_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda).ad0 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.ad0((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.zcz_1.i5h(1, this.ycz_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.zcz_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda(this.ycz_1, completion);
    i.zcz_1 = _stmt;
    return i;
  };
  function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0($uid, resultContinuation) {
    var i = new CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda($uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.ad0(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.bd0_1);
  }
  protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO CourseGroupSet (cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1).gd0 = function (stmt, entity) {
    if (entity.d7y_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.d7y_1);
    }
    stmt.l5h(2, entity.e7y_1);
    stmt.h5h(3, entity.f7y_1);
    stmt.v5g(4, entity.g7y_1);
    stmt.i5h(5, entity.h7y_1);
    stmt.i5h(6, entity.i7y_1);
  };
  protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1).c5f = function (stmt, entity) {
    return this.gd0(stmt, entity instanceof CourseGroupSet ? entity : THROW_CCE());
  };
  function CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.bd0_1);
  }
  protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO CourseGroupSet (cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1).gd0 = function (stmt, entity) {
    if (entity.d7y_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.d7y_1);
    }
    stmt.l5h(2, entity.e7y_1);
    stmt.h5h(3, entity.f7y_1);
    stmt.v5g(4, entity.g7y_1);
    stmt.i5h(5, entity.h7y_1);
    stmt.i5h(6, entity.i7y_1);
  };
  protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1).c5f = function (stmt, entity) {
    return this.gd0(stmt, entity instanceof CourseGroupSet ? entity : THROW_CCE());
  };
  function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1(this$0, $clazzUid, $searchText, $sortOrder) {
    this.pd0_1 = this$0;
    this.qd0_1 = $clazzUid;
    this.rd0_1 = $searchText;
    this.sd0_1 = $sortOrder;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['CourseGroupSet'];
    DoorLimitOffsetPagingSource.call(this, this$0.bd0_1, tmp$ret$2);
  }
  protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1).td0 = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig("SELECT * FROM (\n        SELECT *\n         FROM CourseGroupSet\n        WHERE cgsActive\n          AND cgsClazzUid = CAST(? AS BIGINT)\n          AND ((? = '%') OR (cgsName LIKE ?))\n     ORDER BY CASE(?)\n              WHEN 1 THEN cgsName\n              ELSE ''\n              END ASC,\n              CASE(?)\n              WHEN 2 THEN cgsName\n              ELSE ''\n              END DESC\n    ) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n        SELECT *\n         FROM CourseGroupSet\n        WHERE cgsActive\n          AND cgsClazzUid = ?\n          AND ((? = '%') OR (cgsName LIKE ?))\n     ORDER BY CASE(?)\n              WHEN 1 THEN cgsName\n              ELSE ''\n              END ASC,\n              CASE(?)\n              WHEN 2 THEN cgsName\n              ELSE ''\n              END DESC\n    ) AS _PagingData LIMIT ? OFFSET ?\n", true);
    return prepareAndUseStatementAsync(this.pd0_1.bd0_1, tmp, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda_0(this.qd0_1, this.rd0_1, this.sd0_1, _limit, _offset, null), $completion);
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1).j5p = function (_limit, _offset, $completion) {
    return this.td0(_limit, _offset, $completion);
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n        SELECT *\n         FROM CourseGroupSet\n        WHERE cgsActive\n          AND cgsClazzUid = CAST(? AS BIGINT)\n          AND ((? = '%') OR (cgsName LIKE ?))\n     ORDER BY CASE(?)\n              WHEN 1 THEN cgsName\n              ELSE ''\n              END ASC,\n              CASE(?)\n              WHEN 2 THEN cgsName\n              ELSE ''\n              END DESC\n    ) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n        SELECT *\n         FROM CourseGroupSet\n        WHERE cgsActive\n          AND cgsClazzUid = ?\n          AND ((? = '%') OR (cgsName LIKE ?))\n     ORDER BY CASE(?)\n              WHEN 1 THEN cgsName\n              ELSE ''\n              END ASC,\n              CASE(?)\n              WHEN 2 THEN cgsName\n              ELSE ''\n              END DESC\n    ) AS _PagingCount\n", true);
    return prepareAndUseStatementAsync(this.pd0_1.bd0_1, tmp, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda_0(this.qd0_1, this.rd0_1, this.sd0_1, null), $completion);
  };
  function CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) {
    this.cd1_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda).ad0 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda).he = function (p1, $completion) {
    return this.ad0((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.dd1_1.i5h(1, this.cd1_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.dd1_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda).z5e = function (_stmt, completion) {
    var i = new CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda(this.cd1_1, completion);
    i.dd1_1 = _stmt;
    return i;
  };
  function CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) {
    var i = new CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.ad0(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $uid, resultContinuation) {
    this.md1_1 = this$0;
    this.nd1_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda).od1 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda).z77 = function ($completion) {
    return this.od1($completion);
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT * \n         FROM CourseGroupSet \n        WHERE cgsUid = CAST(? AS BIGINT)\n        ', VOID, VOID, VOID, '\n        SELECT * \n         FROM CourseGroupSet \n        WHERE cgsUid = ?\n        \n', true);
            suspendResult = prepareAndUseStatementAsync(this.md1_1.bd0_1, tmp_0, CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0(this.nd1_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda).y77 = function (completion) {
    return new CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda(this.md1_1, this.nd1_1, completion);
  };
  function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda_0(this$0, $uid, resultContinuation) {
    var i = new CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $uid, resultContinuation);
    var l = function ($completion) {
      return i.od1($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$198(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.xd1_1 = _this__u8e3s4;
    this.yd1_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$198).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.xd1_1.dd0_1.j5g(this.yd1_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseGroupSetDao_JdbcImpl(_db) {
    CourseGroupSetDao.call(this);
    this.bd0_1 = _db;
    var tmp = this;
    tmp.cd0_1 = new CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1(this);
    var tmp_0 = this;
    tmp_0.dd0_1 = new CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1(this);
  }
  protoOf(CourseGroupSetDao_JdbcImpl).ncx = function (entity, $completion) {
    return this.cd0_1.i5g(entity, $completion);
  };
  protoOf(CourseGroupSetDao_JdbcImpl).ocy = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$198(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.ocy(entity instanceof CourseGroupSet ? entity : THROW_CCE(), $completion);
  };
  protoOf(CourseGroupSetDao_JdbcImpl).lcx = function (clazzUid, searchText, sortOrder) {
    return new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1(this, clazzUid, searchText, sortOrder);
  };
  protoOf(CourseGroupSetDao_JdbcImpl).mcx = function (uid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT * \n         FROM CourseGroupSet \n        WHERE cgsUid = CAST(? AS BIGINT)\n        ', VOID, VOID, VOID, '\n        SELECT * \n         FROM CourseGroupSet \n        WHERE cgsUid = ?\n        \n', true);
    return prepareAndUseStatementAsync(this.bd0_1, tmp, CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion);
  };
  protoOf(CourseGroupSetDao_JdbcImpl).w8b = function (uid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['CourseGroupSet'];
    return doorFlow(this.bd0_1, tmp, CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda_0(this, uid, null));
  };
  function CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda(this$0, $clazzUid, $searchText, $sortOrder, resultContinuation) {
    this.hd2_1 = this$0;
    this.id2_1 = $clazzUid;
    this.jd2_1 = $searchText;
    this.kd2_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda).k85 = function (_pagingParams, $completion) {
    var tmp = this.l85(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda).he = function (p1, $completion) {
    return this.k85(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            var tmp_0 = this;
            tmp_0.nd2_1 = this.hd2_1.wd2_1;
            var tmp_1 = this;
            tmp_1.od2_1 = 'CourseGroupSetDao/findAllCourseGroupSetForClazz';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.pd2_1 = this.hd2_1.yd2_1;
            var tmp_3 = this;
            tmp_3.qd2_1 = this.pd2_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.hd2_1.wd2_1.w38(), 'CourseGroupSetDao/findAllCourseGroupSetForClazz');
            doorNodeIdHeader(this_0, this.hd2_1.wd2_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.hd2_1.wd2_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.id2_1));
            parameter(this_0, 'searchText', this.hd2_1.wd2_1.w38().k65_1.e45(serializer_0(StringCompanionObject_instance), this.jd2_1));
            parameter(this_0, 'sortOrder', this.hd2_1.wd2_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.kd2_1));
            pagingSourceLoadParameters(this_0, this.hd2_1.wd2_1.w38().k65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.ld2_1);
            tmp_4.rd2_1 = this_0;
            this.rd2_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.sd2_1 = this.qd2_1;
            var tmp_6 = this;
            tmp_6.td2_1 = this.rd2_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.td2_1, this.sd2_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.ud2_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.hd2_1.vd2_1, this.ud2_1, this.hd2_1.wd2_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.md2_1 = endOfPaginationReached(this.ud2_1);
            this.id_1 = 5;
            this.hd_1 = 7;
            continue $sm;
          case 4:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda$lambda(this.nd2_1, this.od2_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 5:
            throw this.kd_1;
          case 6:
            this.id_1 = 5;
            if (false) {
              this.hd_1 = 1;
              continue $sm;
            }

            this.hd_1 = 7;
            continue $sm;
          case 7:
            return this.md2_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda).l85 = function (_pagingParams, completion) {
    var i = new CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda(this.hd2_1, this.id2_1, this.jd2_1, this.kd2_1, completion);
    i.ld2_1 = _pagingParams;
    return i;
  };
  function CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda_0(this$0, $clazzUid, $searchText, $sortOrder, resultContinuation) {
    var i = new CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda(this$0, $clazzUid, $searchText, $sortOrder, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.k85(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseGroupSetDao_Repo$findByUidAsync$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseGroupSetDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation) {
    this.jd3_1 = this$0;
    this.kd3_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupSetDao_Repo$upsertAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_Repo$upsertAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CourseGroupSetDao_Repo$upsertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.jd3_1.xd2_1.ncx(this.kd3_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseGroupSetDao_Repo$upsertAsync$slambda).y77 = function (completion) {
    return new CourseGroupSetDao_Repo$upsertAsync$slambda(this.jd3_1, this.kd3_1, completion);
  };
  function CourseGroupSetDao_Repo$upsertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new CourseGroupSetDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseGroupSetDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.td3_1 = this$0;
    this.ud3_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupSetDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(CourseGroupSetDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.td3_1.xd2_1.insertAsync(this.ud3_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseGroupSetDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new CourseGroupSetDao_Repo$insertAsync$slambda(this.td3_1, this.ud3_1, completion);
  };
  function CourseGroupSetDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new CourseGroupSetDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByUidAsyncCOROUTINE$202(_this__u8e3s4, uid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.dd4_1 = _this__u8e3s4;
    this.ed4_1 = uid;
  }
  protoOf($findByUidAsyncCOROUTINE$202).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.fd4_1 = this.dd4_1.wd2_1;
            var tmp_1 = this;
            tmp_1.gd4_1 = 'CourseGroupSetDao/findByUidAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.hd4_1 = this.dd4_1.yd2_1;
            var tmp_3 = this;
            tmp_3.id4_1 = this.hd4_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.dd4_1.wd2_1.w38(), 'CourseGroupSetDao/findByUidAsync');
            doorNodeIdHeader(this_0, this.dd4_1.wd2_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.dd4_1.wd2_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ed4_1));
            tmp_4.jd4_1 = this_0;
            this.jd4_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.kd4_1 = this.id4_1;
            var tmp_6 = this;
            tmp_6.ld4_1 = this.jd4_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.ld4_1, this.kd4_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.md4_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.dd4_1.vd2_1, this.md4_1, this.dd4_1.wd2_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.nd4_1 = this.kd_1;
              Napier_getInstance().q5d(this.nd4_1, 'DoorLog', CourseGroupSetDao_Repo$findByUidAsync$lambda(this.fd4_1, this.gd4_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.dd4_1.xd2_1.mcx(this.ed4_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$203(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.wd4_1 = _this__u8e3s4;
    this.xd4_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$203).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.wd4_1.wd2_1, 'CourseGroupSet', CourseGroupSetDao_Repo$insertAsync$slambda_0(this.wd4_1, this.xd4_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseGroupSetDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    CourseGroupSetDao.call(this);
    this.vd2_1 = _db;
    this.wd2_1 = _repo;
    this.xd2_1 = _dao;
    this.yd2_1 = _httpClient;
    this.zd2_1 = _clientId;
    this.ad3_1 = _endpoint;
  }
  protoOf(CourseGroupSetDao_Repo).lcx = function (clazzUid, searchText, sortOrder) {
    var tmp = this.xd2_1.lcx(clazzUid, searchText, sortOrder);
    return new DoorRepositoryReplicatePullPagingSource(this.wd2_1, 'CourseGroupSetDao/findAllCourseGroupSetForClazz', tmp, CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda_0(this, clazzUid, searchText, sortOrder, null));
  };
  protoOf(CourseGroupSetDao_Repo).mcx = function (uid, $completion) {
    var tmp = new $findByUidAsyncCOROUTINE$202(this, uid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_Repo).w8b = function (uid) {
    var _result = this.xd2_1.w8b(uid);
    return _result;
  };
  protoOf(CourseGroupSetDao_Repo).ncx = function (entity, $completion) {
    return withRepoChangeMonitorAsync(this.wd2_1, 'CourseGroupSet', CourseGroupSetDao_Repo$upsertAsync$slambda_0(this, entity, null), $completion);
  };
  protoOf(CourseGroupSetDao_Repo).ocy = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$203(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_Repo).insertAsync = function (entity, $completion) {
    return this.ocy(entity instanceof CourseGroupSet ? entity : THROW_CCE(), $completion);
  };
  function CoursePermissionDao() {
  }
  function $upsertAsyncCOROUTINE$204(_this__u8e3s4, coursePermission, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.qd5_1 = _this__u8e3s4;
    this.rd5_1 = coursePermission;
  }
  protoOf($upsertAsyncCOROUTINE$204).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.sd5_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.qd5_1.ud5_1));
            if (this.rd5_1.wd5_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.sd5_1.b62(10012, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.td5_1 = suspendResult;
            this.rd5_1.wd5_1 = this.td5_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.rd5_1.xd5_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.qd5_1.vd5_1.ad5(this.rd5_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return Unit_instance;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CoursePermissionDao_DoorWrapper(_db, _dao) {
    CoursePermissionDao.call(this);
    this.ud5_1 = _db;
    this.vd5_1 = _dao;
  }
  protoOf(CoursePermissionDao_DoorWrapper).yd4 = function (clazzUid, includeDeleted) {
    return this.vd5_1.yd4(clazzUid, includeDeleted);
  };
  protoOf(CoursePermissionDao_DoorWrapper).zd4 = function (uid, clazzUid, $completion) {
    return this.vd5_1.zd4(uid, clazzUid, $completion);
  };
  protoOf(CoursePermissionDao_DoorWrapper).s7r = function (uid, clazzUid) {
    return this.vd5_1.s7r(uid, clazzUid);
  };
  protoOf(CoursePermissionDao_DoorWrapper).ad5 = function (coursePermission, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$204(this, coursePermission, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_DoorWrapper).bbv = function (cpUid, isDeleted, updateTime, $completion) {
    return this.vd5_1.bbv(cpUid, isDeleted, updateTime, $completion);
  };
  protoOf(CoursePermissionDao_DoorWrapper).bd5 = function (accountPersonUid, clazzEnrolmentUid, $completion) {
    return this.vd5_1.bd5(accountPersonUid, clazzEnrolmentUid, $completion);
  };
  protoOf(CoursePermissionDao_DoorWrapper).cd5 = function (accountPersonUid, clazzUid, permission) {
    return this.vd5_1.cd5(accountPersonUid, clazzUid, permission);
  };
  protoOf(CoursePermissionDao_DoorWrapper).dd5 = function (accountPersonUid, clazzUid, firstPermission, secondPermission) {
    return this.vd5_1.dd5(accountPersonUid, clazzUid, firstPermission, secondPermission);
  };
  protoOf(CoursePermissionDao_DoorWrapper).ed5 = function (accountPersonUid, clazzUid, firstPermission, secondPermission, $completion) {
    return this.vd5_1.ed5(accountPersonUid, clazzUid, firstPermission, secondPermission, $completion);
  };
  protoOf(CoursePermissionDao_DoorWrapper).fd5 = function (accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission) {
    return this.vd5_1.fd5(accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission);
  };
  protoOf(CoursePermissionDao_DoorWrapper).gd5 = function (accountPersonUid, clazzUid, permission, $completion) {
    return this.vd5_1.gd5(accountPersonUid, clazzUid, permission, $completion);
  };
  protoOf(CoursePermissionDao_DoorWrapper).hd5 = function (accountPersonUid, assignmentUid, clazzUid, submitterUid) {
    return this.vd5_1.hd5(accountPersonUid, assignmentUid, clazzUid, submitterUid);
  };
  function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda$lambda$lambda(_result));
  }
  function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_CoursePermission_nullCount = 0;
      var _tmp_cpUid = $_result.l5m('cpUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_cpLastModified = $_result.l5m('cpLastModified');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_cpClazzUid = $_result.l5m('cpClazzUid');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_cpToEnrolmentRole = $_result.k5m('cpToEnrolmentRole');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_cpToPersonUid = $_result.l5m('cpToPersonUid');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_cpToGroupUid = $_result.l5m('cpToGroupUid');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_cpPermissionsFlag = $_result.l5m('cpPermissionsFlag');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_cpIsDeleted = $_result.w65('cpIsDeleted');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_CoursePermission_isAllNull = _tmp_CoursePermission_nullCount === 8;
      var _tmp_Person_nullCount = 0;
      var _tmp_personUid = $_result.l5m('personUid');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_gender = $_result.k5m('gender');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_active = $_result.w65('active');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.l5m('dateOfBirth');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.l5m('personGroupUid');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_personLct = $_result.l5m('personLct');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_personType = $_result.k5m('personType');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.l5m('personMasterChangeSeqNum');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.l5m('personLocalChangeSeqNum');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.k5m('personLastChangedBy');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_admin = $_result.w65('admin');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.l5m('personPictureUid');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.l5m('personPictureLct');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_33;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_34;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_fileSize = $_result.k5m('fileSize');
      var tmp_35;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.w65('personPictureActive');
      var tmp_36;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6;
      // Inline function 'kotlin.apply' call
      var this_0 = new CoursePermissionAndListDetail();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_CoursePermission_isAllNull) {
        var tmp_37 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new CoursePermission();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.wd5_1 = _tmp_cpUid;
        this_1.xd5_1 = _tmp_cpLastModified;
        this_1.yd5_1 = _tmp_cpClazzUid;
        this_1.zd5_1 = _tmp_cpToEnrolmentRole;
        this_1.ad6_1 = _tmp_cpToPersonUid;
        this_1.bd6_1 = _tmp_cpToGroupUid;
        this_1.cd6_1 = _tmp_cpPermissionsFlag;
        this_1.dd6_1 = _tmp_cpIsDeleted;
        tmp_37.ed6_1 = this_1;
      }
      if (!_tmp_Person_isAllNull) {
        var tmp_38 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new Person();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.f95_1 = _tmp_personUid;
        this_2.g95_1 = _tmp_username;
        this_2.h95_1 = _tmp_firstNames;
        this_2.i95_1 = _tmp_lastName;
        this_2.j95_1 = _tmp_emailAddr;
        this_2.k95_1 = _tmp_phoneNum;
        this_2.l95_1 = _tmp_gender;
        this_2.m95_1 = _tmp_active;
        this_2.n95_1 = _tmp_dateOfBirth;
        this_2.o95_1 = _tmp_personAddress;
        this_2.p95_1 = _tmp_personOrgId;
        this_2.q95_1 = _tmp_personGroupUid;
        this_2.r95_1 = _tmp_personLct;
        this_2.s95_1 = _tmp_personCountry;
        this_2.t95_1 = _tmp_personType;
        this_2.u95_1 = _tmp_personMasterChangeSeqNum;
        this_2.v95_1 = _tmp_personLocalChangeSeqNum;
        this_2.w95_1 = _tmp_personLastChangedBy;
        this_2.x95_1 = _tmp_admin;
        this_2.y95_1 = _tmp_personNotes;
        this_2.z95_1 = _tmp_fatherName;
        this_2.a96_1 = _tmp_fatherNumber;
        this_2.b96_1 = _tmp_motherName;
        this_2.c96_1 = _tmp_motherNum;
        tmp_38.fd6_1 = this_2;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_39 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new PersonPicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.d96_1 = _tmp_personPictureUid;
        this_3.e96_1 = _tmp_personPictureLct;
        this_3.f96_1 = _tmp_personPictureUri;
        this_3.g96_1 = _tmp_personPictureThumbnailUri;
        this_3.h96_1 = _tmp_fileSize;
        this_3.i96_1 = _tmp_personPictureActive;
        tmp_39.gd6_1 = this_3;
      }
      return this_0;
    };
  }
  function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda$lambda$lambda(_result));
  }
  function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda($clazzUid, $includeDeleted, $_limit, $_offset, resultContinuation) {
    this.pd6_1 = $clazzUid;
    this.qd6_1 = $includeDeleted;
    this.rd6_1 = $_limit;
    this.sd6_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda).ud6 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda).he = function (p1, $completion) {
    return this.ud6((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.td6_1.i5h(1, this.pd6_1);
            this.td6_1.v5g(2, this.qd6_1);
            this.td6_1.h5h(3, this.rd6_1);
            this.td6_1.h5h(4, this.sd6_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.td6_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda(this.pd6_1, this.qd6_1, this.rd6_1, this.sd6_1, completion);
    i.td6_1 = _stmt;
    return i;
  };
  function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda_0($clazzUid, $includeDeleted, $_limit, $_offset, resultContinuation) {
    var i = new CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda($clazzUid, $includeDeleted, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.ud6(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda($clazzUid, $includeDeleted, resultContinuation) {
    this.dd7_1 = $clazzUid;
    this.ed7_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.fd7_1.i5h(1, this.dd7_1);
            this.fd7_1.v5g(2, this.ed7_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.fd7_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda(this.dd7_1, this.ed7_1, completion);
    i.fd7_1 = _stmt;
    return i;
  };
  function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda_0($clazzUid, $includeDeleted, resultContinuation) {
    var i = new CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda($clazzUid, $includeDeleted, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda$lambda(_result) {
    return mapNextRow(_result, null, CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda$lambda$lambda(_result));
  }
  function CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_cpUid = $_result.l5m('cpUid');
      var _tmp_cpLastModified = $_result.l5m('cpLastModified');
      var _tmp_cpClazzUid = $_result.l5m('cpClazzUid');
      var _tmp_cpToEnrolmentRole = $_result.k5m('cpToEnrolmentRole');
      var _tmp_cpToPersonUid = $_result.l5m('cpToPersonUid');
      var _tmp_cpToGroupUid = $_result.l5m('cpToGroupUid');
      var _tmp_cpPermissionsFlag = $_result.l5m('cpPermissionsFlag');
      var _tmp_cpIsDeleted = $_result.w65('cpIsDeleted');
      // Inline function 'kotlin.apply' call
      var this_0 = new CoursePermission();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.findByUidAndClazzUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.wd5_1 = _tmp_cpUid;
      this_0.xd5_1 = _tmp_cpLastModified;
      this_0.yd5_1 = _tmp_cpClazzUid;
      this_0.zd5_1 = _tmp_cpToEnrolmentRole;
      this_0.ad6_1 = _tmp_cpToPersonUid;
      this_0.bd6_1 = _tmp_cpToGroupUid;
      this_0.cd6_1 = _tmp_cpPermissionsFlag;
      this_0.dd6_1 = _tmp_cpIsDeleted;
      return this_0;
    };
  }
  function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_cpUid = $_result.l5m('cpUid');
      var _tmp_cpLastModified = $_result.l5m('cpLastModified');
      var _tmp_cpClazzUid = $_result.l5m('cpClazzUid');
      var _tmp_cpToEnrolmentRole = $_result.k5m('cpToEnrolmentRole');
      var _tmp_cpToPersonUid = $_result.l5m('cpToPersonUid');
      var _tmp_cpToGroupUid = $_result.l5m('cpToGroupUid');
      var _tmp_cpPermissionsFlag = $_result.l5m('cpPermissionsFlag');
      var _tmp_cpIsDeleted = $_result.w65('cpIsDeleted');
      // Inline function 'kotlin.apply' call
      var this_0 = new CoursePermission();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.findByUidAndClazzUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.wd5_1 = _tmp_cpUid;
      this_0.xd5_1 = _tmp_cpLastModified;
      this_0.yd5_1 = _tmp_cpClazzUid;
      this_0.zd5_1 = _tmp_cpToEnrolmentRole;
      this_0.ad6_1 = _tmp_cpToPersonUid;
      this_0.bd6_1 = _tmp_cpToGroupUid;
      this_0.cd6_1 = _tmp_cpPermissionsFlag;
      this_0.dd6_1 = _tmp_cpIsDeleted;
      return this_0;
    };
  }
  function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda($uid, $clazzUid, resultContinuation) {
    this.od7_1 = $uid;
    this.pd7_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).rd7 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.rd7((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.qd7_1.i5h(1, this.od7_1);
            this.qd7_1.i5h(2, this.pd7_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.qd7_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda(this.od7_1, this.pd7_1, completion);
    i.qd7_1 = _stmt;
    return i;
  };
  function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda_0($uid, $clazzUid, resultContinuation) {
    var i = new CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda($uid, $clazzUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.rd7(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda$lambda(_result) {
    return mapNextRow(_result, false, CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda$lambda$lambda(_result));
  }
  function CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.a74(1);
    };
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, false, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda$lambda$lambda(_result));
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.a74(1);
    };
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda($clazzUid, $accountPersonUid, $permission, resultContinuation) {
    this.ad8_1 = $clazzUid;
    this.bd8_1 = $accountPersonUid;
    this.cd8_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda).m9s = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda).he = function (p1, $completion) {
    return this.m9s((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.dd8_1.i5h(1, this.ad8_1);
            this.dd8_1.i5h(2, this.bd8_1);
            this.dd8_1.i5h(3, this.ad8_1);
            this.dd8_1.i5h(4, this.bd8_1);
            this.dd8_1.i5h(5, this.bd8_1);
            this.dd8_1.i5h(6, this.ad8_1);
            this.dd8_1.i5h(7, this.bd8_1);
            this.dd8_1.i5h(8, this.cd8_1);
            this.dd8_1.i5h(9, this.bd8_1);
            this.dd8_1.i5h(10, this.cd8_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.dd8_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda(this.ad8_1, this.bd8_1, this.cd8_1, completion);
    i.dd8_1 = _stmt;
    return i;
  };
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda_0($clazzUid, $accountPersonUid, $permission, resultContinuation) {
    var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda($clazzUid, $accountPersonUid, $permission, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.m9s(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow_0(_result, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_firstPermission = $_result.w65('firstPermission');
      var _tmp_secondPermission = $_result.w65('secondPermission');
      // Inline function 'kotlin.apply' call
      var this_0 = new PermissionPair();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.personHasPermissionWithClazzPairAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.ed8_1 = _tmp_firstPermission;
      this_0.fd8_1 = _tmp_secondPermission;
      return this_0;
    };
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    this.od8_1 = $clazzUid;
    this.pd8_1 = $accountPersonUid;
    this.qd8_1 = $firstPermission;
    this.rd8_1 = $secondPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda).td8 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.td8((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.sd8_1.i5h(1, this.od8_1);
            this.sd8_1.i5h(2, this.pd8_1);
            this.sd8_1.i5h(3, this.od8_1);
            this.sd8_1.i5h(4, this.pd8_1);
            this.sd8_1.i5h(5, this.pd8_1);
            this.sd8_1.i5h(6, this.od8_1);
            this.sd8_1.i5h(7, this.pd8_1);
            this.sd8_1.i5h(8, this.qd8_1);
            this.sd8_1.i5h(9, this.pd8_1);
            this.sd8_1.i5h(10, this.qd8_1);
            this.sd8_1.i5h(11, this.od8_1);
            this.sd8_1.i5h(12, this.pd8_1);
            this.sd8_1.i5h(13, this.od8_1);
            this.sd8_1.i5h(14, this.pd8_1);
            this.sd8_1.i5h(15, this.pd8_1);
            this.sd8_1.i5h(16, this.od8_1);
            this.sd8_1.i5h(17, this.pd8_1);
            this.sd8_1.i5h(18, this.rd8_1);
            this.sd8_1.i5h(19, this.pd8_1);
            this.sd8_1.i5h(20, this.rd8_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.sd8_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda(this.od8_1, this.pd8_1, this.qd8_1, this.rd8_1, completion);
    i.sd8_1 = _stmt;
    return i;
  };
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda_0($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.td8(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda$lambda(_result) {
    return mapNextRow_0(_result, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda$lambda$lambda(_result));
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_firstPermission = $_result.w65('firstPermission');
      var _tmp_secondPermission = $_result.w65('secondPermission');
      // Inline function 'kotlin.apply' call
      var this_0 = new PermissionPair();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.personHasPermissionWithClazzPairAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.ed8_1 = _tmp_firstPermission;
      this_0.fd8_1 = _tmp_secondPermission;
      return this_0;
    };
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow_0(_result, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_firstPermission = $_result.w65('firstPermission');
      var _tmp_secondPermission = $_result.w65('secondPermission');
      var _tmp_thirdPermission = $_result.w65('thirdPermission');
      // Inline function 'kotlin.apply' call
      var this_0 = new PermissionTriple();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.personHasPermissionWithClazzTripleAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.ud8_1 = _tmp_firstPermission;
      this_0.vd8_1 = _tmp_secondPermission;
      this_0.wd8_1 = _tmp_thirdPermission;
      return this_0;
    };
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) {
    this.fd9_1 = $clazzUid;
    this.gd9_1 = $accountPersonUid;
    this.hd9_1 = $firstPermission;
    this.id9_1 = $secondPermission;
    this.jd9_1 = $thirdPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda).ld9 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.ld9((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.kd9_1.i5h(1, this.fd9_1);
            this.kd9_1.i5h(2, this.gd9_1);
            this.kd9_1.i5h(3, this.fd9_1);
            this.kd9_1.i5h(4, this.gd9_1);
            this.kd9_1.i5h(5, this.gd9_1);
            this.kd9_1.i5h(6, this.fd9_1);
            this.kd9_1.i5h(7, this.gd9_1);
            this.kd9_1.i5h(8, this.hd9_1);
            this.kd9_1.i5h(9, this.gd9_1);
            this.kd9_1.i5h(10, this.hd9_1);
            this.kd9_1.i5h(11, this.fd9_1);
            this.kd9_1.i5h(12, this.gd9_1);
            this.kd9_1.i5h(13, this.fd9_1);
            this.kd9_1.i5h(14, this.gd9_1);
            this.kd9_1.i5h(15, this.gd9_1);
            this.kd9_1.i5h(16, this.fd9_1);
            this.kd9_1.i5h(17, this.gd9_1);
            this.kd9_1.i5h(18, this.id9_1);
            this.kd9_1.i5h(19, this.gd9_1);
            this.kd9_1.i5h(20, this.id9_1);
            this.kd9_1.i5h(21, this.fd9_1);
            this.kd9_1.i5h(22, this.gd9_1);
            this.kd9_1.i5h(23, this.fd9_1);
            this.kd9_1.i5h(24, this.gd9_1);
            this.kd9_1.i5h(25, this.gd9_1);
            this.kd9_1.i5h(26, this.fd9_1);
            this.kd9_1.i5h(27, this.gd9_1);
            this.kd9_1.i5h(28, this.jd9_1);
            this.kd9_1.i5h(29, this.gd9_1);
            this.kd9_1.i5h(30, this.jd9_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.kd9_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda(this.fd9_1, this.gd9_1, this.hd9_1, this.id9_1, this.jd9_1, completion);
    i.kd9_1 = _stmt;
    return i;
  };
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda_0($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) {
    var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.ld9(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda$lambda(_result) {
    return mapNextRow(_result, false, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda$lambda$lambda(_result));
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.a74(1);
    };
  }
  function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda$lambda(_result) {
    return mapNextRow_0(_result, CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda$lambda$lambda(_result));
  }
  function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_canMark = $_result.w65('canMark');
      var _tmp_canView = $_result.w65('canView');
      var _tmp_canModerate = $_result.w65('canModerate');
      var _tmp_activeUserSubmitterUid = $_result.l5m('activeUserSubmitterUid');
      // Inline function 'kotlin.apply' call
      var this_0 = new AssignmentPermissionAndActiveUserSubmitterUid();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.userPermissionsForAssignmentSubmitterUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.md9_1 = _tmp_canMark;
      this_0.nd9_1 = _tmp_canView;
      this_0.od9_1 = _tmp_canModerate;
      this_0.pd9_1 = _tmp_activeUserSubmitterUid;
      return this_0;
    };
  }
  function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda($assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation) {
    this.yd9_1 = $assignmentUid;
    this.zd9_1 = $accountPersonUid;
    this.ada_1 = $submitterUid;
    this.bda_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda).dda = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda).he = function (p1, $completion) {
    return this.dda((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.cda_1.i5h(1, this.yd9_1);
            this.cda_1.i5h(2, this.zd9_1);
            this.cda_1.i5h(3, this.yd9_1);
            this.cda_1.i5h(4, this.yd9_1);
            this.cda_1.i5h(5, this.zd9_1);
            this.cda_1.i5h(6, this.yd9_1);
            this.cda_1.i5h(7, this.zd9_1);
            this.cda_1.i5h(8, this.yd9_1);
            this.cda_1.i5h(9, this.yd9_1);
            this.cda_1.i5h(10, this.zd9_1);
            this.cda_1.i5h(11, this.yd9_1);
            this.cda_1.i5h(12, this.ada_1);
            this.cda_1.i5h(13, this.bda_1);
            this.cda_1.i5h(14, this.zd9_1);
            this.cda_1.i5h(15, this.zd9_1);
            this.cda_1.i5h(16, this.bda_1);
            this.cda_1.i5h(17, this.zd9_1);
            this.cda_1.i5h(18, this.zd9_1);
            this.cda_1.i5h(19, this.zd9_1);
            this.cda_1.i5h(20, this.yd9_1);
            this.cda_1.i5h(21, this.bda_1);
            this.cda_1.i5h(22, this.ada_1);
            this.cda_1.i5h(23, this.zd9_1);
            this.cda_1.i5h(24, this.yd9_1);
            this.cda_1.i5h(25, this.bda_1);
            this.cda_1.i5h(26, this.ada_1);
            this.cda_1.i5h(27, this.ada_1);
            this.cda_1.i5h(28, this.bda_1);
            this.cda_1.i5h(29, this.zd9_1);
            this.cda_1.i5h(30, this.zd9_1);
            this.cda_1.i5h(31, this.bda_1);
            this.cda_1.i5h(32, this.zd9_1);
            this.cda_1.i5h(33, this.zd9_1);
            this.cda_1.i5h(34, this.bda_1);
            this.cda_1.i5h(35, this.zd9_1);
            this.cda_1.i5h(36, this.zd9_1);
            this.cda_1.i5h(37, this.bda_1);
            this.cda_1.i5h(38, this.zd9_1);
            this.cda_1.i5h(39, this.zd9_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.cda_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda(this.yd9_1, this.zd9_1, this.ada_1, this.bda_1, completion);
    i.cda_1 = _stmt;
    return i;
  };
  function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda_0($assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation) {
    var i = new CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda($assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.dda(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.eda_1);
  }
  protoOf(CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO CoursePermission (cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1).ida = function (stmt, entity) {
    if (entity.wd5_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.wd5_1);
    }
    stmt.i5h(2, entity.xd5_1);
    stmt.i5h(3, entity.yd5_1);
    stmt.h5h(4, entity.zd5_1);
    stmt.i5h(5, entity.ad6_1);
    stmt.i5h(6, entity.bd6_1);
    stmt.i5h(7, entity.cd6_1);
    stmt.v5g(8, entity.dd6_1);
  };
  protoOf(CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1).c5f = function (stmt, entity) {
    return this.ida(stmt, entity instanceof CoursePermission ? entity : THROW_CCE());
  };
  function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1(this$0, $clazzUid, $includeDeleted) {
    this.pda_1 = this$0;
    this.qda_1 = $clazzUid;
    this.rda_1 = $includeDeleted;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['Person', 'PersonPicture', 'CoursePermission'];
    DoorLimitOffsetPagingSource.call(this, this$0.eda_1, tmp$ret$2);
  }
  protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1).sda = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM (\n        SELECT CoursePermission.*, Person.*, PersonPicture.*\n          FROM CoursePermission\n               LEFT JOIN Person\n                         ON Person.personUid = CoursePermission.cpToPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = Person.personUid\n         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT) \n           AND (CAST(? AS INTEGER) = 1 OR NOT CoursePermission.cpIsDeleted) \n    ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n        SELECT CoursePermission.*, Person.*, PersonPicture.*\n          FROM CoursePermission\n               LEFT JOIN Person\n                         ON Person.personUid = CoursePermission.cpToPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = Person.personUid\n         WHERE CoursePermission.cpClazzUid = ? \n           AND (CAST(? AS INTEGER) = 1 OR NOT CoursePermission.cpIsDeleted) \n    ) AS _PagingData LIMIT ? OFFSET ?\n', true);
    return prepareAndUseStatementAsync(this.pda_1.eda_1, tmp, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda_0(this.qda_1, this.rda_1, _limit, _offset, null), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1).j5p = function (_limit, _offset, $completion) {
    return this.sda(_limit, _offset, $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n        SELECT CoursePermission.*, Person.*, PersonPicture.*\n          FROM CoursePermission\n               LEFT JOIN Person\n                         ON Person.personUid = CoursePermission.cpToPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = Person.personUid\n         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT) \n           AND (CAST(? AS INTEGER) = 1 OR NOT CoursePermission.cpIsDeleted) \n    ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n        SELECT CoursePermission.*, Person.*, PersonPicture.*\n          FROM CoursePermission\n               LEFT JOIN Person\n                         ON Person.personUid = CoursePermission.cpToPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = Person.personUid\n         WHERE CoursePermission.cpClazzUid = ? \n           AND (CAST(? AS INTEGER) = 1 OR NOT CoursePermission.cpIsDeleted) \n    ) AS _PagingCount\n', true);
    return prepareAndUseStatementAsync(this.pda_1.eda_1, tmp, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda_0(this.qda_1, this.rda_1, null), $completion);
  };
  function CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda($uid, $clazzUid, resultContinuation) {
    this.bdb_1 = $uid;
    this.cdb_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda).rd7 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda).he = function (p1, $completion) {
    return this.rd7((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ddb_1.i5h(1, this.bdb_1);
            this.ddb_1.i5h(2, this.cdb_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ddb_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda).z5e = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda(this.bdb_1, this.cdb_1, completion);
    i.ddb_1 = _stmt;
    return i;
  };
  function CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda_0($uid, $clazzUid, resultContinuation) {
    var i = new CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda($uid, $clazzUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.rd7(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation) {
    this.mdb_1 = this$0;
    this.ndb_1 = $uid;
    this.odb_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).pdb = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).z77 = function ($completion) {
    return this.pdb($completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT CoursePermission.*\n          FROM CoursePermission\n         WHERE CoursePermission.cpUid = CAST(? AS BIGINT)\n           AND CoursePermission.cpClazzUid = CAST(? AS BIGINT) \n    ', VOID, VOID, VOID, '\n        SELECT CoursePermission.*\n          FROM CoursePermission\n         WHERE CoursePermission.cpUid = ?\n           AND CoursePermission.cpClazzUid = ? \n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.mdb_1.eda_1, tmp_0, CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda_0(this.ndb_1, this.odb_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).y77 = function (completion) {
    return new CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this.mdb_1, this.ndb_1, this.odb_1, completion);
  };
  function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda_0(this$0, $uid, $clazzUid, resultContinuation) {
    var i = new CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation);
    var l = function ($completion) {
      return i.pdb($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$setDeleted$slambda($isDeleted, $updateTime, $cpUid, resultContinuation) {
    this.ydb_1 = $isDeleted;
    this.zdb_1 = $updateTime;
    this.adc_1 = $cpUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$setDeleted$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$setDeleted$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$setDeleted$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.bdc_1.v5g(1, this.ydb_1);
            this.bdc_1.i5h(2, this.zdb_1);
            this.bdc_1.i5h(3, this.adc_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.bdc_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_JdbcImpl$setDeleted$slambda).z5e = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$setDeleted$slambda(this.ydb_1, this.zdb_1, this.adc_1, completion);
    i.bdc_1 = _stmt;
    return i;
  };
  function CoursePermissionDao_JdbcImpl$setDeleted$slambda_0($isDeleted, $updateTime, $cpUid, resultContinuation) {
    var i = new CoursePermissionDao_JdbcImpl$setDeleted$slambda($isDeleted, $updateTime, $cpUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda($clazzEnrolmentUid, $accountPersonUid, resultContinuation) {
    this.kdc_1 = $clazzEnrolmentUid;
    this.ldc_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda).m9s = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda).he = function (p1, $completion) {
    return this.m9s((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.mdc_1.i5h(1, this.kdc_1);
            this.mdc_1.i5h(2, this.ldc_1);
            this.mdc_1.i5h(3, this.ldc_1);
            this.mdc_1.i5h(4, this.kdc_1);
            this.mdc_1.i5h(5, this.ldc_1);
            this.mdc_1.i5h(6, this.ldc_1);
            this.mdc_1.i5h(7, this.kdc_1);
            this.mdc_1.i5h(8, this.ldc_1);
            this.mdc_1.i5h(9, this.kdc_1);
            this.mdc_1.i5h(10, this.ldc_1);
            this.mdc_1.i5h(11, this.kdc_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.mdc_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda).z5e = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda(this.kdc_1, this.ldc_1, completion);
    i.mdc_1 = _stmt;
    return i;
  };
  function CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda_0($clazzEnrolmentUid, $accountPersonUid, resultContinuation) {
    var i = new CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda($clazzEnrolmentUid, $accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.m9s(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda(this$0, $clazzUid, $accountPersonUid, $permission, resultContinuation) {
    this.vdc_1 = this$0;
    this.wdc_1 = $clazzUid;
    this.xdc_1 = $accountPersonUid;
    this.ydc_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda).b9u = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda).z77 = function ($completion) {
    return this.b9u($completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n          AND  (\n         (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         CAST(? AS BIGINT)\n         \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     CAST(? AS BIGINT)\n         \n        ) > 0)\n               )\n    \n    )            \n    ', VOID, VOID, VOID, '\n        SELECT (? != 0 AND ? != 0)\n          AND  (\n         (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         ?\n         \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     ?\n         \n        ) > 0)\n               )\n    \n    )            \n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.vdc_1.eda_1, tmp_0, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda_0(this.wdc_1, this.xdc_1, this.ydc_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda).y77 = function (completion) {
    return new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda(this.vdc_1, this.wdc_1, this.xdc_1, this.ydc_1, completion);
  };
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda_0(this$0, $clazzUid, $accountPersonUid, $permission, resultContinuation) {
    var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda(this$0, $clazzUid, $accountPersonUid, $permission, resultContinuation);
    var l = function ($completion) {
      return i.b9u($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    this.hdd_1 = this$0;
    this.idd_1 = $clazzUid;
    this.jdd_1 = $accountPersonUid;
    this.kdd_1 = $firstPermission;
    this.ldd_1 = $secondPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda).mdd = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda).z77 = function ($completion) {
    return this.mdd($completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT (    (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n                AND ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         CAST(? AS BIGINT)\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     CAST(? AS BIGINT)\n                     \n        ) > 0)\n               )\n    )\n               ) AS firstPermission,\n               (    (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n                AND ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         CAST(? AS BIGINT)\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     CAST(? AS BIGINT)\n                     \n        ) > 0)\n               )\n    )\n               ) AS secondPermission\n    ', VOID, VOID, VOID, '\n        SELECT (    (? != 0 AND ? != 0)\n                AND ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         ?\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     ?\n                     \n        ) > 0)\n               )\n    )\n               ) AS firstPermission,\n               (    (? != 0 AND ? != 0)\n                AND ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         ?\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     ?\n                     \n        ) > 0)\n               )\n    )\n               ) AS secondPermission\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.hdd_1.eda_1, tmp_0, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda_0(this.idd_1, this.jdd_1, this.kdd_1, this.ldd_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda).y77 = function (completion) {
    return new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda(this.hdd_1, this.idd_1, this.jdd_1, this.kdd_1, this.ldd_1, completion);
  };
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda_0(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation);
    var l = function ($completion) {
      return i.mdd($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    this.vdd_1 = $clazzUid;
    this.wdd_1 = $accountPersonUid;
    this.xdd_1 = $firstPermission;
    this.ydd_1 = $secondPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda).td8 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda).he = function (p1, $completion) {
    return this.td8((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.zdd_1.i5h(1, this.vdd_1);
            this.zdd_1.i5h(2, this.wdd_1);
            this.zdd_1.i5h(3, this.vdd_1);
            this.zdd_1.i5h(4, this.wdd_1);
            this.zdd_1.i5h(5, this.wdd_1);
            this.zdd_1.i5h(6, this.vdd_1);
            this.zdd_1.i5h(7, this.wdd_1);
            this.zdd_1.i5h(8, this.xdd_1);
            this.zdd_1.i5h(9, this.wdd_1);
            this.zdd_1.i5h(10, this.xdd_1);
            this.zdd_1.i5h(11, this.vdd_1);
            this.zdd_1.i5h(12, this.wdd_1);
            this.zdd_1.i5h(13, this.vdd_1);
            this.zdd_1.i5h(14, this.wdd_1);
            this.zdd_1.i5h(15, this.wdd_1);
            this.zdd_1.i5h(16, this.vdd_1);
            this.zdd_1.i5h(17, this.wdd_1);
            this.zdd_1.i5h(18, this.ydd_1);
            this.zdd_1.i5h(19, this.wdd_1);
            this.zdd_1.i5h(20, this.ydd_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.zdd_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda).z5e = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda(this.vdd_1, this.wdd_1, this.xdd_1, this.ydd_1, completion);
    i.zdd_1 = _stmt;
    return i;
  };
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda_0($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.td8(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) {
    this.ide_1 = this$0;
    this.jde_1 = $clazzUid;
    this.kde_1 = $accountPersonUid;
    this.lde_1 = $firstPermission;
    this.mde_1 = $secondPermission;
    this.nde_1 = $thirdPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda).ode = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda).z77 = function ($completion) {
    return this.ode($completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT (    (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n                AND ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         CAST(? AS BIGINT)\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     CAST(? AS BIGINT)\n                     \n        ) > 0)\n               )\n    )\n               ) AS firstPermission,\n               (    (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n                AND ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         CAST(? AS BIGINT)\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     CAST(? AS BIGINT)\n                     \n        ) > 0)\n               )\n    )\n               ) AS secondPermission,\n               (    (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n                AND ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         CAST(? AS BIGINT)\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     CAST(? AS BIGINT)\n                     \n        ) > 0)\n               )\n    )\n               ) AS thirdPermission\n    ', VOID, VOID, VOID, '\n        SELECT (    (? != 0 AND ? != 0)\n                AND ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         ?\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     ?\n                     \n        ) > 0)\n               )\n    )\n               ) AS firstPermission,\n               (    (? != 0 AND ? != 0)\n                AND ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         ?\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     ?\n                     \n        ) > 0)\n               )\n    )\n               ) AS secondPermission,\n               (    (? != 0 AND ? != 0)\n                AND ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         ?\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     ?\n                     \n        ) > 0)\n               )\n    )\n               ) AS thirdPermission\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.ide_1.eda_1, tmp_0, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda_0(this.jde_1, this.kde_1, this.lde_1, this.mde_1, this.nde_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda).y77 = function (completion) {
    return new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda(this.ide_1, this.jde_1, this.kde_1, this.lde_1, this.mde_1, this.nde_1, completion);
  };
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda_0(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) {
    var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation);
    var l = function ($completion) {
      return i.ode($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda($clazzUid, $accountPersonUid, $permission, resultContinuation) {
    this.xde_1 = $clazzUid;
    this.yde_1 = $accountPersonUid;
    this.zde_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda).m9s = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda).he = function (p1, $completion) {
    return this.m9s((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.adf_1.i5h(1, this.xde_1);
            this.adf_1.i5h(2, this.yde_1);
            this.adf_1.i5h(3, this.xde_1);
            this.adf_1.i5h(4, this.yde_1);
            this.adf_1.i5h(5, this.yde_1);
            this.adf_1.i5h(6, this.xde_1);
            this.adf_1.i5h(7, this.yde_1);
            this.adf_1.i5h(8, this.zde_1);
            this.adf_1.i5h(9, this.yde_1);
            this.adf_1.i5h(10, this.zde_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.adf_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda).z5e = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda(this.xde_1, this.yde_1, this.zde_1, completion);
    i.adf_1 = _stmt;
    return i;
  };
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda_0($clazzUid, $accountPersonUid, $permission, resultContinuation) {
    var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda($clazzUid, $accountPersonUid, $permission, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.m9s(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda(this$0, $assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation) {
    this.jdf_1 = this$0;
    this.kdf_1 = $assignmentUid;
    this.ldf_1 = $accountPersonUid;
    this.mdf_1 = $submitterUid;
    this.ndf_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda).odf = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda).z77 = function ($completion) {
    return this.odf($completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        WITH \n        AccountSubmitterUid(accountSubmitterUid) AS \n        (\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = CAST(? AS BIGINT)) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = CAST(? AS BIGINT))\n                              AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n                            LIMIT 1), -1)\n                    END\n    )\n    ,\n             CanMarkSubmitter(canMark) AS\n             (SELECT CASE (SELECT ClazzAssignment.caMarkingType\n                             FROM ClazzAssignment\n                            WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n                           WHEN 2 THEN \n                                EXISTS(SELECT 1\n                                         FROM PeerReviewerAllocation\n                                        WHERE PeerReviewerAllocation.praToMarkerSubmitterUid = CAST(? AS BIGINT)\n                                          AND PeerReviewerAllocation.praMarkerSubmitterUid =\n                                              (SELECT AccountSubmitterUid.accountSubmitterUid\n                                                 FROM AccountSubmitterUid))\n                           ELSE ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         256\n                                 \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     256\n                                 \n        ) > 0)\n               )\n    )\n                          END)\n\n             \n                    /* Can edit */\n             SELECT (     (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n                      AND (SELECT CanMarkSubmitter.canMark \n                            FROM CanMarkSubmitter)) AS canMark,\n                    /* can view */   \n                    (     (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n                      AND (     (SELECT CanMarkSubmitter.canMark\n                                   FROM CanMarkSubmitter)\n                             OR (SELECT CAST(? AS BIGINT) = \n                                  (SELECT AccountSubmitterUid.accountSubmitterUid\n                                     FROM AccountSubmitterUid))\n                             OR ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         128\n                                 \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     128\n                                 \n        ) > 0)\n               )\n    ))               \n                    ) AS canView,\n                    ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         4\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     4\n                     \n        ) > 0)\n               )\n    \n                    ) AS canModerate,\n                    (SELECT accountSubmitterUid\n                       FROM AccountSubmitterUid) AS activeUserSubmitterUid\n             \n    ', VOID, VOID, VOID, '\n        WITH \n        AccountSubmitterUid(accountSubmitterUid) AS \n        (\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = ?) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = ?)\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = ?)\n                              AND CourseGroupMember.cgmPersonUid = ?\n                            LIMIT 1), -1)\n                    END\n    )\n    ,\n             CanMarkSubmitter(canMark) AS\n             (SELECT CASE (SELECT ClazzAssignment.caMarkingType\n                             FROM ClazzAssignment\n                            WHERE ClazzAssignment.caUid = ?)\n                           WHEN 2 THEN \n                                EXISTS(SELECT 1\n                                         FROM PeerReviewerAllocation\n                                        WHERE PeerReviewerAllocation.praToMarkerSubmitterUid = ?\n                                          AND PeerReviewerAllocation.praMarkerSubmitterUid =\n                                              (SELECT AccountSubmitterUid.accountSubmitterUid\n                                                 FROM AccountSubmitterUid))\n                           ELSE ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         256\n                                 \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     256\n                                 \n        ) > 0)\n               )\n    )\n                          END)\n\n             \n                    /* Can edit */\n             SELECT (     (? != 0 AND ? != 0 AND ? != 0 AND ? != 0)\n                      AND (SELECT CanMarkSubmitter.canMark \n                            FROM CanMarkSubmitter)) AS canMark,\n                    /* can view */   \n                    (     (? != 0 AND ? != 0 AND ? != 0 AND ? != 0)\n                      AND (     (SELECT CanMarkSubmitter.canMark\n                                   FROM CanMarkSubmitter)\n                             OR (SELECT ? = \n                                  (SELECT AccountSubmitterUid.accountSubmitterUid\n                                     FROM AccountSubmitterUid))\n                             OR ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         128\n                                 \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     128\n                                 \n        ) > 0)\n               )\n    ))               \n                    ) AS canView,\n                    ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         4\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     4\n                     \n        ) > 0)\n               )\n    \n                    ) AS canModerate,\n                    (SELECT accountSubmitterUid\n                       FROM AccountSubmitterUid) AS activeUserSubmitterUid\n             \n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.jdf_1.eda_1, tmp_0, CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda_0(this.kdf_1, this.ldf_1, this.mdf_1, this.ndf_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda).y77 = function (completion) {
    return new CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda(this.jdf_1, this.kdf_1, this.ldf_1, this.mdf_1, this.ndf_1, completion);
  };
  function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda_0(this$0, $assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation) {
    var i = new CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda(this$0, $assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation);
    var l = function ($completion) {
      return i.odf($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $setDeletedCOROUTINE$205(_this__u8e3s4, cpUid, isDeleted, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.xdf_1 = _this__u8e3s4;
    this.ydf_1 = cpUid;
    this.zdf_1 = isDeleted;
    this.adg_1 = updateTime;
  }
  protoOf($setDeletedCOROUTINE$205).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE CoursePermission\n           SET cpIsDeleted = ?,\n               cpLastModified = CAST(? AS BIGINT)\n         WHERE cpUid = CAST(? AS BIGINT)  \n    ', VOID, VOID, VOID, '\n        UPDATE CoursePermission\n           SET cpIsDeleted = ?,\n               cpLastModified = ?\n         WHERE cpUid = ?  \n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.xdf_1.eda_1, tmp_0, CoursePermissionDao_JdbcImpl$setDeleted$slambda_0(this.zdf_1, this.adg_1, this.ydf_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CoursePermissionDao_JdbcImpl(_db) {
    CoursePermissionDao.call(this);
    this.eda_1 = _db;
    var tmp = this;
    tmp.fda_1 = new CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1(this);
  }
  protoOf(CoursePermissionDao_JdbcImpl).ad5 = function (coursePermission, $completion) {
    return this.fda_1.i5g(coursePermission, $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl).yd4 = function (clazzUid, includeDeleted) {
    return new CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1(this, clazzUid, includeDeleted);
  };
  protoOf(CoursePermissionDao_JdbcImpl).zd4 = function (uid, clazzUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT CoursePermission.*\n          FROM CoursePermission\n         WHERE CoursePermission.cpUid = CAST(? AS BIGINT)\n           AND CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n    ', VOID, VOID, VOID, '\n        SELECT CoursePermission.*\n          FROM CoursePermission\n         WHERE CoursePermission.cpUid = ?\n           AND CoursePermission.cpClazzUid = ?\n    \n', true);
    return prepareAndUseStatementAsync(this.eda_1, tmp, CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda_0(uid, clazzUid, null), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl).s7r = function (uid, clazzUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['CoursePermission'];
    return doorFlow(this.eda_1, tmp, CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda_0(this, uid, clazzUid, null));
  };
  protoOf(CoursePermissionDao_JdbcImpl).bbv = function (cpUid, isDeleted, updateTime, $completion) {
    var tmp = new $setDeletedCOROUTINE$205(this, cpUid, isDeleted, updateTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl).bd5 = function (accountPersonUid, clazzEnrolmentUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT CASE CAST(? AS BIGINT) \n                WHEN 0 THEN (SELECT EXISTS(\n                         SELECT 1\n                           FROM SystemPermission\n                          WHERE CAST(? AS BIGINT) != 0 \n                            AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                            AND (SystemPermission.spPermissionsFlag & 2048) > 0\n                            AND NOT SystemPermission.spIsDeleted))\n                ELSE (\n                  SELECT (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = (\n        SELECT COALESCE(\n               (SELECT _ClazzEnrolment_ForClazzUid.clazzEnrolmentClazzUid\n                  FROM ClazzEnrolment _ClazzEnrolment_ForClazzUid\n                 WHERE _ClazzEnrolment_ForClazzUid.clazzEnrolmentUid = CAST(? AS BIGINT)), 0)\n    )), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = (\n        SELECT COALESCE(\n               (SELECT _ClazzEnrolment_ForClazzUid.clazzEnrolmentClazzUid\n                  FROM ClazzEnrolment _ClazzEnrolment_ForClazzUid\n                 WHERE _ClazzEnrolment_ForClazzUid.clazzEnrolmentUid = CAST(? AS BIGINT)), 0)\n    )\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         \n                         (\n        CASE (\n        SELECT ClazzEnrolment.clazzEnrolmentRole\n          FROM ClazzEnrolment\n         WHERE ClazzEnrolment.clazzEnrolmentUid = CAST(? AS BIGINT)         \n    )\n             WHEN 1000 THEN 8\n             ELSE 8\n        END     \n    )\n                         \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     \n                         (\n        CASE (\n        SELECT ClazzEnrolment.clazzEnrolmentRole\n          FROM ClazzEnrolment\n         WHERE ClazzEnrolment.clazzEnrolmentUid = CAST(? AS BIGINT)         \n    )\n             WHEN 1000 THEN 8\n             ELSE 8\n        END     \n    )\n                         \n        ) > 0)\n               )\n     \n                )\n               END \n    ', VOID, VOID, VOID, '\n        SELECT CASE ? \n                WHEN 0 THEN (SELECT EXISTS(\n                         SELECT 1\n                           FROM SystemPermission\n                          WHERE ? != 0 \n                            AND SystemPermission.spToPersonUid = ?\n                            AND (SystemPermission.spPermissionsFlag & 2048) > 0\n                            AND NOT SystemPermission.spIsDeleted))\n                ELSE (\n                  SELECT (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = (\n        SELECT COALESCE(\n               (SELECT _ClazzEnrolment_ForClazzUid.clazzEnrolmentClazzUid\n                  FROM ClazzEnrolment _ClazzEnrolment_ForClazzUid\n                 WHERE _ClazzEnrolment_ForClazzUid.clazzEnrolmentUid = ?), 0)\n    )), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = (\n        SELECT COALESCE(\n               (SELECT _ClazzEnrolment_ForClazzUid.clazzEnrolmentClazzUid\n                  FROM ClazzEnrolment _ClazzEnrolment_ForClazzUid\n                 WHERE _ClazzEnrolment_ForClazzUid.clazzEnrolmentUid = ?), 0)\n    )\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         \n                         (\n        CASE (\n        SELECT ClazzEnrolment.clazzEnrolmentRole\n          FROM ClazzEnrolment\n         WHERE ClazzEnrolment.clazzEnrolmentUid = ?         \n    )\n             WHEN 1000 THEN 8\n             ELSE 8\n        END     \n    )\n                         \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     \n                         (\n        CASE (\n        SELECT ClazzEnrolment.clazzEnrolmentRole\n          FROM ClazzEnrolment\n         WHERE ClazzEnrolment.clazzEnrolmentUid = ?         \n    )\n             WHEN 1000 THEN 8\n             ELSE 8\n        END     \n    )\n                         \n        ) > 0)\n               )\n     \n                )\n               END \n    \n', true);
    return prepareAndUseStatementAsync(this.eda_1, tmp, CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda_0(clazzEnrolmentUid, accountPersonUid, null), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl).cd5 = function (accountPersonUid, clazzUid, permission) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['Clazz', 'CoursePermission', 'ClazzEnrolment'];
    return doorFlow(this.eda_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda_0(this, clazzUid, accountPersonUid, permission, null));
  };
  protoOf(CoursePermissionDao_JdbcImpl).dd5 = function (accountPersonUid, clazzUid, firstPermission, secondPermission) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['Clazz', 'CoursePermission', 'ClazzEnrolment', 'SystemPermission'];
    return doorFlow(this.eda_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda_0(this, clazzUid, accountPersonUid, firstPermission, secondPermission, null));
  };
  protoOf(CoursePermissionDao_JdbcImpl).ed5 = function (accountPersonUid, clazzUid, firstPermission, secondPermission, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT (    (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n                AND ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         CAST(? AS BIGINT)\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     CAST(? AS BIGINT)\n                     \n        ) > 0)\n               )\n    )\n               ) AS firstPermission,\n               (    (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n                AND ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         CAST(? AS BIGINT)\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     CAST(? AS BIGINT)\n                     \n        ) > 0)\n               )\n    )\n               ) AS secondPermission\n    ', VOID, VOID, VOID, '\n        SELECT (    (? != 0 AND ? != 0)\n                AND ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         ?\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     ?\n                     \n        ) > 0)\n               )\n    )\n               ) AS firstPermission,\n               (    (? != 0 AND ? != 0)\n                AND ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         ?\n                     \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     ?\n                     \n        ) > 0)\n               )\n    )\n               ) AS secondPermission\n    \n', true);
    return prepareAndUseStatementAsync(this.eda_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda_0(clazzUid, accountPersonUid, firstPermission, secondPermission, null), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl).fd5 = function (accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['Clazz', 'CoursePermission', 'ClazzEnrolment', 'SystemPermission'];
    return doorFlow(this.eda_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda_0(this, clazzUid, accountPersonUid, firstPermission, secondPermission, thirdPermission, null));
  };
  protoOf(CoursePermissionDao_JdbcImpl).gd5 = function (accountPersonUid, clazzUid, permission, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n          AND  (\n         (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n                           AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         CAST(? AS BIGINT)\n         \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                           AND (SystemPermission.spPermissionsFlag & \n     CAST(? AS BIGINT)\n         \n        ) > 0)\n               )\n    \n    )            \n    ', VOID, VOID, VOID, '\n        SELECT (? != 0 AND ? != 0)\n          AND  (\n         (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = ?\n                           AND (CoursePermission.cpToPersonUid = ? \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         ?\n         \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = ?\n                           AND (SystemPermission.spPermissionsFlag & \n     ?\n         \n        ) > 0)\n               )\n    \n    )            \n    \n', true);
    return prepareAndUseStatementAsync(this.eda_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda_0(clazzUid, accountPersonUid, permission, null), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl).hd5 = function (accountPersonUid, assignmentUid, clazzUid, submitterUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['ClazzAssignment', 'ClazzEnrolment', 'CourseGroupMember', 'PeerReviewerAllocation', 'CoursePermission', 'SystemPermission'];
    return doorFlow(this.eda_1, tmp, CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda_0(this, assignmentUid, accountPersonUid, submitterUid, clazzUid, null));
  };
  function CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda(this$0, $clazzUid, $includeDeleted, resultContinuation) {
    this.jdg_1 = this$0;
    this.kdg_1 = $clazzUid;
    this.ldg_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda).k85 = function (_pagingParams, $completion) {
    var tmp = this.l85(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda).he = function (p1, $completion) {
    return this.k85(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            var tmp_0 = this;
            tmp_0.odg_1 = this.jdg_1.xdg_1;
            var tmp_1 = this;
            tmp_1.pdg_1 = 'CoursePermissionDao/findByClazzUidAsPagingSource';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.qdg_1 = this.jdg_1.zdg_1;
            var tmp_3 = this;
            tmp_3.rdg_1 = this.qdg_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.jdg_1.xdg_1.w38(), 'CoursePermissionDao/findByClazzUidAsPagingSource');
            doorNodeIdHeader(this_0, this.jdg_1.xdg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.jdg_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.kdg_1));
            parameter(this_0, 'includeDeleted', this.jdg_1.xdg_1.w38().k65_1.e45(serializer_2(BooleanCompanionObject_instance), this.ldg_1));
            pagingSourceLoadParameters(this_0, this.jdg_1.xdg_1.w38().k65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.mdg_1);
            tmp_4.sdg_1 = this_0;
            this.sdg_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.tdg_1 = this.rdg_1;
            var tmp_6 = this;
            tmp_6.udg_1 = this.sdg_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.udg_1, this.tdg_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.vdg_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.jdg_1.wdg_1, this.vdg_1, this.jdg_1.xdg_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.ndg_1 = endOfPaginationReached(this.vdg_1);
            this.id_1 = 5;
            this.hd_1 = 7;
            continue $sm;
          case 4:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda$lambda(this.odg_1, this.pdg_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 5:
            throw this.kd_1;
          case 6:
            this.id_1 = 5;
            if (false) {
              this.hd_1 = 1;
              continue $sm;
            }

            this.hd_1 = 7;
            continue $sm;
          case 7:
            return this.ndg_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda).l85 = function (_pagingParams, completion) {
    var i = new CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda(this.jdg_1, this.kdg_1, this.ldg_1, completion);
    i.mdg_1 = _pagingParams;
    return i;
  };
  function CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda_0(this$0, $clazzUid, $includeDeleted, resultContinuation) {
    var i = new CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda(this$0, $clazzUid, $includeDeleted, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.k85(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_Repo$findByUidAndClazzUid$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation) {
    this.ldh_1 = this$0;
    this.mdh_1 = $uid;
    this.ndh_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.odh_1 = this.ldh_1.xdg_1;
            var tmp_1 = this;
            tmp_1.pdh_1 = 'CoursePermissionDao/findByUidAndClazzUidAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.qdh_1 = this.ldh_1.zdg_1;
            var tmp_3 = this;
            tmp_3.rdh_1 = this.qdh_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ldh_1.xdg_1.w38(), 'CoursePermissionDao/findByUidAndClazzUidAsFlow');
            doorNodeIdHeader(this_0, this.ldh_1.xdg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.ldh_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.mdh_1));
            parameter(this_0, 'clazzUid', this.ldh_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ndh_1));
            tmp_4.sdh_1 = this_0;
            this.sdh_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.tdh_1 = this.rdh_1;
            var tmp_6 = this;
            tmp_6.udh_1 = this.sdh_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.udh_1, this.tdh_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.vdh_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ldh_1.wdg_1, this.vdh_1, this.ldh_1.xdg_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda$lambda(this.odh_1, this.pdh_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda).y77 = function (completion) {
    return new CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda(this.ldh_1, this.mdh_1, this.ndh_1, completion);
  };
  function CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda_0(this$0, $uid, $clazzUid, resultContinuation) {
    var i = new CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePermissionDao_Repo$upsertAsync$slambda(this$0, $coursePermission, resultContinuation) {
    this.edi_1 = this$0;
    this.fdi_1 = $coursePermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_Repo$upsertAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo$upsertAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CoursePermissionDao_Repo$upsertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.edi_1.ydg_1.ad5(this.fdi_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_Repo$upsertAsync$slambda).y77 = function (completion) {
    return new CoursePermissionDao_Repo$upsertAsync$slambda(this.edi_1, this.fdi_1, completion);
  };
  function CoursePermissionDao_Repo$upsertAsync$slambda_0(this$0, $coursePermission, resultContinuation) {
    var i = new CoursePermissionDao_Repo$upsertAsync$slambda(this$0, $coursePermission, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePermissionDao_Repo$setDeleted$slambda(this$0, $cpUid, $isDeleted, $updateTime, resultContinuation) {
    this.odi_1 = this$0;
    this.pdi_1 = $cpUid;
    this.qdi_1 = $isDeleted;
    this.rdi_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_Repo$setDeleted$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo$setDeleted$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CoursePermissionDao_Repo$setDeleted$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.odi_1.ydg_1.bbv(this.pdi_1, this.qdi_1, this.rdi_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_Repo$setDeleted$slambda).y77 = function (completion) {
    return new CoursePermissionDao_Repo$setDeleted$slambda(this.odi_1, this.pdi_1, this.qdi_1, this.rdi_1, completion);
  };
  function CoursePermissionDao_Repo$setDeleted$slambda_0(this$0, $cpUid, $isDeleted, $updateTime, resultContinuation) {
    var i = new CoursePermissionDao_Repo$setDeleted$slambda(this$0, $cpUid, $isDeleted, $updateTime, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePermissionDao_Repo$userHasEnrolmentEditPermission$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda(this$0, $accountPersonUid, $clazzUid, $permission, resultContinuation) {
    this.adj_1 = this$0;
    this.bdj_1 = $accountPersonUid;
    this.cdj_1 = $clazzUid;
    this.ddj_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.edj_1 = this.adj_1.xdg_1;
            var tmp_1 = this;
            tmp_1.fdj_1 = 'CoursePermissionDao/personHasPermissionWithClazzAsFlow2';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.gdj_1 = this.adj_1.zdg_1;
            var tmp_3 = this;
            tmp_3.hdj_1 = this.gdj_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.adj_1.xdg_1.w38(), 'CoursePermissionDao/personHasPermissionWithClazzAsFlow2');
            doorNodeIdHeader(this_0, this.adj_1.xdg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.adj_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.bdj_1));
            parameter(this_0, 'clazzUid', this.adj_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.cdj_1));
            parameter(this_0, 'permission', this.adj_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ddj_1));
            tmp_4.idj_1 = this_0;
            this.idj_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.jdj_1 = this.hdj_1;
            var tmp_6 = this;
            tmp_6.kdj_1 = this.idj_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.kdj_1, this.jdj_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.ldj_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.adj_1.wdg_1, this.ldj_1, this.adj_1.xdg_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda$lambda(this.edj_1, this.fdj_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda).y77 = function (completion) {
    return new CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda(this.adj_1, this.bdj_1, this.cdj_1, this.ddj_1, completion);
  };
  function CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda_0(this$0, $accountPersonUid, $clazzUid, $permission, resultContinuation) {
    var i = new CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda(this$0, $accountPersonUid, $clazzUid, $permission, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $firstPermission, $secondPermission, resultContinuation) {
    this.udj_1 = this$0;
    this.vdj_1 = $accountPersonUid;
    this.wdj_1 = $clazzUid;
    this.xdj_1 = $firstPermission;
    this.ydj_1 = $secondPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.zdj_1 = this.udj_1.xdg_1;
            var tmp_1 = this;
            tmp_1.adk_1 = 'CoursePermissionDao/personHasPermissionWithClazzPairAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.bdk_1 = this.udj_1.zdg_1;
            var tmp_3 = this;
            tmp_3.cdk_1 = this.bdk_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.udj_1.xdg_1.w38(), 'CoursePermissionDao/personHasPermissionWithClazzPairAsFlow');
            doorNodeIdHeader(this_0, this.udj_1.xdg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.udj_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.vdj_1));
            parameter(this_0, 'clazzUid', this.udj_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.wdj_1));
            parameter(this_0, 'firstPermission', this.udj_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.xdj_1));
            parameter(this_0, 'secondPermission', this.udj_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ydj_1));
            tmp_4.ddk_1 = this_0;
            this.ddk_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.edk_1 = this.cdk_1;
            var tmp_6 = this;
            tmp_6.fdk_1 = this.ddk_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.fdk_1, this.edk_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.gdk_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.udj_1.wdg_1, this.gdk_1, this.udj_1.xdg_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda$lambda(this.zdj_1, this.adk_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda).y77 = function (completion) {
    return new CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda(this.udj_1, this.vdj_1, this.wdj_1, this.xdj_1, this.ydj_1, completion);
  };
  function CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda_0(this$0, $accountPersonUid, $clazzUid, $firstPermission, $secondPermission, resultContinuation) {
    var i = new CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $firstPermission, $secondPermission, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsync$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) {
    this.pdk_1 = this$0;
    this.qdk_1 = $accountPersonUid;
    this.rdk_1 = $clazzUid;
    this.sdk_1 = $firstPermission;
    this.tdk_1 = $secondPermission;
    this.udk_1 = $thirdPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.vdk_1 = this.pdk_1.xdg_1;
            var tmp_1 = this;
            tmp_1.wdk_1 = 'CoursePermissionDao/personHasPermissionWithClazzTripleAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.xdk_1 = this.pdk_1.zdg_1;
            var tmp_3 = this;
            tmp_3.ydk_1 = this.xdk_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.pdk_1.xdg_1.w38(), 'CoursePermissionDao/personHasPermissionWithClazzTripleAsFlow');
            doorNodeIdHeader(this_0, this.pdk_1.xdg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.pdk_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.qdk_1));
            parameter(this_0, 'clazzUid', this.pdk_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.rdk_1));
            parameter(this_0, 'firstPermission', this.pdk_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.sdk_1));
            parameter(this_0, 'secondPermission', this.pdk_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.tdk_1));
            parameter(this_0, 'thirdPermission', this.pdk_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.udk_1));
            tmp_4.zdk_1 = this_0;
            this.zdk_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.adl_1 = this.ydk_1;
            var tmp_6 = this;
            tmp_6.bdl_1 = this.zdk_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.bdl_1, this.adl_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.cdl_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.pdk_1.wdg_1, this.cdl_1, this.pdk_1.xdg_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda$lambda(this.vdk_1, this.wdk_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda).y77 = function (completion) {
    return new CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda(this.pdk_1, this.qdk_1, this.rdk_1, this.sdk_1, this.tdk_1, this.udk_1, completion);
  };
  function CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda_0(this$0, $accountPersonUid, $clazzUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) {
    var i = new CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePermissionDao_Repo$personHasPermissionWithClazzAsync2$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda(this$0, $accountPersonUid, $assignmentUid, $clazzUid, $submitterUid, resultContinuation) {
    this.ldl_1 = this$0;
    this.mdl_1 = $accountPersonUid;
    this.ndl_1 = $assignmentUid;
    this.odl_1 = $clazzUid;
    this.pdl_1 = $submitterUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.qdl_1 = this.ldl_1.xdg_1;
            var tmp_1 = this;
            tmp_1.rdl_1 = 'CoursePermissionDao/userPermissionsForAssignmentSubmitterUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.sdl_1 = this.ldl_1.zdg_1;
            var tmp_3 = this;
            tmp_3.tdl_1 = this.sdl_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ldl_1.xdg_1.w38(), 'CoursePermissionDao/userPermissionsForAssignmentSubmitterUid');
            doorNodeIdHeader(this_0, this.ldl_1.xdg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.ldl_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.mdl_1));
            parameter(this_0, 'assignmentUid', this.ldl_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ndl_1));
            parameter(this_0, 'clazzUid', this.ldl_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.odl_1));
            parameter(this_0, 'submitterUid', this.ldl_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.pdl_1));
            tmp_4.udl_1 = this_0;
            this.udl_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.vdl_1 = this.tdl_1;
            var tmp_6 = this;
            tmp_6.wdl_1 = this.udl_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.wdl_1, this.vdl_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.xdl_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ldl_1.wdg_1, this.xdl_1, this.ldl_1.xdg_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda$lambda(this.qdl_1, this.rdl_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda).y77 = function (completion) {
    return new CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda(this.ldl_1, this.mdl_1, this.ndl_1, this.odl_1, this.pdl_1, completion);
  };
  function CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda_0(this$0, $accountPersonUid, $assignmentUid, $clazzUid, $submitterUid, resultContinuation) {
    var i = new CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda(this$0, $accountPersonUid, $assignmentUid, $clazzUid, $submitterUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByUidAndClazzUidCOROUTINE$206(_this__u8e3s4, uid, clazzUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.gdm_1 = _this__u8e3s4;
    this.hdm_1 = uid;
    this.idm_1 = clazzUid;
  }
  protoOf($findByUidAndClazzUidCOROUTINE$206).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.jdm_1 = this.gdm_1.xdg_1;
            var tmp_1 = this;
            tmp_1.kdm_1 = 'CoursePermissionDao/findByUidAndClazzUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ldm_1 = this.gdm_1.zdg_1;
            var tmp_3 = this;
            tmp_3.mdm_1 = this.ldm_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.gdm_1.xdg_1.w38(), 'CoursePermissionDao/findByUidAndClazzUid');
            doorNodeIdHeader(this_0, this.gdm_1.xdg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.gdm_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.hdm_1));
            parameter(this_0, 'clazzUid', this.gdm_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.idm_1));
            tmp_4.ndm_1 = this_0;
            this.ndm_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.odm_1 = this.mdm_1;
            var tmp_6 = this;
            tmp_6.pdm_1 = this.ndm_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.pdm_1, this.odm_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.qdm_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.gdm_1.wdg_1, this.qdm_1, this.gdm_1.xdg_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.rdm_1 = this.kd_1;
              Napier_getInstance().q5d(this.rdm_1, 'DoorLog', CoursePermissionDao_Repo$findByUidAndClazzUid$lambda(this.jdm_1, this.kdm_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.gdm_1.ydg_1.zd4(this.hdm_1, this.idm_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $userHasEnrolmentEditPermissionCOROUTINE$208(_this__u8e3s4, accountPersonUid, clazzEnrolmentUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.adn_1 = _this__u8e3s4;
    this.bdn_1 = accountPersonUid;
    this.cdn_1 = clazzEnrolmentUid;
  }
  protoOf($userHasEnrolmentEditPermissionCOROUTINE$208).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.ddn_1 = this.adn_1.xdg_1;
            var tmp_1 = this;
            tmp_1.edn_1 = 'CoursePermissionDao/userHasEnrolmentEditPermission';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.fdn_1 = this.adn_1.zdg_1;
            var tmp_3 = this;
            tmp_3.gdn_1 = this.fdn_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.adn_1.xdg_1.w38(), 'CoursePermissionDao/userHasEnrolmentEditPermission');
            doorNodeIdHeader(this_0, this.adn_1.xdg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.adn_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.bdn_1));
            parameter(this_0, 'clazzEnrolmentUid', this.adn_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.cdn_1));
            tmp_4.hdn_1 = this_0;
            this.hdn_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.idn_1 = this.gdn_1;
            var tmp_6 = this;
            tmp_6.jdn_1 = this.hdn_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.jdn_1, this.idn_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.kdn_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.adn_1.wdg_1, this.kdn_1, this.adn_1.xdg_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.ldn_1 = this.kd_1;
              Napier_getInstance().q5d(this.ldn_1, 'DoorLog', CoursePermissionDao_Repo$userHasEnrolmentEditPermission$lambda(this.ddn_1, this.edn_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.adn_1.ydg_1.bd5(this.bdn_1, this.cdn_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $personHasPermissionWithClazzPairAsyncCOROUTINE$210(_this__u8e3s4, accountPersonUid, clazzUid, firstPermission, secondPermission, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.udn_1 = _this__u8e3s4;
    this.vdn_1 = accountPersonUid;
    this.wdn_1 = clazzUid;
    this.xdn_1 = firstPermission;
    this.ydn_1 = secondPermission;
  }
  protoOf($personHasPermissionWithClazzPairAsyncCOROUTINE$210).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.zdn_1 = this.udn_1.xdg_1;
            var tmp_1 = this;
            tmp_1.ado_1 = 'CoursePermissionDao/personHasPermissionWithClazzPairAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.bdo_1 = this.udn_1.zdg_1;
            var tmp_3 = this;
            tmp_3.cdo_1 = this.bdo_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.udn_1.xdg_1.w38(), 'CoursePermissionDao/personHasPermissionWithClazzPairAsync');
            doorNodeIdHeader(this_0, this.udn_1.xdg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.udn_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.vdn_1));
            parameter(this_0, 'clazzUid', this.udn_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.wdn_1));
            parameter(this_0, 'firstPermission', this.udn_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.xdn_1));
            parameter(this_0, 'secondPermission', this.udn_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ydn_1));
            tmp_4.ddo_1 = this_0;
            this.ddo_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.edo_1 = this.cdo_1;
            var tmp_6 = this;
            tmp_6.fdo_1 = this.ddo_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.fdo_1, this.edo_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.gdo_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.udn_1.wdg_1, this.gdo_1, this.udn_1.xdg_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.hdo_1 = this.kd_1;
              Napier_getInstance().q5d(this.hdo_1, 'DoorLog', CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsync$lambda(this.zdn_1, this.ado_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.udn_1.ydg_1.ed5(this.vdn_1, this.wdn_1, this.xdn_1, this.ydn_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $personHasPermissionWithClazzAsync2COROUTINE$211(_this__u8e3s4, accountPersonUid, clazzUid, permission, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.qdo_1 = _this__u8e3s4;
    this.rdo_1 = accountPersonUid;
    this.sdo_1 = clazzUid;
    this.tdo_1 = permission;
  }
  protoOf($personHasPermissionWithClazzAsync2COROUTINE$211).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.udo_1 = this.qdo_1.xdg_1;
            var tmp_1 = this;
            tmp_1.vdo_1 = 'CoursePermissionDao/personHasPermissionWithClazzAsync2';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.wdo_1 = this.qdo_1.zdg_1;
            var tmp_3 = this;
            tmp_3.xdo_1 = this.wdo_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.qdo_1.xdg_1.w38(), 'CoursePermissionDao/personHasPermissionWithClazzAsync2');
            doorNodeIdHeader(this_0, this.qdo_1.xdg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.qdo_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.rdo_1));
            parameter(this_0, 'clazzUid', this.qdo_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.sdo_1));
            parameter(this_0, 'permission', this.qdo_1.xdg_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.tdo_1));
            tmp_4.ydo_1 = this_0;
            this.ydo_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.zdo_1 = this.xdo_1;
            var tmp_6 = this;
            tmp_6.adp_1 = this.ydo_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.adp_1, this.zdo_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.bdp_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.qdo_1.wdg_1, this.bdp_1, this.qdo_1.xdg_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.cdp_1 = this.kd_1;
              Napier_getInstance().q5d(this.cdp_1, 'DoorLog', CoursePermissionDao_Repo$personHasPermissionWithClazzAsync2$lambda(this.udo_1, this.vdo_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.qdo_1.ydg_1.gd5(this.rdo_1, this.sdo_1, this.tdo_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CoursePermissionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    CoursePermissionDao.call(this);
    this.wdg_1 = _db;
    this.xdg_1 = _repo;
    this.ydg_1 = _dao;
    this.zdg_1 = _httpClient;
    this.adh_1 = _clientId;
    this.bdh_1 = _endpoint;
    this.cdh_1 = new RepoDaoFlowHelper(this.xdg_1);
  }
  protoOf(CoursePermissionDao_Repo).yd4 = function (clazzUid, includeDeleted) {
    var tmp = this.ydg_1.yd4(clazzUid, includeDeleted);
    return new DoorRepositoryReplicatePullPagingSource(this.xdg_1, 'CoursePermissionDao/findByClazzUidAsPagingSource', tmp, CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda_0(this, clazzUid, includeDeleted, null));
  };
  protoOf(CoursePermissionDao_Repo).zd4 = function (uid, clazzUid, $completion) {
    var tmp = new $findByUidAndClazzUidCOROUTINE$206(this, uid, clazzUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo).s7r = function (uid, clazzUid) {
    var tmp = this.ydg_1.s7r(uid, clazzUid);
    return this.cdh_1.b67(tmp, CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda_0(this, uid, clazzUid, null));
  };
  protoOf(CoursePermissionDao_Repo).ad5 = function (coursePermission, $completion) {
    return withRepoChangeMonitorAsync(this.xdg_1, 'CoursePermission', CoursePermissionDao_Repo$upsertAsync$slambda_0(this, coursePermission, null), $completion);
  };
  protoOf(CoursePermissionDao_Repo).bbv = function (cpUid, isDeleted, updateTime, $completion) {
    return withRepoChangeMonitorAsync(this.xdg_1, 'CoursePermission', CoursePermissionDao_Repo$setDeleted$slambda_0(this, cpUid, isDeleted, updateTime, null), $completion);
  };
  protoOf(CoursePermissionDao_Repo).bd5 = function (accountPersonUid, clazzEnrolmentUid, $completion) {
    var tmp = new $userHasEnrolmentEditPermissionCOROUTINE$208(this, accountPersonUid, clazzEnrolmentUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo).cd5 = function (accountPersonUid, clazzUid, permission) {
    var tmp = this.ydg_1.cd5(accountPersonUid, clazzUid, permission);
    return this.cdh_1.b67(tmp, CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda_0(this, accountPersonUid, clazzUid, permission, null));
  };
  protoOf(CoursePermissionDao_Repo).dd5 = function (accountPersonUid, clazzUid, firstPermission, secondPermission) {
    var tmp = this.ydg_1.dd5(accountPersonUid, clazzUid, firstPermission, secondPermission);
    return this.cdh_1.b67(tmp, CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda_0(this, accountPersonUid, clazzUid, firstPermission, secondPermission, null));
  };
  protoOf(CoursePermissionDao_Repo).ed5 = function (accountPersonUid, clazzUid, firstPermission, secondPermission, $completion) {
    var tmp = new $personHasPermissionWithClazzPairAsyncCOROUTINE$210(this, accountPersonUid, clazzUid, firstPermission, secondPermission, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo).fd5 = function (accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission) {
    var tmp = this.ydg_1.fd5(accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission);
    return this.cdh_1.b67(tmp, CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda_0(this, accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission, null));
  };
  protoOf(CoursePermissionDao_Repo).gd5 = function (accountPersonUid, clazzUid, permission, $completion) {
    var tmp = new $personHasPermissionWithClazzAsync2COROUTINE$211(this, accountPersonUid, clazzUid, permission, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo).hd5 = function (accountPersonUid, assignmentUid, clazzUid, submitterUid) {
    var tmp = this.ydg_1.hd5(accountPersonUid, assignmentUid, clazzUid, submitterUid);
    return this.cdh_1.b67(tmp, CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda_0(this, accountPersonUid, assignmentUid, clazzUid, submitterUid, null));
  };
  function CoursePictureDao() {
  }
  function $upsertAsyncCOROUTINE$213(_this__u8e3s4, coursePicture, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.mdp_1 = _this__u8e3s4;
    this.ndp_1 = coursePicture;
  }
  protoOf($upsertAsyncCOROUTINE$213).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.odp_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.mdp_1.qdp_1));
            if (this.ndp_1.t8f_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.odp_1.b62(125, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.pdp_1 = suspendResult;
            this.ndp_1.t8f_1 = this.pdp_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.ndp_1.u8f_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.mdp_1.rdp_1.ddp(this.ndp_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return Unit_instance;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CoursePictureDao_DoorWrapper(_db, _dao) {
    CoursePictureDao.call(this);
    this.qdp_1 = _db;
    this.rdp_1 = _dao;
  }
  protoOf(CoursePictureDao_DoorWrapper).ddp = function (coursePicture, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$213(this, coursePicture, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePictureDao_DoorWrapper).rb3 = function (uid, uri, thumbnailUri, time, $completion) {
    return this.rdp_1.rb3(uid, uri, thumbnailUri, time, $completion);
  };
  function CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.sdp_1);
  }
  protoOf(CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO CoursePicture (coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) VALUES(?, ?, ?, ?, ?)';
  };
  protoOf(CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1).wdp = function (stmt, entity) {
    if (entity.t8f_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.t8f_1);
    }
    stmt.i5h(2, entity.u8f_1);
    stmt.l5h(3, entity.v8f_1);
    stmt.l5h(4, entity.w8f_1);
    stmt.v5g(5, entity.x8f_1);
  };
  protoOf(CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1).c5f = function (stmt, entity) {
    return this.wdp(stmt, entity instanceof CoursePicture ? entity : THROW_CCE());
  };
  function CoursePictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation) {
    this.fdq_1 = $uri;
    this.gdq_1 = $thumbnailUri;
    this.hdq_1 = $time;
    this.idq_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePictureDao_JdbcImpl$updateUri$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePictureDao_JdbcImpl$updateUri$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CoursePictureDao_JdbcImpl$updateUri$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.jdq_1.l5h(1, this.fdq_1);
            this.jdq_1.l5h(2, this.gdq_1);
            this.jdq_1.i5h(3, this.hdq_1);
            this.jdq_1.i5h(4, this.idq_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.jdq_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePictureDao_JdbcImpl$updateUri$slambda).z5e = function (_stmt, completion) {
    var i = new CoursePictureDao_JdbcImpl$updateUri$slambda(this.fdq_1, this.gdq_1, this.hdq_1, this.idq_1, completion);
    i.jdq_1 = _stmt;
    return i;
  };
  function CoursePictureDao_JdbcImpl$updateUri$slambda_0($uri, $thumbnailUri, $time, $uid, resultContinuation) {
    var i = new CoursePictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $updateUriCOROUTINE$214(_this__u8e3s4, uid, uri, thumbnailUri, time, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.sdq_1 = _this__u8e3s4;
    this.tdq_1 = uid;
    this.udq_1 = uri;
    this.vdq_1 = thumbnailUri;
    this.wdq_1 = time;
  }
  protoOf($updateUriCOROUTINE$214).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE CoursePicture\n           SET coursePictureUri = ?,\n               coursePictureThumbnailUri = ?,\n               coursePictureLct = CAST(? AS BIGINT)\n        WHERE coursePictureUid = CAST(? AS BIGINT)       \n    ', VOID, VOID, VOID, '\n        UPDATE CoursePicture\n           SET coursePictureUri = ?,\n               coursePictureThumbnailUri = ?,\n               coursePictureLct = ?\n        WHERE coursePictureUid = ?       \n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.sdq_1.sdp_1, tmp_0, CoursePictureDao_JdbcImpl$updateUri$slambda_0(this.udq_1, this.vdq_1, this.wdq_1, this.tdq_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CoursePictureDao_JdbcImpl(_db) {
    CoursePictureDao.call(this);
    this.sdp_1 = _db;
    var tmp = this;
    tmp.tdp_1 = new CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1(this);
  }
  protoOf(CoursePictureDao_JdbcImpl).ddp = function (coursePicture, $completion) {
    return this.tdp_1.i5g(coursePicture, $completion);
  };
  protoOf(CoursePictureDao_JdbcImpl).rb3 = function (uid, uri, thumbnailUri, time, $completion) {
    var tmp = new $updateUriCOROUTINE$214(this, uid, uri, thumbnailUri, time, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function CoursePictureDao_Repo$upsertAsync$slambda(this$0, $coursePicture, resultContinuation) {
    this.fdr_1 = this$0;
    this.gdr_1 = $coursePicture;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePictureDao_Repo$upsertAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePictureDao_Repo$upsertAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CoursePictureDao_Repo$upsertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.fdr_1.jdr_1.ddp(this.gdr_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePictureDao_Repo$upsertAsync$slambda).y77 = function (completion) {
    return new CoursePictureDao_Repo$upsertAsync$slambda(this.fdr_1, this.gdr_1, completion);
  };
  function CoursePictureDao_Repo$upsertAsync$slambda_0(this$0, $coursePicture, resultContinuation) {
    var i = new CoursePictureDao_Repo$upsertAsync$slambda(this$0, $coursePicture, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) {
    this.vdr_1 = this$0;
    this.wdr_1 = $uid;
    this.xdr_1 = $uri;
    this.ydr_1 = $thumbnailUri;
    this.zdr_1 = $time;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePictureDao_Repo$updateUri$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePictureDao_Repo$updateUri$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(CoursePictureDao_Repo$updateUri$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.vdr_1.jdr_1.rb3(this.wdr_1, this.xdr_1, this.ydr_1, this.zdr_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CoursePictureDao_Repo$updateUri$slambda).y77 = function (completion) {
    return new CoursePictureDao_Repo$updateUri$slambda(this.vdr_1, this.wdr_1, this.xdr_1, this.ydr_1, this.zdr_1, completion);
  };
  function CoursePictureDao_Repo$updateUri$slambda_0(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) {
    var i = new CoursePictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePictureDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    CoursePictureDao.call(this);
    this.hdr_1 = _db;
    this.idr_1 = _repo;
    this.jdr_1 = _dao;
    this.kdr_1 = _httpClient;
    this.ldr_1 = _clientId;
    this.mdr_1 = _endpoint;
  }
  protoOf(CoursePictureDao_Repo).ddp = function (coursePicture, $completion) {
    return withRepoChangeMonitorAsync(this.idr_1, 'CoursePicture', CoursePictureDao_Repo$upsertAsync$slambda_0(this, coursePicture, null), $completion);
  };
  protoOf(CoursePictureDao_Repo).rb3 = function (uid, uri, thumbnailUri, time, $completion) {
    return withRepoChangeMonitorAsync(this.idr_1, 'CoursePicture', CoursePictureDao_Repo$updateUri$slambda_0(this, uid, uri, thumbnailUri, time, null), $completion);
  };
  function CourseTerminologyDao() {
  }
  function $upsertAsyncCOROUTINE$215(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.nds_1 = _this__u8e3s4;
    this.ods_1 = entity;
  }
  protoOf($upsertAsyncCOROUTINE$215).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.pds_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.nds_1.rds_1));
            if (this.ods_1.p8f_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.pds_1.b62(450, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.qds_1 = suspendResult;
            this.ods_1.p8f_1 = this.qds_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.ods_1.s8f_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.nds_1.sds_1.eds(this.ods_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.ods_1.p8f_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$216(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.bdt_1 = _this__u8e3s4;
    this.cdt_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$216).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.ddt_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.bdt_1.rds_1));
            if (this.cdt_1.p8f_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.ddt_1.b62(450, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.edt_1 = suspendResult;
            this.cdt_1.p8f_1 = this.edt_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.cdt_1.s8f_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.bdt_1.sds_1.insertAsync(this.cdt_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.cdt_1.p8f_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseTerminologyDao_DoorWrapper(_db, _dao) {
    CourseTerminologyDao.call(this);
    this.rds_1 = _db;
    this.sds_1 = _dao;
  }
  protoOf(CourseTerminologyDao_DoorWrapper).ads = function () {
    return this.sds_1.ads();
  };
  protoOf(CourseTerminologyDao_DoorWrapper).bds = function (clazzUid, $completion) {
    return this.sds_1.bds(clazzUid, $completion);
  };
  protoOf(CourseTerminologyDao_DoorWrapper).cds = function (assignmentUid, $completion) {
    return this.sds_1.cds(assignmentUid, $completion);
  };
  protoOf(CourseTerminologyDao_DoorWrapper).dds = function (uid, $completion) {
    return this.sds_1.dds(uid, $completion);
  };
  protoOf(CourseTerminologyDao_DoorWrapper).eds = function (entity, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$215(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_DoorWrapper).fdt = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$216(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.fdt(entity instanceof CourseTerminology ? entity : THROW_CCE(), $completion);
  };
  function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda$lambda$lambda(_result));
  }
  function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_ctUid = $_result.l5m('ctUid');
      var _tmp_ctTitle = $_result.rz('ctTitle');
      var _tmp_ctTerminology = $_result.rz('ctTerminology');
      var _tmp_ctLct = $_result.l5m('ctLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseTerminology();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.p8f_1 = _tmp_ctUid;
      this_0.q8f_1 = _tmp_ctTitle;
      this_0.r8f_1 = _tmp_ctTerminology;
      this_0.s8f_1 = _tmp_ctLct;
      return this_0;
    };
  }
  function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda$lambda$lambda(_result));
  }
  function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda($_limit, $_offset, resultContinuation) {
    this.odt_1 = $_limit;
    this.pdt_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda).rdt = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda).he = function (p1, $completion) {
    return this.rdt((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.qdt_1.h5h(1, this.odt_1);
            this.qdt_1.h5h(2, this.pdt_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.qdt_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda(this.odt_1, this.pdt_1, completion);
    i.qdt_1 = _stmt;
    return i;
  };
  function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda_0($_limit, $_offset, resultContinuation) {
    var i = new CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda($_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.rdt(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda(resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.adu_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda(completion);
    i.adu_1 = _stmt;
    return i;
  };
  function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda_0(resultContinuation) {
    var i = new CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda(resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda$lambda(_result) {
    return mapNextRow(_result, null, CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda$lambda$lambda(_result));
  }
  function CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_ctUid = $_result.l5m('ctUid');
      var _tmp_ctTitle = $_result.rz('ctTitle');
      var _tmp_ctTerminology = $_result.rz('ctTerminology');
      var _tmp_ctLct = $_result.l5m('ctLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseTerminology();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseTerminologyDao_JdbcImpl.getTerminologyForClazz.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.p8f_1 = _tmp_ctUid;
      this_0.q8f_1 = _tmp_ctTitle;
      this_0.r8f_1 = _tmp_ctTerminology;
      this_0.s8f_1 = _tmp_ctLct;
      return this_0;
    };
  }
  function CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda$lambda(_result) {
    return mapNextRow(_result, null, CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda$lambda$lambda(_result));
  }
  function CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_ctUid = $_result.l5m('ctUid');
      var _tmp_ctTitle = $_result.rz('ctTitle');
      var _tmp_ctTerminology = $_result.rz('ctTerminology');
      var _tmp_ctLct = $_result.l5m('ctLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseTerminology();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseTerminologyDao_JdbcImpl.getTerminologyForAssignment.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.p8f_1 = _tmp_ctUid;
      this_0.q8f_1 = _tmp_ctTitle;
      this_0.r8f_1 = _tmp_ctTerminology;
      this_0.s8f_1 = _tmp_ctLct;
      return this_0;
    };
  }
  function CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) {
    return mapNextRow(_result, null, CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result));
  }
  function CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_ctUid = $_result.l5m('ctUid');
      var _tmp_ctTitle = $_result.rz('ctTitle');
      var _tmp_ctTerminology = $_result.rz('ctTerminology');
      var _tmp_ctLct = $_result.l5m('ctLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new CourseTerminology();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.CourseTerminologyDao_JdbcImpl.findByUidAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.p8f_1 = _tmp_ctUid;
      this_0.q8f_1 = _tmp_ctTitle;
      this_0.r8f_1 = _tmp_ctTerminology;
      this_0.s8f_1 = _tmp_ctLct;
      return this_0;
    };
  }
  function CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.bdu_1);
  }
  protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO CourseTerminology (ctUid, ctTitle, ctTerminology, ctLct) VALUES(?, ?, ?, ?)';
  };
  protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1).gdu = function (stmt, entity) {
    if (entity.p8f_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.p8f_1);
    }
    stmt.l5h(2, entity.q8f_1);
    stmt.l5h(3, entity.r8f_1);
    stmt.i5h(4, entity.s8f_1);
  };
  protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1).c5f = function (stmt, entity) {
    return this.gdu(stmt, entity instanceof CourseTerminology ? entity : THROW_CCE());
  };
  function CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.bdu_1);
  }
  protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO CourseTerminology (ctUid, ctTitle, ctTerminology, ctLct) VALUES(?, ?, ?, ?)';
  };
  protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1).gdu = function (stmt, entity) {
    if (entity.p8f_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.p8f_1);
    }
    stmt.l5h(2, entity.q8f_1);
    stmt.l5h(3, entity.r8f_1);
    stmt.i5h(4, entity.s8f_1);
  };
  protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1).c5f = function (stmt, entity) {
    return this.gdu(stmt, entity instanceof CourseTerminology ? entity : THROW_CCE());
  };
  function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1(this$0) {
    this.pdu_1 = this$0;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['CourseTerminology'];
    DoorLimitOffsetPagingSource.call(this, this$0.bdu_1, tmp$ret$2);
  }
  protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1).qdu = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM (\n        SELECT *\n         FROM CourseTerminology\n     ORDER BY ctTitle   \n    ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, VOID, true);
    return prepareAndUseStatementAsync(this.pdu_1.bdu_1, tmp, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda_0(_limit, _offset, null), $completion);
  };
  protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1).j5p = function (_limit, _offset, $completion) {
    return this.qdu(_limit, _offset, $completion);
  };
  protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n        SELECT *\n         FROM CourseTerminology\n     ORDER BY ctTitle   \n    ) AS _PagingCount', VOID, VOID, VOID, VOID, true);
    return prepareAndUseStatementAsync(this.pdu_1.bdu_1, tmp, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda_0(null), $completion);
  };
  function CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda($clazzUid, resultContinuation) {
    this.zdu_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda).bdv = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda).he = function (p1, $completion) {
    return this.bdv((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.adv_1.i5h(1, this.zdu_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.adv_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda).z5e = function (_stmt, completion) {
    var i = new CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda(this.zdu_1, completion);
    i.adv_1 = _stmt;
    return i;
  };
  function CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda_0($clazzUid, resultContinuation) {
    var i = new CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda($clazzUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.bdv(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda($assignmentUid, resultContinuation) {
    this.kdv_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda).bdv = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda).he = function (p1, $completion) {
    return this.bdv((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ldv_1.i5h(1, this.kdv_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ldv_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda).z5e = function (_stmt, completion) {
    var i = new CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda(this.kdv_1, completion);
    i.ldv_1 = _stmt;
    return i;
  };
  function CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda_0($assignmentUid, resultContinuation) {
    var i = new CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda($assignmentUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.bdv(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) {
    this.udv_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda).bdv = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda).he = function (p1, $completion) {
    return this.bdv((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.vdv_1.i5h(1, this.udv_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.vdv_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda).z5e = function (_stmt, completion) {
    var i = new CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda(this.udv_1, completion);
    i.vdv_1 = _stmt;
    return i;
  };
  function CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) {
    var i = new CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.bdv(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $upsertAsyncCOROUTINE$217(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.edw_1 = _this__u8e3s4;
    this.fdw_1 = entity;
  }
  protoOf($upsertAsyncCOROUTINE$217).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.edw_1.cdu_1.j5g(this.fdw_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$218(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.odw_1 = _this__u8e3s4;
    this.pdw_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$218).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.odw_1.ddu_1.j5g(this.pdw_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseTerminologyDao_JdbcImpl(_db) {
    CourseTerminologyDao.call(this);
    this.bdu_1 = _db;
    var tmp = this;
    tmp.cdu_1 = new CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1(this);
    var tmp_0 = this;
    tmp_0.ddu_1 = new CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1(this);
  }
  protoOf(CourseTerminologyDao_JdbcImpl).eds = function (entity, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$217(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_JdbcImpl).fdt = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$218(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.fdt(entity instanceof CourseTerminology ? entity : THROW_CCE(), $completion);
  };
  protoOf(CourseTerminologyDao_JdbcImpl).ads = function () {
    return new CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1(this);
  };
  protoOf(CourseTerminologyDao_JdbcImpl).bds = function (clazzUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT *\n          FROM CourseTerminology\n               JOIN Clazz \n               ON Clazz.clazzTerminologyUid = CourseTerminology.ctUid\n         WHERE Clazz.clazzUid = CAST(? AS BIGINT)\n    ', VOID, VOID, VOID, '\n        SELECT *\n          FROM CourseTerminology\n               JOIN Clazz \n               ON Clazz.clazzTerminologyUid = CourseTerminology.ctUid\n         WHERE Clazz.clazzUid = ?\n    \n', true);
    return prepareAndUseStatementAsync(this.bdu_1, tmp, CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda_0(clazzUid, null), $completion);
  };
  protoOf(CourseTerminologyDao_JdbcImpl).cds = function (assignmentUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT CourseTerminology.*\n          FROM ClazzAssignment\n               JOIN Clazz \n                    ON Clazz.clazzUid = ClazzAssignment.caClazzUid\n               JOIN CourseTerminology\n                    ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n         WHERE ClazzAssignment.caUid = CAST(? AS BIGINT) \n         LIMIT 1\n    ', VOID, VOID, VOID, '\n        SELECT CourseTerminology.*\n          FROM ClazzAssignment\n               JOIN Clazz \n                    ON Clazz.clazzUid = ClazzAssignment.caClazzUid\n               JOIN CourseTerminology\n                    ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n         WHERE ClazzAssignment.caUid = ? \n         LIMIT 1\n    \n', true);
    return prepareAndUseStatementAsync(this.bdu_1, tmp, CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda_0(assignmentUid, null), $completion);
  };
  protoOf(CourseTerminologyDao_JdbcImpl).dds = function (uid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT * \n         FROM CourseTerminology \n        WHERE ctUid = CAST(? AS BIGINT)\n        ', VOID, VOID, VOID, '\n        SELECT * \n         FROM CourseTerminology \n        WHERE ctUid = ?\n        \n', true);
    return prepareAndUseStatementAsync(this.bdu_1, tmp, CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion);
  };
  function CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda(this$0, resultContinuation) {
    this.ydw_1 = this$0;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda).k85 = function (_pagingParams, $completion) {
    var tmp = this.l85(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda).he = function (p1, $completion) {
    return this.k85(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            var tmp_0 = this;
            tmp_0.bdx_1 = this.ydw_1.kdx_1;
            var tmp_1 = this;
            tmp_1.cdx_1 = 'CourseTerminologyDao/findAllCourseTerminologyPagingSource';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.ddx_1 = this.ydw_1.mdx_1;
            var tmp_3 = this;
            tmp_3.edx_1 = this.ddx_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ydw_1.kdx_1.w38(), 'CourseTerminologyDao/findAllCourseTerminologyPagingSource');
            doorNodeIdHeader(this_0, this.ydw_1.kdx_1);
            header(this_0, 'cache-control', 'no-store');
            pagingSourceLoadParameters(this_0, this.ydw_1.kdx_1.w38().k65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.zdw_1);
            tmp_4.fdx_1 = this_0;
            this.fdx_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.gdx_1 = this.edx_1;
            var tmp_6 = this;
            tmp_6.hdx_1 = this.fdx_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.hdx_1, this.gdx_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.idx_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ydw_1.jdx_1, this.idx_1, this.ydw_1.kdx_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.adx_1 = endOfPaginationReached(this.idx_1);
            this.id_1 = 5;
            this.hd_1 = 7;
            continue $sm;
          case 4:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda$lambda(this.bdx_1, this.cdx_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 5:
            throw this.kd_1;
          case 6:
            this.id_1 = 5;
            if (false) {
              this.hd_1 = 1;
              continue $sm;
            }

            this.hd_1 = 7;
            continue $sm;
          case 7:
            return this.adx_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda).l85 = function (_pagingParams, completion) {
    var i = new CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda(this.ydw_1, completion);
    i.zdw_1 = _pagingParams;
    return i;
  };
  function CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda_0(this$0, resultContinuation) {
    var i = new CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda(this$0, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.k85(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseTerminologyDao_Repo$getTerminologyForClazz$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseTerminologyDao_Repo$findByUidAsync$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function CourseTerminologyDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation) {
    this.xdx_1 = this$0;
    this.ydx_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseTerminologyDao_Repo$upsertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_Repo$upsertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(CourseTerminologyDao_Repo$upsertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.xdx_1.ldx_1.eds(this.ydx_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseTerminologyDao_Repo$upsertAsync$slambda).y77 = function (completion) {
    return new CourseTerminologyDao_Repo$upsertAsync$slambda(this.xdx_1, this.ydx_1, completion);
  };
  function CourseTerminologyDao_Repo$upsertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new CourseTerminologyDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseTerminologyDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.hdy_1 = this$0;
    this.idy_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseTerminologyDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(CourseTerminologyDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.hdy_1.ldx_1.insertAsync(this.idy_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(CourseTerminologyDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new CourseTerminologyDao_Repo$insertAsync$slambda(this.hdy_1, this.idy_1, completion);
  };
  function CourseTerminologyDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new CourseTerminologyDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $getTerminologyForClazzCOROUTINE$220(_this__u8e3s4, clazzUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.rdy_1 = _this__u8e3s4;
    this.sdy_1 = clazzUid;
  }
  protoOf($getTerminologyForClazzCOROUTINE$220).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.tdy_1 = this.rdy_1.kdx_1;
            var tmp_1 = this;
            tmp_1.udy_1 = 'CourseTerminologyDao/getTerminologyForClazz';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.vdy_1 = this.rdy_1.mdx_1;
            var tmp_3 = this;
            tmp_3.wdy_1 = this.vdy_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.rdy_1.kdx_1.w38(), 'CourseTerminologyDao/getTerminologyForClazz');
            doorNodeIdHeader(this_0, this.rdy_1.kdx_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.rdy_1.kdx_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.sdy_1));
            tmp_4.xdy_1 = this_0;
            this.xdy_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.ydy_1 = this.wdy_1;
            var tmp_6 = this;
            tmp_6.zdy_1 = this.xdy_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.zdy_1, this.ydy_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.adz_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.rdy_1.jdx_1, this.adz_1, this.rdy_1.kdx_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.bdz_1 = this.kd_1;
              Napier_getInstance().q5d(this.bdz_1, 'DoorLog', CourseTerminologyDao_Repo$getTerminologyForClazz$lambda(this.tdy_1, this.udy_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.rdy_1.ldx_1.bds(this.sdy_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $getTerminologyForAssignmentCOROUTINE$221(_this__u8e3s4, assignmentUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.kdz_1 = _this__u8e3s4;
    this.ldz_1 = assignmentUid;
  }
  protoOf($getTerminologyForAssignmentCOROUTINE$221).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.kdz_1.ldx_1.cds(this.ldz_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $findByUidAsyncCOROUTINE$222(_this__u8e3s4, uid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.udz_1 = _this__u8e3s4;
    this.vdz_1 = uid;
  }
  protoOf($findByUidAsyncCOROUTINE$222).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.wdz_1 = this.udz_1.kdx_1;
            var tmp_1 = this;
            tmp_1.xdz_1 = 'CourseTerminologyDao/findByUidAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ydz_1 = this.udz_1.mdx_1;
            var tmp_3 = this;
            tmp_3.zdz_1 = this.ydz_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.udz_1.kdx_1.w38(), 'CourseTerminologyDao/findByUidAsync');
            doorNodeIdHeader(this_0, this.udz_1.kdx_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.udz_1.kdx_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.vdz_1));
            tmp_4.ae0_1 = this_0;
            this.ae0_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.be0_1 = this.zdz_1;
            var tmp_6 = this;
            tmp_6.ce0_1 = this.ae0_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.ce0_1, this.be0_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.de0_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.udz_1.jdx_1, this.de0_1, this.udz_1.kdx_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.ee0_1 = this.kd_1;
              Napier_getInstance().q5d(this.ee0_1, 'DoorLog', CourseTerminologyDao_Repo$findByUidAsync$lambda(this.wdz_1, this.xdz_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.udz_1.ldx_1.dds(this.vdz_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $upsertAsyncCOROUTINE$224(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ne0_1 = _this__u8e3s4;
    this.oe0_1 = entity;
  }
  protoOf($upsertAsyncCOROUTINE$224).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.ne0_1.kdx_1, 'CourseTerminology', CourseTerminologyDao_Repo$upsertAsync$slambda_0(this.ne0_1, this.oe0_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$225(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.xe0_1 = _this__u8e3s4;
    this.ye0_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$225).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.xe0_1.kdx_1, 'CourseTerminology', CourseTerminologyDao_Repo$insertAsync$slambda_0(this.xe0_1, this.ye0_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseTerminologyDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    CourseTerminologyDao.call(this);
    this.jdx_1 = _db;
    this.kdx_1 = _repo;
    this.ldx_1 = _dao;
    this.mdx_1 = _httpClient;
    this.ndx_1 = _clientId;
    this.odx_1 = _endpoint;
  }
  protoOf(CourseTerminologyDao_Repo).ads = function () {
    var tmp = this.ldx_1.ads();
    return new DoorRepositoryReplicatePullPagingSource(this.kdx_1, 'CourseTerminologyDao/findAllCourseTerminologyPagingSource', tmp, CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda_0(this, null));
  };
  protoOf(CourseTerminologyDao_Repo).bds = function (clazzUid, $completion) {
    var tmp = new $getTerminologyForClazzCOROUTINE$220(this, clazzUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_Repo).cds = function (assignmentUid, $completion) {
    var tmp = new $getTerminologyForAssignmentCOROUTINE$221(this, assignmentUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_Repo).dds = function (uid, $completion) {
    var tmp = new $findByUidAsyncCOROUTINE$222(this, uid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_Repo).eds = function (entity, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$224(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_Repo).fdt = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$225(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_Repo).insertAsync = function (entity, $completion) {
    return this.fdt(entity instanceof CourseTerminology ? entity : THROW_CCE(), $completion);
  };
  function DeletedItemDao() {
  }
  function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda$lambda$lambda(_result));
  }
  function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_delItemUid = $_result.l5m('delItemUid');
      var _tmp_delItemName = $_result.rz('delItemName');
      var _tmp_delItemIconUri = $_result.rz('delItemIconUri');
      var _tmp_delItemLastModTime = $_result.l5m('delItemLastModTime');
      var _tmp_delItemTimeDeleted = $_result.l5m('delItemTimeDeleted');
      var _tmp_delItemEntityTable = $_result.k5m('delItemEntityTable');
      var _tmp_delItemEntityUid = $_result.l5m('delItemEntityUid');
      var _tmp_delItemDeletedByPersonUid = $_result.l5m('delItemDeletedByPersonUid');
      var _tmp_delItemStatus = $_result.k5m('delItemStatus');
      var _tmp_delItemIsFolder = $_result.w65('delItemIsFolder');
      // Inline function 'kotlin.apply' call
      var this_0 = new DeletedItem();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.ce1_1 = _tmp_delItemUid;
      this_0.de1_1 = _tmp_delItemName;
      this_0.ee1_1 = _tmp_delItemIconUri;
      this_0.fe1_1 = _tmp_delItemLastModTime;
      this_0.ge1_1 = _tmp_delItemTimeDeleted;
      this_0.he1_1 = _tmp_delItemEntityTable;
      this_0.ie1_1 = _tmp_delItemEntityUid;
      this_0.je1_1 = _tmp_delItemDeletedByPersonUid;
      this_0.ke1_1 = _tmp_delItemStatus;
      this_0.le1_1 = _tmp_delItemIsFolder;
      return this_0;
    };
  }
  function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda$lambda$lambda(_result));
  }
  function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda($includeActionedItems, $personUid, $_limit, $_offset, resultContinuation) {
    this.ue1_1 = $includeActionedItems;
    this.ve1_1 = $personUid;
    this.we1_1 = $_limit;
    this.xe1_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda).ze1 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda).he = function (p1, $completion) {
    return this.ze1((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ye1_1.v5g(1, this.ue1_1);
            this.ye1_1.i5h(2, this.ve1_1);
            this.ye1_1.h5h(3, this.we1_1);
            this.ye1_1.h5h(4, this.xe1_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ye1_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda(this.ue1_1, this.ve1_1, this.we1_1, this.xe1_1, completion);
    i.ye1_1 = _stmt;
    return i;
  };
  function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda_0($includeActionedItems, $personUid, $_limit, $_offset, resultContinuation) {
    var i = new DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda($includeActionedItems, $personUid, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.ze1(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda($includeActionedItems, $personUid, resultContinuation) {
    this.ie2_1 = $includeActionedItems;
    this.je2_1 = $personUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ke2_1.v5g(1, this.ie2_1);
            this.ke2_1.i5h(2, this.je2_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ke2_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda(this.ie2_1, this.je2_1, completion);
    i.ke2_1 = _stmt;
    return i;
  };
  function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda_0($includeActionedItems, $personUid, resultContinuation) {
    var i = new DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda($includeActionedItems, $personUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda($cepcjUid, $time, $deletedByPersonUid, resultContinuation) {
    this.te2_1 = $cepcjUid;
    this.ue2_1 = $time;
    this.ve2_1 = $deletedByPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.we2_1.i5h(1, this.te2_1);
            this.we2_1.i5h(2, this.ue2_1);
            this.we2_1.i5h(3, this.ue2_1);
            this.we2_1.i5h(4, this.te2_1);
            this.we2_1.i5h(5, this.ve2_1);
            this.we2_1.i5h(6, this.te2_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.we2_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda).z5e = function (_stmt, completion) {
    var i = new DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda(this.te2_1, this.ue2_1, this.ve2_1, completion);
    i.we2_1 = _stmt;
    return i;
  };
  function DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda_0($cepcjUid, $time, $deletedByPersonUid, resultContinuation) {
    var i = new DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda($cepcjUid, $time, $deletedByPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1(this$0, $includeActionedItems, $personUid) {
    this.de3_1 = this$0;
    this.ee3_1 = $includeActionedItems;
    this.fe3_1 = $personUid;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['DeletedItem'];
    DoorLimitOffsetPagingSource.call(this, this$0.ge3_1, tmp$ret$2);
  }
  protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1).he3 = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM (\n        SELECT DeletedItem.*\n          FROM DeletedItem\n         WHERE (  (CAST(? AS INTEGER) = 1)\n                OR DeletedItem.delItemStatus = 1)\n           AND DeletedItem.delItemDeletedByPersonUid = CAST(? AS BIGINT)       \n      ORDER BY DeletedItem.delItemTimeDeleted DESC            \n    ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n        SELECT DeletedItem.*\n          FROM DeletedItem\n         WHERE (  (CAST(? AS INTEGER) = 1)\n                OR DeletedItem.delItemStatus = 1)\n           AND DeletedItem.delItemDeletedByPersonUid = ?       \n      ORDER BY DeletedItem.delItemTimeDeleted DESC            \n    ) AS _PagingData LIMIT ? OFFSET ?\n', true);
    return prepareAndUseStatementAsync(this.de3_1.ge3_1, tmp, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda_0(this.ee3_1, this.fe3_1, _limit, _offset, null), $completion);
  };
  protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1).j5p = function (_limit, _offset, $completion) {
    return this.he3(_limit, _offset, $completion);
  };
  protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n        SELECT DeletedItem.*\n          FROM DeletedItem\n         WHERE (  (CAST(? AS INTEGER) = 1)\n                OR DeletedItem.delItemStatus = 1)\n           AND DeletedItem.delItemDeletedByPersonUid = CAST(? AS BIGINT)       \n      ORDER BY DeletedItem.delItemTimeDeleted DESC            \n    ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n        SELECT DeletedItem.*\n          FROM DeletedItem\n         WHERE (  (CAST(? AS INTEGER) = 1)\n                OR DeletedItem.delItemStatus = 1)\n           AND DeletedItem.delItemDeletedByPersonUid = ?       \n      ORDER BY DeletedItem.delItemTimeDeleted DESC            \n    ) AS _PagingCount\n', true);
    return prepareAndUseStatementAsync(this.de3_1.ge3_1, tmp, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda_0(this.ee3_1, this.fe3_1, null), $completion);
  };
  function DeletedItemDao_JdbcImpl$updateStatusByUids$slambda($newStatus, $updateTime, $uidList, resultContinuation) {
    this.qe3_1 = $newStatus;
    this.re3_1 = $updateTime;
    this.se3_1 = $uidList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DeletedItemDao_JdbcImpl$updateStatusByUids$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DeletedItemDao_JdbcImpl$updateStatusByUids$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(DeletedItemDao_JdbcImpl$updateStatusByUids$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.te3_1.h5h(1, this.qe3_1);
            this.te3_1.i5h(2, this.re3_1);
            var tmp_0 = this.te3_1.e5g();
            var this_0 = this.se3_1;
            this.te3_1.m5h(3, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.te3_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(DeletedItemDao_JdbcImpl$updateStatusByUids$slambda).z5e = function (_stmt, completion) {
    var i = new DeletedItemDao_JdbcImpl$updateStatusByUids$slambda(this.qe3_1, this.re3_1, this.se3_1, completion);
    i.te3_1 = _stmt;
    return i;
  };
  function DeletedItemDao_JdbcImpl$updateStatusByUids$slambda_0($newStatus, $updateTime, $uidList, resultContinuation) {
    var i = new DeletedItemDao_JdbcImpl$updateStatusByUids$slambda($newStatus, $updateTime, $uidList, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertDeletedItemForContentEntryParentChildJoinCOROUTINE$226(_this__u8e3s4, cepcjUid, time, deletedByPersonUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ce4_1 = _this__u8e3s4;
    this.de4_1 = cepcjUid;
    this.ee4_1 = time;
    this.fe4_1 = deletedByPersonUid;
  }
  protoOf($insertDeletedItemForContentEntryParentChildJoinCOROUTINE$226).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        INSERT INTO DeletedItem(delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder)\n        SELECT (SELECT ContentEntry.title\n                  FROM ContentEntry\n                 WHERE ContentEntry.contentEntryUid = \n                       (SELECT ContentEntryParentChildJoin.cepcjChildContentEntryUid\n                          FROM ContentEntryParentChildJoin\n                         WHERE ContentEntryParentChildJoin.cepcjUid = CAST(? AS BIGINT))) AS delItemName,\n               NULL as delItemIconUri,\n               CAST(? AS BIGINT) AS delItemLastModTime,\n               CAST(? AS BIGINT) AS delItemTimeDeleted,\n               7 AS delItemEntityTable,\n               CAST(? AS BIGINT) AS delItemEntityUid,\n               CAST(? AS BIGINT) AS delItemDeletedByPersonUid,\n               1 AS delItemStatus,\n               (SELECT NOT ContentEntry.leaf\n                  FROM ContentEntry\n                 WHERE ContentEntry.contentEntryUid = \n                       (SELECT ContentEntryParentChildJoin.cepcjChildContentEntryUid\n                          FROM ContentEntryParentChildJoin\n                         WHERE ContentEntryParentChildJoin.cepcjUid = CAST(? AS BIGINT))) AS delItemIsFolder\n    ', VOID, VOID, VOID, '\n        INSERT INTO DeletedItem(delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder)\n        SELECT (SELECT ContentEntry.title\n                  FROM ContentEntry\n                 WHERE ContentEntry.contentEntryUid = \n                       (SELECT ContentEntryParentChildJoin.cepcjChildContentEntryUid\n                          FROM ContentEntryParentChildJoin\n                         WHERE ContentEntryParentChildJoin.cepcjUid = ?)) AS delItemName,\n               NULL as delItemIconUri,\n               ? AS delItemLastModTime,\n               ? AS delItemTimeDeleted,\n               7 AS delItemEntityTable,\n               ? AS delItemEntityUid,\n               ? AS delItemDeletedByPersonUid,\n               1 AS delItemStatus,\n               (SELECT NOT ContentEntry.leaf\n                  FROM ContentEntry\n                 WHERE ContentEntry.contentEntryUid = \n                       (SELECT ContentEntryParentChildJoin.cepcjChildContentEntryUid\n                          FROM ContentEntryParentChildJoin\n                         WHERE ContentEntryParentChildJoin.cepcjUid = ?)) AS delItemIsFolder\n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.ce4_1.ge3_1, tmp_0, DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda_0(this.de4_1, this.ee4_1, this.fe4_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateStatusByUidsCOROUTINE$227(_this__u8e3s4, uidList, newStatus, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.oe4_1 = _this__u8e3s4;
    this.pe4_1 = uidList;
    this.qe4_1 = newStatus;
    this.re4_1 = updateTime;
  }
  protoOf($updateStatusByUidsCOROUTINE$227).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE DeletedItem\n           SET delItemStatus = ?,\n               delItemLastModTime = CAST(? AS BIGINT)\n         WHERE delItemUid IN (?)\n    ', true, VOID, VOID, '\n        UPDATE DeletedItem\n           SET delItemStatus = ?,\n               delItemLastModTime = ?\n         WHERE delItemUid IN (?)\n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.oe4_1.ge3_1, tmp_0, DeletedItemDao_JdbcImpl$updateStatusByUids$slambda_0(this.qe4_1, this.re4_1, this.pe4_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function DeletedItemDao_JdbcImpl(_db) {
    DeletedItemDao.call(this);
    this.ge3_1 = _db;
  }
  protoOf(DeletedItemDao_JdbcImpl).ze0 = function (cepcjUid, time, deletedByPersonUid, $completion) {
    var tmp = new $insertDeletedItemForContentEntryParentChildJoinCOROUTINE$226(this, cepcjUid, time, deletedByPersonUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DeletedItemDao_JdbcImpl).ae1 = function (personUid, includeActionedItems) {
    return new DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1(this, includeActionedItems, personUid);
  };
  protoOf(DeletedItemDao_JdbcImpl).be1 = function (uidList, newStatus, updateTime, $completion) {
    var tmp = new $updateStatusByUidsCOROUTINE$227(this, uidList, newStatus, updateTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function DeletedItemDao_Repo$findDeletedItemsForUser$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda(this$0, $cepcjUid, $time, $deletedByPersonUid, resultContinuation) {
    this.ae5_1 = this$0;
    this.be5_1 = $cepcjUid;
    this.ce5_1 = $time;
    this.de5_1 = $deletedByPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.ae5_1.ge5_1.ze0(this.be5_1, this.ce5_1, this.de5_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda).y77 = function (completion) {
    return new DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda(this.ae5_1, this.be5_1, this.ce5_1, this.de5_1, completion);
  };
  function DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda_0(this$0, $cepcjUid, $time, $deletedByPersonUid, resultContinuation) {
    var i = new DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda(this$0, $cepcjUid, $time, $deletedByPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function DeletedItemDao_Repo$findDeletedItemsForUser$slambda(this$0, $personUid, $includeActionedItems, resultContinuation) {
    this.se5_1 = this$0;
    this.te5_1 = $personUid;
    this.ue5_1 = $includeActionedItems;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DeletedItemDao_Repo$findDeletedItemsForUser$slambda).k85 = function (_pagingParams, $completion) {
    var tmp = this.l85(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DeletedItemDao_Repo$findDeletedItemsForUser$slambda).he = function (p1, $completion) {
    return this.k85(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(DeletedItemDao_Repo$findDeletedItemsForUser$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            var tmp_0 = this;
            tmp_0.xe5_1 = this.se5_1.fe5_1;
            var tmp_1 = this;
            tmp_1.ye5_1 = 'DeletedItemDao/findDeletedItemsForUser';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.ze5_1 = this.se5_1.he5_1;
            var tmp_3 = this;
            tmp_3.ae6_1 = this.ze5_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.se5_1.fe5_1.w38(), 'DeletedItemDao/findDeletedItemsForUser');
            doorNodeIdHeader(this_0, this.se5_1.fe5_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'personUid', this.se5_1.fe5_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.te5_1));
            parameter(this_0, 'includeActionedItems', this.se5_1.fe5_1.w38().k65_1.e45(serializer_2(BooleanCompanionObject_instance), this.ue5_1));
            pagingSourceLoadParameters(this_0, this.se5_1.fe5_1.w38().k65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.ve5_1);
            tmp_4.be6_1 = this_0;
            this.be6_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.ce6_1 = this.ae6_1;
            var tmp_6 = this;
            tmp_6.de6_1 = this.be6_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.de6_1, this.ce6_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.ee6_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.se5_1.ee5_1, this.ee6_1, this.se5_1.fe5_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.we5_1 = endOfPaginationReached(this.ee6_1);
            this.id_1 = 5;
            this.hd_1 = 7;
            continue $sm;
          case 4:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', DeletedItemDao_Repo$findDeletedItemsForUser$slambda$lambda(this.xe5_1, this.ye5_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 5:
            throw this.kd_1;
          case 6:
            this.id_1 = 5;
            if (false) {
              this.hd_1 = 1;
              continue $sm;
            }

            this.hd_1 = 7;
            continue $sm;
          case 7:
            return this.we5_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(DeletedItemDao_Repo$findDeletedItemsForUser$slambda).l85 = function (_pagingParams, completion) {
    var i = new DeletedItemDao_Repo$findDeletedItemsForUser$slambda(this.se5_1, this.te5_1, this.ue5_1, completion);
    i.ve5_1 = _pagingParams;
    return i;
  };
  function DeletedItemDao_Repo$findDeletedItemsForUser$slambda_0(this$0, $personUid, $includeActionedItems, resultContinuation) {
    var i = new DeletedItemDao_Repo$findDeletedItemsForUser$slambda(this$0, $personUid, $includeActionedItems, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.k85(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DeletedItemDao_Repo$updateStatusByUids$slambda(this$0, $uidList, $newStatus, $updateTime, resultContinuation) {
    this.ne6_1 = this$0;
    this.oe6_1 = $uidList;
    this.pe6_1 = $newStatus;
    this.qe6_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DeletedItemDao_Repo$updateStatusByUids$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DeletedItemDao_Repo$updateStatusByUids$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(DeletedItemDao_Repo$updateStatusByUids$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.ne6_1.ge5_1.be1(this.oe6_1, this.pe6_1, this.qe6_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(DeletedItemDao_Repo$updateStatusByUids$slambda).y77 = function (completion) {
    return new DeletedItemDao_Repo$updateStatusByUids$slambda(this.ne6_1, this.oe6_1, this.pe6_1, this.qe6_1, completion);
  };
  function DeletedItemDao_Repo$updateStatusByUids$slambda_0(this$0, $uidList, $newStatus, $updateTime, resultContinuation) {
    var i = new DeletedItemDao_Repo$updateStatusByUids$slambda(this$0, $uidList, $newStatus, $updateTime, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function DeletedItemDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    DeletedItemDao.call(this);
    this.ee5_1 = _db;
    this.fe5_1 = _repo;
    this.ge5_1 = _dao;
    this.he5_1 = _httpClient;
    this.ie5_1 = _clientId;
    this.je5_1 = _endpoint;
  }
  protoOf(DeletedItemDao_Repo).ze0 = function (cepcjUid, time, deletedByPersonUid, $completion) {
    return withRepoChangeMonitorAsync(this.fe5_1, 'DeletedItem', DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda_0(this, cepcjUid, time, deletedByPersonUid, null), $completion);
  };
  protoOf(DeletedItemDao_Repo).ae1 = function (personUid, includeActionedItems) {
    var tmp = this.ge5_1.ae1(personUid, includeActionedItems);
    return new DoorRepositoryReplicatePullPagingSource(this.fe5_1, 'DeletedItemDao/findDeletedItemsForUser', tmp, DeletedItemDao_Repo$findDeletedItemsForUser$slambda_0(this, personUid, includeActionedItems, null));
  };
  protoOf(DeletedItemDao_Repo).be1 = function (uidList, newStatus, updateTime, $completion) {
    return withRepoChangeMonitorAsync(this.fe5_1, 'DeletedItem', DeletedItemDao_Repo$updateStatusByUids$slambda_0(this, uidList, newStatus, updateTime, null), $completion);
  };
  function DiscussionPostDao() {
  }
  function $upsertAsyncCOROUTINE$229(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ee7_1 = _this__u8e3s4;
    this.fe7_1 = entity;
  }
  protoOf($upsertAsyncCOROUTINE$229).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.ge7_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.ee7_1.ie7_1));
            if (this.fe7_1.ke7_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.ge7_1.b62(132, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.he7_1 = suspendResult;
            this.fe7_1.ke7_1 = this.he7_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.fe7_1.te7_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.ee7_1.je7_1.ue6(this.fe7_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return Unit_instance;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$230(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ee8_1 = _this__u8e3s4;
    this.fe8_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$230).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.ge8_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.ee8_1.ie7_1));
            if (this.fe8_1.ke7_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.ge8_1.b62(132, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.he8_1 = suspendResult;
            this.fe8_1.ke7_1 = this.he8_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.fe8_1.te7_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.ee8_1.je7_1.insertAsync(this.fe8_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.fe8_1.ke7_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function DiscussionPostDao_DoorWrapper(_db, _dao) {
    DiscussionPostDao.call(this);
    this.ie7_1 = _db;
    this.je7_1 = _dao;
  }
  protoOf(DiscussionPostDao_DoorWrapper).re6 = function (courseBlockUid, includeDeleted) {
    return this.je7_1.re6(courseBlockUid, includeDeleted);
  };
  protoOf(DiscussionPostDao_DoorWrapper).se6 = function (uid, $completion) {
    return this.je7_1.se6(uid, $completion);
  };
  protoOf(DiscussionPostDao_DoorWrapper).c8c = function (uid) {
    return this.je7_1.c8c(uid);
  };
  protoOf(DiscussionPostDao_DoorWrapper).te6 = function (postUid, includeDeleted) {
    return this.je7_1.te6(postUid, includeDeleted);
  };
  protoOf(DiscussionPostDao_DoorWrapper).ue6 = function (entity, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$229(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_DoorWrapper).ve6 = function (uid, deleted, updateTime, $completion) {
    return this.je7_1.ve6(uid, deleted, updateTime, $completion);
  };
  protoOf(DiscussionPostDao_DoorWrapper).ie8 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$230(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.ie8(entity instanceof DiscussionPost ? entity : THROW_CCE(), $completion);
  };
  function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda$lambda$lambda(_result));
  }
  function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_authorPersonFirstNames = $_result.rz('authorPersonFirstNames');
      var _tmp_authorPersonLastName = $_result.rz('authorPersonLastName');
      var _tmp_authorPictureUri = $_result.rz('authorPictureUri');
      var _tmp_postLatestMessage = $_result.rz('postLatestMessage');
      var _tmp_postRepliesCount = $_result.k5m('postRepliesCount');
      var _tmp_postLatestMessageTimestamp = $_result.l5m('postLatestMessageTimestamp');
      var _tmp_discussionPostUid = $_result.l5m('discussionPostUid');
      var _tmp_discussionPostReplyToPostUid = $_result.l5m('discussionPostReplyToPostUid');
      var _tmp_discussionPostTitle = $_result.rz('discussionPostTitle');
      var _tmp_discussionPostMessage = $_result.rz('discussionPostMessage');
      var _tmp_discussionPostStartDate = $_result.l5m('discussionPostStartDate');
      var _tmp_discussionPostCourseBlockUid = $_result.l5m('discussionPostCourseBlockUid');
      var _tmp_dpDeleted = $_result.w65('dpDeleted');
      var _tmp_discussionPostStartedPersonUid = $_result.l5m('discussionPostStartedPersonUid');
      var _tmp_discussionPostClazzUid = $_result.l5m('discussionPostClazzUid');
      var _tmp_discussionPostLct = $_result.l5m('discussionPostLct');
      var _tmp_discussionPostVisible = $_result.w65('discussionPostVisible');
      var _tmp_discussionPostArchive = $_result.w65('discussionPostArchive');
      // Inline function 'kotlin.apply' call
      var this_0 = new DiscussionPostWithDetails();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.ve8_1 = _tmp_authorPersonFirstNames;
      this_0.we8_1 = _tmp_authorPersonLastName;
      this_0.xe8_1 = _tmp_authorPictureUri;
      this_0.ye8_1 = _tmp_postLatestMessage;
      this_0.ze8_1 = _tmp_postRepliesCount;
      this_0.ae9_1 = _tmp_postLatestMessageTimestamp;
      this_0.ke7_1 = _tmp_discussionPostUid;
      this_0.le7_1 = _tmp_discussionPostReplyToPostUid;
      this_0.me7_1 = _tmp_discussionPostTitle;
      this_0.ne7_1 = _tmp_discussionPostMessage;
      this_0.oe7_1 = _tmp_discussionPostStartDate;
      this_0.pe7_1 = _tmp_discussionPostCourseBlockUid;
      this_0.qe7_1 = _tmp_dpDeleted;
      this_0.re7_1 = _tmp_discussionPostStartedPersonUid;
      this_0.se7_1 = _tmp_discussionPostClazzUid;
      this_0.te7_1 = _tmp_discussionPostLct;
      this_0.ue7_1 = _tmp_discussionPostVisible;
      this_0.ve7_1 = _tmp_discussionPostArchive;
      return this_0;
    };
  }
  function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda$lambda$lambda(_result));
  }
  function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda($courseBlockUid, $includeDeleted, $_limit, $_offset, resultContinuation) {
    this.je9_1 = $courseBlockUid;
    this.ke9_1 = $includeDeleted;
    this.le9_1 = $_limit;
    this.me9_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda).oe9 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda).he = function (p1, $completion) {
    return this.oe9((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ne9_1.i5h(1, this.je9_1);
            this.ne9_1.v5g(2, this.ke9_1);
            this.ne9_1.h5h(3, this.le9_1);
            this.ne9_1.h5h(4, this.me9_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ne9_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda(this.je9_1, this.ke9_1, this.le9_1, this.me9_1, completion);
    i.ne9_1 = _stmt;
    return i;
  };
  function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda_0($courseBlockUid, $includeDeleted, $_limit, $_offset, resultContinuation) {
    var i = new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda($courseBlockUid, $includeDeleted, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.oe9(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda($courseBlockUid, $includeDeleted, resultContinuation) {
    this.xe9_1 = $courseBlockUid;
    this.ye9_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ze9_1.i5h(1, this.xe9_1);
            this.ze9_1.v5g(2, this.ye9_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ze9_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda(this.xe9_1, this.ye9_1, completion);
    i.ze9_1 = _stmt;
    return i;
  };
  function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda_0($courseBlockUid, $includeDeleted, resultContinuation) {
    var i = new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda($courseBlockUid, $includeDeleted, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DiscussionPostDao_JdbcImpl$findByUid$slambda$lambda(_result) {
    return mapNextRow(_result, null, DiscussionPostDao_JdbcImpl$findByUid$slambda$lambda$lambda(_result));
  }
  function DiscussionPostDao_JdbcImpl$findByUid$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_discussionPostUid = $_result.l5m('discussionPostUid');
      var _tmp_discussionPostReplyToPostUid = $_result.l5m('discussionPostReplyToPostUid');
      var _tmp_discussionPostTitle = $_result.rz('discussionPostTitle');
      var _tmp_discussionPostMessage = $_result.rz('discussionPostMessage');
      var _tmp_discussionPostStartDate = $_result.l5m('discussionPostStartDate');
      var _tmp_discussionPostCourseBlockUid = $_result.l5m('discussionPostCourseBlockUid');
      var _tmp_dpDeleted = $_result.w65('dpDeleted');
      var _tmp_discussionPostStartedPersonUid = $_result.l5m('discussionPostStartedPersonUid');
      var _tmp_discussionPostClazzUid = $_result.l5m('discussionPostClazzUid');
      var _tmp_discussionPostLct = $_result.l5m('discussionPostLct');
      var _tmp_discussionPostVisible = $_result.w65('discussionPostVisible');
      var _tmp_discussionPostArchive = $_result.w65('discussionPostArchive');
      // Inline function 'kotlin.apply' call
      var this_0 = new DiscussionPost();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.DiscussionPostDao_JdbcImpl.findByUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.ke7_1 = _tmp_discussionPostUid;
      this_0.le7_1 = _tmp_discussionPostReplyToPostUid;
      this_0.me7_1 = _tmp_discussionPostTitle;
      this_0.ne7_1 = _tmp_discussionPostMessage;
      this_0.oe7_1 = _tmp_discussionPostStartDate;
      this_0.pe7_1 = _tmp_discussionPostCourseBlockUid;
      this_0.qe7_1 = _tmp_dpDeleted;
      this_0.re7_1 = _tmp_discussionPostStartedPersonUid;
      this_0.se7_1 = _tmp_discussionPostClazzUid;
      this_0.te7_1 = _tmp_discussionPostLct;
      this_0.ue7_1 = _tmp_discussionPostVisible;
      this_0.ve7_1 = _tmp_discussionPostArchive;
      return this_0;
    };
  }
  function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.k60(1);
    };
  }
  function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda($uid, resultContinuation) {
    this.iea_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).u8k = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.u8k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.jea_1.i5h(1, this.iea_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.jea_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda(this.iea_1, completion);
    i.jea_1 = _stmt;
    return i;
  };
  function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda_0($uid, resultContinuation) {
    var i = new DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda($uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.u8k(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda$lambda$lambda(_result));
  }
  function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_firstNames = $_result.rz('firstNames');
      var _tmp_lastName = $_result.rz('lastName');
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var _tmp_DiscussionPost_nullCount = 0;
      var _tmp_discussionPostUid = $_result.l5m('discussionPostUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_discussionPostReplyToPostUid = $_result.l5m('discussionPostReplyToPostUid');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_discussionPostTitle = $_result.rz('discussionPostTitle');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_discussionPostMessage = $_result.rz('discussionPostMessage');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_discussionPostStartDate = $_result.l5m('discussionPostStartDate');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_discussionPostCourseBlockUid = $_result.l5m('discussionPostCourseBlockUid');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_dpDeleted = $_result.w65('dpDeleted');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_discussionPostStartedPersonUid = $_result.l5m('discussionPostStartedPersonUid');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_discussionPostClazzUid = $_result.l5m('discussionPostClazzUid');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_discussionPostLct = $_result.l5m('discussionPostLct');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_discussionPostVisible = $_result.w65('discussionPostVisible');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_discussionPostArchive = $_result.w65('discussionPostArchive');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_DiscussionPost_isAllNull = _tmp_DiscussionPost_nullCount === 12;
      // Inline function 'kotlin.apply' call
      var this_0 = new DiscussionPostAndPosterNames();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.lea_1 = _tmp_firstNames;
      this_0.mea_1 = _tmp_lastName;
      this_0.nea_1 = _tmp_personPictureUri;
      if (!_tmp_DiscussionPost_isAllNull) {
        var tmp_11 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new DiscussionPost();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.ke7_1 = _tmp_discussionPostUid;
        this_1.le7_1 = _tmp_discussionPostReplyToPostUid;
        this_1.me7_1 = _tmp_discussionPostTitle;
        this_1.ne7_1 = _tmp_discussionPostMessage;
        this_1.oe7_1 = _tmp_discussionPostStartDate;
        this_1.pe7_1 = _tmp_discussionPostCourseBlockUid;
        this_1.qe7_1 = _tmp_dpDeleted;
        this_1.re7_1 = _tmp_discussionPostStartedPersonUid;
        this_1.se7_1 = _tmp_discussionPostClazzUid;
        this_1.te7_1 = _tmp_discussionPostLct;
        this_1.ue7_1 = _tmp_discussionPostVisible;
        this_1.ve7_1 = _tmp_discussionPostArchive;
        tmp_11.kea_1 = this_1;
      }
      return this_0;
    };
  }
  function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda$lambda$lambda(_result));
  }
  function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda($postUid, $includeDeleted, $_limit, $_offset, resultContinuation) {
    this.wea_1 = $postUid;
    this.xea_1 = $includeDeleted;
    this.yea_1 = $_limit;
    this.zea_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda).beb = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda).he = function (p1, $completion) {
    return this.beb((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.aeb_1.i5h(1, this.wea_1);
            this.aeb_1.i5h(2, this.wea_1);
            this.aeb_1.v5g(3, this.xea_1);
            this.aeb_1.h5h(4, this.yea_1);
            this.aeb_1.h5h(5, this.zea_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.aeb_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda(this.wea_1, this.xea_1, this.yea_1, this.zea_1, completion);
    i.aeb_1 = _stmt;
    return i;
  };
  function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda_0($postUid, $includeDeleted, $_limit, $_offset, resultContinuation) {
    var i = new DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda($postUid, $includeDeleted, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.beb(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda($postUid, $includeDeleted, resultContinuation) {
    this.keb_1 = $postUid;
    this.leb_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.meb_1.i5h(1, this.keb_1);
            this.meb_1.i5h(2, this.keb_1);
            this.meb_1.v5g(3, this.leb_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.meb_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda(this.keb_1, this.leb_1, completion);
    i.meb_1 = _stmt;
    return i;
  };
  function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda_0($postUid, $includeDeleted, resultContinuation) {
    var i = new DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda($postUid, $includeDeleted, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.neb_1);
  }
  protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO DiscussionPost (discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1).seb = function (stmt, entity) {
    if (entity.ke7_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.ke7_1);
    }
    stmt.i5h(2, entity.le7_1);
    stmt.l5h(3, entity.me7_1);
    stmt.l5h(4, entity.ne7_1);
    stmt.i5h(5, entity.oe7_1);
    stmt.i5h(6, entity.pe7_1);
    stmt.v5g(7, entity.qe7_1);
    stmt.i5h(8, entity.re7_1);
    stmt.i5h(9, entity.se7_1);
    stmt.i5h(10, entity.te7_1);
    stmt.v5g(11, entity.ue7_1);
    stmt.v5g(12, entity.ve7_1);
  };
  protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1).c5f = function (stmt, entity) {
    return this.seb(stmt, entity instanceof DiscussionPost ? entity : THROW_CCE());
  };
  function DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.neb_1);
  }
  protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO DiscussionPost (discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1).seb = function (stmt, entity) {
    if (entity.ke7_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.ke7_1);
    }
    stmt.i5h(2, entity.le7_1);
    stmt.l5h(3, entity.me7_1);
    stmt.l5h(4, entity.ne7_1);
    stmt.i5h(5, entity.oe7_1);
    stmt.i5h(6, entity.pe7_1);
    stmt.v5g(7, entity.qe7_1);
    stmt.i5h(8, entity.re7_1);
    stmt.i5h(9, entity.se7_1);
    stmt.i5h(10, entity.te7_1);
    stmt.v5g(11, entity.ue7_1);
    stmt.v5g(12, entity.ve7_1);
  };
  protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1).c5f = function (stmt, entity) {
    return this.seb(stmt, entity instanceof DiscussionPost ? entity : THROW_CCE());
  };
  function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1(this$0, $courseBlockUid, $includeDeleted) {
    this.bec_1 = this$0;
    this.cec_1 = $courseBlockUid;
    this.dec_1 = $includeDeleted;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['Person', 'PersonPicture', 'DiscussionPost'];
    DoorLimitOffsetPagingSource.call(this, this$0.neb_1, tmp$ret$2);
  }
  protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1).eec = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM (\n        SELECT DiscussionPost.*,\n               Person.firstNames as authorPersonFirstNames,\n               Person.lastName as authorPersonLastName,\n               PersonPicture.personPictureThumbnailUri AS authorPictureUri,\n               MostRecentReply.discussionPostMessage AS postLatestMessage,\n               COALESCE(MostRecentReply.discussionPostStartDate, 0) AS postLatestMessageTimestamp,\n               (SELECT COUNT(*)\n                  FROM DiscussionPost DiscussionPostReplies\n                 WHERE DiscussionPostReplies.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n                   AND NOT DiscussionPostReplies.dpDeleted\n               ) AS postRepliesCount\n          FROM DiscussionPost\n               LEFT JOIN DiscussionPost AS MostRecentReply\n                         ON MostRecentReply.discussionPostUid = \n                            (SELECT MostRecentReplyInner.discussionPostUid\n                               FROM DiscussionPost AS MostRecentReplyInner\n                              WHERE MostRecentReplyInner.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n                           ORDER BY MostRecentReplyInner.discussionPostStartDate DESC\n                              LIMIT 1  \n                            )\n               LEFT JOIN Person \n                         ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n         WHERE DiscussionPost.discussionPostCourseBlockUid = CAST(? AS BIGINT)\n           AND DiscussionPost.discussionPostReplyToPostUid = 0\n           AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1)\n      ORDER BY DiscussionPost.discussionPostStartDate DESC          \n    ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n        SELECT DiscussionPost.*,\n               Person.firstNames as authorPersonFirstNames,\n               Person.lastName as authorPersonLastName,\n               PersonPicture.personPictureThumbnailUri AS authorPictureUri,\n               MostRecentReply.discussionPostMessage AS postLatestMessage,\n               COALESCE(MostRecentReply.discussionPostStartDate, 0) AS postLatestMessageTimestamp,\n               (SELECT COUNT(*)\n                  FROM DiscussionPost DiscussionPostReplies\n                 WHERE DiscussionPostReplies.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n                   AND NOT DiscussionPostReplies.dpDeleted\n               ) AS postRepliesCount\n          FROM DiscussionPost\n               LEFT JOIN DiscussionPost AS MostRecentReply\n                         ON MostRecentReply.discussionPostUid = \n                            (SELECT MostRecentReplyInner.discussionPostUid\n                               FROM DiscussionPost AS MostRecentReplyInner\n                              WHERE MostRecentReplyInner.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n                           ORDER BY MostRecentReplyInner.discussionPostStartDate DESC\n                              LIMIT 1  \n                            )\n               LEFT JOIN Person \n                         ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n         WHERE DiscussionPost.discussionPostCourseBlockUid = ?\n           AND DiscussionPost.discussionPostReplyToPostUid = 0\n           AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1)\n      ORDER BY DiscussionPost.discussionPostStartDate DESC          \n    ) AS _PagingData LIMIT ? OFFSET ?\n', true);
    return prepareAndUseStatementAsync(this.bec_1.neb_1, tmp, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda_0(this.cec_1, this.dec_1, _limit, _offset, null), $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1).j5p = function (_limit, _offset, $completion) {
    return this.eec(_limit, _offset, $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n        SELECT DiscussionPost.*,\n               Person.firstNames as authorPersonFirstNames,\n               Person.lastName as authorPersonLastName,\n               PersonPicture.personPictureThumbnailUri AS authorPictureUri,\n               MostRecentReply.discussionPostMessage AS postLatestMessage,\n               COALESCE(MostRecentReply.discussionPostStartDate, 0) AS postLatestMessageTimestamp,\n               (SELECT COUNT(*)\n                  FROM DiscussionPost DiscussionPostReplies\n                 WHERE DiscussionPostReplies.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n                   AND NOT DiscussionPostReplies.dpDeleted\n               ) AS postRepliesCount\n          FROM DiscussionPost\n               LEFT JOIN DiscussionPost AS MostRecentReply\n                         ON MostRecentReply.discussionPostUid = \n                            (SELECT MostRecentReplyInner.discussionPostUid\n                               FROM DiscussionPost AS MostRecentReplyInner\n                              WHERE MostRecentReplyInner.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n                           ORDER BY MostRecentReplyInner.discussionPostStartDate DESC\n                              LIMIT 1  \n                            )\n               LEFT JOIN Person \n                         ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n         WHERE DiscussionPost.discussionPostCourseBlockUid = CAST(? AS BIGINT)\n           AND DiscussionPost.discussionPostReplyToPostUid = 0\n           AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1)\n      ORDER BY DiscussionPost.discussionPostStartDate DESC          \n    ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n        SELECT DiscussionPost.*,\n               Person.firstNames as authorPersonFirstNames,\n               Person.lastName as authorPersonLastName,\n               PersonPicture.personPictureThumbnailUri AS authorPictureUri,\n               MostRecentReply.discussionPostMessage AS postLatestMessage,\n               COALESCE(MostRecentReply.discussionPostStartDate, 0) AS postLatestMessageTimestamp,\n               (SELECT COUNT(*)\n                  FROM DiscussionPost DiscussionPostReplies\n                 WHERE DiscussionPostReplies.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n                   AND NOT DiscussionPostReplies.dpDeleted\n               ) AS postRepliesCount\n          FROM DiscussionPost\n               LEFT JOIN DiscussionPost AS MostRecentReply\n                         ON MostRecentReply.discussionPostUid = \n                            (SELECT MostRecentReplyInner.discussionPostUid\n                               FROM DiscussionPost AS MostRecentReplyInner\n                              WHERE MostRecentReplyInner.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n                           ORDER BY MostRecentReplyInner.discussionPostStartDate DESC\n                              LIMIT 1  \n                            )\n               LEFT JOIN Person \n                         ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n         WHERE DiscussionPost.discussionPostCourseBlockUid = ?\n           AND DiscussionPost.discussionPostReplyToPostUid = 0\n           AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1)\n      ORDER BY DiscussionPost.discussionPostStartDate DESC          \n    ) AS _PagingCount\n', true);
    return prepareAndUseStatementAsync(this.bec_1.neb_1, tmp, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda_0(this.cec_1, this.dec_1, null), $completion);
  };
  function DiscussionPostDao_JdbcImpl$findByUid$slambda($uid, resultContinuation) {
    this.nec_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_JdbcImpl$findByUid$slambda).pec = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_JdbcImpl$findByUid$slambda).he = function (p1, $completion) {
    return this.pec((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl$findByUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.oec_1.i5h(1, this.nec_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.oec_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$findByUid$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(DiscussionPostDao_JdbcImpl$findByUid$slambda).z5e = function (_stmt, completion) {
    var i = new DiscussionPostDao_JdbcImpl$findByUid$slambda(this.nec_1, completion);
    i.oec_1 = _stmt;
    return i;
  };
  function DiscussionPostDao_JdbcImpl$findByUid$slambda_0($uid, resultContinuation) {
    var i = new DiscussionPostDao_JdbcImpl$findByUid$slambda($uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.pec(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda(this$0, $uid, resultContinuation) {
    this.yec_1 = this$0;
    this.zec_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda).x8p = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda).z77 = function ($completion) {
    return this.x8p($completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT DiscussionPost.discussionPostTitle\n          FROM DiscussionPost\n         WHERE DiscussionPost.discussionPostUid = CAST(? AS BIGINT)\n    ', VOID, VOID, VOID, '\n        SELECT DiscussionPost.discussionPostTitle\n          FROM DiscussionPost\n         WHERE DiscussionPost.discussionPostUid = ?\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.yec_1.neb_1, tmp_0, DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda_0(this.zec_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda).y77 = function (completion) {
    return new DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda(this.yec_1, this.zec_1, completion);
  };
  function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda_0(this$0, $uid, resultContinuation) {
    var i = new DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda(this$0, $uid, resultContinuation);
    var l = function ($completion) {
      return i.x8p($completion);
    };
    l.$arity = 0;
    return l;
  }
  function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1(this$0, $postUid, $includeDeleted) {
    this.ged_1 = this$0;
    this.hed_1 = $postUid;
    this.ied_1 = $includeDeleted;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['Person', 'PersonPicture', 'DiscussionPost'];
    DoorLimitOffsetPagingSource.call(this, this$0.neb_1, tmp$ret$2);
  }
  protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1).jed = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM (\n        SELECT DiscussionPost.*,\n               Person.firstNames,\n               Person.lastName,\n               PersonPicture.personPictureThumbnailUri AS personPictureUri\n          FROM DiscussionPost\n               LEFT JOIN Person\n                         ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n         WHERE (DiscussionPost.discussionPostUid = CAST(? AS BIGINT)\n                 OR DiscussionPost.discussionPostReplyToPostUid= CAST(? AS BIGINT))\n           AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1)      \n            -- Always get the starting post first, followed by replies\n      ORDER BY CASE(DiscussionPost.discussionPostReplyToPostUid)\n               WHEN 0 THEN 0\n               ELSE 1 END ASC,\n               DiscussionPost.discussionPostStartDate DESC \n    ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n        SELECT DiscussionPost.*,\n               Person.firstNames,\n               Person.lastName,\n               PersonPicture.personPictureThumbnailUri AS personPictureUri\n          FROM DiscussionPost\n               LEFT JOIN Person\n                         ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n         WHERE (DiscussionPost.discussionPostUid = ?\n                 OR DiscussionPost.discussionPostReplyToPostUid= ?)\n           AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1)      \n            -- Always get the starting post first, followed by replies\n      ORDER BY CASE(DiscussionPost.discussionPostReplyToPostUid)\n               WHEN 0 THEN 0\n               ELSE 1 END ASC,\n               DiscussionPost.discussionPostStartDate DESC \n    ) AS _PagingData LIMIT ? OFFSET ?\n', true);
    return prepareAndUseStatementAsync(this.ged_1.neb_1, tmp, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda_0(this.hed_1, this.ied_1, _limit, _offset, null), $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1).j5p = function (_limit, _offset, $completion) {
    return this.jed(_limit, _offset, $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n        SELECT DiscussionPost.*,\n               Person.firstNames,\n               Person.lastName,\n               PersonPicture.personPictureThumbnailUri AS personPictureUri\n          FROM DiscussionPost\n               LEFT JOIN Person\n                         ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n         WHERE (DiscussionPost.discussionPostUid = CAST(? AS BIGINT)\n                 OR DiscussionPost.discussionPostReplyToPostUid= CAST(? AS BIGINT))\n           AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1)      \n            -- Always get the starting post first, followed by replies\n      ORDER BY CASE(DiscussionPost.discussionPostReplyToPostUid)\n               WHEN 0 THEN 0\n               ELSE 1 END ASC,\n               DiscussionPost.discussionPostStartDate DESC \n    ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n        SELECT DiscussionPost.*,\n               Person.firstNames,\n               Person.lastName,\n               PersonPicture.personPictureThumbnailUri AS personPictureUri\n          FROM DiscussionPost\n               LEFT JOIN Person\n                         ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n         WHERE (DiscussionPost.discussionPostUid = ?\n                 OR DiscussionPost.discussionPostReplyToPostUid= ?)\n           AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1)      \n            -- Always get the starting post first, followed by replies\n      ORDER BY CASE(DiscussionPost.discussionPostReplyToPostUid)\n               WHEN 0 THEN 0\n               ELSE 1 END ASC,\n               DiscussionPost.discussionPostStartDate DESC \n    ) AS _PagingCount\n', true);
    return prepareAndUseStatementAsync(this.ged_1.neb_1, tmp, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda_0(this.hed_1, this.ied_1, null), $completion);
  };
  function DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda($deleted, $updateTime, $uid, resultContinuation) {
    this.sed_1 = $deleted;
    this.ted_1 = $updateTime;
    this.ued_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ved_1.v5g(1, this.sed_1);
            this.ved_1.i5h(2, this.ted_1);
            this.ved_1.i5h(3, this.ued_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.ved_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda).z5e = function (_stmt, completion) {
    var i = new DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda(this.sed_1, this.ted_1, this.ued_1, completion);
    i.ved_1 = _stmt;
    return i;
  };
  function DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda_0($deleted, $updateTime, $uid, resultContinuation) {
    var i = new DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda($deleted, $updateTime, $uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$231(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.eee_1 = _this__u8e3s4;
    this.fee_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$231).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.eee_1.peb_1.j5g(this.fee_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $setDeletedAsyncCOROUTINE$233(_this__u8e3s4, uid, deleted, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.oee_1 = _this__u8e3s4;
    this.pee_1 = uid;
    this.qee_1 = deleted;
    this.ree_1 = updateTime;
  }
  protoOf($setDeletedAsyncCOROUTINE$233).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE DiscussionPost\n           SET dpDeleted = ?,\n               discussionPostLct = CAST(? AS BIGINT)\n         WHERE discussionPostUid = CAST(? AS BIGINT)   \n    ', VOID, VOID, VOID, '\n        UPDATE DiscussionPost\n           SET dpDeleted = ?,\n               discussionPostLct = ?\n         WHERE discussionPostUid = ?   \n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.oee_1.neb_1, tmp_0, DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda_0(this.qee_1, this.ree_1, this.pee_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function DiscussionPostDao_JdbcImpl(_db) {
    DiscussionPostDao.call(this);
    this.neb_1 = _db;
    var tmp = this;
    tmp.oeb_1 = new DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1(this);
    var tmp_0 = this;
    tmp_0.peb_1 = new DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1(this);
  }
  protoOf(DiscussionPostDao_JdbcImpl).ue6 = function (entity, $completion) {
    return this.oeb_1.i5g(entity, $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl).ie8 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$231(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.ie8(entity instanceof DiscussionPost ? entity : THROW_CCE(), $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl).re6 = function (courseBlockUid, includeDeleted) {
    return new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1(this, courseBlockUid, includeDeleted);
  };
  protoOf(DiscussionPostDao_JdbcImpl).se6 = function (uid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT * \n         FROM DiscussionPost\n        WHERE DiscussionPost.discussionPostUid = CAST(? AS BIGINT)\n    ', VOID, VOID, VOID, '\n        SELECT * \n         FROM DiscussionPost\n        WHERE DiscussionPost.discussionPostUid = ?\n    \n', true);
    return prepareAndUseStatementAsync(this.neb_1, tmp, DiscussionPostDao_JdbcImpl$findByUid$slambda_0(uid, null), $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl).c8c = function (uid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['DiscussionPost'];
    return doorFlow(this.neb_1, tmp, DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda_0(this, uid, null));
  };
  protoOf(DiscussionPostDao_JdbcImpl).te6 = function (postUid, includeDeleted) {
    return new DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1(this, postUid, includeDeleted);
  };
  protoOf(DiscussionPostDao_JdbcImpl).ve6 = function (uid, deleted, updateTime, $completion) {
    var tmp = new $setDeletedAsyncCOROUTINE$233(this, uid, deleted, updateTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda(this$0, $courseBlockUid, $includeDeleted, resultContinuation) {
    this.aef_1 = this$0;
    this.bef_1 = $courseBlockUid;
    this.cef_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda).k85 = function (_pagingParams, $completion) {
    var tmp = this.l85(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda).he = function (p1, $completion) {
    return this.k85(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            var tmp_0 = this;
            tmp_0.fef_1 = this.aef_1.oef_1;
            var tmp_1 = this;
            tmp_1.gef_1 = 'DiscussionPostDao/getTopLevelPostsByCourseBlockUid';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.hef_1 = this.aef_1.qef_1;
            var tmp_3 = this;
            tmp_3.ief_1 = this.hef_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.aef_1.oef_1.w38(), 'DiscussionPostDao/getTopLevelPostsByCourseBlockUid');
            doorNodeIdHeader(this_0, this.aef_1.oef_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'courseBlockUid', this.aef_1.oef_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.bef_1));
            parameter(this_0, 'includeDeleted', this.aef_1.oef_1.w38().k65_1.e45(serializer_2(BooleanCompanionObject_instance), this.cef_1));
            pagingSourceLoadParameters(this_0, this.aef_1.oef_1.w38().k65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.def_1);
            tmp_4.jef_1 = this_0;
            this.jef_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.kef_1 = this.ief_1;
            var tmp_6 = this;
            tmp_6.lef_1 = this.jef_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.lef_1, this.kef_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.mef_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.aef_1.nef_1, this.mef_1, this.aef_1.oef_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.eef_1 = endOfPaginationReached(this.mef_1);
            this.id_1 = 5;
            this.hd_1 = 7;
            continue $sm;
          case 4:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda$lambda(this.fef_1, this.gef_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 5:
            throw this.kd_1;
          case 6:
            this.id_1 = 5;
            if (false) {
              this.hd_1 = 1;
              continue $sm;
            }

            this.hd_1 = 7;
            continue $sm;
          case 7:
            return this.eef_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda).l85 = function (_pagingParams, completion) {
    var i = new DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda(this.aef_1, this.bef_1, this.cef_1, completion);
    i.def_1 = _pagingParams;
    return i;
  };
  function DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda_0(this$0, $courseBlockUid, $includeDeleted, resultContinuation) {
    var i = new DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda(this$0, $courseBlockUid, $includeDeleted, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.k85(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda(this$0, $postUid, $includeDeleted, resultContinuation) {
    this.beg_1 = this$0;
    this.ceg_1 = $postUid;
    this.deg_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda).k85 = function (_pagingParams, $completion) {
    var tmp = this.l85(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda).he = function (p1, $completion) {
    return this.k85(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            var tmp_0 = this;
            tmp_0.geg_1 = this.beg_1.oef_1;
            var tmp_1 = this;
            tmp_1.heg_1 = 'DiscussionPostDao/findByPostIdWithAllReplies';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.ieg_1 = this.beg_1.qef_1;
            var tmp_3 = this;
            tmp_3.jeg_1 = this.ieg_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.beg_1.oef_1.w38(), 'DiscussionPostDao/findByPostIdWithAllReplies');
            doorNodeIdHeader(this_0, this.beg_1.oef_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'postUid', this.beg_1.oef_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ceg_1));
            parameter(this_0, 'includeDeleted', this.beg_1.oef_1.w38().k65_1.e45(serializer_2(BooleanCompanionObject_instance), this.deg_1));
            pagingSourceLoadParameters(this_0, this.beg_1.oef_1.w38().k65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.eeg_1);
            tmp_4.keg_1 = this_0;
            this.keg_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.leg_1 = this.jeg_1;
            var tmp_6 = this;
            tmp_6.meg_1 = this.keg_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.meg_1, this.leg_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.neg_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.beg_1.nef_1, this.neg_1, this.beg_1.oef_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.feg_1 = endOfPaginationReached(this.neg_1);
            this.id_1 = 5;
            this.hd_1 = 7;
            continue $sm;
          case 4:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda$lambda(this.geg_1, this.heg_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 5:
            throw this.kd_1;
          case 6:
            this.id_1 = 5;
            if (false) {
              this.hd_1 = 1;
              continue $sm;
            }

            this.hd_1 = 7;
            continue $sm;
          case 7:
            return this.feg_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda).l85 = function (_pagingParams, completion) {
    var i = new DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda(this.beg_1, this.ceg_1, this.deg_1, completion);
    i.eeg_1 = _pagingParams;
    return i;
  };
  function DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda_0(this$0, $postUid, $includeDeleted, resultContinuation) {
    var i = new DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda(this$0, $postUid, $includeDeleted, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.k85(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DiscussionPostDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation) {
    this.weg_1 = this$0;
    this.xeg_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_Repo$upsertAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_Repo$upsertAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(DiscussionPostDao_Repo$upsertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.weg_1.pef_1.ue6(this.xeg_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(DiscussionPostDao_Repo$upsertAsync$slambda).y77 = function (completion) {
    return new DiscussionPostDao_Repo$upsertAsync$slambda(this.weg_1, this.xeg_1, completion);
  };
  function DiscussionPostDao_Repo$upsertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new DiscussionPostDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function DiscussionPostDao_Repo$setDeletedAsync$slambda(this$0, $uid, $deleted, $updateTime, resultContinuation) {
    this.geh_1 = this$0;
    this.heh_1 = $uid;
    this.ieh_1 = $deleted;
    this.jeh_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_Repo$setDeletedAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_Repo$setDeletedAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(DiscussionPostDao_Repo$setDeletedAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.geh_1.pef_1.ve6(this.heh_1, this.ieh_1, this.jeh_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(DiscussionPostDao_Repo$setDeletedAsync$slambda).y77 = function (completion) {
    return new DiscussionPostDao_Repo$setDeletedAsync$slambda(this.geh_1, this.heh_1, this.ieh_1, this.jeh_1, completion);
  };
  function DiscussionPostDao_Repo$setDeletedAsync$slambda_0(this$0, $uid, $deleted, $updateTime, resultContinuation) {
    var i = new DiscussionPostDao_Repo$setDeletedAsync$slambda(this$0, $uid, $deleted, $updateTime, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function DiscussionPostDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.seh_1 = this$0;
    this.teh_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(DiscussionPostDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.seh_1.pef_1.insertAsync(this.teh_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(DiscussionPostDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new DiscussionPostDao_Repo$insertAsync$slambda(this.seh_1, this.teh_1, completion);
  };
  function DiscussionPostDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new DiscussionPostDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByUidCOROUTINE$237(_this__u8e3s4, uid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.cei_1 = _this__u8e3s4;
    this.dei_1 = uid;
  }
  protoOf($findByUidCOROUTINE$237).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.cei_1.pef_1.se6(this.dei_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$240(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.mei_1 = _this__u8e3s4;
    this.nei_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$240).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.mei_1.oef_1, 'DiscussionPost', DiscussionPostDao_Repo$insertAsync$slambda_0(this.mei_1, this.nei_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function DiscussionPostDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    DiscussionPostDao.call(this);
    this.nef_1 = _db;
    this.oef_1 = _repo;
    this.pef_1 = _dao;
    this.qef_1 = _httpClient;
    this.ref_1 = _clientId;
    this.sef_1 = _endpoint;
  }
  protoOf(DiscussionPostDao_Repo).re6 = function (courseBlockUid, includeDeleted) {
    var tmp = this.pef_1.re6(courseBlockUid, includeDeleted);
    return new DoorRepositoryReplicatePullPagingSource(this.oef_1, 'DiscussionPostDao/getTopLevelPostsByCourseBlockUid', tmp, DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda_0(this, courseBlockUid, includeDeleted, null));
  };
  protoOf(DiscussionPostDao_Repo).se6 = function (uid, $completion) {
    var tmp = new $findByUidCOROUTINE$237(this, uid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_Repo).c8c = function (uid) {
    var _result = this.pef_1.c8c(uid);
    return _result;
  };
  protoOf(DiscussionPostDao_Repo).te6 = function (postUid, includeDeleted) {
    var tmp = this.pef_1.te6(postUid, includeDeleted);
    return new DoorRepositoryReplicatePullPagingSource(this.oef_1, 'DiscussionPostDao/findByPostIdWithAllReplies', tmp, DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda_0(this, postUid, includeDeleted, null));
  };
  protoOf(DiscussionPostDao_Repo).ue6 = function (entity, $completion) {
    return withRepoChangeMonitorAsync(this.oef_1, 'DiscussionPost', DiscussionPostDao_Repo$upsertAsync$slambda_0(this, entity, null), $completion);
  };
  protoOf(DiscussionPostDao_Repo).ve6 = function (uid, deleted, updateTime, $completion) {
    return withRepoChangeMonitorAsync(this.oef_1, 'DiscussionPost', DiscussionPostDao_Repo$setDeletedAsync$slambda_0(this, uid, deleted, updateTime, null), $completion);
  };
  protoOf(DiscussionPostDao_Repo).ie8 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$240(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_Repo).insertAsync = function (entity, $completion) {
    return this.ie8(entity instanceof DiscussionPost ? entity : THROW_CCE(), $completion);
  };
  function EnrolmentRequestDao() {
  }
  function $insertCOROUTINE$241(_this__u8e3s4, enrolmentRequest, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.bej_1 = _this__u8e3s4;
    this.cej_1 = enrolmentRequest;
  }
  protoOf($insertCOROUTINE$241).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.dej_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.bej_1.fej_1));
            if (this.cej_1.hej_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.dej_1.b62(10070, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.eej_1 = suspendResult;
            this.cej_1.hej_1 = this.eej_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.cej_1.uej_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.bej_1.gej_1.oei(this.cej_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return Unit_instance;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function EnrolmentRequestDao_DoorWrapper(_db, _dao) {
    EnrolmentRequestDao.call(this);
    this.fej_1 = _db;
    this.gej_1 = _dao;
  }
  protoOf(EnrolmentRequestDao_DoorWrapper).oei = function (enrolmentRequest, $completion) {
    var tmp = new $insertCOROUTINE$241(this, enrolmentRequest, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_DoorWrapper).pei = function (personUid, clazzUid, $completion) {
    return this.gej_1.pei(personUid, clazzUid, $completion);
  };
  protoOf(EnrolmentRequestDao_DoorWrapper).qei = function (accountPersonUid, statusFilter) {
    return this.gej_1.qei(accountPersonUid, statusFilter);
  };
  protoOf(EnrolmentRequestDao_DoorWrapper).rei = function (uid, status, updateTime, $completion) {
    return this.gej_1.rei(uid, status, updateTime, $completion);
  };
  protoOf(EnrolmentRequestDao_DoorWrapper).sei = function (clazzUid, includeDeleted, statusFilter, searchText, sortOrder) {
    return this.gej_1.sei(clazzUid, includeDeleted, statusFilter, searchText, sortOrder);
  };
  function EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda$lambda(_result) {
    return mapNextRow(_result, false, EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda$lambda$lambda(_result));
  }
  function EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.a74(1);
    };
  }
  function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda$lambda(_result) {
    return mapRows(_result, EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_EnrolmentRequest_nullCount = 0;
      var _tmp_erUid = $_result.l5m('erUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_erClazzUid = $_result.l5m('erClazzUid');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_erClazzName = $_result.rz('erClazzName');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_erPersonUid = $_result.l5m('erPersonUid');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_erPersonFullname = $_result.rz('erPersonFullname');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_erPersonPictureUri = $_result.rz('erPersonPictureUri');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_erPersonUsername = $_result.rz('erPersonUsername');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_erRole = $_result.k5m('erRole');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_erRequestTime = $_result.l5m('erRequestTime');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_erStatus = $_result.k5m('erStatus');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_erStatusSetByPersonUid = $_result.l5m('erStatusSetByPersonUid');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_erDeleted = $_result.w65('erDeleted');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_erStatusSetAuth = $_result.rz('erStatusSetAuth');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_erLastModified = $_result.l5m('erLastModified');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_EnrolmentRequest_isAllNull = _tmp_EnrolmentRequest_nullCount === 14;
      var _tmp_CoursePicture_nullCount = 0;
      var _tmp_coursePictureUid = $_result.l5m('coursePictureUid');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_coursePictureLct = $_result.l5m('coursePictureLct');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_coursePictureUri = $_result.rz('coursePictureUri');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_coursePictureThumbnailUri = $_result.rz('coursePictureThumbnailUri');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_coursePictureActive = $_result.w65('coursePictureActive');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_CoursePicture_isAllNull = _tmp_CoursePicture_nullCount === 5;
      // Inline function 'kotlin.apply' call
      var this_0 = new EnrolmentRequestAndCoursePic();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.EnrolmentRequestDao_JdbcImpl.findRequestsForUserAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_EnrolmentRequest_isAllNull) {
        var tmp_18 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new EnrolmentRequest();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.EnrolmentRequestDao_JdbcImpl.findRequestsForUserAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.hej_1 = _tmp_erUid;
        this_1.iej_1 = _tmp_erClazzUid;
        this_1.jej_1 = _tmp_erClazzName;
        this_1.kej_1 = _tmp_erPersonUid;
        this_1.lej_1 = _tmp_erPersonFullname;
        this_1.mej_1 = _tmp_erPersonPictureUri;
        this_1.nej_1 = _tmp_erPersonUsername;
        this_1.oej_1 = _tmp_erRole;
        this_1.pej_1 = _tmp_erRequestTime;
        this_1.qej_1 = _tmp_erStatus;
        this_1.rej_1 = _tmp_erStatusSetByPersonUid;
        this_1.sej_1 = _tmp_erDeleted;
        this_1.tej_1 = _tmp_erStatusSetAuth;
        this_1.uej_1 = _tmp_erLastModified;
        tmp_18.vej_1 = this_1;
      }
      if (!_tmp_CoursePicture_isAllNull) {
        var tmp_19 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new CoursePicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.EnrolmentRequestDao_JdbcImpl.findRequestsForUserAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.t8f_1 = _tmp_coursePictureUid;
        this_2.u8f_1 = _tmp_coursePictureLct;
        this_2.v8f_1 = _tmp_coursePictureUri;
        this_2.w8f_1 = _tmp_coursePictureThumbnailUri;
        this_2.x8f_1 = _tmp_coursePictureActive;
        tmp_19.wej_1 = this_2;
      }
      return this_0;
    };
  }
  function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda($accountPersonUid, $statusFilter, resultContinuation) {
    this.fek_1 = $accountPersonUid;
    this.gek_1 = $statusFilter;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda).iek = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.iek((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hek_1.i5h(1, this.fek_1);
            this.hek_1.h5h(2, this.gek_1);
            this.hek_1.h5h(3, this.gek_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.hek_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda(this.fek_1, this.gek_1, completion);
    i.hek_1 = _stmt;
    return i;
  };
  function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda_0($accountPersonUid, $statusFilter, resultContinuation) {
    var i = new EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda($accountPersonUid, $statusFilter, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.iek(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda$lambda$lambda(_result));
  }
  function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_EnrolmentRequest_nullCount = 0;
      var _tmp_erUid = $_result.l5m('erUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_erClazzUid = $_result.l5m('erClazzUid');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_erClazzName = $_result.rz('erClazzName');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_erPersonUid = $_result.l5m('erPersonUid');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_erPersonFullname = $_result.rz('erPersonFullname');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_erPersonPictureUri = $_result.rz('erPersonPictureUri');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_erPersonUsername = $_result.rz('erPersonUsername');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_erRole = $_result.k5m('erRole');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_erRequestTime = $_result.l5m('erRequestTime');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_erStatus = $_result.k5m('erStatus');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_erStatusSetByPersonUid = $_result.l5m('erStatusSetByPersonUid');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_erDeleted = $_result.w65('erDeleted');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_erStatusSetAuth = $_result.rz('erStatusSetAuth');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_erLastModified = $_result.l5m('erLastModified');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_EnrolmentRequest_isAllNull = _tmp_EnrolmentRequest_nullCount === 14;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.l5m('personPictureUid');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.l5m('personPictureLct');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_fileSize = $_result.k5m('fileSize');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.w65('personPictureActive');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6;
      var _tmp_Person_nullCount = 0;
      var _tmp_personUid = $_result.l5m('personUid');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_gender = $_result.k5m('gender');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_active = $_result.w65('active');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.l5m('dateOfBirth');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.l5m('personGroupUid');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_personLct = $_result.l5m('personLct');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_personType = $_result.k5m('personType');
      var tmp_33;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.l5m('personMasterChangeSeqNum');
      var tmp_34;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.l5m('personLocalChangeSeqNum');
      var tmp_35;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.k5m('personLastChangedBy');
      var tmp_36;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_admin = $_result.w65('admin');
      var tmp_37;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_38;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_39;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_40;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_41;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_42;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24;
      // Inline function 'kotlin.apply' call
      var this_0 = new EnrolmentRequestAndPersonDetails();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_EnrolmentRequest_isAllNull) {
        var tmp_43 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new EnrolmentRequest();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.hej_1 = _tmp_erUid;
        this_1.iej_1 = _tmp_erClazzUid;
        this_1.jej_1 = _tmp_erClazzName;
        this_1.kej_1 = _tmp_erPersonUid;
        this_1.lej_1 = _tmp_erPersonFullname;
        this_1.mej_1 = _tmp_erPersonPictureUri;
        this_1.nej_1 = _tmp_erPersonUsername;
        this_1.oej_1 = _tmp_erRole;
        this_1.pej_1 = _tmp_erRequestTime;
        this_1.qej_1 = _tmp_erStatus;
        this_1.rej_1 = _tmp_erStatusSetByPersonUid;
        this_1.sej_1 = _tmp_erDeleted;
        this_1.tej_1 = _tmp_erStatusSetAuth;
        this_1.uej_1 = _tmp_erLastModified;
        tmp_43.jek_1 = this_1;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_44 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new PersonPicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.d96_1 = _tmp_personPictureUid;
        this_2.e96_1 = _tmp_personPictureLct;
        this_2.f96_1 = _tmp_personPictureUri;
        this_2.g96_1 = _tmp_personPictureThumbnailUri;
        this_2.h96_1 = _tmp_fileSize;
        this_2.i96_1 = _tmp_personPictureActive;
        tmp_44.kek_1 = this_2;
      }
      if (!_tmp_Person_isAllNull) {
        var tmp_45 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new Person();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.f95_1 = _tmp_personUid;
        this_3.g95_1 = _tmp_username;
        this_3.h95_1 = _tmp_firstNames;
        this_3.i95_1 = _tmp_lastName;
        this_3.j95_1 = _tmp_emailAddr;
        this_3.k95_1 = _tmp_phoneNum;
        this_3.l95_1 = _tmp_gender;
        this_3.m95_1 = _tmp_active;
        this_3.n95_1 = _tmp_dateOfBirth;
        this_3.o95_1 = _tmp_personAddress;
        this_3.p95_1 = _tmp_personOrgId;
        this_3.q95_1 = _tmp_personGroupUid;
        this_3.r95_1 = _tmp_personLct;
        this_3.s95_1 = _tmp_personCountry;
        this_3.t95_1 = _tmp_personType;
        this_3.u95_1 = _tmp_personMasterChangeSeqNum;
        this_3.v95_1 = _tmp_personLocalChangeSeqNum;
        this_3.w95_1 = _tmp_personLastChangedBy;
        this_3.x95_1 = _tmp_admin;
        this_3.y95_1 = _tmp_personNotes;
        this_3.z95_1 = _tmp_fatherName;
        this_3.a96_1 = _tmp_fatherNumber;
        this_3.b96_1 = _tmp_motherName;
        this_3.c96_1 = _tmp_motherNum;
        tmp_45.lek_1 = this_3;
      }
      return this_0;
    };
  }
  function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda$lambda$lambda(_result));
  }
  function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) {
    this.uek_1 = $clazzUid;
    this.vek_1 = $statusFilter;
    this.wek_1 = $includeDeleted;
    this.xek_1 = $searchText;
    this.yek_1 = $sortOrder;
    this.zek_1 = $_limit;
    this.ael_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda).cel = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda).he = function (p1, $completion) {
    return this.cel((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.bel_1.i5h(1, this.uek_1);
            this.bel_1.h5h(2, this.vek_1);
            this.bel_1.h5h(3, this.vek_1);
            this.bel_1.v5g(4, this.wek_1);
            this.bel_1.l5h(5, this.xek_1);
            this.bel_1.l5h(6, this.xek_1);
            this.bel_1.h5h(7, this.yek_1);
            this.bel_1.h5h(8, this.yek_1);
            this.bel_1.h5h(9, this.yek_1);
            this.bel_1.h5h(10, this.yek_1);
            this.bel_1.h5h(11, this.zek_1);
            this.bel_1.h5h(12, this.ael_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.bel_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda(this.uek_1, this.vek_1, this.wek_1, this.xek_1, this.yek_1, this.zek_1, this.ael_1, completion);
    i.bel_1 = _stmt;
    return i;
  };
  function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda_0($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) {
    var i = new EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.cel(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, resultContinuation) {
    this.lel_1 = $clazzUid;
    this.mel_1 = $statusFilter;
    this.nel_1 = $includeDeleted;
    this.oel_1 = $searchText;
    this.pel_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.qel_1.i5h(1, this.lel_1);
            this.qel_1.h5h(2, this.mel_1);
            this.qel_1.h5h(3, this.mel_1);
            this.qel_1.v5g(4, this.nel_1);
            this.qel_1.l5h(5, this.oel_1);
            this.qel_1.l5h(6, this.oel_1);
            this.qel_1.h5h(7, this.pel_1);
            this.qel_1.h5h(8, this.pel_1);
            this.qel_1.h5h(9, this.pel_1);
            this.qel_1.h5h(10, this.pel_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.qel_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda(this.lel_1, this.mel_1, this.nel_1, this.oel_1, this.pel_1, completion);
    i.qel_1 = _stmt;
    return i;
  };
  function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda_0($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, resultContinuation) {
    var i = new EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.rel_1);
  }
  protoOf(EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO EnrolmentRequest (erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1).vel = function (stmt, entity) {
    if (entity.hej_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.hej_1);
    }
    stmt.i5h(2, entity.iej_1);
    stmt.l5h(3, entity.jej_1);
    stmt.i5h(4, entity.kej_1);
    stmt.l5h(5, entity.lej_1);
    stmt.l5h(6, entity.mej_1);
    stmt.l5h(7, entity.nej_1);
    stmt.h5h(8, entity.oej_1);
    stmt.i5h(9, entity.pej_1);
    stmt.h5h(10, entity.qej_1);
    stmt.i5h(11, entity.rej_1);
    stmt.v5g(12, entity.sej_1);
    stmt.l5h(13, entity.tej_1);
    stmt.i5h(14, entity.uej_1);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1).c5f = function (stmt, entity) {
    return this.vel(stmt, entity instanceof EnrolmentRequest ? entity : THROW_CCE());
  };
  function EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda($personUid, $clazzUid, resultContinuation) {
    this.eem_1 = $personUid;
    this.fem_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda).m9s = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda).he = function (p1, $completion) {
    return this.m9s((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.gem_1.i5h(1, this.eem_1);
            this.gem_1.i5h(2, this.fem_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.gem_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda).z5e = function (_stmt, completion) {
    var i = new EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda(this.eem_1, this.fem_1, completion);
    i.gem_1 = _stmt;
    return i;
  };
  function EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda_0($personUid, $clazzUid, resultContinuation) {
    var i = new EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda($personUid, $clazzUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.m9s(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda(this$0, $accountPersonUid, $statusFilter, resultContinuation) {
    this.pem_1 = this$0;
    this.qem_1 = $accountPersonUid;
    this.rem_1 = $statusFilter;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda).sem = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda).z77 = function ($completion) {
    return this.sem($completion);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT EnrolmentRequest.*, CoursePicture.*\n          FROM EnrolmentRequest\n               LEFT JOIN CoursePicture\n                         ON CoursePicture.coursePictureUid = EnrolmentRequest.erClazzUid\n         WHERE EnrolmentRequest.erPersonUid = CAST(? AS BIGINT) \n           AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n    ', VOID, VOID, VOID, '\n        SELECT EnrolmentRequest.*, CoursePicture.*\n          FROM EnrolmentRequest\n               LEFT JOIN CoursePicture\n                         ON CoursePicture.coursePictureUid = EnrolmentRequest.erClazzUid\n         WHERE EnrolmentRequest.erPersonUid = ? \n           AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.pem_1.rel_1, tmp_0, EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda_0(this.qem_1, this.rem_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda).y77 = function (completion) {
    return new EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda(this.pem_1, this.qem_1, this.rem_1, completion);
  };
  function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda_0(this$0, $accountPersonUid, $statusFilter, resultContinuation) {
    var i = new EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda(this$0, $accountPersonUid, $statusFilter, resultContinuation);
    var l = function ($completion) {
      return i.sem($completion);
    };
    l.$arity = 0;
    return l;
  }
  function EnrolmentRequestDao_JdbcImpl$updateStatus$slambda($status, $updateTime, $uid, resultContinuation) {
    this.ben_1 = $status;
    this.cen_1 = $updateTime;
    this.den_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_JdbcImpl$updateStatus$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$updateStatus$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$updateStatus$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.een_1.h5h(1, this.ben_1);
            this.een_1.i5h(2, this.cen_1);
            this.een_1.i5h(3, this.den_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.een_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$updateStatus$slambda).z5e = function (_stmt, completion) {
    var i = new EnrolmentRequestDao_JdbcImpl$updateStatus$slambda(this.ben_1, this.cen_1, this.den_1, completion);
    i.een_1 = _stmt;
    return i;
  };
  function EnrolmentRequestDao_JdbcImpl$updateStatus$slambda_0($status, $updateTime, $uid, resultContinuation) {
    var i = new EnrolmentRequestDao_JdbcImpl$updateStatus$slambda($status, $updateTime, $uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1(this$0, $clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder) {
    this.len_1 = this$0;
    this.men_1 = $clazzUid;
    this.nen_1 = $statusFilter;
    this.oen_1 = $includeDeleted;
    this.pen_1 = $searchText;
    this.qen_1 = $sortOrder;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['EnrolmentRequest', 'Person', 'PersonPicture'];
    DoorLimitOffsetPagingSource.call(this, this$0.rel_1, tmp$ret$2);
  }
  protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1).ren = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig("SELECT * FROM (\n        SELECT EnrolmentRequest.*, PersonPicture.*, Person.*\n          FROM EnrolmentRequest\n               JOIN Person\n                    ON Person.personUid = EnrolmentRequest.erPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = EnrolmentRequest.erPersonUid\n         WHERE EnrolmentRequest.erClazzUid = CAST(? AS BIGINT)\n           AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n           AND (CAST(? AS INTEGER) = 1 OR NOT EnrolmentRequest.erDeleted)\n           AND (? = '%' OR EnrolmentRequest.erPersonFullname LIKE ?)\n      ORDER BY CASE(?)\n                WHEN 1 THEN EnrolmentRequest.erPersonFullname\n                WHEN 3 THEN EnrolmentRequest.erPersonFullname\n                ELSE ''\n                END ASC,\n                CASE(?)\n                WHEN 2 THEN EnrolmentRequest.erPersonFullname\n                WHEN 4 THEN EnrolmentRequest.erPersonFullname\n                ELSE ''\n            END DESC,\n            CASE(?)\n                WHEN 7 THEN EnrolmentRequest.erRequestTime\n                ELSE 0\n            END ASC,\n            CASE(?)\n                WHEN 8 THEN EnrolmentRequest.erRequestTime\n                ELSE 0\n            END DESC     \n    ) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n        SELECT EnrolmentRequest.*, PersonPicture.*, Person.*\n          FROM EnrolmentRequest\n               JOIN Person\n                    ON Person.personUid = EnrolmentRequest.erPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = EnrolmentRequest.erPersonUid\n         WHERE EnrolmentRequest.erClazzUid = ?\n           AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n           AND (CAST(? AS INTEGER) = 1 OR NOT EnrolmentRequest.erDeleted)\n           AND (? = '%' OR EnrolmentRequest.erPersonFullname LIKE ?)\n      ORDER BY CASE(?)\n                WHEN 1 THEN EnrolmentRequest.erPersonFullname\n                WHEN 3 THEN EnrolmentRequest.erPersonFullname\n                ELSE ''\n                END ASC,\n                CASE(?)\n                WHEN 2 THEN EnrolmentRequest.erPersonFullname\n                WHEN 4 THEN EnrolmentRequest.erPersonFullname\n                ELSE ''\n            END DESC,\n            CASE(?)\n                WHEN 7 THEN EnrolmentRequest.erRequestTime\n                ELSE 0\n            END ASC,\n            CASE(?)\n                WHEN 8 THEN EnrolmentRequest.erRequestTime\n                ELSE 0\n            END DESC     \n    ) AS _PagingData LIMIT ? OFFSET ?\n", true);
    return prepareAndUseStatementAsync(this.len_1.rel_1, tmp, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda_0(this.men_1, this.nen_1, this.oen_1, this.pen_1, this.qen_1, _limit, _offset, null), $completion);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1).j5p = function (_limit, _offset, $completion) {
    return this.ren(_limit, _offset, $completion);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n        SELECT EnrolmentRequest.*, PersonPicture.*, Person.*\n          FROM EnrolmentRequest\n               JOIN Person\n                    ON Person.personUid = EnrolmentRequest.erPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = EnrolmentRequest.erPersonUid\n         WHERE EnrolmentRequest.erClazzUid = CAST(? AS BIGINT)\n           AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n           AND (CAST(? AS INTEGER) = 1 OR NOT EnrolmentRequest.erDeleted)\n           AND (? = '%' OR EnrolmentRequest.erPersonFullname LIKE ?)\n      ORDER BY CASE(?)\n                WHEN 1 THEN EnrolmentRequest.erPersonFullname\n                WHEN 3 THEN EnrolmentRequest.erPersonFullname\n                ELSE ''\n                END ASC,\n                CASE(?)\n                WHEN 2 THEN EnrolmentRequest.erPersonFullname\n                WHEN 4 THEN EnrolmentRequest.erPersonFullname\n                ELSE ''\n            END DESC,\n            CASE(?)\n                WHEN 7 THEN EnrolmentRequest.erRequestTime\n                ELSE 0\n            END ASC,\n            CASE(?)\n                WHEN 8 THEN EnrolmentRequest.erRequestTime\n                ELSE 0\n            END DESC     \n    ) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n        SELECT EnrolmentRequest.*, PersonPicture.*, Person.*\n          FROM EnrolmentRequest\n               JOIN Person\n                    ON Person.personUid = EnrolmentRequest.erPersonUid\n               LEFT JOIN PersonPicture\n                         ON PersonPicture.personPictureUid = EnrolmentRequest.erPersonUid\n         WHERE EnrolmentRequest.erClazzUid = ?\n           AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n           AND (CAST(? AS INTEGER) = 1 OR NOT EnrolmentRequest.erDeleted)\n           AND (? = '%' OR EnrolmentRequest.erPersonFullname LIKE ?)\n      ORDER BY CASE(?)\n                WHEN 1 THEN EnrolmentRequest.erPersonFullname\n                WHEN 3 THEN EnrolmentRequest.erPersonFullname\n                ELSE ''\n                END ASC,\n                CASE(?)\n                WHEN 2 THEN EnrolmentRequest.erPersonFullname\n                WHEN 4 THEN EnrolmentRequest.erPersonFullname\n                ELSE ''\n            END DESC,\n            CASE(?)\n                WHEN 7 THEN EnrolmentRequest.erRequestTime\n                ELSE 0\n            END ASC,\n            CASE(?)\n                WHEN 8 THEN EnrolmentRequest.erRequestTime\n                ELSE 0\n            END DESC     \n    ) AS _PagingCount\n", true);
    return prepareAndUseStatementAsync(this.len_1.rel_1, tmp, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda_0(this.men_1, this.nen_1, this.oen_1, this.pen_1, this.qen_1, null), $completion);
  };
  function $updateStatusCOROUTINE$242(_this__u8e3s4, uid, status, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.aeo_1 = _this__u8e3s4;
    this.beo_1 = uid;
    this.ceo_1 = status;
    this.deo_1 = updateTime;
  }
  protoOf($updateStatusCOROUTINE$242).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE EnrolmentRequest\n           SET erStatus = ?,\n               erLastModified = CAST(? AS BIGINT)\n         WHERE erUid = CAST(? AS BIGINT)      \n    ', VOID, VOID, VOID, '\n        UPDATE EnrolmentRequest\n           SET erStatus = ?,\n               erLastModified = ?\n         WHERE erUid = ?      \n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.aeo_1.rel_1, tmp_0, EnrolmentRequestDao_JdbcImpl$updateStatus$slambda_0(this.ceo_1, this.deo_1, this.beo_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function EnrolmentRequestDao_JdbcImpl(_db) {
    EnrolmentRequestDao.call(this);
    this.rel_1 = _db;
    var tmp = this;
    tmp.sel_1 = new EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1(this);
  }
  protoOf(EnrolmentRequestDao_JdbcImpl).oei = function (enrolmentRequest, $completion) {
    return this.sel_1.i5g(enrolmentRequest, $completion);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl).pei = function (personUid, clazzUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT EXISTS(\n               SELECT EnrolmentRequest.erUid\n                 FROM EnrolmentRequest\n                WHERE EnrolmentRequest.erPersonUid = CAST(? AS BIGINT)\n                  AND EnrolmentRequest.erClazzUid = CAST(? AS BIGINT)\n                  AND EnrolmentRequest.erStatus = 1)\n    ', VOID, VOID, VOID, '\n        SELECT EXISTS(\n               SELECT EnrolmentRequest.erUid\n                 FROM EnrolmentRequest\n                WHERE EnrolmentRequest.erPersonUid = ?\n                  AND EnrolmentRequest.erClazzUid = ?\n                  AND EnrolmentRequest.erStatus = 1)\n    \n', true);
    return prepareAndUseStatementAsync(this.rel_1, tmp, EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda_0(personUid, clazzUid, null), $completion);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl).qei = function (accountPersonUid, statusFilter) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['EnrolmentRequest', 'CoursePicture'];
    return doorFlow(this.rel_1, tmp, EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda_0(this, accountPersonUid, statusFilter, null));
  };
  protoOf(EnrolmentRequestDao_JdbcImpl).rei = function (uid, status, updateTime, $completion) {
    var tmp = new $updateStatusCOROUTINE$242(this, uid, status, updateTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_JdbcImpl).sei = function (clazzUid, includeDeleted, statusFilter, searchText, sortOrder) {
    return new EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1(this, clazzUid, statusFilter, includeDeleted, searchText, sortOrder);
  };
  function EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function EnrolmentRequestDao_Repo$insert$slambda(this$0, $enrolmentRequest, resultContinuation) {
    this.meo_1 = this$0;
    this.neo_1 = $enrolmentRequest;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_Repo$insert$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_Repo$insert$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(EnrolmentRequestDao_Repo$insert$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.meo_1.qeo_1.oei(this.neo_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(EnrolmentRequestDao_Repo$insert$slambda).y77 = function (completion) {
    return new EnrolmentRequestDao_Repo$insert$slambda(this.meo_1, this.neo_1, completion);
  };
  function EnrolmentRequestDao_Repo$insert$slambda_0(this$0, $enrolmentRequest, resultContinuation) {
    var i = new EnrolmentRequestDao_Repo$insert$slambda(this$0, $enrolmentRequest, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function EnrolmentRequestDao_Repo$hasPendingRequests$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda(this$0, $accountPersonUid, $statusFilter, resultContinuation) {
    this.dep_1 = this$0;
    this.eep_1 = $accountPersonUid;
    this.fep_1 = $statusFilter;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.gep_1 = this.dep_1.peo_1;
            var tmp_1 = this;
            tmp_1.hep_1 = 'EnrolmentRequestDao/findRequestsForUserAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.iep_1 = this.dep_1.reo_1;
            var tmp_3 = this;
            tmp_3.jep_1 = this.iep_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.dep_1.peo_1.w38(), 'EnrolmentRequestDao/findRequestsForUserAsFlow');
            doorNodeIdHeader(this_0, this.dep_1.peo_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.dep_1.peo_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.eep_1));
            parameter(this_0, 'statusFilter', this.dep_1.peo_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.fep_1));
            tmp_4.kep_1 = this_0;
            this.kep_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.lep_1 = this.jep_1;
            var tmp_6 = this;
            tmp_6.mep_1 = this.kep_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.mep_1, this.lep_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.nep_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.dep_1.oeo_1, this.nep_1, this.dep_1.peo_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda$lambda(this.gep_1, this.hep_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda).y77 = function (completion) {
    return new EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda(this.dep_1, this.eep_1, this.fep_1, completion);
  };
  function EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda_0(this$0, $accountPersonUid, $statusFilter, resultContinuation) {
    var i = new EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda(this$0, $accountPersonUid, $statusFilter, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function EnrolmentRequestDao_Repo$updateStatus$slambda(this$0, $uid, $status, $updateTime, resultContinuation) {
    this.wep_1 = this$0;
    this.xep_1 = $uid;
    this.yep_1 = $status;
    this.zep_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_Repo$updateStatus$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_Repo$updateStatus$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(EnrolmentRequestDao_Repo$updateStatus$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.wep_1.qeo_1.rei(this.xep_1, this.yep_1, this.zep_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(EnrolmentRequestDao_Repo$updateStatus$slambda).y77 = function (completion) {
    return new EnrolmentRequestDao_Repo$updateStatus$slambda(this.wep_1, this.xep_1, this.yep_1, this.zep_1, completion);
  };
  function EnrolmentRequestDao_Repo$updateStatus$slambda_0(this$0, $uid, $status, $updateTime, resultContinuation) {
    var i = new EnrolmentRequestDao_Repo$updateStatus$slambda(this$0, $uid, $status, $updateTime, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda(this$0, $clazzUid, $includeDeleted, $statusFilter, $searchText, $sortOrder, resultContinuation) {
    this.ieq_1 = this$0;
    this.jeq_1 = $clazzUid;
    this.keq_1 = $includeDeleted;
    this.leq_1 = $statusFilter;
    this.meq_1 = $searchText;
    this.neq_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda).k85 = function (_pagingParams, $completion) {
    var tmp = this.l85(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda).he = function (p1, $completion) {
    return this.k85(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            var tmp_0 = this;
            tmp_0.qeq_1 = this.ieq_1.peo_1;
            var tmp_1 = this;
            tmp_1.req_1 = 'EnrolmentRequestDao/findPendingEnrolmentsForCourse';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.seq_1 = this.ieq_1.reo_1;
            var tmp_3 = this;
            tmp_3.teq_1 = this.seq_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ieq_1.peo_1.w38(), 'EnrolmentRequestDao/findPendingEnrolmentsForCourse');
            doorNodeIdHeader(this_0, this.ieq_1.peo_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.ieq_1.peo_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.jeq_1));
            parameter(this_0, 'includeDeleted', this.ieq_1.peo_1.w38().k65_1.e45(serializer_2(BooleanCompanionObject_instance), this.keq_1));
            parameter(this_0, 'statusFilter', this.ieq_1.peo_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.leq_1));
            parameter(this_0, 'searchText', this.ieq_1.peo_1.w38().k65_1.e45(serializer_0(StringCompanionObject_instance), this.meq_1));
            parameter(this_0, 'sortOrder', this.ieq_1.peo_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.neq_1));
            pagingSourceLoadParameters(this_0, this.ieq_1.peo_1.w38().k65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.oeq_1);
            tmp_4.ueq_1 = this_0;
            this.ueq_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.veq_1 = this.teq_1;
            var tmp_6 = this;
            tmp_6.weq_1 = this.ueq_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.weq_1, this.veq_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.xeq_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ieq_1.oeo_1, this.xeq_1, this.ieq_1.peo_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.peq_1 = endOfPaginationReached(this.xeq_1);
            this.id_1 = 5;
            this.hd_1 = 7;
            continue $sm;
          case 4:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda$lambda(this.qeq_1, this.req_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 5:
            throw this.kd_1;
          case 6:
            this.id_1 = 5;
            if (false) {
              this.hd_1 = 1;
              continue $sm;
            }

            this.hd_1 = 7;
            continue $sm;
          case 7:
            return this.peq_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda).l85 = function (_pagingParams, completion) {
    var i = new EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda(this.ieq_1, this.jeq_1, this.keq_1, this.leq_1, this.meq_1, this.neq_1, completion);
    i.oeq_1 = _pagingParams;
    return i;
  };
  function EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda_0(this$0, $clazzUid, $includeDeleted, $statusFilter, $searchText, $sortOrder, resultContinuation) {
    var i = new EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda(this$0, $clazzUid, $includeDeleted, $statusFilter, $searchText, $sortOrder, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.k85(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $hasPendingRequestsCOROUTINE$244(_this__u8e3s4, personUid, clazzUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ger_1 = _this__u8e3s4;
    this.her_1 = personUid;
    this.ier_1 = clazzUid;
  }
  protoOf($hasPendingRequestsCOROUTINE$244).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.jer_1 = this.ger_1.peo_1;
            var tmp_1 = this;
            tmp_1.ker_1 = 'EnrolmentRequestDao/hasPendingRequests';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ler_1 = this.ger_1.reo_1;
            var tmp_3 = this;
            tmp_3.mer_1 = this.ler_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ger_1.peo_1.w38(), 'EnrolmentRequestDao/hasPendingRequests');
            doorNodeIdHeader(this_0, this.ger_1.peo_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'personUid', this.ger_1.peo_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.her_1));
            parameter(this_0, 'clazzUid', this.ger_1.peo_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ier_1));
            tmp_4.ner_1 = this_0;
            this.ner_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.oer_1 = this.mer_1;
            var tmp_6 = this;
            tmp_6.per_1 = this.ner_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.per_1, this.oer_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.qer_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ger_1.oeo_1, this.qer_1, this.ger_1.peo_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.rer_1 = this.kd_1;
              Napier_getInstance().q5d(this.rer_1, 'DoorLog', EnrolmentRequestDao_Repo$hasPendingRequests$lambda(this.jer_1, this.ker_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.ger_1.qeo_1.pei(this.her_1, this.ier_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function EnrolmentRequestDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    EnrolmentRequestDao.call(this);
    this.oeo_1 = _db;
    this.peo_1 = _repo;
    this.qeo_1 = _dao;
    this.reo_1 = _httpClient;
    this.seo_1 = _clientId;
    this.teo_1 = _endpoint;
    this.ueo_1 = new RepoDaoFlowHelper(this.peo_1);
  }
  protoOf(EnrolmentRequestDao_Repo).oei = function (enrolmentRequest, $completion) {
    return withRepoChangeMonitorAsync(this.peo_1, 'EnrolmentRequest', EnrolmentRequestDao_Repo$insert$slambda_0(this, enrolmentRequest, null), $completion);
  };
  protoOf(EnrolmentRequestDao_Repo).pei = function (personUid, clazzUid, $completion) {
    var tmp = new $hasPendingRequestsCOROUTINE$244(this, personUid, clazzUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_Repo).qei = function (accountPersonUid, statusFilter) {
    var tmp = this.qeo_1.qei(accountPersonUid, statusFilter);
    return this.ueo_1.b67(tmp, EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda_0(this, accountPersonUid, statusFilter, null));
  };
  protoOf(EnrolmentRequestDao_Repo).rei = function (uid, status, updateTime, $completion) {
    return withRepoChangeMonitorAsync(this.peo_1, 'EnrolmentRequest', EnrolmentRequestDao_Repo$updateStatus$slambda_0(this, uid, status, updateTime, null), $completion);
  };
  protoOf(EnrolmentRequestDao_Repo).sei = function (clazzUid, includeDeleted, statusFilter, searchText, sortOrder) {
    var tmp = this.qeo_1.sei(clazzUid, includeDeleted, statusFilter, searchText, sortOrder);
    return new DoorRepositoryReplicatePullPagingSource(this.peo_1, 'EnrolmentRequestDao/findPendingEnrolmentsForCourse', tmp, EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda_0(this, clazzUid, includeDeleted, statusFilter, searchText, sortOrder, null));
  };
  function ErrorReportDao() {
  }
  function ErrorReportDao_DoorWrapper(_db, _dao) {
    ErrorReportDao.call(this);
    this.ser_1 = _db;
    this.ter_1 = _dao;
  }
  function ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.uer_1);
  }
  protoOf(ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO ErrorReport (errUid, errPcsn, errLcsn, errLcb, errLct, severity, timestamp, presenterUri, appVersion, versionCode, errorCode, operatingSys, osVersion, stackTrace, message) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1).yer = function (stmt, entity) {
    if (entity.zer_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.zer_1);
    }
    stmt.i5h(2, entity.aes_1);
    stmt.i5h(3, entity.bes_1);
    stmt.h5h(4, entity.ces_1);
    stmt.i5h(5, entity.des_1);
    stmt.h5h(6, entity.ees_1);
    stmt.i5h(7, entity.fes_1);
    stmt.l5h(8, entity.ges_1);
    stmt.l5h(9, entity.hes_1);
    stmt.h5h(10, entity.ies_1);
    stmt.h5h(11, entity.jes_1);
    stmt.l5h(12, entity.kes_1);
    stmt.l5h(13, entity.les_1);
    stmt.l5h(14, entity.mes_1);
    stmt.l5h(15, entity.nes_1);
  };
  protoOf(ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1).c5f = function (stmt, entity) {
    return this.yer(stmt, entity instanceof ErrorReport ? entity : THROW_CCE());
  };
  function ErrorReportDao_JdbcImpl(_db) {
    ErrorReportDao.call(this);
    this.uer_1 = _db;
    var tmp = this;
    tmp.ver_1 = new ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1(this);
  }
  function ErrorReportDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ErrorReportDao.call(this);
    this.oes_1 = _db;
    this.pes_1 = _repo;
    this.qes_1 = _dao;
    this.res_1 = _httpClient;
    this.ses_1 = _clientId;
    this.tes_1 = _endpoint;
  }
  function ExternalAppPermissionDao() {
  }
  function ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ues_1);
  }
  protoOf(ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO ExternalAppPermission (eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1).yes = function (stmt, entity) {
    if (entity.zes_1 === 0) {
      stmt.n5h(1, null);
    } else {
      stmt.h5h(1, entity.zes_1);
    }
    stmt.i5h(2, entity.aet_1);
    stmt.l5h(3, entity.bet_1);
    stmt.i5h(4, entity.cet_1);
    stmt.i5h(5, entity.det_1);
    stmt.l5h(6, entity.eet_1);
    stmt.l5h(7, entity.fet_1);
  };
  protoOf(ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1).c5f = function (stmt, entity) {
    return this.yes(stmt, entity instanceof ExternalAppPermission ? entity : THROW_CCE());
  };
  function ExternalAppPermissionDao_JdbcImpl(_db) {
    ExternalAppPermissionDao.call(this);
    this.ues_1 = _db;
    var tmp = this;
    tmp.ves_1 = new ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1(this);
  }
  function HolidayCalendarDao() {
  }
  function $insertAsyncCOROUTINE$251(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.oet_1 = _this__u8e3s4;
    this.pet_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$251).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.qet_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.oet_1.set_1));
            if (this.pet_1.f8e_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.qet_1.b62(28, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.ret_1 = suspendResult;
            this.pet_1.f8e_1 = this.ret_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.pet_1.m8e_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.oet_1.tet_1.insertAsync(this.pet_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.pet_1.f8e_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function HolidayCalendarDao_DoorWrapper(_db, _dao) {
    HolidayCalendarDao.call(this);
    this.set_1 = _db;
    this.tet_1 = _dao;
  }
  protoOf(HolidayCalendarDao_DoorWrapper).uet = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$251(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(HolidayCalendarDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.uet(entity instanceof HolidayCalendar ? entity : THROW_CCE(), $completion);
  };
  function HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.vet_1);
  }
  protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO HolidayCalendar (umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1).aeu = function (stmt, entity) {
    if (entity.f8e_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.f8e_1);
    }
    stmt.l5h(2, entity.g8e_1);
    stmt.h5h(3, entity.h8e_1);
    stmt.v5g(4, entity.i8e_1);
    stmt.i5h(5, entity.j8e_1);
    stmt.i5h(6, entity.k8e_1);
    stmt.h5h(7, entity.l8e_1);
    stmt.i5h(8, entity.m8e_1);
  };
  protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1).c5f = function (stmt, entity) {
    return this.aeu(stmt, entity instanceof HolidayCalendar ? entity : THROW_CCE());
  };
  function HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.vet_1);
  }
  protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO HolidayCalendar (umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1).aeu = function (stmt, entity) {
    if (entity.f8e_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.f8e_1);
    }
    stmt.l5h(2, entity.g8e_1);
    stmt.h5h(3, entity.h8e_1);
    stmt.v5g(4, entity.i8e_1);
    stmt.i5h(5, entity.j8e_1);
    stmt.i5h(6, entity.k8e_1);
    stmt.h5h(7, entity.l8e_1);
    stmt.i5h(8, entity.m8e_1);
  };
  protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1).c5f = function (stmt, entity) {
    return this.aeu(stmt, entity instanceof HolidayCalendar ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$252(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.leu_1 = _this__u8e3s4;
    this.meu_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$252).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.leu_1.xet_1.j5g(this.meu_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function HolidayCalendarDao_JdbcImpl(_db) {
    HolidayCalendarDao.call(this);
    this.vet_1 = _db;
    var tmp = this;
    tmp.wet_1 = new HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1(this);
    var tmp_0 = this;
    tmp_0.xet_1 = new HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1(this);
  }
  protoOf(HolidayCalendarDao_JdbcImpl).uet = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$252(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(HolidayCalendarDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.uet(entity instanceof HolidayCalendar ? entity : THROW_CCE(), $completion);
  };
  function HolidayCalendarDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.veu_1 = this$0;
    this.weu_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(HolidayCalendarDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(HolidayCalendarDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(HolidayCalendarDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.veu_1.zeu_1.insertAsync(this.weu_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(HolidayCalendarDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new HolidayCalendarDao_Repo$insertAsync$slambda(this.veu_1, this.weu_1, completion);
  };
  function HolidayCalendarDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new HolidayCalendarDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$257(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.lev_1 = _this__u8e3s4;
    this.mev_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$257).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.lev_1.yeu_1, 'HolidayCalendar', HolidayCalendarDao_Repo$insertAsync$slambda_0(this.lev_1, this.mev_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function HolidayCalendarDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    HolidayCalendarDao.call(this);
    this.xeu_1 = _db;
    this.yeu_1 = _repo;
    this.zeu_1 = _dao;
    this.aev_1 = _httpClient;
    this.bev_1 = _clientId;
    this.cev_1 = _endpoint;
  }
  protoOf(HolidayCalendarDao_Repo).uet = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$257(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(HolidayCalendarDao_Repo).insertAsync = function (entity, $completion) {
    return this.uet(entity instanceof HolidayCalendar ? entity : THROW_CCE(), $completion);
  };
  function HolidayDao() {
  }
  function $insertAsyncCOROUTINE$259(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vev_1 = _this__u8e3s4;
    this.wev_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$259).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.xev_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.vev_1.zev_1));
            if (this.wev_1.bew_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.xev_1.b62(99, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.yev_1 = suspendResult;
            this.wev_1.bew_1 = this.yev_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.wev_1.few_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.vev_1.aew_1.insertAsync(this.wev_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.wev_1.bew_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function HolidayDao_DoorWrapper(_db, _dao) {
    HolidayDao.call(this);
    this.zev_1 = _db;
    this.aew_1 = _dao;
  }
  protoOf(HolidayDao_DoorWrapper).lew = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$259(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(HolidayDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.lew(entity instanceof Holiday ? entity : THROW_CCE(), $completion);
  };
  function HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.mew_1);
  }
  protoOf(HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO Holiday (holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1).qew = function (stmt, entity) {
    if (entity.bew_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.bew_1);
    }
    stmt.i5h(2, entity.cew_1);
    stmt.i5h(3, entity.dew_1);
    stmt.h5h(4, entity.eew_1);
    stmt.i5h(5, entity.few_1);
    stmt.v5g(6, entity.gew_1);
    stmt.i5h(7, entity.hew_1);
    stmt.i5h(8, entity.iew_1);
    stmt.i5h(9, entity.jew_1);
    stmt.l5h(10, entity.kew_1);
  };
  protoOf(HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1).c5f = function (stmt, entity) {
    return this.qew(stmt, entity instanceof Holiday ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$261(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zew_1 = _this__u8e3s4;
    this.aex_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$261).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.zew_1.new_1.j5g(this.aex_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function HolidayDao_JdbcImpl(_db) {
    HolidayDao.call(this);
    this.mew_1 = _db;
    var tmp = this;
    tmp.new_1 = new HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1(this);
  }
  protoOf(HolidayDao_JdbcImpl).lew = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$261(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(HolidayDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.lew(entity instanceof Holiday ? entity : THROW_CCE(), $completion);
  };
  function HolidayDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.jex_1 = this$0;
    this.kex_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(HolidayDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(HolidayDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(HolidayDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.jex_1.nex_1.insertAsync(this.kex_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(HolidayDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new HolidayDao_Repo$insertAsync$slambda(this.jex_1, this.kex_1, completion);
  };
  function HolidayDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new HolidayDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$263(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zex_1 = _this__u8e3s4;
    this.aey_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$263).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.zex_1.mex_1, 'Holiday', HolidayDao_Repo$insertAsync$slambda_0(this.zex_1, this.aey_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function HolidayDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    HolidayDao.call(this);
    this.lex_1 = _db;
    this.mex_1 = _repo;
    this.nex_1 = _dao;
    this.oex_1 = _httpClient;
    this.pex_1 = _clientId;
    this.qex_1 = _endpoint;
  }
  protoOf(HolidayDao_Repo).lew = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$263(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(HolidayDao_Repo).insertAsync = function (entity, $completion) {
    return this.lew(entity instanceof Holiday ? entity : THROW_CCE(), $completion);
  };
  function LanguageDao() {
  }
  function $insertAsyncCOROUTINE$265(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.jey_1 = _this__u8e3s4;
    this.key_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$265).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.ley_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.jey_1.ney_1));
            if (this.key_1.lc8_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.ley_1.b62(13, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.mey_1 = suspendResult;
            this.key_1.lc8_1 = this.mey_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.key_1.vc8_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.jey_1.oey_1.insertAsync(this.key_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.key_1.lc8_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function LanguageDao_DoorWrapper(_db, _dao) {
    LanguageDao.call(this);
    this.ney_1 = _db;
    this.oey_1 = _dao;
  }
  protoOf(LanguageDao_DoorWrapper).pey = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$265(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LanguageDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.pey(entity instanceof Language ? entity : THROW_CCE(), $completion);
  };
  function LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.qey_1);
  }
  protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO Language (langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1).vey = function (stmt, entity) {
    if (entity.lc8_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.lc8_1);
    }
    stmt.l5h(2, entity.mc8_1);
    stmt.l5h(3, entity.nc8_1);
    stmt.l5h(4, entity.oc8_1);
    stmt.l5h(5, entity.pc8_1);
    stmt.l5h(6, entity.qc8_1);
    stmt.v5g(7, entity.rc8_1);
    stmt.i5h(8, entity.sc8_1);
    stmt.i5h(9, entity.tc8_1);
    stmt.h5h(10, entity.uc8_1);
    stmt.i5h(11, entity.vc8_1);
  };
  protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1).c5f = function (stmt, entity) {
    return this.vey(stmt, entity instanceof Language ? entity : THROW_CCE());
  };
  function LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.qey_1);
  }
  protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO Language (langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1).vey = function (stmt, entity) {
    if (entity.lc8_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.lc8_1);
    }
    stmt.l5h(2, entity.mc8_1);
    stmt.l5h(3, entity.nc8_1);
    stmt.l5h(4, entity.oc8_1);
    stmt.l5h(5, entity.pc8_1);
    stmt.l5h(6, entity.qc8_1);
    stmt.v5g(7, entity.rc8_1);
    stmt.i5h(8, entity.sc8_1);
    stmt.i5h(9, entity.tc8_1);
    stmt.h5h(10, entity.uc8_1);
    stmt.i5h(11, entity.vc8_1);
  };
  protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1).c5f = function (stmt, entity) {
    return this.vey(stmt, entity instanceof Language ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$266(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.gez_1 = _this__u8e3s4;
    this.hez_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$266).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.gez_1.rey_1.j5g(this.hez_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function LanguageDao_JdbcImpl(_db) {
    LanguageDao.call(this);
    this.qey_1 = _db;
    var tmp = this;
    tmp.rey_1 = new LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1(this);
    var tmp_0 = this;
    tmp_0.sey_1 = new LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1(this);
  }
  protoOf(LanguageDao_JdbcImpl).pey = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$266(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LanguageDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.pey(entity instanceof Language ? entity : THROW_CCE(), $completion);
  };
  function LanguageDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.qez_1 = this$0;
    this.rez_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(LanguageDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LanguageDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(LanguageDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.qez_1.uez_1.insertAsync(this.rez_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(LanguageDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new LanguageDao_Repo$insertAsync$slambda(this.qez_1, this.rez_1, completion);
  };
  function LanguageDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new LanguageDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$272(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.gf0_1 = _this__u8e3s4;
    this.hf0_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$272).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.gf0_1.tez_1, 'Language', LanguageDao_Repo$insertAsync$slambda_0(this.gf0_1, this.hf0_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function LanguageDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    LanguageDao.call(this);
    this.sez_1 = _db;
    this.tez_1 = _repo;
    this.uez_1 = _dao;
    this.vez_1 = _httpClient;
    this.wez_1 = _clientId;
    this.xez_1 = _endpoint;
  }
  protoOf(LanguageDao_Repo).pey = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$272(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LanguageDao_Repo).insertAsync = function (entity, $completion) {
    return this.pey(entity instanceof Language ? entity : THROW_CCE(), $completion);
  };
  function LanguageVariantDao() {
  }
  function $insertAsyncCOROUTINE$273(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.qf0_1 = _this__u8e3s4;
    this.rf0_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$273).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.sf0_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.qf0_1.uf0_1));
            if (this.rf0_1.wf0_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.sf0_1.b62(10, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.tf0_1 = suspendResult;
            this.rf0_1.wf0_1 = this.tf0_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.rf0_1.df1_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.qf0_1.vf0_1.insertAsync(this.rf0_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.rf0_1.wf0_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function LanguageVariantDao_DoorWrapper(_db, _dao) {
    LanguageVariantDao.call(this);
    this.uf0_1 = _db;
    this.vf0_1 = _dao;
  }
  protoOf(LanguageVariantDao_DoorWrapper).ef1 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$273(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LanguageVariantDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.ef1(entity instanceof LanguageVariant ? entity : THROW_CCE(), $completion);
  };
  function LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ff1_1);
  }
  protoOf(LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO LanguageVariant (langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1).jf1 = function (stmt, entity) {
    if (entity.wf0_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.wf0_1);
    }
    stmt.i5h(2, entity.xf0_1);
    stmt.l5h(3, entity.yf0_1);
    stmt.l5h(4, entity.zf0_1);
    stmt.i5h(5, entity.af1_1);
    stmt.i5h(6, entity.bf1_1);
    stmt.h5h(7, entity.cf1_1);
    stmt.i5h(8, entity.df1_1);
  };
  protoOf(LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1).c5f = function (stmt, entity) {
    return this.jf1(stmt, entity instanceof LanguageVariant ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$274(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.sf1_1 = _this__u8e3s4;
    this.tf1_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$274).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.sf1_1.gf1_1.j5g(this.tf1_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function LanguageVariantDao_JdbcImpl(_db) {
    LanguageVariantDao.call(this);
    this.ff1_1 = _db;
    var tmp = this;
    tmp.gf1_1 = new LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1(this);
  }
  protoOf(LanguageVariantDao_JdbcImpl).ef1 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$274(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LanguageVariantDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.ef1(entity instanceof LanguageVariant ? entity : THROW_CCE(), $completion);
  };
  function LanguageVariantDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.cf2_1 = this$0;
    this.df2_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(LanguageVariantDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LanguageVariantDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(LanguageVariantDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.cf2_1.gf2_1.insertAsync(this.df2_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(LanguageVariantDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new LanguageVariantDao_Repo$insertAsync$slambda(this.cf2_1, this.df2_1, completion);
  };
  function LanguageVariantDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new LanguageVariantDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$275(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.sf2_1 = _this__u8e3s4;
    this.tf2_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$275).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.sf2_1.ff2_1, 'LanguageVariant', LanguageVariantDao_Repo$insertAsync$slambda_0(this.sf2_1, this.tf2_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function LanguageVariantDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    LanguageVariantDao.call(this);
    this.ef2_1 = _db;
    this.ff2_1 = _repo;
    this.gf2_1 = _dao;
    this.hf2_1 = _httpClient;
    this.if2_1 = _clientId;
    this.jf2_1 = _endpoint;
  }
  protoOf(LanguageVariantDao_Repo).ef1 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$275(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LanguageVariantDao_Repo).insertAsync = function (entity, $completion) {
    return this.ef1(entity instanceof LanguageVariant ? entity : THROW_CCE(), $completion);
  };
  function LeavingReasonDao() {
  }
  function $insertAsyncCOROUTINE$277(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.df3_1 = _this__u8e3s4;
    this.ef3_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$277).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.ff3_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.df3_1.hf3_1));
            if (this.ef3_1.t93_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.ff3_1.b62(410, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.gf3_1 = suspendResult;
            this.ef3_1.t93_1 = this.gf3_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.ef3_1.y93_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.df3_1.if3_1.insertAsync(this.ef3_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.ef3_1.t93_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function LeavingReasonDao_DoorWrapper(_db, _dao) {
    LeavingReasonDao.call(this);
    this.hf3_1 = _db;
    this.if3_1 = _dao;
  }
  protoOf(LeavingReasonDao_DoorWrapper).uf2 = function (uid, $completion) {
    return this.if3_1.uf2(uid, $completion);
  };
  protoOf(LeavingReasonDao_DoorWrapper).jf3 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$277(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LeavingReasonDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.jf3(entity instanceof LeavingReason ? entity : THROW_CCE(), $completion);
  };
  function LeavingReasonDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) {
    return mapNextRow(_result, null, LeavingReasonDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result));
  }
  function LeavingReasonDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_leavingReasonUid = $_result.l5m('leavingReasonUid');
      var _tmp_leavingReasonTitle = $_result.rz('leavingReasonTitle');
      var _tmp_leavingReasonMCSN = $_result.l5m('leavingReasonMCSN');
      var _tmp_leavingReasonCSN = $_result.l5m('leavingReasonCSN');
      var _tmp_leavingReasonLCB = $_result.k5m('leavingReasonLCB');
      var _tmp_leavingReasonLct = $_result.l5m('leavingReasonLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new LeavingReason();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.LeavingReasonDao_JdbcImpl.findByUidAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.t93_1 = _tmp_leavingReasonUid;
      this_0.u93_1 = _tmp_leavingReasonTitle;
      this_0.v93_1 = _tmp_leavingReasonMCSN;
      this_0.w93_1 = _tmp_leavingReasonCSN;
      this_0.x93_1 = _tmp_leavingReasonLCB;
      this_0.y93_1 = _tmp_leavingReasonLct;
      return this_0;
    };
  }
  function LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.kf3_1);
  }
  protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO LeavingReason (leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1).pf3 = function (stmt, entity) {
    if (entity.t93_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.t93_1);
    }
    stmt.l5h(2, entity.u93_1);
    stmt.i5h(3, entity.v93_1);
    stmt.i5h(4, entity.w93_1);
    stmt.h5h(5, entity.x93_1);
    stmt.i5h(6, entity.y93_1);
  };
  protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1).c5f = function (stmt, entity) {
    return this.pf3(stmt, entity instanceof LeavingReason ? entity : THROW_CCE());
  };
  function LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.kf3_1);
  }
  protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO LeavingReason (leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1).pf3 = function (stmt, entity) {
    if (entity.t93_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.t93_1);
    }
    stmt.l5h(2, entity.u93_1);
    stmt.i5h(3, entity.v93_1);
    stmt.i5h(4, entity.w93_1);
    stmt.h5h(5, entity.x93_1);
    stmt.i5h(6, entity.y93_1);
  };
  protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1).c5f = function (stmt, entity) {
    return this.pf3(stmt, entity instanceof LeavingReason ? entity : THROW_CCE());
  };
  function LeavingReasonDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) {
    this.af4_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(LeavingReasonDao_JdbcImpl$findByUidAsync$slambda).cf4 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LeavingReasonDao_JdbcImpl$findByUidAsync$slambda).he = function (p1, $completion) {
    return this.cf4((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(LeavingReasonDao_JdbcImpl$findByUidAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.bf4_1.i5h(1, this.af4_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.bf4_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, LeavingReasonDao_JdbcImpl$findByUidAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(LeavingReasonDao_JdbcImpl$findByUidAsync$slambda).z5e = function (_stmt, completion) {
    var i = new LeavingReasonDao_JdbcImpl$findByUidAsync$slambda(this.af4_1, completion);
    i.bf4_1 = _stmt;
    return i;
  };
  function LeavingReasonDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) {
    var i = new LeavingReasonDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.cf4(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$278(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.lf4_1 = _this__u8e3s4;
    this.mf4_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$278).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.lf4_1.mf3_1.j5g(this.mf4_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function LeavingReasonDao_JdbcImpl(_db) {
    LeavingReasonDao.call(this);
    this.kf3_1 = _db;
    var tmp = this;
    tmp.lf3_1 = new LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1(this);
    var tmp_0 = this;
    tmp_0.mf3_1 = new LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1(this);
  }
  protoOf(LeavingReasonDao_JdbcImpl).jf3 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$278(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LeavingReasonDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.jf3(entity instanceof LeavingReason ? entity : THROW_CCE(), $completion);
  };
  protoOf(LeavingReasonDao_JdbcImpl).uf2 = function (uid, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM LeavingReason WHERE leavingReasonUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM LeavingReason WHERE leavingReasonUid = ?\n', true);
    return prepareAndUseStatementAsync(this.kf3_1, tmp, LeavingReasonDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion);
  };
  function LeavingReasonDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.vf4_1 = this$0;
    this.wf4_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(LeavingReasonDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LeavingReasonDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(LeavingReasonDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.vf4_1.zf4_1.insertAsync(this.wf4_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(LeavingReasonDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new LeavingReasonDao_Repo$insertAsync$slambda(this.vf4_1, this.wf4_1, completion);
  };
  function LeavingReasonDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new LeavingReasonDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByUidAsyncCOROUTINE$281(_this__u8e3s4, uid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.lf5_1 = _this__u8e3s4;
    this.mf5_1 = uid;
  }
  protoOf($findByUidAsyncCOROUTINE$281).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.lf5_1.zf4_1.uf2(this.mf5_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$285(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vf5_1 = _this__u8e3s4;
    this.wf5_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$285).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.vf5_1.yf4_1, 'LeavingReason', LeavingReasonDao_Repo$insertAsync$slambda_0(this.vf5_1, this.wf5_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function LeavingReasonDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    LeavingReasonDao.call(this);
    this.xf4_1 = _db;
    this.yf4_1 = _repo;
    this.zf4_1 = _dao;
    this.af5_1 = _httpClient;
    this.bf5_1 = _clientId;
    this.cf5_1 = _endpoint;
  }
  protoOf(LeavingReasonDao_Repo).uf2 = function (uid, $completion) {
    var tmp = new $findByUidAsyncCOROUTINE$281(this, uid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LeavingReasonDao_Repo).jf3 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$285(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LeavingReasonDao_Repo).insertAsync = function (entity, $completion) {
    return this.jf3(entity instanceof LeavingReason ? entity : THROW_CCE(), $completion);
  };
  function MessageDao() {
  }
  function $insertCOROUTINE$286(_this__u8e3s4, message, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.if6_1 = _this__u8e3s4;
    this.jf6_1 = message;
  }
  protoOf($insertCOROUTINE$286).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.kf6_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.if6_1.mf6_1));
            if (this.jf6_1.of6_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.kf6_1.b62(126, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.lf6_1 = suspendResult;
            this.jf6_1.of6_1 = this.lf6_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.jf6_1.tf6_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.if6_1.nf6_1.zf5(this.jf6_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return Unit_instance;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function MessageDao_DoorWrapper(_db, _dao) {
    MessageDao.call(this);
    this.mf6_1 = _db;
    this.nf6_1 = _dao;
  }
  protoOf(MessageDao_DoorWrapper).xf5 = function (accountPersonUid, otherPersonUid) {
    return this.nf6_1.xf5(accountPersonUid, otherPersonUid);
  };
  protoOf(MessageDao_DoorWrapper).yf5 = function (searchQuery, accountPersonUid) {
    return this.nf6_1.yf5(searchQuery, accountPersonUid);
  };
  protoOf(MessageDao_DoorWrapper).zf5 = function (message, $completion) {
    var tmp = new $insertCOROUTINE$286(this, message, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda$lambda$lambda(_result));
  }
  function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_messageUid = $_result.l5m('messageUid');
      var _tmp_messageSenderPersonUid = $_result.l5m('messageSenderPersonUid');
      var _tmp_messageToPersonUid = $_result.l5m('messageToPersonUid');
      var _tmp_messageText = $_result.rz('messageText');
      var _tmp_messageTimestamp = $_result.l5m('messageTimestamp');
      var _tmp_messageLct = $_result.l5m('messageLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new Message();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.of6_1 = _tmp_messageUid;
      this_0.pf6_1 = _tmp_messageSenderPersonUid;
      this_0.qf6_1 = _tmp_messageToPersonUid;
      this_0.rf6_1 = _tmp_messageText;
      this_0.sf6_1 = _tmp_messageTimestamp;
      this_0.tf6_1 = _tmp_messageLct;
      return this_0;
    };
  }
  function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda$lambda$lambda(_result));
  }
  function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda($accountPersonUid, $otherPersonUid, $_limit, $_offset, resultContinuation) {
    this.cf7_1 = $accountPersonUid;
    this.df7_1 = $otherPersonUid;
    this.ef7_1 = $_limit;
    this.ff7_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda).hf7 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda).he = function (p1, $completion) {
    return this.hf7((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.gf7_1.i5h(1, this.cf7_1);
            this.gf7_1.i5h(2, this.df7_1);
            this.gf7_1.i5h(3, this.df7_1);
            this.gf7_1.i5h(4, this.cf7_1);
            this.gf7_1.h5h(5, this.ef7_1);
            this.gf7_1.h5h(6, this.ff7_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.gf7_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda(this.cf7_1, this.df7_1, this.ef7_1, this.ff7_1, completion);
    i.gf7_1 = _stmt;
    return i;
  };
  function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda_0($accountPersonUid, $otherPersonUid, $_limit, $_offset, resultContinuation) {
    var i = new MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda($accountPersonUid, $otherPersonUid, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.hf7(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda($accountPersonUid, $otherPersonUid, resultContinuation) {
    this.qf7_1 = $accountPersonUid;
    this.rf7_1 = $otherPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.sf7_1.i5h(1, this.qf7_1);
            this.sf7_1.i5h(2, this.rf7_1);
            this.sf7_1.i5h(3, this.rf7_1);
            this.sf7_1.i5h(4, this.qf7_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.sf7_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda(this.qf7_1, this.rf7_1, completion);
    i.sf7_1 = _stmt;
    return i;
  };
  function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda_0($accountPersonUid, $otherPersonUid, resultContinuation) {
    var i = new MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda($accountPersonUid, $otherPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda$lambda$lambda(_result));
  }
  function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_Message_nullCount = 0;
      var _tmp_messageUid = $_result.l5m('messageUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_messageSenderPersonUid = $_result.l5m('messageSenderPersonUid');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_messageToPersonUid = $_result.l5m('messageToPersonUid');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_messageText = $_result.rz('messageText');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_messageTimestamp = $_result.l5m('messageTimestamp');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_messageLct = $_result.l5m('messageLct');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_Message_isAllNull = _tmp_Message_nullCount === 6;
      var _tmp_Person_nullCount = 0;
      var _tmp_personUid = $_result.l5m('personUid');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_gender = $_result.k5m('gender');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_active = $_result.w65('active');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.l5m('dateOfBirth');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.l5m('personGroupUid');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_personLct = $_result.l5m('personLct');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_personType = $_result.k5m('personType');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.l5m('personMasterChangeSeqNum');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.l5m('personLocalChangeSeqNum');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.k5m('personLastChangedBy');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_admin = $_result.w65('admin');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.l5m('personPictureUid');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.l5m('personPictureLct');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_fileSize = $_result.k5m('fileSize');
      var tmp_33;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.w65('personPictureActive');
      var tmp_34;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6;
      // Inline function 'kotlin.apply' call
      var this_0 = new MessageAndOtherPerson();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_Message_isAllNull) {
        var tmp_35 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new Message();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.of6_1 = _tmp_messageUid;
        this_1.pf6_1 = _tmp_messageSenderPersonUid;
        this_1.qf6_1 = _tmp_messageToPersonUid;
        this_1.rf6_1 = _tmp_messageText;
        this_1.sf6_1 = _tmp_messageTimestamp;
        this_1.tf6_1 = _tmp_messageLct;
        tmp_35.tf7_1 = this_1;
      }
      if (!_tmp_Person_isAllNull) {
        var tmp_36 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new Person();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.f95_1 = _tmp_personUid;
        this_2.g95_1 = _tmp_username;
        this_2.h95_1 = _tmp_firstNames;
        this_2.i95_1 = _tmp_lastName;
        this_2.j95_1 = _tmp_emailAddr;
        this_2.k95_1 = _tmp_phoneNum;
        this_2.l95_1 = _tmp_gender;
        this_2.m95_1 = _tmp_active;
        this_2.n95_1 = _tmp_dateOfBirth;
        this_2.o95_1 = _tmp_personAddress;
        this_2.p95_1 = _tmp_personOrgId;
        this_2.q95_1 = _tmp_personGroupUid;
        this_2.r95_1 = _tmp_personLct;
        this_2.s95_1 = _tmp_personCountry;
        this_2.t95_1 = _tmp_personType;
        this_2.u95_1 = _tmp_personMasterChangeSeqNum;
        this_2.v95_1 = _tmp_personLocalChangeSeqNum;
        this_2.w95_1 = _tmp_personLastChangedBy;
        this_2.x95_1 = _tmp_admin;
        this_2.y95_1 = _tmp_personNotes;
        this_2.z95_1 = _tmp_fatherName;
        this_2.a96_1 = _tmp_fatherNumber;
        this_2.b96_1 = _tmp_motherName;
        this_2.c96_1 = _tmp_motherNum;
        tmp_36.uf7_1 = this_2;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_37 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new PersonPicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.d96_1 = _tmp_personPictureUid;
        this_3.e96_1 = _tmp_personPictureLct;
        this_3.f96_1 = _tmp_personPictureUri;
        this_3.g96_1 = _tmp_personPictureThumbnailUri;
        this_3.h96_1 = _tmp_fileSize;
        this_3.i96_1 = _tmp_personPictureActive;
        tmp_37.vf7_1 = this_3;
      }
      return this_0;
    };
  }
  function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda$lambda$lambda(_result));
  }
  function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda($accountPersonUid, $searchQuery, $_limit, $_offset, resultContinuation) {
    this.ef8_1 = $accountPersonUid;
    this.ff8_1 = $searchQuery;
    this.gf8_1 = $_limit;
    this.hf8_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda).jf8 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda).he = function (p1, $completion) {
    return this.jf8((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.if8_1.i5h(1, this.ef8_1);
            this.if8_1.i5h(2, this.ef8_1);
            this.if8_1.l5h(3, this.ff8_1);
            this.if8_1.l5h(4, this.ff8_1);
            this.if8_1.h5h(5, this.gf8_1);
            this.if8_1.h5h(6, this.hf8_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.if8_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda(this.ef8_1, this.ff8_1, this.gf8_1, this.hf8_1, completion);
    i.if8_1 = _stmt;
    return i;
  };
  function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda_0($accountPersonUid, $searchQuery, $_limit, $_offset, resultContinuation) {
    var i = new MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda($accountPersonUid, $searchQuery, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.jf8(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda($accountPersonUid, $searchQuery, resultContinuation) {
    this.sf8_1 = $accountPersonUid;
    this.tf8_1 = $searchQuery;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.uf8_1.i5h(1, this.sf8_1);
            this.uf8_1.i5h(2, this.sf8_1);
            this.uf8_1.l5h(3, this.tf8_1);
            this.uf8_1.l5h(4, this.tf8_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.uf8_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda(this.sf8_1, this.tf8_1, completion);
    i.uf8_1 = _stmt;
    return i;
  };
  function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda_0($accountPersonUid, $searchQuery, resultContinuation) {
    var i = new MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda($accountPersonUid, $searchQuery, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function MessageDao_JdbcImpl$_insertAdapterMessage_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.vf8_1);
  }
  protoOf(MessageDao_JdbcImpl$_insertAdapterMessage_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO Message (messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(MessageDao_JdbcImpl$_insertAdapterMessage_abort$1).zf8 = function (stmt, entity) {
    if (entity.of6_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.of6_1);
    }
    stmt.i5h(2, entity.pf6_1);
    stmt.i5h(3, entity.qf6_1);
    stmt.l5h(4, entity.rf6_1);
    stmt.i5h(5, entity.sf6_1);
    stmt.i5h(6, entity.tf6_1);
  };
  protoOf(MessageDao_JdbcImpl$_insertAdapterMessage_abort$1).c5f = function (stmt, entity) {
    return this.zf8(stmt, entity instanceof Message ? entity : THROW_CCE());
  };
  function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1(this$0, $accountPersonUid, $otherPersonUid) {
    this.gf9_1 = this$0;
    this.hf9_1 = $accountPersonUid;
    this.if9_1 = $otherPersonUid;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['Message'];
    DoorLimitOffsetPagingSource.call(this, this$0.vf8_1, tmp$ret$2);
  }
  protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1).jf9 = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM (\n        SELECT Message.*\n          FROM Message\n         WHERE (Message.messageSenderPersonUid = CAST(? AS BIGINT)\n                AND Message.messageToPersonUid = CAST(? AS BIGINT))\n            OR (Message.messageSenderPersonUid = CAST(? AS BIGINT)\n                AND Message.messageToPersonUid = CAST(? AS BIGINT)) \n      ORDER BY Message.messageTimestamp DESC          \n    ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n        SELECT Message.*\n          FROM Message\n         WHERE (Message.messageSenderPersonUid = ?\n                AND Message.messageToPersonUid = ?)\n            OR (Message.messageSenderPersonUid = ?\n                AND Message.messageToPersonUid = ?) \n      ORDER BY Message.messageTimestamp DESC          \n    ) AS _PagingData LIMIT ? OFFSET ?\n', true);
    return prepareAndUseStatementAsync(this.gf9_1.vf8_1, tmp, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda_0(this.hf9_1, this.if9_1, _limit, _offset, null), $completion);
  };
  protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1).j5p = function (_limit, _offset, $completion) {
    return this.jf9(_limit, _offset, $completion);
  };
  protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n        SELECT Message.*\n          FROM Message\n         WHERE (Message.messageSenderPersonUid = CAST(? AS BIGINT)\n                AND Message.messageToPersonUid = CAST(? AS BIGINT))\n            OR (Message.messageSenderPersonUid = CAST(? AS BIGINT)\n                AND Message.messageToPersonUid = CAST(? AS BIGINT)) \n      ORDER BY Message.messageTimestamp DESC          \n    ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n        SELECT Message.*\n          FROM Message\n         WHERE (Message.messageSenderPersonUid = ?\n                AND Message.messageToPersonUid = ?)\n            OR (Message.messageSenderPersonUid = ?\n                AND Message.messageToPersonUid = ?) \n      ORDER BY Message.messageTimestamp DESC          \n    ) AS _PagingCount\n', true);
    return prepareAndUseStatementAsync(this.gf9_1.vf8_1, tmp, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda_0(this.hf9_1, this.if9_1, null), $completion);
  };
  function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1(this$0, $accountPersonUid, $searchQuery) {
    this.qf9_1 = this$0;
    this.rf9_1 = $accountPersonUid;
    this.sf9_1 = $searchQuery;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['Message', 'Person', 'PersonPicture'];
    DoorLimitOffsetPagingSource.call(this, this$0.vf8_1, tmp$ret$2);
  }
  protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1).tf9 = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig("SELECT * FROM (\n        SELECT Person.*, LatestMessage.*, PersonPicture.*\n          FROM Person\n               JOIN Message LatestMessage\n                    ON LatestMessage.messageUid = \n                       (SELECT Message.messageUid\n                          FROM Message\n                         WHERE (Message.messageSenderPersonUid = CAST(? AS BIGINT)\n                                AND Message.messageToPersonUid = Person.personUid)\n                            OR (Message.messageSenderPersonUid = Person.personUid\n                                AND Message.messageToPersonUid = CAST(? AS BIGINT))\n                       ORDER BY Message.messageTimestamp DESC\n                          LIMIT 1)\n                          \n                LEFT JOIN PersonPicture\n                          ON PersonPicture.personPictureUid = Person.personUid\n         WHERE ? = '%' \n               OR (Person.firstNames || ' ' || Person.lastName) LIKE ?\n      ORDER BY LatestMessage.messageTimestamp DESC\n    ) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n        SELECT Person.*, LatestMessage.*, PersonPicture.*\n          FROM Person\n               JOIN Message LatestMessage\n                    ON LatestMessage.messageUid = \n                       (SELECT Message.messageUid\n                          FROM Message\n                         WHERE (Message.messageSenderPersonUid = ?\n                                AND Message.messageToPersonUid = Person.personUid)\n                            OR (Message.messageSenderPersonUid = Person.personUid\n                                AND Message.messageToPersonUid = ?)\n                       ORDER BY Message.messageTimestamp DESC\n                          LIMIT 1)\n                          \n                LEFT JOIN PersonPicture\n                          ON PersonPicture.personPictureUid = Person.personUid\n         WHERE ? = '%' \n               OR (Person.firstNames || ' ' || Person.lastName) LIKE ?\n      ORDER BY LatestMessage.messageTimestamp DESC\n    ) AS _PagingData LIMIT ? OFFSET ?\n", true);
    return prepareAndUseStatementAsync(this.qf9_1.vf8_1, tmp, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda_0(this.rf9_1, this.sf9_1, _limit, _offset, null), $completion);
  };
  protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1).j5p = function (_limit, _offset, $completion) {
    return this.tf9(_limit, _offset, $completion);
  };
  protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n        SELECT Person.*, LatestMessage.*, PersonPicture.*\n          FROM Person\n               JOIN Message LatestMessage\n                    ON LatestMessage.messageUid = \n                       (SELECT Message.messageUid\n                          FROM Message\n                         WHERE (Message.messageSenderPersonUid = CAST(? AS BIGINT)\n                                AND Message.messageToPersonUid = Person.personUid)\n                            OR (Message.messageSenderPersonUid = Person.personUid\n                                AND Message.messageToPersonUid = CAST(? AS BIGINT))\n                       ORDER BY Message.messageTimestamp DESC\n                          LIMIT 1)\n                          \n                LEFT JOIN PersonPicture\n                          ON PersonPicture.personPictureUid = Person.personUid\n         WHERE ? = '%' \n               OR (Person.firstNames || ' ' || Person.lastName) LIKE ?\n      ORDER BY LatestMessage.messageTimestamp DESC\n    ) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n        SELECT Person.*, LatestMessage.*, PersonPicture.*\n          FROM Person\n               JOIN Message LatestMessage\n                    ON LatestMessage.messageUid = \n                       (SELECT Message.messageUid\n                          FROM Message\n                         WHERE (Message.messageSenderPersonUid = ?\n                                AND Message.messageToPersonUid = Person.personUid)\n                            OR (Message.messageSenderPersonUid = Person.personUid\n                                AND Message.messageToPersonUid = ?)\n                       ORDER BY Message.messageTimestamp DESC\n                          LIMIT 1)\n                          \n                LEFT JOIN PersonPicture\n                          ON PersonPicture.personPictureUid = Person.personUid\n         WHERE ? = '%' \n               OR (Person.firstNames || ' ' || Person.lastName) LIKE ?\n      ORDER BY LatestMessage.messageTimestamp DESC\n    ) AS _PagingCount\n", true);
    return prepareAndUseStatementAsync(this.qf9_1.vf8_1, tmp, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda_0(this.rf9_1, this.sf9_1, null), $completion);
  };
  function MessageDao_JdbcImpl(_db) {
    MessageDao.call(this);
    this.vf8_1 = _db;
    var tmp = this;
    tmp.wf8_1 = new MessageDao_JdbcImpl$_insertAdapterMessage_abort$1(this);
  }
  protoOf(MessageDao_JdbcImpl).zf5 = function (message, $completion) {
    return this.wf8_1.i5g(message, $completion);
  };
  protoOf(MessageDao_JdbcImpl).xf5 = function (accountPersonUid, otherPersonUid) {
    return new MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1(this, accountPersonUid, otherPersonUid);
  };
  protoOf(MessageDao_JdbcImpl).yf5 = function (searchQuery, accountPersonUid) {
    return new MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1(this, accountPersonUid, searchQuery);
  };
  function MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function MessageDao_Repo$conversationsForUserAsPagingSource$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda(this$0, $accountPersonUid, $otherPersonUid, resultContinuation) {
    this.cfa_1 = this$0;
    this.dfa_1 = $accountPersonUid;
    this.efa_1 = $otherPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda).k85 = function (_pagingParams, $completion) {
    var tmp = this.l85(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda).he = function (p1, $completion) {
    return this.k85(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            var tmp_0 = this;
            tmp_0.hfa_1 = this.cfa_1.qfa_1;
            var tmp_1 = this;
            tmp_1.ifa_1 = 'MessageDao/messagesFromOtherUserAsPagingSource';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.jfa_1 = this.cfa_1.sfa_1;
            var tmp_3 = this;
            tmp_3.kfa_1 = this.jfa_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.cfa_1.qfa_1.w38(), 'MessageDao/messagesFromOtherUserAsPagingSource');
            doorNodeIdHeader(this_0, this.cfa_1.qfa_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.cfa_1.qfa_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.dfa_1));
            parameter(this_0, 'otherPersonUid', this.cfa_1.qfa_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.efa_1));
            pagingSourceLoadParameters(this_0, this.cfa_1.qfa_1.w38().k65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.ffa_1);
            tmp_4.lfa_1 = this_0;
            this.lfa_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.mfa_1 = this.kfa_1;
            var tmp_6 = this;
            tmp_6.nfa_1 = this.lfa_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.nfa_1, this.mfa_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.ofa_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.cfa_1.pfa_1, this.ofa_1, this.cfa_1.qfa_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.gfa_1 = endOfPaginationReached(this.ofa_1);
            this.id_1 = 5;
            this.hd_1 = 7;
            continue $sm;
          case 4:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda$lambda(this.hfa_1, this.ifa_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 5:
            throw this.kd_1;
          case 6:
            this.id_1 = 5;
            if (false) {
              this.hd_1 = 1;
              continue $sm;
            }

            this.hd_1 = 7;
            continue $sm;
          case 7:
            return this.gfa_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda).l85 = function (_pagingParams, completion) {
    var i = new MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda(this.cfa_1, this.dfa_1, this.efa_1, completion);
    i.ffa_1 = _pagingParams;
    return i;
  };
  function MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda_0(this$0, $accountPersonUid, $otherPersonUid, resultContinuation) {
    var i = new MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda(this$0, $accountPersonUid, $otherPersonUid, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.k85(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function MessageDao_Repo$conversationsForUserAsPagingSource$slambda(this$0, $searchQuery, $accountPersonUid, resultContinuation) {
    this.dfb_1 = this$0;
    this.efb_1 = $searchQuery;
    this.ffb_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(MessageDao_Repo$conversationsForUserAsPagingSource$slambda).k85 = function (_pagingParams, $completion) {
    var tmp = this.l85(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(MessageDao_Repo$conversationsForUserAsPagingSource$slambda).he = function (p1, $completion) {
    return this.k85(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(MessageDao_Repo$conversationsForUserAsPagingSource$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            var tmp_0 = this;
            tmp_0.ifb_1 = this.dfb_1.qfa_1;
            var tmp_1 = this;
            tmp_1.jfb_1 = 'MessageDao/conversationsForUserAsPagingSource';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.kfb_1 = this.dfb_1.sfa_1;
            var tmp_3 = this;
            tmp_3.lfb_1 = this.kfb_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.dfb_1.qfa_1.w38(), 'MessageDao/conversationsForUserAsPagingSource');
            doorNodeIdHeader(this_0, this.dfb_1.qfa_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'searchQuery', this.dfb_1.qfa_1.w38().k65_1.e45(serializer_0(StringCompanionObject_instance), this.efb_1));
            parameter(this_0, 'accountPersonUid', this.dfb_1.qfa_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ffb_1));
            pagingSourceLoadParameters(this_0, this.dfb_1.qfa_1.w38().k65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.gfb_1);
            tmp_4.mfb_1 = this_0;
            this.mfb_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.nfb_1 = this.lfb_1;
            var tmp_6 = this;
            tmp_6.ofb_1 = this.mfb_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.ofb_1, this.nfb_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.pfb_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.dfb_1.pfa_1, this.pfb_1, this.dfb_1.qfa_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.hfb_1 = endOfPaginationReached(this.pfb_1);
            this.id_1 = 5;
            this.hd_1 = 7;
            continue $sm;
          case 4:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', MessageDao_Repo$conversationsForUserAsPagingSource$slambda$lambda(this.ifb_1, this.jfb_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 5:
            throw this.kd_1;
          case 6:
            this.id_1 = 5;
            if (false) {
              this.hd_1 = 1;
              continue $sm;
            }

            this.hd_1 = 7;
            continue $sm;
          case 7:
            return this.hfb_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(MessageDao_Repo$conversationsForUserAsPagingSource$slambda).l85 = function (_pagingParams, completion) {
    var i = new MessageDao_Repo$conversationsForUserAsPagingSource$slambda(this.dfb_1, this.efb_1, this.ffb_1, completion);
    i.gfb_1 = _pagingParams;
    return i;
  };
  function MessageDao_Repo$conversationsForUserAsPagingSource$slambda_0(this$0, $searchQuery, $accountPersonUid, resultContinuation) {
    var i = new MessageDao_Repo$conversationsForUserAsPagingSource$slambda(this$0, $searchQuery, $accountPersonUid, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.k85(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function MessageDao_Repo$insert$slambda(this$0, $message, resultContinuation) {
    this.yfb_1 = this$0;
    this.zfb_1 = $message;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(MessageDao_Repo$insert$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(MessageDao_Repo$insert$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(MessageDao_Repo$insert$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.yfb_1.rfa_1.zf5(this.zfb_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(MessageDao_Repo$insert$slambda).y77 = function (completion) {
    return new MessageDao_Repo$insert$slambda(this.yfb_1, this.zfb_1, completion);
  };
  function MessageDao_Repo$insert$slambda_0(this$0, $message, resultContinuation) {
    var i = new MessageDao_Repo$insert$slambda(this$0, $message, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function MessageDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    MessageDao.call(this);
    this.pfa_1 = _db;
    this.qfa_1 = _repo;
    this.rfa_1 = _dao;
    this.sfa_1 = _httpClient;
    this.tfa_1 = _clientId;
    this.ufa_1 = _endpoint;
  }
  protoOf(MessageDao_Repo).xf5 = function (accountPersonUid, otherPersonUid) {
    var tmp = this.rfa_1.xf5(accountPersonUid, otherPersonUid);
    return new DoorRepositoryReplicatePullPagingSource(this.qfa_1, 'MessageDao/messagesFromOtherUserAsPagingSource', tmp, MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda_0(this, accountPersonUid, otherPersonUid, null));
  };
  protoOf(MessageDao_Repo).yf5 = function (searchQuery, accountPersonUid) {
    var tmp = this.rfa_1.yf5(searchQuery, accountPersonUid);
    return new DoorRepositoryReplicatePullPagingSource(this.qfa_1, 'MessageDao/conversationsForUserAsPagingSource', tmp, MessageDao_Repo$conversationsForUserAsPagingSource$slambda_0(this, searchQuery, accountPersonUid, null));
  };
  protoOf(MessageDao_Repo).zf5 = function (message, $completion) {
    return withRepoChangeMonitorAsync(this.qfa_1, 'Message', MessageDao_Repo$insert$slambda_0(this, message, null), $completion);
  };
  function OfflineItemDao() {
  }
  function OfflineItemDao_DoorWrapper(_db, _dao) {
    OfflineItemDao.call(this);
    this.bfc_1 = _db;
    this.cfc_1 = _dao;
  }
  protoOf(OfflineItemDao_DoorWrapper).afc = function (contentEntryUid, nodeId) {
    return this.cfc_1.afc(contentEntryUid, nodeId);
  };
  function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda$lambda$lambda(_result));
  }
  function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_readyForOffline = $_result.w65('readyForOffline');
      var _tmp_OfflineItem_nullCount = 0;
      var _tmp_oiUid = $_result.l5m('oiUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_oiNodeId = $_result.l5m('oiNodeId');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_oiClazzUid = $_result.l5m('oiClazzUid');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_oiCourseBlockUid = $_result.l5m('oiCourseBlockUid');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_oiContentEntryUid = $_result.l5m('oiContentEntryUid');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_oiActive = $_result.w65('oiActive');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_oiLct = $_result.l5m('oiLct');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_OfflineItem_isAllNull = _tmp_OfflineItem_nullCount === 7;
      var _tmp_TransferJobAndTotals_nullCount = 0;
      var _tmp_totalSize = $_result.l5m('totalSize');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_TransferJobAndTotals_nullCount = _tmp_TransferJobAndTotals_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_transferred = $_result.l5m('transferred');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_TransferJobAndTotals_nullCount = _tmp_TransferJobAndTotals_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_latestErrorStr = $_result.rz('latestErrorStr');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_TransferJobAndTotals_nullCount = _tmp_TransferJobAndTotals_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_TransferJobAndTotals_isAllNull = _tmp_TransferJobAndTotals_nullCount === 3;
      var _tmp_TransferJob_nullCount = 0;
      var _tmp_tjUid = $_result.k5m('tjUid');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_tjType = $_result.k5m('tjType');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_tjStatus = $_result.k5m('tjStatus');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_tjName = $_result.rz('tjName');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_tjUuid = $_result.rz('tjUuid');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_tjTableId = $_result.k5m('tjTableId');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_tjEntityUid = $_result.l5m('tjEntityUid');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_tjTimeCreated = $_result.l5m('tjTimeCreated');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_tjCreationType = $_result.k5m('tjCreationType');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_tjOiUid = $_result.l5m('tjOiUid');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_TransferJob_isAllNull = _tmp_TransferJob_nullCount === 10;
      // Inline function 'kotlin.apply' call
      var this_0 = new OfflineItemAndState();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.OfflineItemDao_JdbcImpl.findByContentEntryUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.ffc_1 = _tmp_readyForOffline;
      if (!_tmp_OfflineItem_isAllNull) {
        var tmp_19 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new OfflineItem();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.OfflineItemDao_JdbcImpl.findByContentEntryUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.gfc_1 = _tmp_oiUid;
        this_1.hfc_1 = _tmp_oiNodeId;
        this_1.ifc_1 = _tmp_oiClazzUid;
        this_1.jfc_1 = _tmp_oiCourseBlockUid;
        this_1.kfc_1 = _tmp_oiContentEntryUid;
        this_1.lfc_1 = _tmp_oiActive;
        this_1.mfc_1 = _tmp_oiLct;
        tmp_19.dfc_1 = this_1;
      }
      if (!_tmp_TransferJobAndTotals_isAllNull) {
        var tmp_20 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new TransferJobAndTotals();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.OfflineItemDao_JdbcImpl.findByContentEntryUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.ofc_1 = _tmp_totalSize;
        this_2.pfc_1 = _tmp_transferred;
        this_2.qfc_1 = _tmp_latestErrorStr;
        if (!_tmp_TransferJob_isAllNull) {
          var tmp_21 = this_2;
          // Inline function 'kotlin.apply' call
          var this_3 = new TransferJob();
          // Inline function 'kotlin.contracts.contract' call
          // Inline function 'com.ustadmobile.core.db.dao.OfflineItemDao_JdbcImpl.findByContentEntryUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
          this_3.rfc_1 = _tmp_tjUid;
          this_3.sfc_1 = _tmp_tjType;
          this_3.tfc_1 = _tmp_tjStatus;
          this_3.ufc_1 = _tmp_tjName;
          this_3.vfc_1 = _tmp_tjUuid;
          this_3.wfc_1 = _tmp_tjTableId;
          this_3.xfc_1 = _tmp_tjEntityUid;
          this_3.yfc_1 = _tmp_tjTimeCreated;
          this_3.zfc_1 = _tmp_tjCreationType;
          this_3.afd_1 = _tmp_tjOiUid;
          tmp_21.nfc_1 = this_3;
        }
        tmp_20.efc_1 = this_2;
      }
      return this_0;
    };
  }
  function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda($contentEntryUid, $nodeId, resultContinuation) {
    this.jfd_1 = $contentEntryUid;
    this.kfd_1 = $nodeId;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda).mfd = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda).he = function (p1, $completion) {
    return this.mfd((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.lfd_1.i5h(1, this.jfd_1);
            this.lfd_1.i5h(2, this.jfd_1);
            this.lfd_1.i5h(3, this.kfd_1);
            this.lfd_1.i5h(4, this.jfd_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.lfd_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda(this.jfd_1, this.kfd_1, completion);
    i.lfd_1 = _stmt;
    return i;
  };
  function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda_0($contentEntryUid, $nodeId, resultContinuation) {
    var i = new OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda($contentEntryUid, $nodeId, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.mfd(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.nfd_1);
  }
  protoOf(OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO OfflineItem (oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1).rfd = function (stmt, entity) {
    if (entity.gfc_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.gfc_1);
    }
    stmt.i5h(2, entity.hfc_1);
    stmt.i5h(3, entity.ifc_1);
    stmt.i5h(4, entity.jfc_1);
    stmt.i5h(5, entity.kfc_1);
    stmt.v5g(6, entity.lfc_1);
    stmt.i5h(7, entity.mfc_1);
  };
  protoOf(OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1).c5f = function (stmt, entity) {
    return this.rfd(stmt, entity instanceof OfflineItem ? entity : THROW_CCE());
  };
  function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda(this$0, $contentEntryUid, $nodeId, resultContinuation) {
    this.afe_1 = this$0;
    this.bfe_1 = $contentEntryUid;
    this.cfe_1 = $nodeId;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda).dfe = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda).z77 = function ($completion) {
    return this.dfe($completion);
  };
  protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT OfflineItem.*,\n               TransferJob.*,\n               \n        (SELECT SUM(TransferJobItem.tjTotalSize)\n                   FROM TransferJobItem\n                  WHERE TransferJobItem.tjiTjUid =  TransferJob.tjUid) AS totalSize,\n                (SELECT SUM(TransferJobItem.tjTransferred)\n                   FROM TransferJobItem\n                  WHERE TransferJobItem.tjiTjUid =  TransferJob.tjUid) AS transferred \n    ,\n               CAST(OfflineItem.oiActive AS INTEGER) = 1 AND (SELECT EXISTS(\n                       SELECT CompletedJob.tjUid\n                         FROM TransferJob CompletedJob\n                        WHERE CompletedJob.tjTableId = 738\n                          AND CompletedJob.tjEntityUid IN  \n                              \n        (SELECT ContentEntryVersion.cevUid\n                         FROM ContentEntryVersion\n                        WHERE ContentEntryVersion.cevContentEntryUid = CAST(? AS BIGINT))\n    \n                          AND CompletedJob.tjStatus = 21\n                          AND CompletedJob.tjType = 2\n                          AND CompletedJob.tjTimeCreated >= OfflineItem.oiLct\n                        LIMIT 1      \n               )) AS readyForOffline,\n               NULL AS latestErrorStr\n          FROM OfflineItem\n               LEFT JOIN TransferJob \n                         ON TransferJob.tjUid = \n                         (SELECT TransferJob.tjUid\n                            FROM TransferJob\n                           WHERE TransferJob.tjTableId = 738\n                             AND TransferJob.tjEntityUid IN  \n                                 \n        (SELECT ContentEntryVersion.cevUid\n                         FROM ContentEntryVersion\n                        WHERE ContentEntryVersion.cevContentEntryUid = CAST(? AS BIGINT))\n    \n                             AND TransferJob.tjStatus < 21\n                        ORDER BY TransferJob.tjTimeCreated DESC     \n                           LIMIT 1)\n         WHERE OfflineItem.oiNodeId = CAST(? AS BIGINT)\n           AND OfflineItem.oiContentEntryUid = CAST(? AS BIGINT)\n      ORDER BY OfflineItem.oiLct DESC\n         LIMIT 1     \n    ', VOID, VOID, VOID, '\n        SELECT OfflineItem.*,\n               TransferJob.*,\n               \n        (SELECT SUM(TransferJobItem.tjTotalSize)\n                   FROM TransferJobItem\n                  WHERE TransferJobItem.tjiTjUid =  TransferJob.tjUid) AS totalSize,\n                (SELECT SUM(TransferJobItem.tjTransferred)\n                   FROM TransferJobItem\n                  WHERE TransferJobItem.tjiTjUid =  TransferJob.tjUid) AS transferred \n    ,\n               CAST(OfflineItem.oiActive AS INTEGER) = 1 AND (SELECT EXISTS(\n                       SELECT CompletedJob.tjUid\n                         FROM TransferJob CompletedJob\n                        WHERE CompletedJob.tjTableId = 738\n                          AND CompletedJob.tjEntityUid IN  \n                              \n        (SELECT ContentEntryVersion.cevUid\n                         FROM ContentEntryVersion\n                        WHERE ContentEntryVersion.cevContentEntryUid = ?)\n    \n                          AND CompletedJob.tjStatus = 21\n                          AND CompletedJob.tjType = 2\n                          AND CompletedJob.tjTimeCreated >= OfflineItem.oiLct\n                        LIMIT 1      \n               )) AS readyForOffline,\n               NULL AS latestErrorStr\n          FROM OfflineItem\n               LEFT JOIN TransferJob \n                         ON TransferJob.tjUid = \n                         (SELECT TransferJob.tjUid\n                            FROM TransferJob\n                           WHERE TransferJob.tjTableId = 738\n                             AND TransferJob.tjEntityUid IN  \n                                 \n        (SELECT ContentEntryVersion.cevUid\n                         FROM ContentEntryVersion\n                        WHERE ContentEntryVersion.cevContentEntryUid = ?)\n    \n                             AND TransferJob.tjStatus < 21\n                        ORDER BY TransferJob.tjTimeCreated DESC     \n                           LIMIT 1)\n         WHERE OfflineItem.oiNodeId = ?\n           AND OfflineItem.oiContentEntryUid = ?\n      ORDER BY OfflineItem.oiLct DESC\n         LIMIT 1     \n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.afe_1.nfd_1, tmp_0, OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda_0(this.bfe_1, this.cfe_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda).y77 = function (completion) {
    return new OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda(this.afe_1, this.bfe_1, this.cfe_1, completion);
  };
  function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda_0(this$0, $contentEntryUid, $nodeId, resultContinuation) {
    var i = new OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda(this$0, $contentEntryUid, $nodeId, resultContinuation);
    var l = function ($completion) {
      return i.dfe($completion);
    };
    l.$arity = 0;
    return l;
  }
  function OfflineItemDao_JdbcImpl(_db) {
    OfflineItemDao.call(this);
    this.nfd_1 = _db;
    var tmp = this;
    tmp.ofd_1 = new OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1(this);
  }
  protoOf(OfflineItemDao_JdbcImpl).afc = function (contentEntryUid, nodeId) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['OfflineItem', 'TransferJob', 'TransferJobItem'];
    return doorFlow(this.nfd_1, tmp, OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda_0(this, contentEntryUid, nodeId, null));
  };
  function OfflineItemDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    OfflineItemDao.call(this);
    this.efe_1 = _db;
    this.ffe_1 = _repo;
    this.gfe_1 = _dao;
    this.hfe_1 = _httpClient;
    this.ife_1 = _clientId;
    this.jfe_1 = _endpoint;
  }
  protoOf(OfflineItemDao_Repo).afc = function (contentEntryUid, nodeId) {
    var _result = this.gfe_1.afc(contentEntryUid, nodeId);
    return _result;
  };
  function OutgoingReplicationDao() {
  }
  function OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.kfe_1);
  }
  protoOf(OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO OutgoingReplication (destNodeId, orPk1, orPk2, orPk3, orPk4, orTableId, orUid) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1).ofe = function (stmt, entity) {
    stmt.i5h(1, entity.g64_1);
    stmt.i5h(2, entity.i64_1);
    stmt.i5h(3, entity.j64_1);
    stmt.i5h(4, entity.k64_1);
    stmt.i5h(5, entity.l64_1);
    stmt.h5h(6, entity.h64_1);
    if (entity.f64_1.equals(new Long(0, 0))) {
      stmt.n5h(7, null);
    } else {
      stmt.i5h(7, entity.f64_1);
    }
  };
  protoOf(OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1).c5f = function (stmt, entity) {
    return this.ofe(stmt, entity instanceof OutgoingReplication ? entity : THROW_CCE());
  };
  function OutgoingReplicationDao_JdbcImpl(_db) {
    OutgoingReplicationDao.call(this);
    this.kfe_1 = _db;
    var tmp = this;
    tmp.lfe_1 = new OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1(this);
  }
  function PeerReviewerAllocationDao() {
  }
  function $upsertListCOROUTINE$292(_this__u8e3s4, entityList, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zfe_1 = _this__u8e3s4;
    this.aff_1 = entityList;
  }
  protoOf($upsertListCOROUTINE$292).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.bff_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.zfe_1.iff_1));
            var tmp_0 = this;
            tmp_0.cff_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.dff_1 = this.aff_1.w();
            var tmp_2 = this;
            tmp_2.eff_1 = this.dff_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.eff_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.fff_1 = this.eff_1.e();
            var tmp_3 = this;
            tmp_3.gff_1 = this.fff_1;
            if (this.gff_1.kff_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.bff_1.b62(140, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.hff_1 = suspendResult;
            this.gff_1.kff_1 = this.hff_1;
            var this_0 = this.cff_1;
            var element = this.hff_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.gff_1.pff_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.zfe_1.jff_1.qfe(this.aff_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            return Unit_instance;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$293(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.yff_1 = _this__u8e3s4;
    this.zff_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$293).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.afg_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.yff_1.iff_1));
            if (this.zff_1.kff_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.afg_1.b62(140, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.bfg_1 = suspendResult;
            this.zff_1.kff_1 = this.bfg_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.zff_1.pff_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.yff_1.jff_1.insertAsync(this.zff_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.zff_1.kff_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PeerReviewerAllocationDao_DoorWrapper(_db, _dao) {
    PeerReviewerAllocationDao.call(this);
    this.iff_1 = _db;
    this.jff_1 = _dao;
  }
  protoOf(PeerReviewerAllocationDao_DoorWrapper).pfe = function (clazzUid, includeInactive, $completion) {
    return this.jff_1.pfe(clazzUid, includeInactive, $completion);
  };
  protoOf(PeerReviewerAllocationDao_DoorWrapper).gc6 = function (cbUid, active, changeTime, $completion) {
    return this.jff_1.gc6(cbUid, active, changeTime, $completion);
  };
  protoOf(PeerReviewerAllocationDao_DoorWrapper).qfe = function (entityList, $completion) {
    var tmp = new $upsertListCOROUTINE$292(this, entityList, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PeerReviewerAllocationDao_DoorWrapper).cfg = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$293(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PeerReviewerAllocationDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.cfg(entity instanceof PeerReviewerAllocation ? entity : THROW_CCE(), $completion);
  };
  function PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda$lambda(_result) {
    return mapRows(_result, PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda$lambda$lambda(_result));
  }
  function PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_praUid = $_result.l5m('praUid');
      var _tmp_praMarkerSubmitterUid = $_result.l5m('praMarkerSubmitterUid');
      var _tmp_praToMarkerSubmitterUid = $_result.l5m('praToMarkerSubmitterUid');
      var _tmp_praAssignmentUid = $_result.l5m('praAssignmentUid');
      var _tmp_praActive = $_result.w65('praActive');
      var _tmp_praLct = $_result.l5m('praLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new PeerReviewerAllocation();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.PeerReviewerAllocationDao_JdbcImpl.getAllPeerReviewerAllocationsByClazzUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.kff_1 = _tmp_praUid;
      this_0.lff_1 = _tmp_praMarkerSubmitterUid;
      this_0.mff_1 = _tmp_praToMarkerSubmitterUid;
      this_0.nff_1 = _tmp_praAssignmentUid;
      this_0.off_1 = _tmp_praActive;
      this_0.pff_1 = _tmp_praLct;
      return this_0;
    };
  }
  function PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.dfg_1);
  }
  protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO PeerReviewerAllocation (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1).ifg = function (stmt, entity) {
    if (entity.kff_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.kff_1);
    }
    stmt.i5h(2, entity.lff_1);
    stmt.i5h(3, entity.mff_1);
    stmt.i5h(4, entity.nff_1);
    stmt.v5g(5, entity.off_1);
    stmt.i5h(6, entity.pff_1);
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1).c5f = function (stmt, entity) {
    return this.ifg(stmt, entity instanceof PeerReviewerAllocation ? entity : THROW_CCE());
  };
  function PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.dfg_1);
  }
  protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO PeerReviewerAllocation (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1).ifg = function (stmt, entity) {
    if (entity.kff_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.kff_1);
    }
    stmt.i5h(2, entity.lff_1);
    stmt.i5h(3, entity.mff_1);
    stmt.i5h(4, entity.nff_1);
    stmt.v5g(5, entity.off_1);
    stmt.i5h(6, entity.pff_1);
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1).c5f = function (stmt, entity) {
    return this.ifg(stmt, entity instanceof PeerReviewerAllocation ? entity : THROW_CCE());
  };
  function PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda($clazzUid, $includeInactive, resultContinuation) {
    this.tfg_1 = $clazzUid;
    this.ufg_1 = $includeInactive;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda).wfg = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda).he = function (p1, $completion) {
    return this.wfg((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.vfg_1.i5h(1, this.tfg_1);
            this.vfg_1.v5g(2, this.ufg_1);
            this.vfg_1.v5g(3, this.ufg_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.vfg_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda).z5e = function (_stmt, completion) {
    var i = new PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda(this.tfg_1, this.ufg_1, completion);
    i.vfg_1 = _stmt;
    return i;
  };
  function PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda_0($clazzUid, $includeInactive, resultContinuation) {
    var i = new PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda($clazzUid, $includeInactive, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.wfg(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda($active, $changeTime, $cbUid, resultContinuation) {
    this.ffh_1 = $active;
    this.gfh_1 = $changeTime;
    this.hfh_1 = $cbUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ifh_1.v5g(1, this.ffh_1);
            this.ifh_1.i5h(2, this.gfh_1);
            this.ifh_1.i5h(3, this.hfh_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.ifh_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda).z5e = function (_stmt, completion) {
    var i = new PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda(this.ffh_1, this.gfh_1, this.hfh_1, completion);
    i.ifh_1 = _stmt;
    return i;
  };
  function PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda_0($active, $changeTime, $cbUid, resultContinuation) {
    var i = new PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda($active, $changeTime, $cbUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$294(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.rfh_1 = _this__u8e3s4;
    this.sfh_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$294).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.rfh_1.ffg_1.j5g(this.sfh_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateActiveByUidCOROUTINE$295(_this__u8e3s4, cbUid, active, changeTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.bfi_1 = _this__u8e3s4;
    this.cfi_1 = cbUid;
    this.dfi_1 = active;
    this.efi_1 = changeTime;
  }
  protoOf($updateActiveByUidCOROUTINE$295).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE PeerReviewerAllocation \n           SET praActive = ?, \n               praLct = CAST(? AS BIGINT)\n         WHERE praUid = CAST(? AS BIGINT)', VOID, VOID, VOID, '\n        UPDATE PeerReviewerAllocation \n           SET praActive = ?, \n               praLct = ?\n         WHERE praUid = ?\n', false);
            suspendResult = prepareAndUseStatementAsync(this.bfi_1.dfg_1, tmp_0, PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda_0(this.dfi_1, this.efi_1, this.cfi_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PeerReviewerAllocationDao_JdbcImpl(_db) {
    PeerReviewerAllocationDao.call(this);
    this.dfg_1 = _db;
    var tmp = this;
    tmp.efg_1 = new PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1(this);
    var tmp_0 = this;
    tmp_0.ffg_1 = new PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1(this);
  }
  protoOf(PeerReviewerAllocationDao_JdbcImpl).qfe = function (entityList, $completion) {
    return this.efg_1.m5g(entityList, $completion);
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl).cfg = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$294(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.cfg(entity instanceof PeerReviewerAllocation ? entity : THROW_CCE(), $completion);
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl).pfe = function (clazzUid, includeInactive, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT PeerReviewerAllocation.*\n          FROM PeerReviewerAllocation\n         WHERE PeerReviewerAllocation.praAssignmentUid IN\n               (SELECT CourseBlock.cbEntityUid\n                  FROM CourseBlock\n                 WHERE CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n                   AND CourseBlock.cbType = 103\n                   AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive))\n           AND (CAST(? AS INTEGER) = 1 OR PeerReviewerAllocation.praActive)\n    ', VOID, VOID, VOID, '\n        SELECT PeerReviewerAllocation.*\n          FROM PeerReviewerAllocation\n         WHERE PeerReviewerAllocation.praAssignmentUid IN\n               (SELECT CourseBlock.cbEntityUid\n                  FROM CourseBlock\n                 WHERE CourseBlock.cbClazzUid = ?\n                   AND CourseBlock.cbType = 103\n                   AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive))\n           AND (CAST(? AS INTEGER) = 1 OR PeerReviewerAllocation.praActive)\n    \n', true);
    return prepareAndUseStatementAsync(this.dfg_1, tmp, PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda_0(clazzUid, includeInactive, null), $completion);
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl).gc6 = function (cbUid, active, changeTime, $completion) {
    var tmp = new $updateActiveByUidCOROUTINE$295(this, cbUid, active, changeTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function PeerReviewerAllocationDao_Repo$getAllPeerReviewerAllocationsByClazzUid$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda(this$0, $cbUid, $active, $changeTime, resultContinuation) {
    this.nfi_1 = this$0;
    this.ofi_1 = $cbUid;
    this.pfi_1 = $active;
    this.qfi_1 = $changeTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.nfi_1.tfi_1.gc6(this.ofi_1, this.pfi_1, this.qfi_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda).y77 = function (completion) {
    return new PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda(this.nfi_1, this.ofi_1, this.pfi_1, this.qfi_1, completion);
  };
  function PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda_0(this$0, $cbUid, $active, $changeTime, resultContinuation) {
    var i = new PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda(this$0, $cbUid, $active, $changeTime, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PeerReviewerAllocationDao_Repo$upsertList$slambda(this$0, $entityList, resultContinuation) {
    this.ffj_1 = this$0;
    this.gfj_1 = $entityList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PeerReviewerAllocationDao_Repo$upsertList$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PeerReviewerAllocationDao_Repo$upsertList$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(PeerReviewerAllocationDao_Repo$upsertList$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.ffj_1.tfi_1.qfe(this.gfj_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PeerReviewerAllocationDao_Repo$upsertList$slambda).y77 = function (completion) {
    return new PeerReviewerAllocationDao_Repo$upsertList$slambda(this.ffj_1, this.gfj_1, completion);
  };
  function PeerReviewerAllocationDao_Repo$upsertList$slambda_0(this$0, $entityList, resultContinuation) {
    var i = new PeerReviewerAllocationDao_Repo$upsertList$slambda(this$0, $entityList, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PeerReviewerAllocationDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.pfj_1 = this$0;
    this.qfj_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PeerReviewerAllocationDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PeerReviewerAllocationDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(PeerReviewerAllocationDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.pfj_1.tfi_1.insertAsync(this.qfj_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PeerReviewerAllocationDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new PeerReviewerAllocationDao_Repo$insertAsync$slambda(this.pfj_1, this.qfj_1, completion);
  };
  function PeerReviewerAllocationDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new PeerReviewerAllocationDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $getAllPeerReviewerAllocationsByClazzUidCOROUTINE$297(_this__u8e3s4, clazzUid, includeInactive, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zfj_1 = _this__u8e3s4;
    this.afk_1 = clazzUid;
    this.bfk_1 = includeInactive;
  }
  protoOf($getAllPeerReviewerAllocationsByClazzUidCOROUTINE$297).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.cfk_1 = this.zfj_1.sfi_1;
            var tmp_1 = this;
            tmp_1.dfk_1 = 'PeerReviewerAllocationDao/getAllPeerReviewerAllocationsByClazzUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.efk_1 = this.zfj_1.ufi_1;
            var tmp_3 = this;
            tmp_3.ffk_1 = this.efk_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.zfj_1.sfi_1.w38(), 'PeerReviewerAllocationDao/getAllPeerReviewerAllocationsByClazzUid');
            doorNodeIdHeader(this_0, this.zfj_1.sfi_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.zfj_1.sfi_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.afk_1));
            parameter(this_0, 'includeInactive', this.zfj_1.sfi_1.w38().k65_1.e45(serializer_2(BooleanCompanionObject_instance), this.bfk_1));
            tmp_4.gfk_1 = this_0;
            this.gfk_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.hfk_1 = this.ffk_1;
            var tmp_6 = this;
            tmp_6.ifk_1 = this.gfk_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.ifk_1, this.hfk_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.jfk_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.zfj_1.rfi_1, this.jfk_1, this.zfj_1.sfi_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.kfk_1 = this.kd_1;
              Napier_getInstance().q5d(this.kfk_1, 'DoorLog', PeerReviewerAllocationDao_Repo$getAllPeerReviewerAllocationsByClazzUid$lambda(this.cfk_1, this.dfk_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.zfj_1.tfi_1.pfe(this.afk_1, this.bfk_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$298(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.tfk_1 = _this__u8e3s4;
    this.ufk_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$298).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.tfk_1.sfi_1, 'PeerReviewerAllocation', PeerReviewerAllocationDao_Repo$insertAsync$slambda_0(this.tfk_1, this.ufk_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PeerReviewerAllocationDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    PeerReviewerAllocationDao.call(this);
    this.rfi_1 = _db;
    this.sfi_1 = _repo;
    this.tfi_1 = _dao;
    this.ufi_1 = _httpClient;
    this.vfi_1 = _clientId;
    this.wfi_1 = _endpoint;
  }
  protoOf(PeerReviewerAllocationDao_Repo).pfe = function (clazzUid, includeInactive, $completion) {
    var tmp = new $getAllPeerReviewerAllocationsByClazzUidCOROUTINE$297(this, clazzUid, includeInactive, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PeerReviewerAllocationDao_Repo).gc6 = function (cbUid, active, changeTime, $completion) {
    return withRepoChangeMonitorAsync(this.sfi_1, 'PeerReviewerAllocation', PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda_0(this, cbUid, active, changeTime, null), $completion);
  };
  protoOf(PeerReviewerAllocationDao_Repo).qfe = function (entityList, $completion) {
    return withRepoChangeMonitorAsync(this.sfi_1, 'PeerReviewerAllocation', PeerReviewerAllocationDao_Repo$upsertList$slambda_0(this, entityList, null), $completion);
  };
  protoOf(PeerReviewerAllocationDao_Repo).cfg = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$298(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PeerReviewerAllocationDao_Repo).insertAsync = function (entity, $completion) {
    return this.cfg(entity instanceof PeerReviewerAllocation ? entity : THROW_CCE(), $completion);
  };
  function PersonAuth2Dao() {
  }
  function PersonAuth2Dao_DoorWrapper(_db, _dao) {
    PersonAuth2Dao.call(this);
    this.wfk_1 = _db;
    this.xfk_1 = _dao;
  }
  protoOf(PersonAuth2Dao_DoorWrapper).vfk = function (auth, $completion) {
    auth.efl_1 = systemTimeInMillis();
    return this.xfk_1.vfk(auth, $completion);
  };
  function PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ffl_1);
  }
  protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO PersonAuth2 (pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1).kfl = function (stmt, entity) {
    stmt.i5h(1, entity.yfk_1);
    stmt.l5h(2, entity.zfk_1);
    stmt.l5h(3, entity.afl_1);
    stmt.i5h(4, entity.bfl_1);
    stmt.i5h(5, entity.cfl_1);
    stmt.i5h(6, entity.dfl_1);
    stmt.i5h(7, entity.efl_1);
  };
  protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1).c5f = function (stmt, entity) {
    return this.kfl(stmt, entity instanceof PersonAuth2 ? entity : THROW_CCE());
  };
  function PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ffl_1);
  }
  protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO PersonAuth2 (pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1).kfl = function (stmt, entity) {
    stmt.i5h(1, entity.yfk_1);
    stmt.l5h(2, entity.zfk_1);
    stmt.l5h(3, entity.afl_1);
    stmt.i5h(4, entity.bfl_1);
    stmt.i5h(5, entity.cfl_1);
    stmt.i5h(6, entity.dfl_1);
    stmt.i5h(7, entity.efl_1);
  };
  protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1).c5f = function (stmt, entity) {
    return this.kfl(stmt, entity instanceof PersonAuth2 ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$299(_this__u8e3s4, auth, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vfl_1 = _this__u8e3s4;
    this.wfl_1 = auth;
  }
  protoOf($insertAsyncCOROUTINE$299).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.vfl_1.hfl_1.j5g(this.wfl_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PersonAuth2Dao_JdbcImpl(_db) {
    PersonAuth2Dao.call(this);
    this.ffl_1 = _db;
    var tmp = this;
    tmp.gfl_1 = new PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1(this);
    var tmp_0 = this;
    tmp_0.hfl_1 = new PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1(this);
  }
  protoOf(PersonAuth2Dao_JdbcImpl).vfk = function (auth, $completion) {
    var tmp = new $insertAsyncCOROUTINE$299(this, auth, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function PersonAuth2Dao_Repo$insertAsync$slambda(this$0, $auth, resultContinuation) {
    this.ffm_1 = this$0;
    this.gfm_1 = $auth;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonAuth2Dao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonAuth2Dao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(PersonAuth2Dao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.ffm_1.jfm_1.vfk(this.gfm_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonAuth2Dao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new PersonAuth2Dao_Repo$insertAsync$slambda(this.ffm_1, this.gfm_1, completion);
  };
  function PersonAuth2Dao_Repo$insertAsync$slambda_0(this$0, $auth, resultContinuation) {
    var i = new PersonAuth2Dao_Repo$insertAsync$slambda(this$0, $auth, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$300(_this__u8e3s4, auth, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vfm_1 = _this__u8e3s4;
    this.wfm_1 = auth;
  }
  protoOf($insertAsyncCOROUTINE$300).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.vfm_1.ifm_1, 'PersonAuth2', PersonAuth2Dao_Repo$insertAsync$slambda_0(this.vfm_1, this.wfm_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PersonAuth2Dao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    PersonAuth2Dao.call(this);
    this.hfm_1 = _db;
    this.ifm_1 = _repo;
    this.jfm_1 = _dao;
    this.kfm_1 = _httpClient;
    this.lfm_1 = _clientId;
    this.mfm_1 = _endpoint;
  }
  protoOf(PersonAuth2Dao_Repo).vfk = function (auth, $completion) {
    var tmp = new $insertAsyncCOROUTINE$300(this, auth, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function PersonAuthDao() {
  }
  function PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.xfm_1);
  }
  protoOf(PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO PersonAuth (personAuthUid, passwordHash, personAuthStatus) VALUES(?, ?, ?)';
  };
  protoOf(PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).bfn = function (stmt, entity) {
    if (entity.cfn_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.cfn_1);
    }
    stmt.l5h(2, entity.dfn_1);
    stmt.h5h(3, entity.efn_1);
  };
  protoOf(PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).c5f = function (stmt, entity) {
    return this.bfn(stmt, entity instanceof PersonAuth ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$303(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.nfn_1 = _this__u8e3s4;
    this.ofn_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$303).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.nfn_1.yfm_1.j5g(this.ofn_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PersonAuthDao_JdbcImpl(_db) {
    PersonAuthDao.call(this);
    this.xfm_1 = _db;
    var tmp = this;
    tmp.yfm_1 = new PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1(this);
  }
  protoOf(PersonAuthDao_JdbcImpl).pfn = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$303(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonAuthDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.pfn(entity instanceof PersonAuth ? entity : THROW_CCE(), $completion);
  };
  function PersonDao() {
  }
  function $insertAsyncCOROUTINE$309(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.hfo_1 = _this__u8e3s4;
    this.ifo_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$309).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.jfo_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.hfo_1.lfo_1));
            if (this.ifo_1.f95_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.jfo_1.b62(9, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.kfo_1 = suspendResult;
            this.ifo_1.f95_1 = this.kfo_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.ifo_1.r95_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.hfo_1.mfo_1.insertAsync(this.ifo_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.ifo_1.f95_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PersonDao_DoorWrapper(_db, _dao) {
    PersonDao.call(this);
    this.lfo_1 = _db;
    this.mfo_1 = _dao;
  }
  protoOf(PersonDao_DoorWrapper).qfn = function (username, $completion) {
    return this.mfo_1.qfn(username, $completion);
  };
  protoOf(PersonDao_DoorWrapper).rfn = function (accountPersonUid, $completion) {
    return this.mfo_1.rfn(accountPersonUid, $completion);
  };
  protoOf(PersonDao_DoorWrapper).dc6 = function (uid) {
    return this.mfo_1.dc6(uid);
  };
  protoOf(PersonDao_DoorWrapper).sfn = function (uid, $completion) {
    return this.mfo_1.sfn(uid, $completion);
  };
  protoOf(PersonDao_DoorWrapper).tfn = function (entity, $completion) {
    entity.r95_1 = systemTimeInMillis();
    return this.mfo_1.tfn(entity, $completion);
  };
  protoOf(PersonDao_DoorWrapper).ufn = function (timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText) {
    return this.mfo_1.ufn(timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText);
  };
  protoOf(PersonDao_DoorWrapper).vfn = function (personUid, accountPersonUid) {
    return this.mfo_1.vfn(personUid, accountPersonUid);
  };
  protoOf(PersonDao_DoorWrapper).wfn = function (uid) {
    return this.mfo_1.wfn(uid);
  };
  protoOf(PersonDao_DoorWrapper).xfn = function (uid, $completion) {
    return this.mfo_1.xfn(uid, $completion);
  };
  protoOf(PersonDao_DoorWrapper).yfn = function (personUid, username, currentTime, $completion) {
    return this.mfo_1.yfn(personUid, username, currentTime, $completion);
  };
  protoOf(PersonDao_DoorWrapper).nfo = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$309(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.nfo(entity instanceof Person ? entity : THROW_CCE(), $completion);
  };
  function PersonDao_JdbcImpl$countUsername$slambda$lambda(_result) {
    return mapNextRow(_result, 0, PersonDao_JdbcImpl$countUsername$slambda$lambda$lambda(_result));
  }
  function PersonDao_JdbcImpl$countUsername$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function PersonDao_JdbcImpl$findByUidWithPicture$slambda$lambda(_result) {
    return mapNextRow(_result, null, PersonDao_JdbcImpl$findByUidWithPicture$slambda$lambda$lambda(_result));
  }
  function PersonDao_JdbcImpl$findByUidWithPicture$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_Person_nullCount = 0;
      var _tmp_personUid = $_result.l5m('personUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_gender = $_result.k5m('gender');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_active = $_result.w65('active');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.l5m('dateOfBirth');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.l5m('personGroupUid');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_personLct = $_result.l5m('personLct');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personType = $_result.k5m('personType');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.l5m('personMasterChangeSeqNum');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.l5m('personLocalChangeSeqNum');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.k5m('personLastChangedBy');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_admin = $_result.w65('admin');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.l5m('personPictureUid');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.l5m('personPictureLct');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_fileSize = $_result.k5m('fileSize');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.w65('personPictureActive');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6;
      // Inline function 'kotlin.apply' call
      var this_0 = new PersonAndPicture();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithPicture.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_Person_isAllNull) {
        var tmp_29 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new Person();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithPicture.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.f95_1 = _tmp_personUid;
        this_1.g95_1 = _tmp_username;
        this_1.h95_1 = _tmp_firstNames;
        this_1.i95_1 = _tmp_lastName;
        this_1.j95_1 = _tmp_emailAddr;
        this_1.k95_1 = _tmp_phoneNum;
        this_1.l95_1 = _tmp_gender;
        this_1.m95_1 = _tmp_active;
        this_1.n95_1 = _tmp_dateOfBirth;
        this_1.o95_1 = _tmp_personAddress;
        this_1.p95_1 = _tmp_personOrgId;
        this_1.q95_1 = _tmp_personGroupUid;
        this_1.r95_1 = _tmp_personLct;
        this_1.s95_1 = _tmp_personCountry;
        this_1.t95_1 = _tmp_personType;
        this_1.u95_1 = _tmp_personMasterChangeSeqNum;
        this_1.v95_1 = _tmp_personLocalChangeSeqNum;
        this_1.w95_1 = _tmp_personLastChangedBy;
        this_1.x95_1 = _tmp_admin;
        this_1.y95_1 = _tmp_personNotes;
        this_1.z95_1 = _tmp_fatherName;
        this_1.a96_1 = _tmp_fatherNumber;
        this_1.b96_1 = _tmp_motherName;
        this_1.c96_1 = _tmp_motherNum;
        tmp_29.ofo_1 = this_1;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_30 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new PersonPicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithPicture.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.d96_1 = _tmp_personPictureUid;
        this_2.e96_1 = _tmp_personPictureLct;
        this_2.f96_1 = _tmp_personPictureUri;
        this_2.g96_1 = _tmp_personPictureThumbnailUri;
        this_2.h96_1 = _tmp_fileSize;
        this_2.i96_1 = _tmp_personPictureActive;
        tmp_30.pfo_1 = this_2;
      }
      return this_0;
    };
  }
  function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_Person_nullCount = 0;
      var _tmp_personUid = $_result.l5m('personUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_gender = $_result.k5m('gender');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_active = $_result.w65('active');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.l5m('dateOfBirth');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.l5m('personGroupUid');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_personLct = $_result.l5m('personLct');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personType = $_result.k5m('personType');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.l5m('personMasterChangeSeqNum');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.l5m('personLocalChangeSeqNum');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.k5m('personLastChangedBy');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_admin = $_result.w65('admin');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.l5m('personPictureUid');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.l5m('personPictureLct');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_fileSize = $_result.k5m('fileSize');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.w65('personPictureActive');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6;
      // Inline function 'kotlin.apply' call
      var this_0 = new PersonAndPicture();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithPictureAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_Person_isAllNull) {
        var tmp_29 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new Person();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithPictureAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.f95_1 = _tmp_personUid;
        this_1.g95_1 = _tmp_username;
        this_1.h95_1 = _tmp_firstNames;
        this_1.i95_1 = _tmp_lastName;
        this_1.j95_1 = _tmp_emailAddr;
        this_1.k95_1 = _tmp_phoneNum;
        this_1.l95_1 = _tmp_gender;
        this_1.m95_1 = _tmp_active;
        this_1.n95_1 = _tmp_dateOfBirth;
        this_1.o95_1 = _tmp_personAddress;
        this_1.p95_1 = _tmp_personOrgId;
        this_1.q95_1 = _tmp_personGroupUid;
        this_1.r95_1 = _tmp_personLct;
        this_1.s95_1 = _tmp_personCountry;
        this_1.t95_1 = _tmp_personType;
        this_1.u95_1 = _tmp_personMasterChangeSeqNum;
        this_1.v95_1 = _tmp_personLocalChangeSeqNum;
        this_1.w95_1 = _tmp_personLastChangedBy;
        this_1.x95_1 = _tmp_admin;
        this_1.y95_1 = _tmp_personNotes;
        this_1.z95_1 = _tmp_fatherName;
        this_1.a96_1 = _tmp_fatherNumber;
        this_1.b96_1 = _tmp_motherName;
        this_1.c96_1 = _tmp_motherNum;
        tmp_29.ofo_1 = this_1;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_30 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new PersonPicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithPictureAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.d96_1 = _tmp_personPictureUid;
        this_2.e96_1 = _tmp_personPictureLct;
        this_2.f96_1 = _tmp_personPictureUri;
        this_2.g96_1 = _tmp_personPictureThumbnailUri;
        this_2.h96_1 = _tmp_fileSize;
        this_2.i96_1 = _tmp_personPictureActive;
        tmp_30.pfo_1 = this_2;
      }
      return this_0;
    };
  }
  function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda($uid, resultContinuation) {
    this.yfo_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).afp = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.afp((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.zfo_1.i5h(1, this.yfo_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.zfo_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda(this.yfo_1, completion);
    i.zfo_1 = _stmt;
    return i;
  };
  function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda_0($uid, resultContinuation) {
    var i = new PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda($uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.afp(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) {
    return mapNextRow(_result, null, PersonDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result));
  }
  function PersonDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_personUid = $_result.l5m('personUid');
      var _tmp_username = $_result.rz('username');
      var _tmp_firstNames = $_result.rz('firstNames');
      var _tmp_lastName = $_result.rz('lastName');
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var _tmp_gender = $_result.k5m('gender');
      var _tmp_active = $_result.w65('active');
      var _tmp_dateOfBirth = $_result.l5m('dateOfBirth');
      var _tmp_personAddress = $_result.rz('personAddress');
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var _tmp_personGroupUid = $_result.l5m('personGroupUid');
      var _tmp_personLct = $_result.l5m('personLct');
      var _tmp_personCountry = $_result.rz('personCountry');
      var _tmp_personType = $_result.k5m('personType');
      var _tmp_personMasterChangeSeqNum = $_result.l5m('personMasterChangeSeqNum');
      var _tmp_personLocalChangeSeqNum = $_result.l5m('personLocalChangeSeqNum');
      var _tmp_personLastChangedBy = $_result.k5m('personLastChangedBy');
      var _tmp_admin = $_result.w65('admin');
      var _tmp_personNotes = $_result.rz('personNotes');
      var _tmp_fatherName = $_result.rz('fatherName');
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var _tmp_motherName = $_result.rz('motherName');
      var _tmp_motherNum = $_result.rz('motherNum');
      // Inline function 'kotlin.apply' call
      var this_0 = new Person();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.f95_1 = _tmp_personUid;
      this_0.g95_1 = _tmp_username;
      this_0.h95_1 = _tmp_firstNames;
      this_0.i95_1 = _tmp_lastName;
      this_0.j95_1 = _tmp_emailAddr;
      this_0.k95_1 = _tmp_phoneNum;
      this_0.l95_1 = _tmp_gender;
      this_0.m95_1 = _tmp_active;
      this_0.n95_1 = _tmp_dateOfBirth;
      this_0.o95_1 = _tmp_personAddress;
      this_0.p95_1 = _tmp_personOrgId;
      this_0.q95_1 = _tmp_personGroupUid;
      this_0.r95_1 = _tmp_personLct;
      this_0.s95_1 = _tmp_personCountry;
      this_0.t95_1 = _tmp_personType;
      this_0.u95_1 = _tmp_personMasterChangeSeqNum;
      this_0.v95_1 = _tmp_personLocalChangeSeqNum;
      this_0.w95_1 = _tmp_personLastChangedBy;
      this_0.x95_1 = _tmp_admin;
      this_0.y95_1 = _tmp_personNotes;
      this_0.z95_1 = _tmp_fatherName;
      this_0.a96_1 = _tmp_fatherNumber;
      this_0.b96_1 = _tmp_motherName;
      this_0.c96_1 = _tmp_motherNum;
      return this_0;
    };
  }
  function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda$lambda$lambda(_result));
  }
  function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_Person_nullCount = 0;
      var _tmp_personUid = $_result.l5m('personUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_gender = $_result.k5m('gender');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_active = $_result.w65('active');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.l5m('dateOfBirth');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.l5m('personGroupUid');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_personLct = $_result.l5m('personLct');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personType = $_result.k5m('personType');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.l5m('personMasterChangeSeqNum');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.l5m('personLocalChangeSeqNum');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.k5m('personLastChangedBy');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_admin = $_result.w65('admin');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.l5m('personPictureUid');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.l5m('personPictureLct');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_fileSize = $_result.k5m('fileSize');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.w65('personPictureActive');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6;
      // Inline function 'kotlin.apply' call
      var this_0 = new PersonAndListDisplayDetails();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_Person_isAllNull) {
        var tmp_29 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new Person();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.f95_1 = _tmp_personUid;
        this_1.g95_1 = _tmp_username;
        this_1.h95_1 = _tmp_firstNames;
        this_1.i95_1 = _tmp_lastName;
        this_1.j95_1 = _tmp_emailAddr;
        this_1.k95_1 = _tmp_phoneNum;
        this_1.l95_1 = _tmp_gender;
        this_1.m95_1 = _tmp_active;
        this_1.n95_1 = _tmp_dateOfBirth;
        this_1.o95_1 = _tmp_personAddress;
        this_1.p95_1 = _tmp_personOrgId;
        this_1.q95_1 = _tmp_personGroupUid;
        this_1.r95_1 = _tmp_personLct;
        this_1.s95_1 = _tmp_personCountry;
        this_1.t95_1 = _tmp_personType;
        this_1.u95_1 = _tmp_personMasterChangeSeqNum;
        this_1.v95_1 = _tmp_personLocalChangeSeqNum;
        this_1.w95_1 = _tmp_personLastChangedBy;
        this_1.x95_1 = _tmp_admin;
        this_1.y95_1 = _tmp_personNotes;
        this_1.z95_1 = _tmp_fatherName;
        this_1.a96_1 = _tmp_fatherNumber;
        this_1.b96_1 = _tmp_motherName;
        this_1.c96_1 = _tmp_motherNum;
        tmp_29.bfp_1 = this_1;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_30 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new PersonPicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.d96_1 = _tmp_personPictureUid;
        this_2.e96_1 = _tmp_personPictureLct;
        this_2.f96_1 = _tmp_personPictureUri;
        this_2.g96_1 = _tmp_personPictureThumbnailUri;
        this_2.h96_1 = _tmp_fileSize;
        this_2.i96_1 = _tmp_personPictureActive;
        tmp_30.cfp_1 = this_2;
      }
      return this_0;
    };
  }
  function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda$lambda$lambda(_result));
  }
  function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) {
    this.lfp_1 = $accountPersonUid;
    this.mfp_1 = $excludeClazz;
    this.nfp_1 = $timestamp;
    this.ofp_1 = $excludeSelected;
    this.pfp_1 = $searchText;
    this.qfp_1 = $sortOrder;
    this.rfp_1 = $_limit;
    this.sfp_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda).ufp = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda).he = function (p1, $completion) {
    return this.ufp((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.tfp_1.i5h(1, this.lfp_1);
            this.tfp_1.i5h(2, this.lfp_1);
            this.tfp_1.i5h(3, this.lfp_1);
            this.tfp_1.i5h(4, this.lfp_1);
            this.tfp_1.i5h(5, this.lfp_1);
            this.tfp_1.i5h(6, this.lfp_1);
            this.tfp_1.i5h(7, this.lfp_1);
            this.tfp_1.i5h(8, this.mfp_1);
            this.tfp_1.i5h(9, this.mfp_1);
            this.tfp_1.i5h(10, this.nfp_1);
            var tmp_0 = this.tfp_1.e5g();
            var this_0 = this.ofp_1;
            this.tfp_1.m5h(11, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.tfp_1.l5h(12, this.pfp_1);
            this.tfp_1.l5h(13, this.pfp_1);
            this.tfp_1.h5h(14, this.qfp_1);
            this.tfp_1.h5h(15, this.qfp_1);
            this.tfp_1.h5h(16, this.rfp_1);
            this.tfp_1.h5h(17, this.sfp_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.tfp_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda).z5e = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda(this.lfp_1, this.mfp_1, this.nfp_1, this.ofp_1, this.pfp_1, this.qfp_1, this.rfp_1, this.sfp_1, completion);
    i.tfp_1 = _stmt;
    return i;
  };
  function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda_0($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) {
    var i = new PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.ufp(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, resultContinuation) {
    this.dfq_1 = $accountPersonUid;
    this.efq_1 = $excludeClazz;
    this.ffq_1 = $timestamp;
    this.gfq_1 = $excludeSelected;
    this.hfq_1 = $searchText;
    this.ifq_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.jfq_1.i5h(1, this.dfq_1);
            this.jfq_1.i5h(2, this.dfq_1);
            this.jfq_1.i5h(3, this.dfq_1);
            this.jfq_1.i5h(4, this.dfq_1);
            this.jfq_1.i5h(5, this.dfq_1);
            this.jfq_1.i5h(6, this.dfq_1);
            this.jfq_1.i5h(7, this.dfq_1);
            this.jfq_1.i5h(8, this.efq_1);
            this.jfq_1.i5h(9, this.efq_1);
            this.jfq_1.i5h(10, this.ffq_1);
            var tmp_0 = this.jfq_1.e5g();
            var this_0 = this.gfq_1;
            this.jfq_1.m5h(11, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.jfq_1.l5h(12, this.hfq_1);
            this.jfq_1.l5h(13, this.hfq_1);
            this.jfq_1.h5h(14, this.ifq_1);
            this.jfq_1.h5h(15, this.ifq_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.jfq_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda).z5e = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda(this.dfq_1, this.efq_1, this.ffq_1, this.gfq_1, this.hfq_1, this.ifq_1, completion);
    i.jfq_1 = _stmt;
    return i;
  };
  function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda_0($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, resultContinuation) {
    var i = new PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_Person_nullCount = 0;
      var _tmp_personUid = $_result.l5m('personUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_gender = $_result.k5m('gender');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_active = $_result.w65('active');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.l5m('dateOfBirth');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.l5m('personGroupUid');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_personLct = $_result.l5m('personLct');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personType = $_result.k5m('personType');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.l5m('personMasterChangeSeqNum');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.l5m('personLocalChangeSeqNum');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.k5m('personLastChangedBy');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_admin = $_result.w65('admin');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24;
      var _tmp_PersonParentJoin_nullCount = 0;
      var _tmp_ppjUid = $_result.l5m('ppjUid');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_ppjPcsn = $_result.l5m('ppjPcsn');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_ppjLcsn = $_result.l5m('ppjLcsn');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_ppjLcb = $_result.k5m('ppjLcb');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_ppjLct = $_result.l5m('ppjLct');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_ppjParentPersonUid = $_result.l5m('ppjParentPersonUid');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_ppjMinorPersonUid = $_result.l5m('ppjMinorPersonUid');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_ppjRelationship = $_result.k5m('ppjRelationship');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_ppjEmail = $_result.rz('ppjEmail');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_ppjPhone = $_result.rz('ppjPhone');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_ppjInactive = $_result.w65('ppjInactive');
      var tmp_33;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_ppjStatus = $_result.k5m('ppjStatus');
      var tmp_34;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_ppjApprovalTiemstamp = $_result.l5m('ppjApprovalTiemstamp');
      var tmp_35;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_ppjApprovalIpAddr = $_result.rz('ppjApprovalIpAddr');
      var tmp_36;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_PersonParentJoin_isAllNull = _tmp_PersonParentJoin_nullCount === 14;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.l5m('personPictureUid');
      var tmp_37;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.l5m('personPictureLct');
      var tmp_38;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_39;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_40;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_fileSize = $_result.k5m('fileSize');
      var tmp_41;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.w65('personPictureActive');
      var tmp_42;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6;
      var _tmp_TransferJobItem_nullCount = 0;
      var _tmp_tjiUid = $_result.k5m('tjiUid');
      var tmp_43;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_tjiTjUid = $_result.k5m('tjiTjUid');
      var tmp_44;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_tjTotalSize = $_result.l5m('tjTotalSize');
      var tmp_45;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_45 = Unit_instance;
      }
      var _tmp_tjTransferred = $_result.l5m('tjTransferred');
      var tmp_46;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_46 = Unit_instance;
      }
      var _tmp_tjAttemptCount = $_result.k5m('tjAttemptCount');
      var tmp_47;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_47 = Unit_instance;
      }
      var _tmp_tjiSrc = $_result.rz('tjiSrc');
      var tmp_48;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_48 = Unit_instance;
      }
      var _tmp_tjiDest = $_result.rz('tjiDest');
      var tmp_49;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_49 = Unit_instance;
      }
      var _tmp_tjiType = $_result.k5m('tjiType');
      var tmp_50;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_50 = Unit_instance;
      }
      var _tmp_tjiStatus = $_result.k5m('tjiStatus');
      var tmp_51;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_51 = Unit_instance;
      }
      var _tmp_tjiTableId = $_result.k5m('tjiTableId');
      var tmp_52;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_52 = Unit_instance;
      }
      var _tmp_tjiEntityUid = $_result.l5m('tjiEntityUid');
      var tmp_53;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_53 = Unit_instance;
      }
      var _tmp_tjiEntityEtag = $_result.l5m('tjiEntityEtag');
      var tmp_54;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_54 = Unit_instance;
      }
      var _tmp_tjiLockIdToRelease = $_result.l5m('tjiLockIdToRelease');
      var tmp_55;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_55 = Unit_instance;
      }
      var _tmp_tjiPartialTmpFile = $_result.rz('tjiPartialTmpFile');
      var tmp_56;
      if ($_result.d67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_56 = Unit_instance;
      }
      var _tmp_TransferJobItem_isAllNull = _tmp_TransferJobItem_nullCount === 14;
      // Inline function 'kotlin.apply' call
      var this_0 = new PersonAndDisplayDetail();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_Person_isAllNull) {
        var tmp_57 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new Person();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.f95_1 = _tmp_personUid;
        this_1.g95_1 = _tmp_username;
        this_1.h95_1 = _tmp_firstNames;
        this_1.i95_1 = _tmp_lastName;
        this_1.j95_1 = _tmp_emailAddr;
        this_1.k95_1 = _tmp_phoneNum;
        this_1.l95_1 = _tmp_gender;
        this_1.m95_1 = _tmp_active;
        this_1.n95_1 = _tmp_dateOfBirth;
        this_1.o95_1 = _tmp_personAddress;
        this_1.p95_1 = _tmp_personOrgId;
        this_1.q95_1 = _tmp_personGroupUid;
        this_1.r95_1 = _tmp_personLct;
        this_1.s95_1 = _tmp_personCountry;
        this_1.t95_1 = _tmp_personType;
        this_1.u95_1 = _tmp_personMasterChangeSeqNum;
        this_1.v95_1 = _tmp_personLocalChangeSeqNum;
        this_1.w95_1 = _tmp_personLastChangedBy;
        this_1.x95_1 = _tmp_admin;
        this_1.y95_1 = _tmp_personNotes;
        this_1.z95_1 = _tmp_fatherName;
        this_1.a96_1 = _tmp_fatherNumber;
        this_1.b96_1 = _tmp_motherName;
        this_1.c96_1 = _tmp_motherNum;
        tmp_57.kfq_1 = this_1;
      }
      if (!_tmp_PersonParentJoin_isAllNull) {
        var tmp_58 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new PersonParentJoin();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.ofq_1 = _tmp_ppjUid;
        this_2.pfq_1 = _tmp_ppjPcsn;
        this_2.qfq_1 = _tmp_ppjLcsn;
        this_2.rfq_1 = _tmp_ppjLcb;
        this_2.sfq_1 = _tmp_ppjLct;
        this_2.tfq_1 = _tmp_ppjParentPersonUid;
        this_2.ufq_1 = _tmp_ppjMinorPersonUid;
        this_2.vfq_1 = _tmp_ppjRelationship;
        this_2.wfq_1 = _tmp_ppjEmail;
        this_2.xfq_1 = _tmp_ppjPhone;
        this_2.yfq_1 = _tmp_ppjInactive;
        this_2.zfq_1 = _tmp_ppjStatus;
        this_2.afr_1 = _tmp_ppjApprovalTiemstamp;
        this_2.bfr_1 = _tmp_ppjApprovalIpAddr;
        tmp_58.lfq_1 = this_2;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_59 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new PersonPicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.d96_1 = _tmp_personPictureUid;
        this_3.e96_1 = _tmp_personPictureLct;
        this_3.f96_1 = _tmp_personPictureUri;
        this_3.g96_1 = _tmp_personPictureThumbnailUri;
        this_3.h96_1 = _tmp_fileSize;
        this_3.i96_1 = _tmp_personPictureActive;
        tmp_59.mfq_1 = this_3;
      }
      if (!_tmp_TransferJobItem_isAllNull) {
        var tmp_60 = this_0;
        // Inline function 'kotlin.apply' call
        var this_4 = new TransferJobItem();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_4.vbw_1 = _tmp_tjiUid;
        this_4.wbw_1 = _tmp_tjiTjUid;
        this_4.xbw_1 = _tmp_tjTotalSize;
        this_4.ybw_1 = _tmp_tjTransferred;
        this_4.zbw_1 = _tmp_tjAttemptCount;
        this_4.abx_1 = _tmp_tjiSrc;
        this_4.bbx_1 = _tmp_tjiDest;
        this_4.cbx_1 = _tmp_tjiType;
        this_4.dbx_1 = _tmp_tjiStatus;
        this_4.ebx_1 = _tmp_tjiTableId;
        this_4.fbx_1 = _tmp_tjiEntityUid;
        this_4.gbx_1 = _tmp_tjiEntityEtag;
        this_4.hbx_1 = _tmp_tjiLockIdToRelease;
        this_4.ibx_1 = _tmp_tjiPartialTmpFile;
        tmp_60.nfq_1 = this_4;
      }
      return this_0;
    };
  }
  function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda($personUid, $accountPersonUid, resultContinuation) {
    this.kfr_1 = $personUid;
    this.lfr_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda).nfr = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.nfr((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.mfr_1.i5h(1, this.kfr_1);
            this.mfr_1.i5h(2, this.lfr_1);
            this.mfr_1.i5h(3, this.kfr_1);
            this.mfr_1.i5h(4, this.kfr_1);
            this.mfr_1.i5h(5, this.kfr_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.mfr_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda(this.kfr_1, this.lfr_1, completion);
    i.mfr_1 = _stmt;
    return i;
  };
  function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda_0($personUid, $accountPersonUid, resultContinuation) {
    var i = new PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda($personUid, $accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.nfr(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonDao_JdbcImpl$getNamesByUid$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, PersonDao_JdbcImpl$getNamesByUid$slambda$slambda$lambda$lambda(_result));
  }
  function PersonDao_JdbcImpl$getNamesByUid$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_firstNames = $_result.rz('firstNames');
      var _tmp_lastName = $_result.rz('lastName');
      // Inline function 'kotlin.apply' call
      var this_0 = new PersonNames();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.getNamesByUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.ofr_1 = _tmp_firstNames;
      this_0.pfr_1 = _tmp_lastName;
      return this_0;
    };
  }
  function PersonDao_JdbcImpl$getNamesByUid$slambda$slambda($uid, resultContinuation) {
    this.yfr_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda$slambda).afs = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda$slambda).he = function (p1, $completion) {
    return this.afs((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.zfr_1.i5h(1, this.yfr_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.zfr_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, PersonDao_JdbcImpl$getNamesByUid$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$getNamesByUid$slambda$slambda(this.yfr_1, completion);
    i.zfr_1 = _stmt;
    return i;
  };
  function PersonDao_JdbcImpl$getNamesByUid$slambda$slambda_0($uid, resultContinuation) {
    var i = new PersonDao_JdbcImpl$getNamesByUid$slambda$slambda($uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.afs(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonDao_JdbcImpl$getNamesByUidAsync$slambda$lambda(_result) {
    return mapNextRow(_result, null, PersonDao_JdbcImpl$getNamesByUidAsync$slambda$lambda$lambda(_result));
  }
  function PersonDao_JdbcImpl$getNamesByUidAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_firstNames = $_result.rz('firstNames');
      var _tmp_lastName = $_result.rz('lastName');
      // Inline function 'kotlin.apply' call
      var this_0 = new PersonNames();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.getNamesByUidAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.ofr_1 = _tmp_firstNames;
      this_0.pfr_1 = _tmp_lastName;
      return this_0;
    };
  }
  function PersonDao_JdbcImpl$_insertAdapterPerson_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.bfs_1);
  }
  protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO Person (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_abort$1).jfs = function (stmt, entity) {
    if (entity.f95_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.f95_1);
    }
    stmt.l5h(2, entity.g95_1);
    stmt.l5h(3, entity.h95_1);
    stmt.l5h(4, entity.i95_1);
    stmt.l5h(5, entity.j95_1);
    stmt.l5h(6, entity.k95_1);
    stmt.h5h(7, entity.l95_1);
    stmt.v5g(8, entity.m95_1);
    stmt.i5h(9, entity.n95_1);
    stmt.l5h(10, entity.o95_1);
    stmt.l5h(11, entity.p95_1);
    stmt.i5h(12, entity.q95_1);
    stmt.i5h(13, entity.r95_1);
    stmt.l5h(14, entity.s95_1);
    stmt.h5h(15, entity.t95_1);
    stmt.i5h(16, entity.u95_1);
    stmt.i5h(17, entity.v95_1);
    stmt.h5h(18, entity.w95_1);
    stmt.v5g(19, entity.x95_1);
    stmt.l5h(20, entity.y95_1);
    stmt.l5h(21, entity.z95_1);
    stmt.l5h(22, entity.a96_1);
    stmt.l5h(23, entity.b96_1);
    stmt.l5h(24, entity.c96_1);
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_abort$1).c5f = function (stmt, entity) {
    return this.jfs(stmt, entity instanceof Person ? entity : THROW_CCE());
  };
  function PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.bfs_1);
  }
  protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO Person (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1).jfs = function (stmt, entity) {
    if (entity.f95_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.f95_1);
    }
    stmt.l5h(2, entity.g95_1);
    stmt.l5h(3, entity.h95_1);
    stmt.l5h(4, entity.i95_1);
    stmt.l5h(5, entity.j95_1);
    stmt.l5h(6, entity.k95_1);
    stmt.h5h(7, entity.l95_1);
    stmt.v5g(8, entity.m95_1);
    stmt.i5h(9, entity.n95_1);
    stmt.l5h(10, entity.o95_1);
    stmt.l5h(11, entity.p95_1);
    stmt.i5h(12, entity.q95_1);
    stmt.i5h(13, entity.r95_1);
    stmt.l5h(14, entity.s95_1);
    stmt.h5h(15, entity.t95_1);
    stmt.i5h(16, entity.u95_1);
    stmt.i5h(17, entity.v95_1);
    stmt.h5h(18, entity.w95_1);
    stmt.v5g(19, entity.x95_1);
    stmt.l5h(20, entity.y95_1);
    stmt.l5h(21, entity.z95_1);
    stmt.l5h(22, entity.a96_1);
    stmt.l5h(23, entity.b96_1);
    stmt.l5h(24, entity.c96_1);
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1).c5f = function (stmt, entity) {
    return this.jfs(stmt, entity instanceof Person ? entity : THROW_CCE());
  };
  function PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.bfs_1);
  }
  protoOf(PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO PersonAuth (personAuthUid, passwordHash, personAuthStatus) VALUES(?, ?, ?)';
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).bfn = function (stmt, entity) {
    if (entity.cfn_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.cfn_1);
    }
    stmt.l5h(2, entity.dfn_1);
    stmt.h5h(3, entity.efn_1);
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).c5f = function (stmt, entity) {
    return this.bfn(stmt, entity instanceof PersonAuth ? entity : THROW_CCE());
  };
  function PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.bfs_1);
  }
  protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO PersonGroup (groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).qfs = function (stmt, entity) {
    if (entity.rfs_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.rfs_1);
    }
    stmt.i5h(2, entity.sfs_1);
    stmt.i5h(3, entity.tfs_1);
    stmt.h5h(4, entity.ufs_1);
    stmt.i5h(5, entity.vfs_1);
    stmt.l5h(6, entity.wfs_1);
    stmt.v5g(7, entity.xfs_1);
    stmt.h5h(8, entity.yfs_1);
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).c5f = function (stmt, entity) {
    return this.qfs(stmt, entity instanceof PersonGroup ? entity : THROW_CCE());
  };
  function PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.bfs_1);
  }
  protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO PersonGroupMember (groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).bft = function (stmt, entity) {
    if (entity.cft_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.cft_1);
    }
    stmt.v5g(2, entity.dft_1);
    stmt.i5h(3, entity.eft_1);
    stmt.i5h(4, entity.fft_1);
    stmt.i5h(5, entity.gft_1);
    stmt.i5h(6, entity.hft_1);
    stmt.h5h(7, entity.ift_1);
    stmt.i5h(8, entity.jft_1);
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).c5f = function (stmt, entity) {
    return this.bft(stmt, entity instanceof PersonGroupMember ? entity : THROW_CCE());
  };
  function PersonDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) {
    this.sft_1 = $entity;
    this.tft_1 = $_result;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$updateAsync$slambda).y5e = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl$updateAsync$slambda).he = function (p1, $completion) {
    return this.y5e((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonDao_JdbcImpl$updateAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.uft_1.l5h(1, this.sft_1.g95_1);
            this.uft_1.l5h(2, this.sft_1.h95_1);
            this.uft_1.l5h(3, this.sft_1.i95_1);
            this.uft_1.l5h(4, this.sft_1.j95_1);
            this.uft_1.l5h(5, this.sft_1.k95_1);
            this.uft_1.h5h(6, this.sft_1.l95_1);
            this.uft_1.v5g(7, this.sft_1.m95_1);
            this.uft_1.i5h(8, this.sft_1.n95_1);
            this.uft_1.l5h(9, this.sft_1.o95_1);
            this.uft_1.l5h(10, this.sft_1.p95_1);
            this.uft_1.i5h(11, this.sft_1.q95_1);
            this.uft_1.i5h(12, this.sft_1.r95_1);
            this.uft_1.l5h(13, this.sft_1.s95_1);
            this.uft_1.h5h(14, this.sft_1.t95_1);
            this.uft_1.i5h(15, this.sft_1.u95_1);
            this.uft_1.i5h(16, this.sft_1.v95_1);
            this.uft_1.h5h(17, this.sft_1.w95_1);
            this.uft_1.v5g(18, this.sft_1.x95_1);
            this.uft_1.l5h(19, this.sft_1.y95_1);
            this.uft_1.l5h(20, this.sft_1.z95_1);
            this.uft_1.l5h(21, this.sft_1.a96_1);
            this.uft_1.l5h(22, this.sft_1.b96_1);
            this.uft_1.l5h(23, this.sft_1.c96_1);
            this.uft_1.i5h(24, this.sft_1.f95_1);
            this.vft_1 = this.tft_1._v;
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.uft_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            var ARGUMENT_0 = this.vft_1 + ARGUMENT | 0;
            this.tft_1._v = ARGUMENT_0;
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonDao_JdbcImpl$updateAsync$slambda).z5e = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$updateAsync$slambda(this.sft_1, this.tft_1, completion);
    i.uft_1 = _stmt;
    return i;
  };
  function PersonDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) {
    var i = new PersonDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.y5e(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonDao_JdbcImpl$countUsername$slambda($username, resultContinuation) {
    this.efu_1 = $username;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$countUsername$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl$countUsername$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonDao_JdbcImpl$countUsername$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ffu_1.l5h(1, this.efu_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ffu_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, PersonDao_JdbcImpl$countUsername$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonDao_JdbcImpl$countUsername$slambda).z5e = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$countUsername$slambda(this.efu_1, completion);
    i.ffu_1 = _stmt;
    return i;
  };
  function PersonDao_JdbcImpl$countUsername$slambda_0($username, resultContinuation) {
    var i = new PersonDao_JdbcImpl$countUsername$slambda($username, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonDao_JdbcImpl$findByUidWithPicture$slambda($accountPersonUid, resultContinuation) {
    this.ofu_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$findByUidWithPicture$slambda).afp = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl$findByUidWithPicture$slambda).he = function (p1, $completion) {
    return this.afp((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonDao_JdbcImpl$findByUidWithPicture$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.pfu_1.i5h(1, this.ofu_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.pfu_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, PersonDao_JdbcImpl$findByUidWithPicture$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonDao_JdbcImpl$findByUidWithPicture$slambda).z5e = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$findByUidWithPicture$slambda(this.ofu_1, completion);
    i.pfu_1 = _stmt;
    return i;
  };
  function PersonDao_JdbcImpl$findByUidWithPicture$slambda_0($accountPersonUid, resultContinuation) {
    var i = new PersonDao_JdbcImpl$findByUidWithPicture$slambda($accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.afp(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation) {
    this.yfu_1 = this$0;
    this.zfu_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).afv = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).z77 = function ($completion) {
    return this.afv($completion);
  };
  protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT Person.*, PersonPicture.*\n          FROM Person\n               LEFT JOIN PersonPicture\n                    ON PersonPicture.personPictureUid = Person.personUid\n         WHERE Person.personUid = CAST(? AS BIGINT)           \n    ', VOID, VOID, VOID, '\n        SELECT Person.*, PersonPicture.*\n          FROM Person\n               LEFT JOIN PersonPicture\n                    ON PersonPicture.personPictureUid = Person.personUid\n         WHERE Person.personUid = ?           \n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.yfu_1.bfs_1, tmp_0, PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda_0(this.zfu_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).y77 = function (completion) {
    return new PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this.yfu_1, this.zfu_1, completion);
  };
  function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda_0(this$0, $uid, resultContinuation) {
    var i = new PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation);
    var l = function ($completion) {
      return i.afv($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) {
    this.jfv_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$findByUidAsync$slambda).lfv = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl$findByUidAsync$slambda).he = function (p1, $completion) {
    return this.lfv((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonDao_JdbcImpl$findByUidAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.kfv_1.i5h(1, this.jfv_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.kfv_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, PersonDao_JdbcImpl$findByUidAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonDao_JdbcImpl$findByUidAsync$slambda).z5e = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$findByUidAsync$slambda(this.jfv_1, completion);
    i.kfv_1 = _stmt;
    return i;
  };
  function PersonDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) {
    var i = new PersonDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.lfv(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1(this$0, $accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder) {
    this.sfv_1 = this$0;
    this.tfv_1 = $accountPersonUid;
    this.ufv_1 = $excludeClazz;
    this.vfv_1 = $timestamp;
    this.wfv_1 = $excludeSelected;
    this.xfv_1 = $searchText;
    this.yfv_1 = $sortOrder;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['SystemPermission', 'ClazzEnrolment', 'Person', 'PersonPicture', 'CoursePermission'];
    DoorLimitOffsetPagingSource.call(this, this$0.bfs_1, tmp$ret$2);
  }
  protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1).zfv = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig("SELECT * FROM (\n         WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n              /* Select personUids that can be viewed based on CoursePermission given the active user \n                 for their enrolments \n              */\n              (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n                 FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n                      JOIN CoursePermission \n                           ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n                          AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n                          AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n                      JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n                           ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                WHERE CAST(? AS BIGINT) != 0\n                  AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                  AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n              \n               UNION\n               /* Select personUids that can be viewed based on CoursePermission for the active user\n                  where the CoursePermission is granted directly to them\n                */   \n               SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n                 FROM CoursePermission\n                      JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n                           ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                WHERE CAST(? AS BIGINT) != 0\n                  AND CoursePermission.cpToPersonUid = CAST(? AS BIGINT))\n               \n         SELECT Person.*, PersonPicture.*\n           FROM Person\n                LEFT JOIN PersonPicture\n                     ON PersonPicture.personPictureUid = Person.personUid\n          WHERE /* Begin permission check */ \n                (         \n                      (\n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE CAST(? AS BIGINT) != 0 \n                  AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                  AND (SystemPermission.spPermissionsFlag &\n    \n                       8192\n                       \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    )\n                    OR (Person.personUid IN \n                               (SELECT CanViewPersonUidsViaCoursePermission.personUid\n                                  FROM CanViewPersonUidsViaCoursePermission))\n                    OR (Person.personUid = CAST(? AS BIGINT))\n                )\n                /* End permission check */\n           AND (CAST(? AS BIGINT) = 0 OR CAST(? AS BIGINT) NOT IN\n                    (SELECT clazzEnrolmentClazzUid \n                       FROM ClazzEnrolment \n                      WHERE clazzEnrolmentPersonUid = Person.personUid \n                            AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                                AND ClazzEnrolment.clazzEnrolmentDateLeft\n                        AND ClazzEnrolment.clazzEnrolmentActive))\n           AND Person.personType = 0                  \n           AND (Person.personUid NOT IN (?))\n           AND (? = '%' \n               OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n      GROUP BY Person.personUid, PersonPicture.personPictureUid\n      ORDER BY CASE(?)\n               WHEN 1 THEN Person.firstNames\n               WHEN 3 THEN Person.lastName\n               ELSE ''\n               END ASC,\n               CASE(?)\n               WHEN 2 THEN Person.firstNames\n               WHEN 4 THEN Person.lastName\n               ELSE ''\n               END DESC\n    ) AS _PagingData LIMIT ? OFFSET ?", true, VOID, VOID, "SELECT * FROM (\n         WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n              /* Select personUids that can be viewed based on CoursePermission given the active user \n                 for their enrolments \n              */\n              (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n                 FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n                      JOIN CoursePermission \n                           ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n                          AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n                          AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n                      JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n                           ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                WHERE ? != 0\n                  AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = ?\n                  AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n              \n               UNION\n               /* Select personUids that can be viewed based on CoursePermission for the active user\n                  where the CoursePermission is granted directly to them\n                */   \n               SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n                 FROM CoursePermission\n                      JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n                           ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                WHERE ? != 0\n                  AND CoursePermission.cpToPersonUid = ?)\n               \n         SELECT Person.*, PersonPicture.*\n           FROM Person\n                LEFT JOIN PersonPicture\n                     ON PersonPicture.personPictureUid = Person.personUid\n          WHERE /* Begin permission check */ \n                (         \n                      (\n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n    \n                       8192\n                       \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    )\n                    OR (Person.personUid IN \n                               (SELECT CanViewPersonUidsViaCoursePermission.personUid\n                                  FROM CanViewPersonUidsViaCoursePermission))\n                    OR (Person.personUid = ?)\n                )\n                /* End permission check */\n           AND (? = 0 OR ? NOT IN\n                    (SELECT clazzEnrolmentClazzUid \n                       FROM ClazzEnrolment \n                      WHERE clazzEnrolmentPersonUid = Person.personUid \n                            AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                                AND ClazzEnrolment.clazzEnrolmentDateLeft\n                        AND ClazzEnrolment.clazzEnrolmentActive))\n           AND Person.personType = 0                  \n           AND (Person.personUid NOT IN (?))\n           AND (? = '%' \n               OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n      GROUP BY Person.personUid, PersonPicture.personPictureUid\n      ORDER BY CASE(?)\n               WHEN 1 THEN Person.firstNames\n               WHEN 3 THEN Person.lastName\n               ELSE ''\n               END ASC,\n               CASE(?)\n               WHEN 2 THEN Person.firstNames\n               WHEN 4 THEN Person.lastName\n               ELSE ''\n               END DESC\n    ) AS _PagingData LIMIT ? OFFSET ?\n", true);
    return prepareAndUseStatementAsync(this.sfv_1.bfs_1, tmp, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda_0(this.tfv_1, this.ufv_1, this.vfv_1, this.wfv_1, this.xfv_1, this.yfv_1, _limit, _offset, null), $completion);
  };
  protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1).j5p = function (_limit, _offset, $completion) {
    return this.zfv(_limit, _offset, $completion);
  };
  protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1).d5r = function ($completion) {
    var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n         WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n              /* Select personUids that can be viewed based on CoursePermission given the active user \n                 for their enrolments \n              */\n              (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n                 FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n                      JOIN CoursePermission \n                           ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n                          AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n                          AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n                      JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n                           ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                WHERE CAST(? AS BIGINT) != 0\n                  AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                  AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n              \n               UNION\n               /* Select personUids that can be viewed based on CoursePermission for the active user\n                  where the CoursePermission is granted directly to them\n                */   \n               SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n                 FROM CoursePermission\n                      JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n                           ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                WHERE CAST(? AS BIGINT) != 0\n                  AND CoursePermission.cpToPersonUid = CAST(? AS BIGINT))\n               \n         SELECT Person.*, PersonPicture.*\n           FROM Person\n                LEFT JOIN PersonPicture\n                     ON PersonPicture.personPictureUid = Person.personUid\n          WHERE /* Begin permission check */ \n                (         \n                      (\n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE CAST(? AS BIGINT) != 0 \n                  AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                  AND (SystemPermission.spPermissionsFlag &\n    \n                       8192\n                       \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    )\n                    OR (Person.personUid IN \n                               (SELECT CanViewPersonUidsViaCoursePermission.personUid\n                                  FROM CanViewPersonUidsViaCoursePermission))\n                    OR (Person.personUid = CAST(? AS BIGINT))\n                )\n                /* End permission check */\n           AND (CAST(? AS BIGINT) = 0 OR CAST(? AS BIGINT) NOT IN\n                    (SELECT clazzEnrolmentClazzUid \n                       FROM ClazzEnrolment \n                      WHERE clazzEnrolmentPersonUid = Person.personUid \n                            AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                                AND ClazzEnrolment.clazzEnrolmentDateLeft\n                        AND ClazzEnrolment.clazzEnrolmentActive))\n           AND Person.personType = 0                  \n           AND (Person.personUid NOT IN (?))\n           AND (? = '%' \n               OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n      GROUP BY Person.personUid, PersonPicture.personPictureUid\n      ORDER BY CASE(?)\n               WHEN 1 THEN Person.firstNames\n               WHEN 3 THEN Person.lastName\n               ELSE ''\n               END ASC,\n               CASE(?)\n               WHEN 2 THEN Person.firstNames\n               WHEN 4 THEN Person.lastName\n               ELSE ''\n               END DESC\n    ) AS _PagingCount", true, VOID, VOID, "SELECT COUNT(*) FROM (\n         WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n              /* Select personUids that can be viewed based on CoursePermission given the active user \n                 for their enrolments \n              */\n              (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n                 FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n                      JOIN CoursePermission \n                           ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n                          AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n                          AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n                      JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n                           ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                WHERE ? != 0\n                  AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = ?\n                  AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n              \n               UNION\n               /* Select personUids that can be viewed based on CoursePermission for the active user\n                  where the CoursePermission is granted directly to them\n                */   \n               SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n                 FROM CoursePermission\n                      JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n                           ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                WHERE ? != 0\n                  AND CoursePermission.cpToPersonUid = ?)\n               \n         SELECT Person.*, PersonPicture.*\n           FROM Person\n                LEFT JOIN PersonPicture\n                     ON PersonPicture.personPictureUid = Person.personUid\n          WHERE /* Begin permission check */ \n                (         \n                      (\n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n    \n                       8192\n                       \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    )\n                    OR (Person.personUid IN \n                               (SELECT CanViewPersonUidsViaCoursePermission.personUid\n                                  FROM CanViewPersonUidsViaCoursePermission))\n                    OR (Person.personUid = ?)\n                )\n                /* End permission check */\n           AND (? = 0 OR ? NOT IN\n                    (SELECT clazzEnrolmentClazzUid \n                       FROM ClazzEnrolment \n                      WHERE clazzEnrolmentPersonUid = Person.personUid \n                            AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                                AND ClazzEnrolment.clazzEnrolmentDateLeft\n                        AND ClazzEnrolment.clazzEnrolmentActive))\n           AND Person.personType = 0                  \n           AND (Person.personUid NOT IN (?))\n           AND (? = '%' \n               OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n      GROUP BY Person.personUid, PersonPicture.personPictureUid\n      ORDER BY CASE(?)\n               WHEN 1 THEN Person.firstNames\n               WHEN 3 THEN Person.lastName\n               ELSE ''\n               END ASC,\n               CASE(?)\n               WHEN 2 THEN Person.firstNames\n               WHEN 4 THEN Person.lastName\n               ELSE ''\n               END DESC\n    ) AS _PagingCount\n", true);
    return prepareAndUseStatementAsync(this.sfv_1.bfs_1, tmp, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda_0(this.tfv_1, this.ufv_1, this.vfv_1, this.wfv_1, this.xfv_1, this.yfv_1, null), $completion);
  };
  function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda(this$0, $personUid, $accountPersonUid, resultContinuation) {
    this.ifw_1 = this$0;
    this.jfw_1 = $personUid;
    this.kfw_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda).lfw = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda).z77 = function ($completion) {
    return this.lfw($completion);
  };
  protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT Person.*, PersonParentJoin.* , PersonPicture.*, TransferJobItem.*\n          FROM Person\n               LEFT JOIN PersonParentJoin \n                    ON ppjUid =\n                    (SELECT ppjUid \n                       FROM PersonParentJoin\n                      WHERE ppjMinorPersonUid = CAST(? AS BIGINT) \n                        AND ppjParentPersonUid = CAST(? AS BIGINT) \n                      LIMIT 1)  \n               LEFT JOIN PersonPicture\n                    ON PersonPicture.personPictureUid = CAST(? AS BIGINT)\n               LEFT JOIN TransferJobItem\n                    ON TransferJobItem.tjiUid = \n                       (SELECT TransferJobItem.tjiUid\n                          FROM TransferJobItem\n                         WHERE TransferJobItem.tjiEntityUid = CAST(? AS BIGINT)\n                           AND TransferJobItem.tjiTableId = 50\n                           AND TransferJobItem.tjiEntityEtag = PersonPicture.personPictureLct\n                           AND TransferJobItem.tjiStatus != 21\n                         LIMIT 1)\n                          \n         WHERE Person.personUid = CAST(? AS BIGINT)\n        ', VOID, VOID, VOID, '\n        SELECT Person.*, PersonParentJoin.* , PersonPicture.*, TransferJobItem.*\n          FROM Person\n               LEFT JOIN PersonParentJoin \n                    ON ppjUid =\n                    (SELECT ppjUid \n                       FROM PersonParentJoin\n                      WHERE ppjMinorPersonUid = ? \n                        AND ppjParentPersonUid = ? \n                      LIMIT 1)  \n               LEFT JOIN PersonPicture\n                    ON PersonPicture.personPictureUid = ?\n               LEFT JOIN TransferJobItem\n                    ON TransferJobItem.tjiUid = \n                       (SELECT TransferJobItem.tjiUid\n                          FROM TransferJobItem\n                         WHERE TransferJobItem.tjiEntityUid = ?\n                           AND TransferJobItem.tjiTableId = 50\n                           AND TransferJobItem.tjiEntityEtag = PersonPicture.personPictureLct\n                           AND TransferJobItem.tjiStatus != 21\n                         LIMIT 1)\n                          \n         WHERE Person.personUid = ?\n        \n', true);
            suspendResult = prepareAndUseStatementAsync(this.ifw_1.bfs_1, tmp_0, PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda_0(this.jfw_1, this.kfw_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda).y77 = function (completion) {
    return new PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda(this.ifw_1, this.jfw_1, this.kfw_1, completion);
  };
  function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda_0(this$0, $personUid, $accountPersonUid, resultContinuation) {
    var i = new PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda(this$0, $personUid, $accountPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.lfw($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonDao_JdbcImpl$getNamesByUid$slambda(this$0, $uid, resultContinuation) {
    this.ufw_1 = this$0;
    this.vfw_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda).wfw = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda).z77 = function ($completion) {
    return this.wfw($completion);
  };
  protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT Person.firstNames, Person.lastName\n          FROM Person\n         WHERE Person.personUid = CAST(? AS BIGINT)  \n    ', VOID, VOID, VOID, '\n        SELECT Person.firstNames, Person.lastName\n          FROM Person\n         WHERE Person.personUid = ?  \n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.ufw_1.bfs_1, tmp_0, PersonDao_JdbcImpl$getNamesByUid$slambda$slambda_0(this.vfw_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda).y77 = function (completion) {
    return new PersonDao_JdbcImpl$getNamesByUid$slambda(this.ufw_1, this.vfw_1, completion);
  };
  function PersonDao_JdbcImpl$getNamesByUid$slambda_0(this$0, $uid, resultContinuation) {
    var i = new PersonDao_JdbcImpl$getNamesByUid$slambda(this$0, $uid, resultContinuation);
    var l = function ($completion) {
      return i.wfw($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonDao_JdbcImpl$getNamesByUidAsync$slambda($uid, resultContinuation) {
    this.ffx_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$getNamesByUidAsync$slambda).afs = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl$getNamesByUidAsync$slambda).he = function (p1, $completion) {
    return this.afs((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonDao_JdbcImpl$getNamesByUidAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.gfx_1.i5h(1, this.ffx_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.gfx_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, PersonDao_JdbcImpl$getNamesByUidAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonDao_JdbcImpl$getNamesByUidAsync$slambda).z5e = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$getNamesByUidAsync$slambda(this.ffx_1, completion);
    i.gfx_1 = _stmt;
    return i;
  };
  function PersonDao_JdbcImpl$getNamesByUidAsync$slambda_0($uid, resultContinuation) {
    var i = new PersonDao_JdbcImpl$getNamesByUidAsync$slambda($uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.afs(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonDao_JdbcImpl$updateUsername$slambda($username, $currentTime, $personUid, resultContinuation) {
    this.pfx_1 = $username;
    this.qfx_1 = $currentTime;
    this.rfx_1 = $personUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$updateUsername$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl$updateUsername$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonDao_JdbcImpl$updateUsername$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.sfx_1.l5h(1, this.pfx_1);
            this.sfx_1.i5h(2, this.qfx_1);
            this.sfx_1.i5h(3, this.rfx_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.sfx_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonDao_JdbcImpl$updateUsername$slambda).z5e = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$updateUsername$slambda(this.pfx_1, this.qfx_1, this.rfx_1, completion);
    i.sfx_1 = _stmt;
    return i;
  };
  function PersonDao_JdbcImpl$updateUsername$slambda_0($username, $currentTime, $personUid, resultContinuation) {
    var i = new PersonDao_JdbcImpl$updateUsername$slambda($username, $currentTime, $personUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$312(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.bfy_1 = _this__u8e3s4;
    this.cfy_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$312).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.bfy_1.cfs_1.j5g(this.cfy_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateAsyncCOROUTINE$313(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.lfy_1 = _this__u8e3s4;
    this.mfy_1 = entity;
  }
  protoOf($updateAsyncCOROUTINE$313).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.nfy_1 = {_v: 0};
            this.ofy_1 = 'UPDATE Person SET username = ?, firstNames = ?, lastName = ?, emailAddr = ?, phoneNum = ?, gender = ?, active = ?, dateOfBirth = ?, personAddress = ?, personOrgId = ?, personGroupUid = ?, personLct = ?, personCountry = ?, personType = ?, personMasterChangeSeqNum = ?, personLocalChangeSeqNum = ?, personLastChangedBy = ?, admin = ?, personNotes = ?, fatherName = ?, fatherNumber = ?, motherName = ?, motherNum = ? WHERE personUid = ?';
            this.hd_1 = 1;
            suspendResult = prepareAndUseStatementAsync_0(this.lfy_1.bfs_1, this.ofy_1, VOID, PersonDao_JdbcImpl$updateAsync$slambda_0(this.mfy_1, this.nfy_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return this.nfy_1._v;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PersonDao_JdbcImpl(_db) {
    PersonDao.call(this);
    this.bfs_1 = _db;
    var tmp = this;
    tmp.cfs_1 = new PersonDao_JdbcImpl$_insertAdapterPerson_abort$1(this);
    var tmp_0 = this;
    tmp_0.dfs_1 = new PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1(this);
    var tmp_1 = this;
    tmp_1.efs_1 = new PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1(this);
    var tmp_2 = this;
    tmp_2.ffs_1 = new PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1(this);
    var tmp_3 = this;
    tmp_3.gfs_1 = new PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1(this);
  }
  protoOf(PersonDao_JdbcImpl).nfo = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$312(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.nfo(entity instanceof Person ? entity : THROW_CCE(), $completion);
  };
  protoOf(PersonDao_JdbcImpl).tfn = function (entity, $completion) {
    var tmp = new $updateAsyncCOROUTINE$313(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl).qfn = function (username, $completion) {
    var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM Person where Person.username = ?', VOID, VOID, VOID, VOID, true);
    return prepareAndUseStatementAsync(this.bfs_1, tmp, PersonDao_JdbcImpl$countUsername$slambda_0(username, null), $completion);
  };
  protoOf(PersonDao_JdbcImpl).rfn = function (accountPersonUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT Person.*, PersonPicture.*\n          FROM Person\n               LEFT JOIN PersonPicture\n                    ON PersonPicture.personPictureUid = Person.personUid\n         WHERE Person.personUid = CAST(? AS BIGINT)           \n    ', VOID, VOID, VOID, '\n        SELECT Person.*, PersonPicture.*\n          FROM Person\n               LEFT JOIN PersonPicture\n                    ON PersonPicture.personPictureUid = Person.personUid\n         WHERE Person.personUid = ?           \n    \n', true);
    return prepareAndUseStatementAsync(this.bfs_1, tmp, PersonDao_JdbcImpl$findByUidWithPicture$slambda_0(accountPersonUid, null), $completion);
  };
  protoOf(PersonDao_JdbcImpl).dc6 = function (uid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['Person', 'PersonPicture'];
    return doorFlow(this.bfs_1, tmp, PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda_0(this, uid, null));
  };
  protoOf(PersonDao_JdbcImpl).sfn = function (uid, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM Person WHERE personUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM Person WHERE personUid = ?\n', true);
    return prepareAndUseStatementAsync(this.bfs_1, tmp, PersonDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion);
  };
  protoOf(PersonDao_JdbcImpl).ufn = function (timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText) {
    return new PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1(this, accountPersonUid, excludeClazz, timestamp, excludeSelected, searchText, sortOrder);
  };
  protoOf(PersonDao_JdbcImpl).vfn = function (personUid, accountPersonUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['Person', 'PersonPicture', 'PersonParentJoin', 'TransferJobItem'];
    return doorFlow(this.bfs_1, tmp, PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda_0(this, personUid, accountPersonUid, null));
  };
  protoOf(PersonDao_JdbcImpl).wfn = function (uid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['Person'];
    return doorFlow(this.bfs_1, tmp, PersonDao_JdbcImpl$getNamesByUid$slambda_0(this, uid, null));
  };
  protoOf(PersonDao_JdbcImpl).xfn = function (uid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT Person.firstNames, Person.lastName\n          FROM Person\n         WHERE Person.personUid = CAST(? AS BIGINT)  \n    ', VOID, VOID, VOID, '\n        SELECT Person.firstNames, Person.lastName\n          FROM Person\n         WHERE Person.personUid = ?  \n    \n', true);
    return prepareAndUseStatementAsync(this.bfs_1, tmp, PersonDao_JdbcImpl$getNamesByUidAsync$slambda_0(uid, null), $completion);
  };
  protoOf(PersonDao_JdbcImpl).yfn = function (personUid, username, currentTime, $completion) {
    var tmp = new PreparedStatementConfig('\n        UPDATE Person\n           SET username = ?,\n               personLct = CAST(? AS BIGINT)\n         WHERE Person.personUid = CAST(? AS BIGINT)  \n    ', VOID, VOID, VOID, '\n        UPDATE Person\n           SET username = ?,\n               personLct = ?\n         WHERE Person.personUid = ?  \n    \n', false);
    return prepareAndUseStatementAsync(this.bfs_1, tmp, PersonDao_JdbcImpl$updateUsername$slambda_0(username, currentTime, personUid, null), $completion);
  };
  function PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function PersonDao_Repo$getNamesByUid$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function PersonDao_Repo$countUsername$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequest: exception for ' + $repoPath;
    };
  }
  function PersonDao_Repo$findByUidWithPicture$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function PersonDao_Repo$findByUidAsync$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function PersonDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) {
    this.xfy_1 = this$0;
    this.yfy_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_Repo$updateAsync$slambda).i8t = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo$updateAsync$slambda).z77 = function ($completion) {
    return this.i8t($completion);
  };
  protoOf(PersonDao_Repo$updateAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.xfy_1.bfz_1.tfn(this.yfy_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonDao_Repo$updateAsync$slambda).y77 = function (completion) {
    return new PersonDao_Repo$updateAsync$slambda(this.xfy_1, this.yfy_1, completion);
  };
  function PersonDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new PersonDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.i8t($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda(this$0, $timestamp, $excludeClazz, $excludeSelected, $accountPersonUid, $sortOrder, $searchText, resultContinuation) {
    this.ofz_1 = this$0;
    this.pfz_1 = $timestamp;
    this.qfz_1 = $excludeClazz;
    this.rfz_1 = $excludeSelected;
    this.sfz_1 = $accountPersonUid;
    this.tfz_1 = $sortOrder;
    this.ufz_1 = $searchText;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda).k85 = function (_pagingParams, $completion) {
    var tmp = this.l85(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda).he = function (p1, $completion) {
    return this.k85(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            var tmp_0 = this;
            tmp_0.xfz_1 = this.ofz_1.afz_1;
            var tmp_1 = this;
            tmp_1.yfz_1 = 'PersonDao/findPersonsWithPermissionAsPagingSource';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.zfz_1 = this.ofz_1.cfz_1;
            var tmp_3 = this;
            tmp_3.ag0_1 = this.zfz_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ofz_1.afz_1.w38(), 'PersonDao/findPersonsWithPermissionAsPagingSource');
            doorNodeIdHeader(this_0, this.ofz_1.afz_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'timestamp', this.ofz_1.afz_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.pfz_1));
            parameter(this_0, 'excludeClazz', this.ofz_1.afz_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.qfz_1));
            parameter(this_0, 'excludeSelected', this.ofz_1.afz_1.w38().k65_1.e45(ListSerializer(serializer(Companion_getInstance())), this.rfz_1));
            parameter(this_0, 'accountPersonUid', this.ofz_1.afz_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.sfz_1));
            parameter(this_0, 'sortOrder', this.ofz_1.afz_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.tfz_1));
            parameter(this_0, 'searchText', this.ofz_1.afz_1.w38().k65_1.e45(get_nullable(serializer_0(StringCompanionObject_instance)), this.ufz_1));
            pagingSourceLoadParameters(this_0, this.ofz_1.afz_1.w38().k65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.vfz_1);
            tmp_4.bg0_1 = this_0;
            this.bg0_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.cg0_1 = this.ag0_1;
            var tmp_6 = this;
            tmp_6.dg0_1 = this.bg0_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.dg0_1, this.cg0_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.eg0_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ofz_1.zfy_1, this.eg0_1, this.ofz_1.afz_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.wfz_1 = endOfPaginationReached(this.eg0_1);
            this.id_1 = 5;
            this.hd_1 = 7;
            continue $sm;
          case 4:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda$lambda(this.xfz_1, this.yfz_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 5:
            throw this.kd_1;
          case 6:
            this.id_1 = 5;
            if (false) {
              this.hd_1 = 1;
              continue $sm;
            }

            this.hd_1 = 7;
            continue $sm;
          case 7:
            return this.wfz_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda).l85 = function (_pagingParams, completion) {
    var i = new PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda(this.ofz_1, this.pfz_1, this.qfz_1, this.rfz_1, this.sfz_1, this.tfz_1, this.ufz_1, completion);
    i.vfz_1 = _pagingParams;
    return i;
  };
  function PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda_0(this$0, $timestamp, $excludeClazz, $excludeSelected, $accountPersonUid, $sortOrder, $searchText, resultContinuation) {
    var i = new PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda(this$0, $timestamp, $excludeClazz, $excludeSelected, $accountPersonUid, $sortOrder, $searchText, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.k85(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda(this$0, $personUid, $accountPersonUid, resultContinuation) {
    this.ng0_1 = this$0;
    this.og0_1 = $personUid;
    this.pg0_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.qg0_1 = this.ng0_1.afz_1;
            var tmp_1 = this;
            tmp_1.rg0_1 = 'PersonDao/findByUidWithDisplayDetailsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.sg0_1 = this.ng0_1.cfz_1;
            var tmp_3 = this;
            tmp_3.tg0_1 = this.sg0_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ng0_1.afz_1.w38(), 'PersonDao/findByUidWithDisplayDetailsFlow');
            doorNodeIdHeader(this_0, this.ng0_1.afz_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'personUid', this.ng0_1.afz_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.og0_1));
            parameter(this_0, 'accountPersonUid', this.ng0_1.afz_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.pg0_1));
            tmp_4.ug0_1 = this_0;
            this.ug0_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.vg0_1 = this.tg0_1;
            var tmp_6 = this;
            tmp_6.wg0_1 = this.ug0_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.wg0_1, this.vg0_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.xg0_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ng0_1.zfy_1, this.xg0_1, this.ng0_1.afz_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda$lambda(this.qg0_1, this.rg0_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda).y77 = function (completion) {
    return new PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda(this.ng0_1, this.og0_1, this.pg0_1, completion);
  };
  function PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda_0(this$0, $personUid, $accountPersonUid, resultContinuation) {
    var i = new PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda(this$0, $personUid, $accountPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonDao_Repo$getNamesByUid$slambda(this$0, $uid, resultContinuation) {
    this.gg1_1 = this$0;
    this.hg1_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_Repo$getNamesByUid$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo$getNamesByUid$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(PersonDao_Repo$getNamesByUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.ig1_1 = this.gg1_1.afz_1;
            var tmp_1 = this;
            tmp_1.jg1_1 = 'PersonDao/getNamesByUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.kg1_1 = this.gg1_1.cfz_1;
            var tmp_3 = this;
            tmp_3.lg1_1 = this.kg1_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.gg1_1.afz_1.w38(), 'PersonDao/getNamesByUid');
            doorNodeIdHeader(this_0, this.gg1_1.afz_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.gg1_1.afz_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.hg1_1));
            tmp_4.mg1_1 = this_0;
            this.mg1_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.ng1_1 = this.lg1_1;
            var tmp_6 = this;
            tmp_6.og1_1 = this.mg1_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.og1_1, this.ng1_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.pg1_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.gg1_1.zfy_1, this.pg1_1, this.gg1_1.afz_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', PersonDao_Repo$getNamesByUid$slambda$lambda(this.ig1_1, this.jg1_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(PersonDao_Repo$getNamesByUid$slambda).y77 = function (completion) {
    return new PersonDao_Repo$getNamesByUid$slambda(this.gg1_1, this.hg1_1, completion);
  };
  function PersonDao_Repo$getNamesByUid$slambda_0(this$0, $uid, resultContinuation) {
    var i = new PersonDao_Repo$getNamesByUid$slambda(this$0, $uid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonDao_Repo$getNamesByUidAsync$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function PersonDao_Repo$updateUsername$slambda(this$0, $personUid, $username, $currentTime, resultContinuation) {
    this.yg1_1 = this$0;
    this.zg1_1 = $personUid;
    this.ag2_1 = $username;
    this.bg2_1 = $currentTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_Repo$updateUsername$slambda).i8t = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo$updateUsername$slambda).z77 = function ($completion) {
    return this.i8t($completion);
  };
  protoOf(PersonDao_Repo$updateUsername$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.yg1_1.bfz_1.yfn(this.zg1_1, this.ag2_1, this.bg2_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonDao_Repo$updateUsername$slambda).y77 = function (completion) {
    return new PersonDao_Repo$updateUsername$slambda(this.yg1_1, this.zg1_1, this.ag2_1, this.bg2_1, completion);
  };
  function PersonDao_Repo$updateUsername$slambda_0(this$0, $personUid, $username, $currentTime, resultContinuation) {
    var i = new PersonDao_Repo$updateUsername$slambda(this$0, $personUid, $username, $currentTime, resultContinuation);
    var l = function ($completion) {
      return i.i8t($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.kg2_1 = this$0;
    this.lg2_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(PersonDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.kg2_1.bfz_1.insertAsync(this.lg2_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new PersonDao_Repo$insertAsync$slambda(this.kg2_1, this.lg2_1, completion);
  };
  function PersonDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new PersonDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $countUsernameCOROUTINE$314(_this__u8e3s4, username, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ug2_1 = _this__u8e3s4;
    this.vg2_1 = username;
  }
  protoOf($countUsernameCOROUTINE$314).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.wg2_1 = this.ug2_1.afz_1.w38().k65_1;
            this.xg2_1 = serializer_1(IntCompanionObject_instance);
            var tmp_0 = this;
            tmp_0.yg2_1 = this.ug2_1.afz_1;
            var tmp_1 = this;
            tmp_1.zg2_1 = 'PersonDao/countUsername';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.bg3_1 = this.ug2_1.afz_1.w38().j65_1;
            var tmp_3 = this;
            tmp_3.cg3_1 = this.bg3_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ug2_1.afz_1.w38(), 'PersonDao/countUsername');
            doorNodeIdHeader(this_0, this.ug2_1.afz_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'username', this.ug2_1.afz_1.w38().k65_1.e45(serializer_0(StringCompanionObject_instance), this.vg2_1));
            tmp_4.dg3_1 = this_0;
            this.dg3_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.eg3_1 = this.cg3_1;
            var tmp_6 = this;
            tmp_6.fg3_1 = this.dg3_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.fg3_1, this.eg3_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.gg3_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = bodyAsText(this.gg3_1, VOID, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.ag3_1 = suspendResult;
            this.id_1 = 5;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 5;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              var tmp_8 = this;
              Napier_getInstance().a5e(e, 'DoorLog', PersonDao_Repo$countUsername$lambda(this.yg2_1, this.zg2_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 5;
            var ARGUMENT = this.ag3_1;
            return this.wg2_1.f45(this.xg2_1, ARGUMENT);
          case 5:
            throw this.kd_1;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 5) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  function $findByUidWithPictureCOROUTINE$319(_this__u8e3s4, accountPersonUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.pg3_1 = _this__u8e3s4;
    this.qg3_1 = accountPersonUid;
  }
  protoOf($findByUidWithPictureCOROUTINE$319).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.rg3_1 = this.pg3_1.afz_1;
            var tmp_1 = this;
            tmp_1.sg3_1 = 'PersonDao/findByUidWithPicture';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.tg3_1 = this.pg3_1.cfz_1;
            var tmp_3 = this;
            tmp_3.ug3_1 = this.tg3_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.pg3_1.afz_1.w38(), 'PersonDao/findByUidWithPicture');
            doorNodeIdHeader(this_0, this.pg3_1.afz_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.pg3_1.afz_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.qg3_1));
            tmp_4.vg3_1 = this_0;
            this.vg3_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.wg3_1 = this.ug3_1;
            var tmp_6 = this;
            tmp_6.xg3_1 = this.vg3_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.xg3_1, this.wg3_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.yg3_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.pg3_1.zfy_1, this.yg3_1, this.pg3_1.afz_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.zg3_1 = this.kd_1;
              Napier_getInstance().q5d(this.zg3_1, 'DoorLog', PersonDao_Repo$findByUidWithPicture$lambda(this.rg3_1, this.sg3_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.pg3_1.bfz_1.rfn(this.qg3_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $findByUidAsyncCOROUTINE$320(_this__u8e3s4, uid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ig4_1 = _this__u8e3s4;
    this.jg4_1 = uid;
  }
  protoOf($findByUidAsyncCOROUTINE$320).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.kg4_1 = this.ig4_1.afz_1;
            var tmp_1 = this;
            tmp_1.lg4_1 = 'PersonDao/findByUidAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.mg4_1 = this.ig4_1.cfz_1;
            var tmp_3 = this;
            tmp_3.ng4_1 = this.mg4_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ig4_1.afz_1.w38(), 'PersonDao/findByUidAsync');
            doorNodeIdHeader(this_0, this.ig4_1.afz_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.ig4_1.afz_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.jg4_1));
            tmp_4.og4_1 = this_0;
            this.og4_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.pg4_1 = this.ng4_1;
            var tmp_6 = this;
            tmp_6.qg4_1 = this.og4_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.qg4_1, this.pg4_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.rg4_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ig4_1.zfy_1, this.rg4_1, this.ig4_1.afz_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.sg4_1 = this.kd_1;
              Napier_getInstance().q5d(this.sg4_1, 'DoorLog', PersonDao_Repo$findByUidAsync$lambda(this.kg4_1, this.lg4_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.ig4_1.bfz_1.sfn(this.jg4_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateAsyncCOROUTINE$321(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.bg5_1 = _this__u8e3s4;
    this.cg5_1 = entity;
  }
  protoOf($updateAsyncCOROUTINE$321).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.bg5_1.afz_1, 'Person', PersonDao_Repo$updateAsync$slambda_0(this.bg5_1, this.cg5_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $getNamesByUidAsyncCOROUTINE$324(_this__u8e3s4, uid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.lg5_1 = _this__u8e3s4;
    this.mg5_1 = uid;
  }
  protoOf($getNamesByUidAsyncCOROUTINE$324).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.ng5_1 = this.lg5_1.afz_1;
            var tmp_1 = this;
            tmp_1.og5_1 = 'PersonDao/getNamesByUidAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.pg5_1 = this.lg5_1.cfz_1;
            var tmp_3 = this;
            tmp_3.qg5_1 = this.pg5_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.lg5_1.afz_1.w38(), 'PersonDao/getNamesByUidAsync');
            doorNodeIdHeader(this_0, this.lg5_1.afz_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.lg5_1.afz_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.mg5_1));
            tmp_4.rg5_1 = this_0;
            this.rg5_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.sg5_1 = this.qg5_1;
            var tmp_6 = this;
            tmp_6.tg5_1 = this.rg5_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.tg5_1, this.sg5_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.ug5_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.lg5_1.zfy_1, this.ug5_1, this.lg5_1.afz_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.vg5_1 = this.kd_1;
              Napier_getInstance().q5d(this.vg5_1, 'DoorLog', PersonDao_Repo$getNamesByUidAsync$lambda(this.ng5_1, this.og5_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.lg5_1.bfz_1.xfn(this.mg5_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateUsernameCOROUTINE$325(_this__u8e3s4, personUid, username, currentTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.eg6_1 = _this__u8e3s4;
    this.fg6_1 = personUid;
    this.gg6_1 = username;
    this.hg6_1 = currentTime;
  }
  protoOf($updateUsernameCOROUTINE$325).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.eg6_1.afz_1, 'Person', PersonDao_Repo$updateUsername$slambda_0(this.eg6_1, this.fg6_1, this.gg6_1, this.hg6_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$327(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.qg6_1 = _this__u8e3s4;
    this.rg6_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$327).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.qg6_1.afz_1, 'Person', PersonDao_Repo$insertAsync$slambda_0(this.qg6_1, this.rg6_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PersonDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    PersonDao.call(this);
    this.zfy_1 = _db;
    this.afz_1 = _repo;
    this.bfz_1 = _dao;
    this.cfz_1 = _httpClient;
    this.dfz_1 = _clientId;
    this.efz_1 = _endpoint;
    this.ffz_1 = new RepoDaoFlowHelper(this.afz_1);
  }
  protoOf(PersonDao_Repo).qfn = function (username, $completion) {
    var tmp = new $countUsernameCOROUTINE$314(this, username, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo).rfn = function (accountPersonUid, $completion) {
    var tmp = new $findByUidWithPictureCOROUTINE$319(this, accountPersonUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo).dc6 = function (uid) {
    var _result = this.bfz_1.dc6(uid);
    return _result;
  };
  protoOf(PersonDao_Repo).sfn = function (uid, $completion) {
    var tmp = new $findByUidAsyncCOROUTINE$320(this, uid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo).tfn = function (entity, $completion) {
    var tmp = new $updateAsyncCOROUTINE$321(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo).ufn = function (timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText) {
    var tmp = this.bfz_1.ufn(timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText);
    return new DoorRepositoryReplicatePullPagingSource(this.afz_1, 'PersonDao/findPersonsWithPermissionAsPagingSource', tmp, PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda_0(this, timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText, null));
  };
  protoOf(PersonDao_Repo).vfn = function (personUid, accountPersonUid) {
    var tmp = this.bfz_1.vfn(personUid, accountPersonUid);
    return this.ffz_1.b67(tmp, PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda_0(this, personUid, accountPersonUid, null));
  };
  protoOf(PersonDao_Repo).wfn = function (uid) {
    var tmp = this.bfz_1.wfn(uid);
    return this.ffz_1.b67(tmp, PersonDao_Repo$getNamesByUid$slambda_0(this, uid, null));
  };
  protoOf(PersonDao_Repo).xfn = function (uid, $completion) {
    var tmp = new $getNamesByUidAsyncCOROUTINE$324(this, uid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo).yfn = function (personUid, username, currentTime, $completion) {
    var tmp = new $updateUsernameCOROUTINE$325(this, personUid, username, currentTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo).nfo = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$327(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo).insertAsync = function (entity, $completion) {
    return this.nfo(entity instanceof Person ? entity : THROW_CCE(), $completion);
  };
  function PersonGroupDao() {
  }
  function $insertAsyncCOROUTINE$328(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ag7_1 = _this__u8e3s4;
    this.bg7_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$328).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.cg7_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.ag7_1.eg7_1));
            if (this.bg7_1.rfs_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.cg7_1.b62(43, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.dg7_1 = suspendResult;
            this.bg7_1.rfs_1 = this.dg7_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.bg7_1.vfs_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.ag7_1.fg7_1.insertAsync(this.bg7_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.bg7_1.rfs_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PersonGroupDao_DoorWrapper(_db, _dao) {
    PersonGroupDao.call(this);
    this.eg7_1 = _db;
    this.fg7_1 = _dao;
  }
  protoOf(PersonGroupDao_DoorWrapper).gg7 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$328(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonGroupDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.gg7(entity instanceof PersonGroup ? entity : THROW_CCE(), $completion);
  };
  function PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.hg7_1);
  }
  protoOf(PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO PersonGroup (groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).qfs = function (stmt, entity) {
    if (entity.rfs_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.rfs_1);
    }
    stmt.i5h(2, entity.sfs_1);
    stmt.i5h(3, entity.tfs_1);
    stmt.h5h(4, entity.ufs_1);
    stmt.i5h(5, entity.vfs_1);
    stmt.l5h(6, entity.wfs_1);
    stmt.v5g(7, entity.xfs_1);
    stmt.h5h(8, entity.yfs_1);
  };
  protoOf(PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).c5f = function (stmt, entity) {
    return this.qfs(stmt, entity instanceof PersonGroup ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$329(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.tg7_1 = _this__u8e3s4;
    this.ug7_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$329).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.tg7_1.ig7_1.j5g(this.ug7_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PersonGroupDao_JdbcImpl(_db) {
    PersonGroupDao.call(this);
    this.hg7_1 = _db;
    var tmp = this;
    tmp.ig7_1 = new PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1(this);
  }
  protoOf(PersonGroupDao_JdbcImpl).gg7 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$329(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonGroupDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.gg7(entity instanceof PersonGroup ? entity : THROW_CCE(), $completion);
  };
  function PersonGroupDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.dg8_1 = this$0;
    this.eg8_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonGroupDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonGroupDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(PersonGroupDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.dg8_1.hg8_1.insertAsync(this.eg8_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonGroupDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new PersonGroupDao_Repo$insertAsync$slambda(this.dg8_1, this.eg8_1, completion);
  };
  function PersonGroupDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new PersonGroupDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$334(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.tg8_1 = _this__u8e3s4;
    this.ug8_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$334).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.tg8_1.gg8_1, 'PersonGroup', PersonGroupDao_Repo$insertAsync$slambda_0(this.tg8_1, this.ug8_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PersonGroupDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    PersonGroupDao.call(this);
    this.fg8_1 = _db;
    this.gg8_1 = _repo;
    this.hg8_1 = _dao;
    this.ig8_1 = _httpClient;
    this.jg8_1 = _clientId;
    this.kg8_1 = _endpoint;
  }
  protoOf(PersonGroupDao_Repo).gg7 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$334(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonGroupDao_Repo).insertAsync = function (entity, $completion) {
    return this.gg7(entity instanceof PersonGroup ? entity : THROW_CCE(), $completion);
  };
  function PersonGroupMemberDao() {
  }
  function $insertAsyncCOROUTINE$335(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.dg9_1 = _this__u8e3s4;
    this.eg9_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$335).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.fg9_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.dg9_1.hg9_1));
            if (this.eg9_1.cft_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.fg9_1.b62(44, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.gg9_1 = suspendResult;
            this.eg9_1.cft_1 = this.gg9_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.eg9_1.jft_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.dg9_1.ig9_1.insertAsync(this.eg9_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.eg9_1.cft_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PersonGroupMemberDao_DoorWrapper(_db, _dao) {
    PersonGroupMemberDao.call(this);
    this.hg9_1 = _db;
    this.ig9_1 = _dao;
  }
  protoOf(PersonGroupMemberDao_DoorWrapper).jg9 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$335(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonGroupMemberDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.jg9(entity instanceof PersonGroupMember ? entity : THROW_CCE(), $completion);
  };
  function PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.kg9_1);
  }
  protoOf(PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO PersonGroupMember (groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).bft = function (stmt, entity) {
    if (entity.cft_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.cft_1);
    }
    stmt.v5g(2, entity.dft_1);
    stmt.i5h(3, entity.eft_1);
    stmt.i5h(4, entity.fft_1);
    stmt.i5h(5, entity.gft_1);
    stmt.i5h(6, entity.hft_1);
    stmt.h5h(7, entity.ift_1);
    stmt.i5h(8, entity.jft_1);
  };
  protoOf(PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).c5f = function (stmt, entity) {
    return this.bft(stmt, entity instanceof PersonGroupMember ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$336(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.wg9_1 = _this__u8e3s4;
    this.xg9_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$336).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.wg9_1.lg9_1.j5g(this.xg9_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PersonGroupMemberDao_JdbcImpl(_db) {
    PersonGroupMemberDao.call(this);
    this.kg9_1 = _db;
    var tmp = this;
    tmp.lg9_1 = new PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1(this);
  }
  protoOf(PersonGroupMemberDao_JdbcImpl).jg9 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$336(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonGroupMemberDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.jg9(entity instanceof PersonGroupMember ? entity : THROW_CCE(), $completion);
  };
  function PersonGroupMemberDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.gga_1 = this$0;
    this.hga_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonGroupMemberDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonGroupMemberDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(PersonGroupMemberDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.gga_1.kga_1.insertAsync(this.hga_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonGroupMemberDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new PersonGroupMemberDao_Repo$insertAsync$slambda(this.gga_1, this.hga_1, completion);
  };
  function PersonGroupMemberDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new PersonGroupMemberDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$342(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.wga_1 = _this__u8e3s4;
    this.xga_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$342).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.wga_1.jga_1, 'PersonGroupMember', PersonGroupMemberDao_Repo$insertAsync$slambda_0(this.wga_1, this.xga_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PersonGroupMemberDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    PersonGroupMemberDao.call(this);
    this.iga_1 = _db;
    this.jga_1 = _repo;
    this.kga_1 = _dao;
    this.lga_1 = _httpClient;
    this.mga_1 = _clientId;
    this.nga_1 = _endpoint;
  }
  protoOf(PersonGroupMemberDao_Repo).jg9 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$342(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonGroupMemberDao_Repo).insertAsync = function (entity, $completion) {
    return this.jg9(entity instanceof PersonGroupMember ? entity : THROW_CCE(), $completion);
  };
  function PersonParentJoinDao() {
  }
  function $upsertAsyncCOROUTINE$343(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.kgb_1 = _this__u8e3s4;
    this.lgb_1 = entity;
  }
  protoOf($upsertAsyncCOROUTINE$343).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.mgb_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.kgb_1.ogb_1));
            if (this.lgb_1.ofq_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.mgb_1.b62(512, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.ngb_1 = suspendResult;
            this.lgb_1.ofq_1 = this.ngb_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.lgb_1.sfq_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.kgb_1.pgb_1.yga(this.lgb_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.lgb_1.ofq_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PersonParentJoinDao_DoorWrapper(_db, _dao) {
    PersonParentJoinDao.call(this);
    this.ogb_1 = _db;
    this.pgb_1 = _dao;
  }
  protoOf(PersonParentJoinDao_DoorWrapper).yga = function (entity, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$343(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonParentJoinDao_DoorWrapper).zga = function (uid, $completion) {
    return this.pgb_1.zga(uid, $completion);
  };
  protoOf(PersonParentJoinDao_DoorWrapper).agb = function (personParentJoin, $completion) {
    personParentJoin.sfq_1 = systemTimeInMillis();
    return this.pgb_1.agb(personParentJoin, $completion);
  };
  protoOf(PersonParentJoinDao_DoorWrapper).bgb = function (minorPersonUid, $completion) {
    return this.pgb_1.bgb(minorPersonUid, $completion);
  };
  function PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda$lambda(_result) {
    return mapNextRow(_result, null, PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda$lambda$lambda(_result));
  }
  function PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_PersonParentJoin_nullCount = 0;
      var _tmp_ppjUid = $_result.l5m('ppjUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_ppjPcsn = $_result.l5m('ppjPcsn');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_ppjLcsn = $_result.l5m('ppjLcsn');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_ppjLcb = $_result.k5m('ppjLcb');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_ppjLct = $_result.l5m('ppjLct');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_ppjParentPersonUid = $_result.l5m('ppjParentPersonUid');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_ppjMinorPersonUid = $_result.l5m('ppjMinorPersonUid');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_ppjRelationship = $_result.k5m('ppjRelationship');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_ppjEmail = $_result.rz('ppjEmail');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_ppjPhone = $_result.rz('ppjPhone');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_ppjInactive = $_result.w65('ppjInactive');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_ppjStatus = $_result.k5m('ppjStatus');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_ppjApprovalTiemstamp = $_result.l5m('ppjApprovalTiemstamp');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_ppjApprovalIpAddr = $_result.rz('ppjApprovalIpAddr');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_PersonParentJoin_isAllNull = _tmp_PersonParentJoin_nullCount === 14;
      var _tmp_Person_nullCount = 0;
      var _tmp_personUid = $_result.l5m('personUid');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_gender = $_result.k5m('gender');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_active = $_result.w65('active');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.l5m('dateOfBirth');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.l5m('personGroupUid');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personLct = $_result.l5m('personLct');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_personType = $_result.k5m('personType');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.l5m('personMasterChangeSeqNum');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.l5m('personLocalChangeSeqNum');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.k5m('personLastChangedBy');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_admin = $_result.w65('admin');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_33;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_34;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_35;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_36;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24;
      // Inline function 'kotlin.apply' call
      var this_0 = new PersonParentJoinAndMinorPerson();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.PersonParentJoinDao_JdbcImpl.findByUidWithMinorAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_PersonParentJoin_isAllNull) {
        var tmp_37 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new PersonParentJoin();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.PersonParentJoinDao_JdbcImpl.findByUidWithMinorAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.ofq_1 = _tmp_ppjUid;
        this_1.pfq_1 = _tmp_ppjPcsn;
        this_1.qfq_1 = _tmp_ppjLcsn;
        this_1.rfq_1 = _tmp_ppjLcb;
        this_1.sfq_1 = _tmp_ppjLct;
        this_1.tfq_1 = _tmp_ppjParentPersonUid;
        this_1.ufq_1 = _tmp_ppjMinorPersonUid;
        this_1.vfq_1 = _tmp_ppjRelationship;
        this_1.wfq_1 = _tmp_ppjEmail;
        this_1.xfq_1 = _tmp_ppjPhone;
        this_1.yfq_1 = _tmp_ppjInactive;
        this_1.zfq_1 = _tmp_ppjStatus;
        this_1.afr_1 = _tmp_ppjApprovalTiemstamp;
        this_1.bfr_1 = _tmp_ppjApprovalIpAddr;
        tmp_37.qgb_1 = this_1;
      }
      if (!_tmp_Person_isAllNull) {
        var tmp_38 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new Person();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.PersonParentJoinDao_JdbcImpl.findByUidWithMinorAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.f95_1 = _tmp_personUid;
        this_2.g95_1 = _tmp_username;
        this_2.h95_1 = _tmp_firstNames;
        this_2.i95_1 = _tmp_lastName;
        this_2.j95_1 = _tmp_emailAddr;
        this_2.k95_1 = _tmp_phoneNum;
        this_2.l95_1 = _tmp_gender;
        this_2.m95_1 = _tmp_active;
        this_2.n95_1 = _tmp_dateOfBirth;
        this_2.o95_1 = _tmp_personAddress;
        this_2.p95_1 = _tmp_personOrgId;
        this_2.q95_1 = _tmp_personGroupUid;
        this_2.r95_1 = _tmp_personLct;
        this_2.s95_1 = _tmp_personCountry;
        this_2.t95_1 = _tmp_personType;
        this_2.u95_1 = _tmp_personMasterChangeSeqNum;
        this_2.v95_1 = _tmp_personLocalChangeSeqNum;
        this_2.w95_1 = _tmp_personLastChangedBy;
        this_2.x95_1 = _tmp_admin;
        this_2.y95_1 = _tmp_personNotes;
        this_2.z95_1 = _tmp_fatherName;
        this_2.a96_1 = _tmp_fatherNumber;
        this_2.b96_1 = _tmp_motherName;
        this_2.c96_1 = _tmp_motherNum;
        tmp_38.rgb_1 = this_2;
      }
      return this_0;
    };
  }
  function PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda$lambda(_result) {
    return mapNextRow(_result, false, PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda$lambda$lambda(_result));
  }
  function PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.a74(1);
    };
  }
  function PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.sgb_1);
  }
  protoOf(PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO PersonParentJoin (ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1).wgb = function (stmt, entity) {
    if (entity.ofq_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.ofq_1);
    }
    stmt.i5h(2, entity.pfq_1);
    stmt.i5h(3, entity.qfq_1);
    stmt.h5h(4, entity.rfq_1);
    stmt.i5h(5, entity.sfq_1);
    stmt.i5h(6, entity.tfq_1);
    stmt.i5h(7, entity.ufq_1);
    stmt.h5h(8, entity.vfq_1);
    stmt.l5h(9, entity.wfq_1);
    stmt.l5h(10, entity.xfq_1);
    stmt.v5g(11, entity.yfq_1);
    stmt.h5h(12, entity.zfq_1);
    stmt.i5h(13, entity.afr_1);
    stmt.l5h(14, entity.bfr_1);
  };
  protoOf(PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1).c5f = function (stmt, entity) {
    return this.wgb(stmt, entity instanceof PersonParentJoin ? entity : THROW_CCE());
  };
  function PersonParentJoinDao_JdbcImpl$updateAsync$slambda($personParentJoin, resultContinuation) {
    this.fgc_1 = $personParentJoin;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonParentJoinDao_JdbcImpl$updateAsync$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonParentJoinDao_JdbcImpl$updateAsync$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonParentJoinDao_JdbcImpl$updateAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ggc_1.i5h(1, this.fgc_1.pfq_1);
            this.ggc_1.i5h(2, this.fgc_1.qfq_1);
            this.ggc_1.h5h(3, this.fgc_1.rfq_1);
            this.ggc_1.i5h(4, this.fgc_1.sfq_1);
            this.ggc_1.i5h(5, this.fgc_1.tfq_1);
            this.ggc_1.i5h(6, this.fgc_1.ufq_1);
            this.ggc_1.h5h(7, this.fgc_1.vfq_1);
            this.ggc_1.l5h(8, this.fgc_1.wfq_1);
            this.ggc_1.l5h(9, this.fgc_1.xfq_1);
            this.ggc_1.v5g(10, this.fgc_1.yfq_1);
            this.ggc_1.h5h(11, this.fgc_1.zfq_1);
            this.ggc_1.i5h(12, this.fgc_1.afr_1);
            this.ggc_1.l5h(13, this.fgc_1.bfr_1);
            this.ggc_1.i5h(14, this.fgc_1.ofq_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.ggc_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonParentJoinDao_JdbcImpl$updateAsync$slambda).z5e = function (_stmt, completion) {
    var i = new PersonParentJoinDao_JdbcImpl$updateAsync$slambda(this.fgc_1, completion);
    i.ggc_1 = _stmt;
    return i;
  };
  function PersonParentJoinDao_JdbcImpl$updateAsync$slambda_0($personParentJoin, resultContinuation) {
    var i = new PersonParentJoinDao_JdbcImpl$updateAsync$slambda($personParentJoin, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda($uid, resultContinuation) {
    this.pgc_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda).rgc = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda).he = function (p1, $completion) {
    return this.rgc((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.qgc_1.i5h(1, this.pgc_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.qgc_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda).z5e = function (_stmt, completion) {
    var i = new PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda(this.pgc_1, completion);
    i.qgc_1 = _stmt;
    return i;
  };
  function PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda_0($uid, resultContinuation) {
    var i = new PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda($uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.rgc(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda($minorPersonUid, resultContinuation) {
    this.agd_1 = $minorPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda).m9s = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda).he = function (p1, $completion) {
    return this.m9s((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.bgd_1.i5h(1, this.agd_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.bgd_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda).z5e = function (_stmt, completion) {
    var i = new PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda(this.agd_1, completion);
    i.bgd_1 = _stmt;
    return i;
  };
  function PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda_0($minorPersonUid, resultContinuation) {
    var i = new PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda($minorPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.m9s(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $upsertAsyncCOROUTINE$344(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.kgd_1 = _this__u8e3s4;
    this.lgd_1 = entity;
  }
  protoOf($upsertAsyncCOROUTINE$344).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.kgd_1.tgb_1.j5g(this.lgd_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateAsyncCOROUTINE$345(_this__u8e3s4, personParentJoin, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ugd_1 = _this__u8e3s4;
    this.vgd_1 = personParentJoin;
  }
  protoOf($updateAsyncCOROUTINE$345).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.wgd_1 = 'UPDATE PersonParentJoin SET ppjPcsn = ?, ppjLcsn = ?, ppjLcb = ?, ppjLct = ?, ppjParentPersonUid = ?, ppjMinorPersonUid = ?, ppjRelationship = ?, ppjEmail = ?, ppjPhone = ?, ppjInactive = ?, ppjStatus = ?, ppjApprovalTiemstamp = ?, ppjApprovalIpAddr = ? WHERE ppjUid = ?';
            this.hd_1 = 1;
            suspendResult = prepareAndUseStatementAsync_0(this.ugd_1.sgb_1, this.wgd_1, VOID, PersonParentJoinDao_JdbcImpl$updateAsync$slambda_0(this.vgd_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PersonParentJoinDao_JdbcImpl(_db) {
    PersonParentJoinDao.call(this);
    this.sgb_1 = _db;
    var tmp = this;
    tmp.tgb_1 = new PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1(this);
  }
  protoOf(PersonParentJoinDao_JdbcImpl).yga = function (entity, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$344(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonParentJoinDao_JdbcImpl).agb = function (personParentJoin, $completion) {
    var tmp = new $updateAsyncCOROUTINE$345(this, personParentJoin, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonParentJoinDao_JdbcImpl).zga = function (uid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT PersonParentJoin.*, Person.*\n          FROM PersonParentJoin\n     LEFT JOIN Person ON Person.personUid = PersonParentJoin.ppjMinorPersonUid    \n         WHERE PersonParentJoin.ppjUid = CAST(? AS BIGINT)\n    ', VOID, VOID, VOID, '\n        SELECT PersonParentJoin.*, Person.*\n          FROM PersonParentJoin\n     LEFT JOIN Person ON Person.personUid = PersonParentJoin.ppjMinorPersonUid    \n         WHERE PersonParentJoin.ppjUid = ?\n    \n', true);
    return prepareAndUseStatementAsync(this.sgb_1, tmp, PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda_0(uid, null), $completion);
  };
  protoOf(PersonParentJoinDao_JdbcImpl).bgb = function (minorPersonUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT EXISTS(\n               SELECT ppjUid\n                 FROM PersonParentJoin\n                WHERE ppjMinorPersonUid = CAST(? AS BIGINT)\n                  AND CAST(ppjInactive AS INTEGER) = 0\n                  AND ppjStatus = 1)\n    ', VOID, VOID, VOID, '\n        SELECT EXISTS(\n               SELECT ppjUid\n                 FROM PersonParentJoin\n                WHERE ppjMinorPersonUid = ?\n                  AND CAST(ppjInactive AS INTEGER) = 0\n                  AND ppjStatus = 1)\n    \n', true);
    return prepareAndUseStatementAsync(this.sgb_1, tmp, PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda_0(minorPersonUid, null), $completion);
  };
  function PersonParentJoinDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation) {
    this.fge_1 = this$0;
    this.gge_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonParentJoinDao_Repo$upsertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonParentJoinDao_Repo$upsertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(PersonParentJoinDao_Repo$upsertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.fge_1.jge_1.yga(this.gge_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonParentJoinDao_Repo$upsertAsync$slambda).y77 = function (completion) {
    return new PersonParentJoinDao_Repo$upsertAsync$slambda(this.fge_1, this.gge_1, completion);
  };
  function PersonParentJoinDao_Repo$upsertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new PersonParentJoinDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonParentJoinDao_Repo$findByUidWithMinorAsync$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function PersonParentJoinDao_Repo$updateAsync$slambda(this$0, $personParentJoin, resultContinuation) {
    this.vge_1 = this$0;
    this.wge_1 = $personParentJoin;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonParentJoinDao_Repo$updateAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonParentJoinDao_Repo$updateAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(PersonParentJoinDao_Repo$updateAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.vge_1.jge_1.agb(this.wge_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonParentJoinDao_Repo$updateAsync$slambda).y77 = function (completion) {
    return new PersonParentJoinDao_Repo$updateAsync$slambda(this.vge_1, this.wge_1, completion);
  };
  function PersonParentJoinDao_Repo$updateAsync$slambda_0(this$0, $personParentJoin, resultContinuation) {
    var i = new PersonParentJoinDao_Repo$updateAsync$slambda(this$0, $personParentJoin, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonParentJoinDao_Repo$isMinorApproved$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function $upsertAsyncCOROUTINE$346(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.fgf_1 = _this__u8e3s4;
    this.ggf_1 = entity;
  }
  protoOf($upsertAsyncCOROUTINE$346).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.fgf_1.ige_1, 'PersonParentJoin', PersonParentJoinDao_Repo$upsertAsync$slambda_0(this.fgf_1, this.ggf_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $findByUidWithMinorAsyncCOROUTINE$347(_this__u8e3s4, uid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.pgf_1 = _this__u8e3s4;
    this.qgf_1 = uid;
  }
  protoOf($findByUidWithMinorAsyncCOROUTINE$347).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.rgf_1 = this.pgf_1.ige_1;
            var tmp_1 = this;
            tmp_1.sgf_1 = 'PersonParentJoinDao/findByUidWithMinorAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.tgf_1 = this.pgf_1.kge_1;
            var tmp_3 = this;
            tmp_3.ugf_1 = this.tgf_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.pgf_1.ige_1.w38(), 'PersonParentJoinDao/findByUidWithMinorAsync');
            doorNodeIdHeader(this_0, this.pgf_1.ige_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.pgf_1.ige_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.qgf_1));
            tmp_4.vgf_1 = this_0;
            this.vgf_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.wgf_1 = this.ugf_1;
            var tmp_6 = this;
            tmp_6.xgf_1 = this.vgf_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.xgf_1, this.wgf_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.ygf_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.pgf_1.hge_1, this.ygf_1, this.pgf_1.ige_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.zgf_1 = this.kd_1;
              Napier_getInstance().q5d(this.zgf_1, 'DoorLog', PersonParentJoinDao_Repo$findByUidWithMinorAsync$lambda(this.rgf_1, this.sgf_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.pgf_1.jge_1.zga(this.qgf_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $isMinorApprovedCOROUTINE$352(_this__u8e3s4, minorPersonUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.igg_1 = _this__u8e3s4;
    this.jgg_1 = minorPersonUid;
  }
  protoOf($isMinorApprovedCOROUTINE$352).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.kgg_1 = this.igg_1.ige_1;
            var tmp_1 = this;
            tmp_1.lgg_1 = 'PersonParentJoinDao/isMinorApproved';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.mgg_1 = this.igg_1.kge_1;
            var tmp_3 = this;
            tmp_3.ngg_1 = this.mgg_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.igg_1.ige_1.w38(), 'PersonParentJoinDao/isMinorApproved');
            doorNodeIdHeader(this_0, this.igg_1.ige_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'minorPersonUid', this.igg_1.ige_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.jgg_1));
            tmp_4.ogg_1 = this_0;
            this.ogg_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.pgg_1 = this.ngg_1;
            var tmp_6 = this;
            tmp_6.qgg_1 = this.ogg_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.qgg_1, this.pgg_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.rgg_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.igg_1.hge_1, this.rgg_1, this.igg_1.ige_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.sgg_1 = this.kd_1;
              Napier_getInstance().q5d(this.sgg_1, 'DoorLog', PersonParentJoinDao_Repo$isMinorApproved$lambda(this.kgg_1, this.lgg_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.igg_1.jge_1.bgb(this.jgg_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PersonParentJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    PersonParentJoinDao.call(this);
    this.hge_1 = _db;
    this.ige_1 = _repo;
    this.jge_1 = _dao;
    this.kge_1 = _httpClient;
    this.lge_1 = _clientId;
    this.mge_1 = _endpoint;
  }
  protoOf(PersonParentJoinDao_Repo).yga = function (entity, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$346(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonParentJoinDao_Repo).zga = function (uid, $completion) {
    var tmp = new $findByUidWithMinorAsyncCOROUTINE$347(this, uid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonParentJoinDao_Repo).agb = function (personParentJoin, $completion) {
    return withRepoChangeMonitorAsync(this.ige_1, 'PersonParentJoin', PersonParentJoinDao_Repo$updateAsync$slambda_0(this, personParentJoin, null), $completion);
  };
  protoOf(PersonParentJoinDao_Repo).bgb = function (minorPersonUid, $completion) {
    var tmp = new $isMinorApprovedCOROUTINE$352(this, minorPersonUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function PersonPictureDao() {
  }
  function $upsertCOROUTINE$353(_this__u8e3s4, personPicture, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.dgh_1 = _this__u8e3s4;
    this.egh_1 = personPicture;
  }
  protoOf($upsertCOROUTINE$353).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.fgh_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.dgh_1.hgh_1));
            if (this.egh_1.d96_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.fgh_1.b62(50, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.ggh_1 = suspendResult;
            this.egh_1.d96_1 = this.ggh_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.egh_1.e96_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.dgh_1.igh_1.tgg(this.egh_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return Unit_instance;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$354(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.rgh_1 = _this__u8e3s4;
    this.sgh_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$354).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.tgh_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.rgh_1.hgh_1));
            if (this.sgh_1.d96_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.tgh_1.b62(50, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.ugh_1 = suspendResult;
            this.sgh_1.d96_1 = this.ugh_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.sgh_1.e96_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.rgh_1.igh_1.insertAsync(this.sgh_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.sgh_1.d96_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PersonPictureDao_DoorWrapper(_db, _dao) {
    PersonPictureDao.call(this);
    this.hgh_1 = _db;
    this.igh_1 = _dao;
  }
  protoOf(PersonPictureDao_DoorWrapper).tgg = function (personPicture, $completion) {
    var tmp = new $upsertCOROUTINE$353(this, personPicture, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_DoorWrapper).ugg = function (personUid, $completion) {
    return this.igh_1.ugg(personUid, $completion);
  };
  protoOf(PersonPictureDao_DoorWrapper).rb3 = function (uid, uri, thumbnailUri, time, $completion) {
    return this.igh_1.rb3(uid, uri, thumbnailUri, time, $completion);
  };
  protoOf(PersonPictureDao_DoorWrapper).fbb = function (entityUid, transferJobItemUid, $completion) {
    return this.igh_1.fbb(entityUid, transferJobItemUid, $completion);
  };
  protoOf(PersonPictureDao_DoorWrapper).vgh = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$354(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.vgh(entity instanceof PersonPicture ? entity : THROW_CCE(), $completion);
  };
  function PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda$lambda(_result) {
    return mapNextRow(_result, null, PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda$lambda$lambda(_result));
  }
  function PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_personPictureUid = $_result.l5m('personPictureUid');
      var _tmp_personPictureLct = $_result.l5m('personPictureLct');
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var _tmp_fileSize = $_result.k5m('fileSize');
      var _tmp_personPictureActive = $_result.w65('personPictureActive');
      // Inline function 'kotlin.apply' call
      var this_0 = new PersonPicture();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.PersonPictureDao_JdbcImpl.findByPersonUidAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.d96_1 = _tmp_personPictureUid;
      this_0.e96_1 = _tmp_personPictureLct;
      this_0.f96_1 = _tmp_personPictureUri;
      this_0.g96_1 = _tmp_personPictureThumbnailUri;
      this_0.h96_1 = _tmp_fileSize;
      this_0.i96_1 = _tmp_personPictureActive;
      return this_0;
    };
  }
  function PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.wgh_1);
  }
  protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO PersonPicture (personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1).bgi = function (stmt, entity) {
    if (entity.d96_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.d96_1);
    }
    stmt.i5h(2, entity.e96_1);
    stmt.l5h(3, entity.f96_1);
    stmt.l5h(4, entity.g96_1);
    stmt.h5h(5, entity.h96_1);
    stmt.v5g(6, entity.i96_1);
  };
  protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1).c5f = function (stmt, entity) {
    return this.bgi(stmt, entity instanceof PersonPicture ? entity : THROW_CCE());
  };
  function PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.wgh_1);
  }
  protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO PersonPicture (personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1).bgi = function (stmt, entity) {
    if (entity.d96_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.d96_1);
    }
    stmt.i5h(2, entity.e96_1);
    stmt.l5h(3, entity.f96_1);
    stmt.l5h(4, entity.g96_1);
    stmt.h5h(5, entity.h96_1);
    stmt.v5g(6, entity.i96_1);
  };
  protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1).c5f = function (stmt, entity) {
    return this.bgi(stmt, entity instanceof PersonPicture ? entity : THROW_CCE());
  };
  function PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda($personUid, resultContinuation) {
    this.mgi_1 = $personUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda).ogi = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda).he = function (p1, $completion) {
    return this.ogi((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ngi_1.i5h(1, this.mgi_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ngi_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda).z5e = function (_stmt, completion) {
    var i = new PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda(this.mgi_1, completion);
    i.ngi_1 = _stmt;
    return i;
  };
  function PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda_0($personUid, resultContinuation) {
    var i = new PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda($personUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.ogi(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonPictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation) {
    this.xgi_1 = $uri;
    this.ygi_1 = $thumbnailUri;
    this.zgi_1 = $time;
    this.agj_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonPictureDao_JdbcImpl$updateUri$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_JdbcImpl$updateUri$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonPictureDao_JdbcImpl$updateUri$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.bgj_1.l5h(1, this.xgi_1);
            this.bgj_1.l5h(2, this.ygi_1);
            this.bgj_1.i5h(3, this.zgi_1);
            this.bgj_1.i5h(4, this.agj_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.bgj_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonPictureDao_JdbcImpl$updateUri$slambda).z5e = function (_stmt, completion) {
    var i = new PersonPictureDao_JdbcImpl$updateUri$slambda(this.xgi_1, this.ygi_1, this.zgi_1, this.agj_1, completion);
    i.bgj_1 = _stmt;
    return i;
  };
  function PersonPictureDao_JdbcImpl$updateUri$slambda_0($uri, $thumbnailUri, $time, $uid, resultContinuation) {
    var i = new PersonPictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda($entityUid, $transferJobItemUid, resultContinuation) {
    this.kgj_1 = $entityUid;
    this.lgj_1 = $transferJobItemUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.mgj_1.i5h(1, this.kgj_1);
            this.mgj_1.h5h(2, this.lgj_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.mgj_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda).z5e = function (_stmt, completion) {
    var i = new PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda(this.kgj_1, this.lgj_1, completion);
    i.mgj_1 = _stmt;
    return i;
  };
  function PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda_0($entityUid, $transferJobItemUid, resultContinuation) {
    var i = new PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda($entityUid, $transferJobItemUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$355(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vgj_1 = _this__u8e3s4;
    this.wgj_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$355).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.vgj_1.ygh_1.j5g(this.wgj_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateUriCOROUTINE$358(_this__u8e3s4, uid, uri, thumbnailUri, time, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.fgk_1 = _this__u8e3s4;
    this.ggk_1 = uid;
    this.hgk_1 = uri;
    this.igk_1 = thumbnailUri;
    this.jgk_1 = time;
  }
  protoOf($updateUriCOROUTINE$358).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE PersonPicture\n           SET personPictureUri = ?,\n               personPictureThumbnailUri = ?,\n               personPictureLct = CAST(? AS BIGINT)\n         WHERE personPictureUid = CAST(? AS BIGINT)      \n    ', VOID, VOID, VOID, '\n        UPDATE PersonPicture\n           SET personPictureUri = ?,\n               personPictureThumbnailUri = ?,\n               personPictureLct = ?\n         WHERE personPictureUid = ?      \n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.fgk_1.wgh_1, tmp_0, PersonPictureDao_JdbcImpl$updateUri$slambda_0(this.hgk_1, this.igk_1, this.jgk_1, this.ggk_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateTransferJobItemEtagCOROUTINE$359(_this__u8e3s4, entityUid, transferJobItemUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.sgk_1 = _this__u8e3s4;
    this.tgk_1 = entityUid;
    this.ugk_1 = transferJobItemUid;
  }
  protoOf($updateTransferJobItemEtagCOROUTINE$359).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE TransferJobItem\n           SET tjiEntityEtag = \n               (SELECT personPictureLct\n                  FROM PersonPicture\n                 WHERE personPictureUid = CAST(? AS BIGINT))\n         WHERE tjiUid = ?      \n    ', VOID, VOID, VOID, '\n        UPDATE TransferJobItem\n           SET tjiEntityEtag = \n               (SELECT personPictureLct\n                  FROM PersonPicture\n                 WHERE personPictureUid = ?)\n         WHERE tjiUid = ?      \n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.sgk_1.wgh_1, tmp_0, PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda_0(this.tgk_1, this.ugk_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PersonPictureDao_JdbcImpl(_db) {
    PersonPictureDao.call(this);
    this.wgh_1 = _db;
    var tmp = this;
    tmp.xgh_1 = new PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1(this);
    var tmp_0 = this;
    tmp_0.ygh_1 = new PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1(this);
  }
  protoOf(PersonPictureDao_JdbcImpl).tgg = function (personPicture, $completion) {
    return this.xgh_1.i5g(personPicture, $completion);
  };
  protoOf(PersonPictureDao_JdbcImpl).vgh = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$355(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.vgh(entity instanceof PersonPicture ? entity : THROW_CCE(), $completion);
  };
  protoOf(PersonPictureDao_JdbcImpl).ugg = function (personUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT * \n          FROM PersonPicture \n         WHERE personPictureUid = CAST(? AS BIGINT)\n           AND CAST(personPictureActive AS INTEGER) = 1\n         ', VOID, VOID, VOID, '\n        SELECT * \n          FROM PersonPicture \n         WHERE personPictureUid = ?\n           AND CAST(personPictureActive AS INTEGER) = 1\n         \n', true);
    return prepareAndUseStatementAsync(this.wgh_1, tmp, PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda_0(personUid, null), $completion);
  };
  protoOf(PersonPictureDao_JdbcImpl).rb3 = function (uid, uri, thumbnailUri, time, $completion) {
    var tmp = new $updateUriCOROUTINE$358(this, uid, uri, thumbnailUri, time, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_JdbcImpl).fbb = function (entityUid, transferJobItemUid, $completion) {
    var tmp = new $updateTransferJobItemEtagCOROUTINE$359(this, entityUid, transferJobItemUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function PersonPictureDao_Repo$upsert$slambda(this$0, $personPicture, resultContinuation) {
    this.dgl_1 = this$0;
    this.egl_1 = $personPicture;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonPictureDao_Repo$upsert$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_Repo$upsert$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(PersonPictureDao_Repo$upsert$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.dgl_1.hgl_1.tgg(this.egl_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonPictureDao_Repo$upsert$slambda).y77 = function (completion) {
    return new PersonPictureDao_Repo$upsert$slambda(this.dgl_1, this.egl_1, completion);
  };
  function PersonPictureDao_Repo$upsert$slambda_0(this$0, $personPicture, resultContinuation) {
    var i = new PersonPictureDao_Repo$upsert$slambda(this$0, $personPicture, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonPictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) {
    this.ugl_1 = this$0;
    this.vgl_1 = $uid;
    this.wgl_1 = $uri;
    this.xgl_1 = $thumbnailUri;
    this.ygl_1 = $time;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonPictureDao_Repo$updateUri$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_Repo$updateUri$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(PersonPictureDao_Repo$updateUri$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.ugl_1.hgl_1.rb3(this.vgl_1, this.wgl_1, this.xgl_1, this.ygl_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonPictureDao_Repo$updateUri$slambda).y77 = function (completion) {
    return new PersonPictureDao_Repo$updateUri$slambda(this.ugl_1, this.vgl_1, this.wgl_1, this.xgl_1, this.ygl_1, completion);
  };
  function PersonPictureDao_Repo$updateUri$slambda_0(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) {
    var i = new PersonPictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonPictureDao_Repo$updateTransferJobItemEtag$slambda(this$0, $entityUid, $transferJobItemUid, resultContinuation) {
    this.hgm_1 = this$0;
    this.igm_1 = $entityUid;
    this.jgm_1 = $transferJobItemUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonPictureDao_Repo$updateTransferJobItemEtag$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_Repo$updateTransferJobItemEtag$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(PersonPictureDao_Repo$updateTransferJobItemEtag$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.hgm_1.hgl_1.fbb(this.igm_1, this.jgm_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonPictureDao_Repo$updateTransferJobItemEtag$slambda).y77 = function (completion) {
    return new PersonPictureDao_Repo$updateTransferJobItemEtag$slambda(this.hgm_1, this.igm_1, this.jgm_1, completion);
  };
  function PersonPictureDao_Repo$updateTransferJobItemEtag$slambda_0(this$0, $entityUid, $transferJobItemUid, resultContinuation) {
    var i = new PersonPictureDao_Repo$updateTransferJobItemEtag$slambda(this$0, $entityUid, $transferJobItemUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonPictureDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.sgm_1 = this$0;
    this.tgm_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonPictureDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(PersonPictureDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.sgm_1.hgl_1.insertAsync(this.tgm_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(PersonPictureDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new PersonPictureDao_Repo$insertAsync$slambda(this.sgm_1, this.tgm_1, completion);
  };
  function PersonPictureDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new PersonPictureDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByPersonUidAsyncCOROUTINE$360(_this__u8e3s4, personUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.cgn_1 = _this__u8e3s4;
    this.dgn_1 = personUid;
  }
  protoOf($findByPersonUidAsyncCOROUTINE$360).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.cgn_1.hgl_1.ugg(this.dgn_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$361(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.mgn_1 = _this__u8e3s4;
    this.ngn_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$361).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.mgn_1.ggl_1, 'PersonPicture', PersonPictureDao_Repo$insertAsync$slambda_0(this.mgn_1, this.ngn_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PersonPictureDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    PersonPictureDao.call(this);
    this.fgl_1 = _db;
    this.ggl_1 = _repo;
    this.hgl_1 = _dao;
    this.igl_1 = _httpClient;
    this.jgl_1 = _clientId;
    this.kgl_1 = _endpoint;
    this.lgl_1 = new RepoDaoFlowHelper(this.ggl_1);
  }
  protoOf(PersonPictureDao_Repo).tgg = function (personPicture, $completion) {
    return withRepoChangeMonitorAsync(this.ggl_1, 'PersonPicture', PersonPictureDao_Repo$upsert$slambda_0(this, personPicture, null), $completion);
  };
  protoOf(PersonPictureDao_Repo).ugg = function (personUid, $completion) {
    var tmp = new $findByPersonUidAsyncCOROUTINE$360(this, personUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_Repo).rb3 = function (uid, uri, thumbnailUri, time, $completion) {
    return withRepoChangeMonitorAsync(this.ggl_1, 'PersonPicture', PersonPictureDao_Repo$updateUri$slambda_0(this, uid, uri, thumbnailUri, time, null), $completion);
  };
  protoOf(PersonPictureDao_Repo).fbb = function (entityUid, transferJobItemUid, $completion) {
    return withRepoChangeMonitorAsync(this.ggl_1, 'TransferJobItem', PersonPictureDao_Repo$updateTransferJobItemEtag$slambda_0(this, entityUid, transferJobItemUid, null), $completion);
  };
  protoOf(PersonPictureDao_Repo).vgh = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$361(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_Repo).insertAsync = function (entity, $completion) {
    return this.vgh(entity instanceof PersonPicture ? entity : THROW_CCE(), $completion);
  };
  function ReportDao() {
  }
  function $insertAsyncCOROUTINE$362(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.wgn_1 = _this__u8e3s4;
    this.xgn_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$362).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.ygn_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.wgn_1.ago_1));
            if (this.xgn_1.cgo_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.ygn_1.b62(101, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.zgn_1 = suspendResult;
            this.xgn_1.cgo_1 = this.zgn_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.xgn_1.zgo_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.wgn_1.bgo_1.insertAsync(this.xgn_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.xgn_1.cgo_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ReportDao_DoorWrapper(_db, _dao) {
    ReportDao.call(this);
    this.ago_1 = _db;
    this.bgo_1 = _dao;
  }
  protoOf(ReportDao_DoorWrapper).agp = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$362(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ReportDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.agp(entity instanceof Report ? entity : THROW_CCE(), $completion);
  };
  function ReportDao_JdbcImpl$_insertAdapterReport_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.bgp_1);
  }
  protoOf(ReportDao_JdbcImpl$_insertAdapterReport_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO Report (reportUid, reportOwnerUid, xAxis, reportDateRangeSelection, fromDate, fromRelTo, fromRelOffSet, fromRelUnit, toDate, toRelTo, toRelOffSet, toRelUnit, reportTitle, reportDescription, reportSeries, reportInactive, isTemplate, priority, reportTitleId, reportDescId, reportMasterChangeSeqNum, reportLocalChangeSeqNum, reportLastChangedBy, reportLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ReportDao_JdbcImpl$_insertAdapterReport_upsert$1).ggp = function (stmt, entity) {
    if (entity.cgo_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.cgo_1);
    }
    stmt.i5h(2, entity.dgo_1);
    stmt.h5h(3, entity.ego_1);
    stmt.h5h(4, entity.fgo_1);
    stmt.i5h(5, entity.ggo_1);
    stmt.h5h(6, entity.hgo_1);
    stmt.h5h(7, entity.igo_1);
    stmt.h5h(8, entity.jgo_1);
    stmt.i5h(9, entity.kgo_1);
    stmt.h5h(10, entity.lgo_1);
    stmt.h5h(11, entity.mgo_1);
    stmt.h5h(12, entity.ngo_1);
    stmt.l5h(13, entity.ogo_1);
    stmt.l5h(14, entity.pgo_1);
    stmt.l5h(15, entity.qgo_1);
    stmt.v5g(16, entity.rgo_1);
    stmt.v5g(17, entity.sgo_1);
    stmt.h5h(18, entity.tgo_1);
    stmt.h5h(19, entity.ugo_1);
    stmt.h5h(20, entity.vgo_1);
    stmt.i5h(21, entity.wgo_1);
    stmt.i5h(22, entity.xgo_1);
    stmt.h5h(23, entity.ygo_1);
    stmt.i5h(24, entity.zgo_1);
  };
  protoOf(ReportDao_JdbcImpl$_insertAdapterReport_upsert$1).c5f = function (stmt, entity) {
    return this.ggp(stmt, entity instanceof Report ? entity : THROW_CCE());
  };
  function ReportDao_JdbcImpl$_insertAdapterReport_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.bgp_1);
  }
  protoOf(ReportDao_JdbcImpl$_insertAdapterReport_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO Report (reportUid, reportOwnerUid, xAxis, reportDateRangeSelection, fromDate, fromRelTo, fromRelOffSet, fromRelUnit, toDate, toRelTo, toRelOffSet, toRelUnit, reportTitle, reportDescription, reportSeries, reportInactive, isTemplate, priority, reportTitleId, reportDescId, reportMasterChangeSeqNum, reportLocalChangeSeqNum, reportLastChangedBy, reportLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ReportDao_JdbcImpl$_insertAdapterReport_abort$1).ggp = function (stmt, entity) {
    if (entity.cgo_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.cgo_1);
    }
    stmt.i5h(2, entity.dgo_1);
    stmt.h5h(3, entity.ego_1);
    stmt.h5h(4, entity.fgo_1);
    stmt.i5h(5, entity.ggo_1);
    stmt.h5h(6, entity.hgo_1);
    stmt.h5h(7, entity.igo_1);
    stmt.h5h(8, entity.jgo_1);
    stmt.i5h(9, entity.kgo_1);
    stmt.h5h(10, entity.lgo_1);
    stmt.h5h(11, entity.mgo_1);
    stmt.h5h(12, entity.ngo_1);
    stmt.l5h(13, entity.ogo_1);
    stmt.l5h(14, entity.pgo_1);
    stmt.l5h(15, entity.qgo_1);
    stmt.v5g(16, entity.rgo_1);
    stmt.v5g(17, entity.sgo_1);
    stmt.h5h(18, entity.tgo_1);
    stmt.h5h(19, entity.ugo_1);
    stmt.h5h(20, entity.vgo_1);
    stmt.i5h(21, entity.wgo_1);
    stmt.i5h(22, entity.xgo_1);
    stmt.h5h(23, entity.ygo_1);
    stmt.i5h(24, entity.zgo_1);
  };
  protoOf(ReportDao_JdbcImpl$_insertAdapterReport_abort$1).c5f = function (stmt, entity) {
    return this.ggp(stmt, entity instanceof Report ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$363(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.rgp_1 = _this__u8e3s4;
    this.sgp_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$363).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.rgp_1.dgp_1.j5g(this.sgp_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ReportDao_JdbcImpl(_db) {
    ReportDao.call(this);
    this.bgp_1 = _db;
    var tmp = this;
    tmp.cgp_1 = new ReportDao_JdbcImpl$_insertAdapterReport_upsert$1(this);
    var tmp_0 = this;
    tmp_0.dgp_1 = new ReportDao_JdbcImpl$_insertAdapterReport_abort$1(this);
  }
  protoOf(ReportDao_JdbcImpl).agp = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$363(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ReportDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.agp(entity instanceof Report ? entity : THROW_CCE(), $completion);
  };
  function ReportDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.bgq_1 = this$0;
    this.cgq_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ReportDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ReportDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(ReportDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.bgq_1.fgq_1.insertAsync(this.cgq_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ReportDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new ReportDao_Repo$insertAsync$slambda(this.bgq_1, this.cgq_1, completion);
  };
  function ReportDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new ReportDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$367(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.rgq_1 = _this__u8e3s4;
    this.sgq_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$367).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.rgq_1.egq_1, 'Report', ReportDao_Repo$insertAsync$slambda_0(this.rgq_1, this.sgq_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ReportDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ReportDao.call(this);
    this.dgq_1 = _db;
    this.egq_1 = _repo;
    this.fgq_1 = _dao;
    this.ggq_1 = _httpClient;
    this.hgq_1 = _clientId;
    this.igq_1 = _endpoint;
  }
  protoOf(ReportDao_Repo).agp = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$367(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ReportDao_Repo).insertAsync = function (entity, $completion) {
    return this.agp(entity instanceof Report ? entity : THROW_CCE(), $completion);
  };
  function ScheduleDao() {
  }
  function $upsertListAsyncCOROUTINE$368(_this__u8e3s4, entities, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.egr_1 = _this__u8e3s4;
    this.fgr_1 = entities;
  }
  protoOf($upsertListAsyncCOROUTINE$368).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.ggr_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.egr_1.ngr_1));
            var tmp_0 = this;
            tmp_0.hgr_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.igr_1 = this.fgr_1.w();
            var tmp_2 = this;
            tmp_2.jgr_1 = this.igr_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.jgr_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.kgr_1 = this.jgr_1.e();
            var tmp_3 = this;
            tmp_3.lgr_1 = this.kgr_1;
            if (this.lgr_1.pgr_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.ggr_1.b62(21, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.mgr_1 = suspendResult;
            this.lgr_1.pgr_1 = this.mgr_1;
            var this_0 = this.hgr_1;
            var element = this.mgr_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.lgr_1.ags_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.egr_1.ogr_1.tgq(this.fgr_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            return Unit_instance;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$369(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.kgs_1 = _this__u8e3s4;
    this.lgs_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$369).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.mgs_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.kgs_1.ngr_1));
            if (this.lgs_1.pgr_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.mgs_1.b62(21, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.ngs_1 = suspendResult;
            this.lgs_1.pgr_1 = this.ngs_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.lgs_1.ags_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.kgs_1.ogr_1.insertAsync(this.lgs_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.lgs_1.pgr_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ScheduleDao_DoorWrapper(_db, _dao) {
    ScheduleDao.call(this);
    this.ngr_1 = _db;
    this.ogr_1 = _dao;
  }
  protoOf(ScheduleDao_DoorWrapper).tgq = function (entities, $completion) {
    var tmp = new $upsertListAsyncCOROUTINE$368(this, entities, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_DoorWrapper).ugq = function (scheduleUid, active, changeTime, $completion) {
    return this.ogr_1.ugq(scheduleUid, active, changeTime, $completion);
  };
  protoOf(ScheduleDao_DoorWrapper).vgq = function (clazzUid, $completion) {
    return this.ogr_1.vgq(clazzUid, $completion);
  };
  protoOf(ScheduleDao_DoorWrapper).ogs = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$369(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.ogs(entity instanceof Schedule ? entity : THROW_CCE(), $completion);
  };
  function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda$lambda(_result) {
    return mapRows(_result, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda$lambda$lambda(_result));
  }
  function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_scheduleUid = $_result.l5m('scheduleUid');
      var _tmp_sceduleStartTime = $_result.l5m('sceduleStartTime');
      var _tmp_scheduleEndTime = $_result.l5m('scheduleEndTime');
      var _tmp_scheduleDay = $_result.k5m('scheduleDay');
      var _tmp_scheduleMonth = $_result.k5m('scheduleMonth');
      var _tmp_scheduleFrequency = $_result.k5m('scheduleFrequency');
      var _tmp_umCalendarUid = $_result.l5m('umCalendarUid');
      var _tmp_scheduleClazzUid = $_result.l5m('scheduleClazzUid');
      var _tmp_scheduleMasterChangeSeqNum = $_result.l5m('scheduleMasterChangeSeqNum');
      var _tmp_scheduleLocalChangeSeqNum = $_result.l5m('scheduleLocalChangeSeqNum');
      var _tmp_scheduleLastChangedBy = $_result.k5m('scheduleLastChangedBy');
      var _tmp_scheduleLastChangedTime = $_result.l5m('scheduleLastChangedTime');
      var _tmp_scheduleActive = $_result.w65('scheduleActive');
      // Inline function 'kotlin.apply' call
      var this_0 = new Schedule();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ScheduleDao_JdbcImpl.findAllSchedulesByClazzUidAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.pgr_1 = _tmp_scheduleUid;
      this_0.qgr_1 = _tmp_sceduleStartTime;
      this_0.rgr_1 = _tmp_scheduleEndTime;
      this_0.sgr_1 = _tmp_scheduleDay;
      this_0.tgr_1 = _tmp_scheduleMonth;
      this_0.ugr_1 = _tmp_scheduleFrequency;
      this_0.vgr_1 = _tmp_umCalendarUid;
      this_0.wgr_1 = _tmp_scheduleClazzUid;
      this_0.xgr_1 = _tmp_scheduleMasterChangeSeqNum;
      this_0.ygr_1 = _tmp_scheduleLocalChangeSeqNum;
      this_0.zgr_1 = _tmp_scheduleLastChangedBy;
      this_0.ags_1 = _tmp_scheduleLastChangedTime;
      this_0.bgs_1 = _tmp_scheduleActive;
      return this_0;
    };
  }
  function ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.pgs_1);
  }
  protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO Schedule (scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1).ugs = function (stmt, entity) {
    if (entity.pgr_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.pgr_1);
    }
    stmt.i5h(2, entity.qgr_1);
    stmt.i5h(3, entity.rgr_1);
    stmt.h5h(4, entity.sgr_1);
    stmt.h5h(5, entity.tgr_1);
    stmt.h5h(6, entity.ugr_1);
    stmt.i5h(7, entity.vgr_1);
    stmt.i5h(8, entity.wgr_1);
    stmt.i5h(9, entity.xgr_1);
    stmt.i5h(10, entity.ygr_1);
    stmt.h5h(11, entity.zgr_1);
    stmt.i5h(12, entity.ags_1);
    stmt.v5g(13, entity.bgs_1);
  };
  protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1).c5f = function (stmt, entity) {
    return this.ugs(stmt, entity instanceof Schedule ? entity : THROW_CCE());
  };
  function ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.pgs_1);
  }
  protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO Schedule (scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1).ugs = function (stmt, entity) {
    if (entity.pgr_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.pgr_1);
    }
    stmt.i5h(2, entity.qgr_1);
    stmt.i5h(3, entity.rgr_1);
    stmt.h5h(4, entity.sgr_1);
    stmt.h5h(5, entity.tgr_1);
    stmt.h5h(6, entity.ugr_1);
    stmt.i5h(7, entity.vgr_1);
    stmt.i5h(8, entity.wgr_1);
    stmt.i5h(9, entity.xgr_1);
    stmt.i5h(10, entity.ygr_1);
    stmt.h5h(11, entity.zgr_1);
    stmt.i5h(12, entity.ags_1);
    stmt.v5g(13, entity.bgs_1);
  };
  protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1).c5f = function (stmt, entity) {
    return this.ugs(stmt, entity instanceof Schedule ? entity : THROW_CCE());
  };
  function ScheduleDao_JdbcImpl$updateScheduleActivated$slambda($active, $changeTime, $scheduleUid, resultContinuation) {
    this.fgt_1 = $active;
    this.ggt_1 = $changeTime;
    this.hgt_1 = $scheduleUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ScheduleDao_JdbcImpl$updateScheduleActivated$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_JdbcImpl$updateScheduleActivated$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ScheduleDao_JdbcImpl$updateScheduleActivated$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.igt_1.v5g(1, this.fgt_1);
            this.igt_1.i5h(2, this.ggt_1);
            this.igt_1.i5h(3, this.hgt_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.igt_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ScheduleDao_JdbcImpl$updateScheduleActivated$slambda).z5e = function (_stmt, completion) {
    var i = new ScheduleDao_JdbcImpl$updateScheduleActivated$slambda(this.fgt_1, this.ggt_1, this.hgt_1, completion);
    i.igt_1 = _stmt;
    return i;
  };
  function ScheduleDao_JdbcImpl$updateScheduleActivated$slambda_0($active, $changeTime, $scheduleUid, resultContinuation) {
    var i = new ScheduleDao_JdbcImpl$updateScheduleActivated$slambda($active, $changeTime, $scheduleUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda($clazzUid, resultContinuation) {
    this.rgt_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda).tgt = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda).he = function (p1, $completion) {
    return this.tgt((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.sgt_1.i5h(1, this.rgt_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.sgt_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda).z5e = function (_stmt, completion) {
    var i = new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda(this.rgt_1, completion);
    i.sgt_1 = _stmt;
    return i;
  };
  function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda_0($clazzUid, resultContinuation) {
    var i = new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda($clazzUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.tgt(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$370(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.cgu_1 = _this__u8e3s4;
    this.dgu_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$370).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.cgu_1.qgs_1.j5g(this.dgu_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateScheduleActivatedCOROUTINE$372(_this__u8e3s4, scheduleUid, active, changeTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.mgu_1 = _this__u8e3s4;
    this.ngu_1 = scheduleUid;
    this.ogu_1 = active;
    this.pgu_1 = changeTime;
  }
  protoOf($updateScheduleActivatedCOROUTINE$372).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE Schedule \n           SET scheduleActive = ?,\n               scheduleLastChangedTime = CAST(? AS BIGINT)\n         WHERE scheduleUid = CAST(? AS BIGINT)\n            ', VOID, VOID, VOID, '\n        UPDATE Schedule \n           SET scheduleActive = ?,\n               scheduleLastChangedTime = ?\n         WHERE scheduleUid = ?\n            \n', false);
            suspendResult = prepareAndUseStatementAsync(this.mgu_1.pgs_1, tmp_0, ScheduleDao_JdbcImpl$updateScheduleActivated$slambda_0(this.ogu_1, this.pgu_1, this.ngu_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ScheduleDao_JdbcImpl(_db) {
    ScheduleDao.call(this);
    this.pgs_1 = _db;
    var tmp = this;
    tmp.qgs_1 = new ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1(this);
    var tmp_0 = this;
    tmp_0.rgs_1 = new ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1(this);
  }
  protoOf(ScheduleDao_JdbcImpl).tgq = function (entities, $completion) {
    return this.rgs_1.m5g(entities, $completion);
  };
  protoOf(ScheduleDao_JdbcImpl).ogs = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$370(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.ogs(entity instanceof Schedule ? entity : THROW_CCE(), $completion);
  };
  protoOf(ScheduleDao_JdbcImpl).ugq = function (scheduleUid, active, changeTime, $completion) {
    var tmp = new $updateScheduleActivatedCOROUTINE$372(this, scheduleUid, active, changeTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_JdbcImpl).vgq = function (clazzUid, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM Schedule WHERE scheduleClazzUid = CAST(? AS BIGINT) AND CAST(scheduleActive AS INTEGER) = 1 ', VOID, VOID, VOID, 'SELECT * FROM Schedule WHERE scheduleClazzUid = ? AND CAST(scheduleActive AS INTEGER) = 1 \n', true);
    return prepareAndUseStatementAsync(this.pgs_1, tmp, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda_0(clazzUid, null), $completion);
  };
  function ScheduleDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) {
    this.ygu_1 = this$0;
    this.zgu_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ScheduleDao_Repo$upsertListAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_Repo$upsertListAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ScheduleDao_Repo$upsertListAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.ygu_1.cgv_1.tgq(this.zgu_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ScheduleDao_Repo$upsertListAsync$slambda).y77 = function (completion) {
    return new ScheduleDao_Repo$upsertListAsync$slambda(this.ygu_1, this.zgu_1, completion);
  };
  function ScheduleDao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) {
    var i = new ScheduleDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ScheduleDao_Repo$updateScheduleActivated$slambda(this$0, $scheduleUid, $active, $changeTime, resultContinuation) {
    this.ogv_1 = this$0;
    this.pgv_1 = $scheduleUid;
    this.qgv_1 = $active;
    this.rgv_1 = $changeTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ScheduleDao_Repo$updateScheduleActivated$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_Repo$updateScheduleActivated$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ScheduleDao_Repo$updateScheduleActivated$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.ogv_1.cgv_1.ugq(this.pgv_1, this.qgv_1, this.rgv_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ScheduleDao_Repo$updateScheduleActivated$slambda).y77 = function (completion) {
    return new ScheduleDao_Repo$updateScheduleActivated$slambda(this.ogv_1, this.pgv_1, this.qgv_1, this.rgv_1, completion);
  };
  function ScheduleDao_Repo$updateScheduleActivated$slambda_0(this$0, $scheduleUid, $active, $changeTime, resultContinuation) {
    var i = new ScheduleDao_Repo$updateScheduleActivated$slambda(this$0, $scheduleUid, $active, $changeTime, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ScheduleDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.agw_1 = this$0;
    this.bgw_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ScheduleDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(ScheduleDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.agw_1.cgv_1.insertAsync(this.bgw_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ScheduleDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new ScheduleDao_Repo$insertAsync$slambda(this.agw_1, this.bgw_1, completion);
  };
  function ScheduleDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new ScheduleDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findAllSchedulesByClazzUidAsyncCOROUTINE$375(_this__u8e3s4, clazzUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.kgw_1 = _this__u8e3s4;
    this.lgw_1 = clazzUid;
  }
  protoOf($findAllSchedulesByClazzUidAsyncCOROUTINE$375).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.kgw_1.cgv_1.vgq(this.lgw_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertAsyncCOROUTINE$376(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ugw_1 = _this__u8e3s4;
    this.vgw_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$376).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.ugw_1.bgv_1, 'Schedule', ScheduleDao_Repo$insertAsync$slambda_0(this.ugw_1, this.vgw_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ScheduleDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ScheduleDao.call(this);
    this.agv_1 = _db;
    this.bgv_1 = _repo;
    this.cgv_1 = _dao;
    this.dgv_1 = _httpClient;
    this.egv_1 = _clientId;
    this.fgv_1 = _endpoint;
  }
  protoOf(ScheduleDao_Repo).tgq = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.bgv_1, 'Schedule', ScheduleDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(ScheduleDao_Repo).ugq = function (scheduleUid, active, changeTime, $completion) {
    return withRepoChangeMonitorAsync(this.bgv_1, 'Schedule', ScheduleDao_Repo$updateScheduleActivated$slambda_0(this, scheduleUid, active, changeTime, null), $completion);
  };
  protoOf(ScheduleDao_Repo).vgq = function (clazzUid, $completion) {
    var tmp = new $findAllSchedulesByClazzUidAsyncCOROUTINE$375(this, clazzUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_Repo).ogs = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$376(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_Repo).insertAsync = function (entity, $completion) {
    return this.ogs(entity instanceof Schedule ? entity : THROW_CCE(), $completion);
  };
  function ScopedGrantDao() {
  }
  function $insertAsyncCOROUTINE$377(_this__u8e3s4, scopedGrant, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.fgx_1 = _this__u8e3s4;
    this.ggx_1 = scopedGrant;
  }
  protoOf($insertAsyncCOROUTINE$377).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.hgx_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.fgx_1.jgx_1));
            if (this.ggx_1.lgx_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.hgx_1.b62(48, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.igx_1 = suspendResult;
            this.ggx_1.lgx_1 = this.igx_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.ggx_1.pgx_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.fgx_1.kgx_1.wgw(this.ggx_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.ggx_1.lgx_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ScopedGrantDao_DoorWrapper(_db, _dao) {
    ScopedGrantDao.call(this);
    this.jgx_1 = _db;
    this.kgx_1 = _dao;
  }
  protoOf(ScopedGrantDao_DoorWrapper).wgw = function (scopedGrant, $completion) {
    var tmp = new $insertAsyncCOROUTINE$377(this, scopedGrant, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.wgx_1);
  }
  protoOf(ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO ScopedGrant (sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1).agy = function (stmt, entity) {
    if (entity.lgx_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.lgx_1);
    }
    stmt.i5h(2, entity.mgx_1);
    stmt.i5h(3, entity.ngx_1);
    stmt.h5h(4, entity.ogx_1);
    stmt.i5h(5, entity.pgx_1);
    stmt.h5h(6, entity.qgx_1);
    stmt.i5h(7, entity.rgx_1);
    stmt.i5h(8, entity.sgx_1);
    stmt.i5h(9, entity.tgx_1);
    stmt.h5h(10, entity.ugx_1);
    stmt.h5h(11, entity.vgx_1);
  };
  protoOf(ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1).c5f = function (stmt, entity) {
    return this.agy(stmt, entity instanceof ScopedGrant ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$379(_this__u8e3s4, scopedGrant, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.jgy_1 = _this__u8e3s4;
    this.kgy_1 = scopedGrant;
  }
  protoOf($insertAsyncCOROUTINE$379).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.jgy_1.xgx_1.j5g(this.kgy_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ScopedGrantDao_JdbcImpl(_db) {
    ScopedGrantDao.call(this);
    this.wgx_1 = _db;
    var tmp = this;
    tmp.xgx_1 = new ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1(this);
  }
  protoOf(ScopedGrantDao_JdbcImpl).wgw = function (scopedGrant, $completion) {
    var tmp = new $insertAsyncCOROUTINE$379(this, scopedGrant, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function ScopedGrantDao_Repo$insertAsync$slambda(this$0, $scopedGrant, resultContinuation) {
    this.tgy_1 = this$0;
    this.ugy_1 = $scopedGrant;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ScopedGrantDao_Repo$insertAsync$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScopedGrantDao_Repo$insertAsync$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(ScopedGrantDao_Repo$insertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.tgy_1.xgy_1.wgw(this.ugy_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ScopedGrantDao_Repo$insertAsync$slambda).y77 = function (completion) {
    return new ScopedGrantDao_Repo$insertAsync$slambda(this.tgy_1, this.ugy_1, completion);
  };
  function ScopedGrantDao_Repo$insertAsync$slambda_0(this$0, $scopedGrant, resultContinuation) {
    var i = new ScopedGrantDao_Repo$insertAsync$slambda(this$0, $scopedGrant, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$380(_this__u8e3s4, scopedGrant, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.jgz_1 = _this__u8e3s4;
    this.kgz_1 = scopedGrant;
  }
  protoOf($insertAsyncCOROUTINE$380).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.jgz_1.wgy_1, 'ScopedGrant', ScopedGrantDao_Repo$insertAsync$slambda_0(this.jgz_1, this.kgz_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ScopedGrantDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ScopedGrantDao.call(this);
    this.vgy_1 = _db;
    this.wgy_1 = _repo;
    this.xgy_1 = _dao;
    this.ygy_1 = _httpClient;
    this.zgy_1 = _clientId;
    this.agz_1 = _endpoint;
  }
  protoOf(ScopedGrantDao_Repo).wgw = function (scopedGrant, $completion) {
    var tmp = new $insertAsyncCOROUTINE$380(this, scopedGrant, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function SiteDao() {
  }
  function SiteDao_DoorWrapper(_db, _dao) {
    SiteDao.call(this);
    this.ogz_1 = _db;
    this.pgz_1 = _dao;
  }
  protoOf(SiteDao_DoorWrapper).lgz = function ($completion) {
    return this.pgz_1.lgz($completion);
  };
  protoOf(SiteDao_DoorWrapper).mgz = function () {
    return this.pgz_1.mgz();
  };
  protoOf(SiteDao_DoorWrapper).ngz = function (workspace, $completion) {
    workspace.ugz_1 = systemTimeInMillis();
    return this.pgz_1.ngz(workspace, $completion);
  };
  function SiteDao_JdbcImpl$getSiteAsync$slambda$lambda(_result) {
    return mapNextRow(_result, null, SiteDao_JdbcImpl$getSiteAsync$slambda$lambda$lambda(_result));
  }
  function SiteDao_JdbcImpl$getSiteAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_siteUid = $_result.l5m('siteUid');
      var _tmp_sitePcsn = $_result.l5m('sitePcsn');
      var _tmp_siteLcsn = $_result.l5m('siteLcsn');
      var _tmp_siteLcb = $_result.k5m('siteLcb');
      var _tmp_siteLct = $_result.l5m('siteLct');
      var _tmp_siteName = $_result.rz('siteName');
      var _tmp_guestLogin = $_result.w65('guestLogin');
      var _tmp_registrationAllowed = $_result.w65('registrationAllowed');
      var _tmp_authSalt = $_result.rz('authSalt');
      // Inline function 'kotlin.apply' call
      var this_0 = new Site();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.SiteDao_JdbcImpl.getSiteAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.qgz_1 = _tmp_siteUid;
      this_0.rgz_1 = _tmp_sitePcsn;
      this_0.sgz_1 = _tmp_siteLcsn;
      this_0.tgz_1 = _tmp_siteLcb;
      this_0.ugz_1 = _tmp_siteLct;
      this_0.vgz_1 = _tmp_siteName;
      this_0.wgz_1 = _tmp_guestLogin;
      this_0.xgz_1 = _tmp_registrationAllowed;
      this_0.ygz_1 = _tmp_authSalt;
      return this_0;
    };
  }
  function SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_siteUid = $_result.l5m('siteUid');
      var _tmp_sitePcsn = $_result.l5m('sitePcsn');
      var _tmp_siteLcsn = $_result.l5m('siteLcsn');
      var _tmp_siteLcb = $_result.k5m('siteLcb');
      var _tmp_siteLct = $_result.l5m('siteLct');
      var _tmp_siteName = $_result.rz('siteName');
      var _tmp_guestLogin = $_result.w65('guestLogin');
      var _tmp_registrationAllowed = $_result.w65('registrationAllowed');
      var _tmp_authSalt = $_result.rz('authSalt');
      // Inline function 'kotlin.apply' call
      var this_0 = new Site();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.SiteDao_JdbcImpl.getSiteAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.qgz_1 = _tmp_siteUid;
      this_0.rgz_1 = _tmp_sitePcsn;
      this_0.sgz_1 = _tmp_siteLcsn;
      this_0.tgz_1 = _tmp_siteLcb;
      this_0.ugz_1 = _tmp_siteLct;
      this_0.vgz_1 = _tmp_siteName;
      this_0.wgz_1 = _tmp_guestLogin;
      this_0.xgz_1 = _tmp_registrationAllowed;
      this_0.ygz_1 = _tmp_authSalt;
      return this_0;
    };
  }
  function SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda(resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda).ih0 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.ih0((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.hh0_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda(completion);
    i.hh0_1 = _stmt;
    return i;
  };
  function SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda_0(resultContinuation) {
    var i = new SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda(resultContinuation);
    var l = function (_stmt, $completion) {
      return i.ih0(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SiteDao_JdbcImpl$_insertAdapterSite_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.jh0_1);
  }
  protoOf(SiteDao_JdbcImpl$_insertAdapterSite_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO Site (siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(SiteDao_JdbcImpl$_insertAdapterSite_upsert$1).oh0 = function (stmt, entity) {
    if (entity.qgz_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.qgz_1);
    }
    stmt.i5h(2, entity.rgz_1);
    stmt.i5h(3, entity.sgz_1);
    stmt.h5h(4, entity.tgz_1);
    stmt.i5h(5, entity.ugz_1);
    stmt.l5h(6, entity.vgz_1);
    stmt.v5g(7, entity.wgz_1);
    stmt.v5g(8, entity.xgz_1);
    stmt.l5h(9, entity.ygz_1);
  };
  protoOf(SiteDao_JdbcImpl$_insertAdapterSite_upsert$1).c5f = function (stmt, entity) {
    return this.oh0(stmt, entity instanceof Site ? entity : THROW_CCE());
  };
  function SiteDao_JdbcImpl$_insertAdapterSite_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.jh0_1);
  }
  protoOf(SiteDao_JdbcImpl$_insertAdapterSite_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO Site (siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(SiteDao_JdbcImpl$_insertAdapterSite_abort$1).oh0 = function (stmt, entity) {
    if (entity.qgz_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.qgz_1);
    }
    stmt.i5h(2, entity.rgz_1);
    stmt.i5h(3, entity.sgz_1);
    stmt.h5h(4, entity.tgz_1);
    stmt.i5h(5, entity.ugz_1);
    stmt.l5h(6, entity.vgz_1);
    stmt.v5g(7, entity.wgz_1);
    stmt.v5g(8, entity.xgz_1);
    stmt.l5h(9, entity.ygz_1);
  };
  protoOf(SiteDao_JdbcImpl$_insertAdapterSite_abort$1).c5f = function (stmt, entity) {
    return this.oh0(stmt, entity instanceof Site ? entity : THROW_CCE());
  };
  function SiteDao_JdbcImpl$updateAsync$slambda($workspace, resultContinuation) {
    this.zh0_1 = $workspace;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteDao_JdbcImpl$updateAsync$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteDao_JdbcImpl$updateAsync$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(SiteDao_JdbcImpl$updateAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ah1_1.i5h(1, this.zh0_1.rgz_1);
            this.ah1_1.i5h(2, this.zh0_1.sgz_1);
            this.ah1_1.h5h(3, this.zh0_1.tgz_1);
            this.ah1_1.i5h(4, this.zh0_1.ugz_1);
            this.ah1_1.l5h(5, this.zh0_1.vgz_1);
            this.ah1_1.v5g(6, this.zh0_1.wgz_1);
            this.ah1_1.v5g(7, this.zh0_1.xgz_1);
            this.ah1_1.l5h(8, this.zh0_1.ygz_1);
            this.ah1_1.i5h(9, this.zh0_1.qgz_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.ah1_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SiteDao_JdbcImpl$updateAsync$slambda).z5e = function (_stmt, completion) {
    var i = new SiteDao_JdbcImpl$updateAsync$slambda(this.zh0_1, completion);
    i.ah1_1 = _stmt;
    return i;
  };
  function SiteDao_JdbcImpl$updateAsync$slambda_0($workspace, resultContinuation) {
    var i = new SiteDao_JdbcImpl$updateAsync$slambda($workspace, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SiteDao_JdbcImpl$getSiteAsync$slambda(resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteDao_JdbcImpl$getSiteAsync$slambda).ih0 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteDao_JdbcImpl$getSiteAsync$slambda).he = function (p1, $completion) {
    return this.ih0((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(SiteDao_JdbcImpl$getSiteAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.jh1_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, SiteDao_JdbcImpl$getSiteAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SiteDao_JdbcImpl$getSiteAsync$slambda).z5e = function (_stmt, completion) {
    var i = new SiteDao_JdbcImpl$getSiteAsync$slambda(completion);
    i.jh1_1 = _stmt;
    return i;
  };
  function SiteDao_JdbcImpl$getSiteAsync$slambda_0(resultContinuation) {
    var i = new SiteDao_JdbcImpl$getSiteAsync$slambda(resultContinuation);
    var l = function (_stmt, $completion) {
      return i.ih0(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SiteDao_JdbcImpl$getSiteAsFlow$slambda(this$0, resultContinuation) {
    this.sh1_1 = this$0;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda).th1 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda).z77 = function ($completion) {
    return this.th1($completion);
  };
  protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('SELECT * FROM Site LIMIT 1', VOID, VOID, VOID, VOID, true);
            suspendResult = prepareAndUseStatementAsync(this.sh1_1.jh0_1, tmp_0, SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda_0(null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda).y77 = function (completion) {
    return new SiteDao_JdbcImpl$getSiteAsFlow$slambda(this.sh1_1, completion);
  };
  function SiteDao_JdbcImpl$getSiteAsFlow$slambda_0(this$0, resultContinuation) {
    var i = new SiteDao_JdbcImpl$getSiteAsFlow$slambda(this$0, resultContinuation);
    var l = function ($completion) {
      return i.th1($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $updateAsyncCOROUTINE$383(_this__u8e3s4, workspace, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ch2_1 = _this__u8e3s4;
    this.dh2_1 = workspace;
  }
  protoOf($updateAsyncCOROUTINE$383).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.eh2_1 = 'UPDATE Site SET sitePcsn = ?, siteLcsn = ?, siteLcb = ?, siteLct = ?, siteName = ?, guestLogin = ?, registrationAllowed = ?, authSalt = ? WHERE siteUid = ?';
            this.hd_1 = 1;
            suspendResult = prepareAndUseStatementAsync_0(this.ch2_1.jh0_1, this.eh2_1, VOID, SiteDao_JdbcImpl$updateAsync$slambda_0(this.dh2_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function SiteDao_JdbcImpl(_db) {
    SiteDao.call(this);
    this.jh0_1 = _db;
    var tmp = this;
    tmp.kh0_1 = new SiteDao_JdbcImpl$_insertAdapterSite_upsert$1(this);
    var tmp_0 = this;
    tmp_0.lh0_1 = new SiteDao_JdbcImpl$_insertAdapterSite_abort$1(this);
  }
  protoOf(SiteDao_JdbcImpl).ngz = function (workspace, $completion) {
    var tmp = new $updateAsyncCOROUTINE$383(this, workspace, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteDao_JdbcImpl).lgz = function ($completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM Site LIMIT 1', VOID, VOID, VOID, VOID, true);
    return prepareAndUseStatementAsync(this.jh0_1, tmp, SiteDao_JdbcImpl$getSiteAsync$slambda_0(null), $completion);
  };
  protoOf(SiteDao_JdbcImpl).mgz = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['Site'];
    return doorFlow(this.jh0_1, tmp, SiteDao_JdbcImpl$getSiteAsFlow$slambda_0(this, null));
  };
  function SiteDao_Repo$getSiteAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function SiteDao_Repo$getSiteAsync$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function SiteDao_Repo$getSiteAsFlow$slambda(this$0, resultContinuation) {
    this.nh2_1 = this$0;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteDao_Repo$getSiteAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteDao_Repo$getSiteAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(SiteDao_Repo$getSiteAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.oh2_1 = this.nh2_1.xh2_1;
            var tmp_1 = this;
            tmp_1.ph2_1 = 'SiteDao/getSiteAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.qh2_1 = this.nh2_1.zh2_1;
            var tmp_3 = this;
            tmp_3.rh2_1 = this.qh2_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.nh2_1.xh2_1.w38(), 'SiteDao/getSiteAsFlow');
            doorNodeIdHeader(this_0, this.nh2_1.xh2_1);
            header(this_0, 'cache-control', 'no-store');
            tmp_4.sh2_1 = this_0;
            this.sh2_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.th2_1 = this.rh2_1;
            var tmp_6 = this;
            tmp_6.uh2_1 = this.sh2_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.uh2_1, this.th2_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.vh2_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.nh2_1.wh2_1, this.vh2_1, this.nh2_1.xh2_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', SiteDao_Repo$getSiteAsFlow$slambda$lambda(this.oh2_1, this.ph2_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(SiteDao_Repo$getSiteAsFlow$slambda).y77 = function (completion) {
    return new SiteDao_Repo$getSiteAsFlow$slambda(this.nh2_1, completion);
  };
  function SiteDao_Repo$getSiteAsFlow$slambda_0(this$0, resultContinuation) {
    var i = new SiteDao_Repo$getSiteAsFlow$slambda(this$0, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SiteDao_Repo$updateAsync$slambda(this$0, $workspace, resultContinuation) {
    this.lh3_1 = this$0;
    this.mh3_1 = $workspace;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteDao_Repo$updateAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteDao_Repo$updateAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(SiteDao_Repo$updateAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.lh3_1.yh2_1.ngz(this.mh3_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SiteDao_Repo$updateAsync$slambda).y77 = function (completion) {
    return new SiteDao_Repo$updateAsync$slambda(this.lh3_1, this.mh3_1, completion);
  };
  function SiteDao_Repo$updateAsync$slambda_0(this$0, $workspace, resultContinuation) {
    var i = new SiteDao_Repo$updateAsync$slambda(this$0, $workspace, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $getSiteAsyncCOROUTINE$384(_this__u8e3s4, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vh3_1 = _this__u8e3s4;
  }
  protoOf($getSiteAsyncCOROUTINE$384).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.wh3_1 = this.vh3_1.xh2_1;
            var tmp_1 = this;
            tmp_1.xh3_1 = 'SiteDao/getSiteAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.yh3_1 = this.vh3_1.zh2_1;
            var tmp_3 = this;
            tmp_3.zh3_1 = this.yh3_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.vh3_1.xh2_1.w38(), 'SiteDao/getSiteAsync');
            doorNodeIdHeader(this_0, this.vh3_1.xh2_1);
            header(this_0, 'cache-control', 'no-store');
            tmp_4.ah4_1 = this_0;
            this.ah4_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.bh4_1 = this.zh3_1;
            var tmp_6 = this;
            tmp_6.ch4_1 = this.ah4_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.ch4_1, this.bh4_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.dh4_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.vh3_1.wh2_1, this.dh4_1, this.vh3_1.xh2_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.eh4_1 = this.kd_1;
              Napier_getInstance().q5d(this.eh4_1, 'DoorLog', SiteDao_Repo$getSiteAsync$lambda(this.wh3_1, this.xh3_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.vh3_1.yh2_1.lgz(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function SiteDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    SiteDao.call(this);
    this.wh2_1 = _db;
    this.xh2_1 = _repo;
    this.yh2_1 = _dao;
    this.zh2_1 = _httpClient;
    this.ah3_1 = _clientId;
    this.bh3_1 = _endpoint;
    this.ch3_1 = new RepoDaoFlowHelper(this.xh2_1);
  }
  protoOf(SiteDao_Repo).lgz = function ($completion) {
    var tmp = new $getSiteAsyncCOROUTINE$384(this, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteDao_Repo).mgz = function () {
    var tmp = this.yh2_1.mgz();
    return this.ch3_1.b67(tmp, SiteDao_Repo$getSiteAsFlow$slambda_0(this, null));
  };
  protoOf(SiteDao_Repo).ngz = function (workspace, $completion) {
    return withRepoChangeMonitorAsync(this.xh2_1, 'Site', SiteDao_Repo$updateAsync$slambda_0(this, workspace, null), $completion);
  };
  function SiteTermsDao() {
  }
  function $upsertListCOROUTINE$388(_this__u8e3s4, termList, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.sh4_1 = _this__u8e3s4;
    this.th4_1 = termList;
  }
  protoOf($upsertListCOROUTINE$388).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.uh4_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.sh4_1.bh5_1));
            var tmp_0 = this;
            tmp_0.vh4_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.wh4_1 = this.th4_1.w();
            var tmp_2 = this;
            tmp_2.xh4_1 = this.wh4_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.xh4_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.yh4_1 = this.xh4_1.e();
            var tmp_3 = this;
            tmp_3.zh4_1 = this.yh4_1;
            if (this.zh4_1.dh5_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.uh4_1.b62(272, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.ah5_1 = suspendResult;
            this.zh4_1.dh5_1 = this.ah5_1;
            var this_0 = this.vh4_1;
            var element = this.ah5_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.zh4_1.lh5_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.sh4_1.ch5_1.hh4(this.th4_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            return Unit_instance;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function SiteTermsDao_DoorWrapper(_db, _dao) {
    SiteTermsDao.call(this);
    this.bh5_1 = _db;
    this.ch5_1 = _dao;
  }
  protoOf(SiteTermsDao_DoorWrapper).fh4 = function (activeOnly) {
    return this.ch5_1.fh4(activeOnly);
  };
  protoOf(SiteTermsDao_DoorWrapper).gh4 = function (activeOnly, $completion) {
    return this.ch5_1.gh4(activeOnly, $completion);
  };
  protoOf(SiteTermsDao_DoorWrapper).hh4 = function (termList, $completion) {
    var tmp = new $upsertListCOROUTINE$388(this, termList, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteTermsDao_DoorWrapper).ih4 = function (active, $completion) {
    return this.ch5_1.ih4(active, $completion);
  };
  protoOf(SiteTermsDao_DoorWrapper).jh4 = function (lang, $completion) {
    return this.ch5_1.jh4(lang, $completion);
  };
  function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda$lambda(_result) {
    return mapRows(_result, SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda$lambda$lambda(_result));
  }
  function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_sTermsUid = $_result.l5m('sTermsUid');
      var _tmp_termsHtml = $_result.rz('termsHtml');
      var _tmp_sTermsLang = $_result.rz('sTermsLang');
      var _tmp_sTermsLangUid = $_result.l5m('sTermsLangUid');
      var _tmp_sTermsActive = $_result.w65('sTermsActive');
      var _tmp_sTermsLastChangedBy = $_result.k5m('sTermsLastChangedBy');
      var _tmp_sTermsPrimaryCsn = $_result.l5m('sTermsPrimaryCsn');
      var _tmp_sTermsLocalCsn = $_result.l5m('sTermsLocalCsn');
      var _tmp_sTermsLct = $_result.l5m('sTermsLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new SiteTerms();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.SiteTermsDao_JdbcImpl.findAllTermsAsListFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.dh5_1 = _tmp_sTermsUid;
      this_0.eh5_1 = _tmp_termsHtml;
      this_0.fh5_1 = _tmp_sTermsLang;
      this_0.gh5_1 = _tmp_sTermsLangUid;
      this_0.hh5_1 = _tmp_sTermsActive;
      this_0.ih5_1 = _tmp_sTermsLastChangedBy;
      this_0.jh5_1 = _tmp_sTermsPrimaryCsn;
      this_0.kh5_1 = _tmp_sTermsLocalCsn;
      this_0.lh5_1 = _tmp_sTermsLct;
      return this_0;
    };
  }
  function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda($activeOnly, resultContinuation) {
    this.uh5_1 = $activeOnly;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda).wh5 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda).he = function (p1, $completion) {
    return this.wh5((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.vh5_1.h5h(1, this.uh5_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.vh5_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda(this.uh5_1, completion);
    i.vh5_1 = _stmt;
    return i;
  };
  function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda_0($activeOnly, resultContinuation) {
    var i = new SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda($activeOnly, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.wh5(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SiteTermsDao_JdbcImpl$findAllTerms$slambda$lambda(_result) {
    return mapRows(_result, SiteTermsDao_JdbcImpl$findAllTerms$slambda$lambda$lambda(_result));
  }
  function SiteTermsDao_JdbcImpl$findAllTerms$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_sTermsUid = $_result.l5m('sTermsUid');
      var _tmp_termsHtml = $_result.rz('termsHtml');
      var _tmp_sTermsLang = $_result.rz('sTermsLang');
      var _tmp_sTermsLangUid = $_result.l5m('sTermsLangUid');
      var _tmp_sTermsActive = $_result.w65('sTermsActive');
      var _tmp_sTermsLastChangedBy = $_result.k5m('sTermsLastChangedBy');
      var _tmp_sTermsPrimaryCsn = $_result.l5m('sTermsPrimaryCsn');
      var _tmp_sTermsLocalCsn = $_result.l5m('sTermsLocalCsn');
      var _tmp_sTermsLct = $_result.l5m('sTermsLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new SiteTerms();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.SiteTermsDao_JdbcImpl.findAllTerms.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.dh5_1 = _tmp_sTermsUid;
      this_0.eh5_1 = _tmp_termsHtml;
      this_0.fh5_1 = _tmp_sTermsLang;
      this_0.gh5_1 = _tmp_sTermsLangUid;
      this_0.hh5_1 = _tmp_sTermsActive;
      this_0.ih5_1 = _tmp_sTermsLastChangedBy;
      this_0.jh5_1 = _tmp_sTermsPrimaryCsn;
      this_0.kh5_1 = _tmp_sTermsLocalCsn;
      this_0.lh5_1 = _tmp_sTermsLct;
      return this_0;
    };
  }
  function SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda$lambda(_result) {
    return mapRows(_result, SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda$lambda$lambda(_result));
  }
  function SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.k60(1);
    };
  }
  function SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda$lambda(_result) {
    return mapNextRow(_result, null, SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda$lambda$lambda(_result));
  }
  function SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_sTermsUid = $_result.l5m('sTermsUid');
      var _tmp_termsHtml = $_result.rz('termsHtml');
      var _tmp_sTermsLang = $_result.rz('sTermsLang');
      var _tmp_sTermsLangUid = $_result.l5m('sTermsLangUid');
      var _tmp_sTermsActive = $_result.w65('sTermsActive');
      var _tmp_sTermsLastChangedBy = $_result.k5m('sTermsLastChangedBy');
      var _tmp_sTermsPrimaryCsn = $_result.l5m('sTermsPrimaryCsn');
      var _tmp_sTermsLocalCsn = $_result.l5m('sTermsLocalCsn');
      var _tmp_sTermsLct = $_result.l5m('sTermsLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new SiteTerms();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.SiteTermsDao_JdbcImpl.findLatestByLanguage.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.dh5_1 = _tmp_sTermsUid;
      this_0.eh5_1 = _tmp_termsHtml;
      this_0.fh5_1 = _tmp_sTermsLang;
      this_0.gh5_1 = _tmp_sTermsLangUid;
      this_0.hh5_1 = _tmp_sTermsActive;
      this_0.ih5_1 = _tmp_sTermsLastChangedBy;
      this_0.jh5_1 = _tmp_sTermsPrimaryCsn;
      this_0.kh5_1 = _tmp_sTermsLocalCsn;
      this_0.lh5_1 = _tmp_sTermsLct;
      return this_0;
    };
  }
  function SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.xh5_1);
  }
  protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO SiteTerms (sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1).ch6 = function (stmt, entity) {
    if (entity.dh5_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.dh5_1);
    }
    stmt.l5h(2, entity.eh5_1);
    stmt.l5h(3, entity.fh5_1);
    stmt.i5h(4, entity.gh5_1);
    stmt.v5g(5, entity.hh5_1);
    stmt.h5h(6, entity.ih5_1);
    stmt.i5h(7, entity.jh5_1);
    stmt.i5h(8, entity.kh5_1);
    stmt.i5h(9, entity.lh5_1);
  };
  protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1).c5f = function (stmt, entity) {
    return this.ch6(stmt, entity instanceof SiteTerms ? entity : THROW_CCE());
  };
  function SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.xh5_1);
  }
  protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO SiteTerms (sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1).ch6 = function (stmt, entity) {
    if (entity.dh5_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.dh5_1);
    }
    stmt.l5h(2, entity.eh5_1);
    stmt.l5h(3, entity.fh5_1);
    stmt.i5h(4, entity.gh5_1);
    stmt.v5g(5, entity.hh5_1);
    stmt.h5h(6, entity.ih5_1);
    stmt.i5h(7, entity.jh5_1);
    stmt.i5h(8, entity.kh5_1);
    stmt.i5h(9, entity.lh5_1);
  };
  protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1).c5f = function (stmt, entity) {
    return this.ch6(stmt, entity instanceof SiteTerms ? entity : THROW_CCE());
  };
  function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda(this$0, $activeOnly, resultContinuation) {
    this.nh6_1 = this$0;
    this.oh6_1 = $activeOnly;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda).ph6 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda).z77 = function ($completion) {
    return this.ph6($completion);
  };
  protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT SiteTerms.*\n          FROM SiteTerms\n         WHERE ? = 0 \n            OR CAST(sTermsActive AS INTEGER) = 1\n    ', VOID, VOID, VOID, VOID, true);
            suspendResult = prepareAndUseStatementAsync(this.nh6_1.xh5_1, tmp_0, SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda_0(this.oh6_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda).y77 = function (completion) {
    return new SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda(this.nh6_1, this.oh6_1, completion);
  };
  function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda_0(this$0, $activeOnly, resultContinuation) {
    var i = new SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda(this$0, $activeOnly, resultContinuation);
    var l = function ($completion) {
      return i.ph6($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SiteTermsDao_JdbcImpl$findAllTerms$slambda($activeOnly, resultContinuation) {
    this.yh6_1 = $activeOnly;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteTermsDao_JdbcImpl$findAllTerms$slambda).wh5 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteTermsDao_JdbcImpl$findAllTerms$slambda).he = function (p1, $completion) {
    return this.wh5((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(SiteTermsDao_JdbcImpl$findAllTerms$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.zh6_1.h5h(1, this.yh6_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.zh6_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, SiteTermsDao_JdbcImpl$findAllTerms$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SiteTermsDao_JdbcImpl$findAllTerms$slambda).z5e = function (_stmt, completion) {
    var i = new SiteTermsDao_JdbcImpl$findAllTerms$slambda(this.yh6_1, completion);
    i.zh6_1 = _stmt;
    return i;
  };
  function SiteTermsDao_JdbcImpl$findAllTerms$slambda_0($activeOnly, resultContinuation) {
    var i = new SiteTermsDao_JdbcImpl$findAllTerms$slambda($activeOnly, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.wh5(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda($active, resultContinuation) {
    this.ih7_1 = $active;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda).kh7 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda).he = function (p1, $completion) {
    return this.kh7((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.jh7_1.h5h(1, this.ih7_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.jh7_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda).z5e = function (_stmt, completion) {
    var i = new SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda(this.ih7_1, completion);
    i.jh7_1 = _stmt;
    return i;
  };
  function SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda_0($active, resultContinuation) {
    var i = new SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda($active, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.kh7(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda($lang, resultContinuation) {
    this.th7_1 = $lang;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda).vh7 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda).he = function (p1, $completion) {
    return this.vh7((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.uh7_1.l5h(1, this.th7_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.uh7_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda).z5e = function (_stmt, completion) {
    var i = new SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda(this.th7_1, completion);
    i.uh7_1 = _stmt;
    return i;
  };
  function SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda_0($lang, resultContinuation) {
    var i = new SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda($lang, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.vh7(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SiteTermsDao_JdbcImpl(_db) {
    SiteTermsDao.call(this);
    this.xh5_1 = _db;
    var tmp = this;
    tmp.yh5_1 = new SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1(this);
    var tmp_0 = this;
    tmp_0.zh5_1 = new SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1(this);
  }
  protoOf(SiteTermsDao_JdbcImpl).hh4 = function (termList, $completion) {
    return this.zh5_1.m5g(termList, $completion);
  };
  protoOf(SiteTermsDao_JdbcImpl).fh4 = function (activeOnly) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['SiteTerms'];
    return doorFlow(this.xh5_1, tmp, SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda_0(this, activeOnly, null));
  };
  protoOf(SiteTermsDao_JdbcImpl).gh4 = function (activeOnly, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT SiteTerms.*\n          FROM SiteTerms\n         WHERE ? = 0 \n            OR CAST(sTermsActive AS INTEGER) = 1\n    ', VOID, VOID, VOID, VOID, true);
    return prepareAndUseStatementAsync(this.xh5_1, tmp, SiteTermsDao_JdbcImpl$findAllTerms$slambda_0(activeOnly, null), $completion);
  };
  protoOf(SiteTermsDao_JdbcImpl).ih4 = function (active, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT SiteTerms.sTermsLang\n          FROM SiteTerms\n         WHERE CAST(SiteTerms.sTermsActive AS INTEGER) = ? \n    ', VOID, VOID, VOID, VOID, true);
    return prepareAndUseStatementAsync(this.xh5_1, tmp, SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda_0(active, null), $completion);
  };
  protoOf(SiteTermsDao_JdbcImpl).jh4 = function (lang, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT SiteTerms.*\n          FROM SiteTerms\n         WHERE SiteTerms.sTermsLang = ?\n           AND CAST(SiteTerms.sTermsActive AS INTEGER) = 1\n      ORDER BY SiteTerms.sTermsLct DESC\n         LIMIT 1     \n    ', VOID, VOID, VOID, VOID, true);
    return prepareAndUseStatementAsync(this.xh5_1, tmp, SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda_0(lang, null), $completion);
  };
  function SiteTermsDao_Repo$findAllTermsAsListFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function SiteTermsDao_Repo$findAllTermsAsListFlow$slambda(this$0, $activeOnly, resultContinuation) {
    this.eh8_1 = this$0;
    this.fh8_1 = $activeOnly;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteTermsDao_Repo$findAllTermsAsListFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteTermsDao_Repo$findAllTermsAsListFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(SiteTermsDao_Repo$findAllTermsAsListFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.gh8_1 = this.eh8_1.ph8_1;
            var tmp_1 = this;
            tmp_1.hh8_1 = 'SiteTermsDao/findAllTermsAsListFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ih8_1 = this.eh8_1.rh8_1;
            var tmp_3 = this;
            tmp_3.jh8_1 = this.ih8_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.eh8_1.ph8_1.w38(), 'SiteTermsDao/findAllTermsAsListFlow');
            doorNodeIdHeader(this_0, this.eh8_1.ph8_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'activeOnly', this.eh8_1.ph8_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.fh8_1));
            tmp_4.kh8_1 = this_0;
            this.kh8_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.lh8_1 = this.jh8_1;
            var tmp_6 = this;
            tmp_6.mh8_1 = this.kh8_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.mh8_1, this.lh8_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.nh8_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.eh8_1.oh8_1, this.nh8_1, this.eh8_1.ph8_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', SiteTermsDao_Repo$findAllTermsAsListFlow$slambda$lambda(this.gh8_1, this.hh8_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(SiteTermsDao_Repo$findAllTermsAsListFlow$slambda).y77 = function (completion) {
    return new SiteTermsDao_Repo$findAllTermsAsListFlow$slambda(this.eh8_1, this.fh8_1, completion);
  };
  function SiteTermsDao_Repo$findAllTermsAsListFlow$slambda_0(this$0, $activeOnly, resultContinuation) {
    var i = new SiteTermsDao_Repo$findAllTermsAsListFlow$slambda(this$0, $activeOnly, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SiteTermsDao_Repo$findAllTerms$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function SiteTermsDao_Repo$upsertList$slambda(this$0, $termList, resultContinuation) {
    this.dh9_1 = this$0;
    this.eh9_1 = $termList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteTermsDao_Repo$upsertList$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteTermsDao_Repo$upsertList$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(SiteTermsDao_Repo$upsertList$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.dh9_1.qh8_1.hh4(this.eh9_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SiteTermsDao_Repo$upsertList$slambda).y77 = function (completion) {
    return new SiteTermsDao_Repo$upsertList$slambda(this.dh9_1, this.eh9_1, completion);
  };
  function SiteTermsDao_Repo$upsertList$slambda_0(this$0, $termList, resultContinuation) {
    var i = new SiteTermsDao_Repo$upsertList$slambda(this$0, $termList, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SiteTermsDao_Repo$findAvailableSiteTermLanguages$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function $findAllTermsCOROUTINE$395(_this__u8e3s4, activeOnly, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.nh9_1 = _this__u8e3s4;
    this.oh9_1 = activeOnly;
  }
  protoOf($findAllTermsCOROUTINE$395).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.ph9_1 = this.nh9_1.ph8_1;
            var tmp_1 = this;
            tmp_1.qh9_1 = 'SiteTermsDao/findAllTerms';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.rh9_1 = this.nh9_1.rh8_1;
            var tmp_3 = this;
            tmp_3.sh9_1 = this.rh9_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.nh9_1.ph8_1.w38(), 'SiteTermsDao/findAllTerms');
            doorNodeIdHeader(this_0, this.nh9_1.ph8_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'activeOnly', this.nh9_1.ph8_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.oh9_1));
            tmp_4.th9_1 = this_0;
            this.th9_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.uh9_1 = this.sh9_1;
            var tmp_6 = this;
            tmp_6.vh9_1 = this.th9_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.vh9_1, this.uh9_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.wh9_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.nh9_1.oh8_1, this.wh9_1, this.nh9_1.ph8_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.xh9_1 = this.kd_1;
              Napier_getInstance().q5d(this.xh9_1, 'DoorLog', SiteTermsDao_Repo$findAllTerms$lambda(this.ph9_1, this.qh9_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.nh9_1.qh8_1.gh4(this.oh9_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $findAvailableSiteTermLanguagesCOROUTINE$397(_this__u8e3s4, active, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.gha_1 = _this__u8e3s4;
    this.hha_1 = active;
  }
  protoOf($findAvailableSiteTermLanguagesCOROUTINE$397).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.iha_1 = this.gha_1.ph8_1;
            var tmp_1 = this;
            tmp_1.jha_1 = 'SiteTermsDao/findAvailableSiteTermLanguages';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.kha_1 = this.gha_1.rh8_1;
            var tmp_3 = this;
            tmp_3.lha_1 = this.kha_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.gha_1.ph8_1.w38(), 'SiteTermsDao/findAvailableSiteTermLanguages');
            doorNodeIdHeader(this_0, this.gha_1.ph8_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'active', this.gha_1.ph8_1.w38().k65_1.e45(serializer_1(IntCompanionObject_instance), this.hha_1));
            tmp_4.mha_1 = this_0;
            this.mha_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.nha_1 = this.lha_1;
            var tmp_6 = this;
            tmp_6.oha_1 = this.mha_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.oha_1, this.nha_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.pha_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.gha_1.oh8_1, this.pha_1, this.gha_1.ph8_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.qha_1 = this.kd_1;
              Napier_getInstance().q5d(this.qha_1, 'DoorLog', SiteTermsDao_Repo$findAvailableSiteTermLanguages$lambda(this.iha_1, this.jha_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.gha_1.qh8_1.ih4(this.hha_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $findLatestByLanguageCOROUTINE$398(_this__u8e3s4, lang, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zha_1 = _this__u8e3s4;
    this.ahb_1 = lang;
  }
  protoOf($findLatestByLanguageCOROUTINE$398).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.zha_1.qh8_1.jh4(this.ahb_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function SiteTermsDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    SiteTermsDao.call(this);
    this.oh8_1 = _db;
    this.ph8_1 = _repo;
    this.qh8_1 = _dao;
    this.rh8_1 = _httpClient;
    this.sh8_1 = _clientId;
    this.th8_1 = _endpoint;
    this.uh8_1 = new RepoDaoFlowHelper(this.ph8_1);
  }
  protoOf(SiteTermsDao_Repo).fh4 = function (activeOnly) {
    var tmp = this.qh8_1.fh4(activeOnly);
    return this.uh8_1.b67(tmp, SiteTermsDao_Repo$findAllTermsAsListFlow$slambda_0(this, activeOnly, null));
  };
  protoOf(SiteTermsDao_Repo).gh4 = function (activeOnly, $completion) {
    var tmp = new $findAllTermsCOROUTINE$395(this, activeOnly, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteTermsDao_Repo).hh4 = function (termList, $completion) {
    return withRepoChangeMonitorAsync(this.ph8_1, 'SiteTerms', SiteTermsDao_Repo$upsertList$slambda_0(this, termList, null), $completion);
  };
  protoOf(SiteTermsDao_Repo).ih4 = function (active, $completion) {
    var tmp = new $findAvailableSiteTermLanguagesCOROUTINE$397(this, active, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteTermsDao_Repo).jh4 = function (lang, $completion) {
    var tmp = new $findLatestByLanguageCOROUTINE$398(this, lang, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function StudentResultDao() {
  }
  function StudentResultDao_DoorWrapper(_db, _dao) {
    StudentResultDao.call(this);
    this.bhb_1 = _db;
    this.chb_1 = _dao;
  }
  function StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.dhb_1);
  }
  protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO StudentResult (srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1).ihb = function (stmt, entity) {
    stmt.i5h(1, entity.jhb_1);
    stmt.l5h(2, entity.khb_1);
    stmt.i5h(3, entity.lhb_1);
    stmt.l5h(4, entity.mhb_1);
    stmt.l5h(5, entity.nhb_1);
    stmt.i5h(6, entity.ohb_1);
    stmt.i5h(7, entity.phb_1);
    stmt.h5h(8, entity.qhb_1);
    stmt.l5h(9, entity.rhb_1);
    stmt.i5h(10, entity.shb_1);
    stmt.l5h(11, entity.thb_1);
    stmt.h5h(12, entity.uhb_1);
    stmt.i5h(13, entity.vhb_1);
    stmt.h5h(14, entity.whb_1);
    stmt.h5h(15, entity.xhb_1);
    stmt.j5h(16, entity.yhb_1);
    stmt.i5h(17, entity.zhb_1);
    stmt.i5h(18, entity.ahc_1);
    stmt.l5h(19, entity.bhc_1);
    stmt.l5h(20, entity.chc_1);
    stmt.v5g(21, entity.dhc_1);
  };
  protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1).c5f = function (stmt, entity) {
    return this.ihb(stmt, entity instanceof StudentResult ? entity : THROW_CCE());
  };
  function StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.dhb_1);
  }
  protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO StudentResult (srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1).ihb = function (stmt, entity) {
    stmt.i5h(1, entity.jhb_1);
    stmt.l5h(2, entity.khb_1);
    stmt.i5h(3, entity.lhb_1);
    stmt.l5h(4, entity.mhb_1);
    stmt.l5h(5, entity.nhb_1);
    stmt.i5h(6, entity.ohb_1);
    stmt.i5h(7, entity.phb_1);
    stmt.h5h(8, entity.qhb_1);
    stmt.l5h(9, entity.rhb_1);
    stmt.i5h(10, entity.shb_1);
    stmt.l5h(11, entity.thb_1);
    stmt.h5h(12, entity.uhb_1);
    stmt.i5h(13, entity.vhb_1);
    stmt.h5h(14, entity.whb_1);
    stmt.h5h(15, entity.xhb_1);
    stmt.j5h(16, entity.yhb_1);
    stmt.i5h(17, entity.zhb_1);
    stmt.i5h(18, entity.ahc_1);
    stmt.l5h(19, entity.bhc_1);
    stmt.l5h(20, entity.chc_1);
    stmt.v5g(21, entity.dhc_1);
  };
  protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1).c5f = function (stmt, entity) {
    return this.ihb(stmt, entity instanceof StudentResult ? entity : THROW_CCE());
  };
  function StudentResultDao_JdbcImpl(_db) {
    StudentResultDao.call(this);
    this.dhb_1 = _db;
    var tmp = this;
    tmp.ehb_1 = new StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1(this);
    var tmp_0 = this;
    tmp_0.fhb_1 = new StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1(this);
  }
  function StudentResultDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    StudentResultDao.call(this);
    this.ghc_1 = _db;
    this.hhc_1 = _repo;
    this.ihc_1 = _dao;
    this.jhc_1 = _httpClient;
    this.khc_1 = _clientId;
    this.lhc_1 = _endpoint;
  }
  function SyncNodeDao() {
  }
  function SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.mhc_1);
  }
  protoOf(SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO SyncNode (nodeClientId) VALUES(?)';
  };
  protoOf(SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1).qhc = function (stmt, entity) {
    stmt.i5h(1, entity.m63_1);
  };
  protoOf(SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1).c5f = function (stmt, entity) {
    return this.qhc(stmt, entity instanceof SyncNode ? entity : THROW_CCE());
  };
  function SyncNodeDao_JdbcImpl(_db) {
    SyncNodeDao.call(this);
    this.mhc_1 = _db;
    var tmp = this;
    tmp.nhc_1 = new SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1(this);
  }
  function SystemPermissionDao() {
  }
  function $upsertAsyncCOROUTINE$402(_this__u8e3s4, systemPermissions, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.hhd_1 = _this__u8e3s4;
    this.ihd_1 = systemPermissions;
  }
  protoOf($upsertAsyncCOROUTINE$402).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.jhd_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.hhd_1.lhd_1));
            if (this.ihd_1.nhd_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.jhd_1.b62(10011, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.khd_1 = suspendResult;
            this.ihd_1.nhd_1 = this.khd_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.ihd_1.rhd_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.hhd_1.mhd_1.yhc(this.ihd_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return Unit_instance;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function SystemPermissionDao_DoorWrapper(_db, _dao) {
    SystemPermissionDao.call(this);
    this.lhd_1 = _db;
    this.mhd_1 = _dao;
  }
  protoOf(SystemPermissionDao_DoorWrapper).rhc = function (accountPersonUid) {
    return this.mhd_1.rhc(accountPersonUid);
  };
  protoOf(SystemPermissionDao_DoorWrapper).shc = function (accountPersonUid, $completion) {
    return this.mhd_1.shc(accountPersonUid, $completion);
  };
  protoOf(SystemPermissionDao_DoorWrapper).thc = function (accountPersonUid, permission, $completion) {
    return this.mhd_1.thc(accountPersonUid, permission, $completion);
  };
  protoOf(SystemPermissionDao_DoorWrapper).uhc = function (accountPersonUid, permission) {
    return this.mhd_1.uhc(accountPersonUid, permission);
  };
  protoOf(SystemPermissionDao_DoorWrapper).vhc = function (accountPersonUid, firstPermission, secondPermission) {
    return this.mhd_1.vhc(accountPersonUid, firstPermission, secondPermission);
  };
  protoOf(SystemPermissionDao_DoorWrapper).whc = function (accountPersonUid, firstPermission, secondPermission, $completion) {
    return this.mhd_1.whc(accountPersonUid, firstPermission, secondPermission, $completion);
  };
  protoOf(SystemPermissionDao_DoorWrapper).xhc = function (accountPersonUid, otherPersonUid) {
    return this.mhd_1.xhc(accountPersonUid, otherPersonUid);
  };
  protoOf(SystemPermissionDao_DoorWrapper).yhc = function (systemPermissions, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$402(this, systemPermissions, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_spUid = $_result.l5m('spUid');
      var _tmp_spToPersonUid = $_result.l5m('spToPersonUid');
      var _tmp_spToGroupUid = $_result.l5m('spToGroupUid');
      var _tmp_spPermissionsFlag = $_result.l5m('spPermissionsFlag');
      var _tmp_spLastModified = $_result.l5m('spLastModified');
      var _tmp_spIsDeleted = $_result.w65('spIsDeleted');
      // Inline function 'kotlin.apply' call
      var this_0 = new SystemPermission();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.SystemPermissionDao_JdbcImpl.findByPersonUidAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.nhd_1 = _tmp_spUid;
      this_0.ohd_1 = _tmp_spToPersonUid;
      this_0.phd_1 = _tmp_spToGroupUid;
      this_0.qhd_1 = _tmp_spPermissionsFlag;
      this_0.rhd_1 = _tmp_spLastModified;
      this_0.shd_1 = _tmp_spIsDeleted;
      return this_0;
    };
  }
  function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda($accountPersonUid, resultContinuation) {
    this.bhe_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda).dhe = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.dhe((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.che_1.i5h(1, this.bhe_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.che_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda(this.bhe_1, completion);
    i.che_1 = _stmt;
    return i;
  };
  function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda_0($accountPersonUid, resultContinuation) {
    var i = new SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda($accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.dhe(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SystemPermissionDao_JdbcImpl$findByPersonUid$slambda$lambda(_result) {
    return mapNextRow_0(_result, SystemPermissionDao_JdbcImpl$findByPersonUid$slambda$lambda$lambda(_result));
  }
  function SystemPermissionDao_JdbcImpl$findByPersonUid$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_spUid = $_result.l5m('spUid');
      var _tmp_spToPersonUid = $_result.l5m('spToPersonUid');
      var _tmp_spToGroupUid = $_result.l5m('spToGroupUid');
      var _tmp_spPermissionsFlag = $_result.l5m('spPermissionsFlag');
      var _tmp_spLastModified = $_result.l5m('spLastModified');
      var _tmp_spIsDeleted = $_result.w65('spIsDeleted');
      // Inline function 'kotlin.apply' call
      var this_0 = new SystemPermission();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.SystemPermissionDao_JdbcImpl.findByPersonUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.nhd_1 = _tmp_spUid;
      this_0.ohd_1 = _tmp_spToPersonUid;
      this_0.phd_1 = _tmp_spToGroupUid;
      this_0.qhd_1 = _tmp_spPermissionsFlag;
      this_0.rhd_1 = _tmp_spLastModified;
      this_0.shd_1 = _tmp_spIsDeleted;
      return this_0;
    };
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda$lambda(_result) {
    return mapNextRow(_result, false, SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda$lambda$lambda(_result));
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.a74(1);
    };
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, false, SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.a74(1);
    };
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda($accountPersonUid, $permission, resultContinuation) {
    this.mhe_1 = $accountPersonUid;
    this.nhe_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda).m9s = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.m9s((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ohe_1.i5h(1, this.mhe_1);
            this.ohe_1.i5h(2, this.mhe_1);
            this.ohe_1.i5h(3, this.nhe_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ohe_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda(this.mhe_1, this.nhe_1, completion);
    i.ohe_1 = _stmt;
    return i;
  };
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda_0($accountPersonUid, $permission, resultContinuation) {
    var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda($accountPersonUid, $permission, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.m9s(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow_0(_result, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_firstPermission = $_result.w65('firstPermission');
      var _tmp_secondPermission = $_result.w65('secondPermission');
      // Inline function 'kotlin.apply' call
      var this_0 = new PermissionPair();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.SystemPermissionDao_JdbcImpl.personHasSystemPermissionPairAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.ed8_1 = _tmp_firstPermission;
      this_0.fd8_1 = _tmp_secondPermission;
      return this_0;
    };
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda($accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    this.xhe_1 = $accountPersonUid;
    this.yhe_1 = $firstPermission;
    this.zhe_1 = $secondPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda).td8 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.td8((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ahf_1.i5h(1, this.xhe_1);
            this.ahf_1.i5h(2, this.xhe_1);
            this.ahf_1.i5h(3, this.yhe_1);
            this.ahf_1.i5h(4, this.xhe_1);
            this.ahf_1.i5h(5, this.xhe_1);
            this.ahf_1.i5h(6, this.zhe_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ahf_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda(this.xhe_1, this.yhe_1, this.zhe_1, completion);
    i.ahf_1 = _stmt;
    return i;
  };
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda_0($accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda($accountPersonUid, $firstPermission, $secondPermission, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.td8(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda$lambda(_result) {
    return mapNextRow_0(_result, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda$lambda$lambda(_result));
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_firstPermission = $_result.w65('firstPermission');
      var _tmp_secondPermission = $_result.w65('secondPermission');
      // Inline function 'kotlin.apply' call
      var this_0 = new PermissionPair();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.SystemPermissionDao_JdbcImpl.personHasSystemPermissionPair.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.ed8_1 = _tmp_firstPermission;
      this_0.fd8_1 = _tmp_secondPermission;
      return this_0;
    };
  }
  function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow_0(_result, SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_hasViewPermission = $_result.w65('hasViewPermission');
      var _tmp_hasEditPermission = $_result.w65('hasEditPermission');
      // Inline function 'kotlin.apply' call
      var this_0 = new EditAndViewPermission();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.SystemPermissionDao_JdbcImpl.personHasEditAndViewPermissionForPersonAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.bhf_1 = _tmp_hasViewPermission;
      this_0.chf_1 = _tmp_hasEditPermission;
      return this_0;
    };
  }
  function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda($otherPersonUid, $accountPersonUid, resultContinuation) {
    this.lhf_1 = $otherPersonUid;
    this.mhf_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda).ohf = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.ohf((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.nhf_1.i5h(1, this.lhf_1);
            this.nhf_1.i5h(2, this.mhf_1);
            this.nhf_1.i5h(3, this.mhf_1);
            this.nhf_1.i5h(4, this.lhf_1);
            this.nhf_1.i5h(5, this.mhf_1);
            this.nhf_1.i5h(6, this.mhf_1);
            this.nhf_1.i5h(7, this.mhf_1);
            this.nhf_1.i5h(8, this.lhf_1);
            this.nhf_1.i5h(9, this.lhf_1);
            this.nhf_1.i5h(10, this.mhf_1);
            this.nhf_1.i5h(11, this.mhf_1);
            this.nhf_1.i5h(12, this.mhf_1);
            this.nhf_1.i5h(13, this.lhf_1);
            this.nhf_1.i5h(14, this.mhf_1);
            this.nhf_1.i5h(15, this.lhf_1);
            this.nhf_1.i5h(16, this.lhf_1);
            this.nhf_1.i5h(17, this.mhf_1);
            this.nhf_1.i5h(18, this.mhf_1);
            this.nhf_1.i5h(19, this.mhf_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.nhf_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda(this.lhf_1, this.mhf_1, completion);
    i.nhf_1 = _stmt;
    return i;
  };
  function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda_0($otherPersonUid, $accountPersonUid, resultContinuation) {
    var i = new SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda($otherPersonUid, $accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.ohf(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.phf_1);
  }
  protoOf(SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO SystemPermission (spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1).thf = function (stmt, entity) {
    if (entity.nhd_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.nhd_1);
    }
    stmt.i5h(2, entity.ohd_1);
    stmt.i5h(3, entity.phd_1);
    stmt.i5h(4, entity.qhd_1);
    stmt.i5h(5, entity.rhd_1);
    stmt.v5g(6, entity.shd_1);
  };
  protoOf(SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1).c5f = function (stmt, entity) {
    return this.thf(stmt, entity instanceof SystemPermission ? entity : THROW_CCE());
  };
  function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda(this$0, $accountPersonUid, resultContinuation) {
    this.chg_1 = this$0;
    this.dhg_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda).ehg = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda).z77 = function ($completion) {
    return this.ehg($completion);
  };
  protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT SystemPermission.*\n          FROM SystemPermission\n         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n         LIMIT 1\n    ', VOID, VOID, VOID, '\n        SELECT SystemPermission.*\n          FROM SystemPermission\n         WHERE SystemPermission.spToPersonUid = ?\n         LIMIT 1\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.chg_1.phf_1, tmp_0, SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda_0(this.dhg_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda).y77 = function (completion) {
    return new SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda(this.chg_1, this.dhg_1, completion);
  };
  function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda_0(this$0, $accountPersonUid, resultContinuation) {
    var i = new SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda(this$0, $accountPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.ehg($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SystemPermissionDao_JdbcImpl$findByPersonUid$slambda($accountPersonUid, resultContinuation) {
    this.nhg_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$findByPersonUid$slambda).phg = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_JdbcImpl$findByPersonUid$slambda).he = function (p1, $completion) {
    return this.phg((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(SystemPermissionDao_JdbcImpl$findByPersonUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ohg_1.i5h(1, this.nhg_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ohg_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$findByPersonUid$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SystemPermissionDao_JdbcImpl$findByPersonUid$slambda).z5e = function (_stmt, completion) {
    var i = new SystemPermissionDao_JdbcImpl$findByPersonUid$slambda(this.nhg_1, completion);
    i.ohg_1 = _stmt;
    return i;
  };
  function SystemPermissionDao_JdbcImpl$findByPersonUid$slambda_0($accountPersonUid, resultContinuation) {
    var i = new SystemPermissionDao_JdbcImpl$findByPersonUid$slambda($accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.phg(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda($accountPersonUid, $permission, resultContinuation) {
    this.yhg_1 = $accountPersonUid;
    this.zhg_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda).m9s = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda).he = function (p1, $completion) {
    return this.m9s((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ahh_1.i5h(1, this.yhg_1);
            this.ahh_1.i5h(2, this.yhg_1);
            this.ahh_1.i5h(3, this.zhg_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ahh_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda).z5e = function (_stmt, completion) {
    var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda(this.yhg_1, this.zhg_1, completion);
    i.ahh_1 = _stmt;
    return i;
  };
  function SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda_0($accountPersonUid, $permission, resultContinuation) {
    var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda($accountPersonUid, $permission, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.m9s(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda(this$0, $accountPersonUid, $permission, resultContinuation) {
    this.jhh_1 = this$0;
    this.khh_1 = $accountPersonUid;
    this.lhh_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda).b9u = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda).z77 = function ($completion) {
    return this.b9u($completion);
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT \n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE CAST(? AS BIGINT) != 0 \n                  AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                  AND (SystemPermission.spPermissionsFlag &\n    \n          CAST(? AS BIGINT)\n        \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n      \n    ', VOID, VOID, VOID, '\n        SELECT \n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n    \n          ?\n        \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n      \n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.jhh_1.phf_1, tmp_0, SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda_0(this.khh_1, this.lhh_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda).y77 = function (completion) {
    return new SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda(this.jhh_1, this.khh_1, this.lhh_1, completion);
  };
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda_0(this$0, $accountPersonUid, $permission, resultContinuation) {
    var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda(this$0, $accountPersonUid, $permission, resultContinuation);
    var l = function ($completion) {
      return i.b9u($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    this.uhh_1 = this$0;
    this.vhh_1 = $accountPersonUid;
    this.whh_1 = $firstPermission;
    this.xhh_1 = $secondPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda).mdd = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda).z77 = function ($completion) {
    return this.mdd($completion);
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT (\n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE CAST(? AS BIGINT) != 0 \n                  AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                  AND (SystemPermission.spPermissionsFlag &\n    \n                CAST(? AS BIGINT)\n                \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    ) as firstPermission,\n                (\n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE CAST(? AS BIGINT) != 0 \n                  AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                  AND (SystemPermission.spPermissionsFlag &\n    \n                CAST(? AS BIGINT)\n                \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    ) as secondPermission\n    ', VOID, VOID, VOID, '\n        SELECT (\n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n    \n                ?\n                \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    ) as firstPermission,\n                (\n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n    \n                ?\n                \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    ) as secondPermission\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.uhh_1.phf_1, tmp_0, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda_0(this.vhh_1, this.whh_1, this.xhh_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda).y77 = function (completion) {
    return new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda(this.uhh_1, this.vhh_1, this.whh_1, this.xhh_1, completion);
  };
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda_0(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation);
    var l = function ($completion) {
      return i.mdd($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda($accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    this.ghi_1 = $accountPersonUid;
    this.hhi_1 = $firstPermission;
    this.ihi_1 = $secondPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda).td8 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda).he = function (p1, $completion) {
    return this.td8((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.jhi_1.i5h(1, this.ghi_1);
            this.jhi_1.i5h(2, this.ghi_1);
            this.jhi_1.i5h(3, this.hhi_1);
            this.jhi_1.i5h(4, this.ghi_1);
            this.jhi_1.i5h(5, this.ghi_1);
            this.jhi_1.i5h(6, this.ihi_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.jhi_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda).z5e = function (_stmt, completion) {
    var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda(this.ghi_1, this.hhi_1, this.ihi_1, completion);
    i.jhi_1 = _stmt;
    return i;
  };
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda_0($accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda($accountPersonUid, $firstPermission, $secondPermission, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.td8(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda(this$0, $otherPersonUid, $accountPersonUid, resultContinuation) {
    this.shi_1 = this$0;
    this.thi_1 = $otherPersonUid;
    this.uhi_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda).vhi = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda).z77 = function ($completion) {
    return this.vhi($completion);
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        /* Similar to the query used on list all persons, however it uses the the otherpersonuid param \n         * in the WHERE clauses to narrow down the search. \n         */\n        WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n              /* Select personUids that can be viewed based on CoursePermission given to the active\n               * user for their enrolment role in that course\n              */\n              (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n                 FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n                      JOIN CoursePermission \n                           ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n                          AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n                          AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n                      JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n                           ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                              AND ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                WHERE CAST(? AS BIGINT) != 0\n                  AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                  AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n              \n               UNION\n               /* Select personUids that can be viewed based on CoursePermission for the active user\n                  where the CoursePermission is granted directly to them\n                */   \n               SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n                 FROM CoursePermission\n                      JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n                           ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                              AND ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n                WHERE CAST(? AS BIGINT) != 0\n                  AND CoursePermission.cpToPersonUid = CAST(? AS BIGINT))\n                  \n        SELECT (    (SELECT CAST(? AS BIGINT) = CAST(? AS BIGINT))\n                 OR EXISTS(SELECT 1\n                             FROM PersonParentJoin\n                            WHERE PersonParentJoin.ppjMinorPersonUid = CAST(? AS BIGINT)\n                              AND PersonParentJoin.ppjParentPersonUid = CAST(? AS BIGINT))\n                 OR (SELECT \n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE CAST(? AS BIGINT) != 0 \n                  AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                  AND (SystemPermission.spPermissionsFlag &\n     \n                            8192\n                            \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    )\n                 OR (SELECT CAST(? AS BIGINT) IN \n                             (SELECT CanViewPersonUidsViaCoursePermission.personUid\n                                 FROM CanViewPersonUidsViaCoursePermission))           \n               ) AS hasViewPermission,\n               \n               (   (SELECT CAST(? AS BIGINT) = CAST(? AS BIGINT))\n                OR EXISTS(SELECT 1\n                             FROM PersonParentJoin\n                            WHERE PersonParentJoin.ppjMinorPersonUid = CAST(? AS BIGINT)\n                              AND PersonParentJoin.ppjParentPersonUid = CAST(? AS BIGINT))\n                OR (SELECT \n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE CAST(? AS BIGINT) != 0 \n                  AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                  AND (SystemPermission.spPermissionsFlag &\n     \n                            32768\n                            \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    )\n                ) AS hasEditPermission\n    ', VOID, VOID, VOID, '\n        /* Similar to the query used on list all persons, however it uses the the otherpersonuid param \n         * in the WHERE clauses to narrow down the search. \n         */\n        WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n              /* Select personUids that can be viewed based on CoursePermission given to the active\n               * user for their enrolment role in that course\n              */\n              (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n                 FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n                      JOIN CoursePermission \n                           ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n                          AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n                          AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n                      JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n                           ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                              AND ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid = ?\n                WHERE ? != 0\n                  AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = ?\n                  AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n              \n               UNION\n               /* Select personUids that can be viewed based on CoursePermission for the active user\n                  where the CoursePermission is granted directly to them\n                */   \n               SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n                 FROM CoursePermission\n                      JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n                           ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                              AND ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid = ?\n                WHERE ? != 0\n                  AND CoursePermission.cpToPersonUid = ?)\n                  \n        SELECT (    (SELECT ? = ?)\n                 OR EXISTS(SELECT 1\n                             FROM PersonParentJoin\n                            WHERE PersonParentJoin.ppjMinorPersonUid = ?\n                              AND PersonParentJoin.ppjParentPersonUid = ?)\n                 OR (SELECT \n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n     \n                            8192\n                            \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    )\n                 OR (SELECT ? IN \n                             (SELECT CanViewPersonUidsViaCoursePermission.personUid\n                                 FROM CanViewPersonUidsViaCoursePermission))           \n               ) AS hasViewPermission,\n               \n               (   (SELECT ? = ?)\n                OR EXISTS(SELECT 1\n                             FROM PersonParentJoin\n                            WHERE PersonParentJoin.ppjMinorPersonUid = ?\n                              AND PersonParentJoin.ppjParentPersonUid = ?)\n                OR (SELECT \n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n     \n                            32768\n                            \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    )\n                ) AS hasEditPermission\n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.shi_1.phf_1, tmp_0, SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda_0(this.thi_1, this.uhi_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda).y77 = function (completion) {
    return new SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda(this.shi_1, this.thi_1, this.uhi_1, completion);
  };
  function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda_0(this$0, $otherPersonUid, $accountPersonUid, resultContinuation) {
    var i = new SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda(this$0, $otherPersonUid, $accountPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.vhi($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SystemPermissionDao_JdbcImpl(_db) {
    SystemPermissionDao.call(this);
    this.phf_1 = _db;
    var tmp = this;
    tmp.qhf_1 = new SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1(this);
  }
  protoOf(SystemPermissionDao_JdbcImpl).yhc = function (systemPermissions, $completion) {
    return this.qhf_1.i5g(systemPermissions, $completion);
  };
  protoOf(SystemPermissionDao_JdbcImpl).rhc = function (accountPersonUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['SystemPermission'];
    return doorFlow(this.phf_1, tmp, SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda_0(this, accountPersonUid, null));
  };
  protoOf(SystemPermissionDao_JdbcImpl).shc = function (accountPersonUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT SystemPermission.*\n          FROM SystemPermission\n         WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n         LIMIT 1\n    ', VOID, VOID, VOID, '\n        SELECT SystemPermission.*\n          FROM SystemPermission\n         WHERE SystemPermission.spToPersonUid = ?\n         LIMIT 1\n    \n', true);
    return prepareAndUseStatementAsync(this.phf_1, tmp, SystemPermissionDao_JdbcImpl$findByPersonUid$slambda_0(accountPersonUid, null), $completion);
  };
  protoOf(SystemPermissionDao_JdbcImpl).thc = function (accountPersonUid, permission, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT \n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE CAST(? AS BIGINT) != 0 \n                  AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                  AND (SystemPermission.spPermissionsFlag &\n    \n          CAST(? AS BIGINT)\n        \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n      \n    ', VOID, VOID, VOID, '\n        SELECT \n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n    \n          ?\n        \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n      \n    \n', true);
    return prepareAndUseStatementAsync(this.phf_1, tmp, SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda_0(accountPersonUid, permission, null), $completion);
  };
  protoOf(SystemPermissionDao_JdbcImpl).uhc = function (accountPersonUid, permission) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['SystemPermission'];
    return doorFlow(this.phf_1, tmp, SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda_0(this, accountPersonUid, permission, null));
  };
  protoOf(SystemPermissionDao_JdbcImpl).vhc = function (accountPersonUid, firstPermission, secondPermission) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['SystemPermission'];
    return doorFlow(this.phf_1, tmp, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda_0(this, accountPersonUid, firstPermission, secondPermission, null));
  };
  protoOf(SystemPermissionDao_JdbcImpl).whc = function (accountPersonUid, firstPermission, secondPermission, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT (\n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE CAST(? AS BIGINT) != 0 \n                  AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                  AND (SystemPermission.spPermissionsFlag &\n    \n                CAST(? AS BIGINT)\n                \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    ) as firstPermission,\n                (\n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE CAST(? AS BIGINT) != 0 \n                  AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n                  AND (SystemPermission.spPermissionsFlag &\n    \n                CAST(? AS BIGINT)\n                \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    ) as secondPermission\n    ', VOID, VOID, VOID, '\n        SELECT (\n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n    \n                ?\n                \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    ) as firstPermission,\n                (\n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n    \n                ?\n                \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    ) as secondPermission\n    \n', true);
    return prepareAndUseStatementAsync(this.phf_1, tmp, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda_0(accountPersonUid, firstPermission, secondPermission, null), $completion);
  };
  protoOf(SystemPermissionDao_JdbcImpl).xhc = function (accountPersonUid, otherPersonUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['PersonParentJoin', 'SystemPermission', 'ClazzEnrolment', 'CoursePermission'];
    return doorFlow(this.phf_1, tmp, SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda_0(this, otherPersonUid, accountPersonUid, null));
  };
  function SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda(this$0, $accountPersonUid, resultContinuation) {
    this.ehj_1 = this$0;
    this.fhj_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.ghj_1 = this.ehj_1.phj_1;
            var tmp_1 = this;
            tmp_1.hhj_1 = 'SystemPermissionDao/findByPersonUidAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ihj_1 = this.ehj_1.rhj_1;
            var tmp_3 = this;
            tmp_3.jhj_1 = this.ihj_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ehj_1.phj_1.w38(), 'SystemPermissionDao/findByPersonUidAsFlow');
            doorNodeIdHeader(this_0, this.ehj_1.phj_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.ehj_1.phj_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.fhj_1));
            tmp_4.khj_1 = this_0;
            this.khj_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.lhj_1 = this.jhj_1;
            var tmp_6 = this;
            tmp_6.mhj_1 = this.khj_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.mhj_1, this.lhj_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.nhj_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ehj_1.ohj_1, this.nhj_1, this.ehj_1.phj_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda$lambda(this.ghj_1, this.hhj_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda).y77 = function (completion) {
    return new SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda(this.ehj_1, this.fhj_1, completion);
  };
  function SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda_0(this$0, $accountPersonUid, resultContinuation) {
    var i = new SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda(this$0, $accountPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SystemPermissionDao_Repo$personHasSystemPermission$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda(this$0, $accountPersonUid, $permission, resultContinuation) {
    this.dhk_1 = this$0;
    this.ehk_1 = $accountPersonUid;
    this.fhk_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.ghk_1 = this.dhk_1.phj_1;
            var tmp_1 = this;
            tmp_1.hhk_1 = 'SystemPermissionDao/personHasSystemPermissionAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ihk_1 = this.dhk_1.rhj_1;
            var tmp_3 = this;
            tmp_3.jhk_1 = this.ihk_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.dhk_1.phj_1.w38(), 'SystemPermissionDao/personHasSystemPermissionAsFlow');
            doorNodeIdHeader(this_0, this.dhk_1.phj_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.dhk_1.phj_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ehk_1));
            parameter(this_0, 'permission', this.dhk_1.phj_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.fhk_1));
            tmp_4.khk_1 = this_0;
            this.khk_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.lhk_1 = this.jhk_1;
            var tmp_6 = this;
            tmp_6.mhk_1 = this.khk_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.mhk_1, this.lhk_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.nhk_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.dhk_1.ohj_1, this.nhk_1, this.dhk_1.phj_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda$lambda(this.ghk_1, this.hhk_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda).y77 = function (completion) {
    return new SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda(this.dhk_1, this.ehk_1, this.fhk_1, completion);
  };
  function SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda_0(this$0, $accountPersonUid, $permission, resultContinuation) {
    var i = new SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda(this$0, $accountPersonUid, $permission, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    this.whk_1 = this$0;
    this.xhk_1 = $accountPersonUid;
    this.yhk_1 = $firstPermission;
    this.zhk_1 = $secondPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.ahl_1 = this.whk_1.phj_1;
            var tmp_1 = this;
            tmp_1.bhl_1 = 'SystemPermissionDao/personHasSystemPermissionPairAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.chl_1 = this.whk_1.rhj_1;
            var tmp_3 = this;
            tmp_3.dhl_1 = this.chl_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.whk_1.phj_1.w38(), 'SystemPermissionDao/personHasSystemPermissionPairAsFlow');
            doorNodeIdHeader(this_0, this.whk_1.phj_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.whk_1.phj_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.xhk_1));
            parameter(this_0, 'firstPermission', this.whk_1.phj_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.yhk_1));
            parameter(this_0, 'secondPermission', this.whk_1.phj_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.zhk_1));
            tmp_4.ehl_1 = this_0;
            this.ehl_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.fhl_1 = this.dhl_1;
            var tmp_6 = this;
            tmp_6.ghl_1 = this.ehl_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.ghl_1, this.fhl_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.hhl_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.whk_1.ohj_1, this.hhl_1, this.whk_1.phj_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda$lambda(this.ahl_1, this.bhl_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda).y77 = function (completion) {
    return new SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda(this.whk_1, this.xhk_1, this.yhk_1, this.zhk_1, completion);
  };
  function SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda_0(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    var i = new SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SystemPermissionDao_Repo$personHasSystemPermissionPair$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda(this$0, $accountPersonUid, $otherPersonUid, resultContinuation) {
    this.qhl_1 = this$0;
    this.rhl_1 = $accountPersonUid;
    this.shl_1 = $otherPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.thl_1 = this.qhl_1.phj_1;
            var tmp_1 = this;
            tmp_1.uhl_1 = 'SystemPermissionDao/personHasEditAndViewPermissionForPersonAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.vhl_1 = this.qhl_1.rhj_1;
            var tmp_3 = this;
            tmp_3.whl_1 = this.vhl_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.qhl_1.phj_1.w38(), 'SystemPermissionDao/personHasEditAndViewPermissionForPersonAsFlow');
            doorNodeIdHeader(this_0, this.qhl_1.phj_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.qhl_1.phj_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.rhl_1));
            parameter(this_0, 'otherPersonUid', this.qhl_1.phj_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.shl_1));
            tmp_4.xhl_1 = this_0;
            this.xhl_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.yhl_1 = this.whl_1;
            var tmp_6 = this;
            tmp_6.zhl_1 = this.xhl_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.zhl_1, this.yhl_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.ahm_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.qhl_1.ohj_1, this.ahm_1, this.qhl_1.phj_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda$lambda(this.thl_1, this.uhl_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda).y77 = function (completion) {
    return new SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda(this.qhl_1, this.rhl_1, this.shl_1, completion);
  };
  function SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda_0(this$0, $accountPersonUid, $otherPersonUid, resultContinuation) {
    var i = new SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda(this$0, $accountPersonUid, $otherPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SystemPermissionDao_Repo$upsertAsync$slambda(this$0, $systemPermissions, resultContinuation) {
    this.jhm_1 = this$0;
    this.khm_1 = $systemPermissions;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_Repo$upsertAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_Repo$upsertAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(SystemPermissionDao_Repo$upsertAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.jhm_1.qhj_1.yhc(this.khm_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(SystemPermissionDao_Repo$upsertAsync$slambda).y77 = function (completion) {
    return new SystemPermissionDao_Repo$upsertAsync$slambda(this.jhm_1, this.khm_1, completion);
  };
  function SystemPermissionDao_Repo$upsertAsync$slambda_0(this$0, $systemPermissions, resultContinuation) {
    var i = new SystemPermissionDao_Repo$upsertAsync$slambda(this$0, $systemPermissions, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByPersonUidCOROUTINE$405(_this__u8e3s4, accountPersonUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.thm_1 = _this__u8e3s4;
    this.uhm_1 = accountPersonUid;
  }
  protoOf($findByPersonUidCOROUTINE$405).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.thm_1.qhj_1.shc(this.uhm_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $personHasSystemPermissionCOROUTINE$406(_this__u8e3s4, accountPersonUid, permission, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.dhn_1 = _this__u8e3s4;
    this.ehn_1 = accountPersonUid;
    this.fhn_1 = permission;
  }
  protoOf($personHasSystemPermissionCOROUTINE$406).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.ghn_1 = this.dhn_1.phj_1;
            var tmp_1 = this;
            tmp_1.hhn_1 = 'SystemPermissionDao/personHasSystemPermission';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ihn_1 = this.dhn_1.rhj_1;
            var tmp_3 = this;
            tmp_3.jhn_1 = this.ihn_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.dhn_1.phj_1.w38(), 'SystemPermissionDao/personHasSystemPermission');
            doorNodeIdHeader(this_0, this.dhn_1.phj_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.dhn_1.phj_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.ehn_1));
            parameter(this_0, 'permission', this.dhn_1.phj_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.fhn_1));
            tmp_4.khn_1 = this_0;
            this.khn_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.lhn_1 = this.jhn_1;
            var tmp_6 = this;
            tmp_6.mhn_1 = this.khn_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.mhn_1, this.lhn_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.nhn_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.dhn_1.ohj_1, this.nhn_1, this.dhn_1.phj_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.ohn_1 = this.kd_1;
              Napier_getInstance().q5d(this.ohn_1, 'DoorLog', SystemPermissionDao_Repo$personHasSystemPermission$lambda(this.ghn_1, this.hhn_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.dhn_1.qhj_1.thc(this.ehn_1, this.fhn_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $personHasSystemPermissionPairCOROUTINE$407(_this__u8e3s4, accountPersonUid, firstPermission, secondPermission, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.xhn_1 = _this__u8e3s4;
    this.yhn_1 = accountPersonUid;
    this.zhn_1 = firstPermission;
    this.aho_1 = secondPermission;
  }
  protoOf($personHasSystemPermissionPairCOROUTINE$407).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            var tmp_0 = this;
            tmp_0.bho_1 = this.xhn_1.phj_1;
            var tmp_1 = this;
            tmp_1.cho_1 = 'SystemPermissionDao/personHasSystemPermissionPair';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.dho_1 = this.xhn_1.rhj_1;
            var tmp_3 = this;
            tmp_3.eho_1 = this.dho_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.xhn_1.phj_1.w38(), 'SystemPermissionDao/personHasSystemPermissionPair');
            doorNodeIdHeader(this_0, this.xhn_1.phj_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.xhn_1.phj_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.yhn_1));
            parameter(this_0, 'firstPermission', this.xhn_1.phj_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.zhn_1));
            parameter(this_0, 'secondPermission', this.xhn_1.phj_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.aho_1));
            tmp_4.fho_1 = this_0;
            this.fho_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.gho_1 = this.eho_1;
            var tmp_6 = this;
            tmp_6.hho_1 = this.fho_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.hho_1, this.gho_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.iho_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.xhn_1.ohj_1, this.iho_1, this.xhn_1.phj_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 6;
            this.hd_1 = 4;
            continue $sm;
          case 3:
            this.id_1 = 6;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              this.jho_1 = this.kd_1;
              Napier_getInstance().q5d(this.jho_1, 'DoorLog', SystemPermissionDao_Repo$personHasSystemPermissionPair$lambda(this.bho_1, this.cho_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.xhn_1.qhj_1.whc(this.yhn_1, this.zhn_1, this.aho_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            var _result = suspendResult;
            return _result;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function SystemPermissionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    SystemPermissionDao.call(this);
    this.ohj_1 = _db;
    this.phj_1 = _repo;
    this.qhj_1 = _dao;
    this.rhj_1 = _httpClient;
    this.shj_1 = _clientId;
    this.thj_1 = _endpoint;
    this.uhj_1 = new RepoDaoFlowHelper(this.phj_1);
  }
  protoOf(SystemPermissionDao_Repo).rhc = function (accountPersonUid) {
    var tmp = this.qhj_1.rhc(accountPersonUid);
    return this.uhj_1.b67(tmp, SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda_0(this, accountPersonUid, null));
  };
  protoOf(SystemPermissionDao_Repo).shc = function (accountPersonUid, $completion) {
    var tmp = new $findByPersonUidCOROUTINE$405(this, accountPersonUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_Repo).thc = function (accountPersonUid, permission, $completion) {
    var tmp = new $personHasSystemPermissionCOROUTINE$406(this, accountPersonUid, permission, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_Repo).uhc = function (accountPersonUid, permission) {
    var tmp = this.qhj_1.uhc(accountPersonUid, permission);
    return this.uhj_1.b67(tmp, SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda_0(this, accountPersonUid, permission, null));
  };
  protoOf(SystemPermissionDao_Repo).vhc = function (accountPersonUid, firstPermission, secondPermission) {
    var tmp = this.qhj_1.vhc(accountPersonUid, firstPermission, secondPermission);
    return this.uhj_1.b67(tmp, SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda_0(this, accountPersonUid, firstPermission, secondPermission, null));
  };
  protoOf(SystemPermissionDao_Repo).whc = function (accountPersonUid, firstPermission, secondPermission, $completion) {
    var tmp = new $personHasSystemPermissionPairCOROUTINE$407(this, accountPersonUid, firstPermission, secondPermission, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_Repo).xhc = function (accountPersonUid, otherPersonUid) {
    var tmp = this.qhj_1.xhc(accountPersonUid, otherPersonUid);
    return this.uhj_1.b67(tmp, SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda_0(this, accountPersonUid, otherPersonUid, null));
  };
  protoOf(SystemPermissionDao_Repo).yhc = function (systemPermissions, $completion) {
    return withRepoChangeMonitorAsync(this.phj_1, 'SystemPermission', SystemPermissionDao_Repo$upsertAsync$slambda_0(this, systemPermissions, null), $completion);
  };
  function TransferJobDao() {
  }
  function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda$lambda(_result) {
    return mapRows(_result, TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_totalSize = $_result.l5m('totalSize');
      var _tmp_transferred = $_result.l5m('transferred');
      var _tmp_latestErrorStr = $_result.rz('latestErrorStr');
      var _tmp_TransferJob_nullCount = 0;
      var _tmp_tjUid = $_result.k5m('tjUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_tjType = $_result.k5m('tjType');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_tjStatus = $_result.k5m('tjStatus');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_tjName = $_result.rz('tjName');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_tjUuid = $_result.rz('tjUuid');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_tjTableId = $_result.k5m('tjTableId');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_tjEntityUid = $_result.l5m('tjEntityUid');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_tjTimeCreated = $_result.l5m('tjTimeCreated');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_tjCreationType = $_result.k5m('tjCreationType');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_tjOiUid = $_result.l5m('tjOiUid');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_TransferJob_isAllNull = _tmp_TransferJob_nullCount === 10;
      // Inline function 'kotlin.apply' call
      var this_0 = new TransferJobAndTotals();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.TransferJobDao_JdbcImpl.findByContentEntryUidWithTotalsAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.ofc_1 = _tmp_totalSize;
      this_0.pfc_1 = _tmp_transferred;
      this_0.qfc_1 = _tmp_latestErrorStr;
      if (!_tmp_TransferJob_isAllNull) {
        var tmp_9 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new TransferJob();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.TransferJobDao_JdbcImpl.findByContentEntryUidWithTotalsAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.rfc_1 = _tmp_tjUid;
        this_1.sfc_1 = _tmp_tjType;
        this_1.tfc_1 = _tmp_tjStatus;
        this_1.ufc_1 = _tmp_tjName;
        this_1.vfc_1 = _tmp_tjUuid;
        this_1.wfc_1 = _tmp_tjTableId;
        this_1.xfc_1 = _tmp_tjEntityUid;
        this_1.yfc_1 = _tmp_tjTimeCreated;
        this_1.zfc_1 = _tmp_tjCreationType;
        this_1.afd_1 = _tmp_tjOiUid;
        tmp_9.nfc_1 = this_1;
      }
      return this_0;
    };
  }
  function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda($contentEntryUid, $jobType, resultContinuation) {
    this.vho_1 = $contentEntryUid;
    this.who_1 = $jobType;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda).yho = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.yho((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.xho_1.i5h(1, this.vho_1);
            this.xho_1.h5h(2, this.who_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.xho_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda(this.vho_1, this.who_1, completion);
    i.xho_1 = _stmt;
    return i;
  };
  function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda_0($contentEntryUid, $jobType, resultContinuation) {
    var i = new TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda($contentEntryUid, $jobType, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.yho(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.zho_1);
  }
  protoOf(TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO TransferJob (tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1).dhp = function (stmt, entity) {
    if (entity.rfc_1 === 0) {
      stmt.n5h(1, null);
    } else {
      stmt.h5h(1, entity.rfc_1);
    }
    stmt.h5h(2, entity.sfc_1);
    stmt.h5h(3, entity.tfc_1);
    stmt.l5h(4, entity.ufc_1);
    stmt.l5h(5, entity.vfc_1);
    stmt.h5h(6, entity.wfc_1);
    stmt.i5h(7, entity.xfc_1);
    stmt.i5h(8, entity.yfc_1);
    stmt.h5h(9, entity.zfc_1);
    stmt.i5h(10, entity.afd_1);
  };
  protoOf(TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1).c5f = function (stmt, entity) {
    return this.dhp(stmt, entity instanceof TransferJob ? entity : THROW_CCE());
  };
  function TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda($jobUid, resultContinuation) {
    this.mhp_1 = $jobUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.nhp_1.h5h(1, this.mhp_1);
            this.nhp_1.h5h(2, this.mhp_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.nhp_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda).z5e = function (_stmt, completion) {
    var i = new TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda(this.mhp_1, completion);
    i.nhp_1 = _stmt;
    return i;
  };
  function TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda_0($jobUid, resultContinuation) {
    var i = new TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda($jobUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda(this$0, $contentEntryUid, $jobType, resultContinuation) {
    this.whp_1 = this$0;
    this.xhp_1 = $contentEntryUid;
    this.yhp_1 = $jobType;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda).zhp = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda).z77 = function ($completion) {
    return this.zhp($completion);
  };
  protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        SELECT TransferJob.*,\n               \n        (SELECT SUM(TransferJobItem.tjTotalSize)\n                   FROM TransferJobItem\n                  WHERE TransferJobItem.tjiTjUid =  TransferJob.tjUid) AS totalSize,\n                (SELECT SUM(TransferJobItem.tjTransferred)\n                   FROM TransferJobItem\n                  WHERE TransferJobItem.tjiTjUid =  TransferJob.tjUid) AS transferred \n    ,\n               TransferJobError.tjeErrorStr AS latestErrorStr\n          FROM TransferJob\n               LEFT JOIN TransferJobError\n                         ON TransferJobError.tjeId = \n                            (SELECT TransferJobError.tjeId\n                               FROM TransferJobError\n                              WHERE TransferJob.tjStatus = 22\n                                AND TransferJobError.tjeTjUid = TransferJob.tjUid\n                           ORDER BY TransferJobError.tjeDismissed DESC \n                              LIMIT 1)\n         WHERE TransferJob.tjTableId = 738\n           AND TransferJob.tjEntityUid IN \n               \n        (SELECT ContentEntryVersion.cevUid\n                         FROM ContentEntryVersion\n                        WHERE ContentEntryVersion.cevContentEntryUid = CAST(? AS BIGINT))\n     \n           AND (   TransferJob.tjStatus < 21\n                OR (TransferJobError.tjeErrorStr IS NOT NULL AND NOT TransferJobError.tjeDismissed))\n           AND TransferJob.tjType = ?   \n    ', VOID, VOID, VOID, '\n        SELECT TransferJob.*,\n               \n        (SELECT SUM(TransferJobItem.tjTotalSize)\n                   FROM TransferJobItem\n                  WHERE TransferJobItem.tjiTjUid =  TransferJob.tjUid) AS totalSize,\n                (SELECT SUM(TransferJobItem.tjTransferred)\n                   FROM TransferJobItem\n                  WHERE TransferJobItem.tjiTjUid =  TransferJob.tjUid) AS transferred \n    ,\n               TransferJobError.tjeErrorStr AS latestErrorStr\n          FROM TransferJob\n               LEFT JOIN TransferJobError\n                         ON TransferJobError.tjeId = \n                            (SELECT TransferJobError.tjeId\n                               FROM TransferJobError\n                              WHERE TransferJob.tjStatus = 22\n                                AND TransferJobError.tjeTjUid = TransferJob.tjUid\n                           ORDER BY TransferJobError.tjeDismissed DESC \n                              LIMIT 1)\n         WHERE TransferJob.tjTableId = 738\n           AND TransferJob.tjEntityUid IN \n               \n        (SELECT ContentEntryVersion.cevUid\n                         FROM ContentEntryVersion\n                        WHERE ContentEntryVersion.cevContentEntryUid = ?)\n     \n           AND (   TransferJob.tjStatus < 21\n                OR (TransferJobError.tjeErrorStr IS NOT NULL AND NOT TransferJobError.tjeDismissed))\n           AND TransferJob.tjType = ?   \n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.whp_1.zho_1, tmp_0, TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda_0(this.xhp_1, this.yhp_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda).y77 = function (completion) {
    return new TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda(this.whp_1, this.xhp_1, this.yhp_1, completion);
  };
  function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda_0(this$0, $contentEntryUid, $jobType, resultContinuation) {
    var i = new TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda(this$0, $contentEntryUid, $jobType, resultContinuation);
    var l = function ($completion) {
      return i.zhp($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertCOROUTINE$408(_this__u8e3s4, job, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ihq_1 = _this__u8e3s4;
    this.jhq_1 = job;
  }
  protoOf($insertCOROUTINE$408).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.ihq_1.ahp_1.j5g(this.jhq_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function TransferJobDao_JdbcImpl(_db) {
    TransferJobDao.call(this);
    this.zho_1 = _db;
    var tmp = this;
    tmp.ahp_1 = new TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1(this);
  }
  protoOf(TransferJobDao_JdbcImpl).kho = function (job, $completion) {
    var tmp = new $insertCOROUTINE$408(this, job, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(TransferJobDao_JdbcImpl).lho = function (jobUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        UPDATE TransferJob\n           SET tjStatus = 21\n         WHERE tjUid = ?\n          AND NOT EXISTS(\n              SELECT TransferJobItem.tjiUid\n                FROM TransferJobItem\n               WHERE TransferJobItem.tjiTjUid = ?\n                 AND TransferJobItem.tjiStatus != 21) \n    ', VOID, VOID, VOID, VOID, false);
    return prepareAndUseStatementAsync(this.zho_1, tmp, TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda_0(jobUid, null), $completion);
  };
  protoOf(TransferJobDao_JdbcImpl).mho = function (contentEntryUid, jobType) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['ContentEntryVersion', 'TransferJobItem', 'TransferJobError', 'TransferJob'];
    return doorFlow(this.zho_1, tmp, TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda_0(this, contentEntryUid, jobType, null));
  };
  function TransferJobErrorDao() {
  }
  function TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.khq_1);
  }
  protoOf(TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO TransferJobError (tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed) VALUES(?, ?, ?, ?, ?)';
  };
  protoOf(TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1).ohq = function (stmt, entity) {
    if (entity.phq_1 === 0) {
      stmt.n5h(1, null);
    } else {
      stmt.h5h(1, entity.phq_1);
    }
    stmt.h5h(2, entity.qhq_1);
    stmt.i5h(3, entity.rhq_1);
    stmt.l5h(4, entity.shq_1);
    stmt.v5g(5, entity.thq_1);
  };
  protoOf(TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1).c5f = function (stmt, entity) {
    return this.ohq(stmt, entity instanceof TransferJobError ? entity : THROW_CCE());
  };
  function TransferJobErrorDao_JdbcImpl(_db) {
    TransferJobErrorDao.call(this);
    this.khq_1 = _db;
    var tmp = this;
    tmp.lhq_1 = new TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1(this);
  }
  function TransferJobItemDao() {
  }
  function TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.zhq_1);
  }
  protoOf(TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO TransferJobItem (tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1).dhr = function (stmt, entity) {
    if (entity.vbw_1 === 0) {
      stmt.n5h(1, null);
    } else {
      stmt.h5h(1, entity.vbw_1);
    }
    stmt.h5h(2, entity.wbw_1);
    stmt.i5h(3, entity.xbw_1);
    stmt.i5h(4, entity.ybw_1);
    stmt.h5h(5, entity.zbw_1);
    stmt.l5h(6, entity.abx_1);
    stmt.l5h(7, entity.bbx_1);
    stmt.h5h(8, entity.cbx_1);
    stmt.h5h(9, entity.dbx_1);
    stmt.h5h(10, entity.ebx_1);
    stmt.i5h(11, entity.fbx_1);
    stmt.i5h(12, entity.gbx_1);
    stmt.i5h(13, entity.hbx_1);
    stmt.l5h(14, entity.ibx_1);
  };
  protoOf(TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1).c5f = function (stmt, entity) {
    return this.dhr(stmt, entity instanceof TransferJobItem ? entity : THROW_CCE());
  };
  function TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda($transferred, $jobItemUid, resultContinuation) {
    this.mhr_1 = $transferred;
    this.nhr_1 = $jobItemUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ohr_1.i5h(1, this.mhr_1);
            this.ohr_1.h5h(2, this.nhr_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.ohr_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda).z5e = function (_stmt, completion) {
    var i = new TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda(this.mhr_1, this.nhr_1, completion);
    i.ohr_1 = _stmt;
    return i;
  };
  function TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda_0($transferred, $jobItemUid, resultContinuation) {
    var i = new TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda($transferred, $jobItemUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function TransferJobItemDao_JdbcImpl$updateStatus$slambda($status, $jobItemUid, resultContinuation) {
    this.xhr_1 = $status;
    this.yhr_1 = $jobItemUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(TransferJobItemDao_JdbcImpl$updateStatus$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(TransferJobItemDao_JdbcImpl$updateStatus$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(TransferJobItemDao_JdbcImpl$updateStatus$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.zhr_1.h5h(1, this.xhr_1);
            this.zhr_1.h5h(2, this.yhr_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.zhr_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(TransferJobItemDao_JdbcImpl$updateStatus$slambda).z5e = function (_stmt, completion) {
    var i = new TransferJobItemDao_JdbcImpl$updateStatus$slambda(this.xhr_1, this.yhr_1, completion);
    i.zhr_1 = _stmt;
    return i;
  };
  function TransferJobItemDao_JdbcImpl$updateStatus$slambda_0($status, $jobItemUid, resultContinuation) {
    var i = new TransferJobItemDao_JdbcImpl$updateStatus$slambda($status, $jobItemUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda($destNodeId, $transferJobItemUid, resultContinuation) {
    this.ihs_1 = $destNodeId;
    this.jhs_1 = $transferJobItemUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.khs_1.i5h(1, this.ihs_1);
            this.khs_1.h5h(2, this.jhs_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.khs_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda).z5e = function (_stmt, completion) {
    var i = new TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda(this.ihs_1, this.jhs_1, completion);
    i.khs_1 = _stmt;
    return i;
  };
  function TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda_0($destNodeId, $transferJobItemUid, resultContinuation) {
    var i = new TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda($destNodeId, $transferJobItemUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda($status, $jobUid, resultContinuation) {
    this.ths_1 = $status;
    this.uhs_1 = $jobUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.vhs_1.h5h(1, this.ths_1);
            this.vhs_1.h5h(2, this.uhs_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.vhs_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda).z5e = function (_stmt, completion) {
    var i = new TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda(this.ths_1, this.uhs_1, completion);
    i.vhs_1 = _stmt;
    return i;
  };
  function TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda_0($status, $jobUid, resultContinuation) {
    var i = new TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda($status, $jobUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertCOROUTINE$411(_this__u8e3s4, item, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.eht_1 = _this__u8e3s4;
    this.fht_1 = item;
  }
  protoOf($insertCOROUTINE$411).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.eht_1.ahr_1.j5g(this.fht_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateTransferredProgressCOROUTINE$412(_this__u8e3s4, jobItemUid, transferred, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.oht_1 = _this__u8e3s4;
    this.pht_1 = jobItemUid;
    this.qht_1 = transferred;
  }
  protoOf($updateTransferredProgressCOROUTINE$412).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE TransferJobItem\n           SET tjTransferred = CAST(? AS BIGINT)\n         WHERE tjiUid = ?\n    ', VOID, VOID, VOID, '\n        UPDATE TransferJobItem\n           SET tjTransferred = ?\n         WHERE tjiUid = ?\n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.oht_1.zhq_1, tmp_0, TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda_0(this.qht_1, this.pht_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateStatusCOROUTINE$413(_this__u8e3s4, jobItemUid, status, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zht_1 = _this__u8e3s4;
    this.ahu_1 = jobItemUid;
    this.bhu_1 = status;
  }
  protoOf($updateStatusCOROUTINE$413).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE TransferJobItem\n           SET tjiStatus = ?\n         WHERE tjiUid = ?  \n    ', VOID, VOID, VOID, VOID, false);
            suspendResult = prepareAndUseStatementAsync(this.zht_1.zhq_1, tmp_0, TransferJobItemDao_JdbcImpl$updateStatus$slambda_0(this.bhu_1, this.ahu_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $insertOutgoingReplicationForTransferJobItemIfDoneCOROUTINE$414(_this__u8e3s4, destNodeId, transferJobItemUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.khu_1 = _this__u8e3s4;
    this.lhu_1 = destNodeId;
    this.mhu_1 = transferJobItemUid;
  }
  protoOf($insertOutgoingReplicationForTransferJobItemIfDoneCOROUTINE$414).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        INSERT INTO OutgoingReplication(destNodeId, orTableId, orPk1, orPk2)\n        SELECT CAST(? AS BIGINT) AS destNodeId, \n              TransferJobItem.tjiTableId AS orTableId,\n              TransferJobItem.tjiEntityUid AS orPk1,\n              0 AS orPk2\n        FROM TransferJobItem\n       WHERE TransferJobItem.tjiUid = ?\n         AND TransferJobItem.tjiTableId != 0\n         AND TransferJobItem.tjiStatus = 21\n         AND NOT EXISTS(\n             SELECT OtherJob.tjiUid\n               FROM TransferJobItem OtherJob\n              WHERE OtherJob.tjiTableId = TransferJobItem.tjiTableId\n                AND OtherJob.tjiEntityUid = TransferJobItem.tjiEntityUid\n                AND OtherJob.tjiEntityEtag = TransferJobItem.tjiEntityEtag\n                AND OtherJob.tjiStatus != 21)\n    ', VOID, VOID, VOID, '\n        INSERT INTO OutgoingReplication(destNodeId, orTableId, orPk1, orPk2)\n        SELECT ? AS destNodeId, \n              TransferJobItem.tjiTableId AS orTableId,\n              TransferJobItem.tjiEntityUid AS orPk1,\n              0 AS orPk2\n        FROM TransferJobItem\n       WHERE TransferJobItem.tjiUid = ?\n         AND TransferJobItem.tjiTableId != 0\n         AND TransferJobItem.tjiStatus = 21\n         AND NOT EXISTS(\n             SELECT OtherJob.tjiUid\n               FROM TransferJobItem OtherJob\n              WHERE OtherJob.tjiTableId = TransferJobItem.tjiTableId\n                AND OtherJob.tjiEntityUid = TransferJobItem.tjiEntityUid\n                AND OtherJob.tjiEntityEtag = TransferJobItem.tjiEntityEtag\n                AND OtherJob.tjiStatus != 21)\n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.khu_1.zhq_1, tmp_0, TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda_0(this.lhu_1, this.mhu_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateStatusIfNotCompleteForAllInJobCOROUTINE$415(_this__u8e3s4, jobUid, status, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vhu_1 = _this__u8e3s4;
    this.whu_1 = jobUid;
    this.xhu_1 = status;
  }
  protoOf($updateStatusIfNotCompleteForAllInJobCOROUTINE$415).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE TransferJobItem\n           SET tjiStatus = ?\n         WHERE tjiTjUid = ?\n           AND tjiStatus != 21 \n    ', VOID, VOID, VOID, VOID, false);
            suspendResult = prepareAndUseStatementAsync(this.vhu_1.zhq_1, tmp_0, TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda_0(this.xhu_1, this.whu_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function TransferJobItemDao_JdbcImpl(_db) {
    TransferJobItemDao.call(this);
    this.zhq_1 = _db;
    var tmp = this;
    tmp.ahr_1 = new TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1(this);
  }
  protoOf(TransferJobItemDao_JdbcImpl).uhq = function (item, $completion) {
    var tmp = new $insertCOROUTINE$411(this, item, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(TransferJobItemDao_JdbcImpl).vhq = function (jobItemUid, transferred, $completion) {
    var tmp = new $updateTransferredProgressCOROUTINE$412(this, jobItemUid, transferred, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(TransferJobItemDao_JdbcImpl).whq = function (jobItemUid, status, $completion) {
    var tmp = new $updateStatusCOROUTINE$413(this, jobItemUid, status, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(TransferJobItemDao_JdbcImpl).xhq = function (destNodeId, transferJobItemUid, $completion) {
    var tmp = new $insertOutgoingReplicationForTransferJobItemIfDoneCOROUTINE$414(this, destNodeId, transferJobItemUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(TransferJobItemDao_JdbcImpl).yhq = function (jobUid, status, $completion) {
    var tmp = new $updateStatusIfNotCompleteForAllInJobCOROUTINE$415(this, jobUid, status, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function UserSessionDao() {
  }
  function $insertSessionCOROUTINE$416(_this__u8e3s4, session, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.lhv_1 = _this__u8e3s4;
    this.mhv_1 = session;
  }
  protoOf($insertSessionCOROUTINE$416).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.nhv_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.lhv_1.phv_1));
            if (this.mhv_1.rhv_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.nhv_1.b62(679, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.ohv_1 = suspendResult;
            this.mhv_1.rhv_1 = this.ohv_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.mhv_1.vhv_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.lhv_1.qhv_1.yhu(this.mhv_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.mhv_1.rhv_1;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function UserSessionDao_DoorWrapper(_db, _dao) {
    UserSessionDao.call(this);
    this.phv_1 = _db;
    this.qhv_1 = _dao;
  }
  protoOf(UserSessionDao_DoorWrapper).yhu = function (session, $completion) {
    var tmp = new $insertSessionCOROUTINE$416(this, session, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_DoorWrapper).zhu = function () {
    return this.qhv_1.zhu();
  };
  protoOf(UserSessionDao_DoorWrapper).ahv = function ($completion) {
    return this.qhv_1.ahv($completion);
  };
  protoOf(UserSessionDao_DoorWrapper).bhv = function (maxDateOfBirth, $completion) {
    return this.qhv_1.bhv(maxDateOfBirth, $completion);
  };
  protoOf(UserSessionDao_DoorWrapper).chv = function (sessionUid, newStatus, reason, endTime, $completion) {
    return this.qhv_1.chv(sessionUid, newStatus, reason, endTime, $completion);
  };
  function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda$lambda(_result) {
    return mapRows(_result, UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda$lambda$lambda(_result));
  }
  function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_Person_nullCount = 0;
      var _tmp_personUid = $_result.l5m('personUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_gender = $_result.k5m('gender');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_active = $_result.w65('active');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.l5m('dateOfBirth');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.l5m('personGroupUid');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_personLct = $_result.l5m('personLct');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personType = $_result.k5m('personType');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.l5m('personMasterChangeSeqNum');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.l5m('personLocalChangeSeqNum');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.k5m('personLastChangedBy');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_admin = $_result.w65('admin');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.l5m('personPictureUid');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.l5m('personPictureLct');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_fileSize = $_result.k5m('fileSize');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.w65('personPictureActive');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6;
      var _tmp_UserSession_nullCount = 0;
      var _tmp_usUid = $_result.l5m('usUid');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_usPcsn = $_result.l5m('usPcsn');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_usLcsn = $_result.l5m('usLcsn');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_usLcb = $_result.l5m('usLcb');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_usLct = $_result.l5m('usLct');
      var tmp_33;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_usPersonUid = $_result.l5m('usPersonUid');
      var tmp_34;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_usClientNodeId = $_result.l5m('usClientNodeId');
      var tmp_35;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_usStartTime = $_result.l5m('usStartTime');
      var tmp_36;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_usEndTime = $_result.l5m('usEndTime');
      var tmp_37;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_usStatus = $_result.k5m('usStatus');
      var tmp_38;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_usReason = $_result.k5m('usReason');
      var tmp_39;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_usAuth = $_result.rz('usAuth');
      var tmp_40;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_usSessionType = $_result.k5m('usSessionType');
      var tmp_41;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_UserSession_isAllNull = _tmp_UserSession_nullCount === 13;
      // Inline function 'kotlin.apply' call
      var this_0 = new UserSessionAndPerson();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsLive.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_Person_isAllNull) {
        var tmp_42 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new Person();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsLive.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.f95_1 = _tmp_personUid;
        this_1.g95_1 = _tmp_username;
        this_1.h95_1 = _tmp_firstNames;
        this_1.i95_1 = _tmp_lastName;
        this_1.j95_1 = _tmp_emailAddr;
        this_1.k95_1 = _tmp_phoneNum;
        this_1.l95_1 = _tmp_gender;
        this_1.m95_1 = _tmp_active;
        this_1.n95_1 = _tmp_dateOfBirth;
        this_1.o95_1 = _tmp_personAddress;
        this_1.p95_1 = _tmp_personOrgId;
        this_1.q95_1 = _tmp_personGroupUid;
        this_1.r95_1 = _tmp_personLct;
        this_1.s95_1 = _tmp_personCountry;
        this_1.t95_1 = _tmp_personType;
        this_1.u95_1 = _tmp_personMasterChangeSeqNum;
        this_1.v95_1 = _tmp_personLocalChangeSeqNum;
        this_1.w95_1 = _tmp_personLastChangedBy;
        this_1.x95_1 = _tmp_admin;
        this_1.y95_1 = _tmp_personNotes;
        this_1.z95_1 = _tmp_fatherName;
        this_1.a96_1 = _tmp_fatherNumber;
        this_1.b96_1 = _tmp_motherName;
        this_1.c96_1 = _tmp_motherNum;
        tmp_42.ehw_1 = this_1;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_43 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new PersonPicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsLive.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.d96_1 = _tmp_personPictureUid;
        this_2.e96_1 = _tmp_personPictureLct;
        this_2.f96_1 = _tmp_personPictureUri;
        this_2.g96_1 = _tmp_personPictureThumbnailUri;
        this_2.h96_1 = _tmp_fileSize;
        this_2.i96_1 = _tmp_personPictureActive;
        tmp_43.fhw_1 = this_2;
      }
      if (!_tmp_UserSession_isAllNull) {
        var tmp_44 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new UserSession();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsLive.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.rhv_1 = _tmp_usUid;
        this_3.shv_1 = _tmp_usPcsn;
        this_3.thv_1 = _tmp_usLcsn;
        this_3.uhv_1 = _tmp_usLcb;
        this_3.vhv_1 = _tmp_usLct;
        this_3.whv_1 = _tmp_usPersonUid;
        this_3.xhv_1 = _tmp_usClientNodeId;
        this_3.yhv_1 = _tmp_usStartTime;
        this_3.zhv_1 = _tmp_usEndTime;
        this_3.ahw_1 = _tmp_usStatus;
        this_3.bhw_1 = _tmp_usReason;
        this_3.chw_1 = _tmp_usAuth;
        this_3.dhw_1 = _tmp_usSessionType;
        tmp_44.ghw_1 = this_3;
      }
      return this_0;
    };
  }
  function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda(resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda).qhw = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda).he = function (p1, $completion) {
    return this.qhw((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.phw_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda(completion);
    i.phw_1 = _stmt;
    return i;
  };
  function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda_0(resultContinuation) {
    var i = new UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda(resultContinuation);
    var l = function (_stmt, $completion) {
      return i.qhw(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda$lambda(_result) {
    return mapRows(_result, UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda$lambda$lambda(_result));
  }
  function UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_Person_nullCount = 0;
      var _tmp_personUid = $_result.l5m('personUid');
      var tmp;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_0;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_1;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_2;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_3;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_4;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_gender = $_result.k5m('gender');
      var tmp_5;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_active = $_result.w65('active');
      var tmp_6;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.l5m('dateOfBirth');
      var tmp_7;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_8;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_9;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.l5m('personGroupUid');
      var tmp_10;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_personLct = $_result.l5m('personLct');
      var tmp_11;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_12;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personType = $_result.k5m('personType');
      var tmp_13;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.l5m('personMasterChangeSeqNum');
      var tmp_14;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.l5m('personLocalChangeSeqNum');
      var tmp_15;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.k5m('personLastChangedBy');
      var tmp_16;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_admin = $_result.w65('admin');
      var tmp_17;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_18;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_19;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_20;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_21;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_22;
      if ($_result.d67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.l5m('personPictureUid');
      var tmp_23;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.l5m('personPictureLct');
      var tmp_24;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_25;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_26;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_fileSize = $_result.k5m('fileSize');
      var tmp_27;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.w65('personPictureActive');
      var tmp_28;
      if ($_result.d67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6;
      var _tmp_UserSession_nullCount = 0;
      var _tmp_usUid = $_result.l5m('usUid');
      var tmp_29;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_usPcsn = $_result.l5m('usPcsn');
      var tmp_30;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_usLcsn = $_result.l5m('usLcsn');
      var tmp_31;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_usLcb = $_result.l5m('usLcb');
      var tmp_32;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_usLct = $_result.l5m('usLct');
      var tmp_33;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_usPersonUid = $_result.l5m('usPersonUid');
      var tmp_34;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_usClientNodeId = $_result.l5m('usClientNodeId');
      var tmp_35;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_usStartTime = $_result.l5m('usStartTime');
      var tmp_36;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_usEndTime = $_result.l5m('usEndTime');
      var tmp_37;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_usStatus = $_result.k5m('usStatus');
      var tmp_38;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_usReason = $_result.k5m('usReason');
      var tmp_39;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_usAuth = $_result.rz('usAuth');
      var tmp_40;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_usSessionType = $_result.k5m('usSessionType');
      var tmp_41;
      if ($_result.d67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_UserSession_isAllNull = _tmp_UserSession_nullCount === 13;
      // Inline function 'kotlin.apply' call
      var this_0 = new UserSessionAndPerson();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_Person_isAllNull) {
        var tmp_42 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new Person();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.f95_1 = _tmp_personUid;
        this_1.g95_1 = _tmp_username;
        this_1.h95_1 = _tmp_firstNames;
        this_1.i95_1 = _tmp_lastName;
        this_1.j95_1 = _tmp_emailAddr;
        this_1.k95_1 = _tmp_phoneNum;
        this_1.l95_1 = _tmp_gender;
        this_1.m95_1 = _tmp_active;
        this_1.n95_1 = _tmp_dateOfBirth;
        this_1.o95_1 = _tmp_personAddress;
        this_1.p95_1 = _tmp_personOrgId;
        this_1.q95_1 = _tmp_personGroupUid;
        this_1.r95_1 = _tmp_personLct;
        this_1.s95_1 = _tmp_personCountry;
        this_1.t95_1 = _tmp_personType;
        this_1.u95_1 = _tmp_personMasterChangeSeqNum;
        this_1.v95_1 = _tmp_personLocalChangeSeqNum;
        this_1.w95_1 = _tmp_personLastChangedBy;
        this_1.x95_1 = _tmp_admin;
        this_1.y95_1 = _tmp_personNotes;
        this_1.z95_1 = _tmp_fatherName;
        this_1.a96_1 = _tmp_fatherNumber;
        this_1.b96_1 = _tmp_motherName;
        this_1.c96_1 = _tmp_motherNum;
        tmp_42.ehw_1 = this_1;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_43 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new PersonPicture();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.d96_1 = _tmp_personPictureUid;
        this_2.e96_1 = _tmp_personPictureLct;
        this_2.f96_1 = _tmp_personPictureUri;
        this_2.g96_1 = _tmp_personPictureThumbnailUri;
        this_2.h96_1 = _tmp_fileSize;
        this_2.i96_1 = _tmp_personPictureActive;
        tmp_43.fhw_1 = this_2;
      }
      if (!_tmp_UserSession_isAllNull) {
        var tmp_44 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new UserSession();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.rhv_1 = _tmp_usUid;
        this_3.shv_1 = _tmp_usPcsn;
        this_3.thv_1 = _tmp_usLcsn;
        this_3.uhv_1 = _tmp_usLcb;
        this_3.vhv_1 = _tmp_usLct;
        this_3.whv_1 = _tmp_usPersonUid;
        this_3.xhv_1 = _tmp_usClientNodeId;
        this_3.yhv_1 = _tmp_usStartTime;
        this_3.zhv_1 = _tmp_usEndTime;
        this_3.ahw_1 = _tmp_usStatus;
        this_3.bhw_1 = _tmp_usReason;
        this_3.chw_1 = _tmp_usAuth;
        this_3.dhw_1 = _tmp_usSessionType;
        tmp_44.ghw_1 = this_3;
      }
      return this_0;
    };
  }
  function UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda$lambda(_result) {
    return mapNextRow(_result, 0, UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda$lambda$lambda(_result));
  }
  function UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.z5r(1);
    };
  }
  function UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.rhw_1);
  }
  protoOf(UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO UserSession (usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1).vhw = function (stmt, entity) {
    if (entity.rhv_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.rhv_1);
    }
    stmt.i5h(2, entity.shv_1);
    stmt.i5h(3, entity.thv_1);
    stmt.i5h(4, entity.uhv_1);
    stmt.i5h(5, entity.vhv_1);
    stmt.i5h(6, entity.whv_1);
    stmt.i5h(7, entity.xhv_1);
    stmt.i5h(8, entity.yhv_1);
    stmt.i5h(9, entity.zhv_1);
    stmt.h5h(10, entity.ahw_1);
    stmt.h5h(11, entity.bhw_1);
    stmt.l5h(12, entity.chw_1);
    stmt.h5h(13, entity.dhw_1);
  };
  protoOf(UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1).c5f = function (stmt, entity) {
    return this.vhw(stmt, entity instanceof UserSession ? entity : THROW_CCE());
  };
  function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda(this$0, resultContinuation) {
    this.ehx_1 = this$0;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda).fhx = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda).z77 = function ($completion) {
    return this.fhx($completion);
  };
  protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n            SELECT UserSession.*, Person.*, PersonPicture.*\n              FROM UserSession\n                   JOIN Person \n                        ON Person.personUid = UserSession.usPersonUid\n                   LEFT JOIN PersonPicture\n                        ON PersonPicture.personPictureUid = UserSession.usPersonUid\n             WHERE UserSession.usClientNodeId = (\n                   SELECT COALESCE(\n                          (SELECT nodeClientId \n                            FROM SyncNode\n                           LIMIT 1), 0))\n               AND UserSession.usStatus = 1        \n               AND (UserSession.usSessionType & 8) != 8\n            ', VOID, VOID, VOID, VOID, true);
            suspendResult = prepareAndUseStatementAsync(this.ehx_1.rhw_1, tmp_0, UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda_0(null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda).y77 = function (completion) {
    return new UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda(this.ehx_1, completion);
  };
  function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda_0(this$0, resultContinuation) {
    var i = new UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda(this$0, resultContinuation);
    var l = function ($completion) {
      return i.fhx($completion);
    };
    l.$arity = 0;
    return l;
  }
  function UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda(resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda).qhw = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda).he = function (p1, $completion) {
    return this.qhw((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ohx_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda).z5e = function (_stmt, completion) {
    var i = new UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda(completion);
    i.ohx_1 = _stmt;
    return i;
  };
  function UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda_0(resultContinuation) {
    var i = new UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda(resultContinuation);
    var l = function (_stmt, $completion) {
      return i.qhw(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda($maxDateOfBirth, resultContinuation) {
    this.xhx_1 = $maxDateOfBirth;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.yhx_1.i5h(1, this.xhx_1);
            this.yhx_1.i5h(2, this.xhx_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.yhx_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda).z5e = function (_stmt, completion) {
    var i = new UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda(this.xhx_1, completion);
    i.yhx_1 = _stmt;
    return i;
  };
  function UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda_0($maxDateOfBirth, resultContinuation) {
    var i = new UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda($maxDateOfBirth, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function UserSessionDao_JdbcImpl$endSession$slambda($newStatus, $reason, $endTime, $sessionUid, resultContinuation) {
    this.hhy_1 = $newStatus;
    this.ihy_1 = $reason;
    this.jhy_1 = $endTime;
    this.khy_1 = $sessionUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(UserSessionDao_JdbcImpl$endSession$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_JdbcImpl$endSession$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(UserSessionDao_JdbcImpl$endSession$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.lhy_1.h5h(1, this.hhy_1);
            this.lhy_1.h5h(2, this.ihy_1);
            this.lhy_1.i5h(3, this.jhy_1);
            this.lhy_1.i5h(4, this.jhy_1);
            this.lhy_1.i5h(5, this.khy_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.lhy_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(UserSessionDao_JdbcImpl$endSession$slambda).z5e = function (_stmt, completion) {
    var i = new UserSessionDao_JdbcImpl$endSession$slambda(this.hhy_1, this.ihy_1, this.jhy_1, this.khy_1, completion);
    i.lhy_1 = _stmt;
    return i;
  };
  function UserSessionDao_JdbcImpl$endSession$slambda_0($newStatus, $reason, $endTime, $sessionUid, resultContinuation) {
    var i = new UserSessionDao_JdbcImpl$endSession$slambda($newStatus, $reason, $endTime, $sessionUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertSessionCOROUTINE$417(_this__u8e3s4, session, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.uhy_1 = _this__u8e3s4;
    this.vhy_1 = session;
  }
  protoOf($insertSessionCOROUTINE$417).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.uhy_1.shw_1.j5g(this.vhy_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _retVal = suspendResult;
            return _retVal;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $endSessionCOROUTINE$418(_this__u8e3s4, sessionUid, newStatus, reason, endTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ehz_1 = _this__u8e3s4;
    this.fhz_1 = sessionUid;
    this.ghz_1 = newStatus;
    this.hhz_1 = reason;
    this.ihz_1 = endTime;
  }
  protoOf($endSessionCOROUTINE$418).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE UserSession\n           SET usAuth = null,\n               usStatus = ?,\n               usReason = ?,\n               usEndTime = CAST(? AS BIGINT),\n               usLct = CAST(? AS BIGINT)\n         WHERE UserSession.usUid = CAST(? AS BIGINT)\n    ', VOID, VOID, VOID, '\n        UPDATE UserSession\n           SET usAuth = null,\n               usStatus = ?,\n               usReason = ?,\n               usEndTime = ?,\n               usLct = ?\n         WHERE UserSession.usUid = ?\n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.ehz_1.rhw_1, tmp_0, UserSessionDao_JdbcImpl$endSession$slambda_0(this.ghz_1, this.hhz_1, this.ihz_1, this.fhz_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function UserSessionDao_JdbcImpl(_db) {
    UserSessionDao.call(this);
    this.rhw_1 = _db;
    var tmp = this;
    tmp.shw_1 = new UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1(this);
  }
  protoOf(UserSessionDao_JdbcImpl).yhu = function (session, $completion) {
    var tmp = new $insertSessionCOROUTINE$417(this, session, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_JdbcImpl).zhu = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['UserSession', 'Person', 'PersonPicture', 'SyncNode'];
    return doorFlow(this.rhw_1, tmp, UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda_0(this, null));
  };
  protoOf(UserSessionDao_JdbcImpl).ahv = function ($completion) {
    var tmp = new PreparedStatementConfig('\n            SELECT UserSession.*, Person.*, PersonPicture.*\n              FROM UserSession\n                   JOIN Person \n                        ON Person.personUid = UserSession.usPersonUid\n                   LEFT JOIN PersonPicture\n                        ON PersonPicture.personPictureUid = UserSession.usPersonUid\n             WHERE UserSession.usClientNodeId = (\n                   SELECT COALESCE(\n                          (SELECT nodeClientId \n                            FROM SyncNode\n                           LIMIT 1), 0))\n               AND UserSession.usStatus = 1        \n               AND (UserSession.usSessionType & 8) != 8\n            ', VOID, VOID, VOID, VOID, true);
    return prepareAndUseStatementAsync(this.rhw_1, tmp, UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda_0(null), $completion);
  };
  protoOf(UserSessionDao_JdbcImpl).bhv = function (maxDateOfBirth, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT COUNT(*)\n          FROM UserSession\n               JOIN Person \n                    ON UserSession.usPersonUid = Person.personUid\n         WHERE UserSession.usClientNodeId = (\n                   SELECT COALESCE(\n                          (SELECT nodeClientId \n                            FROM SyncNode\n                           LIMIT 1), 0))\n           AND UserSession.usStatus = 1                \n           AND (CAST(? AS BIGINT) = 0 OR Person.dateOfBirth < CAST(? AS BIGINT))\n           AND (UserSession.usSessionType & 8) != 8            \n    ', VOID, VOID, VOID, '\n        SELECT COUNT(*)\n          FROM UserSession\n               JOIN Person \n                    ON UserSession.usPersonUid = Person.personUid\n         WHERE UserSession.usClientNodeId = (\n                   SELECT COALESCE(\n                          (SELECT nodeClientId \n                            FROM SyncNode\n                           LIMIT 1), 0))\n           AND UserSession.usStatus = 1                \n           AND (? = 0 OR Person.dateOfBirth < ?)\n           AND (UserSession.usSessionType & 8) != 8            \n    \n', true);
    return prepareAndUseStatementAsync(this.rhw_1, tmp, UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda_0(maxDateOfBirth, null), $completion);
  };
  protoOf(UserSessionDao_JdbcImpl).chv = function (sessionUid, newStatus, reason, endTime, $completion) {
    var tmp = new $endSessionCOROUTINE$418(this, sessionUid, newStatus, reason, endTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function UserSessionDao_Repo$insertSession$slambda(this$0, $session, resultContinuation) {
    this.rhz_1 = this$0;
    this.shz_1 = $session;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(UserSessionDao_Repo$insertSession$slambda).n88 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_Repo$insertSession$slambda).z77 = function ($completion) {
    return this.n88($completion);
  };
  protoOf(UserSessionDao_Repo$insertSession$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.rhz_1.vhz_1.yhu(this.shz_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(UserSessionDao_Repo$insertSession$slambda).y77 = function (completion) {
    return new UserSessionDao_Repo$insertSession$slambda(this.rhz_1, this.shz_1, completion);
  };
  function UserSessionDao_Repo$insertSession$slambda_0(this$0, $session, resultContinuation) {
    var i = new UserSessionDao_Repo$insertSession$slambda(this$0, $session, resultContinuation);
    var l = function ($completion) {
      return i.n88($completion);
    };
    l.$arity = 0;
    return l;
  }
  function UserSessionDao_Repo$endSession$slambda(this$0, $sessionUid, $newStatus, $reason, $endTime, resultContinuation) {
    this.hi0_1 = this$0;
    this.ii0_1 = $sessionUid;
    this.ji0_1 = $newStatus;
    this.ki0_1 = $reason;
    this.li0_1 = $endTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(UserSessionDao_Repo$endSession$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_Repo$endSession$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(UserSessionDao_Repo$endSession$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.hi0_1.vhz_1.chv(this.ii0_1, this.ji0_1, this.ki0_1, this.li0_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(UserSessionDao_Repo$endSession$slambda).y77 = function (completion) {
    return new UserSessionDao_Repo$endSession$slambda(this.hi0_1, this.ii0_1, this.ji0_1, this.ki0_1, this.li0_1, completion);
  };
  function UserSessionDao_Repo$endSession$slambda_0(this$0, $sessionUid, $newStatus, $reason, $endTime, resultContinuation) {
    var i = new UserSessionDao_Repo$endSession$slambda(this$0, $sessionUid, $newStatus, $reason, $endTime, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertSessionCOROUTINE$420(_this__u8e3s4, session, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ui0_1 = _this__u8e3s4;
    this.vi0_1 = session;
  }
  protoOf($insertSessionCOROUTINE$420).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.ui0_1.uhz_1, 'UserSession', UserSessionDao_Repo$insertSession$slambda_0(this.ui0_1, this.vi0_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $findAllLocalSessionsAsyncCOROUTINE$422(_this__u8e3s4, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ei1_1 = _this__u8e3s4;
  }
  protoOf($findAllLocalSessionsAsyncCOROUTINE$422).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.ei1_1.vhz_1.ahv(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $countAllLocalSessionsAsyncCOROUTINE$424(_this__u8e3s4, maxDateOfBirth, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ni1_1 = _this__u8e3s4;
    this.oi1_1 = maxDateOfBirth;
  }
  protoOf($countAllLocalSessionsAsyncCOROUTINE$424).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.ni1_1.vhz_1.bhv(this.oi1_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function UserSessionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    UserSessionDao.call(this);
    this.thz_1 = _db;
    this.uhz_1 = _repo;
    this.vhz_1 = _dao;
    this.whz_1 = _httpClient;
    this.xhz_1 = _clientId;
    this.yhz_1 = _endpoint;
  }
  protoOf(UserSessionDao_Repo).yhu = function (session, $completion) {
    var tmp = new $insertSessionCOROUTINE$420(this, session, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_Repo).zhu = function () {
    var _result = this.vhz_1.zhu();
    return _result;
  };
  protoOf(UserSessionDao_Repo).ahv = function ($completion) {
    var tmp = new $findAllLocalSessionsAsyncCOROUTINE$422(this, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_Repo).bhv = function (maxDateOfBirth, $completion) {
    var tmp = new $countAllLocalSessionsAsyncCOROUTINE$424(this, maxDateOfBirth, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_Repo).chv = function (sessionUid, newStatus, reason, endTime, $completion) {
    return withRepoChangeMonitorAsync(this.uhz_1, 'UserSession', UserSessionDao_Repo$endSession$slambda_0(this, sessionUid, newStatus, reason, endTime, null), $completion);
  };
  function ActivityEntityDao() {
  }
  function ActivityEntityDao_DoorWrapper(_db, _dao) {
    ActivityEntityDao.call(this);
    this.si1_1 = _db;
    this.ti1_1 = _dao;
  }
  protoOf(ActivityEntityDao_DoorWrapper).pi1 = function (entities, $completion) {
    // Inline function 'kotlin.collections.mutableListOf' call
    var _generatedPks = ArrayList_init_$Create$();
    // Inline function 'kotlin.collections.forEach' call
    // Inline function 'kotlin.collections.iterator' call
    var tmp0_iterator = entities.w();
    while (tmp0_iterator.f()) {
      var element = tmp0_iterator.e();
      // Inline function 'com.ustadmobile.core.db.dao.xapi.ActivityEntityDao_DoorWrapper.insertOrIgnoreAsync.<anonymous>' call
      element.ai2_1 = systemTimeInMillis();
    }
    return this.ti1_1.pi1(entities, $completion);
  };
  protoOf(ActivityEntityDao_DoorWrapper).qi1 = function (activityUid, actMoreInfo, actLct, $completion) {
    return this.ti1_1.qi1(activityUid, actMoreInfo, actLct, $completion);
  };
  protoOf(ActivityEntityDao_DoorWrapper).ri1 = function (actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, $completion) {
    return this.ti1_1.ri1(actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, $completion);
  };
  function ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.bi2_1);
  }
  protoOf(ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1).h5g = function (returnsId) {
    return 'INSERT  OR IGNORE INTO ActivityEntity (actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1).fi2 = function (stmt, entity) {
    stmt.i5h(1, entity.ui1_1);
    stmt.l5h(2, entity.vi1_1);
    stmt.l5h(3, entity.wi1_1);
    stmt.l5h(4, entity.xi1_1);
    stmt.h5h(5, entity.yi1_1);
    stmt.l5h(6, entity.zi1_1);
    stmt.i5h(7, entity.ai2_1);
  };
  protoOf(ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1).c5f = function (stmt, entity) {
    return this.fi2(stmt, entity instanceof ActivityEntity ? entity : THROW_CCE());
  };
  function ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda($actMoreInfo, $actLct, $activityUid, resultContinuation) {
    this.oi2_1 = $actMoreInfo;
    this.pi2_1 = $actLct;
    this.qi2_1 = $activityUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ri2_1.l5h(1, this.oi2_1);
            this.ri2_1.i5h(2, this.pi2_1);
            this.ri2_1.i5h(3, this.qi2_1);
            this.ri2_1.l5h(4, this.oi2_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.ri2_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda).z5e = function (_stmt, completion) {
    var i = new ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda(this.oi2_1, this.pi2_1, this.qi2_1, completion);
    i.ri2_1 = _stmt;
    return i;
  };
  function ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda_0($actMoreInfo, $actLct, $activityUid, resultContinuation) {
    var i = new ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda($actMoreInfo, $actLct, $activityUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda($actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actUid, resultContinuation) {
    this.ai3_1 = $actType;
    this.bi3_1 = $actMoreInfo;
    this.ci3_1 = $actInteractionType;
    this.di3_1 = $actCorrectResponsePatterns;
    this.ei3_1 = $actUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.fi3_1.l5h(1, this.ai3_1);
            this.fi3_1.l5h(2, this.bi3_1);
            this.fi3_1.h5h(3, this.ci3_1);
            this.fi3_1.l5h(4, this.di3_1);
            this.fi3_1.i5h(5, this.ei3_1);
            this.fi3_1.i5h(6, this.ei3_1);
            this.fi3_1.i5h(7, this.ei3_1);
            this.fi3_1.i5h(8, this.ei3_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.fi3_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda).z5e = function (_stmt, completion) {
    var i = new ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda(this.ai3_1, this.bi3_1, this.ci3_1, this.di3_1, this.ei3_1, completion);
    i.fi3_1 = _stmt;
    return i;
  };
  function ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda_0($actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actUid, resultContinuation) {
    var i = new ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda($actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $updateIfMoreInfoChangedCOROUTINE$428(_this__u8e3s4, activityUid, actMoreInfo, actLct, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.oi3_1 = _this__u8e3s4;
    this.pi3_1 = activityUid;
    this.qi3_1 = actMoreInfo;
    this.ri3_1 = actLct;
  }
  protoOf($updateIfMoreInfoChangedCOROUTINE$428).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE ActivityEntity\n           SET actMoreInfo = ?,\n               actLct = CAST(? AS BIGINT)\n        WHERE actUid = CAST(? AS BIGINT)\n          AND actMoreInfo != ?      \n    ', VOID, VOID, VOID, '\n        UPDATE ActivityEntity\n           SET actMoreInfo = ?,\n               actLct = ?\n        WHERE actUid = ?\n          AND actMoreInfo != ?      \n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.oi3_1.bi2_1, tmp_0, ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda_0(this.qi3_1, this.ri3_1, this.pi3_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateIfNotYetDefinedCOROUTINE$429(_this__u8e3s4, actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ai4_1 = _this__u8e3s4;
    this.bi4_1 = actUid;
    this.ci4_1 = actType;
    this.di4_1 = actMoreInfo;
    this.ei4_1 = actInteractionType;
    this.fi4_1 = actCorrectResponsePatterns;
  }
  protoOf($updateIfNotYetDefinedCOROUTINE$429).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE ActivityEntity\n           SET actType = ?,\n               actMoreInfo = ?,\n               actInteractionType = ?,\n               actCorrectResponsePatterns = ?\n         WHERE actUid = CAST(? AS BIGINT)\n           AND (SELECT ActivityEntityInternal.actType \n                  FROM ActivityEntity ActivityEntityInternal \n                 WHERE ActivityEntityInternal.actUid = CAST(? AS BIGINT)) IS NULL\n           AND (SELECT ActivityEntityInternal.actInteractionType \n                  FROM ActivityEntity ActivityEntityInternal \n                 WHERE ActivityEntityInternal.actUid = CAST(? AS BIGINT)) = 0\n           AND (SELECT ActivityEntityInternal.actCorrectResponsePatterns \n                  FROM ActivityEntity ActivityEntityInternal \n                 WHERE ActivityEntityInternal.actUid = CAST(? AS BIGINT)) IS NULL      \n    ', VOID, VOID, VOID, '\n        UPDATE ActivityEntity\n           SET actType = ?,\n               actMoreInfo = ?,\n               actInteractionType = ?,\n               actCorrectResponsePatterns = ?\n         WHERE actUid = ?\n           AND (SELECT ActivityEntityInternal.actType \n                  FROM ActivityEntity ActivityEntityInternal \n                 WHERE ActivityEntityInternal.actUid = ?) IS NULL\n           AND (SELECT ActivityEntityInternal.actInteractionType \n                  FROM ActivityEntity ActivityEntityInternal \n                 WHERE ActivityEntityInternal.actUid = ?) = 0\n           AND (SELECT ActivityEntityInternal.actCorrectResponsePatterns \n                  FROM ActivityEntity ActivityEntityInternal \n                 WHERE ActivityEntityInternal.actUid = ?) IS NULL      \n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.ai4_1.bi2_1, tmp_0, ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda_0(this.ci4_1, this.di4_1, this.ei4_1, this.fi4_1, this.bi4_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ActivityEntityDao_JdbcImpl(_db) {
    ActivityEntityDao.call(this);
    this.bi2_1 = _db;
    var tmp = this;
    tmp.ci2_1 = new ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1(this);
  }
  protoOf(ActivityEntityDao_JdbcImpl).pi1 = function (entities, $completion) {
    return this.ci2_1.m5g(entities, $completion);
  };
  protoOf(ActivityEntityDao_JdbcImpl).qi1 = function (activityUid, actMoreInfo, actLct, $completion) {
    var tmp = new $updateIfMoreInfoChangedCOROUTINE$428(this, activityUid, actMoreInfo, actLct, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityEntityDao_JdbcImpl).ri1 = function (actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, $completion) {
    var tmp = new $updateIfNotYetDefinedCOROUTINE$429(this, actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation) {
    this.oi4_1 = this$0;
    this.pi4_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.oi4_1.si4_1.pi1(this.pi4_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda).y77 = function (completion) {
    return new ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda(this.oi4_1, this.pi4_1, completion);
  };
  function ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda_0(this$0, $entities, resultContinuation) {
    var i = new ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda(this$0, $activityUid, $actMoreInfo, $actLct, resultContinuation) {
    this.ei5_1 = this$0;
    this.fi5_1 = $activityUid;
    this.gi5_1 = $actMoreInfo;
    this.hi5_1 = $actLct;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.ei5_1.si4_1.qi1(this.fi5_1, this.gi5_1, this.hi5_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda).y77 = function (completion) {
    return new ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda(this.ei5_1, this.fi5_1, this.gi5_1, this.hi5_1, completion);
  };
  function ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda_0(this$0, $activityUid, $actMoreInfo, $actLct, resultContinuation) {
    var i = new ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda(this$0, $activityUid, $actMoreInfo, $actLct, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ActivityEntityDao_Repo$updateIfNotYetDefined$slambda(this$0, $actUid, $actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, resultContinuation) {
    this.qi5_1 = this$0;
    this.ri5_1 = $actUid;
    this.si5_1 = $actType;
    this.ti5_1 = $actMoreInfo;
    this.ui5_1 = $actInteractionType;
    this.vi5_1 = $actCorrectResponsePatterns;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityEntityDao_Repo$updateIfNotYetDefined$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityEntityDao_Repo$updateIfNotYetDefined$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ActivityEntityDao_Repo$updateIfNotYetDefined$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.qi5_1.si4_1.ri1(this.ri5_1, this.si5_1, this.ti5_1, this.ui5_1, this.vi5_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ActivityEntityDao_Repo$updateIfNotYetDefined$slambda).y77 = function (completion) {
    return new ActivityEntityDao_Repo$updateIfNotYetDefined$slambda(this.qi5_1, this.ri5_1, this.si5_1, this.ti5_1, this.ui5_1, this.vi5_1, completion);
  };
  function ActivityEntityDao_Repo$updateIfNotYetDefined$slambda_0(this$0, $actUid, $actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, resultContinuation) {
    var i = new ActivityEntityDao_Repo$updateIfNotYetDefined$slambda(this$0, $actUid, $actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ActivityEntityDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ActivityEntityDao.call(this);
    this.qi4_1 = _db;
    this.ri4_1 = _repo;
    this.si4_1 = _dao;
    this.ti4_1 = _httpClient;
    this.ui4_1 = _clientId;
    this.vi4_1 = _endpoint;
  }
  protoOf(ActivityEntityDao_Repo).pi1 = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.ri4_1, 'ActivityEntity', ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(ActivityEntityDao_Repo).qi1 = function (activityUid, actMoreInfo, actLct, $completion) {
    return withRepoChangeMonitorAsync(this.ri4_1, 'ActivityEntity', ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda_0(this, activityUid, actMoreInfo, actLct, null), $completion);
  };
  protoOf(ActivityEntityDao_Repo).ri1 = function (actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, $completion) {
    return withRepoChangeMonitorAsync(this.ri4_1, 'ActivityEntity', ActivityEntityDao_Repo$updateIfNotYetDefined$slambda_0(this, actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, null), $completion);
  };
  function ActivityExtensionDao() {
  }
  function ActivityExtensionDao_DoorWrapper(_db, _dao) {
    ActivityExtensionDao.call(this);
    this.xi5_1 = _db;
    this.yi5_1 = _dao;
  }
  protoOf(ActivityExtensionDao_DoorWrapper).wi5 = function (list, $completion) {
    // Inline function 'kotlin.collections.mutableListOf' call
    var _generatedPks = ArrayList_init_$Create$();
    // Inline function 'kotlin.collections.forEach' call
    // Inline function 'kotlin.collections.iterator' call
    var tmp0_iterator = list.w();
    while (tmp0_iterator.f()) {
      var element = tmp0_iterator.e();
      // Inline function 'com.ustadmobile.core.db.dao.xapi.ActivityExtensionDao_DoorWrapper.upsertListAsync.<anonymous>' call
      element.di6_1 = systemTimeInMillis();
    }
    return this.yi5_1.wi5(list, $completion);
  };
  function ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.fi6_1);
  }
  protoOf(ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO ActivityExtensionEntity (aeeActivityUid, aeeKeyHash, aeeKey, aeeJson, aeeLastMod, aeeIsDeleted) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1).ji6 = function (stmt, entity) {
    stmt.i5h(1, entity.zi5_1);
    stmt.i5h(2, entity.ai6_1);
    stmt.l5h(3, entity.bi6_1);
    stmt.l5h(4, entity.ci6_1);
    stmt.i5h(5, entity.di6_1);
    stmt.v5g(6, entity.ei6_1);
  };
  protoOf(ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1).c5f = function (stmt, entity) {
    return this.ji6(stmt, entity instanceof ActivityExtensionEntity ? entity : THROW_CCE());
  };
  function ActivityExtensionDao_JdbcImpl(_db) {
    ActivityExtensionDao.call(this);
    this.fi6_1 = _db;
    var tmp = this;
    tmp.gi6_1 = new ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1(this);
  }
  protoOf(ActivityExtensionDao_JdbcImpl).wi5 = function (list, $completion) {
    return this.gi6_1.m5g(list, $completion);
  };
  function ActivityExtensionDao_Repo$upsertListAsync$slambda(this$0, $list, resultContinuation) {
    this.si6_1 = this$0;
    this.ti6_1 = $list;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityExtensionDao_Repo$upsertListAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityExtensionDao_Repo$upsertListAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ActivityExtensionDao_Repo$upsertListAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.si6_1.wi6_1.wi5(this.ti6_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ActivityExtensionDao_Repo$upsertListAsync$slambda).y77 = function (completion) {
    return new ActivityExtensionDao_Repo$upsertListAsync$slambda(this.si6_1, this.ti6_1, completion);
  };
  function ActivityExtensionDao_Repo$upsertListAsync$slambda_0(this$0, $list, resultContinuation) {
    var i = new ActivityExtensionDao_Repo$upsertListAsync$slambda(this$0, $list, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ActivityExtensionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ActivityExtensionDao.call(this);
    this.ui6_1 = _db;
    this.vi6_1 = _repo;
    this.wi6_1 = _dao;
    this.xi6_1 = _httpClient;
    this.yi6_1 = _clientId;
    this.zi6_1 = _endpoint;
  }
  protoOf(ActivityExtensionDao_Repo).wi5 = function (list, $completion) {
    return withRepoChangeMonitorAsync(this.vi6_1, 'ActivityExtensionEntity', ActivityExtensionDao_Repo$upsertListAsync$slambda_0(this, list, null), $completion);
  };
  function ActivityInteractionDao() {
  }
  function ActivityInteractionDao_DoorWrapper(_db, _dao) {
    ActivityInteractionDao.call(this);
    this.ci7_1 = _db;
    this.di7_1 = _dao;
  }
  protoOf(ActivityInteractionDao_DoorWrapper).ai7 = function (entities, $completion) {
    // Inline function 'kotlin.collections.mutableListOf' call
    var _generatedPks = ArrayList_init_$Create$();
    // Inline function 'kotlin.collections.forEach' call
    // Inline function 'kotlin.collections.iterator' call
    var tmp0_iterator = entities.w();
    while (tmp0_iterator.f()) {
      var element = tmp0_iterator.e();
      // Inline function 'com.ustadmobile.core.db.dao.xapi.ActivityInteractionDao_DoorWrapper.insertOrIgnoreAsync.<anonymous>' call
      element.ii7_1 = systemTimeInMillis();
    }
    return this.di7_1.ai7(entities, $completion);
  };
  protoOf(ActivityInteractionDao_DoorWrapper).bi7 = function (activityUids, $completion) {
    return this.di7_1.bi7(activityUids, $completion);
  };
  function ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda$lambda(_result) {
    return mapRows(_result, ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda$lambda$lambda(_result));
  }
  function ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.m5e(1);
    };
  }
  function ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ki7_1);
  }
  protoOf(ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1).h5g = function (returnsId) {
    return 'INSERT  OR IGNORE INTO ActivityInteractionEntity (aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1).oi7 = function (stmt, entity) {
    stmt.i5h(1, entity.ei7_1);
    stmt.i5h(2, entity.fi7_1);
    stmt.h5h(3, entity.gi7_1);
    stmt.l5h(4, entity.hi7_1);
    stmt.i5h(5, entity.ii7_1);
    stmt.v5g(6, entity.ji7_1);
  };
  protoOf(ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1).c5f = function (stmt, entity) {
    return this.oi7(stmt, entity instanceof ActivityInteractionEntity ? entity : THROW_CCE());
  };
  function ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda($activityUids, resultContinuation) {
    this.xi7_1 = $activityUids;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda).s80 = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda).he = function (p1, $completion) {
    return this.s80((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            var tmp_0 = this.yi7_1.e5g();
            var this_0 = this.xi7_1;
            this.yi7_1.m5h(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.yi7_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda).z5e = function (_stmt, completion) {
    var i = new ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda(this.xi7_1, completion);
    i.yi7_1 = _stmt;
    return i;
  };
  function ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda_0($activityUids, resultContinuation) {
    var i = new ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda($activityUids, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.s80(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ActivityInteractionDao_JdbcImpl(_db) {
    ActivityInteractionDao.call(this);
    this.ki7_1 = _db;
    var tmp = this;
    tmp.li7_1 = new ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1(this);
  }
  protoOf(ActivityInteractionDao_JdbcImpl).ai7 = function (entities, $completion) {
    return this.li7_1.m5g(entities, $completion);
  };
  protoOf(ActivityInteractionDao_JdbcImpl).bi7 = function (activityUids, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT DISTINCT ActivityInteractionEntity.aieActivityUid\n          FROM ActivityInteractionEntity\n         WHERE ActivityInteractionEntity.aieActivityUid IN (?)\n    ', true, VOID, VOID, VOID, true);
    return prepareAndUseStatementAsync(this.ki7_1, tmp, ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda_0(activityUids, null), $completion);
  };
  function ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation) {
    this.hi8_1 = this$0;
    this.ii8_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.hi8_1.li8_1.ai7(this.ii8_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda).y77 = function (completion) {
    return new ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda(this.hi8_1, this.ii8_1, completion);
  };
  function ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda_0(this$0, $entities, resultContinuation) {
    var i = new ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findActivityUidsWithInteractionEntitiesAsyncCOROUTINE$432(_this__u8e3s4, activityUids, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.xi8_1 = _this__u8e3s4;
    this.yi8_1 = activityUids;
  }
  protoOf($findActivityUidsWithInteractionEntitiesAsyncCOROUTINE$432).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.xi8_1.li8_1.bi7(this.yi8_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ActivityInteractionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ActivityInteractionDao.call(this);
    this.ji8_1 = _db;
    this.ki8_1 = _repo;
    this.li8_1 = _dao;
    this.mi8_1 = _httpClient;
    this.ni8_1 = _clientId;
    this.oi8_1 = _endpoint;
  }
  protoOf(ActivityInteractionDao_Repo).ai7 = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.ki8_1, 'ActivityInteractionEntity', ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(ActivityInteractionDao_Repo).bi7 = function (activityUids, $completion) {
    var tmp = new $findActivityUidsWithInteractionEntitiesAsyncCOROUTINE$432(this, activityUids, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function ActivityLangMapEntryDao() {
  }
  function ActivityLangMapEntryDao_DoorWrapper(_db, _dao) {
    ActivityLangMapEntryDao.call(this);
    this.ci9_1 = _db;
    this.di9_1 = _dao;
  }
  protoOf(ActivityLangMapEntryDao_DoorWrapper).zi8 = function (entities, $completion) {
    // Inline function 'kotlin.collections.mutableListOf' call
    var _generatedPks = ArrayList_init_$Create$();
    // Inline function 'kotlin.collections.forEach' call
    // Inline function 'kotlin.collections.iterator' call
    var tmp0_iterator = entities.w();
    while (tmp0_iterator.f()) {
      var element = tmp0_iterator.e();
      // Inline function 'com.ustadmobile.core.db.dao.xapi.ActivityLangMapEntryDao_DoorWrapper.upsertList.<anonymous>' call
      element.ji9_1 = systemTimeInMillis();
    }
    return this.di9_1.zi8(entities, $completion);
  };
  protoOf(ActivityLangMapEntryDao_DoorWrapper).ai9 = function (almeActivityUid, almeHash, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion) {
    return this.di9_1.ai9(almeActivityUid, almeHash, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion);
  };
  protoOf(ActivityLangMapEntryDao_DoorWrapper).bi9 = function (almeActivityUid, almeHash, almeValue, almeLastMod, $completion) {
    return this.di9_1.bi9(almeActivityUid, almeHash, almeValue, almeLastMod, $completion);
  };
  function ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ki9_1);
  }
  protoOf(ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO ActivityLangMapEntry (almeActivityUid, almeHash, almeLangCode, almeValue, almeAieHash, almeLastMod) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1).oi9 = function (stmt, entity) {
    stmt.i5h(1, entity.ei9_1);
    stmt.i5h(2, entity.fi9_1);
    stmt.l5h(3, entity.gi9_1);
    stmt.l5h(4, entity.hi9_1);
    stmt.i5h(5, entity.ii9_1);
    stmt.i5h(6, entity.ji9_1);
  };
  protoOf(ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1).c5f = function (stmt, entity) {
    return this.oi9(stmt, entity instanceof ActivityLangMapEntry ? entity : THROW_CCE());
  };
  function ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda($almeActivityUid, $almeHash, $almeLangCode, $almeValue, $almeAieHash, $almeLastMod, resultContinuation) {
    this.xi9_1 = $almeActivityUid;
    this.yi9_1 = $almeHash;
    this.zi9_1 = $almeLangCode;
    this.aia_1 = $almeValue;
    this.bia_1 = $almeAieHash;
    this.cia_1 = $almeLastMod;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.dia_1.i5h(1, this.xi9_1);
            this.dia_1.i5h(2, this.yi9_1);
            this.dia_1.l5h(3, this.zi9_1);
            this.dia_1.l5h(4, this.aia_1);
            this.dia_1.i5h(5, this.bia_1);
            this.dia_1.i5h(6, this.cia_1);
            this.dia_1.i5h(7, this.xi9_1);
            this.dia_1.i5h(8, this.bia_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.dia_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda).z5e = function (_stmt, completion) {
    var i = new ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda(this.xi9_1, this.yi9_1, this.zi9_1, this.aia_1, this.bia_1, this.cia_1, completion);
    i.dia_1 = _stmt;
    return i;
  };
  function ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda_0($almeActivityUid, $almeHash, $almeLangCode, $almeValue, $almeAieHash, $almeLastMod, resultContinuation) {
    var i = new ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda($almeActivityUid, $almeHash, $almeLangCode, $almeValue, $almeAieHash, $almeLastMod, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda($almeValue, $almeLastMod, $almeActivityUid, $almeHash, resultContinuation) {
    this.mia_1 = $almeValue;
    this.nia_1 = $almeLastMod;
    this.oia_1 = $almeActivityUid;
    this.pia_1 = $almeHash;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.qia_1.l5h(1, this.mia_1);
            this.qia_1.i5h(2, this.nia_1);
            this.qia_1.i5h(3, this.oia_1);
            this.qia_1.i5h(4, this.pia_1);
            this.qia_1.l5h(5, this.mia_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.qia_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda).z5e = function (_stmt, completion) {
    var i = new ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda(this.mia_1, this.nia_1, this.oia_1, this.pia_1, completion);
    i.qia_1 = _stmt;
    return i;
  };
  function ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda_0($almeValue, $almeLastMod, $almeActivityUid, $almeHash, resultContinuation) {
    var i = new ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda($almeValue, $almeLastMod, $almeActivityUid, $almeHash, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $upsertIfInteractionEntityExistsCOROUTINE$434(_this__u8e3s4, almeActivityUid, almeHash, almeLangCode, almeValue, almeAieHash, almeLastMod, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zia_1 = _this__u8e3s4;
    this.aib_1 = almeActivityUid;
    this.bib_1 = almeHash;
    this.cib_1 = almeLangCode;
    this.dib_1 = almeValue;
    this.eib_1 = almeAieHash;
    this.fib_1 = almeLastMod;
  }
  protoOf($upsertIfInteractionEntityExistsCOROUTINE$434).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        INSERT OR REPLACE \n        INTO ActivityLangMapEntry(almeActivityUid, almeHash, almeLangCode, almeValue, almeAieHash, almeLastMod)\n        SELECT CAST(? AS BIGINT) AS almeActivityUid,\n               CAST(? AS BIGINT) AS almeHash,\n               ? AS almeLangCode,\n               ? AS almeValue,\n               CAST(? AS BIGINT) AS almeAieHash,\n               CAST(? AS BIGINT) AS almeLastMod\n         WHERE EXISTS(SELECT 1\n                        FROM ActivityInteractionEntity\n                       WHERE ActivityInteractionEntity.aieActivityUid = CAST(? AS BIGINT)\n                         AND ActivityInteractionEntity.aieHash = CAST(? AS BIGINT))\n          \n    ', VOID, VOID, VOID, '\n        INSERT \n        INTO ActivityLangMapEntry(almeActivityUid, almeHash, almeLangCode, almeValue, almeAieHash, almeLastMod)\n        SELECT ? AS almeActivityUid,\n               ? AS almeHash,\n               ? AS almeLangCode,\n               ? AS almeValue,\n               ? AS almeAieHash,\n               ? AS almeLastMod\n         WHERE EXISTS(SELECT 1\n                        FROM ActivityInteractionEntity\n                       WHERE ActivityInteractionEntity.aieActivityUid = ?\n                         AND ActivityInteractionEntity.aieHash = ?)\n    \n        ON CONFLICT(almeActivityUid, almeHash) DO UPDATE\n        SET almeValue = EXCLUDED.almeValue,\n            almeLastMod = EXCLUDED.almeLastMod\n    ', false);
            suspendResult = prepareAndUseStatementAsync(this.zia_1.ki9_1, tmp_0, ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda_0(this.aib_1, this.bib_1, this.cib_1, this.dib_1, this.eib_1, this.fib_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $updateIfChangedCOROUTINE$435(_this__u8e3s4, almeActivityUid, almeHash, almeValue, almeLastMod, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.oib_1 = _this__u8e3s4;
    this.pib_1 = almeActivityUid;
    this.qib_1 = almeHash;
    this.rib_1 = almeValue;
    this.sib_1 = almeLastMod;
  }
  protoOf($updateIfChangedCOROUTINE$435).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE ActivityLangMapEntry\n           SET almeValue = ?,\n               almeLastMod = CAST(? AS BIGINT)\n         WHERE almeActivityUid = CAST(? AS BIGINT)\n           AND almeHash = CAST(? AS BIGINT)\n           AND almeValue != ?       \n    ', VOID, VOID, VOID, '\n        UPDATE ActivityLangMapEntry\n           SET almeValue = ?,\n               almeLastMod = ?\n         WHERE almeActivityUid = ?\n           AND almeHash = ?\n           AND almeValue != ?       \n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.oib_1.ki9_1, tmp_0, ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda_0(this.rib_1, this.sib_1, this.pib_1, this.qib_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ActivityLangMapEntryDao_JdbcImpl(_db) {
    ActivityLangMapEntryDao.call(this);
    this.ki9_1 = _db;
    var tmp = this;
    tmp.li9_1 = new ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1(this);
  }
  protoOf(ActivityLangMapEntryDao_JdbcImpl).zi8 = function (entities, $completion) {
    return this.li9_1.m5g(entities, $completion);
  };
  protoOf(ActivityLangMapEntryDao_JdbcImpl).ai9 = function (almeActivityUid, almeHash, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion) {
    var tmp = new $upsertIfInteractionEntityExistsCOROUTINE$434(this, almeActivityUid, almeHash, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityLangMapEntryDao_JdbcImpl).bi9 = function (almeActivityUid, almeHash, almeValue, almeLastMod, $completion) {
    var tmp = new $updateIfChangedCOROUTINE$435(this, almeActivityUid, almeHash, almeValue, almeLastMod, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function ActivityLangMapEntryDao_Repo$upsertList$slambda(this$0, $entities, resultContinuation) {
    this.bic_1 = this$0;
    this.cic_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityLangMapEntryDao_Repo$upsertList$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityLangMapEntryDao_Repo$upsertList$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ActivityLangMapEntryDao_Repo$upsertList$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.bic_1.fic_1.zi8(this.cic_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ActivityLangMapEntryDao_Repo$upsertList$slambda).y77 = function (completion) {
    return new ActivityLangMapEntryDao_Repo$upsertList$slambda(this.bic_1, this.cic_1, completion);
  };
  function ActivityLangMapEntryDao_Repo$upsertList$slambda_0(this$0, $entities, resultContinuation) {
    var i = new ActivityLangMapEntryDao_Repo$upsertList$slambda(this$0, $entities, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ActivityLangMapEntryDao_Repo$updateIfChanged$slambda(this$0, $almeActivityUid, $almeHash, $almeValue, $almeLastMod, resultContinuation) {
    this.ric_1 = this$0;
    this.sic_1 = $almeActivityUid;
    this.tic_1 = $almeHash;
    this.uic_1 = $almeValue;
    this.vic_1 = $almeLastMod;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityLangMapEntryDao_Repo$updateIfChanged$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityLangMapEntryDao_Repo$updateIfChanged$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ActivityLangMapEntryDao_Repo$updateIfChanged$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.ric_1.fic_1.bi9(this.sic_1, this.tic_1, this.uic_1, this.vic_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ActivityLangMapEntryDao_Repo$updateIfChanged$slambda).y77 = function (completion) {
    return new ActivityLangMapEntryDao_Repo$updateIfChanged$slambda(this.ric_1, this.sic_1, this.tic_1, this.uic_1, this.vic_1, completion);
  };
  function ActivityLangMapEntryDao_Repo$updateIfChanged$slambda_0(this$0, $almeActivityUid, $almeHash, $almeValue, $almeLastMod, resultContinuation) {
    var i = new ActivityLangMapEntryDao_Repo$updateIfChanged$slambda(this$0, $almeActivityUid, $almeHash, $almeValue, $almeLastMod, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ActivityLangMapEntryDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ActivityLangMapEntryDao.call(this);
    this.dic_1 = _db;
    this.eic_1 = _repo;
    this.fic_1 = _dao;
    this.gic_1 = _httpClient;
    this.hic_1 = _clientId;
    this.iic_1 = _endpoint;
  }
  protoOf(ActivityLangMapEntryDao_Repo).zi8 = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.eic_1, 'ActivityLangMapEntry', ActivityLangMapEntryDao_Repo$upsertList$slambda_0(this, entities, null), $completion);
  };
  protoOf(ActivityLangMapEntryDao_Repo).ai9 = function (almeActivityUid, almeHash, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion) {
    return this.fic_1.ai9(almeActivityUid, almeHash, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion);
  };
  protoOf(ActivityLangMapEntryDao_Repo).bi9 = function (almeActivityUid, almeHash, almeValue, almeLastMod, $completion) {
    return withRepoChangeMonitorAsync(this.eic_1, 'ActivityLangMapEntry', ActivityLangMapEntryDao_Repo$updateIfChanged$slambda_0(this, almeActivityUid, almeHash, almeValue, almeLastMod, null), $completion);
  };
  function ActorDao() {
  }
  function $insertOrIgnoreListAsyncCOROUTINE$437(_this__u8e3s4, entities, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.iid_1 = _this__u8e3s4;
    this.jid_1 = entities;
  }
  protoOf($insertOrIgnoreListAsyncCOROUTINE$437).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.kid_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.iid_1.rid_1));
            var tmp_0 = this;
            tmp_0.lid_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.mid_1 = this.jid_1.w();
            var tmp_2 = this;
            tmp_2.nid_1 = this.mid_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.nid_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.oid_1 = this.nid_1.e();
            var tmp_3 = this;
            tmp_3.pid_1 = this.oid_1;
            if (this.pid_1.tid_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.kid_1.b62(68, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.qid_1 = suspendResult;
            this.pid_1.tid_1 = this.qid_1;
            var this_0 = this.lid_1;
            var element = this.qid_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.pid_1.cie_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.iid_1.sid_1.wic(this.jid_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            return Unit_instance;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function $upsertListAsyncCOROUTINE$438(_this__u8e3s4, entities, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.mie_1 = _this__u8e3s4;
    this.nie_1 = entities;
  }
  protoOf($upsertListAsyncCOROUTINE$438).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.oie_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.mie_1.rid_1));
            var tmp_0 = this;
            tmp_0.pie_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.qie_1 = this.nie_1.w();
            var tmp_2 = this;
            tmp_2.rie_1 = this.qie_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.rie_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.sie_1 = this.rie_1.e();
            var tmp_3 = this;
            tmp_3.tie_1 = this.sie_1;
            if (this.tie_1.tid_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.oie_1.b62(68, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.uie_1 = suspendResult;
            this.tie_1.tid_1 = this.uie_1;
            var this_0 = this.pie_1;
            var element = this.uie_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.tie_1.cie_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.mie_1.sid_1.xic(this.nie_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 5:
            return Unit_instance;
          case 6:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 6) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ActorDao_DoorWrapper(_db, _dao) {
    ActorDao.call(this);
    this.rid_1 = _db;
    this.sid_1 = _dao;
  }
  protoOf(ActorDao_DoorWrapper).wic = function (entities, $completion) {
    var tmp = new $insertOrIgnoreListAsyncCOROUTINE$437(this, entities, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActorDao_DoorWrapper).xic = function (entities, $completion) {
    var tmp = new $upsertListAsyncCOROUTINE$438(this, entities, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActorDao_DoorWrapper).yic = function (uid, name, updateTime, $completion) {
    return this.sid_1.yic(uid, name, updateTime, $completion);
  };
  protoOf(ActorDao_DoorWrapper).zic = function (uidList, $completion) {
    return this.sid_1.zic(uidList, $completion);
  };
  function ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda$lambda(_result) {
    return mapRows(_result, ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda$lambda$lambda(_result));
  }
  function ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_actorUid = $_result.l5m('actorUid');
      var _tmp_actorEtag = $_result.l5m('actorEtag');
      var _tmp_actorLct = $_result.l5m('actorLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new ActorUidEtagAndLastMod();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.xapi.ActorDao_JdbcImpl.findUidAndEtagByListAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.vie_1 = _tmp_actorUid;
      this_0.wie_1 = _tmp_actorEtag;
      this_0.xie_1 = _tmp_actorLct;
      return this_0;
    };
  }
  function ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.yie_1);
  }
  protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1).h5g = function (returnsId) {
    return 'INSERT  OR IGNORE INTO ActorEntity (actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1).dif = function (stmt, entity) {
    if (entity.tid_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.tid_1);
    }
    stmt.i5h(2, entity.uid_1);
    stmt.l5h(3, entity.vid_1);
    stmt.l5h(4, entity.wid_1);
    stmt.l5h(5, entity.xid_1);
    stmt.l5h(6, entity.yid_1);
    stmt.l5h(7, entity.zid_1);
    stmt.l5h(8, entity.aie_1);
    stmt.i5h(9, entity.bie_1);
    stmt.i5h(10, entity.cie_1);
    stmt.h5h(11, entity.die_1);
  };
  protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1).c5f = function (stmt, entity) {
    return this.dif(stmt, entity instanceof ActorEntity ? entity : THROW_CCE());
  };
  function ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.yie_1);
  }
  protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO ActorEntity (actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1).dif = function (stmt, entity) {
    if (entity.tid_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.tid_1);
    }
    stmt.i5h(2, entity.uid_1);
    stmt.l5h(3, entity.vid_1);
    stmt.l5h(4, entity.wid_1);
    stmt.l5h(5, entity.xid_1);
    stmt.l5h(6, entity.yid_1);
    stmt.l5h(7, entity.zid_1);
    stmt.l5h(8, entity.aie_1);
    stmt.i5h(9, entity.bie_1);
    stmt.i5h(10, entity.cie_1);
    stmt.h5h(11, entity.die_1);
  };
  protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1).c5f = function (stmt, entity) {
    return this.dif(stmt, entity instanceof ActorEntity ? entity : THROW_CCE());
  };
  function ActorDao_JdbcImpl$updateIfNameChanged$slambda($name, $updateTime, $uid, resultContinuation) {
    this.oif_1 = $name;
    this.pif_1 = $updateTime;
    this.qif_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActorDao_JdbcImpl$updateIfNameChanged$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActorDao_JdbcImpl$updateIfNameChanged$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ActorDao_JdbcImpl$updateIfNameChanged$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.rif_1.l5h(1, this.oif_1);
            this.rif_1.i5h(2, this.pif_1);
            this.rif_1.i5h(3, this.qif_1);
            this.rif_1.l5h(4, this.oif_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.rif_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ActorDao_JdbcImpl$updateIfNameChanged$slambda).z5e = function (_stmt, completion) {
    var i = new ActorDao_JdbcImpl$updateIfNameChanged$slambda(this.oif_1, this.pif_1, this.qif_1, completion);
    i.rif_1 = _stmt;
    return i;
  };
  function ActorDao_JdbcImpl$updateIfNameChanged$slambda_0($name, $updateTime, $uid, resultContinuation) {
    var i = new ActorDao_JdbcImpl$updateIfNameChanged$slambda($name, $updateTime, $uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda($uidList, resultContinuation) {
    this.aig_1 = $uidList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda).cig = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda).he = function (p1, $completion) {
    return this.cig((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            var tmp_0 = this.big_1.e5g();
            var this_0 = this.aig_1;
            this.big_1.m5h(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.big_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda).z5e = function (_stmt, completion) {
    var i = new ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda(this.aig_1, completion);
    i.big_1 = _stmt;
    return i;
  };
  function ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda_0($uidList, resultContinuation) {
    var i = new ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda($uidList, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.cig(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $updateIfNameChangedCOROUTINE$439(_this__u8e3s4, uid, name, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.lig_1 = _this__u8e3s4;
    this.mig_1 = uid;
    this.nig_1 = name;
    this.oig_1 = updateTime;
  }
  protoOf($updateIfNameChangedCOROUTINE$439).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE ActorEntity\n           SET actorName = ?,\n               actorLct = CAST(? AS BIGINT)\n         WHERE actorUid = CAST(? AS BIGINT)\n           AND ActorEntity.actorName != ?\n    ', VOID, VOID, VOID, '\n        UPDATE ActorEntity\n           SET actorName = ?,\n               actorLct = ?\n         WHERE actorUid = ?\n           AND ActorEntity.actorName != ?\n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.lig_1.yie_1, tmp_0, ActorDao_JdbcImpl$updateIfNameChanged$slambda_0(this.nig_1, this.oig_1, this.mig_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ActorDao_JdbcImpl(_db) {
    ActorDao.call(this);
    this.yie_1 = _db;
    var tmp = this;
    tmp.zie_1 = new ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1(this);
    var tmp_0 = this;
    tmp_0.aif_1 = new ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1(this);
  }
  protoOf(ActorDao_JdbcImpl).wic = function (entities, $completion) {
    return this.zie_1.m5g(entities, $completion);
  };
  protoOf(ActorDao_JdbcImpl).xic = function (entities, $completion) {
    return this.aif_1.m5g(entities, $completion);
  };
  protoOf(ActorDao_JdbcImpl).yic = function (uid, name, updateTime, $completion) {
    var tmp = new $updateIfNameChangedCOROUTINE$439(this, uid, name, updateTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActorDao_JdbcImpl).zic = function (uidList, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT ActorEntity.actorUid, ActorEntity.actorEtag, ActorEntity.actorLct\n          FROM ActorEntity\n         WHERE ActorEntity.actorUid IN (?)\n    ', true, VOID, VOID, VOID, true);
    return prepareAndUseStatementAsync(this.yie_1, tmp, ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda_0(uidList, null), $completion);
  };
  function ActorDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation) {
    this.xig_1 = this$0;
    this.yig_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActorDao_Repo$insertOrIgnoreListAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActorDao_Repo$insertOrIgnoreListAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ActorDao_Repo$insertOrIgnoreListAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.xig_1.bih_1.wic(this.yig_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ActorDao_Repo$insertOrIgnoreListAsync$slambda).y77 = function (completion) {
    return new ActorDao_Repo$insertOrIgnoreListAsync$slambda(this.xig_1, this.yig_1, completion);
  };
  function ActorDao_Repo$insertOrIgnoreListAsync$slambda_0(this$0, $entities, resultContinuation) {
    var i = new ActorDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ActorDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) {
    this.nih_1 = this$0;
    this.oih_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActorDao_Repo$upsertListAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActorDao_Repo$upsertListAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ActorDao_Repo$upsertListAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.nih_1.bih_1.xic(this.oih_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ActorDao_Repo$upsertListAsync$slambda).y77 = function (completion) {
    return new ActorDao_Repo$upsertListAsync$slambda(this.nih_1, this.oih_1, completion);
  };
  function ActorDao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) {
    var i = new ActorDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ActorDao_Repo$updateIfNameChanged$slambda(this$0, $uid, $name, $updateTime, resultContinuation) {
    this.xih_1 = this$0;
    this.yih_1 = $uid;
    this.zih_1 = $name;
    this.aii_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActorDao_Repo$updateIfNameChanged$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActorDao_Repo$updateIfNameChanged$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(ActorDao_Repo$updateIfNameChanged$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.xih_1.bih_1.yic(this.yih_1, this.zih_1, this.aii_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(ActorDao_Repo$updateIfNameChanged$slambda).y77 = function (completion) {
    return new ActorDao_Repo$updateIfNameChanged$slambda(this.xih_1, this.yih_1, this.zih_1, this.aii_1, completion);
  };
  function ActorDao_Repo$updateIfNameChanged$slambda_0(this$0, $uid, $name, $updateTime, resultContinuation) {
    var i = new ActorDao_Repo$updateIfNameChanged$slambda(this$0, $uid, $name, $updateTime, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findUidAndEtagByListAsyncCOROUTINE$442(_this__u8e3s4, uidList, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.jii_1 = _this__u8e3s4;
    this.kii_1 = uidList;
  }
  protoOf($findUidAndEtagByListAsyncCOROUTINE$442).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.jii_1.bih_1.zic(this.kii_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function ActorDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ActorDao.call(this);
    this.zig_1 = _db;
    this.aih_1 = _repo;
    this.bih_1 = _dao;
    this.cih_1 = _httpClient;
    this.dih_1 = _clientId;
    this.eih_1 = _endpoint;
  }
  protoOf(ActorDao_Repo).wic = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.aih_1, 'ActorEntity', ActorDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(ActorDao_Repo).xic = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.aih_1, 'ActorEntity', ActorDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(ActorDao_Repo).yic = function (uid, name, updateTime, $completion) {
    return withRepoChangeMonitorAsync(this.aih_1, 'ActorEntity', ActorDao_Repo$updateIfNameChanged$slambda_0(this, uid, name, updateTime, null), $completion);
  };
  protoOf(ActorDao_Repo).zic = function (uidList, $completion) {
    var tmp = new $findUidAndEtagByListAsyncCOROUTINE$442(this, uidList, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function GroupMemberActorJoinDao() {
  }
  function GroupMemberActorJoinDao_DoorWrapper(_db, _dao) {
    GroupMemberActorJoinDao.call(this);
    this.oii_1 = _db;
    this.pii_1 = _dao;
  }
  protoOf(GroupMemberActorJoinDao_DoorWrapper).lii = function (entities, $completion) {
    // Inline function 'kotlin.collections.mutableListOf' call
    var _generatedPks = ArrayList_init_$Create$();
    // Inline function 'kotlin.collections.forEach' call
    // Inline function 'kotlin.collections.iterator' call
    var tmp0_iterator = entities.w();
    while (tmp0_iterator.f()) {
      var element = tmp0_iterator.e();
      // Inline function 'com.ustadmobile.core.db.dao.xapi.GroupMemberActorJoinDao_DoorWrapper.insertOrIgnoreListAsync.<anonymous>' call
      element.sii_1 = systemTimeInMillis();
    }
    return this.pii_1.lii(entities, $completion);
  };
  protoOf(GroupMemberActorJoinDao_DoorWrapper).mii = function (entities, $completion) {
    // Inline function 'kotlin.collections.mutableListOf' call
    var _generatedPks = ArrayList_init_$Create$();
    // Inline function 'kotlin.collections.forEach' call
    // Inline function 'kotlin.collections.iterator' call
    var tmp0_iterator = entities.w();
    while (tmp0_iterator.f()) {
      var element = tmp0_iterator.e();
      // Inline function 'com.ustadmobile.core.db.dao.xapi.GroupMemberActorJoinDao_DoorWrapper.upsertListAsync.<anonymous>' call
      element.sii_1 = systemTimeInMillis();
    }
    return this.pii_1.mii(entities, $completion);
  };
  protoOf(GroupMemberActorJoinDao_DoorWrapper).nii = function (gmajGroupActorUid, gmajMemberActorUid, lastModTime, $completion) {
    return this.pii_1.nii(gmajGroupActorUid, gmajMemberActorUid, lastModTime, $completion);
  };
  function GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.tii_1);
  }
  protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1).h5g = function (returnsId) {
    return 'INSERT  OR IGNORE INTO GroupMemberActorJoin (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) VALUES(?, ?, ?)';
  };
  protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1).yii = function (stmt, entity) {
    stmt.i5h(1, entity.qii_1);
    stmt.i5h(2, entity.rii_1);
    stmt.i5h(3, entity.sii_1);
  };
  protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1).c5f = function (stmt, entity) {
    return this.yii(stmt, entity instanceof GroupMemberActorJoin ? entity : THROW_CCE());
  };
  function GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.tii_1);
  }
  protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO GroupMemberActorJoin (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) VALUES(?, ?, ?)';
  };
  protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1).yii = function (stmt, entity) {
    stmt.i5h(1, entity.qii_1);
    stmt.i5h(2, entity.rii_1);
    stmt.i5h(3, entity.sii_1);
  };
  protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1).c5f = function (stmt, entity) {
    return this.yii(stmt, entity instanceof GroupMemberActorJoin ? entity : THROW_CCE());
  };
  function GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda($lastModTime, $gmajGroupActorUid, $gmajMemberActorUid, resultContinuation) {
    this.jij_1 = $lastModTime;
    this.kij_1 = $gmajGroupActorUid;
    this.lij_1 = $gmajMemberActorUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.mij_1.i5h(1, this.jij_1);
            this.mij_1.i5h(2, this.kij_1);
            this.mij_1.i5h(3, this.lij_1);
            this.mij_1.i5h(4, this.jij_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.mij_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda).z5e = function (_stmt, completion) {
    var i = new GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda(this.jij_1, this.kij_1, this.lij_1, completion);
    i.mij_1 = _stmt;
    return i;
  };
  function GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda_0($lastModTime, $gmajGroupActorUid, $gmajMemberActorUid, resultContinuation) {
    var i = new GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda($lastModTime, $gmajGroupActorUid, $gmajMemberActorUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $updateLastModifiedTimeIfNeededAsyncCOROUTINE$444(_this__u8e3s4, gmajGroupActorUid, gmajMemberActorUid, lastModTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vij_1 = _this__u8e3s4;
    this.wij_1 = gmajGroupActorUid;
    this.xij_1 = gmajMemberActorUid;
    this.yij_1 = lastModTime;
  }
  protoOf($updateLastModifiedTimeIfNeededAsyncCOROUTINE$444).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE GroupMemberActorJoin\n           SET gmajLastMod = CAST(? AS BIGINT)\n         WHERE gmajGroupActorUid = CAST(? AS BIGINT)\n           AND gmajMemberActorUid = CAST(? AS BIGINT)\n           AND gmajLastMod != CAST(? AS BIGINT) \n    ', VOID, VOID, VOID, '\n        UPDATE GroupMemberActorJoin\n           SET gmajLastMod = ?\n         WHERE gmajGroupActorUid = ?\n           AND gmajMemberActorUid = ?\n           AND gmajLastMod != ? \n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.vij_1.tii_1, tmp_0, GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda_0(this.yij_1, this.wij_1, this.xij_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function GroupMemberActorJoinDao_JdbcImpl(_db) {
    GroupMemberActorJoinDao.call(this);
    this.tii_1 = _db;
    var tmp = this;
    tmp.uii_1 = new GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1(this);
    var tmp_0 = this;
    tmp_0.vii_1 = new GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1(this);
  }
  protoOf(GroupMemberActorJoinDao_JdbcImpl).lii = function (entities, $completion) {
    return this.uii_1.m5g(entities, $completion);
  };
  protoOf(GroupMemberActorJoinDao_JdbcImpl).mii = function (entities, $completion) {
    return this.vii_1.m5g(entities, $completion);
  };
  protoOf(GroupMemberActorJoinDao_JdbcImpl).nii = function (gmajGroupActorUid, gmajMemberActorUid, lastModTime, $completion) {
    var tmp = new $updateLastModifiedTimeIfNeededAsyncCOROUTINE$444(this, gmajGroupActorUid, gmajMemberActorUid, lastModTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation) {
    this.hik_1 = this$0;
    this.iik_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.hik_1.lik_1.lii(this.iik_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda).y77 = function (completion) {
    return new GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda(this.hik_1, this.iik_1, completion);
  };
  function GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda_0(this$0, $entities, resultContinuation) {
    var i = new GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function GroupMemberActorJoinDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) {
    this.xik_1 = this$0;
    this.yik_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(GroupMemberActorJoinDao_Repo$upsertListAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(GroupMemberActorJoinDao_Repo$upsertListAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(GroupMemberActorJoinDao_Repo$upsertListAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.xik_1.lik_1.mii(this.yik_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(GroupMemberActorJoinDao_Repo$upsertListAsync$slambda).y77 = function (completion) {
    return new GroupMemberActorJoinDao_Repo$upsertListAsync$slambda(this.xik_1, this.yik_1, completion);
  };
  function GroupMemberActorJoinDao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) {
    var i = new GroupMemberActorJoinDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda(this$0, $gmajGroupActorUid, $gmajMemberActorUid, $lastModTime, resultContinuation) {
    this.hil_1 = this$0;
    this.iil_1 = $gmajGroupActorUid;
    this.jil_1 = $gmajMemberActorUid;
    this.kil_1 = $lastModTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.hil_1.lik_1.nii(this.iil_1, this.jil_1, this.kil_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda).y77 = function (completion) {
    return new GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda(this.hil_1, this.iil_1, this.jil_1, this.kil_1, completion);
  };
  function GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda_0(this$0, $gmajGroupActorUid, $gmajMemberActorUid, $lastModTime, resultContinuation) {
    var i = new GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda(this$0, $gmajGroupActorUid, $gmajMemberActorUid, $lastModTime, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function GroupMemberActorJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    GroupMemberActorJoinDao.call(this);
    this.jik_1 = _db;
    this.kik_1 = _repo;
    this.lik_1 = _dao;
    this.mik_1 = _httpClient;
    this.nik_1 = _clientId;
    this.oik_1 = _endpoint;
  }
  protoOf(GroupMemberActorJoinDao_Repo).lii = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.kik_1, 'GroupMemberActorJoin', GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(GroupMemberActorJoinDao_Repo).mii = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.kik_1, 'GroupMemberActorJoin', GroupMemberActorJoinDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(GroupMemberActorJoinDao_Repo).nii = function (gmajGroupActorUid, gmajMemberActorUid, lastModTime, $completion) {
    return withRepoChangeMonitorAsync(this.kik_1, 'GroupMemberActorJoin', GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda_0(this, gmajGroupActorUid, gmajMemberActorUid, lastModTime, null), $completion);
  };
  function StateDeleteCommandDao() {
  }
  function StateDeleteCommandDao_DoorWrapper(_db, _dao) {
    StateDeleteCommandDao.call(this);
    this.lil_1 = _db;
    this.mil_1 = _dao;
  }
  function StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.nil_1);
  }
  protoOf(StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO StateDeleteCommand (sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1).ril = function (stmt, entity) {
    stmt.i5h(1, entity.sil_1);
    stmt.i5h(2, entity.til_1);
    stmt.i5h(3, entity.uil_1);
    stmt.l5h(4, entity.vil_1);
    stmt.i5h(5, entity.wil_1);
    setLongNullable(stmt, 6, entity.xil_1);
    setLongNullable(stmt, 7, entity.yil_1);
  };
  protoOf(StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1).c5f = function (stmt, entity) {
    return this.ril(stmt, entity instanceof StateDeleteCommand ? entity : THROW_CCE());
  };
  function StateDeleteCommandDao_JdbcImpl(_db) {
    StateDeleteCommandDao.call(this);
    this.nil_1 = _db;
    var tmp = this;
    tmp.oil_1 = new StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1(this);
  }
  function StateDeleteCommandDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    StateDeleteCommandDao.call(this);
    this.zil_1 = _db;
    this.aim_1 = _repo;
    this.bim_1 = _dao;
    this.cim_1 = _httpClient;
    this.dim_1 = _clientId;
    this.eim_1 = _endpoint;
  }
  function StateEntityDao() {
  }
  function StateEntityDao_DoorWrapper(_db, _dao) {
    StateEntityDao.call(this);
    this.fim_1 = _db;
    this.gim_1 = _dao;
  }
  function StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.him_1);
  }
  protoOf(StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO StateEntity (seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1).lim = function (stmt, entity) {
    stmt.i5h(1, entity.mim_1);
    stmt.i5h(2, entity.nim_1);
    stmt.i5h(3, entity.oim_1);
    stmt.l5h(4, entity.pim_1);
    stmt.i5h(5, entity.qim_1);
    stmt.i5h(6, entity.rim_1);
    stmt.l5h(7, entity.sim_1);
    stmt.h5h(8, entity.tim_1);
    stmt.l5h(9, entity.uim_1);
    stmt.v5g(10, entity.vim_1);
    setLongNullable(stmt, 11, entity.wim_1);
    setLongNullable(stmt, 12, entity.xim_1);
    stmt.v5g(13, entity.yim_1);
    stmt.l5h(14, entity.zim_1);
  };
  protoOf(StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1).c5f = function (stmt, entity) {
    return this.lim(stmt, entity instanceof StateEntity ? entity : THROW_CCE());
  };
  function StateEntityDao_JdbcImpl(_db) {
    StateEntityDao.call(this);
    this.him_1 = _db;
    var tmp = this;
    tmp.iim_1 = new StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1(this);
  }
  function StateEntityDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    StateEntityDao.call(this);
    this.ain_1 = _db;
    this.bin_1 = _repo;
    this.cin_1 = _dao;
    this.din_1 = _httpClient;
    this.ein_1 = _clientId;
    this.fin_1 = _endpoint;
  }
  function StatementContextActivityJoinDao() {
  }
  function StatementContextActivityJoinDao_DoorWrapper(_db, _dao) {
    StatementContextActivityJoinDao.call(this);
    this.hin_1 = _db;
    this.iin_1 = _dao;
  }
  protoOf(StatementContextActivityJoinDao_DoorWrapper).gin = function (entities, $completion) {
    return this.iin_1.gin(entities, $completion);
  };
  function StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.jin_1);
  }
  protoOf(StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1).h5g = function (returnsId) {
    return 'INSERT  OR IGNORE INTO StatementContextActivityJoin (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash, scajContextType, scajToActivityUid, scajToActivityId, scajEtag) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1).nin = function (stmt, entity) {
    stmt.i5h(1, entity.oin_1);
    stmt.i5h(2, entity.pin_1);
    stmt.i5h(3, entity.qin_1);
    stmt.h5h(4, entity.rin_1);
    stmt.i5h(5, entity.sin_1);
    stmt.l5h(6, entity.tin_1);
    stmt.i5h(7, entity.uin_1);
  };
  protoOf(StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1).c5f = function (stmt, entity) {
    return this.nin(stmt, entity instanceof StatementContextActivityJoin ? entity : THROW_CCE());
  };
  function StatementContextActivityJoinDao_JdbcImpl(_db) {
    StatementContextActivityJoinDao.call(this);
    this.jin_1 = _db;
    var tmp = this;
    tmp.kin_1 = new StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1(this);
  }
  protoOf(StatementContextActivityJoinDao_JdbcImpl).gin = function (entities, $completion) {
    return this.kin_1.m5g(entities, $completion);
  };
  function StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation) {
    this.dio_1 = this$0;
    this.eio_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.dio_1.hio_1.gin(this.eio_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda).y77 = function (completion) {
    return new StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda(this.dio_1, this.eio_1, completion);
  };
  function StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda_0(this$0, $entities, resultContinuation) {
    var i = new StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function StatementContextActivityJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    StatementContextActivityJoinDao.call(this);
    this.fio_1 = _db;
    this.gio_1 = _repo;
    this.hio_1 = _dao;
    this.iio_1 = _httpClient;
    this.jio_1 = _clientId;
    this.kio_1 = _endpoint;
  }
  protoOf(StatementContextActivityJoinDao_Repo).gin = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.gio_1, 'StatementContextActivityJoin', StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entities, null), $completion);
  };
  function StatementDao() {
  }
  function StatementDao_DoorWrapper(_db, _dao) {
    StatementDao.call(this);
    this.oio_1 = _db;
    this.pio_1 = _dao;
  }
  protoOf(StatementDao_DoorWrapper).lio = function (entityList, $completion) {
    // Inline function 'kotlin.collections.mutableListOf' call
    var _generatedPks = ArrayList_init_$Create$();
    // Inline function 'kotlin.collections.forEach' call
    // Inline function 'kotlin.collections.iterator' call
    var tmp0_iterator = entityList.w();
    while (tmp0_iterator.f()) {
      var element = tmp0_iterator.e();
      // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_DoorWrapper.insertOrIgnoreListAsync.<anonymous>' call
      element.qip_1 = systemTimeInMillis();
    }
    return this.pio_1.lio(entityList, $completion);
  };
  protoOf(StatementDao_DoorWrapper).mio = function (clazzUid, studentPersonUids, accountPersonUid, $completion) {
    return this.pio_1.mio(clazzUid, studentPersonUids, accountPersonUid, $completion);
  };
  protoOf(StatementDao_DoorWrapper).nio = function (clazzUid, studentPersonUids, accountPersonUid) {
    return this.pio_1.nio(clazzUid, studentPersonUids, accountPersonUid);
  };
  function StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda$lambda(_result) {
    return mapRows(_result, StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda$lambda$lambda(_result));
  }
  function StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_sPersonUid = $_result.l5m('sPersonUid');
      var _tmp_sCbUid = $_result.l5m('sCbUid');
      var _tmp_sProgress = getIntNullable($_result, 'sProgress');
      var _tmp_sIsCompleted = $_result.w65('sIsCompleted');
      var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess');
      var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled');
      // Inline function 'kotlin.apply' call
      var this_0 = new BlockStatus();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findStatusForStudentsInClazz.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.oaj_1 = _tmp_sPersonUid;
      this_0.paj_1 = _tmp_sCbUid;
      this_0.qaj_1 = _tmp_sProgress;
      this_0.raj_1 = _tmp_sIsCompleted;
      this_0.saj_1 = _tmp_sIsSuccess;
      this_0.taj_1 = _tmp_sScoreScaled;
      return this_0;
    };
  }
  function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda$lambda(_result) {
    return mapRows(_result, StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_sPersonUid = $_result.l5m('sPersonUid');
      var _tmp_sCbUid = $_result.l5m('sCbUid');
      var _tmp_sProgress = getIntNullable($_result, 'sProgress');
      var _tmp_sIsCompleted = $_result.w65('sIsCompleted');
      var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess');
      var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled');
      // Inline function 'kotlin.apply' call
      var this_0 = new BlockStatus();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findStatusForStudentsInClazzAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.oaj_1 = _tmp_sPersonUid;
      this_0.paj_1 = _tmp_sCbUid;
      this_0.qaj_1 = _tmp_sProgress;
      this_0.raj_1 = _tmp_sIsCompleted;
      this_0.saj_1 = _tmp_sIsSuccess;
      this_0.taj_1 = _tmp_sScoreScaled;
      return this_0;
    };
  }
  function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) {
    this.hiq_1 = $studentPersonUids;
    this.iiq_1 = $clazzUid;
    this.jiq_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda).liq = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.liq((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            var tmp_0 = this.kiq_1.e5g();
            var this_0 = this.hiq_1;
            this.kiq_1.m5h(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.kiq_1.i5h(2, this.iiq_1);
            var tmp_1 = this.kiq_1.e5g();
            var this_1 = this.hiq_1;
            this.kiq_1.m5h(3, createArrayOrProxyArrayOf(tmp_1, 'BIGINT', copyToArray(this_1)));
            this.kiq_1.i5h(4, this.jiq_1);
            this.kiq_1.i5h(5, this.jiq_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.kiq_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda).z5e = function (_stmt, completion) {
    var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda(this.hiq_1, this.iiq_1, this.jiq_1, completion);
    i.kiq_1 = _stmt;
    return i;
  };
  function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda_0($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) {
    var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.liq(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.miq_1);
  }
  protoOf(StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1).h5g = function (returnsId) {
    return 'INSERT  OR IGNORE INTO StatementEntity (statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1).qiq = function (stmt, entity) {
    stmt.i5h(1, entity.qio_1);
    stmt.i5h(2, entity.rio_1);
    stmt.i5h(3, entity.sio_1);
    stmt.i5h(4, entity.tio_1);
    stmt.h5h(5, entity.uio_1);
    stmt.i5h(6, entity.vio_1);
    stmt.i5h(7, entity.wio_1);
    stmt.i5h(8, entity.xio_1);
    stmt.i5h(9, entity.yio_1);
    stmt.i5h(10, entity.zio_1);
    setBooleanNullable(stmt, 11, entity.aip_1);
    setBooleanNullable(stmt, 12, entity.bip_1);
    setFloatNullable(stmt, 13, entity.cip_1);
    setFloatNullable(stmt, 14, entity.dip_1);
    setFloatNullable(stmt, 15, entity.eip_1);
    setFloatNullable(stmt, 16, entity.fip_1);
    setLongNullable(stmt, 17, entity.gip_1);
    stmt.l5h(18, entity.hip_1);
    stmt.i5h(19, entity.iip_1);
    stmt.i5h(20, entity.jip_1);
    stmt.i5h(21, entity.kip_1);
    stmt.i5h(22, entity.lip_1);
    stmt.l5h(23, entity.mip_1);
    stmt.i5h(24, entity.nip_1);
    stmt.i5h(25, entity.oip_1);
    stmt.i5h(26, entity.pip_1);
    stmt.i5h(27, entity.qip_1);
    setIntNullable(stmt, 28, entity.rip_1);
    stmt.v5g(29, entity.sip_1);
    stmt.i5h(30, entity.tip_1);
    stmt.i5h(31, entity.uip_1);
    stmt.i5h(32, entity.vip_1);
    stmt.i5h(33, entity.wip_1);
    stmt.i5h(34, entity.xip_1);
    stmt.v5g(35, entity.yip_1);
  };
  protoOf(StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1).c5f = function (stmt, entity) {
    return this.qiq(stmt, entity instanceof StatementEntity ? entity : THROW_CCE());
  };
  function StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) {
    this.ziq_1 = $studentPersonUids;
    this.air_1 = $clazzUid;
    this.bir_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda).liq = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda).he = function (p1, $completion) {
    return this.liq((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            var tmp_0 = this.cir_1.e5g();
            var this_0 = this.ziq_1;
            this.cir_1.m5h(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.cir_1.i5h(2, this.air_1);
            var tmp_1 = this.cir_1.e5g();
            var this_1 = this.ziq_1;
            this.cir_1.m5h(3, createArrayOrProxyArrayOf(tmp_1, 'BIGINT', copyToArray(this_1)));
            this.cir_1.i5h(4, this.bir_1);
            this.cir_1.i5h(5, this.bir_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.cir_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda$lambda);
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda).z5e = function (_stmt, completion) {
    var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda(this.ziq_1, this.air_1, this.bir_1, completion);
    i.cir_1 = _stmt;
    return i;
  };
  function StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda_0($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) {
    var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.liq(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda(this$0, $studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) {
    this.lir_1 = this$0;
    this.mir_1 = $studentPersonUids;
    this.nir_1 = $clazzUid;
    this.oir_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda).pir = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda).z77 = function ($completion) {
    return this.pir($completion);
  };
  protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        WITH PersonUids(personUid) AS (\n             SELECT Person.personUid\n               FROM Person\n              WHERE Person.personUid IN (?)\n        ),\n        \n        \n        -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n        AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n             SELECT ActorEntity.actorUid AS actorUid, \n                    ActorEntity.actorPersonUid AS actorPersonUid\n               FROM ActorEntity\n              WHERE ActorEntity.actorPersonUid IN\n                    (SELECT PersonUids.personUid\n                       FROM PersonUids)           \n        ),\n        \n        -- Add in group actor uids\n        ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n             SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n                    AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n               FROM AgentActorUidsForPersonUid     \n              UNION \n             SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n                    AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n               FROM AgentActorUidsForPersonUid\n                    JOIN GroupMemberActorJoin \n                         ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n        )\n    ,\n        \n        PersonUidsAndCourseBlocks(personUid, cbUid, cbType, caMarkingType) AS (\n             SELECT Person.personUid AS personUid,\n                    CourseBlock.cbUid AS cbUid,\n                    CourseBlock.cbType AS cbType,\n                    ClazzAssignment.caMarkingType AS caMarkingType\n               FROM Person\n                    JOIN CourseBlock\n                         ON CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n                    LEFT JOIN ClazzAssignment\n                         ON CourseBlock.cbType = 103\n                        AND ClazzAssignment.caUid = CourseBlock.cbEntityUid     \n              WHERE Person.personUid IN (?)       \n        )\n        \n        SELECT PersonUidsAndCourseBlocks.personUid AS sPersonUid,\n               PersonUidsAndCourseBlocks.cbUid AS sCbUid,\n               (SELECT MAX(StatementEntity.extensionProgress)\n                  FROM StatementEntity\n                       \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                 WHERE \n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n     \n               ) AS sProgress,\n               (SELECT EXISTS(\n                       SELECT 1\n                         FROM StatementEntity\n                              \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                        WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n               )) AS sIsCompleted,\n               (SELECT CASE\n                       /*If there is a statement marked as success, then count as successful even if\n                        *there were subsequent failed attempts\n                        */\n                       WHEN (\n                            SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                           \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                    WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                      AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n                                   )                           \n                       ) THEN 1\n                       /*If there are no statements marked as success, however there are statements marekd as fail,\n                        *then count as fail \n                        */\n                       WHEN (\n                            SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                           \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                    WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                      AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n                                   )                           \n                       ) THEN 0\n                       /* Else there is no known success/fail result*/\n                       ELSE NULL\n                       END\n               ) AS sIsSuccess,\n               -- See ClazzGradebookScreen for info on which score is selected\n               (SELECT CASE\n                       -- When there is a peer marked assignment, take the average of the latest distinct ...\n                       WHEN (     PersonUidsAndCourseBlocks.cbType = 103\n                              AND PersonUidsAndCourseBlocks.caMarkingType = 2\n                            ) \n                            THEN (SELECT AVG(StatementEntity.resultScoreScaled)\n                                    FROM StatementEntity\n                                         \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                   WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                     AND StatementEntity.timestamp = (\n                                         SELECT MAX(StatementEntity_Inner.timestamp)\n                                           FROM StatementEntity StatementEntity_Inner\n                                                \n       JOIN ActorEntity ActorEntity_Inner\n            ON ActorEntity_Inner.actorUid = StatementEntity_Inner.statementActorUid\n       LEFT JOIN GroupMemberActorJoin GroupMemberActorJoin_Inner\n            ON ActorEntity_Inner.actorObjectType = 2\n               AND (GroupMemberActorJoin_Inner.gmajGroupActorUid, GroupMemberActorJoin_Inner.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                          WHERE (\n            StatementEntity_Inner.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity_Inner.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                            AND StatementEntity_Inner.contextInstructorActorUid = StatementEntity.contextInstructorActorUid)\n                                   LIMIT 1)\n                       -- When an assignment, but not peer marked, then the latest score     \n                       WHEN PersonUidsAndCourseBlocks.cbType = 103\n                            THEN (SELECT StatementEntity.resultScoreScaled\n                                    FROM StatementEntity\n                                         \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                   WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                ORDER BY StatementEntity.timestamp DESC\n                                   LIMIT 1)\n                       -- else the best score accomplished so far            \n                       ELSE (SELECT MAX(StatementEntity.resultScoreScaled) \n                               FROM StatementEntity\n                                    \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                              WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    ))            \n                       END\n               ) AS sScoreScaled\n          FROM PersonUidsAndCourseBlocks\n         WHERE CAST(? AS BIGINT) = CAST(? AS BIGINT) \n    ', true, VOID, VOID, '\n        WITH PersonUids(personUid) AS (\n             SELECT Person.personUid\n               FROM Person\n              WHERE Person.personUid IN (?)\n        ),\n        \n        \n        -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n        AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n             SELECT ActorEntity.actorUid AS actorUid, \n                    ActorEntity.actorPersonUid AS actorPersonUid\n               FROM ActorEntity\n              WHERE ActorEntity.actorPersonUid IN\n                    (SELECT PersonUids.personUid\n                       FROM PersonUids)           \n        ),\n        \n        -- Add in group actor uids\n        ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n             SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n                    AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n               FROM AgentActorUidsForPersonUid     \n              UNION \n             SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n                    AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n               FROM AgentActorUidsForPersonUid\n                    JOIN GroupMemberActorJoin \n                         ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n        )\n    ,\n        \n        PersonUidsAndCourseBlocks(personUid, cbUid, cbType, caMarkingType) AS (\n             SELECT Person.personUid AS personUid,\n                    CourseBlock.cbUid AS cbUid,\n                    CourseBlock.cbType AS cbType,\n                    ClazzAssignment.caMarkingType AS caMarkingType\n               FROM Person\n                    JOIN CourseBlock\n                         ON CourseBlock.cbClazzUid = ?\n                    LEFT JOIN ClazzAssignment\n                         ON CourseBlock.cbType = 103\n                        AND ClazzAssignment.caUid = CourseBlock.cbEntityUid     \n              WHERE Person.personUid IN (?)       \n        )\n        \n        SELECT PersonUidsAndCourseBlocks.personUid AS sPersonUid,\n               PersonUidsAndCourseBlocks.cbUid AS sCbUid,\n               (SELECT MAX(StatementEntity.extensionProgress)\n                  FROM StatementEntity\n                       \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                 WHERE \n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n     \n               ) AS sProgress,\n               (SELECT EXISTS(\n                       SELECT 1\n                         FROM StatementEntity\n                              \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                        WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n               )) AS sIsCompleted,\n               (SELECT CASE\n                       /*If there is a statement marked as success, then count as successful even if\n                        *there were subsequent failed attempts\n                        */\n                       WHEN (\n                            SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                           \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                    WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                      AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n                                   )                           \n                       ) THEN 1\n                       /*If there are no statements marked as success, however there are statements marekd as fail,\n                        *then count as fail \n                        */\n                       WHEN (\n                            SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                           \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                    WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                      AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n                                   )                           \n                       ) THEN 0\n                       /* Else there is no known success/fail result*/\n                       ELSE NULL\n                       END\n               ) AS sIsSuccess,\n               -- See ClazzGradebookScreen for info on which score is selected\n               (SELECT CASE\n                       -- When there is a peer marked assignment, take the average of the latest distinct ...\n                       WHEN (     PersonUidsAndCourseBlocks.cbType = 103\n                              AND PersonUidsAndCourseBlocks.caMarkingType = 2\n                            ) \n                            THEN (SELECT AVG(StatementEntity.resultScoreScaled)\n                                    FROM StatementEntity\n                                         \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                   WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                     AND StatementEntity.timestamp = (\n                                         SELECT MAX(StatementEntity_Inner.timestamp)\n                                           FROM StatementEntity StatementEntity_Inner\n                                                \n       JOIN ActorEntity ActorEntity_Inner\n            ON ActorEntity_Inner.actorUid = StatementEntity_Inner.statementActorUid\n       LEFT JOIN GroupMemberActorJoin GroupMemberActorJoin_Inner\n            ON ActorEntity_Inner.actorObjectType = 2\n               AND (GroupMemberActorJoin_Inner.gmajGroupActorUid, GroupMemberActorJoin_Inner.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                          WHERE (\n            StatementEntity_Inner.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity_Inner.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                            AND StatementEntity_Inner.contextInstructorActorUid = StatementEntity.contextInstructorActorUid)\n                                   LIMIT 1)\n                       -- When an assignment, but not peer marked, then the latest score     \n                       WHEN PersonUidsAndCourseBlocks.cbType = 103\n                            THEN (SELECT StatementEntity.resultScoreScaled\n                                    FROM StatementEntity\n                                         \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                   WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                ORDER BY StatementEntity.timestamp DESC\n                                   LIMIT 1)\n                       -- else the best score accomplished so far            \n                       ELSE (SELECT MAX(StatementEntity.resultScoreScaled) \n                               FROM StatementEntity\n                                    \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                              WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    ))            \n                       END\n               ) AS sScoreScaled\n          FROM PersonUidsAndCourseBlocks\n         WHERE ? = ? \n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.lir_1.miq_1, tmp_0, StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda_0(this.mir_1, this.nir_1, this.oir_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda).y77 = function (completion) {
    return new StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda(this.lir_1, this.mir_1, this.nir_1, this.oir_1, completion);
  };
  function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda_0(this$0, $studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) {
    var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda(this$0, $studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.pir($completion);
    };
    l.$arity = 0;
    return l;
  }
  function StatementDao_JdbcImpl(_db) {
    StatementDao.call(this);
    this.miq_1 = _db;
    var tmp = this;
    tmp.niq_1 = new StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1(this);
  }
  protoOf(StatementDao_JdbcImpl).lio = function (entityList, $completion) {
    return this.niq_1.m5g(entityList, $completion);
  };
  protoOf(StatementDao_JdbcImpl).mio = function (clazzUid, studentPersonUids, accountPersonUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        WITH PersonUids(personUid) AS (\n             SELECT Person.personUid\n               FROM Person\n              WHERE Person.personUid IN (?)\n        ),\n        \n        \n        -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n        AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n             SELECT ActorEntity.actorUid AS actorUid, \n                    ActorEntity.actorPersonUid AS actorPersonUid\n               FROM ActorEntity\n              WHERE ActorEntity.actorPersonUid IN\n                    (SELECT PersonUids.personUid\n                       FROM PersonUids)           \n        ),\n        \n        -- Add in group actor uids\n        ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n             SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n                    AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n               FROM AgentActorUidsForPersonUid     \n              UNION \n             SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n                    AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n               FROM AgentActorUidsForPersonUid\n                    JOIN GroupMemberActorJoin \n                         ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n        )\n    ,\n        \n        PersonUidsAndCourseBlocks(personUid, cbUid, cbType, caMarkingType) AS (\n             SELECT Person.personUid AS personUid,\n                    CourseBlock.cbUid AS cbUid,\n                    CourseBlock.cbType AS cbType,\n                    ClazzAssignment.caMarkingType AS caMarkingType\n               FROM Person\n                    JOIN CourseBlock\n                         ON CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n                    LEFT JOIN ClazzAssignment\n                         ON CourseBlock.cbType = 103\n                        AND ClazzAssignment.caUid = CourseBlock.cbEntityUid     \n              WHERE Person.personUid IN (?)       \n        )\n        \n        SELECT PersonUidsAndCourseBlocks.personUid AS sPersonUid,\n               PersonUidsAndCourseBlocks.cbUid AS sCbUid,\n               (SELECT MAX(StatementEntity.extensionProgress)\n                  FROM StatementEntity\n                       \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                 WHERE \n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n     \n               ) AS sProgress,\n               (SELECT EXISTS(\n                       SELECT 1\n                         FROM StatementEntity\n                              \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                        WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n               )) AS sIsCompleted,\n               (SELECT CASE\n                       /*If there is a statement marked as success, then count as successful even if\n                        *there were subsequent failed attempts\n                        */\n                       WHEN (\n                            SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                           \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                    WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                      AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n                                   )                           \n                       ) THEN 1\n                       /*If there are no statements marked as success, however there are statements marekd as fail,\n                        *then count as fail \n                        */\n                       WHEN (\n                            SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                           \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                    WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                      AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n                                   )                           \n                       ) THEN 0\n                       /* Else there is no known success/fail result*/\n                       ELSE NULL\n                       END\n               ) AS sIsSuccess,\n               -- See ClazzGradebookScreen for info on which score is selected\n               (SELECT CASE\n                       -- When there is a peer marked assignment, take the average of the latest distinct ...\n                       WHEN (     PersonUidsAndCourseBlocks.cbType = 103\n                              AND PersonUidsAndCourseBlocks.caMarkingType = 2\n                            ) \n                            THEN (SELECT AVG(StatementEntity.resultScoreScaled)\n                                    FROM StatementEntity\n                                         \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                   WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                     AND StatementEntity.timestamp = (\n                                         SELECT MAX(StatementEntity_Inner.timestamp)\n                                           FROM StatementEntity StatementEntity_Inner\n                                                \n       JOIN ActorEntity ActorEntity_Inner\n            ON ActorEntity_Inner.actorUid = StatementEntity_Inner.statementActorUid\n       LEFT JOIN GroupMemberActorJoin GroupMemberActorJoin_Inner\n            ON ActorEntity_Inner.actorObjectType = 2\n               AND (GroupMemberActorJoin_Inner.gmajGroupActorUid, GroupMemberActorJoin_Inner.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                          WHERE (\n            StatementEntity_Inner.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity_Inner.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                            AND StatementEntity_Inner.contextInstructorActorUid = StatementEntity.contextInstructorActorUid)\n                                   LIMIT 1)\n                       -- When an assignment, but not peer marked, then the latest score     \n                       WHEN PersonUidsAndCourseBlocks.cbType = 103\n                            THEN (SELECT StatementEntity.resultScoreScaled\n                                    FROM StatementEntity\n                                         \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                   WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                ORDER BY StatementEntity.timestamp DESC\n                                   LIMIT 1)\n                       -- else the best score accomplished so far            \n                       ELSE (SELECT MAX(StatementEntity.resultScoreScaled) \n                               FROM StatementEntity\n                                    \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                              WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    ))            \n                       END\n               ) AS sScoreScaled\n          FROM PersonUidsAndCourseBlocks\n         WHERE CAST(? AS BIGINT) = CAST(? AS BIGINT) \n    ', true, VOID, VOID, '\n        WITH PersonUids(personUid) AS (\n             SELECT Person.personUid\n               FROM Person\n              WHERE Person.personUid IN (?)\n        ),\n        \n        \n        -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n        AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n             SELECT ActorEntity.actorUid AS actorUid, \n                    ActorEntity.actorPersonUid AS actorPersonUid\n               FROM ActorEntity\n              WHERE ActorEntity.actorPersonUid IN\n                    (SELECT PersonUids.personUid\n                       FROM PersonUids)           \n        ),\n        \n        -- Add in group actor uids\n        ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n             SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n                    AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n               FROM AgentActorUidsForPersonUid     \n              UNION \n             SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n                    AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n               FROM AgentActorUidsForPersonUid\n                    JOIN GroupMemberActorJoin \n                         ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n        )\n    ,\n        \n        PersonUidsAndCourseBlocks(personUid, cbUid, cbType, caMarkingType) AS (\n             SELECT Person.personUid AS personUid,\n                    CourseBlock.cbUid AS cbUid,\n                    CourseBlock.cbType AS cbType,\n                    ClazzAssignment.caMarkingType AS caMarkingType\n               FROM Person\n                    JOIN CourseBlock\n                         ON CourseBlock.cbClazzUid = ?\n                    LEFT JOIN ClazzAssignment\n                         ON CourseBlock.cbType = 103\n                        AND ClazzAssignment.caUid = CourseBlock.cbEntityUid     \n              WHERE Person.personUid IN (?)       \n        )\n        \n        SELECT PersonUidsAndCourseBlocks.personUid AS sPersonUid,\n               PersonUidsAndCourseBlocks.cbUid AS sCbUid,\n               (SELECT MAX(StatementEntity.extensionProgress)\n                  FROM StatementEntity\n                       \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                 WHERE \n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n     \n               ) AS sProgress,\n               (SELECT EXISTS(\n                       SELECT 1\n                         FROM StatementEntity\n                              \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                        WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n               )) AS sIsCompleted,\n               (SELECT CASE\n                       /*If there is a statement marked as success, then count as successful even if\n                        *there were subsequent failed attempts\n                        */\n                       WHEN (\n                            SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                           \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                    WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                      AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n                                   )                           \n                       ) THEN 1\n                       /*If there are no statements marked as success, however there are statements marekd as fail,\n                        *then count as fail \n                        */\n                       WHEN (\n                            SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                           \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                    WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                      AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n                                   )                           \n                       ) THEN 0\n                       /* Else there is no known success/fail result*/\n                       ELSE NULL\n                       END\n               ) AS sIsSuccess,\n               -- See ClazzGradebookScreen for info on which score is selected\n               (SELECT CASE\n                       -- When there is a peer marked assignment, take the average of the latest distinct ...\n                       WHEN (     PersonUidsAndCourseBlocks.cbType = 103\n                              AND PersonUidsAndCourseBlocks.caMarkingType = 2\n                            ) \n                            THEN (SELECT AVG(StatementEntity.resultScoreScaled)\n                                    FROM StatementEntity\n                                         \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                   WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                     AND StatementEntity.timestamp = (\n                                         SELECT MAX(StatementEntity_Inner.timestamp)\n                                           FROM StatementEntity StatementEntity_Inner\n                                                \n       JOIN ActorEntity ActorEntity_Inner\n            ON ActorEntity_Inner.actorUid = StatementEntity_Inner.statementActorUid\n       LEFT JOIN GroupMemberActorJoin GroupMemberActorJoin_Inner\n            ON ActorEntity_Inner.actorObjectType = 2\n               AND (GroupMemberActorJoin_Inner.gmajGroupActorUid, GroupMemberActorJoin_Inner.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                          WHERE (\n            StatementEntity_Inner.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity_Inner.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                            AND StatementEntity_Inner.contextInstructorActorUid = StatementEntity.contextInstructorActorUid)\n                                   LIMIT 1)\n                       -- When an assignment, but not peer marked, then the latest score     \n                       WHEN PersonUidsAndCourseBlocks.cbType = 103\n                            THEN (SELECT StatementEntity.resultScoreScaled\n                                    FROM StatementEntity\n                                         \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                                   WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    )\n                                ORDER BY StatementEntity.timestamp DESC\n                                   LIMIT 1)\n                       -- else the best score accomplished so far            \n                       ELSE (SELECT MAX(StatementEntity.resultScoreScaled) \n                               FROM StatementEntity\n                                    \n       JOIN ActorEntity\n            ON ActorEntity.actorUid = StatementEntity.statementActorUid\n       LEFT JOIN GroupMemberActorJoin\n            ON ActorEntity.actorObjectType = 2\n               AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n                   SELECT GroupMemberActorJoin.gmajGroupActorUid, \n                          GroupMemberActorJoin.gmajMemberActorUid\n                     FROM GroupMemberActorJoin\n                    WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n                      AND GroupMemberActorJoin.gmajMemberActorUid IN (\n                          SELECT ActorUidsForPersonUid.actorUid\n                            FROM ActorUidsForPersonUid\n                           WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n    \n                              WHERE (\n            StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n        AND StatementEntity.statementActorUid IN (\n            SELECT ActorUidsForPersonUid.actorUid\n              FROM ActorUidsForPersonUid\n             WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid)  \n                   \n    ))            \n                       END\n               ) AS sScoreScaled\n          FROM PersonUidsAndCourseBlocks\n         WHERE ? = ? \n    \n', true);
    return prepareAndUseStatementAsync(this.miq_1, tmp, StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda_0(studentPersonUids, clazzUid, accountPersonUid, null), $completion);
  };
  protoOf(StatementDao_JdbcImpl).nio = function (clazzUid, studentPersonUids, accountPersonUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['ClazzAssignment', 'CourseBlock', 'Person', 'GroupMemberActorJoin', 'ActorEntity', 'StatementEntity'];
    return doorFlow(this.miq_1, tmp, StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda_0(this, studentPersonUids, clazzUid, accountPersonUid, null));
  };
  function StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function StatementDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entityList, resultContinuation) {
    this.yir_1 = this$0;
    this.zir_1 = $entityList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_Repo$insertOrIgnoreListAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_Repo$insertOrIgnoreListAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(StatementDao_Repo$insertOrIgnoreListAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.yir_1.cis_1.lio(this.zir_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(StatementDao_Repo$insertOrIgnoreListAsync$slambda).y77 = function (completion) {
    return new StatementDao_Repo$insertOrIgnoreListAsync$slambda(this.yir_1, this.zir_1, completion);
  };
  function StatementDao_Repo$insertOrIgnoreListAsync$slambda_0(this$0, $entityList, resultContinuation) {
    var i = new StatementDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entityList, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda(this$0, $clazzUid, $studentPersonUids, $accountPersonUid, resultContinuation) {
    this.pis_1 = this$0;
    this.qis_1 = $clazzUid;
    this.ris_1 = $studentPersonUids;
    this.sis_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.tis_1 = this.pis_1.bis_1;
            var tmp_1 = this;
            tmp_1.uis_1 = 'StatementDao/findStatusForStudentsInClazzAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.vis_1 = this.pis_1.dis_1;
            var tmp_3 = this;
            tmp_3.wis_1 = this.vis_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.pis_1.bis_1.w38(), 'StatementDao/findStatusForStudentsInClazzAsFlow');
            doorNodeIdHeader(this_0, this.pis_1.bis_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.pis_1.bis_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.qis_1));
            parameter(this_0, 'studentPersonUids', this.pis_1.bis_1.w38().k65_1.e45(ListSerializer(serializer(Companion_getInstance())), this.ris_1));
            parameter(this_0, 'accountPersonUid', this.pis_1.bis_1.w38().k65_1.e45(serializer(Companion_getInstance()), this.sis_1));
            tmp_4.xis_1 = this_0;
            this.xis_1.j38_1 = Companion_getInstance_0().y2w_1;
            var tmp_5 = this;
            tmp_5.yis_1 = this.wis_1;
            var tmp_6 = this;
            tmp_6.zis_1 = this.xis_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.zis_1, this.yis_1)).u3y(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.ait_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.pis_1.ais_1, this.ait_1, this.pis_1.bis_1.w38().k65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.id_1 = 4;
            this.hd_1 = 5;
            continue $sm;
          case 3:
            this.id_1 = 4;
            var tmp_7 = this.kd_1;
            if (tmp_7 instanceof Exception) {
              var e = this.kd_1;
              Napier_getInstance().q5d(e, 'DoorLog', StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda$lambda(this.tis_1, this.uis_1));
              this.hd_1 = 5;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            throw this.kd_1;
          case 5:
            this.id_1 = 4;
            return Unit_instance;
        }
      } catch ($p) {
        var e_0 = $p;
        if (this.id_1 === 4) {
          throw e_0;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e_0;
        }
      }
     while (true);
  };
  protoOf(StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda).y77 = function (completion) {
    return new StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda(this.pis_1, this.qis_1, this.ris_1, this.sis_1, completion);
  };
  function StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda_0(this$0, $clazzUid, $studentPersonUids, $accountPersonUid, resultContinuation) {
    var i = new StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda(this$0, $clazzUid, $studentPersonUids, $accountPersonUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findStatusForStudentsInClazzCOROUTINE$459(_this__u8e3s4, clazzUid, studentPersonUids, accountPersonUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.jit_1 = _this__u8e3s4;
    this.kit_1 = clazzUid;
    this.lit_1 = studentPersonUids;
    this.mit_1 = accountPersonUid;
  }
  protoOf($findStatusForStudentsInClazzCOROUTINE$459).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.jit_1.cis_1.mio(this.kit_1, this.lit_1, this.mit_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var _result = suspendResult;
            return _result;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function StatementDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    StatementDao.call(this);
    this.ais_1 = _db;
    this.bis_1 = _repo;
    this.cis_1 = _dao;
    this.dis_1 = _httpClient;
    this.eis_1 = _clientId;
    this.fis_1 = _endpoint;
    this.gis_1 = new RepoDaoFlowHelper(this.bis_1);
  }
  protoOf(StatementDao_Repo).lio = function (entityList, $completion) {
    return withRepoChangeMonitorAsync(this.bis_1, 'StatementEntity', StatementDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entityList, null), $completion);
  };
  protoOf(StatementDao_Repo).mio = function (clazzUid, studentPersonUids, accountPersonUid, $completion) {
    var tmp = new $findStatusForStudentsInClazzCOROUTINE$459(this, clazzUid, studentPersonUids, accountPersonUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_Repo).nio = function (clazzUid, studentPersonUids, accountPersonUid) {
    var tmp = this.cis_1.nio(clazzUid, studentPersonUids, accountPersonUid);
    return this.gis_1.b67(tmp, StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda_0(this, clazzUid, studentPersonUids, accountPersonUid, null));
  };
  function StatementEntityJsonDao() {
  }
  function StatementEntityJsonDao_DoorWrapper(_db, _dao) {
    StatementEntityJsonDao.call(this);
    this.oit_1 = _db;
    this.pit_1 = _dao;
  }
  protoOf(StatementEntityJsonDao_DoorWrapper).nit = function (entityList, $completion) {
    return this.pit_1.nit(entityList, $completion);
  };
  function StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.qit_1);
  }
  protoOf(StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1).h5g = function (returnsId) {
    return 'INSERT  OR IGNORE INTO StatementEntityJson (stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement) VALUES(?, ?, ?, ?)';
  };
  protoOf(StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1).uit = function (stmt, entity) {
    stmt.i5h(1, entity.vit_1);
    stmt.i5h(2, entity.wit_1);
    stmt.i5h(3, entity.xit_1);
    stmt.l5h(4, entity.yit_1);
  };
  protoOf(StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1).c5f = function (stmt, entity) {
    return this.uit(stmt, entity instanceof StatementEntityJson ? entity : THROW_CCE());
  };
  function StatementEntityJsonDao_JdbcImpl(_db) {
    StatementEntityJsonDao.call(this);
    this.qit_1 = _db;
    var tmp = this;
    tmp.rit_1 = new StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1(this);
  }
  protoOf(StatementEntityJsonDao_JdbcImpl).nit = function (entityList, $completion) {
    return this.rit_1.m5g(entityList, $completion);
  };
  function StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entityList, resultContinuation) {
    this.hiu_1 = this$0;
    this.iiu_1 = $entityList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.hiu_1.liu_1.nit(this.iiu_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda).y77 = function (completion) {
    return new StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda(this.hiu_1, this.iiu_1, completion);
  };
  function StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda_0(this$0, $entityList, resultContinuation) {
    var i = new StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entityList, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function StatementEntityJsonDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    StatementEntityJsonDao.call(this);
    this.jiu_1 = _db;
    this.kiu_1 = _repo;
    this.liu_1 = _dao;
    this.miu_1 = _httpClient;
    this.niu_1 = _clientId;
    this.oiu_1 = _endpoint;
  }
  protoOf(StatementEntityJsonDao_Repo).nit = function (entityList, $completion) {
    return withRepoChangeMonitorAsync(this.kiu_1, 'StatementEntityJson', StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entityList, null), $completion);
  };
  function VerbDao() {
  }
  function VerbDao_DoorWrapper(_db, _dao) {
    VerbDao.call(this);
    this.qiu_1 = _db;
    this.riu_1 = _dao;
  }
  protoOf(VerbDao_DoorWrapper).piu = function (entities, $completion) {
    // Inline function 'kotlin.collections.mutableListOf' call
    var _generatedPks = ArrayList_init_$Create$();
    // Inline function 'kotlin.collections.forEach' call
    // Inline function 'kotlin.collections.iterator' call
    var tmp0_iterator = entities.w();
    while (tmp0_iterator.f()) {
      var element = tmp0_iterator.e();
      // Inline function 'com.ustadmobile.core.db.dao.xapi.VerbDao_DoorWrapper.insertOrIgnoreAsync.<anonymous>' call
      element.viu_1 = systemTimeInMillis();
    }
    return this.riu_1.piu(entities, $completion);
  };
  function VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.wiu_1);
  }
  protoOf(VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1).h5g = function (returnsId) {
    return 'INSERT  OR IGNORE INTO VerbEntity (verbUid, verbUrlId, verbDeleted, verbLct) VALUES(?, ?, ?, ?)';
  };
  protoOf(VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1).aiv = function (stmt, entity) {
    stmt.i5h(1, entity.siu_1);
    stmt.l5h(2, entity.tiu_1);
    stmt.v5g(3, entity.uiu_1);
    stmt.i5h(4, entity.viu_1);
  };
  protoOf(VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1).c5f = function (stmt, entity) {
    return this.aiv(stmt, entity instanceof VerbEntity ? entity : THROW_CCE());
  };
  function VerbDao_JdbcImpl(_db) {
    VerbDao.call(this);
    this.wiu_1 = _db;
    var tmp = this;
    tmp.xiu_1 = new VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1(this);
  }
  protoOf(VerbDao_JdbcImpl).piu = function (entities, $completion) {
    return this.xiu_1.m5g(entities, $completion);
  };
  function VerbDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation) {
    this.jiv_1 = this$0;
    this.kiv_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(VerbDao_Repo$insertOrIgnoreAsync$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(VerbDao_Repo$insertOrIgnoreAsync$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(VerbDao_Repo$insertOrIgnoreAsync$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.jiv_1.niv_1.piu(this.kiv_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(VerbDao_Repo$insertOrIgnoreAsync$slambda).y77 = function (completion) {
    return new VerbDao_Repo$insertOrIgnoreAsync$slambda(this.jiv_1, this.kiv_1, completion);
  };
  function VerbDao_Repo$insertOrIgnoreAsync$slambda_0(this$0, $entities, resultContinuation) {
    var i = new VerbDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function VerbDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    VerbDao.call(this);
    this.liv_1 = _db;
    this.miv_1 = _repo;
    this.niv_1 = _dao;
    this.oiv_1 = _httpClient;
    this.piv_1 = _clientId;
    this.qiv_1 = _endpoint;
  }
  protoOf(VerbDao_Repo).piu = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.miv_1, 'VerbEntity', VerbDao_Repo$insertOrIgnoreAsync$slambda_0(this, entities, null), $completion);
  };
  function VerbLangMapEntryDao() {
  }
  function VerbLangMapEntryDao_DoorWrapper(_db, _dao) {
    VerbLangMapEntryDao.call(this);
    this.siv_1 = _db;
    this.tiv_1 = _dao;
  }
  protoOf(VerbLangMapEntryDao_DoorWrapper).riv = function (list, $completion) {
    // Inline function 'kotlin.collections.mutableListOf' call
    var _generatedPks = ArrayList_init_$Create$();
    // Inline function 'kotlin.collections.forEach' call
    // Inline function 'kotlin.collections.iterator' call
    var tmp0_iterator = list.w();
    while (tmp0_iterator.f()) {
      var element = tmp0_iterator.e();
      // Inline function 'com.ustadmobile.core.db.dao.xapi.VerbLangMapEntryDao_DoorWrapper.upsertList.<anonymous>' call
      element.yiv_1 = systemTimeInMillis();
    }
    return this.tiv_1.riv(list, $completion);
  };
  function VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ziv_1);
  }
  protoOf(VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1).h5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO VerbLangMapEntry (vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified) VALUES(?, ?, ?, ?, ?)';
  };
  protoOf(VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1).diw = function (stmt, entity) {
    stmt.i5h(1, entity.uiv_1);
    stmt.i5h(2, entity.viv_1);
    stmt.l5h(3, entity.wiv_1);
    stmt.l5h(4, entity.xiv_1);
    stmt.i5h(5, entity.yiv_1);
  };
  protoOf(VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1).c5f = function (stmt, entity) {
    return this.diw(stmt, entity instanceof VerbLangMapEntry ? entity : THROW_CCE());
  };
  function VerbLangMapEntryDao_JdbcImpl(_db) {
    VerbLangMapEntryDao.call(this);
    this.ziv_1 = _db;
    var tmp = this;
    tmp.aiw_1 = new VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1(this);
  }
  protoOf(VerbLangMapEntryDao_JdbcImpl).riv = function (list, $completion) {
    return this.aiw_1.m5g(list, $completion);
  };
  function VerbLangMapEntryDao_Repo$upsertList$slambda(this$0, $list, resultContinuation) {
    this.miw_1 = this$0;
    this.niw_1 = $list;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(VerbLangMapEntryDao_Repo$upsertList$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(VerbLangMapEntryDao_Repo$upsertList$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(VerbLangMapEntryDao_Repo$upsertList$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.miw_1.qiw_1.riv(this.niw_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(VerbLangMapEntryDao_Repo$upsertList$slambda).y77 = function (completion) {
    return new VerbLangMapEntryDao_Repo$upsertList$slambda(this.miw_1, this.niw_1, completion);
  };
  function VerbLangMapEntryDao_Repo$upsertList$slambda_0(this$0, $list, resultContinuation) {
    var i = new VerbLangMapEntryDao_Repo$upsertList$slambda(this$0, $list, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function VerbLangMapEntryDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    VerbLangMapEntryDao.call(this);
    this.oiw_1 = _db;
    this.piw_1 = _repo;
    this.qiw_1 = _dao;
    this.riw_1 = _httpClient;
    this.siw_1 = _clientId;
    this.tiw_1 = _endpoint;
  }
  protoOf(VerbLangMapEntryDao_Repo).riv = function (list, $completion) {
    return withRepoChangeMonitorAsync(this.piw_1, 'VerbLangMapEntry', VerbLangMapEntryDao_Repo$upsertList$slambda_0(this, list, null), $completion);
  };
  function XapiSessionEntityDao() {
  }
  function XapiSessionEntityDao_DoorWrapper(_db, _dao) {
    XapiSessionEntityDao.call(this);
    this.viw_1 = _db;
    this.wiw_1 = _dao;
  }
  protoOf(XapiSessionEntityDao_DoorWrapper).uiw = function (completed, time, xseUid, $completion) {
    return this.wiw_1.uiw(completed, time, xseUid, $completion);
  };
  function XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.xiw_1);
  }
  protoOf(XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1).h5g = function (returnsId) {
    return 'INSERT INTO XapiSessionEntity (xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1).bix = function (stmt, entity) {
    if (entity.cix_1.equals(new Long(0, 0))) {
      stmt.n5h(1, null);
    } else {
      stmt.i5h(1, entity.cix_1);
    }
    stmt.i5h(2, entity.dix_1);
    stmt.i5h(3, entity.eix_1);
    stmt.i5h(4, entity.fix_1);
    stmt.i5h(5, entity.gix_1);
    stmt.i5h(6, entity.hix_1);
    stmt.i5h(7, entity.iix_1);
    stmt.l5h(8, entity.jix_1);
    stmt.i5h(9, entity.kix_1);
    stmt.i5h(10, entity.lix_1);
    stmt.i5h(11, entity.mix_1);
    stmt.i5h(12, entity.nix_1);
    stmt.l5h(13, entity.oix_1);
    stmt.i5h(14, entity.pix_1);
    stmt.i5h(15, entity.qix_1);
    stmt.i5h(16, entity.rix_1);
    stmt.l5h(17, entity.six_1);
    stmt.v5g(18, entity.tix_1);
    stmt.l5h(19, entity.uix_1);
  };
  protoOf(XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1).c5f = function (stmt, entity) {
    return this.bix(stmt, entity instanceof XapiSessionEntity ? entity : THROW_CCE());
  };
  function XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda($completed, $time, $xseUid, resultContinuation) {
    this.diy_1 = $completed;
    this.eiy_1 = $time;
    this.fiy_1 = $xseUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda).w6i = function (_stmt, $completion) {
    var tmp = this.z5e(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda).he = function (p1, $completion) {
    return this.w6i((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.giy_1.v5g(1, this.diy_1);
            this.giy_1.i5h(2, this.eiy_1);
            this.giy_1.i5h(3, this.fiy_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.giy_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return suspendResult;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda).z5e = function (_stmt, completion) {
    var i = new XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda(this.diy_1, this.eiy_1, this.fiy_1, completion);
    i.giy_1 = _stmt;
    return i;
  };
  function XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda_0($completed, $time, $xseUid, resultContinuation) {
    var i = new XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda($completed, $time, $xseUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.w6i(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $updateLatestAsCompleteCOROUTINE$465(_this__u8e3s4, completed, time, xseUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.piy_1 = _this__u8e3s4;
    this.qiy_1 = completed;
    this.riy_1 = time;
    this.siy_1 = xseUid;
  }
  protoOf($updateLatestAsCompleteCOROUTINE$465).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            var tmp_0 = new PreparedStatementConfig('\n        UPDATE XapiSessionEntity\n           SET xseCompleted = ?,\n               xseLastMod = CAST(? AS BIGINT)\n         WHERE xseUid = CAST(? AS BIGINT)\n\n    ', VOID, VOID, VOID, '\n        UPDATE XapiSessionEntity\n           SET xseCompleted = ?,\n               xseLastMod = ?\n         WHERE xseUid = ?\n\n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.piy_1.xiw_1, tmp_0, XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda_0(this.qiy_1, this.riy_1, this.siy_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function XapiSessionEntityDao_JdbcImpl(_db) {
    XapiSessionEntityDao.call(this);
    this.xiw_1 = _db;
    var tmp = this;
    tmp.yiw_1 = new XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1(this);
  }
  protoOf(XapiSessionEntityDao_JdbcImpl).uiw = function (completed, time, xseUid, $completion) {
    var tmp = new $updateLatestAsCompleteCOROUTINE$465(this, completed, time, xseUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda(this$0, $completed, $time, $xseUid, resultContinuation) {
    this.biz_1 = this$0;
    this.ciz_1 = $completed;
    this.diz_1 = $time;
    this.eiz_1 = $xseUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda).m86 = function ($completion) {
    var tmp = this.y77($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda).z77 = function ($completion) {
    return this.m86($completion);
  };
  protoOf(XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.hd_1 = 1;
            suspendResult = this.biz_1.hiz_1.uiw(this.ciz_1, this.diz_1, this.eiz_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return Unit_instance;
          case 2:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 2) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  protoOf(XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda).y77 = function (completion) {
    return new XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda(this.biz_1, this.ciz_1, this.diz_1, this.eiz_1, completion);
  };
  function XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda_0(this$0, $completed, $time, $xseUid, resultContinuation) {
    var i = new XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda(this$0, $completed, $time, $xseUid, resultContinuation);
    var l = function ($completion) {
      return i.m86($completion);
    };
    l.$arity = 0;
    return l;
  }
  function XapiSessionEntityDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    XapiSessionEntityDao.call(this);
    this.fiz_1 = _db;
    this.giz_1 = _repo;
    this.hiz_1 = _dao;
    this.iiz_1 = _httpClient;
    this.jiz_1 = _clientId;
    this.kiz_1 = _endpoint;
  }
  protoOf(XapiSessionEntityDao_Repo).uiw = function (completed, time, xseUid, $completion) {
    return withRepoChangeMonitorAsync(this.giz_1, 'XapiSessionEntity', XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda_0(this, completed, time, xseUid, null), $completion);
  };
  function shallowCopy(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new ClazzAssignment();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.q7s_1 = _this__u8e3s4.q7s_1;
    this_0.r7s_1 = _this__u8e3s4.r7s_1;
    this_0.s7s_1 = _this__u8e3s4.s7s_1;
    this_0.t7s_1 = _this__u8e3s4.t7s_1;
    this_0.u7s_1 = _this__u8e3s4.u7s_1;
    this_0.v7s_1 = _this__u8e3s4.v7s_1;
    this_0.w7s_1 = _this__u8e3s4.w7s_1;
    this_0.x7s_1 = _this__u8e3s4.x7s_1;
    this_0.y7s_1 = _this__u8e3s4.y7s_1;
    this_0.z7s_1 = _this__u8e3s4.z7s_1;
    this_0.a7t_1 = _this__u8e3s4.a7t_1;
    this_0.b7t_1 = _this__u8e3s4.b7t_1;
    this_0.c7t_1 = _this__u8e3s4.c7t_1;
    this_0.d7t_1 = _this__u8e3s4.d7t_1;
    this_0.e7t_1 = _this__u8e3s4.e7t_1;
    this_0.f7t_1 = _this__u8e3s4.f7t_1;
    this_0.g7t_1 = _this__u8e3s4.g7t_1;
    this_0.h7t_1 = _this__u8e3s4.h7t_1;
    this_0.i7t_1 = _this__u8e3s4.i7t_1;
    this_0.j7t_1 = _this__u8e3s4.j7t_1;
    this_0.k7t_1 = _this__u8e3s4.k7t_1;
    this_0.l7t_1 = _this__u8e3s4.l7t_1;
    this_0.m7t_1 = _this__u8e3s4.m7t_1;
    this_0.n7t_1 = _this__u8e3s4.n7t_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_0(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new ClazzEnrolmentWithLeavingReason();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.r93_1 = _this__u8e3s4.r93_1;
    this_0.s93_1 = _this__u8e3s4.s93_1;
    this_0.e8h_1 = _this__u8e3s4.e8h_1;
    this_0.f8h_1 = _this__u8e3s4.f8h_1;
    this_0.g8h_1 = _this__u8e3s4.g8h_1;
    this_0.h8h_1 = _this__u8e3s4.h8h_1;
    this_0.i8h_1 = _this__u8e3s4.i8h_1;
    this_0.j8h_1 = _this__u8e3s4.j8h_1;
    this_0.k8h_1 = _this__u8e3s4.k8h_1;
    this_0.l8h_1 = _this__u8e3s4.l8h_1;
    this_0.m8h_1 = _this__u8e3s4.m8h_1;
    this_0.n8h_1 = _this__u8e3s4.n8h_1;
    this_0.o8h_1 = _this__u8e3s4.o8h_1;
    this_0.p8h_1 = _this__u8e3s4.p8h_1;
    this_0.q8h_1 = _this__u8e3s4.q8h_1;
    this_0.r8h_1 = _this__u8e3s4.r8h_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_1(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new ClazzLogAttendanceRecord();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.t9k_1 = _this__u8e3s4.t9k_1;
    this_0.u9k_1 = _this__u8e3s4.u9k_1;
    this_0.v9k_1 = _this__u8e3s4.v9k_1;
    this_0.w9k_1 = _this__u8e3s4.w9k_1;
    this_0.x9k_1 = _this__u8e3s4.x9k_1;
    this_0.y9k_1 = _this__u8e3s4.y9k_1;
    this_0.z9k_1 = _this__u8e3s4.z9k_1;
    this_0.a9l_1 = _this__u8e3s4.a9l_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_2(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new ClazzLog();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.z9p_1 = _this__u8e3s4.z9p_1;
    this_0.a9q_1 = _this__u8e3s4.a9q_1;
    this_0.b9q_1 = _this__u8e3s4.b9q_1;
    this_0.c9q_1 = _this__u8e3s4.c9q_1;
    this_0.d9q_1 = _this__u8e3s4.d9q_1;
    this_0.e9q_1 = _this__u8e3s4.e9q_1;
    this_0.f9q_1 = _this__u8e3s4.f9q_1;
    this_0.g9q_1 = _this__u8e3s4.g9q_1;
    this_0.h9q_1 = _this__u8e3s4.h9q_1;
    this_0.i9q_1 = _this__u8e3s4.i9q_1;
    this_0.j9q_1 = _this__u8e3s4.j9q_1;
    this_0.k9q_1 = _this__u8e3s4.k9q_1;
    this_0.l9q_1 = _this__u8e3s4.l9q_1;
    this_0.m9q_1 = _this__u8e3s4.m9q_1;
    this_0.n9q_1 = _this__u8e3s4.n9q_1;
    this_0.o9q_1 = _this__u8e3s4.o9q_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_3(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new ClazzWithHolidayCalendarAndAndTerminology();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.m8f_1 = _this__u8e3s4.m8f_1;
    this_0.n8f_1 = _this__u8e3s4.n8f_1;
    this_0.o8f_1 = _this__u8e3s4.o8f_1;
    this_0.u8c_1 = _this__u8e3s4.u8c_1;
    this_0.v8c_1 = _this__u8e3s4.v8c_1;
    this_0.w8c_1 = _this__u8e3s4.w8c_1;
    this_0.x8c_1 = _this__u8e3s4.x8c_1;
    this_0.y8c_1 = _this__u8e3s4.y8c_1;
    this_0.z8c_1 = _this__u8e3s4.z8c_1;
    this_0.a8d_1 = _this__u8e3s4.a8d_1;
    this_0.b8d_1 = _this__u8e3s4.b8d_1;
    this_0.c8d_1 = _this__u8e3s4.c8d_1;
    this_0.d8d_1 = _this__u8e3s4.d8d_1;
    this_0.e8d_1 = _this__u8e3s4.e8d_1;
    this_0.f8d_1 = _this__u8e3s4.f8d_1;
    this_0.g8d_1 = _this__u8e3s4.g8d_1;
    this_0.h8d_1 = _this__u8e3s4.h8d_1;
    this_0.i8d_1 = _this__u8e3s4.i8d_1;
    this_0.j8d_1 = _this__u8e3s4.j8d_1;
    this_0.k8d_1 = _this__u8e3s4.k8d_1;
    this_0.l8d_1 = _this__u8e3s4.l8d_1;
    this_0.m8d_1 = _this__u8e3s4.m8d_1;
    this_0.n8d_1 = _this__u8e3s4.n8d_1;
    this_0.o8d_1 = _this__u8e3s4.o8d_1;
    this_0.p8d_1 = _this__u8e3s4.p8d_1;
    this_0.q8d_1 = _this__u8e3s4.q8d_1;
    this_0.r8d_1 = _this__u8e3s4.r8d_1;
    this_0.s8d_1 = _this__u8e3s4.s8d_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_4(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new ContentEntry();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.fah_1 = _this__u8e3s4.fah_1;
    this_0.gah_1 = _this__u8e3s4.gah_1;
    this_0.hah_1 = _this__u8e3s4.hah_1;
    this_0.iah_1 = _this__u8e3s4.iah_1;
    this_0.jah_1 = _this__u8e3s4.jah_1;
    this_0.kah_1 = _this__u8e3s4.kah_1;
    this_0.lah_1 = _this__u8e3s4.lah_1;
    this_0.mah_1 = _this__u8e3s4.mah_1;
    this_0.nah_1 = _this__u8e3s4.nah_1;
    this_0.oah_1 = _this__u8e3s4.oah_1;
    this_0.pah_1 = _this__u8e3s4.pah_1;
    this_0.qah_1 = _this__u8e3s4.qah_1;
    this_0.rah_1 = _this__u8e3s4.rah_1;
    this_0.sah_1 = _this__u8e3s4.sah_1;
    this_0.tah_1 = _this__u8e3s4.tah_1;
    this_0.uah_1 = _this__u8e3s4.uah_1;
    this_0.vah_1 = _this__u8e3s4.vah_1;
    this_0.wah_1 = _this__u8e3s4.wah_1;
    this_0.xah_1 = _this__u8e3s4.xah_1;
    this_0.yah_1 = _this__u8e3s4.yah_1;
    this_0.zah_1 = _this__u8e3s4.zah_1;
    this_0.aai_1 = _this__u8e3s4.aai_1;
    this_0.bai_1 = _this__u8e3s4.bai_1;
    this_0.cai_1 = _this__u8e3s4.cai_1;
    this_0.dai_1 = _this__u8e3s4.dai_1;
    this_0.eai_1 = _this__u8e3s4.eai_1;
    this_0.fai_1 = _this__u8e3s4.fai_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_5(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new CourseAssignmentMark();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.cbh_1 = _this__u8e3s4.cbh_1;
    this_0.dbh_1 = _this__u8e3s4.dbh_1;
    this_0.ebh_1 = _this__u8e3s4.ebh_1;
    this_0.fbh_1 = _this__u8e3s4.fbh_1;
    this_0.gbh_1 = _this__u8e3s4.gbh_1;
    this_0.hbh_1 = _this__u8e3s4.hbh_1;
    this_0.ibh_1 = _this__u8e3s4.ibh_1;
    this_0.jbh_1 = _this__u8e3s4.jbh_1;
    this_0.kbh_1 = _this__u8e3s4.kbh_1;
    this_0.lbh_1 = _this__u8e3s4.lbh_1;
    this_0.mbh_1 = _this__u8e3s4.mbh_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_6(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new CourseAssignmentSubmission();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.hbn_1 = _this__u8e3s4.hbn_1;
    this_0.ibn_1 = _this__u8e3s4.ibn_1;
    this_0.jbn_1 = _this__u8e3s4.jbn_1;
    this_0.kbn_1 = _this__u8e3s4.kbn_1;
    this_0.lbn_1 = _this__u8e3s4.lbn_1;
    this_0.mbn_1 = _this__u8e3s4.mbn_1;
    this_0.nbn_1 = _this__u8e3s4.nbn_1;
    this_0.obn_1 = _this__u8e3s4.obn_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_7(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new CourseGroupMember();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.mcp_1 = _this__u8e3s4.mcp_1;
    this_0.ncp_1 = _this__u8e3s4.ncp_1;
    this_0.ocp_1 = _this__u8e3s4.ocp_1;
    this_0.pcp_1 = _this__u8e3s4.pcp_1;
    this_0.qcp_1 = _this__u8e3s4.qcp_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_8(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new CourseGroupSet();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.d7y_1 = _this__u8e3s4.d7y_1;
    this_0.e7y_1 = _this__u8e3s4.e7y_1;
    this_0.f7y_1 = _this__u8e3s4.f7y_1;
    this_0.g7y_1 = _this__u8e3s4.g7y_1;
    this_0.h7y_1 = _this__u8e3s4.h7y_1;
    this_0.i7y_1 = _this__u8e3s4.i7y_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_9(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new CourseTerminology();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.p8f_1 = _this__u8e3s4.p8f_1;
    this_0.q8f_1 = _this__u8e3s4.q8f_1;
    this_0.r8f_1 = _this__u8e3s4.r8f_1;
    this_0.s8f_1 = _this__u8e3s4.s8f_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_10(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new DiscussionPost();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.ke7_1 = _this__u8e3s4.ke7_1;
    this_0.le7_1 = _this__u8e3s4.le7_1;
    this_0.me7_1 = _this__u8e3s4.me7_1;
    this_0.ne7_1 = _this__u8e3s4.ne7_1;
    this_0.oe7_1 = _this__u8e3s4.oe7_1;
    this_0.pe7_1 = _this__u8e3s4.pe7_1;
    this_0.qe7_1 = _this__u8e3s4.qe7_1;
    this_0.re7_1 = _this__u8e3s4.re7_1;
    this_0.se7_1 = _this__u8e3s4.se7_1;
    this_0.te7_1 = _this__u8e3s4.te7_1;
    this_0.ue7_1 = _this__u8e3s4.ue7_1;
    this_0.ve7_1 = _this__u8e3s4.ve7_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_11(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new HolidayCalendar();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.f8e_1 = _this__u8e3s4.f8e_1;
    this_0.g8e_1 = _this__u8e3s4.g8e_1;
    this_0.h8e_1 = _this__u8e3s4.h8e_1;
    this_0.i8e_1 = _this__u8e3s4.i8e_1;
    this_0.j8e_1 = _this__u8e3s4.j8e_1;
    this_0.k8e_1 = _this__u8e3s4.k8e_1;
    this_0.l8e_1 = _this__u8e3s4.l8e_1;
    this_0.m8e_1 = _this__u8e3s4.m8e_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_12(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new Language();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.lc8_1 = _this__u8e3s4.lc8_1;
    this_0.mc8_1 = _this__u8e3s4.mc8_1;
    this_0.nc8_1 = _this__u8e3s4.nc8_1;
    this_0.oc8_1 = _this__u8e3s4.oc8_1;
    this_0.pc8_1 = _this__u8e3s4.pc8_1;
    this_0.qc8_1 = _this__u8e3s4.qc8_1;
    this_0.rc8_1 = _this__u8e3s4.rc8_1;
    this_0.sc8_1 = _this__u8e3s4.sc8_1;
    this_0.tc8_1 = _this__u8e3s4.tc8_1;
    this_0.uc8_1 = _this__u8e3s4.uc8_1;
    this_0.vc8_1 = _this__u8e3s4.vc8_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_13(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new LeavingReason();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.t93_1 = _this__u8e3s4.t93_1;
    this_0.u93_1 = _this__u8e3s4.u93_1;
    this_0.v93_1 = _this__u8e3s4.v93_1;
    this_0.w93_1 = _this__u8e3s4.w93_1;
    this_0.x93_1 = _this__u8e3s4.x93_1;
    this_0.y93_1 = _this__u8e3s4.y93_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_14(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new PeerReviewerAllocation();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.kff_1 = _this__u8e3s4.kff_1;
    this_0.lff_1 = _this__u8e3s4.lff_1;
    this_0.mff_1 = _this__u8e3s4.mff_1;
    this_0.nff_1 = _this__u8e3s4.nff_1;
    this_0.off_1 = _this__u8e3s4.off_1;
    this_0.pff_1 = _this__u8e3s4.pff_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_15(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new PersonParentJoin();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.ofq_1 = _this__u8e3s4.ofq_1;
    this_0.pfq_1 = _this__u8e3s4.pfq_1;
    this_0.qfq_1 = _this__u8e3s4.qfq_1;
    this_0.rfq_1 = _this__u8e3s4.rfq_1;
    this_0.sfq_1 = _this__u8e3s4.sfq_1;
    this_0.tfq_1 = _this__u8e3s4.tfq_1;
    this_0.ufq_1 = _this__u8e3s4.ufq_1;
    this_0.vfq_1 = _this__u8e3s4.vfq_1;
    this_0.wfq_1 = _this__u8e3s4.wfq_1;
    this_0.xfq_1 = _this__u8e3s4.xfq_1;
    this_0.yfq_1 = _this__u8e3s4.yfq_1;
    this_0.zfq_1 = _this__u8e3s4.zfq_1;
    this_0.afr_1 = _this__u8e3s4.afr_1;
    this_0.bfr_1 = _this__u8e3s4.bfr_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_16(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new Person();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.f95_1 = _this__u8e3s4.f95_1;
    this_0.g95_1 = _this__u8e3s4.g95_1;
    this_0.h95_1 = _this__u8e3s4.h95_1;
    this_0.i95_1 = _this__u8e3s4.i95_1;
    this_0.j95_1 = _this__u8e3s4.j95_1;
    this_0.k95_1 = _this__u8e3s4.k95_1;
    this_0.l95_1 = _this__u8e3s4.l95_1;
    this_0.m95_1 = _this__u8e3s4.m95_1;
    this_0.n95_1 = _this__u8e3s4.n95_1;
    this_0.o95_1 = _this__u8e3s4.o95_1;
    this_0.p95_1 = _this__u8e3s4.p95_1;
    this_0.q95_1 = _this__u8e3s4.q95_1;
    this_0.r95_1 = _this__u8e3s4.r95_1;
    this_0.s95_1 = _this__u8e3s4.s95_1;
    this_0.t95_1 = _this__u8e3s4.t95_1;
    this_0.u95_1 = _this__u8e3s4.u95_1;
    this_0.v95_1 = _this__u8e3s4.v95_1;
    this_0.w95_1 = _this__u8e3s4.w95_1;
    this_0.x95_1 = _this__u8e3s4.x95_1;
    this_0.y95_1 = _this__u8e3s4.y95_1;
    this_0.z95_1 = _this__u8e3s4.z95_1;
    this_0.a96_1 = _this__u8e3s4.a96_1;
    this_0.b96_1 = _this__u8e3s4.b96_1;
    this_0.c96_1 = _this__u8e3s4.c96_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_17(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new ReportFilter();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.liz_1 = _this__u8e3s4.liz_1;
    this_0.miz_1 = _this__u8e3s4.miz_1;
    this_0.niz_1 = _this__u8e3s4.niz_1;
    this_0.oiz_1 = _this__u8e3s4.oiz_1;
    this_0.piz_1 = _this__u8e3s4.piz_1;
    this_0.qiz_1 = _this__u8e3s4.qiz_1;
    this_0.riz_1 = _this__u8e3s4.riz_1;
    this_0.siz_1 = _this__u8e3s4.siz_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_18(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new Schedule();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.pgr_1 = _this__u8e3s4.pgr_1;
    this_0.qgr_1 = _this__u8e3s4.qgr_1;
    this_0.rgr_1 = _this__u8e3s4.rgr_1;
    this_0.sgr_1 = _this__u8e3s4.sgr_1;
    this_0.tgr_1 = _this__u8e3s4.tgr_1;
    this_0.ugr_1 = _this__u8e3s4.ugr_1;
    this_0.vgr_1 = _this__u8e3s4.vgr_1;
    this_0.wgr_1 = _this__u8e3s4.wgr_1;
    this_0.xgr_1 = _this__u8e3s4.xgr_1;
    this_0.ygr_1 = _this__u8e3s4.ygr_1;
    this_0.zgr_1 = _this__u8e3s4.zgr_1;
    this_0.ags_1 = _this__u8e3s4.ags_1;
    this_0.bgs_1 = _this__u8e3s4.bgs_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_19(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new Site();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.qgz_1 = _this__u8e3s4.qgz_1;
    this_0.rgz_1 = _this__u8e3s4.rgz_1;
    this_0.sgz_1 = _this__u8e3s4.sgz_1;
    this_0.tgz_1 = _this__u8e3s4.tgz_1;
    this_0.ugz_1 = _this__u8e3s4.ugz_1;
    this_0.vgz_1 = _this__u8e3s4.vgz_1;
    this_0.wgz_1 = _this__u8e3s4.wgz_1;
    this_0.xgz_1 = _this__u8e3s4.xgz_1;
    this_0.ygz_1 = _this__u8e3s4.ygz_1;
    block(this_0);
    return this_0;
  }
  function shallowCopy_20(_this__u8e3s4, block) {
    // Inline function 'kotlin.also' call
    var this_0 = new SiteTerms();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.<anonymous>' call
    this_0.dh5_1 = _this__u8e3s4.dh5_1;
    this_0.eh5_1 = _this__u8e3s4.eh5_1;
    this_0.fh5_1 = _this__u8e3s4.fh5_1;
    this_0.gh5_1 = _this__u8e3s4.gh5_1;
    this_0.hh5_1 = _this__u8e3s4.hh5_1;
    this_0.ih5_1 = _this__u8e3s4.ih5_1;
    this_0.jh5_1 = _this__u8e3s4.jh5_1;
    this_0.kh5_1 = _this__u8e3s4.kh5_1;
    this_0.lh5_1 = _this__u8e3s4.lh5_1;
    block(this_0);
    return this_0;
  }
  function get_UNSET_DISTANT_FUTURE() {
    return UNSET_DISTANT_FUTURE;
  }
  var UNSET_DISTANT_FUTURE;
  function PermissionFlags() {
    PermissionFlags_instance = this;
    this.tiz_1 = new Long(1, 0);
    this.uiz_1 = new Long(2, 0);
    this.viz_1 = new Long(4, 0);
    this.wiz_1 = new Long(8, 0);
    this.xiz_1 = new Long(16, 0);
    this.yiz_1 = new Long(32, 0);
    this.ziz_1 = new Long(64, 0);
    this.aj0_1 = new Long(128, 0);
    this.bj0_1 = new Long(256, 0);
    this.cj0_1 = new Long(512, 0);
    this.dj0_1 = new Long(1024, 0);
    this.ej0_1 = new Long(2048, 0);
    this.fj0_1 = new Long(4096, 0);
    this.gj0_1 = new Long(8192, 0);
    this.hj0_1 = new Long(16384, 0);
    this.ij0_1 = new Long(32768, 0);
    this.jj0_1 = new Long(65536, 0);
    this.kj0_1 = new Long(131072, 0);
    this.lj0_1 = new Long(-1, 2147483647);
  }
  var PermissionFlags_instance;
  function PermissionFlags_getInstance() {
    if (PermissionFlags_instance == null)
      new PermissionFlags();
    return PermissionFlags_instance;
  }
  function ClazzAssignmentDaoCommon() {
    this.mj0_1 = '\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = :assignmentUid)\n                  LIMIT 1), 0)\n    ';
    this.nj0_1 = '\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = :assignmentUid) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = :assignmentUid)\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = :assignmentUid) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = :assignmentUid)\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = :assignmentUid)\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = :assignmentUid)\n                              AND CourseGroupMember.cgmPersonUid = :accountPersonUid\n                            LIMIT 1), -1)\n                    END\n    ';
    this.oj0_1 = "\n             WITH SubmitterList (submitterId, name)\n            AS (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n                       Person.firstNames || ' ' || Person.lastName AS name\n                  FROM ClazzEnrolment\n                  \n                       JOIN Person \n                       ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n                       \n                 WHERE :groupUid = 0 \n                   AND clazzEnrolmentClazzUid = :clazzUid\n                   AND clazzEnrolmentActive\n                   AND clazzEnrolmentRole = 1000\n              GROUP BY submitterId, name\n            UNION                 \n             SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n                    :group || ' ' || CourseGroupMember.cgmGroupNumber AS name  \n               FROM CourseGroupMember\n                    JOIN CourseGroupSet\n                    ON CourseGroupSet.cgsUid = :groupUid\n              WHERE CourseGroupMember.cgmSetUid = CourseGroupSet.cgsUid\n                AND CourseGroupMember.cgmGroupNumber != 0\n           GROUP BY submitterId, name\n            )\n        ";
    this.pj0_1 = '\n            HasLearningRecordSelectPermission (hasPermission) AS\n            (SELECT (\n                  (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = :clazzUid), 0) = :accountPersonUid)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = :accountPersonUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = :clazzUid\n                           AND (CoursePermission.cpToPersonUid = :accountPersonUid \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         128\n                  \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = :accountPersonUid\n                           AND (SystemPermission.spPermissionsFlag & \n     128\n                  \n        ) > 0)\n               )\n    ))\n        ';
    this.qj0_1 = '\n        AssignmentClazzUid(clazzUid) AS\n        (SELECT ClazzAssignment.caClazzUid\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = :assignmentUid)  \n    ';
    this.rj0_1 = '\n        AccountSubmitterUid(accountSubmitterUid) AS \n        (\n        SELECT CASE\n                    -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = :assignmentUid) = 0\n                         THEN (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = :assignmentUid)\n                  LIMIT 1), 0)\n    )\n                    -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero     \n                    WHEN (SELECT caGroupUid\n                            FROM ClazzAssignment\n                           WHERE caUid = :assignmentUid) != 0\n                          AND (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = :assignmentUid)\n                  LIMIT 1), 0)\n    ) = 0\n                          THEN 0\n                    -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n                    -- group that they are assigned to. If they are not assigned to a group but are enrolled\n                    -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n                    ELSE COALESCE(\n                          (SELECT CourseGroupMember.cgmGroupNumber\n                             FROM CourseGroupMember\n                            WHERE (\n        SELECT COALESCE(\n                (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n                   FROM ClazzEnrolment\n                  WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n                    AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                    AND ClazzEnrolment.clazzEnrolmentClazzUid = \n                        (SELECT ClazzAssignment.caClazzUid\n                           FROM ClazzAssignment\n                          WHERE ClazzAssignment.caUid = :assignmentUid)\n                  LIMIT 1), 0)\n    ) > 0\n                              AND CourseGroupMember.cgmSetUid = \n                                  (SELECT caGroupUid\n                                     FROM ClazzAssignment\n                                    WHERE caUid = :assignmentUid)\n                              AND CourseGroupMember.cgmPersonUid = :accountPersonUid\n                            LIMIT 1), -1)\n                    END\n    )\n    ';
    this.sj0_1 = '\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = :assignmentUid\n    ';
    this.tj0_1 = '\n        ((SELECT ClazzAssignment.caMarkingType\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = :assignmentUid) = 2)\n    ';
    this.uj0_1 = "\n        SubmitterList(submitterId, name) AS \n        -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n        (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n                Person.firstNames || ' ' || Person.lastName AS name\n           FROM ClazzEnrolment\n                JOIN Person \n                     ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n          WHERE (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = :assignmentUid\n    ) = 0\n            AND ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid\n            AND ClazzEnrolment.clazzEnrolmentRole = 1000\n            -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n            AND (\n                (SELECT hasPermission \n                   FROM HasLearningRecordSelectPermission)\n                OR  \n                 -- check if the active person eg accountpersonuid is assigned to mark this peer\n                 (\n        ((SELECT ClazzAssignment.caMarkingType\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = :assignmentUid) = 2)\n    \n                  AND\n                  EXISTS(SELECT PeerReviewerAllocation.praUid\n                           FROM PeerReviewerAllocation\n                          WHERE PeerReviewerAllocation.praAssignmentUid = :assignmentUid\n                            AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n                            AND PeerReviewerAllocation.praMarkerSubmitterUid = :accountPersonUid))\n                 )\n         UNION\n         -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n         SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n                :group || ' ' || CourseGroupMember.cgmGroupNumber AS name\n           FROM CourseGroupMember\n          WHERE (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = :assignmentUid\n    ) != 0\n            AND CourseGroupMember.cgmSetUid = (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = :assignmentUid\n    )\n            -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n            AND (\n                (SELECT hasPermission \n                   FROM HasLearningRecordSelectPermission)\n                OR \n                --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n                (\n        ((SELECT ClazzAssignment.caMarkingType\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = :assignmentUid) = 2)\n    \n                 AND\n                 EXISTS(SELECT PeerReviewerAllocation.praUid\n                          FROM PeerReviewerAllocation\n                         WHERE PeerReviewerAllocation.praAssignmentUid = :assignmentUid\n                           AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n                           AND PeerReviewerAllocation.praMarkerSubmitterUid = \n                               (SELECT CourseGroupMemberInner.cgmGroupNumber\n                                  FROM CourseGroupMember CourseGroupMemberInner\n                                 WHERE CourseGroupMemberInner.cgmSetUid = (\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = :assignmentUid\n    )\n                                   AND CourseGroupMemberInner.cgmPersonUid = :accountPersonUid\n                                 LIMIT 1)\n                        ))\n            )\n        )\n        \n    ";
    this.vj0_1 = 5;
    this.wj0_1 = 6;
  }
  var ClazzAssignmentDaoCommon_instance;
  function ClazzAssignmentDaoCommon_getInstance() {
    return ClazzAssignmentDaoCommon_instance;
  }
  function ClazzDaoCommon() {
    this.xj0_1 = 1;
    this.yj0_1 = 2;
    this.zj0_1 = 3;
    this.aj1_1 = 4;
    this.bj1_1 = 5;
    this.cj1_1 = 6;
    this.dj1_1 = 'SELECT * FROM Clazz WHERE CAST(isClazzActive AS INTEGER) = 1';
  }
  var ClazzDaoCommon_instance;
  function ClazzDaoCommon_getInstance() {
    return ClazzDaoCommon_instance;
  }
  function ClazzEnrolmentDaoCommon() {
    this.ej1_1 = 1;
    this.fj1_1 = 2;
    this.gj1_1 = 3;
    this.hj1_1 = 4;
    this.ij1_1 = 7;
    this.jj1_1 = 8;
    this.kj1_1 = 9;
    this.lj1_1 = 10;
    this.mj1_1 = 1;
    this.nj1_1 = '\n        WITH CurrentlyEnrolledPersonUids(enroledPersonUid) AS\n              (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS enroledPersonUid\n                 FROM ClazzEnrolment\n                WHERE ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid\n                  AND ClazzEnrolment.clazzEnrolmentRole = 1000\n                  AND :time BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft)\n    ';
    this.oj1_1 = '\n        SELECT ClazzEnrolment.clazzEnrolmentRole\n          FROM ClazzEnrolment\n         WHERE ClazzEnrolment.clazzEnrolmentUid = :clazzEnrolmentUid         \n    ';
    this.pj1_1 = '\n        CASE (\n        SELECT ClazzEnrolment.clazzEnrolmentRole\n          FROM ClazzEnrolment\n         WHERE ClazzEnrolment.clazzEnrolmentUid = :clazzEnrolmentUid         \n    )\n             WHEN 1000 THEN 8\n             ELSE 8\n        END     \n    ';
    this.qj1_1 = '\n        (SELECT EXISTS(\n                SELECT 1\n                  FROM ClazzEnrolment\n                 WHERE ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid\n                   AND ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n                   AND ClazzEnrolment.clazzEnrolmentRole = 1000))\n    ';
    this.rj1_1 = "\n        SELECT * \n          FROM (SELECT Person.*, PersonPicture.*,\n                       (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n        \n                       (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n        \n                       (SELECT ClazzEnrolment.clazzEnrolmentRole \n                          FROM ClazzEnrolment \n                         WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n                           AND ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid \n                           AND ClazzEnrolment.clazzEnrolmentActive\n                      ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n                         LIMIT 1) AS enrolmentRole\n                  FROM Person\n                       LEFT JOIN PersonPicture\n                                 ON PersonPicture.personPictureUid = Person.personUid\n                 WHERE Person.personUid IN \n                       (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n                          FROM ClazzEnrolment \n                         WHERE ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid \n                           AND ClazzEnrolment.clazzEnrolmentActive \n                           AND ClazzEnrolment.clazzEnrolmentRole = :roleId \n                           AND (:filter != 1 \n                                 OR (:currentTime \n                                      BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                                      AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n                   /* Begin permission check */\n                   AND (\n                           (\n         (\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = :clazzUid), 0) = :accountPersonUid)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = :accountPersonUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = :clazzUid\n                           AND (CoursePermission.cpToPersonUid = :accountPersonUid \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         :permission\n         \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = :accountPersonUid\n                           AND (SystemPermission.spPermissionsFlag & \n     :permission\n         \n        ) > 0)\n               )\n    \n    )\n                        OR Person.personUid = :accountPersonUid\n                       )  \n                   /* End permission check */                   \n                   AND Person.firstNames || ' ' || Person.lastName LIKE :searchText\n               GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n      ORDER BY CASE(:sortOrder)\n                WHEN 1 THEN CourseMember.firstNames\n                WHEN 3 THEN CourseMember.lastName\n                ELSE ''\n            END ASC,\n            CASE(:sortOrder)\n                WHEN 2 THEN CourseMember.firstNames\n                WHEN 4 THEN CourseMember.lastName\n                ELSE ''\n            END DESC,\n            CASE(:sortOrder)\n                WHEN 7 THEN CourseMember.earliestJoinDate\n                WHEN 9 THEN CourseMember.latestDateLeft\n                ELSE 0\n            END ASC,\n            CASE(:sortOrder)\n                WHEN 8 THEN CourseMember.earliestJoinDate\n                WHEN 10 THEN CourseMember.latestDateLeft\n                ELSE 0\n            END DESC\n    ";
    this.sj1_1 = "\n        PersonUids(personUid) AS (\n            SELECT CourseMember.personUid \n              FROM (SELECT Person.*,\n                           (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n                              FROM ClazzEnrolment \n                             WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n            \n                           (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n                              FROM ClazzEnrolment \n                             WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n            \n                           (SELECT ClazzEnrolment.clazzEnrolmentRole \n                              FROM ClazzEnrolment \n                             WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n                               AND ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid \n                               AND ClazzEnrolment.clazzEnrolmentActive\n                          ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n                             LIMIT 1) AS enrolmentRole\n                      FROM Person\n                     WHERE Person.personUid IN \n                           (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n                              FROM ClazzEnrolment \n                             WHERE ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid \n                               AND ClazzEnrolment.clazzEnrolmentActive \n                               AND ClazzEnrolment.clazzEnrolmentRole = :roleId \n                               AND (:filter != 1 \n                                     OR (:currentTime \n                                          BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                                          AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n                       /* Begin permission check */\n                       AND (\n                               ((\n             /* If the accountPersonUid is the owner of the course, all permissions are granted */\n             (COALESCE(\n                          (SELECT _Clazz_Permission.clazzOwnerPersonUid \n                             FROM Clazz _Clazz_Permission\n                            WHERE _Clazz_Permission.clazzUid = :clazzUid), 0) = :accountPersonUid)\n              /* \n              If there is a CoursePermission entity that is for the course as per the clazzUid\n              parameter that is granted to the person directly or to the enrolmentRole that the \n              person has in the course, then permission is granted.\n              */              \n              OR EXISTS(SELECT CoursePermission.cpUid\n                          FROM CoursePermission\n                               \n        LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n                        ON CoursePermission.cpToEnrolmentRole != 0\n                       AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n                           (SELECT COALESCE(\n                                   (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n                                      FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n                                     WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = :accountPersonUid\n                                       AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n                                  ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0))\n    \n                         WHERE CoursePermission.cpClazzUid = :clazzUid\n                           AND (CoursePermission.cpToPersonUid = :accountPersonUid \n                                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n                           AND (CoursePermission.cpPermissionsFlag & \n         128\n                                \n        ) > 0)\n              OR EXISTS(SELECT SystemPermission.spUid\n                          FROM SystemPermission\n                         WHERE SystemPermission.spToPersonUid = :accountPersonUid\n                           AND (SystemPermission.spPermissionsFlag & \n     128\n                                \n        ) > 0)\n               )\n    )\n                            OR Person.personUid = :accountPersonUid\n                           )  \n                       /* End permission check */                   \n                       AND Person.firstNames || ' ' || Person.lastName LIKE :searchText\n                   GROUP BY Person.personUid) AS CourseMember\n          ORDER BY CASE(:sortOrder)\n                    WHEN 1 THEN CourseMember.firstNames\n                    WHEN 3 THEN CourseMember.lastName\n                    ELSE ''\n                END ASC,\n                CASE(:sortOrder)\n                    WHEN 2 THEN CourseMember.firstNames\n                    WHEN 4 THEN CourseMember.lastName\n                    ELSE ''\n                END DESC,\n                CASE(:sortOrder)\n                    WHEN 7 THEN CourseMember.earliestJoinDate\n                    WHEN 9 THEN CourseMember.latestDateLeft\n                    ELSE 0\n                END ASC,\n                CASE(:sortOrder)\n                    WHEN 8 THEN CourseMember.earliestJoinDate\n                    WHEN 10 THEN CourseMember.latestDateLeft\n                    ELSE 0\n                END DESC\n             LIMIT :studentsLimit\n            OFFSET :studentsOffset   \n         )\n    ";
  }
  var ClazzEnrolmentDaoCommon_instance;
  function ClazzEnrolmentDaoCommon_getInstance() {
    return ClazzEnrolmentDaoCommon_instance;
  }
  function ContentEntryDaoCommon() {
    this.tj1_1 = 1;
    this.uj1_1 = 2;
    this.vj1_1 = '\n                   (SELECT MAX(StatementEntity.extensionProgress)\n                     FROM StatementEntity\n                    WHERE (SELECT includeResults FROM IncludeResults) = 1\n                      AND StatementEntity.statementActorPersonUid = :accountPersonUid\n                      AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                      AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                   ) AS sProgress,\n                   (SELECT CASE\n                       -- If a successful completion statement exists, then count as success\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = :accountPersonUid\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1    \n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n    )))\n                            THEN 1\n                       -- Else if no success record exists, however a fail record exists, mark as failed\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = :accountPersonUid\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n    )))\n                            THEN 0\n                            \n                       ELSE NULL\n                       END                    \n                   ) AS sIsSuccess,\n                   (SELECT EXISTS(\n                           SELECT 1\n                             FROM StatementEntity\n                            WHERE (SELECT includeResults FROM IncludeResults) = 1\n                              AND StatementEntity.statementActorPersonUid = :accountPersonUid\n                              AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                              AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                   ) AS sIsCompleted,\n                   (SELECT MAX(StatementEntity.resultScoreScaled)\n                      FROM StatementEntity\n                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                       AND StatementEntity.statementActorPersonUid = :accountPersonUid\n                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                   ) AS sScoreScaled\n    ';
    this.wj1_1 = '\n               :accountPersonUid AS sPersonUid,\n               0 AS sCbUid,\n               \n                   (SELECT MAX(StatementEntity.extensionProgress)\n                     FROM StatementEntity\n                    WHERE (SELECT includeResults FROM IncludeResults) = 1\n                      AND StatementEntity.statementActorPersonUid = :accountPersonUid\n                      AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                      AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                   ) AS sProgress,\n                   (SELECT CASE\n                       -- If a successful completion statement exists, then count as success\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = :accountPersonUid\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1    \n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n    )))\n                            THEN 1\n                       -- Else if no success record exists, however a fail record exists, mark as failed\n                       WHEN (SELECT EXISTS(\n                                    SELECT 1\n                                      FROM StatementEntity\n                                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                                       AND StatementEntity.statementActorPersonUid = :accountPersonUid\n                                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n                                       AND (\n              CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n          AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n          AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n    )))\n                            THEN 0\n                            \n                       ELSE NULL\n                       END                    \n                   ) AS sIsSuccess,\n                   (SELECT EXISTS(\n                           SELECT 1\n                             FROM StatementEntity\n                            WHERE (SELECT includeResults FROM IncludeResults) = 1\n                              AND StatementEntity.statementActorPersonUid = :accountPersonUid\n                              AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                              AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                   ) AS sIsCompleted,\n                   (SELECT MAX(StatementEntity.resultScoreScaled)\n                      FROM StatementEntity\n                     WHERE (SELECT includeResults FROM IncludeResults) = 1\n                       AND StatementEntity.statementActorPersonUid = :accountPersonUid\n                       AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n                   ) AS sScoreScaled\n    \n    ';
  }
  var ContentEntryDaoCommon_instance;
  function ContentEntryDaoCommon_getInstance() {
    return ContentEntryDaoCommon_instance;
  }
  function CourseAssignmentMarkDaoCommon() {
    this.xj1_1 = 1;
    this.yj1_1 = 0;
  }
  var CourseAssignmentMarkDaoCommon_instance;
  function CourseAssignmentMarkDaoCommon_getInstance() {
    return CourseAssignmentMarkDaoCommon_instance;
  }
  function deactivateByUids(_this__u8e3s4, uidList, changeTime, $completion) {
    var tmp = new $deactivateByUidsCOROUTINE$468(_this__u8e3s4, uidList, changeTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  }
  function $deactivateByUidsCOROUTINE$468(_this__u8e3s4, uidList, changeTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.hj2_1 = _this__u8e3s4;
    this.ij2_1 = uidList;
    this.jj2_1 = changeTime;
  }
  protoOf($deactivateByUidsCOROUTINE$468).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.kj2_1 = this.ij2_1;
            this.lj2_1 = this.kj2_1.w();
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.lj2_1.f()) {
              this.hd_1 = 3;
              continue $sm;
            }

            this.mj2_1 = this.lj2_1.e();
            var tmp_1 = this;
            tmp_1.nj2_1 = this.mj2_1;
            this.hd_1 = 2;
            suspendResult = this.hj2_1.gc6(this.nj2_1, false, this.jj2_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.hd_1 = 1;
            continue $sm;
          case 3:
            return Unit_instance;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function CourseGroupSetDaoConstants() {
    this.oj2_1 = 1;
    this.pj2_1 = 2;
  }
  var CourseGroupSetDaoConstants_instance;
  function CourseGroupSetDaoConstants_getInstance() {
    return CourseGroupSetDaoConstants_instance;
  }
  function LanguageDaoCommon() {
    this.qj2_1 = 1;
    this.rj2_1 = 2;
    this.sj2_1 = 3;
    this.tj2_1 = 4;
    this.uj2_1 = 5;
    this.vj2_1 = 6;
  }
  var LanguageDaoCommon_instance;
  function LanguageDaoCommon_getInstance() {
    return LanguageDaoCommon_instance;
  }
  function deactivateByUids_0(_this__u8e3s4, uidList, changeTime, $completion) {
    var tmp = new $deactivateByUidsCOROUTINE$469(_this__u8e3s4, uidList, changeTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  }
  function $deactivateByUidsCOROUTINE$469(_this__u8e3s4, uidList, changeTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ej3_1 = _this__u8e3s4;
    this.fj3_1 = uidList;
    this.gj3_1 = changeTime;
  }
  protoOf($deactivateByUidsCOROUTINE$469).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.hj3_1 = this.fj3_1;
            this.ij3_1 = this.hj3_1.w();
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.ij3_1.f()) {
              this.hd_1 = 3;
              continue $sm;
            }

            this.jj3_1 = this.ij3_1.e();
            var tmp_1 = this;
            tmp_1.kj3_1 = this.jj3_1;
            this.hd_1 = 2;
            suspendResult = this.ej3_1.gc6(this.kj3_1, false, this.gj3_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.hd_1 = 1;
            continue $sm;
          case 3:
            return Unit_instance;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function PersonDaoCommon() {
    this.lj3_1 = 1;
    this.mj3_1 = 2;
    this.nj3_1 = 3;
    this.oj3_1 = 4;
    this.pj3_1 = "\n         WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n              /* Select personUids that can be viewed based on CoursePermission given the active user \n                 for their enrolments \n              */\n              (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n                 FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n                      JOIN CoursePermission \n                           ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n                          AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n                          AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n                      JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n                           ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                WHERE :accountPersonUid != 0\n                  AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = :accountPersonUid\n                  AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n              \n               UNION\n               /* Select personUids that can be viewed based on CoursePermission for the active user\n                  where the CoursePermission is granted directly to them\n                */   \n               SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n                 FROM CoursePermission\n                      JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n                           ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n                WHERE :accountPersonUid != 0\n                  AND CoursePermission.cpToPersonUid = :accountPersonUid)\n               \n         SELECT Person.*, PersonPicture.*\n           FROM Person\n                LEFT JOIN PersonPicture\n                     ON PersonPicture.personPictureUid = Person.personUid\n          WHERE /* Begin permission check */ \n                (         \n                      (\n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE :accountPersonUid != 0 \n                  AND SystemPermission.spToPersonUid = :accountPersonUid\n                  AND (SystemPermission.spPermissionsFlag &\n    \n                       8192\n                       \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    )\n                    OR (Person.personUid IN \n                               (SELECT CanViewPersonUidsViaCoursePermission.personUid\n                                  FROM CanViewPersonUidsViaCoursePermission))\n                    OR (Person.personUid = :accountPersonUid)\n                )\n                /* End permission check */\n           AND (:excludeClazz = 0 OR :excludeClazz NOT IN\n                    (SELECT clazzEnrolmentClazzUid \n                       FROM ClazzEnrolment \n                      WHERE clazzEnrolmentPersonUid = Person.personUid \n                            AND :timestamp BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n                                AND ClazzEnrolment.clazzEnrolmentDateLeft\n                        AND ClazzEnrolment.clazzEnrolmentActive))\n           AND Person.personType = 0                  \n           AND (Person.personUid NOT IN (:excludeSelected))\n           AND (:searchText = '%' \n               OR Person.firstNames || ' ' || Person.lastName LIKE :searchText)\n      GROUP BY Person.personUid, PersonPicture.personPictureUid\n      ORDER BY CASE(:sortOrder)\n               WHEN 1 THEN Person.firstNames\n               WHEN 3 THEN Person.lastName\n               ELSE ''\n               END ASC,\n               CASE(:sortOrder)\n               WHEN 2 THEN Person.firstNames\n               WHEN 4 THEN Person.lastName\n               ELSE ''\n               END DESC\n    ";
  }
  var PersonDaoCommon_instance;
  function PersonDaoCommon_getInstance() {
    return PersonDaoCommon_instance;
  }
  function deactivateByUids_1(_this__u8e3s4, uidList, changeTime, $completion) {
    var tmp = new $deactivateByUidsCOROUTINE$470(_this__u8e3s4, uidList, changeTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  }
  function $deactivateByUidsCOROUTINE$470(_this__u8e3s4, uidList, changeTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.yj3_1 = _this__u8e3s4;
    this.zj3_1 = uidList;
    this.aj4_1 = changeTime;
  }
  protoOf($deactivateByUidsCOROUTINE$470).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            var tmp_0 = this;
            tmp_0.bj4_1 = this.zj3_1;
            this.cj4_1 = this.bj4_1.w();
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.cj4_1.f()) {
              this.hd_1 = 3;
              continue $sm;
            }

            this.dj4_1 = this.cj4_1.e();
            var tmp_1 = this;
            tmp_1.ej4_1 = this.dj4_1;
            this.hd_1 = 2;
            suspendResult = this.yj3_1.ugq(this.ej4_1, false, this.aj4_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.hd_1 = 1;
            continue $sm;
          case 3:
            return Unit_instance;
          case 4:
            throw this.kd_1;
        }
      } catch ($p) {
        var e = $p;
        if (this.id_1 === 4) {
          throw e;
        } else {
          this.hd_1 = this.id_1;
          this.kd_1 = e;
        }
      }
     while (true);
  };
  function get_MIGRATION_105_106() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_105_106;
  }
  var MIGRATION_105_106;
  function get_MIGRATION_106_107() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_106_107;
  }
  var MIGRATION_106_107;
  function get_MIGRATION_107_108() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_107_108;
  }
  var MIGRATION_107_108;
  function get_MIGRATION_108_109() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_108_109;
  }
  var MIGRATION_108_109;
  function get_MIGRATION_120_121() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_120_121;
  }
  var MIGRATION_120_121;
  function get_MIGRATION_121_122() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_121_122;
  }
  var MIGRATION_121_122;
  function get_MIGRATION_122_123() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_122_123;
  }
  var MIGRATION_122_123;
  function get_MIGRATION_123_124() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_123_124;
  }
  var MIGRATION_123_124;
  function get_MIGRATION_124_125() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_124_125;
  }
  var MIGRATION_124_125;
  function get_MIGRATION_125_126() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_125_126;
  }
  var MIGRATION_125_126;
  function get_MIGRATION_126_127() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_126_127;
  }
  var MIGRATION_126_127;
  function get_MIGRATION_127_128() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_127_128;
  }
  var MIGRATION_127_128;
  function get_MIGRATION_128_129() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_128_129;
  }
  var MIGRATION_128_129;
  function get_MIGRATION_129_130() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_129_130;
  }
  var MIGRATION_129_130;
  function get_MIGRATION_130_131() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_130_131;
  }
  var MIGRATION_130_131;
  function get_MIGRATION_132_133() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_132_133;
  }
  var MIGRATION_132_133;
  function get_MIGRATION_133_134() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_133_134;
  }
  var MIGRATION_133_134;
  function get_MIGRATION_134_135() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_134_135;
  }
  var MIGRATION_134_135;
  function get_MIGRATION_135_136() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_135_136;
  }
  var MIGRATION_135_136;
  function get_MIGRATION_136_137() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_136_137;
  }
  var MIGRATION_136_137;
  function get_MIGRATION_137_138() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_137_138;
  }
  var MIGRATION_137_138;
  function get_MIGRATION_138_139() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_138_139;
  }
  var MIGRATION_138_139;
  function get_MIGRATION_139_140() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_139_140;
  }
  var MIGRATION_139_140;
  function get_MIGRATION_140_141() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_140_141;
  }
  var MIGRATION_140_141;
  function get_MIGRATION_141_142() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_141_142;
  }
  var MIGRATION_141_142;
  function get_MIGRATION_142_143() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_142_143;
  }
  var MIGRATION_142_143;
  function get_MIGRATION_143_144() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_143_144;
  }
  var MIGRATION_143_144;
  var MIGRATION_144_145_SERVER;
  function get_MIGRATION_144_145_CLIENT() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_144_145_CLIENT;
  }
  var MIGRATION_144_145_CLIENT;
  function get_MIGRATION_145_146() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_145_146;
  }
  var MIGRATION_145_146;
  function get_MIGRATION_146_147() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_146_147;
  }
  var MIGRATION_146_147;
  function get_MIGRATION_147_148() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_147_148;
  }
  var MIGRATION_147_148;
  var MIGRATION_148_149_CLIENT_WITH_OFFLINE_ITEMS;
  function get_MIGRATION_148_149_NO_OFFLINE_ITEMS() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_148_149_NO_OFFLINE_ITEMS;
  }
  var MIGRATION_148_149_NO_OFFLINE_ITEMS;
  function get_MIGRATION_149_150() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_149_150;
  }
  var MIGRATION_149_150;
  function get_MIGRATION_150_151() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_150_151;
  }
  var MIGRATION_150_151;
  function get_MIGRATION_151_152() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_151_152;
  }
  var MIGRATION_151_152;
  function get_MIGRATION_152_153() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_152_153;
  }
  var MIGRATION_152_153;
  function get_MIGRATION_153_154() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_153_154;
  }
  var MIGRATION_153_154;
  function get_MIGRATION_154_155() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_154_155;
  }
  var MIGRATION_154_155;
  var MIGRATION_155_156_SERVER;
  function get_MIGRATION_155_156_CLIENT() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_155_156_CLIENT;
  }
  var MIGRATION_155_156_CLIENT;
  function get_MIGRATION_156_157() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_156_157;
  }
  var MIGRATION_156_157;
  function get_MIGRATION_157_158() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_157_158;
  }
  var MIGRATION_157_158;
  function get_MIGRATION_158_159() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_158_159;
  }
  var MIGRATION_158_159;
  function get_MIGRATION_159_160() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_159_160;
  }
  var MIGRATION_159_160;
  function get_MIGRATION_160_161() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_160_161;
  }
  var MIGRATION_160_161;
  var MIGRATION_161_162_SERVER;
  function get_MIGRATION_161_162_CLIENT() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_161_162_CLIENT;
  }
  var MIGRATION_161_162_CLIENT;
  function get_MIGRATION_162_163() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_162_163;
  }
  var MIGRATION_162_163;
  function get_MIGRATION_163_164() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_163_164;
  }
  var MIGRATION_163_164;
  function get_MIGRATION_164_165() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_164_165;
  }
  var MIGRATION_164_165;
  function get_MIGRATION_165_166() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_165_166;
  }
  var MIGRATION_165_166;
  function get_MIGRATION_166_167() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_166_167;
  }
  var MIGRATION_166_167;
  function get_MIGRATION_167_168() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_167_168;
  }
  var MIGRATION_167_168;
  function get_MIGRATION_168_169() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_168_169;
  }
  var MIGRATION_168_169;
  var MIGRATION_169_170_SERVER;
  function get_MIGRATION_169_170_CLIENT() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_169_170_CLIENT;
  }
  var MIGRATION_169_170_CLIENT;
  function get_MIGRATION_170_171() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_170_171;
  }
  var MIGRATION_170_171;
  function get_MIGRATION_171_172() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_171_172;
  }
  var MIGRATION_171_172;
  function get_MIGRATION_172_194() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_172_194;
  }
  var MIGRATION_172_194;
  function get_MIGRATION_194_195() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_194_195;
  }
  var MIGRATION_194_195;
  function get_MIGRATION_195_196() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_195_196;
  }
  var MIGRATION_195_196;
  function get_MIGRATION_196_197() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_196_197;
  }
  var MIGRATION_196_197;
  function get_MIGRATION_197_198() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_197_198;
  }
  var MIGRATION_197_198;
  function get_MIGRATION_198_199() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_198_199;
  }
  var MIGRATION_198_199;
  function get_MIGRATION_199_200() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_199_200;
  }
  var MIGRATION_199_200;
  function get_MIGRATION_200_201() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_200_201;
  }
  var MIGRATION_200_201;
  function get_MIGRATION_201_202() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_201_202;
  }
  var MIGRATION_201_202;
  function migrationList() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return listOf_0([get_MIGRATION_105_106(), get_MIGRATION_106_107(), get_MIGRATION_107_108(), get_MIGRATION_108_109(), get_MIGRATION_120_121(), get_MIGRATION_121_122(), get_MIGRATION_122_123(), get_MIGRATION_123_124(), get_MIGRATION_124_125(), get_MIGRATION_125_126(), get_MIGRATION_126_127(), get_MIGRATION_127_128(), get_MIGRATION_128_129(), get_MIGRATION_129_130(), get_MIGRATION_130_131(), get_MIGRATION_132_133(), get_MIGRATION_133_134(), get_MIGRATION_134_135(), get_MIGRATION_135_136(), get_MIGRATION_136_137(), get_MIGRATION_137_138(), get_MIGRATION_138_139(), get_MIGRATION_139_140(), get_MIGRATION_140_141(), get_MIGRATION_141_142(), get_MIGRATION_142_143(), get_MIGRATION_143_144(), get_MIGRATION_145_146(), get_MIGRATION_146_147(), get_MIGRATION_147_148(), get_MIGRATION_149_150(), get_MIGRATION_150_151(), get_MIGRATION_151_152(), get_MIGRATION_152_153(), get_MIGRATION_153_154(), get_MIGRATION_154_155(), get_MIGRATION_156_157(), get_MIGRATION_157_158(), get_MIGRATION_158_159(), get_MIGRATION_159_160(), get_MIGRATION_160_161(), get_MIGRATION_162_163(), get_MIGRATION_163_164(), get_MIGRATION_164_165(), get_MIGRATION_165_166(), get_MIGRATION_166_167(), get_MIGRATION_167_168(), get_MIGRATION_168_169(), get_MIGRATION_170_171(), get_MIGRATION_171_172(), get_MIGRATION_172_194(), get_MIGRATION_194_195(), get_MIGRATION_195_196(), get_MIGRATION_196_197(), get_MIGRATION_197_198(), get_MIGRATION_198_199(), get_MIGRATION_199_200(), get_MIGRATION_200_201(), get_MIGRATION_201_202()]);
  }
  function MIGRATION_105_106$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.mutableListOf' call
    var stmtList = ArrayList_init_$Create$();
    // Inline function 'kotlin.collections.plusAssign' call
    var element = 'ALTER TABLE CourseAssignmentSubmissionAttachment ADD COLUMN casaFileName TEXT';
    stmtList.i1(element);
    return stmtList;
  }
  function MIGRATION_106_107$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.apply' call
    // Inline function 'kotlin.collections.mutableListOf' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_106_107.<anonymous>.<anonymous>' call
    this_0.i1('DROP TABLE IF EXISTS SqliteChangeSeqNums');
    this_0.i1('DROP TABLE IF EXISTS UpdateNotification');
    return this_0;
  }
  function MIGRATION_107_108$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.mutableListOf' call
    var stmtList = ArrayList_init_$Create$();
    // Inline function 'kotlin.collections.plusAssign' call
    var element = 'ALTER TABLE CourseAssignmentMark ADD COLUMN camMarkerComment TEXT';
    stmtList.i1(element);
    // Inline function 'kotlin.collections.plusAssign' call
    var element_0 = 'ALTER TABLE ClazzAssignment ADD COLUMN caPeerReviewerCount  INTEGER  NOT NULL  DEFAULT 0';
    stmtList.i1(element_0);
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      // Inline function 'kotlin.collections.plusAssign' call
      var element_1 = 'ALTER TABLE CourseAssignmentMark ADD COLUMN camMarkerSubmitterUid  INTEGER  NOT NULL  DEFAULT 0';
      stmtList.i1(element_1);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_2 = 'ALTER TABLE CourseAssignmentMark ADD COLUMN camMarkerPersonUid  INTEGER  NOT NULL  DEFAULT 0';
      stmtList.i1(element_2);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_3 = 'CREATE TABLE IF NOT EXISTS PeerReviewerAllocation (`praUid` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `praMarkerSubmitterUid` INTEGER NOT NULL, `praToMarkerSubmitterUid` INTEGER NOT NULL, `praAssignmentUid` INTEGER NOT NULL, `praActive` INTEGER NOT NULL, `praLct` INTEGER NOT NULL)';
      stmtList.i1(element_3);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_4 = 'CREATE TABLE IF NOT EXISTS PeerReviewerAllocationReplicate (`prarPk` INTEGER NOT NULL, `prarVersionId` INTEGER NOT NULL DEFAULT 0, `prarDestination` INTEGER NOT NULL, `prarPending` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`prarPk`, `prarDestination`))';
      stmtList.i1(element_4);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_5 = 'CREATE INDEX IF NOT EXISTS `index_PeerReviewerAllocationReplicate_prarPk_prarDestination_prarVersionId` ON PeerReviewerAllocationReplicate (`prarPk`, `prarDestination`, `prarVersionId`)';
      stmtList.i1(element_5);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_6 = 'CREATE INDEX IF NOT EXISTS `index_PeerReviewerAllocationReplicate_prarDestination_prarPending` ON PeerReviewerAllocationReplicate (`prarDestination`, `prarPending`)';
      stmtList.i1(element_6);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_7 = ' CREATE TRIGGER ch_ins_140 AFTER INSERT ON PeerReviewerAllocation BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 140 AS chTableId, NEW.praUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 140 AND chEntityPk = NEW.praUid); END ';
      stmtList.i1(element_7);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_8 = ' CREATE TRIGGER ch_upd_140 AFTER UPDATE ON PeerReviewerAllocation BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 140 AS chTableId, NEW.praUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 140 AND chEntityPk = NEW.praUid); END ';
      stmtList.i1(element_8);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_9 = ' CREATE TRIGGER ch_del_140 AFTER DELETE ON PeerReviewerAllocation BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 140 AS chTableId, OLD.praUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 140 AND chEntityPk = OLD.praUid); END ';
      stmtList.i1(element_9);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_10 = 'CREATE VIEW PeerReviewerAllocation_ReceiveView AS  SELECT PeerReviewerAllocation.*, ClazzAssignmentReplicate.* FROM PeerReviewerAllocation LEFT JOIN ClazzAssignmentReplicate ON ClazzAssignmentReplicate.caPk = PeerReviewerAllocation.praUid ';
      stmtList.i1(element_10);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_11 = ' CREATE TRIGGER peerreviewerallocation_remote_insert_ins INSTEAD OF INSERT ON PeerReviewerAllocation_ReceiveView FOR EACH ROW BEGIN REPLACE INTO PeerReviewerAllocation(praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES (NEW.praUid, NEW.praMarkerSubmitterUid, NEW.praToMarkerSubmitterUid, NEW.praAssignmentUid, NEW.praActive, NEW.praLct) /*psql ON CONFLICT (praUid) DO UPDATE SET praMarkerSubmitterUid = EXCLUDED.praMarkerSubmitterUid, praToMarkerSubmitterUid = EXCLUDED.praToMarkerSubmitterUid, praAssignmentUid = EXCLUDED.praAssignmentUid, praActive = EXCLUDED.praActive, praLct = EXCLUDED.praLct */; END ';
      stmtList.i1(element_11);
    } else {
      // Inline function 'kotlin.collections.plusAssign' call
      var element_12 = 'ALTER TABLE CourseAssignmentMark ADD COLUMN camMarkerSubmitterUid  BIGINT  NOT NULL  DEFAULT 0';
      stmtList.i1(element_12);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_13 = 'ALTER TABLE CourseAssignmentMark ADD COLUMN camMarkerPersonUid  BIGINT  NOT NULL  DEFAULT 0';
      stmtList.i1(element_13);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_14 = 'CREATE TABLE IF NOT EXISTS PeerReviewerAllocation (  praMarkerSubmitterUid  BIGINT  NOT NULL , praToMarkerSubmitterUid  BIGINT  NOT NULL , praAssignmentUid  BIGINT  NOT NULL , praActive  BOOL  NOT NULL , praLct  BIGINT  NOT NULL , praUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      stmtList.i1(element_14);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_15 = 'CREATE TABLE IF NOT EXISTS PeerReviewerAllocationReplicate (  prarPk  BIGINT  NOT NULL , prarVersionId  BIGINT  NOT NULL  DEFAULT 0 , prarDestination  BIGINT  NOT NULL , prarPending  BOOL  NOT NULL  DEFAULT true, PRIMARY KEY (prarPk, prarDestination) )';
      stmtList.i1(element_15);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_16 = 'CREATE INDEX index_PeerReviewerAllocationReplicate_prarPk_prarDestination_prarVersionId ON PeerReviewerAllocationReplicate (prarPk, prarDestination, prarVersionId)';
      stmtList.i1(element_16);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_17 = 'CREATE INDEX index_PeerReviewerAllocationReplicate_prarDestination_prarPending ON PeerReviewerAllocationReplicate (prarDestination, prarPending)';
      stmtList.i1(element_17);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_18 = ' CREATE OR REPLACE FUNCTION ch_upd_140_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (140, NEW.praUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql ';
      stmtList.i1(element_18);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_19 = ' CREATE TRIGGER ch_upd_140_trig AFTER UPDATE OR INSERT ON PeerReviewerAllocation FOR EACH ROW EXECUTE PROCEDURE ch_upd_140_fn(); ';
      stmtList.i1(element_19);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_20 = ' CREATE OR REPLACE FUNCTION ch_del_140_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (140, OLD.praUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql ';
      stmtList.i1(element_20);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_21 = ' CREATE TRIGGER ch_del_140_trig AFTER DELETE ON PeerReviewerAllocation FOR EACH ROW EXECUTE PROCEDURE ch_del_140_fn(); ';
      stmtList.i1(element_21);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_22 = 'CREATE VIEW PeerReviewerAllocation_ReceiveView AS  SELECT PeerReviewerAllocation.*, ClazzAssignmentReplicate.* FROM PeerReviewerAllocation LEFT JOIN ClazzAssignmentReplicate ON ClazzAssignmentReplicate.caPk = PeerReviewerAllocation.praUid ';
      stmtList.i1(element_22);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_23 = "CREATE OR REPLACE FUNCTION peerreviewerallocation_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO PeerReviewerAllocation(praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES (NEW.praUid, NEW.praMarkerSubmitterUid, NEW.praToMarkerSubmitterUid, NEW.praAssignmentUid, NEW.praActive, NEW.praLct) ON CONFLICT (praUid) DO UPDATE SET praMarkerSubmitterUid = EXCLUDED.praMarkerSubmitterUid, praToMarkerSubmitterUid = EXCLUDED.praToMarkerSubmitterUid, praAssignmentUid = EXCLUDED.praAssignmentUid, praActive = EXCLUDED.praActive, praLct = EXCLUDED.praLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql";
      stmtList.i1(element_23);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_24 = ' CREATE TRIGGER peerreviewerallocation_remote_insert_trig INSTEAD OF INSERT ON PeerReviewerAllocation_ReceiveView FOR EACH ROW EXECUTE PROCEDURE peerreviewerallocation_remote_insert_fn() ';
      stmtList.i1(element_24);
    }
    return stmtList;
  }
  function MIGRATION_108_109$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.mutableListOf' call
    var stmtList = ArrayList_init_$Create$();
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      // Inline function 'kotlin.collections.plusAssign' call
      var element = 'CREATE TABLE IF NOT EXISTS ExternalAppPermission (  eapPersonUid  INTEGER  NOT NULL , eapPackageId  TEXT , eapStartTime  INTEGER  NOT NULL , eapExpireTime  INTEGER  NOT NULL , eapAuthToken  TEXT , eapAndroidAccountName  TEXT , eapUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      stmtList.i1(element);
    } else {
      // Inline function 'kotlin.collections.plusAssign' call
      var element_0 = 'CREATE TABLE IF NOT EXISTS ExternalAppPermission (  eapPersonUid  BIGINT  NOT NULL , eapPackageId  TEXT , eapStartTime  BIGINT  NOT NULL , eapExpireTime  BIGINT  NOT NULL , eapAuthToken  TEXT , eapAndroidAccountName  TEXT , eapUid  SERIAL  PRIMARY KEY  NOT NULL )';
      stmtList.i1(element_0);
    }
    return stmtList;
  }
  function MIGRATION_120_121$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_120_121.<anonymous>.<anonymous>' call
    var tmp0_subject = dbType(db);
    Companion_getInstance_1();
    if (tmp0_subject === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS StudentResult (  srSourcedId  TEXT , srCourseBlockUid  INTEGER  NOT NULL , srClazzUid  INTEGER  NOT NULL , srAssignmentUid  INTEGER  NOT NULL , srLineItemSourcedId  TEXT , srStatus  INTEGER  NOT NULL , srMetaData  TEXT , srStudentPersonUid  INTEGER  NOT NULL , srStudentGroupId  INTEGER  NOT NULL , srMarkerPersonUid  INTEGER  NOT NULL , srMarkerGroupId  INTEGER  NOT NULL , srScoreStatus  INTEGER  NOT NULL , srScore  REAl  NOT NULL , srScoreDate  INTEGER  NOT NULL , srLastModified  INTEGER  NOT NULL , srComment  TEXT , srAppId  TEXT , srActive  INTEGER  NOT NULL , srUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
    } else {
      Companion_getInstance_1();
      if (tmp0_subject === 2) {
        this_0.i1('CREATE TABLE IF NOT EXISTS StudentResult (  srSourcedId  TEXT , srCourseBlockUid  BIGINT  NOT NULL , srClazzUid  BIGINT  NOT NULL , srAssignmentUid  BIGINT  NOT NULL , srLineItemSourcedId  TEXT , srStatus  INTEGER  NOT NULL , srMetaData  TEXT , srStudentPersonUid  BIGINT  NOT NULL , srStudentGroupId  INTEGER  NOT NULL , srMarkerPersonUid  BIGINT  NOT NULL , srMarkerGroupId  INTEGER  NOT NULL , srScoreStatus  INTEGER  NOT NULL , srScore  FLOAT  NOT NULL , srScoreDate  BIGINT  NOT NULL , srLastModified  BIGINT  NOT NULL , srComment  TEXT , srAppId  TEXT , srActive  BOOL  NOT NULL , srUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
      }
    }
    return this_0.f3();
  }
  function MIGRATION_121_122$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_121_122.<anonymous>.<anonymous>' call
    var tmp0_subject = dbType(db);
    Companion_getInstance_1();
    if (tmp0_subject === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS OutgoingReplication (  destNodeId  INTEGER  NOT NULL , orPk1  INTEGER  NOT NULL , orPk2  INTEGER  NOT NULL , orTableId  INTEGER  NOT NULL , orUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
      this_0.i1('CREATE TABLE IF NOT EXISTS ReplicationOperation (  repOpRemoteNodeId  INTEGER  NOT NULL , repOpStatus  INTEGER  NOT NULL , repOpTableId  INTEGER  NOT NULL , PRIMARY KEY (repOpRemoteNodeId, repOpTableId) )');
      this_0.i1('CREATE TABLE IF NOT EXISTS PendingRepositorySession (  endpointUrl  TEXT , remoteNodeId  INTEGER  NOT NULL , rsUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
    } else {
      Companion_getInstance_1();
      if (tmp0_subject === 2) {
        this_0.i1('CREATE TABLE IF NOT EXISTS OutgoingReplication (  destNodeId  BIGINT  NOT NULL , orPk1  BIGINT  NOT NULL , orPk2  BIGINT  NOT NULL , orTableId  INTEGER  NOT NULL , orUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
        this_0.i1('CREATE TABLE IF NOT EXISTS ReplicationOperation (  repOpRemoteNodeId  BIGINT  NOT NULL , repOpStatus  INTEGER  NOT NULL , repOpTableId  INTEGER  NOT NULL , PRIMARY KEY (repOpRemoteNodeId, repOpTableId) )');
        this_0.i1('CREATE TABLE IF NOT EXISTS PendingRepositorySession (  endpointUrl  TEXT , remoteNodeId  BIGINT  NOT NULL , rsUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
      }
    }
    return this_0.f3();
  }
  function MIGRATION_122_123$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return listOf('DROP TABLE IF EXISTS CourseDiscussion');
  }
  function MIGRATION_123_124$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_123_124.<anonymous>.<anonymous>' call
    this_0.i1('DROP TABLE IF EXISTS ContentJobItem');
    this_0.i1('DROP TABLE IF EXISTS ContentJob');
    var tmp0_subject = dbType(db);
    Companion_getInstance_1();
    if (tmp0_subject === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS ContentJob (  toUri  TEXT , cjProgress  INTEGER  NOT NULL , cjTotal  INTEGER  NOT NULL , cjNotificationTitle  TEXT , cjIsMeteredAllowed  INTEGER  NOT NULL , params  TEXT , cjLct  INTEGER  NOT NULL , cjUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
      this_0.i1('CREATE TABLE IF NOT EXISTS ContentJobItem (  cjiJobUid  INTEGER  NOT NULL , sourceUri  TEXT , cjiIsLeaf  INTEGER  NOT NULL , cjiContentEntryUid  INTEGER  NOT NULL , cjiParentContentEntryUid  INTEGER  NOT NULL , cjiContainerUid  INTEGER  NOT NULL , cjiItemProgress  INTEGER  NOT NULL , cjiItemTotal  INTEGER  NOT NULL , cjiRecursiveProgress  INTEGER  NOT NULL , cjiRecursiveTotal  INTEGER  NOT NULL , cjiStatus  INTEGER  NOT NULL , cjiRecursiveStatus  INTEGER  NOT NULL , cjiConnectivityNeeded  INTEGER  NOT NULL , cjiPluginId  INTEGER  NOT NULL , cjiAttemptCount  INTEGER  NOT NULL , cjiParentCjiUid  INTEGER  NOT NULL , cjiServerJobId  INTEGER  NOT NULL , cjiStartTime  INTEGER  NOT NULL , cjiFinishTime  INTEGER  NOT NULL , cjiUploadSessionUid  TEXT , cjiContentDeletedOnCancellation  INTEGER  NOT NULL , cjiContainerProcessed  INTEGER  NOT NULL , cjiLastModified  INTEGER  NOT NULL , cjiUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
      this_0.i1('CREATE INDEX index_ContentJobItem_cjiContentEntryUid_cjiFinishTime ON ContentJobItem (cjiContentEntryUid, cjiFinishTime)');
    } else {
      Companion_getInstance_1();
      if (tmp0_subject === 2) {
        this_0.i1('CREATE TABLE IF NOT EXISTS ContentJob (  toUri  TEXT , cjProgress  BIGINT  NOT NULL , cjTotal  BIGINT  NOT NULL , cjNotificationTitle  TEXT , cjIsMeteredAllowed  BOOL  NOT NULL , params  TEXT , cjLct  BIGINT  NOT NULL , cjUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
        this_0.i1('CREATE TABLE IF NOT EXISTS ContentJobItem (  cjiJobUid  BIGINT  NOT NULL , sourceUri  TEXT , cjiIsLeaf  BOOL  NOT NULL , cjiContentEntryUid  BIGINT  NOT NULL , cjiParentContentEntryUid  BIGINT  NOT NULL , cjiContainerUid  BIGINT  NOT NULL , cjiItemProgress  BIGINT  NOT NULL , cjiItemTotal  BIGINT  NOT NULL , cjiRecursiveProgress  BIGINT  NOT NULL , cjiRecursiveTotal  BIGINT  NOT NULL , cjiStatus  INTEGER  NOT NULL , cjiRecursiveStatus  INTEGER  NOT NULL , cjiConnectivityNeeded  BOOL  NOT NULL , cjiPluginId  INTEGER  NOT NULL , cjiAttemptCount  INTEGER  NOT NULL , cjiParentCjiUid  BIGINT  NOT NULL , cjiServerJobId  BIGINT  NOT NULL , cjiStartTime  BIGINT  NOT NULL , cjiFinishTime  BIGINT  NOT NULL , cjiUploadSessionUid  TEXT , cjiContentDeletedOnCancellation  BOOL  NOT NULL , cjiContainerProcessed  BOOL  NOT NULL , cjiLastModified  BIGINT  NOT NULL , cjiUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
        this_0.i1('CREATE INDEX index_ContentJobItem_cjiContentEntryUid_cjiFinishTime ON ContentJobItem (cjiContentEntryUid, cjiFinishTime)');
      }
    }
    return this_0.f3();
  }
  function MIGRATION_124_125$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_124_125.<anonymous>.<anonymous>' call
    this_0.i1('DROP TABLE IF EXISTS ContentJobItem');
    var tmp0_subject = dbType(db);
    Companion_getInstance_1();
    if (tmp0_subject === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS ContentJobItem (  cjiJobUid  INTEGER  NOT NULL , sourceUri  TEXT , cjiOriginalFilename  TEXT , cjiIsLeaf  INTEGER  NOT NULL , cjiContentEntryUid  INTEGER  NOT NULL , cjiParentContentEntryUid  INTEGER  NOT NULL , cjiContentEntryVersion  INTEGER  NOT NULL , cjiItemProgress  INTEGER  NOT NULL , cjiItemTotal  INTEGER  NOT NULL , cjiRecursiveProgress  INTEGER  NOT NULL , cjiRecursiveTotal  INTEGER  NOT NULL , cjiStatus  INTEGER  NOT NULL , cjiRecursiveStatus  INTEGER  NOT NULL , cjiConnectivityNeeded  INTEGER  NOT NULL , cjiPluginId  INTEGER  NOT NULL , cjiAttemptCount  INTEGER  NOT NULL , cjiParentCjiUid  INTEGER  NOT NULL , cjiServerJobId  INTEGER  NOT NULL , cjiStartTime  INTEGER  NOT NULL , cjiFinishTime  INTEGER  NOT NULL , cjiUploadSessionUid  TEXT , cjiContentDeletedOnCancellation  INTEGER  NOT NULL , cjiContainerProcessed  INTEGER  NOT NULL , cjiLastModified  INTEGER  NOT NULL , cjiUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
      this_0.i1('CREATE INDEX index_ContentJobItem_cjiContentEntryUid_cjiFinishTime ON ContentJobItem (cjiContentEntryUid, cjiFinishTime)');
      this_0.i1('CREATE TABLE IF NOT EXISTS ContentEntryVersion (  cevContentEntryUid  INTEGER  NOT NULL , cevUrl  TEXT , cevContentType  TEXT , cevSitemapUrl  TEXT , cevSize  INTEGER  NOT NULL , cevInActive  INTEGER  NOT NULL , cevLastModified  INTEGER  NOT NULL , cevLct  INTEGER  NOT NULL , cevUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
    } else {
      Companion_getInstance_1();
      if (tmp0_subject === 2) {
        this_0.i1('CREATE TABLE IF NOT EXISTS ContentJobItem (  cjiJobUid  BIGINT  NOT NULL , sourceUri  TEXT , cjiOriginalFilename  TEXT , cjiIsLeaf  BOOL  NOT NULL , cjiContentEntryUid  BIGINT  NOT NULL , cjiParentContentEntryUid  BIGINT  NOT NULL , cjiContentEntryVersion  BIGINT  NOT NULL , cjiItemProgress  BIGINT  NOT NULL , cjiItemTotal  BIGINT  NOT NULL , cjiRecursiveProgress  BIGINT  NOT NULL , cjiRecursiveTotal  BIGINT  NOT NULL , cjiStatus  INTEGER  NOT NULL , cjiRecursiveStatus  INTEGER  NOT NULL , cjiConnectivityNeeded  BOOL  NOT NULL , cjiPluginId  INTEGER  NOT NULL , cjiAttemptCount  INTEGER  NOT NULL , cjiParentCjiUid  BIGINT  NOT NULL , cjiServerJobId  BIGINT  NOT NULL , cjiStartTime  BIGINT  NOT NULL , cjiFinishTime  BIGINT  NOT NULL , cjiUploadSessionUid  TEXT , cjiContentDeletedOnCancellation  BOOL  NOT NULL , cjiContainerProcessed  BOOL  NOT NULL , cjiLastModified  BIGINT  NOT NULL , cjiUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
        this_0.i1('CREATE INDEX index_ContentJobItem_cjiContentEntryUid_cjiFinishTime ON ContentJobItem (cjiContentEntryUid, cjiFinishTime)');
        this_0.i1('CREATE TABLE IF NOT EXISTS ContentEntryVersion (  cevContentEntryUid  BIGINT  NOT NULL , cevUrl  TEXT , cevContentType  TEXT , cevSitemapUrl  TEXT , cevSize  BIGINT  NOT NULL , cevInActive  BOOL  NOT NULL , cevLastModified  BIGINT  NOT NULL , cevLct  BIGINT  NOT NULL , cevUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
      }
    }
    return this_0.f3();
  }
  function MIGRATION_125_126$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return emptyList();
  }
  function MIGRATION_126_127$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_126_127.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS TransferJob (  tjType  INTEGER  NOT NULL , tjStatus  INTEGER  NOT NULL , tjName  TEXT , tjUuid  TEXT , tjUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
      this_0.i1('CREATE TABLE IF NOT EXISTS TransferJobItem (  tjiTjUid  INTEGER  NOT NULL , tjTotalSize  INTEGER  NOT NULL , tjTransferred  INTEGER  NOT NULL , tjAttemptCount  INTEGER  NOT NULL , tjiSrc  TEXT , tjiDest  TEXT , tjiType  INTEGER  NOT NULL , tjiStatus  INTEGER  NOT NULL , tjiTableId  INTEGER  NOT NULL , tjiEntityUid  INTEGER  NOT NULL , tjiUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS TransferJob (  tjType  INTEGER  NOT NULL , tjStatus  INTEGER  NOT NULL , tjName  TEXT , tjUuid  TEXT , tjUid  SERIAL  PRIMARY KEY  NOT NULL )');
      this_0.i1('CREATE TABLE IF NOT EXISTS TransferJobItem (  tjiTjUid  INTEGER  NOT NULL , tjTotalSize  BIGINT  NOT NULL , tjTransferred  BIGINT  NOT NULL , tjAttemptCount  INTEGER  NOT NULL , tjiSrc  TEXT , tjiDest  TEXT , tjiType  INTEGER  NOT NULL , tjiStatus  INTEGER  NOT NULL , tjiTableId  INTEGER  NOT NULL , tjiEntityUid  BIGINT  NOT NULL , tjiUid  SERIAL  PRIMARY KEY  NOT NULL )');
    }
    return this_0.f3();
  }
  function MIGRATION_127_128$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_127_128.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('DROP TABLE IF EXISTS PersonPicture');
      this_0.i1('CREATE TABLE IF NOT EXISTS PersonPicture (  personPictureLct  INTEGER  NOT NULL , personPictureUri  TEXT , personPictureThumbnailUri  TEXT , fileSize  INTEGER  NOT NULL , personPictureActive  INTEGER  NOT NULL , personPictureUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
      this_0.i1('ALTER TABLE TransferJobItem ADD COLUMN tjiEntityEtag  INTEGER  NOT NULL  DEFAULT 0');
    } else {
      this_0.i1('DROP TABLE IF EXISTS PersonPicture');
      this_0.i1('CREATE TABLE IF NOT EXISTS PersonPicture (  personPictureLct  BIGINT  NOT NULL , personPictureUri  TEXT , personPictureThumbnailUri  TEXT , fileSize  INTEGER  NOT NULL , personPictureActive  BOOL  NOT NULL , personPictureUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
      this_0.i1('ALTER TABLE TransferJobItem ADD COLUMN tjiEntityEtag  BIGINT  NOT NULL  DEFAULT 0');
    }
    return this_0.f3();
  }
  function MIGRATION_128_129$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_128_129.<anonymous>.<anonymous>' call
    this_0.i1('DROP TABLE IF EXISTS CoursePicture');
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS CoursePicture (  coursePictureLct  INTEGER  NOT NULL , coursePictureUri  TEXT , coursePictureThumbnailUri  TEXT , coursePictureActive  INTEGER  NOT NULL , coursePictureUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS CoursePicture (  coursePictureLct  BIGINT  NOT NULL , coursePictureUri  TEXT , coursePictureThumbnailUri  TEXT , coursePictureActive  BOOL  NOT NULL , coursePictureUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
    }
    return this_0.f3();
  }
  function MIGRATION_129_130$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_129_130.<anonymous>.<anonymous>' call
    this_0.i1('ALTER TABLE TransferJobItem ADD COLUMN tjiLockIdToRelease INTEGER NOT NULL DEFAULT 0');
    return this_0.f3();
  }
  function MIGRATION_130_131$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_130_131.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS CacheLockJoin (  cljTableId  INTEGER  NOT NULL , cljEntityUid  INTEGER  NOT NULL , cljUrl  TEXT  NOT NULL , cljLockId  INTEGER  NOT NULL , cljStatus  INTEGER  NOT NULL , cljType  INTEGER  NOT NULL , cljId  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
      this_0.i1('CREATE INDEX idx_clj_table_entity_url ON CacheLockJoin (cljTableId, cljEntityUid, cljUrl)');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS CacheLockJoin (  cljTableId  INTEGER  NOT NULL , cljEntityUid  BIGINT  NOT NULL , cljUrl  TEXT  NOT NULL , cljLockId  INTEGER  NOT NULL , cljStatus  INTEGER  NOT NULL , cljType  INTEGER  NOT NULL , cljId  SERIAL  PRIMARY KEY  NOT NULL )');
      this_0.i1('CREATE INDEX idx_clj_table_entity_url ON CacheLockJoin (cljTableId, cljEntityUid, cljUrl)');
    }
    return this_0.f3();
  }
  function MIGRATION_132_133$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_132_133.<anonymous>.<anonymous>' call
    this_0.i1('DROP TABLE ContentJobItem');
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS ContentEntryImportJob (  sourceUri  TEXT , cjiOriginalFilename  TEXT , cjiContentEntryUid  INTEGER  NOT NULL , cjiParentContentEntryUid  INTEGER  NOT NULL , cjiContentEntryVersion  INTEGER  NOT NULL , cjiItemProgress  INTEGER  NOT NULL , cjiItemTotal  INTEGER  NOT NULL , cjiStatus  INTEGER  NOT NULL , cjiRecursiveStatus  INTEGER  NOT NULL , cjiPluginId  INTEGER  NOT NULL , cjiParentCjiUid  INTEGER  NOT NULL , cjiStartTime  INTEGER  NOT NULL , cjiFinishTime  INTEGER  NOT NULL , cjiContentDeletedOnCancellation  INTEGER  NOT NULL , cjiUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
      this_0.i1('CREATE INDEX index_ContentEntryImportJob_cjiContentEntryUid_cjiFinishTime ON ContentEntryImportJob (cjiContentEntryUid, cjiFinishTime)');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS ContentEntryImportJob (  sourceUri  TEXT , cjiOriginalFilename  TEXT , cjiContentEntryUid  BIGINT  NOT NULL , cjiParentContentEntryUid  BIGINT  NOT NULL , cjiContentEntryVersion  BIGINT  NOT NULL , cjiItemProgress  BIGINT  NOT NULL , cjiItemTotal  BIGINT  NOT NULL , cjiStatus  INTEGER  NOT NULL , cjiRecursiveStatus  INTEGER  NOT NULL , cjiPluginId  INTEGER  NOT NULL , cjiParentCjiUid  BIGINT  NOT NULL , cjiStartTime  BIGINT  NOT NULL , cjiFinishTime  BIGINT  NOT NULL , cjiContentDeletedOnCancellation  BOOL  NOT NULL , cjiUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
      this_0.i1('CREATE INDEX index_ContentEntryImportJob_cjiContentEntryUid_cjiFinishTime ON ContentEntryImportJob (cjiContentEntryUid, cjiFinishTime)');
    }
    return this_0.f3();
  }
  function MIGRATION_133_134$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_133_134.<anonymous>.<anonymous>' call
    this_0.i1('CREATE INDEX tji_table_entity_etag ON TransferJobItem (tjiTableId, tjiEntityUid, tjiEntityEtag)');
    return this_0.f3();
  }
  function MIGRATION_134_135$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_134_135.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS OfflineItem (  oiNodeId  INTEGER  NOT NULL , oiClazzUid  INTEGER  NOT NULL , oiCourseBlockUid  INTEGER  NOT NULL , oiContentEntryUid  INTEGER  NOT NULL , oiActive  INTEGER  NOT NULL , oiLct  INTEGER  NOT NULL , oiUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
      this_0.i1('CREATE INDEX offline_item_node_content_entry ON OfflineItem (oiNodeId, oiContentEntryUid)');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS OfflineItem (  oiNodeId  BIGINT  NOT NULL , oiClazzUid  BIGINT  NOT NULL , oiCourseBlockUid  BIGINT  NOT NULL , oiContentEntryUid  BIGINT  NOT NULL , oiActive  BOOL  NOT NULL , oiLct  BIGINT  NOT NULL , oiUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
      this_0.i1('CREATE INDEX offline_item_node_content_entry ON OfflineItem (oiNodeId, oiContentEntryUid)');
    }
    return this_0.f3();
  }
  function MIGRATION_135_136$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_135_136.<anonymous>.<anonymous>' call
    this_0.i1('ALTER TABLE TransferJob ADD COLUMN tjTableId INTEGER NOT NULL DEFAULT 0');
    this_0.i1('ALTER TABLE TransferJob ADD COLUMN tjCreationType INTEGER NOT NULL DEFAULT 0');
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('ALTER TABLE TransferJob ADD COLUMN tjEntityUid INTEGER NOT NULL DEFAULT 0');
      this_0.i1('ALTER TABLE TransferJob ADD COLUMN tjTimeCreated INTEGER NOT NULL DEFAULT 0');
    } else {
      this_0.i1('ALTER TABLE TransferJob ADD COLUMN tjEntityUid BIGINT NOT NULL DEFAULT 0');
      this_0.i1('ALTER TABLE TransferJob ADD COLUMN tjTimeCreated BIGINT NOT NULL DEFAULT 0');
    }
    this_0.i1('CREATE INDEX TransferJob_idx_tjTableId_EntityUid ON TransferJob (tjTableId, tjEntityUid)');
    return this_0.f3();
  }
  function MIGRATION_136_137$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_136_137.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS OfflineItemPendingTransferJob (  oiptjOiUid  INTEGER  NOT NULL , oiptjTableId  INTEGER  NOT NULL , oiptjEntityUid  INTEGER  NOT NULL , oiptjUrl  TEXT , oiptjType  INTEGER  NOT NULL , oiptjId  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS OfflineItemPendingTransferJob (  oiptjOiUid  BIGINT  NOT NULL , oiptjTableId  INTEGER  NOT NULL , oiptjEntityUid  BIGINT  NOT NULL , oiptjUrl  TEXT , oiptjType  INTEGER  NOT NULL , oiptjId  SERIAL  PRIMARY KEY  NOT NULL )');
    }
    return this_0.f3();
  }
  function MIGRATION_137_138$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_137_138.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('ALTER TABLE ContentEntryVersion RENAME to ContentEntryVersion_OLD');
      this_0.i1('CREATE TABLE IF NOT EXISTS ContentEntryVersion (  cevContentEntryUid  INTEGER  NOT NULL , cevUrl  TEXT , cevContentType  TEXT , cevManifestUrl  TEXT , cevSize  INTEGER  NOT NULL , cevInActive  INTEGER  NOT NULL , cevLastModified  INTEGER  NOT NULL , cevLct  INTEGER  NOT NULL , cevUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
      this_0.i1('INSERT INTO ContentEntryVersion (cevContentEntryUid, cevUrl, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevUid) SELECT cevContentEntryUid, cevUrl, cevContentType, cevSitemapUrl, cevSize, cevInActive, cevLastModified, cevLct, cevUid FROM ContentEntryVersion_OLD');
      this_0.i1('DROP TABLE ContentEntryVersion_OLD');
    } else {
      this_0.i1('ALTER TABLE ContentEntryVersion RENAME COLUMN cevSitemapUrl TO cevManifestUrl');
    }
    return this_0.f3();
  }
  function MIGRATION_138_139$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_138_139.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('ALTER TABLE ContentEntryVersion RENAME to ContentEntryVersion_OLD');
      this_0.i1('CREATE TABLE IF NOT EXISTS ContentEntryVersion (  cevContentEntryUid  INTEGER  NOT NULL , cevOpenUri  TEXT , cevContentType  TEXT , cevManifestUrl  TEXT , cevSize  INTEGER  NOT NULL , cevInActive  INTEGER  NOT NULL , cevLastModified  INTEGER  NOT NULL , cevLct  INTEGER  NOT NULL , cevUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
      this_0.i1('INSERT INTO ContentEntryVersion (cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevUid) SELECT cevContentEntryUid, cevUrl, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevUid FROM ContentEntryVersion_OLD');
      this_0.i1('DROP TABLE ContentEntryVersion_OLD');
    } else {
      this_0.i1('ALTER TABLE ContentEntryVersion RENAME COLUMN cevUrl to cevOpenUri');
    }
    return this_0.f3();
  }
  function MIGRATION_139_140$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_139_140.<anonymous>.<anonymous>' call
    this_0.i1('CREATE INDEX transferjob_tjuid ON TransferJobItem (tjiTjUid)');
    return this_0.f3();
  }
  function MIGRATION_140_141$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_140_141.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 2) {
      this_0.i1('ALTER TABLE UserSession ALTER COLUMN usLcb TYPE BIGINT');
    }
    return this_0.f3();
  }
  function MIGRATION_141_142$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return listOf('DROP TABLE IF EXISTS ClazzAssignmentContentJoin');
  }
  function MIGRATION_142_143$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_142_143.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('ALTER TABLE ContentEntryParentChildJoin ADD COLUMN cepcjDeleted INTEGER NOT NULL DEFAULT 0');
      this_0.i1('CREATE TABLE IF NOT EXISTS DeletedItem (  delItemName  TEXT , delItemIconUri  TEXT , delItemLastModTime  INTEGER  NOT NULL , delItemTimeDeleted  INTEGER  NOT NULL , delItemEntityTable  INTEGER  NOT NULL , delItemEntityUid  INTEGER  NOT NULL , delItemDeletedByPersonUid  INTEGER  NOT NULL , delItemStatus  INTEGER  NOT NULL , delItemIsFolder  INTEGER  NOT NULL  DEFAULT 0 , delItemUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
      this_0.i1('CREATE INDEX delitem_idx_status_time ON DeletedItem (delItemStatus, delItemTimeDeleted)');
    } else {
      this_0.i1('ALTER TABLE ContentEntryParentChildJoin ADD COLUMN cepcjDeleted BOOL NOT NULL DEFAULT false');
      this_0.i1('CREATE TABLE IF NOT EXISTS DeletedItem (  delItemName  TEXT , delItemIconUri  TEXT , delItemLastModTime  BIGINT  NOT NULL , delItemTimeDeleted  BIGINT  NOT NULL , delItemEntityTable  INTEGER  NOT NULL , delItemEntityUid  BIGINT  NOT NULL , delItemDeletedByPersonUid  BIGINT  NOT NULL , delItemStatus  INTEGER  NOT NULL , delItemIsFolder  BOOL  NOT NULL  DEFAULT false, delItemUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
      this_0.i1('CREATE INDEX delitem_idx_status_time ON DeletedItem (delItemStatus, delItemTimeDeleted)');
    }
    return this_0.f3();
  }
  function MIGRATION_143_144$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_143_144.<anonymous>.<anonymous>' call
    this_0.i1('DROP TABLE IF EXISTS Message');
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS Message (  messageSenderPersonUid  INTEGER  NOT NULL , messageToPersonUid  INTEGER  NOT NULL , messageText  TEXT , messageTimestamp  INTEGER  NOT NULL , messageLct  INTEGER  NOT NULL , messageUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS Message (  messageSenderPersonUid  BIGINT  NOT NULL , messageToPersonUid  BIGINT  NOT NULL , messageText  TEXT , messageTimestamp  BIGINT  NOT NULL , messageLct  BIGINT  NOT NULL , messageUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
    }
    return this_0.f3();
  }
  function MIGRATION_144_145_SERVER$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    var insertOutgoingReplicationSql = '\n           INSERT INTO OutgoingReplication(destNodeId, orTableId, orPk1, orPk2)\n                SELECT UserSession.usClientNodeId AS destNodeId,\n                       ' + 126 + ' AS orTableId,\n                       NEW.messageUid AS orPk1,\n                       0 as orPk2\n                 FROM UserSession\n                WHERE (   UserSession.usPersonUid = NEW.messageSenderPersonUid \n                       OR UserSession.usPersonUid = NEW.messageToPersonUid)\n                  AND UserSession.usStatus = ' + 1 + '     \n                  AND UserSession.usClientNodeId NOT IN \n                      (SELECT ReplicationOperation.repOpRemoteNodeId\n                         FROM ReplicationOperation\n                        WHERE ReplicationOperation.repOpTableId = ' + 126 + ');\n        ';
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_144_145_SERVER.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('\n                    CREATE TRIGGER IF NOT EXISTS message_send_trigger\n                    AFTER INSERT ON Message\n                    FOR EACH ROW\n                    BEGIN\n                    ' + insertOutgoingReplicationSql + '\n                    END    \n                ');
    } else {
      this_0.i1('\n                    CREATE OR REPLACE FUNCTION message_send_fn() RETURNS TRIGGER AS $$\n                    BEGIN\n                    ' + insertOutgoingReplicationSql + '\n                    RETURN NEW;\n                    END $$ LANGUAGE plpgsql\n                ');
      this_0.i1('\n                    CREATE TRIGGER message_send_trig AFTER INSERT \n                    ON Message\n                    FOR EACH ROW EXECUTE PROCEDURE message_send_fn()\n                ');
    }
    return this_0.f3();
  }
  function MIGRATION_144_145_CLIENT$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return emptyList();
  }
  function MIGRATION_145_146$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return listOf('CREATE INDEX message_idx_send_to_time ON Message (messageSenderPersonUid, messageToPersonUid, messageTimestamp)');
  }
  function MIGRATION_146_147$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_146_147.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 2) {
      this_0.i1('ALTER TABLE CacheLockJoin ALTER COLUMN cljLockId TYPE BIGINT');
    }
    return this_0.f3();
  }
  function MIGRATION_147_148$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_147_148.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 2) {
      this_0.i1('ALTER TABLE TransferJob ADD COLUMN tjOiUid BIGINT NOT NULL DEFAULT 0');
      this_0.i1('ALTER TABLE CacheLockJoin ADD COLUMN cljOiUid BIGINT NOT NULL DEFAULT 0');
    } else {
      this_0.i1('ALTER TABLE TransferJob ADD COLUMN tjOiUid INTEGER NOT NULL DEFAULT 0');
      this_0.i1('ALTER TABLE CacheLockJoin ADD COLUMN cljOiUid INTEGER NOT NULL DEFAULT 0');
    }
    this_0.i1('CREATE INDEX idx_clj_offline_item_uid ON CacheLockJoin (cljOiUid)');
    return this_0.f3();
  }
  function MIGRATION_148_149_CLIENT_WITH_OFFLINE_ITEMS$lambda(it) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return listOf('\n        CREATE TRIGGER IF NOT EXISTS offline_item_inactive_trig \n                AFTER UPDATE ON OfflineItem\n                FOR EACH ROW WHEN NEW.oiActive = 0 AND OLD.oiActive = 1\n                BEGIN \n                UPDATE CacheLockJoin\n                   SET cljStatus = ' + 3 + '\n                 WHERE cljOiUid = NEW.oiUid;  \n                END\n        ');
  }
  function MIGRATION_148_149_NO_OFFLINE_ITEMS$lambda(it) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return emptyList();
  }
  function MIGRATION_149_150$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_149_150.<anonymous>.<anonymous>' call
    var tmp;
    var tmp_0 = dbType(db);
    Companion_getInstance_1();
    if (tmp_0 === 1) {
      tmp = 'INTEGER';
    } else {
      tmp = 'BIGINT';
    }
    var fieldType = tmp;
    this_0.i1('ALTER TABLE ContentEntryVersion ADD COLUMN cevStorageSize ' + fieldType + ' NOT NULL DEFAULT 0');
    this_0.i1('ALTER TABLE ContentEntryVersion ADD COLUMN cevOriginalSize ' + fieldType + ' NOT NULL DEFAULT 0');
    return this_0.f3();
  }
  function MIGRATION_150_151$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return listOf('ALTER TABLE TransferJobItem ADD COLUMN tjiPartialTmpFile TEXT');
  }
  function MIGRATION_151_152$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_151_152.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 2) {
      this_0.i1('\n                            CREATE OR REPLACE FUNCTION retain_c_clj_50_personPictureUri() RETURNS TRIGGER AS $$\n                            BEGIN\n                            INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n                            VALUES(50, NEW.personPictureUid, NEW.personPictureUri, 0, 1, 1);\n                            RETURN NEW;\n                            END $$ LANGUAGE plpgsql\n                        ');
      this_0.i1('\n                            CREATE OR REPLACE FUNCTION retain_d_clj_50_personPictureUri() RETURNS TRIGGER AS $$\n                            BEGIN\n                            UPDATE CacheLockJoin \n                               SET cljStatus = 3\n                             WHERE cljTableId = 50\n                               AND cljEntityUid = OLD.personPictureUid\n                               AND cljUrl = OLD.personPictureUri;\n                            RETURN OLD;\n                            END $$ LANGUAGE plpgsql   \n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_c_clj_50_personPictureUri_ins_t\n                            AFTER INSERT ON PersonPicture\n                            FOR EACH ROW\n                            WHEN (NEW.personPictureUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_c_clj_50_personPictureUri();\n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_c_clj_50_personPictureUri_upd_t\n                            AFTER UPDATE ON PersonPicture\n                            FOR EACH ROW\n                            WHEN (NEW.personPictureUri IS DISTINCT FROM OLD.personPictureUri AND OLD.personPictureUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_c_clj_50_personPictureUri();\n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_d_clj_50_personPictureUri_upd_t\n                            AFTER UPDATE ON PersonPicture\n                            FOR EACH ROW\n                            WHEN (NEW.personPictureUri IS DISTINCT FROM OLD.personPictureUri AND NEW.personPictureUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_d_clj_50_personPictureUri();\n                        ');
      this_0.i1('\n                            CREATE OR REPLACE FUNCTION retain_c_clj_50_personPictureThumbnailUr() RETURNS TRIGGER AS $$\n                            BEGIN\n                            INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n                            VALUES(50, NEW.personPictureUid, NEW.personPictureThumbnailUri, 0, 1, 1);\n                            RETURN NEW;\n                            END $$ LANGUAGE plpgsql\n                        ');
      this_0.i1('\n                            CREATE OR REPLACE FUNCTION retain_d_clj_50_personPictureThumbnailUr() RETURNS TRIGGER AS $$\n                            BEGIN\n                            UPDATE CacheLockJoin \n                               SET cljStatus = 3\n                             WHERE cljTableId = 50\n                               AND cljEntityUid = OLD.personPictureUid\n                               AND cljUrl = OLD.personPictureThumbnailUri;\n                            RETURN OLD;\n                            END $$ LANGUAGE plpgsql   \n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_c_clj_50_personPictureThumbnailUr_ins_t\n                            AFTER INSERT ON PersonPicture\n                            FOR EACH ROW\n                            WHEN (NEW.personPictureThumbnailUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_c_clj_50_personPictureThumbnailUr();\n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_c_clj_50_personPictureThumbnailUr_upd_t\n                            AFTER UPDATE ON PersonPicture\n                            FOR EACH ROW\n                            WHEN (NEW.personPictureThumbnailUri IS DISTINCT FROM OLD.personPictureThumbnailUri AND OLD.personPictureThumbnailUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_c_clj_50_personPictureThumbnailUr();\n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_d_clj_50_personPictureThumbnailUr_upd_t\n                            AFTER UPDATE ON PersonPicture\n                            FOR EACH ROW\n                            WHEN (NEW.personPictureThumbnailUri IS DISTINCT FROM OLD.personPictureThumbnailUri AND NEW.personPictureThumbnailUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_d_clj_50_personPictureThumbnailUr();\n                        ');
      this_0.i1('\n                            CREATE OR REPLACE FUNCTION retain_c_clj_125_coursePictureUri() RETURNS TRIGGER AS $$\n                            BEGIN\n                            INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n                            VALUES(125, NEW.coursePictureUid, NEW.coursePictureUri, 0, 1, 1);\n                            RETURN NEW;\n                            END $$ LANGUAGE plpgsql\n                        ');
      this_0.i1('\n                            CREATE OR REPLACE FUNCTION retain_d_clj_125_coursePictureUri() RETURNS TRIGGER AS $$\n                            BEGIN\n                            UPDATE CacheLockJoin \n                               SET cljStatus = 3\n                             WHERE cljTableId = 125\n                               AND cljEntityUid = OLD.coursePictureUid\n                               AND cljUrl = OLD.coursePictureUri;\n                            RETURN OLD;\n                            END $$ LANGUAGE plpgsql   \n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_c_clj_125_coursePictureUri_ins_t\n                            AFTER INSERT ON CoursePicture\n                            FOR EACH ROW\n                            WHEN (NEW.coursePictureUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_c_clj_125_coursePictureUri();\n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_c_clj_125_coursePictureUri_upd_t\n                            AFTER UPDATE ON CoursePicture\n                            FOR EACH ROW\n                            WHEN (NEW.coursePictureUri IS DISTINCT FROM OLD.coursePictureUri AND OLD.coursePictureUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_c_clj_125_coursePictureUri();\n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_d_clj_125_coursePictureUri_upd_t\n                            AFTER UPDATE ON CoursePicture\n                            FOR EACH ROW\n                            WHEN (NEW.coursePictureUri IS DISTINCT FROM OLD.coursePictureUri AND NEW.coursePictureUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_d_clj_125_coursePictureUri();\n                        ');
      this_0.i1('\n                            CREATE OR REPLACE FUNCTION retain_c_clj_125_coursePictureThumbnailUr() RETURNS TRIGGER AS $$\n                            BEGIN\n                            INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n                            VALUES(125, NEW.coursePictureUid, NEW.coursePictureThumbnailUri, 0, 1, 1);\n                            RETURN NEW;\n                            END $$ LANGUAGE plpgsql\n                        ');
      this_0.i1('\n                            CREATE OR REPLACE FUNCTION retain_d_clj_125_coursePictureThumbnailUr() RETURNS TRIGGER AS $$\n                            BEGIN\n                            UPDATE CacheLockJoin \n                               SET cljStatus = 3\n                             WHERE cljTableId = 125\n                               AND cljEntityUid = OLD.coursePictureUid\n                               AND cljUrl = OLD.coursePictureThumbnailUri;\n                            RETURN OLD;\n                            END $$ LANGUAGE plpgsql   \n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_c_clj_125_coursePictureThumbnailUr_ins_t\n                            AFTER INSERT ON CoursePicture\n                            FOR EACH ROW\n                            WHEN (NEW.coursePictureThumbnailUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_c_clj_125_coursePictureThumbnailUr();\n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_c_clj_125_coursePictureThumbnailUr_upd_t\n                            AFTER UPDATE ON CoursePicture\n                            FOR EACH ROW\n                            WHEN (NEW.coursePictureThumbnailUri IS DISTINCT FROM OLD.coursePictureThumbnailUri AND OLD.coursePictureThumbnailUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_c_clj_125_coursePictureThumbnailUr();\n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_d_clj_125_coursePictureThumbnailUr_upd_t\n                            AFTER UPDATE ON CoursePicture\n                            FOR EACH ROW\n                            WHEN (NEW.coursePictureThumbnailUri IS DISTINCT FROM OLD.coursePictureThumbnailUri AND NEW.coursePictureThumbnailUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_d_clj_125_coursePictureThumbnailUr();\n                        ');
    }
    return this_0.f3();
  }
  function MIGRATION_152_153$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_152_153.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS EnrolmentRequest (  erClazzUid  INTEGER  NOT NULL , erClazzName  TEXT , erPersonUid  INTEGER  NOT NULL , erPersonFullname  TEXT , erPersonPictureUri  TEXT , erPersonUsername  TEXT , erRole  INTEGER  NOT NULL , erRequestTime  INTEGER  NOT NULL , erStatus  INTEGER  NOT NULL , erStatusSetByPersonUid  INTEGER  NOT NULL , erDeleted  INTEGER  NOT NULL , erStatusSetAuth  TEXT , erLastModified  INTEGER  NOT NULL , erUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS EnrolmentRequest (  erClazzUid  BIGINT  NOT NULL , erClazzName  TEXT , erPersonUid  BIGINT  NOT NULL , erPersonFullname  TEXT , erPersonPictureUri  TEXT , erPersonUsername  TEXT , erRole  INTEGER  NOT NULL , erRequestTime  BIGINT  NOT NULL , erStatus  INTEGER  NOT NULL , erStatusSetByPersonUid  BIGINT  NOT NULL , erDeleted  BOOL  NOT NULL , erStatusSetAuth  TEXT , erLastModified  BIGINT  NOT NULL , erUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
    }
    this_0.i1('CREATE INDEX idx_enrolmentrequest_by_clazz ON EnrolmentRequest (erClazzUid, erStatus)');
    this_0.i1('CREATE INDEX idx_enrolmentrequest_by_person ON EnrolmentRequest (erPersonUid, erStatus)');
    return this_0.f3();
  }
  function MIGRATION_153_154$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_153_154.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS CoursePermission (  cpLastModified  INTEGER  NOT NULL , cpClazzUid  INTEGER  NOT NULL , cpToEnrolmentRole  INTEGER  NOT NULL , cpToPersonUid  INTEGER  NOT NULL , cpToGroupUid  INTEGER  NOT NULL , cpPermissionsFlag  INTEGER  NOT NULL , cpIsDeleted  INTEGER  NOT NULL , cpUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
      this_0.i1('CREATE TABLE IF NOT EXISTS SystemPermission (  spToPersonUid  INTEGER  NOT NULL , spToGroupUid  INTEGER  NOT NULL , spPermissionsFlag  INTEGER  NOT NULL , spLastModified  INTEGER  NOT NULL , spIsDeleted  INTEGER  NOT NULL , spUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
      this_0.i1('ALTER TABLE Clazz ADD COLUMN clazzOwnerPersonUid INTEGER NOT NULL DEFAULT 0');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS CoursePermission (  cpLastModified  BIGINT  NOT NULL , cpClazzUid  BIGINT  NOT NULL , cpToEnrolmentRole  INTEGER  NOT NULL , cpToPersonUid  BIGINT  NOT NULL , cpToGroupUid  BIGINT  NOT NULL , cpPermissionsFlag  BIGINT  NOT NULL , cpIsDeleted  BOOL  NOT NULL , cpUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
      this_0.i1('CREATE TABLE IF NOT EXISTS SystemPermission (  spToPersonUid  BIGINT  NOT NULL , spToGroupUid  BIGINT  NOT NULL , spPermissionsFlag  BIGINT  NOT NULL , spLastModified  BIGINT  NOT NULL , spIsDeleted  BOOL  NOT NULL , spUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
      this_0.i1('ALTER TABLE Clazz ADD COLUMN clazzOwnerPersonUid BIGINT NOT NULL DEFAULT 0');
    }
    this_0.i1('CREATE INDEX idx_coursepermission_clazzuid ON CoursePermission (cpClazzUid)');
    this_0.i1('CREATE INDEX idx_systempermission_personuid ON SystemPermission (spToPersonUid)');
    return this_0.f3();
  }
  function MIGRATION_154_155$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_154_155.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('ALTER TABLE CourseAssignmentSubmission ADD COLUMN casClazzUid INTEGER NOT NULL DEFAULT 0');
      this_0.i1('ALTER TABLE CourseAssignmentMark ADD COLUMN camClazzUid INTEGER NOT NULL DEFAULT 0');
    } else {
      this_0.i1('ALTER TABLE CourseAssignmentSubmission ADD COLUMN casClazzUid BIGINT NOT NULL DEFAULT 0');
      this_0.i1('ALTER TABLE CourseAssignmentMark ADD COLUMN camClazzUid BIGINT NOT NULL DEFAULT 0');
    }
    return this_0.f3();
  }
  function MIGRATION_155_156_SERVER$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_155_156_SERVER.<anonymous>.<anonymous>' call
    var tmp;
    var tmp_0 = dbType(db);
    Companion_getInstance_1();
    if (tmp_0 === 1) {
      tmp = '0';
    } else {
      tmp = 'false';
    }
    var falseVal = tmp;
    Companion_getInstance();
    this_0.i1("\n            INSERT INTO SystemPermission(spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted)\n            SELECT Person.personUid AS spToPersonUid,\n                   0 AS spToGroupUid,\n                   CASE \n                   WHEN Person.username = 'admin' THEN " + (new Long(-1, 2147483647)).toString() + '\n                   ELSE 0\n                   END AS spPermissionsFlag,\n                   ' + systemTimeInMillis().toString() + ' AS spLastModified,\n                   ' + falseVal + ' AS spIsDeleted\n              FROM Person\n        ');
    var tmp_1 = systemTimeInMillis().toString();
    Companion_getInstance_78();
    this_0.i1('\n            INSERT INTO CoursePermission(cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted)\n            SELECT ' + tmp_1 + ' AS cpLastModified,\n                   Clazz.clazzUid AS cpClazzUid,\n                   ' + 1001 + ' AS cpToEnrolmentRole,\n                   0 AS cpToPersonUid,\n                   0 AS cpToGroupUid,\n                   ' + (new Long(8703, 0)).toString() + ' AS cpPermissionsFlag,\n                   ' + falseVal + ' AS cpIsDeleted\n              FROM Clazz     \n        ');
    var tmp_2 = systemTimeInMillis().toString();
    Companion_getInstance_78();
    this_0.i1('\n            INSERT INTO CoursePermission(cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted)\n            SELECT ' + tmp_2 + ' AS cpLastModified,\n                   Clazz.clazzUid AS cpClazzUid,\n                   ' + 1000 + ' AS cpToEnrolmentRole,\n                   0 AS cpToPersonUid,\n                   0 AS cpToGroupUid,\n                   ' + (new Long(8193, 0)).toString() + ' AS cpPermissionsFlag,\n                   ' + falseVal + ' AS cpIsDeleted\n              FROM Clazz     \n        ');
    this_0.i1("\n           UPDATE Clazz\n              SET clazzOwnerPersonUid = \n                  (SELECT Person.personUid\n                     FROM Person\n                    WHERE Person.username = 'admin'\n                    LIMIT 1) \n        ");
    this_0.i1('\n            UPDATE ScopedGrant\n               SET sgPermissions = 0,\n                   sgLct = ' + systemTimeInMillis().toString() + '\n        ');
    return this_0.f3();
  }
  function MIGRATION_155_156_CLIENT$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return emptyList();
  }
  function MIGRATION_156_157$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_156_157.<anonymous>.<anonymous>' call
    this_0.i1('DROP TABLE IF EXISTS CourseAssignmentSubmissionAttachment');
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionFile (  casaSubmissionUid  INTEGER  NOT NULL , casaCaUid  INTEGER  NOT NULL , casaClazzUid  INTEGER  NOT NULL , casaMimeType  TEXT , casaFileName  TEXT , casaUri  TEXT , casaSize  INTEGER  NOT NULL , casaTimestamp  INTEGER  NOT NULL , casaUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionFile (  casaSubmissionUid  BIGINT  NOT NULL , casaCaUid  BIGINT  NOT NULL , casaClazzUid  BIGINT  NOT NULL , casaMimeType  TEXT , casaFileName  TEXT , casaUri  TEXT , casaSize  INTEGER  NOT NULL , casaTimestamp  BIGINT  NOT NULL , casaUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
    }
    return this_0.f3();
  }
  function MIGRATION_157_158$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_157_158.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('ALTER TABLE CourseAssignmentSubmissionFile ADD COLUMN casaDeleted INTEGER NOT NULL DEFAULT 0');
    } else {
      this_0.i1('ALTER TABLE CourseAssignmentSubmissionFile ADD COLUMN casaDeleted BOOL NOT NULL DEFAULT FALSE');
    }
    return this_0.f3();
  }
  function MIGRATION_158_159$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_158_159.<anonymous>.<anonymous>' call
    var tmp;
    var tmp_0 = dbType(db);
    Companion_getInstance_1();
    if (tmp_0 === 1) {
      tmp = 'INTEGER';
    } else {
      tmp = 'BIGINT';
    }
    var colType = tmp;
    this_0.i1('ALTER TABLE CourseAssignmentSubmissionFile ADD COLUMN casaSubmitterUid ' + colType + ' NOT NULL DEFAULT 0');
    return this_0.f3();
  }
  function MIGRATION_159_160$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_159_160.<anonymous>.<anonymous>' call
    this_0.i1('DROP TABLE IF EXISTS Comments');
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS Comments (  commentsText  TEXT , commentsEntityUid  INTEGER  NOT NULL , commentsStatus  INTEGER  NOT NULL , commentsFromPersonUid  INTEGER  NOT NULL , commentsForSubmitterUid  INTEGER  NOT NULL , commentsFromSubmitterUid  INTEGER  NOT NULL , commentsFlagged  INTEGER  NOT NULL , commentsDeleted  INTEGER  NOT NULL , commentsDateTimeAdded  INTEGER  NOT NULL , commentsLct  INTEGER  NOT NULL , commentsUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS Comments (  commentsText  TEXT , commentsEntityUid  BIGINT  NOT NULL , commentsStatus  INTEGER  NOT NULL , commentsFromPersonUid  BIGINT  NOT NULL , commentsForSubmitterUid  BIGINT  NOT NULL , commentsFromSubmitterUid  BIGINT  NOT NULL , commentsFlagged  BOOL  NOT NULL , commentsDeleted  BOOL  NOT NULL , commentsDateTimeAdded  BIGINT  NOT NULL , commentsLct  BIGINT  NOT NULL , commentsUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
    }
    this_0.i1('CREATE INDEX idx_comments_entity_submitter ON Comments (commentsEntityUid, commentsForSubmitterUid)');
    return this_0.f3();
  }
  function MIGRATION_160_161$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_160_161.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 2) {
      this_0.i1('ALTER TABLE DiscussionPost DROP COLUMN discussionPostVisible');
      this_0.i1('ALTER TABLE DiscussionPost DROP COLUMN discussionPostArchive');
      this_0.i1('ALTER TABLE DiscussionPost ADD COLUMN dpDeleted BOOL NOT NULL DEFAULT FALSE');
      this_0.i1('ALTER TABLE DiscussionPost ADD COLUMN discussionPostReplyToPostUid BIGINT NOT NULL DEFAULT 0');
      this_0.i1('ALTER TABLE DiscussionPost ADD COLUMN discussionPostCourseBlockUid BIGINT NOT NULL DEFAULT 0');
    } else {
      this_0.i1('ALTER TABLE DiscussionPost RENAME to DiscussionPost_OLD');
      this_0.i1('CREATE TABLE IF NOT EXISTS DiscussionPost (  discussionPostReplyToPostUid  INTEGER  NOT NULL , discussionPostTitle  TEXT , discussionPostMessage  TEXT , discussionPostStartDate  INTEGER  NOT NULL , discussionPostCourseBlockUid  INTEGER  NOT NULL , dpDeleted  INTEGER  NOT NULL , discussionPostStartedPersonUid  INTEGER  NOT NULL , discussionPostClazzUid  INTEGER  NOT NULL , discussionPostLct  INTEGER  NOT NULL , discussionPostUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
      this_0.i1('INSERT INTO DiscussionPost (discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostUid) SELECT discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, 0 AS dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostUid FROM DiscussionPost_OLD');
      this_0.i1('DROP TABLE DiscussionPost_OLD');
    }
    return this_0.f3();
  }
  function MIGRATION_161_162_SERVER$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_161_162_SERVER.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('\n                        CREATE TRIGGER IF NOT EXISTS Retain_CourseAssignmentSubmissionFile_Ins_casaUri\n                        AFTER INSERT ON CourseAssignmentSubmissionFile\n                        FOR EACH ROW WHEN NEW.casaUri IS NOT NULL\n                        BEGIN\n                        INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n                        VALUES(90, NEW.casaUid, NEW.casaUri, 0, 1, 1);\n                        END\n                    ');
      this_0.i1('\n                    CREATE TRIGGER IF NOT EXISTS Retain_CourseAssignmentSubmissionFile_Upd_casaUri_New\n                    AFTER UPDATE ON CourseAssignmentSubmissionFile\n                    FOR EACH ROW WHEN NEW.casaUri != OLD.casaUri AND NEW.casaUri IS NOT NULL\n                    BEGIN\n                        INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n                        VALUES(90, NEW.casaUid, NEW.casaUri, 0, 1, 1);\n                    END   \n                ');
      this_0.i1('CREATE TRIGGER IF NOT EXISTS Retain_CourseAssignmentSubmissionFile_Upd_casaUri_Old\nAFTER UPDATE ON CourseAssignmentSubmissionFile\nFOR EACH ROW WHEN NEW.casaUri != OLD.casaUri AND OLD.casaUri IS NOT NULL\nBEGIN\n    UPDATE CacheLockJoin \n       SET cljStatus = 3\n     WHERE cljTableId = 90\n       AND cljEntityUid = OLD.casaUid\n       AND cljUrl = OLD.casaUri;\nEND        ');
      this_0.i1('CREATE TRIGGER IF NOT EXISTS Retain_CourseAssignmentSubmissionFile_Del_casaUri\nAFTER DELETE ON CourseAssignmentSubmissionFile\nFOR EACH ROW WHEN OLD.casaUri IS NOT NULL\nBEGIN\n    UPDATE CacheLockJoin \n       SET cljStatus = 3\n     WHERE cljTableId = 90\n       AND cljEntityUid = OLD.casaUid\n       AND cljUrl = OLD.casaUri;\nEND       ');
    } else {
      this_0.i1('\n                            CREATE OR REPLACE FUNCTION retain_c_clj_90_casaUri() RETURNS TRIGGER AS $$\n                            BEGIN\n                            INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n                            VALUES(90, NEW.casaUid, NEW.casaUri, 0, 1, 1);\n                            RETURN NEW;\n                            END $$ LANGUAGE plpgsql\n                        ');
      this_0.i1('\n                            CREATE OR REPLACE FUNCTION retain_d_clj_90_casaUri() RETURNS TRIGGER AS $$\n                            BEGIN\n                            UPDATE CacheLockJoin \n                               SET cljStatus = 3\n                             WHERE cljTableId = 90\n                               AND cljEntityUid = OLD.casaUid\n                               AND cljUrl = OLD.casaUri;\n                            RETURN OLD;\n                            END $$ LANGUAGE plpgsql   \n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_c_clj_90_casaUri_ins_t\n                            AFTER INSERT ON CourseAssignmentSubmissionFile\n                            FOR EACH ROW\n                            WHEN (NEW.casaUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_c_clj_90_casaUri();\n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_c_clj_90_casaUri_upd_t\n                            AFTER UPDATE ON CourseAssignmentSubmissionFile\n                            FOR EACH ROW\n                            WHEN (NEW.casaUri IS DISTINCT FROM OLD.casaUri AND OLD.casaUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_c_clj_90_casaUri();\n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_d_clj_90_casaUri_upd_t\n                            AFTER UPDATE ON CourseAssignmentSubmissionFile\n                            FOR EACH ROW\n                            WHEN (NEW.casaUri IS DISTINCT FROM OLD.casaUri AND NEW.casaUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_d_clj_90_casaUri();\n                        ');
    }
    return this_0.f3();
  }
  function MIGRATION_161_162_CLIENT$lambda(it) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return emptyList();
  }
  function MIGRATION_162_163$lambda(it) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return listOf('ALTER TABLE ContentEntry ADD COLUMN contentOwnerType INTEGER NOT NULL DEFAULT 0');
  }
  function MIGRATION_163_164$lambda(it) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return listOf('ALTER TABLE ContentEntryImportJob ADD COLUMN cjiCompressionLevel INTEGER NOT NULL DEFAULT 0');
  }
  function MIGRATION_164_165$lambda(it) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_164_165.<anonymous>.<anonymous>' call
    this_0.i1('ALTER TABLE ContentEntryImportJob ADD COLUMN cjiError TEXT');
    var tmp = dbType(it);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('ALTER TABLE ContentEntryImportJob ADD COLUMN cjiErrorDismissed INTEGER NOT NULL DEFAULT 0');
    } else {
      this_0.i1('ALTER TABLE ContentEntryImportJob ADD COLUMN cjiErrorDismissed BOOL NOT NULL DEFAULT FALSE');
    }
    return this_0.f3();
  }
  function MIGRATION_165_166$lambda(it) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    var tmp;
    var tmp_0 = dbType(it);
    Companion_getInstance_1();
    if (tmp_0 === 1) {
      tmp = listOf('ALTER TABLE ContentEntryImportJob ADD COLUMN cjiOwnerPersonUid INTEGER NOT NULL DEFAULT 0');
    } else {
      tmp = listOf('ALTER TABLE ContentEntryImportJob ADD COLUMN cjiOwnerPersonUid BIGINT NOT NULL DEFAULT 0');
    }
    return tmp;
  }
  function MIGRATION_166_167$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return listOf('UPDATE ContentEntryImportJob SET cjiStatus = 24 WHERE cjiStatus = 4');
  }
  function MIGRATION_167_168$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    var tmp;
    var tmp_0 = dbType(db);
    Companion_getInstance_1();
    if (tmp_0 === 1) {
      tmp = listOf('CREATE TABLE IF NOT EXISTS CourseBlockPicture (  cbpUid  INTEGER  PRIMARY KEY  NOT NULL , cbpLct  INTEGER  NOT NULL , cbpPictureUri  TEXT , cbpThumbnailUri  TEXT )');
    } else {
      tmp = listOf('CREATE TABLE IF NOT EXISTS CourseBlockPicture (  cbpUid  BIGINT  PRIMARY KEY  NOT NULL , cbpLct  BIGINT  NOT NULL , cbpPictureUri  TEXT , cbpThumbnailUri  TEXT )');
    }
    return tmp;
  }
  function MIGRATION_168_169$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    var tmp;
    var tmp_0 = dbType(db);
    Companion_getInstance_1();
    if (tmp_0 === 1) {
      tmp = listOf('CREATE TABLE IF NOT EXISTS ContentEntryPicture2 (  cepUid  INTEGER  PRIMARY KEY  NOT NULL , cepLct  INTEGER  NOT NULL , cepPictureUri  TEXT , cepThumbnailUri  TEXT )');
    } else {
      tmp = listOf('CREATE TABLE IF NOT EXISTS ContentEntryPicture2 (  cepUid  BIGINT  PRIMARY KEY  NOT NULL , cepLct  BIGINT  NOT NULL , cepPictureUri  TEXT , cepThumbnailUri  TEXT )');
    }
    return tmp;
  }
  function MIGRATION_169_170_SERVER$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_169_170_SERVER.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('\n                        CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Ins_cbpPictureUri\n                        AFTER INSERT ON CourseBlockPicture\n                        FOR EACH ROW WHEN NEW.cbpPictureUri IS NOT NULL\n                        BEGIN\n                        INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n                        VALUES(6677, NEW.cbpUid, NEW.cbpPictureUri, 0, 1, 1);\n                        END\n                    ');
      this_0.i1('\n                        CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Ins_cbpThumbnailUri\n                        AFTER INSERT ON CourseBlockPicture\n                        FOR EACH ROW WHEN NEW.cbpThumbnailUri IS NOT NULL\n                        BEGIN\n                        INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n                        VALUES(6677, NEW.cbpUid, NEW.cbpThumbnailUri, 0, 1, 1);\n                        END\n                    ');
      this_0.i1('\n                    CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Upd_cbpPictureUri_New\n                    AFTER UPDATE ON CourseBlockPicture\n                    FOR EACH ROW WHEN NEW.cbpPictureUri != OLD.cbpPictureUri AND NEW.cbpPictureUri IS NOT NULL\n                    BEGIN\n                        INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n                        VALUES(6677, NEW.cbpUid, NEW.cbpPictureUri, 0, 1, 1);\n                    END   \n                ');
      this_0.i1('CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Upd_cbpPictureUri_Old\nAFTER UPDATE ON CourseBlockPicture\nFOR EACH ROW WHEN NEW.cbpPictureUri != OLD.cbpPictureUri AND OLD.cbpPictureUri IS NOT NULL\nBEGIN\n    UPDATE CacheLockJoin \n       SET cljStatus = 3\n     WHERE cljTableId = 6677\n       AND cljEntityUid = OLD.cbpUid\n       AND cljUrl = OLD.cbpPictureUri;\nEND        ');
      this_0.i1('\n                    CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Upd_cbpThumbnailUri_New\n                    AFTER UPDATE ON CourseBlockPicture\n                    FOR EACH ROW WHEN NEW.cbpThumbnailUri != OLD.cbpThumbnailUri AND NEW.cbpThumbnailUri IS NOT NULL\n                    BEGIN\n                        INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n                        VALUES(6677, NEW.cbpUid, NEW.cbpThumbnailUri, 0, 1, 1);\n                    END   \n                ');
      this_0.i1('CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Upd_cbpThumbnailUri_Old\nAFTER UPDATE ON CourseBlockPicture\nFOR EACH ROW WHEN NEW.cbpThumbnailUri != OLD.cbpThumbnailUri AND OLD.cbpThumbnailUri IS NOT NULL\nBEGIN\n    UPDATE CacheLockJoin \n       SET cljStatus = 3\n     WHERE cljTableId = 6677\n       AND cljEntityUid = OLD.cbpUid\n       AND cljUrl = OLD.cbpThumbnailUri;\nEND        ');
      this_0.i1('CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Del_cbpPictureUri\nAFTER DELETE ON CourseBlockPicture\nFOR EACH ROW WHEN OLD.cbpPictureUri IS NOT NULL\nBEGIN\n    UPDATE CacheLockJoin \n       SET cljStatus = 3\n     WHERE cljTableId = 6677\n       AND cljEntityUid = OLD.cbpUid\n       AND cljUrl = OLD.cbpPictureUri;\nEND       ');
      this_0.i1('CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Del_cbpThumbnailUri\nAFTER DELETE ON CourseBlockPicture\nFOR EACH ROW WHEN OLD.cbpThumbnailUri IS NOT NULL\nBEGIN\n    UPDATE CacheLockJoin \n       SET cljStatus = 3\n     WHERE cljTableId = 6677\n       AND cljEntityUid = OLD.cbpUid\n       AND cljUrl = OLD.cbpThumbnailUri;\nEND       ');
      this_0.i1('\n                        CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Ins_cepPictureUri\n                        AFTER INSERT ON ContentEntryPicture2\n                        FOR EACH ROW WHEN NEW.cepPictureUri IS NOT NULL\n                        BEGIN\n                        INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n                        VALUES(6678, NEW.cepUid, NEW.cepPictureUri, 0, 1, 1);\n                        END\n                    ');
      this_0.i1('\n                        CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Ins_cepThumbnailUri\n                        AFTER INSERT ON ContentEntryPicture2\n                        FOR EACH ROW WHEN NEW.cepThumbnailUri IS NOT NULL\n                        BEGIN\n                        INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n                        VALUES(6678, NEW.cepUid, NEW.cepThumbnailUri, 0, 1, 1);\n                        END\n                    ');
      this_0.i1('\n                    CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Upd_cepPictureUri_New\n                    AFTER UPDATE ON ContentEntryPicture2\n                    FOR EACH ROW WHEN NEW.cepPictureUri != OLD.cepPictureUri AND NEW.cepPictureUri IS NOT NULL\n                    BEGIN\n                        INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n                        VALUES(6678, NEW.cepUid, NEW.cepPictureUri, 0, 1, 1);\n                    END   \n                ');
      this_0.i1('CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Upd_cepPictureUri_Old\nAFTER UPDATE ON ContentEntryPicture2\nFOR EACH ROW WHEN NEW.cepPictureUri != OLD.cepPictureUri AND OLD.cepPictureUri IS NOT NULL\nBEGIN\n    UPDATE CacheLockJoin \n       SET cljStatus = 3\n     WHERE cljTableId = 6678\n       AND cljEntityUid = OLD.cepUid\n       AND cljUrl = OLD.cepPictureUri;\nEND        ');
      this_0.i1('\n                    CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Upd_cepThumbnailUri_New\n                    AFTER UPDATE ON ContentEntryPicture2\n                    FOR EACH ROW WHEN NEW.cepThumbnailUri != OLD.cepThumbnailUri AND NEW.cepThumbnailUri IS NOT NULL\n                    BEGIN\n                        INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n                        VALUES(6678, NEW.cepUid, NEW.cepThumbnailUri, 0, 1, 1);\n                    END   \n                ');
      this_0.i1('CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Upd_cepThumbnailUri_Old\nAFTER UPDATE ON ContentEntryPicture2\nFOR EACH ROW WHEN NEW.cepThumbnailUri != OLD.cepThumbnailUri AND OLD.cepThumbnailUri IS NOT NULL\nBEGIN\n    UPDATE CacheLockJoin \n       SET cljStatus = 3\n     WHERE cljTableId = 6678\n       AND cljEntityUid = OLD.cepUid\n       AND cljUrl = OLD.cepThumbnailUri;\nEND        ');
      this_0.i1('CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Del_cepPictureUri\nAFTER DELETE ON ContentEntryPicture2\nFOR EACH ROW WHEN OLD.cepPictureUri IS NOT NULL\nBEGIN\n    UPDATE CacheLockJoin \n       SET cljStatus = 3\n     WHERE cljTableId = 6678\n       AND cljEntityUid = OLD.cepUid\n       AND cljUrl = OLD.cepPictureUri;\nEND       ');
      this_0.i1('CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Del_cepThumbnailUri\nAFTER DELETE ON ContentEntryPicture2\nFOR EACH ROW WHEN OLD.cepThumbnailUri IS NOT NULL\nBEGIN\n    UPDATE CacheLockJoin \n       SET cljStatus = 3\n     WHERE cljTableId = 6678\n       AND cljEntityUid = OLD.cepUid\n       AND cljUrl = OLD.cepThumbnailUri;\nEND       ');
    } else {
      this_0.i1('\n                            CREATE OR REPLACE FUNCTION retain_c_clj_6677_cbpPictureUri() RETURNS TRIGGER AS $$\n                            BEGIN\n                            INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n                            VALUES(6677, NEW.cbpUid, NEW.cbpPictureUri, 0, 1, 1);\n                            RETURN NEW;\n                            END $$ LANGUAGE plpgsql\n                        ');
      this_0.i1('\n                            CREATE OR REPLACE FUNCTION retain_d_clj_6677_cbpPictureUri() RETURNS TRIGGER AS $$\n                            BEGIN\n                            UPDATE CacheLockJoin \n                               SET cljStatus = 3\n                             WHERE cljTableId = 6677\n                               AND cljEntityUid = OLD.cbpUid\n                               AND cljUrl = OLD.cbpPictureUri;\n                            RETURN OLD;\n                            END $$ LANGUAGE plpgsql   \n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_c_clj_6677_cbpPictureUri_ins_t\n                            AFTER INSERT ON CourseBlockPicture\n                            FOR EACH ROW\n                            WHEN (NEW.cbpPictureUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_c_clj_6677_cbpPictureUri();\n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_c_clj_6677_cbpPictureUri_upd_t\n                            AFTER UPDATE ON CourseBlockPicture\n                            FOR EACH ROW\n                            WHEN (NEW.cbpPictureUri IS DISTINCT FROM OLD.cbpPictureUri AND OLD.cbpPictureUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_c_clj_6677_cbpPictureUri();\n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_d_clj_6677_cbpPictureUri_upd_t\n                            AFTER UPDATE ON CourseBlockPicture\n                            FOR EACH ROW\n                            WHEN (NEW.cbpPictureUri IS DISTINCT FROM OLD.cbpPictureUri AND NEW.cbpPictureUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_d_clj_6677_cbpPictureUri();\n                        ');
      this_0.i1('\n                            CREATE OR REPLACE FUNCTION retain_c_clj_6677_cbpThumbnailUri() RETURNS TRIGGER AS $$\n                            BEGIN\n                            INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n                            VALUES(6677, NEW.cbpUid, NEW.cbpThumbnailUri, 0, 1, 1);\n                            RETURN NEW;\n                            END $$ LANGUAGE plpgsql\n                        ');
      this_0.i1('\n                            CREATE OR REPLACE FUNCTION retain_d_clj_6677_cbpThumbnailUri() RETURNS TRIGGER AS $$\n                            BEGIN\n                            UPDATE CacheLockJoin \n                               SET cljStatus = 3\n                             WHERE cljTableId = 6677\n                               AND cljEntityUid = OLD.cbpUid\n                               AND cljUrl = OLD.cbpThumbnailUri;\n                            RETURN OLD;\n                            END $$ LANGUAGE plpgsql   \n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_c_clj_6677_cbpThumbnailUri_ins_t\n                            AFTER INSERT ON CourseBlockPicture\n                            FOR EACH ROW\n                            WHEN (NEW.cbpThumbnailUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_c_clj_6677_cbpThumbnailUri();\n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_c_clj_6677_cbpThumbnailUri_upd_t\n                            AFTER UPDATE ON CourseBlockPicture\n                            FOR EACH ROW\n                            WHEN (NEW.cbpThumbnailUri IS DISTINCT FROM OLD.cbpThumbnailUri AND OLD.cbpThumbnailUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_c_clj_6677_cbpThumbnailUri();\n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_d_clj_6677_cbpThumbnailUri_upd_t\n                            AFTER UPDATE ON CourseBlockPicture\n                            FOR EACH ROW\n                            WHEN (NEW.cbpThumbnailUri IS DISTINCT FROM OLD.cbpThumbnailUri AND NEW.cbpThumbnailUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_d_clj_6677_cbpThumbnailUri();\n                        ');
      this_0.i1('\n                            CREATE OR REPLACE FUNCTION retain_c_clj_6678_cepPictureUri() RETURNS TRIGGER AS $$\n                            BEGIN\n                            INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n                            VALUES(6678, NEW.cepUid, NEW.cepPictureUri, 0, 1, 1);\n                            RETURN NEW;\n                            END $$ LANGUAGE plpgsql\n                        ');
      this_0.i1('\n                            CREATE OR REPLACE FUNCTION retain_d_clj_6678_cepPictureUri() RETURNS TRIGGER AS $$\n                            BEGIN\n                            UPDATE CacheLockJoin \n                               SET cljStatus = 3\n                             WHERE cljTableId = 6678\n                               AND cljEntityUid = OLD.cepUid\n                               AND cljUrl = OLD.cepPictureUri;\n                            RETURN OLD;\n                            END $$ LANGUAGE plpgsql   \n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_c_clj_6678_cepPictureUri_ins_t\n                            AFTER INSERT ON ContentEntryPicture2\n                            FOR EACH ROW\n                            WHEN (NEW.cepPictureUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_c_clj_6678_cepPictureUri();\n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_c_clj_6678_cepPictureUri_upd_t\n                            AFTER UPDATE ON ContentEntryPicture2\n                            FOR EACH ROW\n                            WHEN (NEW.cepPictureUri IS DISTINCT FROM OLD.cepPictureUri AND OLD.cepPictureUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_c_clj_6678_cepPictureUri();\n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_d_clj_6678_cepPictureUri_upd_t\n                            AFTER UPDATE ON ContentEntryPicture2\n                            FOR EACH ROW\n                            WHEN (NEW.cepPictureUri IS DISTINCT FROM OLD.cepPictureUri AND NEW.cepPictureUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_d_clj_6678_cepPictureUri();\n                        ');
      this_0.i1('\n                            CREATE OR REPLACE FUNCTION retain_c_clj_6678_cepThumbnailUri() RETURNS TRIGGER AS $$\n                            BEGIN\n                            INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n                            VALUES(6678, NEW.cepUid, NEW.cepThumbnailUri, 0, 1, 1);\n                            RETURN NEW;\n                            END $$ LANGUAGE plpgsql\n                        ');
      this_0.i1('\n                            CREATE OR REPLACE FUNCTION retain_d_clj_6678_cepThumbnailUri() RETURNS TRIGGER AS $$\n                            BEGIN\n                            UPDATE CacheLockJoin \n                               SET cljStatus = 3\n                             WHERE cljTableId = 6678\n                               AND cljEntityUid = OLD.cepUid\n                               AND cljUrl = OLD.cepThumbnailUri;\n                            RETURN OLD;\n                            END $$ LANGUAGE plpgsql   \n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_c_clj_6678_cepThumbnailUri_ins_t\n                            AFTER INSERT ON ContentEntryPicture2\n                            FOR EACH ROW\n                            WHEN (NEW.cepThumbnailUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_c_clj_6678_cepThumbnailUri();\n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_c_clj_6678_cepThumbnailUri_upd_t\n                            AFTER UPDATE ON ContentEntryPicture2\n                            FOR EACH ROW\n                            WHEN (NEW.cepThumbnailUri IS DISTINCT FROM OLD.cepThumbnailUri AND OLD.cepThumbnailUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_c_clj_6678_cepThumbnailUri();\n                        ');
      this_0.i1('\n                            CREATE TRIGGER retain_d_clj_6678_cepThumbnailUri_upd_t\n                            AFTER UPDATE ON ContentEntryPicture2\n                            FOR EACH ROW\n                            WHEN (NEW.cepThumbnailUri IS DISTINCT FROM OLD.cepThumbnailUri AND NEW.cepThumbnailUri IS NOT NULL)\n                            EXECUTE FUNCTION retain_d_clj_6678_cepThumbnailUri();\n                        ');
    }
    return this_0.f3();
  }
  function MIGRATION_169_170_CLIENT$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return emptyList();
  }
  function MIGRATION_170_171$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_170_171.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS TransferJobError (  tjeTjUid  INTEGER  NOT NULL , tjeTime  INTEGER  NOT NULL , tjeErrorStr  TEXT , tjeDismissed  INTEGER  NOT NULL , tjeId  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS TransferJobError (  tjeTjUid  INTEGER  NOT NULL , tjeTime  BIGINT  NOT NULL , tjeErrorStr  TEXT , tjeDismissed  BOOL  NOT NULL , tjeId  SERIAL  PRIMARY KEY  NOT NULL )');
    }
    this_0.i1('CREATE INDEX idx_transferjoberror_tjetjuid ON TransferJobError (tjeTjUid)');
    return this_0.f3();
  }
  function MIGRATION_171_172$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_171_172.<anonymous>.<anonymous>' call
    this_0.i1('ALTER TABLE CourseBlock ADD COLUMN cbSourcedId TEXT');
    this_0.i1('CREATE INDEX idx_courseblock_cbclazzuid ON CourseBlock (cbClazzUid)');
    this_0.i1('CREATE INDEX idx_courseblock_cbsourcedid ON CourseBlock (cbSourcedId)');
    return this_0.f3();
  }
  function MIGRATION_172_194$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_172_194.<anonymous>.<anonymous>' call
    this_0.i1('ALTER TABLE CourseBlock ADD COLUMN cbClazzSourcedId TEXT');
    this_0.i1('ALTER TABLE CourseBlock ADD COLUMN cbCreatedByAppId TEXT');
    this_0.i1('ALTER TABLE CourseBlock ADD COLUMN cbMetadata TEXT');
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('ALTER TABLE CourseBlock RENAME to CourseBlock_OLD');
      this_0.i1('CREATE TABLE IF NOT EXISTS CourseBlock (  cbType  INTEGER  NOT NULL , cbIndentLevel  INTEGER  NOT NULL , cbModuleParentBlockUid  INTEGER  NOT NULL , cbTitle  TEXT , cbDescription  TEXT , cbCompletionCriteria  INTEGER  NOT NULL , cbHideUntilDate  INTEGER  NOT NULL , cbDeadlineDate  INTEGER  NOT NULL , cbLateSubmissionPenalty  INTEGER  NOT NULL , cbGracePeriodDate  INTEGER  NOT NULL , cbMaxPoints  REAl , cbMinPoints  REAL , cbIndex  INTEGER  NOT NULL , cbClazzUid  INTEGER  NOT NULL , cbClazzSourcedId  TEXT , cbActive  INTEGER  NOT NULL , cbHidden  INTEGER  NOT NULL , cbEntityUid  INTEGER  NOT NULL , cbLct  INTEGER  NOT NULL , cbSourcedId  TEXT , cbMetadata  TEXT , cbCreatedByAppId  TEXT , cbUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
      this_0.i1('INSERT INTO CourseBlock (cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId, cbUid) SELECT cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId, cbUid FROM CourseBlock_OLD');
      this_0.i1('DROP TABLE CourseBlock_OLD');
      this_0.i1('CREATE INDEX idx_courseblock_cbclazzuid ON CourseBlock (cbClazzUid)');
      this_0.i1('CREATE INDEX idx_courseblock_cbsourcedid ON CourseBlock (cbSourcedId)');
    } else {
      this_0.i1('ALTER TABLE CourseBlock ALTER COLUMN cbMaxPoints TYPE FLOAT');
      this_0.i1('ALTER TABLE CourseBlock ALTER COLUMN cbMaxPoints DROP NOT NULL');
      this_0.i1('ALTER TABLE CourseBlock ALTER COLUMN cbMinPoints TYPE FLOAT');
      this_0.i1('ALTER TABLE CourseBlock ALTER COLUMN cbMinPoints DROP NOT NULL');
    }
    var tmp_0;
    var tmp_1 = dbType(db);
    Companion_getInstance_1();
    if (tmp_1 === 1) {
      tmp_0 = 'INTEGER';
    } else {
      tmp_0 = 'BIGINT';
    }
    var bigIntType = tmp_0;
    // Inline function 'kotlin.collections.forEach' call
    var tmp0_iterator = numberRangeToNumber(3, 4).w();
    while (tmp0_iterator.f()) {
      var element = tmp0_iterator.e();
      // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_172_194.<anonymous>.<anonymous>.<anonymous>' call
      this_0.i1('ALTER TABLE OutgoingReplication ADD COLUMN orPk' + element + ' ' + bigIntType + ' NOT NULL DEFAULT 0');
    }
    var tmp_2 = dbType(db);
    Companion_getInstance_1();
    if (tmp_2 === 1) {
      this_0.i1('ALTER TABLE OutgoingReplication RENAME to OutgoingReplication_OLD');
      this_0.i1('CREATE TABLE IF NOT EXISTS OutgoingReplication (  destNodeId  INTEGER  NOT NULL , orPk1  INTEGER  NOT NULL , orPk2  INTEGER  NOT NULL  DEFAULT 0 , orPk3  INTEGER  NOT NULL  DEFAULT 0 , orPk4  INTEGER  NOT NULL  DEFAULT 0 , orTableId  INTEGER  NOT NULL , orUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
      this_0.i1('INSERT INTO OutgoingReplication (destNodeId, orPk1, orPk2, orPk3, orPk4, orTableId, orUid) SELECT destNodeId, orPk1, orPk2, orPk3, orPk4, orTableId, orUid FROM OutgoingReplication_OLD');
      this_0.i1('DROP TABLE OutgoingReplication_OLD');
    } else {
      this_0.i1('ALTER TABLE OutgoingReplication ALTER COLUMN orPk2 SET DEFAULT 0');
    }
    // Inline function 'kotlin.collections.forEach' call
    var tmp0_iterator_0 = listOf_0(['StudentResult', 'StatementEntity', 'AgentEntity', 'VerbLangMapEntry', 'XObjectEntity', 'ContextXObjectStatementJoin', 'VerbEntity']).w();
    while (tmp0_iterator_0.f()) {
      var element_0 = tmp0_iterator_0.e();
      // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_172_194.<anonymous>.<anonymous>.<anonymous>' call
      this_0.i1('DROP TABLE IF EXISTS ' + element_0);
    }
    var tmp_3 = dbType(db);
    Companion_getInstance_1();
    if (tmp_3 === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS StudentResult (  srUid  INTEGER  PRIMARY KEY  NOT NULL , srSourcedId  TEXT , srCourseBlockUid  INTEGER  NOT NULL , srLineItemSourcedId  TEXT , srLineItemHref  TEXT , srClazzUid  INTEGER  NOT NULL , srAssignmentUid  INTEGER  NOT NULL , srStatus  INTEGER  NOT NULL , srMetaData  TEXT , srStudentPersonUid  INTEGER  NOT NULL , srStudentPersonSourcedId  TEXT , srStudentGroupId  INTEGER  NOT NULL , srMarkerPersonUid  INTEGER  NOT NULL , srMarkerGroupId  INTEGER  NOT NULL , srScoreStatus  INTEGER  NOT NULL , srScore  REAl  NOT NULL , srScoreDate  INTEGER  NOT NULL , srLastModified  INTEGER  NOT NULL , srComment  TEXT , srAppId  TEXT , srDeleted  INTEGER  NOT NULL )');
      this_0.i1('CREATE TABLE IF NOT EXISTS ActivityEntity (  actUid  INTEGER  PRIMARY KEY  NOT NULL , actIdIri  TEXT , actType  TEXT , actMoreInfo  TEXT , actInteractionType  INTEGER  NOT NULL , actCorrectResponsePatterns  TEXT , actLct  INTEGER  NOT NULL )');
      this_0.i1('CREATE TABLE IF NOT EXISTS ActivityExtensionEntity (  aeeActivityUid  INTEGER  NOT NULL , aeeKeyHash  INTEGER  NOT NULL , aeeKey  TEXT , aeeJson  TEXT , aeeLastMod  INTEGER  NOT NULL , aeeIsDeleted  INTEGER  NOT NULL , PRIMARY KEY (aeeActivityUid, aeeKeyHash) )');
      this_0.i1('CREATE TABLE IF NOT EXISTS ActivityInteractionEntity (  aieActivityUid  INTEGER  NOT NULL , aieHash  INTEGER  NOT NULL , aieProp  INTEGER  NOT NULL , aieId  TEXT , aieLastMod  INTEGER  NOT NULL , aieIsDeleted  INTEGER  NOT NULL , PRIMARY KEY (aieActivityUid, aieHash) )');
      this_0.i1('CREATE TABLE IF NOT EXISTS ActivityLangMapEntry (  almeActivityUid  INTEGER  NOT NULL , almeHash  INTEGER  NOT NULL , almeLangCode  TEXT , almeValue  TEXT , almeAieHash  INTEGER  NOT NULL , almeLastMod  INTEGER  NOT NULL , PRIMARY KEY (almeActivityUid, almeHash) )');
      this_0.i1('CREATE TABLE IF NOT EXISTS ActorEntity (  actorPersonUid  INTEGER  NOT NULL , actorName  TEXT , actorMbox  TEXT , actorMbox_sha1sum  TEXT , actorOpenid  TEXT , actorAccountName  TEXT , actorAccountHomePage  TEXT , actorEtag  INTEGER  NOT NULL , actorLct  INTEGER  NOT NULL , actorObjectType  INTEGER  NOT NULL , actorUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
      this_0.i1('CREATE TABLE IF NOT EXISTS GroupMemberActorJoin (  gmajGroupActorUid  BIGINT  NOT NULL , gmajMemberActorUid  BIGINT  NOT NULL , gmajLastMod  BIGINT  NOT NULL , PRIMARY KEY (gmajGroupActorUid, gmajMemberActorUid) )');
      this_0.i1('CREATE TABLE IF NOT EXISTS StatementContextActivityJoin (  scajFromStatementIdHi  INTEGER  NOT NULL , scajFromStatementIdLo  INTEGER  NOT NULL , scajToHash  INTEGER  NOT NULL , scajContextType  INTEGER  NOT NULL , scajToActivityUid  INTEGER  NOT NULL , scajToActivityId  TEXT , scajEtag  INTEGER  NOT NULL , PRIMARY KEY (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash) )');
      this_0.i1('CREATE TABLE IF NOT EXISTS StatementEntity (  statementIdHi  INTEGER  NOT NULL , statementIdLo  INTEGER  NOT NULL , statementActorPersonUid  INTEGER  NOT NULL , statementVerbUid  INTEGER  NOT NULL , statementObjectType  INTEGER  NOT NULL , statementObjectUid1  INTEGER  NOT NULL , statementObjectUid2  INTEGER  NOT NULL , statementActorUid  INTEGER  NOT NULL , authorityActorUid  INTEGER  NOT NULL , teamUid  INTEGER  NOT NULL , resultCompletion  INTEGER , resultSuccess  INTEGER , resultScoreScaled  REAl , resultScoreRaw  REAl , resultScoreMin  REAl , resultScoreMax  REAl , resultDuration  INTEGER , resultResponse  TEXT , timestamp  INTEGER  NOT NULL , stored  INTEGER  NOT NULL , contextRegistrationHi  INTEGER  NOT NULL , contextRegistrationLo  INTEGER  NOT NULL , contextPlatform  TEXT , contextStatementRefIdHi  INTEGER  NOT NULL , contextStatementRefIdLo  INTEGER  NOT NULL , contextInstructorActorUid  INTEGER  NOT NULL , statementLct  INTEGER  NOT NULL , extensionProgress  INTEGER , completionOrProgress  INTEGER  NOT NULL , statementContentEntryUid  INTEGER  NOT NULL , statementLearnerGroupUid  INTEGER  NOT NULL , statementClazzUid  INTEGER  NOT NULL , statementCbUid  INTEGER  NOT NULL , statementDoorNode  INTEGER  NOT NULL , isSubStatement  INTEGER  NOT NULL , PRIMARY KEY (statementIdHi, statementIdLo) )');
      this_0.i1('CREATE TABLE IF NOT EXISTS StatementEntityJson (  stmtJsonIdHi  INTEGER  NOT NULL , stmtJsonIdLo  INTEGER  NOT NULL , stmtEtag  INTEGER  NOT NULL , fullStatement  TEXT , PRIMARY KEY (stmtJsonIdHi, stmtJsonIdLo) )');
      this_0.i1('CREATE TABLE IF NOT EXISTS VerbEntity (  verbUid  INTEGER  PRIMARY KEY  NOT NULL , verbUrlId  TEXT , verbDeleted  INTEGER  NOT NULL , verbLct  INTEGER  NOT NULL )');
      this_0.i1('CREATE TABLE IF NOT EXISTS VerbLangMapEntry (  vlmeVerbUid  INTEGER  NOT NULL , vlmeLangHash  INTEGER  NOT NULL , vlmeLangCode  TEXT , vlmeEntryString  TEXT , vlmeLastModified  INTEGER  NOT NULL , PRIMARY KEY (vlmeVerbUid, vlmeLangHash) )');
      this_0.i1('CREATE TABLE IF NOT EXISTS XapiSessionEntity (  xseLastMod  INTEGER  NOT NULL , xseRegistrationHi  INTEGER  NOT NULL , xseRegistrationLo  INTEGER  NOT NULL , xseUsUid  INTEGER  NOT NULL , xseAccountPersonUid  INTEGER  NOT NULL , xseAccountUsername  TEXT , xseClazzUid  INTEGER  NOT NULL , xseCbUid  INTEGER  NOT NULL , xseContentEntryUid  INTEGER  NOT NULL , xseRootActivityId  TEXT , xseStartTime  INTEGER  NOT NULL , xseExpireTime  INTEGER  NOT NULL , xseAuth  TEXT , xseUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS StudentResult (  srUid  BIGINT  PRIMARY KEY  NOT NULL , srSourcedId  TEXT , srCourseBlockUid  BIGINT  NOT NULL , srLineItemSourcedId  TEXT , srLineItemHref  TEXT , srClazzUid  BIGINT  NOT NULL , srAssignmentUid  BIGINT  NOT NULL , srStatus  INTEGER  NOT NULL , srMetaData  TEXT , srStudentPersonUid  BIGINT  NOT NULL , srStudentPersonSourcedId  TEXT , srStudentGroupId  INTEGER  NOT NULL , srMarkerPersonUid  BIGINT  NOT NULL , srMarkerGroupId  INTEGER  NOT NULL , srScoreStatus  INTEGER  NOT NULL , srScore  FLOAT  NOT NULL , srScoreDate  BIGINT  NOT NULL , srLastModified  BIGINT  NOT NULL , srComment  TEXT , srAppId  TEXT , srDeleted  BOOL  NOT NULL )');
      this_0.i1('CREATE TABLE IF NOT EXISTS ActivityEntity (  actUid  BIGINT  PRIMARY KEY  NOT NULL , actIdIri  TEXT , actType  TEXT , actMoreInfo  TEXT , actInteractionType  INTEGER  NOT NULL , actCorrectResponsePatterns  TEXT , actLct  BIGINT  NOT NULL )');
      this_0.i1('CREATE TABLE IF NOT EXISTS ActivityExtensionEntity (  aeeActivityUid  BIGINT  NOT NULL , aeeKeyHash  BIGINT  NOT NULL , aeeKey  TEXT , aeeJson  TEXT , aeeLastMod  BIGINT  NOT NULL , aeeIsDeleted  BOOL  NOT NULL , PRIMARY KEY (aeeActivityUid, aeeKeyHash) )');
      this_0.i1('CREATE TABLE IF NOT EXISTS ActivityInteractionEntity (  aieActivityUid  BIGINT  NOT NULL , aieHash  BIGINT  NOT NULL , aieProp  INTEGER  NOT NULL , aieId  TEXT , aieLastMod  BIGINT  NOT NULL , aieIsDeleted  BOOL  NOT NULL , PRIMARY KEY (aieActivityUid, aieHash) )');
      this_0.i1('CREATE TABLE IF NOT EXISTS ActivityLangMapEntry (  almeActivityUid  BIGINT  NOT NULL , almeHash  BIGINT  NOT NULL , almeLangCode  TEXT , almeValue  TEXT , almeAieHash  BIGINT  NOT NULL , almeLastMod  BIGINT  NOT NULL , PRIMARY KEY (almeActivityUid, almeHash) )');
      this_0.i1('CREATE TABLE IF NOT EXISTS ActorEntity (  actorPersonUid  BIGINT  NOT NULL , actorName  TEXT , actorMbox  TEXT , actorMbox_sha1sum  TEXT , actorOpenid  TEXT , actorAccountName  TEXT , actorAccountHomePage  TEXT , actorEtag  BIGINT  NOT NULL , actorLct  BIGINT  NOT NULL , actorObjectType  INTEGER  NOT NULL , actorUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
      this_0.i1('CREATE TABLE IF NOT EXISTS GroupMemberActorJoin (  gmajGroupActorUid  BIGINT  NOT NULL , gmajMemberActorUid  BIGINT  NOT NULL , gmajLastMod  BIGINT  NOT NULL , PRIMARY KEY (gmajGroupActorUid, gmajMemberActorUid) )');
      this_0.i1('CREATE TABLE IF NOT EXISTS StatementContextActivityJoin (  scajFromStatementIdHi  BIGINT  NOT NULL , scajFromStatementIdLo  BIGINT  NOT NULL , scajToHash  BIGINT  NOT NULL , scajContextType  INTEGER  NOT NULL , scajToActivityUid  BIGINT  NOT NULL , scajToActivityId  TEXT , scajEtag  BIGINT  NOT NULL , PRIMARY KEY (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash) )');
      this_0.i1('CREATE TABLE IF NOT EXISTS StatementEntity (  statementIdHi  BIGINT  NOT NULL , statementIdLo  BIGINT  NOT NULL , statementActorPersonUid  BIGINT  NOT NULL , statementVerbUid  BIGINT  NOT NULL , statementObjectType  INTEGER  NOT NULL , statementObjectUid1  BIGINT  NOT NULL , statementObjectUid2  BIGINT  NOT NULL , statementActorUid  BIGINT  NOT NULL , authorityActorUid  BIGINT  NOT NULL , teamUid  BIGINT  NOT NULL , resultCompletion  BOOL , resultSuccess  BOOL , resultScoreScaled  FLOAT , resultScoreRaw  FLOAT , resultScoreMin  FLOAT , resultScoreMax  FLOAT , resultDuration  BIGINT , resultResponse  TEXT , timestamp  BIGINT  NOT NULL , stored  BIGINT  NOT NULL , contextRegistrationHi  BIGINT  NOT NULL , contextRegistrationLo  BIGINT  NOT NULL , contextPlatform  TEXT , contextStatementRefIdHi  BIGINT  NOT NULL , contextStatementRefIdLo  BIGINT  NOT NULL , contextInstructorActorUid  BIGINT  NOT NULL , statementLct  BIGINT  NOT NULL , extensionProgress  INTEGER , completionOrProgress  BOOL  NOT NULL , statementContentEntryUid  BIGINT  NOT NULL , statementLearnerGroupUid  BIGINT  NOT NULL , statementClazzUid  BIGINT  NOT NULL , statementCbUid  BIGINT  NOT NULL , statementDoorNode  BIGINT  NOT NULL , isSubStatement  BOOL  NOT NULL , PRIMARY KEY (statementIdHi, statementIdLo) )');
      this_0.i1('CREATE TABLE IF NOT EXISTS StatementEntityJson (  stmtJsonIdHi  BIGINT  NOT NULL , stmtJsonIdLo  BIGINT  NOT NULL , stmtEtag  BIGINT  NOT NULL , fullStatement  TEXT , PRIMARY KEY (stmtJsonIdHi, stmtJsonIdLo) )');
      this_0.i1('CREATE TABLE IF NOT EXISTS VerbEntity (  verbUid  BIGINT  PRIMARY KEY  NOT NULL , verbUrlId  TEXT , verbDeleted  BOOL  NOT NULL , verbLct  BIGINT  NOT NULL )');
      this_0.i1('CREATE TABLE IF NOT EXISTS VerbLangMapEntry (  vlmeVerbUid  BIGINT  NOT NULL , vlmeLangHash  BIGINT  NOT NULL , vlmeLangCode  TEXT , vlmeEntryString  TEXT , vlmeLastModified  BIGINT  NOT NULL , PRIMARY KEY (vlmeVerbUid, vlmeLangHash) )');
      this_0.i1('CREATE TABLE IF NOT EXISTS XapiSessionEntity (  xseLastMod  BIGINT  NOT NULL , xseRegistrationHi  BIGINT  NOT NULL , xseRegistrationLo  BIGINT  NOT NULL , xseUsUid  BIGINT  NOT NULL , xseAccountPersonUid  BIGINT  NOT NULL , xseAccountUsername  TEXT , xseClazzUid  BIGINT  NOT NULL , xseCbUid  BIGINT  NOT NULL , xseContentEntryUid  BIGINT  NOT NULL , xseRootActivityId  TEXT , xseStartTime  BIGINT  NOT NULL , xseExpireTime  BIGINT  NOT NULL , xseAuth  TEXT , xseUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
    }
    this_0.i1('CREATE INDEX idx_actorentity_actorobjecttype ON ActorEntity (actorObjectType)');
    this_0.i1('CREATE INDEX idx_actorentity_uid_personuid ON ActorEntity (actorPersonUid)');
    this_0.i1('CREATE INDEX idx_stmt_actor_person ON StatementEntity (statementActorPersonUid)');
    this_0.i1('CREATE INDEX idx_statement_clazz_person ON StatementEntity (statementClazzUid, statementActorPersonUid)');
    this_0.i1('CREATE INDEX idx_statement_cbuid_actor ON StatementEntity (statementCbUid, statementActorUid)');
    this_0.i1('CREATE INDEX idx_groupmemberactorjoin_gmajgroupactoruid ON GroupMemberActorJoin (gmajGroupActorUid)');
    this_0.i1('CREATE INDEX idx_groupmemberactorjoin_gmajmemberactoruid ON GroupMemberActorJoin (gmajMemberActorUid)');
    this_0.i1('DROP INDEX IF EXISTS idx_courseblock_cbsourcedid');
    var tmp_4;
    var tmp_5 = dbType(db);
    Companion_getInstance_1();
    if (tmp_5 === 1) {
      tmp_4 = new Pair('INTEGER', '0');
    } else {
      tmp_4 = new Pair('BOOL', 'FALSE');
    }
    var tmp0_container = tmp_4;
    var boolColType = tmp0_container.y6();
    var boolDefaultVal = tmp0_container.z6();
    this_0.i1('ALTER TABLE DiscussionPost ADD COLUMN discussionPostVisible ' + boolColType + ' NOT NULL DEFAULT ' + boolDefaultVal);
    this_0.i1('ALTER TABLE DiscussionPost ADD COLUMN discussionPostArchive ' + boolColType + ' NOT NULL DEFAULT ' + boolDefaultVal);
    // Inline function 'kotlin.collections.forEach' call
    var tmp0_iterator_1 = listOf_0(['NetworkNode', 'AccessToken', 'ScrapeQueueItem', 'ContainerEntry', 'ContainerEntryFile', 'LocallyAvailableContainer', 'ContainerEtag', 'ContainerImportJob', 'Role', 'XLangMapEntry', 'School', 'SchoolMember', 'Chat', 'ChatMember', 'MessageRead', 'StateEntity', 'StateContentEntity', 'Container']).w();
    while (tmp0_iterator_1.f()) {
      var element_1 = tmp0_iterator_1.e();
      // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_172_194.<anonymous>.<anonymous>.<anonymous>' call
      this_0.i1('DROP TABLE IF EXISTS ' + element_1);
    }
    return this_0.f3();
  }
  function MIGRATION_194_195$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_194_195.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS StateEntity (  seActorUid  INTEGER  NOT NULL , seHash  INTEGER  NOT NULL , seActivityUid  INTEGER  NOT NULL , seStateId  TEXT , seLastMod  INTEGER  NOT NULL , seTimeStored  INTEGER  NOT NULL , seContentType  TEXT , seCompressed  INTEGER  NOT NULL , seContent  TEXT , seDeleted  INTEGER  NOT NULL , seRegistrationHi  INTEGER , seRegistrationLo  INTEGER , PRIMARY KEY (seActorUid, seHash) )');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS StateEntity (  seActorUid  BIGINT  NOT NULL , seHash  BIGINT  NOT NULL , seActivityUid  BIGINT  NOT NULL , seStateId  TEXT , seLastMod  BIGINT  NOT NULL , seTimeStored  BIGINT  NOT NULL , seContentType  TEXT , seCompressed  INTEGER  NOT NULL , seContent  TEXT , seDeleted  BOOL  NOT NULL , seRegistrationHi  BIGINT , seRegistrationLo  BIGINT , PRIMARY KEY (seActorUid, seHash) )');
    }
    return this_0.f3();
  }
  function MIGRATION_195_196$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_195_196.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS StateDeleteCommand (  sdcActorUid  INTEGER  NOT NULL , sdcHash  INTEGER  NOT NULL , sdcActivityUid  INTEGER  NOT NULL , sdcStateId  TEXT , sdcLastMod  INTEGER  NOT NULL , sdcRegistrationHi  INTEGER , sdcRegistrationLo  INTEGER , PRIMARY KEY (sdcActorUid, sdcHash) )');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS StateDeleteCommand (  sdcActorUid  BIGINT  NOT NULL , sdcHash  BIGINT  NOT NULL , sdcActivityUid  BIGINT  NOT NULL , sdcStateId  TEXT , sdcLastMod  BIGINT  NOT NULL , sdcRegistrationHi  BIGINT , sdcRegistrationLo  BIGINT , PRIMARY KEY (sdcActorUid, sdcHash) )');
    }
    return this_0.f3();
  }
  function MIGRATION_196_197$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_196_197.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      // Inline function 'kotlin.collections.forEach' call
      var tmp0_iterator = listOf_0(['INSERT', 'UPDATE']).w();
      while (tmp0_iterator.f()) {
        var element = tmp0_iterator.e();
        // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_196_197.<anonymous>.<anonymous>.<anonymous>' call
        // Inline function 'kotlin.text.substring' call
        // Inline function 'kotlin.text.lowercase' call
        // Inline function 'kotlin.js.asDynamic' call
        // Inline function 'kotlin.js.asDynamic' call
        var tmp$ret$3 = element.toLowerCase().substring(0, 3);
        this_0.i1('\n                        CREATE TRIGGER IF NOT EXISTS xapi_state_delete_trig_' + tmp$ret$3 + '\n                        AFTER ' + element + ' ON StateDeleteCommand\n                        FOR EACH ROW\n                        BEGIN\n                        UPDATE StateEntity\n                           SET seDeleted = 1,\n                               seLastMod = NEW.sdcLastMod\n                         WHERE seActorUid = NEW.sdcActorUid\n                           AND seActivityUid = NEW.sdcActivityUid\n                           AND seLastMod < NEW.sdcLastMod\n                           AND (    (      NEW.sdcRegistrationHi IS NULL \n                                       AND seRegistrationHi IS NULL\n                                       AND NEW.sdcRegistrationLo IS NULL\n                                       AND seRegistrationLo IS NULL)\n                                 OR (     seRegistrationHi = NEW.sdcRegistrationHi\n                                      AND seRegistrationLo = NEW.sdcRegistrationLo))\n                           AND (    NEW.sdcStateId IS NULL\n                                 OR seStateId = NEW.sdcStateId);\n                        END         \n                ');
      }
    } else {
      this_0.i1('\n                        CREATE OR REPLACE FUNCTION xapi_state_delete_fn() RETURNS TRIGGER AS $$\n                        BEGIN\n                        UPDATE StateEntity\n                           SET seDeleted = TRUE,\n                               seLastMod = NEW.sdcLastMod\n                         WHERE seActorUid = NEW.sdcActorUid\n                           AND seActivityUid = NEW.sdcActivityUid\n                           AND seLastMod < NEW.sdcLastMod\n                           AND (    (      NEW.sdcRegistrationHi IS NULL \n                                       AND seRegistrationHi IS NULL\n                                       AND NEW.sdcRegistrationLo IS NULL\n                                       AND seRegistrationLo IS NULL)\n                                 OR (     seRegistrationHi = NEW.sdcRegistrationHi\n                                      AND seRegistrationLo = NEW.sdcRegistrationLo))\n                           AND (    NEW.sdcStateId IS NULL\n                                 OR seStateId = NEW.sdcStateId);\n                         RETURN NEW;\n                         END $$ LANGUAGE plpgsql\n                    ');
      this_0.i1('\n                    CREATE TRIGGER xapi_state_delete_trig\n                    AFTER INSERT OR UPDATE ON StateDeleteCommand\n                    FOR EACH ROW\n                    EXECUTE FUNCTION xapi_state_delete_fn();\n                ');
    }
    return this_0.f3();
  }
  function MIGRATION_197_198$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_197_198.<anonymous>.<anonymous>' call
    this_0.i1('DROP TABLE XapiSessionEntity');
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS XapiSessionEntity (  xseLastMod  INTEGER  NOT NULL , xseRegistrationHi  INTEGER  NOT NULL , xseRegistrationLo  INTEGER  NOT NULL , xseUsUid  INTEGER  NOT NULL , xseAccountPersonUid  INTEGER  NOT NULL , xseAccountUsername  TEXT , xseClazzUid  INTEGER  NOT NULL , xseCbUid  INTEGER  NOT NULL , xseContentEntryUid  INTEGER  NOT NULL , xseRootActivityId  TEXT , xseStartTime  INTEGER  NOT NULL , xseExpireTime  INTEGER  NOT NULL , xseAuth  TEXT , xseCompleted  INTEGER  NOT NULL  DEFAULT 0 , xseUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS XapiSessionEntity (  xseLastMod  BIGINT  NOT NULL , xseRegistrationHi  BIGINT  NOT NULL , xseRegistrationLo  BIGINT  NOT NULL , xseUsUid  BIGINT  NOT NULL , xseAccountPersonUid  BIGINT  NOT NULL , xseAccountUsername  TEXT , xseClazzUid  BIGINT  NOT NULL , xseCbUid  BIGINT  NOT NULL , xseContentEntryUid  BIGINT  NOT NULL , xseRootActivityId  TEXT , xseStartTime  BIGINT  NOT NULL , xseExpireTime  BIGINT  NOT NULL , xseAuth  TEXT , xseCompleted  BOOL  NOT NULL  DEFAULT false, xseUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
    }
    return this_0.f3();
  }
  function MIGRATION_198_199$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_198_199.<anonymous>.<anonymous>' call
    this_0.i1('DROP TABLE StateEntity');
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS StateEntity (  seActorUid  INTEGER  NOT NULL , seHash  INTEGER  NOT NULL , seActivityUid  INTEGER  NOT NULL , seStateId  TEXT  NOT NULL , seLastMod  INTEGER  NOT NULL , seTimeStored  INTEGER  NOT NULL , seContentType  TEXT  NOT NULL , seCompressed  INTEGER  NOT NULL , seContent  TEXT  NOT NULL , seDeleted  INTEGER  NOT NULL , seRegistrationHi  INTEGER , seRegistrationLo  INTEGER , seH5PPreloaded  INTEGER  NOT NULL , seH5PSubContentId  TEXT , PRIMARY KEY (seActorUid, seHash) )');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS StateEntity (  seActorUid  BIGINT  NOT NULL , seHash  BIGINT  NOT NULL , seActivityUid  BIGINT  NOT NULL , seStateId  TEXT  NOT NULL , seLastMod  BIGINT  NOT NULL , seTimeStored  BIGINT  NOT NULL , seContentType  TEXT  NOT NULL , seCompressed  INTEGER  NOT NULL , seContent  TEXT  NOT NULL , seDeleted  BOOL  NOT NULL , seRegistrationHi  BIGINT , seRegistrationLo  BIGINT , seH5PPreloaded  BOOL  NOT NULL , seH5PSubContentId  TEXT , PRIMARY KEY (seActorUid, seHash) )');
    }
    return this_0.f3();
  }
  function MIGRATION_199_200$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_199_200.<anonymous>.<anonymous>' call
    this_0.i1('DROP TABLE XapiSessionEntity');
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS XapiSessionEntity (  xseLastMod  INTEGER  NOT NULL , xseRegistrationHi  INTEGER  NOT NULL , xseRegistrationLo  INTEGER  NOT NULL , xseUsUid  INTEGER  NOT NULL , xseAccountPersonUid  INTEGER  NOT NULL , xseActorUid  INTEGER  NOT NULL , xseAccountUsername  TEXT  NOT NULL , xseClazzUid  INTEGER  NOT NULL , xseCbUid  INTEGER  NOT NULL , xseContentEntryUid  INTEGER  NOT NULL , xseRootActivityId  TEXT  NOT NULL , xseRootActivityUid  INTEGER  NOT NULL , xseStartTime  INTEGER  NOT NULL , xseExpireTime  INTEGER  NOT NULL , xseAuth  TEXT , xseCompleted  INTEGER  NOT NULL  DEFAULT 0 , knownActorUidToPersonUids  TEXT  NOT NULL , xseUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS XapiSessionEntity (  xseLastMod  BIGINT  NOT NULL , xseRegistrationHi  BIGINT  NOT NULL , xseRegistrationLo  BIGINT  NOT NULL , xseUsUid  BIGINT  NOT NULL , xseAccountPersonUid  BIGINT  NOT NULL , xseActorUid  BIGINT  NOT NULL , xseAccountUsername  TEXT  NOT NULL , xseClazzUid  BIGINT  NOT NULL , xseCbUid  BIGINT  NOT NULL , xseContentEntryUid  BIGINT  NOT NULL , xseRootActivityId  TEXT  NOT NULL , xseRootActivityUid  BIGINT  NOT NULL , xseStartTime  BIGINT  NOT NULL , xseExpireTime  BIGINT  NOT NULL , xseAuth  TEXT , xseCompleted  BOOL  NOT NULL  DEFAULT false, knownActorUidToPersonUids  TEXT  NOT NULL , xseUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
    }
    return this_0.f3();
  }
  function MIGRATION_200_201$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_200_201.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('ALTER TABLE XapiSessionEntity ADD COLUMN xseContentEntryVersionUid  INTEGER  NOT NULL  DEFAULT 0');
    } else {
      this_0.i1('ALTER TABLE XapiSessionEntity ADD COLUMN xseContentEntryVersionUid  BIGINT  NOT NULL  DEFAULT 0');
    }
    return this_0.f3();
  }
  function MIGRATION_201_202$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    // Inline function 'kotlin.collections.buildList' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.collections.buildListInternal' call
    // Inline function 'kotlin.apply' call
    var this_0 = ArrayList_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_201_202.<anonymous>.<anonymous>' call
    this_0.i1('DROP TABLE ContentEntryImportJob');
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS ContentEntryImportJob (  sourceUri  TEXT , cjiOriginalFilename  TEXT , cjiContentEntryUid  INTEGER  NOT NULL , cjiParentContentEntryUid  INTEGER  NOT NULL , cjiContentEntryVersion  INTEGER  NOT NULL , cjiItemProgress  INTEGER  NOT NULL , cjiItemTotal  INTEGER  NOT NULL , cjiStatus  INTEGER  NOT NULL , cjiRecursiveStatus  INTEGER  NOT NULL , cjiPluginId  INTEGER  NOT NULL , cjiParentCjiUid  INTEGER  NOT NULL , cjiStartTime  INTEGER  NOT NULL , cjiFinishTime  INTEGER  NOT NULL , cjiContentDeletedOnCancellation  INTEGER  NOT NULL , cjiCompressionLevel  INTEGER  NOT NULL  DEFAULT 3 , cjiError  TEXT , cjiErrorDismissed  INTEGER  NOT NULL , cjiOwnerPersonUid  INTEGER  NOT NULL , cjiParams  TEXT , cjiUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS ContentEntryImportJob (  sourceUri  TEXT , cjiOriginalFilename  TEXT , cjiContentEntryUid  BIGINT  NOT NULL , cjiParentContentEntryUid  BIGINT  NOT NULL , cjiContentEntryVersion  BIGINT  NOT NULL , cjiItemProgress  BIGINT  NOT NULL , cjiItemTotal  BIGINT  NOT NULL , cjiStatus  INTEGER  NOT NULL , cjiRecursiveStatus  INTEGER  NOT NULL , cjiPluginId  INTEGER  NOT NULL , cjiParentCjiUid  BIGINT  NOT NULL , cjiStartTime  BIGINT  NOT NULL , cjiFinishTime  BIGINT  NOT NULL , cjiContentDeletedOnCancellation  BOOL  NOT NULL , cjiCompressionLevel  INTEGER  NOT NULL  DEFAULT 3 , cjiError  TEXT , cjiErrorDismissed  BOOL  NOT NULL , cjiOwnerPersonUid  BIGINT  NOT NULL , cjiParams  TEXT , cjiUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
    }
    this_0.i1('CREATE INDEX index_ContentEntryImportJob_cjiContentEntryUid_cjiFinishTime ON ContentEntryImportJob (cjiContentEntryUid, cjiFinishTime)');
    return this_0.f3();
  }
  var properties_initialized_UmAppDatabaseMigrations_kt_wz5hlz;
  function _init_properties_UmAppDatabaseMigrations_kt__v2rrqh() {
    if (!properties_initialized_UmAppDatabaseMigrations_kt_wz5hlz) {
      properties_initialized_UmAppDatabaseMigrations_kt_wz5hlz = true;
      MIGRATION_105_106 = new DoorMigrationStatementList(105, 106, MIGRATION_105_106$lambda);
      MIGRATION_106_107 = new DoorMigrationStatementList(106, 107, MIGRATION_106_107$lambda);
      MIGRATION_107_108 = new DoorMigrationStatementList(107, 108, MIGRATION_107_108$lambda);
      MIGRATION_108_109 = new DoorMigrationStatementList(108, 109, MIGRATION_108_109$lambda);
      MIGRATION_120_121 = new DoorMigrationStatementList(120, 121, MIGRATION_120_121$lambda);
      MIGRATION_121_122 = new DoorMigrationStatementList(121, 122, MIGRATION_121_122$lambda);
      MIGRATION_122_123 = new DoorMigrationStatementList(122, 123, MIGRATION_122_123$lambda);
      MIGRATION_123_124 = new DoorMigrationStatementList(123, 124, MIGRATION_123_124$lambda);
      MIGRATION_124_125 = new DoorMigrationStatementList(124, 125, MIGRATION_124_125$lambda);
      MIGRATION_125_126 = new DoorMigrationStatementList(125, 126, MIGRATION_125_126$lambda);
      MIGRATION_126_127 = new DoorMigrationStatementList(126, 127, MIGRATION_126_127$lambda);
      MIGRATION_127_128 = new DoorMigrationStatementList(127, 128, MIGRATION_127_128$lambda);
      MIGRATION_128_129 = new DoorMigrationStatementList(128, 129, MIGRATION_128_129$lambda);
      MIGRATION_129_130 = new DoorMigrationStatementList(129, 130, MIGRATION_129_130$lambda);
      MIGRATION_130_131 = new DoorMigrationStatementList(130, 131, MIGRATION_130_131$lambda);
      MIGRATION_132_133 = new DoorMigrationStatementList(132, 133, MIGRATION_132_133$lambda);
      MIGRATION_133_134 = new DoorMigrationStatementList(133, 134, MIGRATION_133_134$lambda);
      MIGRATION_134_135 = new DoorMigrationStatementList(134, 135, MIGRATION_134_135$lambda);
      MIGRATION_135_136 = new DoorMigrationStatementList(135, 136, MIGRATION_135_136$lambda);
      MIGRATION_136_137 = new DoorMigrationStatementList(136, 137, MIGRATION_136_137$lambda);
      MIGRATION_137_138 = new DoorMigrationStatementList(137, 138, MIGRATION_137_138$lambda);
      MIGRATION_138_139 = new DoorMigrationStatementList(138, 139, MIGRATION_138_139$lambda);
      MIGRATION_139_140 = new DoorMigrationStatementList(139, 140, MIGRATION_139_140$lambda);
      MIGRATION_140_141 = new DoorMigrationStatementList(140, 141, MIGRATION_140_141$lambda);
      MIGRATION_141_142 = new DoorMigrationStatementList(141, 142, MIGRATION_141_142$lambda);
      MIGRATION_142_143 = new DoorMigrationStatementList(142, 143, MIGRATION_142_143$lambda);
      MIGRATION_143_144 = new DoorMigrationStatementList(143, 144, MIGRATION_143_144$lambda);
      MIGRATION_144_145_SERVER = new DoorMigrationStatementList(144, 145, MIGRATION_144_145_SERVER$lambda);
      MIGRATION_144_145_CLIENT = new DoorMigrationStatementList(144, 145, MIGRATION_144_145_CLIENT$lambda);
      MIGRATION_145_146 = new DoorMigrationStatementList(145, 146, MIGRATION_145_146$lambda);
      MIGRATION_146_147 = new DoorMigrationStatementList(146, 147, MIGRATION_146_147$lambda);
      MIGRATION_147_148 = new DoorMigrationStatementList(147, 148, MIGRATION_147_148$lambda);
      MIGRATION_148_149_CLIENT_WITH_OFFLINE_ITEMS = new DoorMigrationStatementList(148, 149, MIGRATION_148_149_CLIENT_WITH_OFFLINE_ITEMS$lambda);
      MIGRATION_148_149_NO_OFFLINE_ITEMS = new DoorMigrationStatementList(148, 149, MIGRATION_148_149_NO_OFFLINE_ITEMS$lambda);
      MIGRATION_149_150 = new DoorMigrationStatementList(149, 150, MIGRATION_149_150$lambda);
      MIGRATION_150_151 = new DoorMigrationStatementList(150, 151, MIGRATION_150_151$lambda);
      MIGRATION_151_152 = new DoorMigrationStatementList(151, 152, MIGRATION_151_152$lambda);
      MIGRATION_152_153 = new DoorMigrationStatementList(152, 153, MIGRATION_152_153$lambda);
      MIGRATION_153_154 = new DoorMigrationStatementList(153, 154, MIGRATION_153_154$lambda);
      MIGRATION_154_155 = new DoorMigrationStatementList(154, 155, MIGRATION_154_155$lambda);
      MIGRATION_155_156_SERVER = new DoorMigrationStatementList(155, 156, MIGRATION_155_156_SERVER$lambda);
      MIGRATION_155_156_CLIENT = new DoorMigrationStatementList(155, 156, MIGRATION_155_156_CLIENT$lambda);
      MIGRATION_156_157 = new DoorMigrationStatementList(156, 157, MIGRATION_156_157$lambda);
      MIGRATION_157_158 = new DoorMigrationStatementList(157, 158, MIGRATION_157_158$lambda);
      MIGRATION_158_159 = new DoorMigrationStatementList(158, 159, MIGRATION_158_159$lambda);
      MIGRATION_159_160 = new DoorMigrationStatementList(159, 160, MIGRATION_159_160$lambda);
      MIGRATION_160_161 = new DoorMigrationStatementList(160, 161, MIGRATION_160_161$lambda);
      MIGRATION_161_162_SERVER = new DoorMigrationStatementList(161, 162, MIGRATION_161_162_SERVER$lambda);
      MIGRATION_161_162_CLIENT = new DoorMigrationStatementList(161, 162, MIGRATION_161_162_CLIENT$lambda);
      MIGRATION_162_163 = new DoorMigrationStatementList(162, 163, MIGRATION_162_163$lambda);
      MIGRATION_163_164 = new DoorMigrationStatementList(163, 164, MIGRATION_163_164$lambda);
      MIGRATION_164_165 = new DoorMigrationStatementList(164, 165, MIGRATION_164_165$lambda);
      MIGRATION_165_166 = new DoorMigrationStatementList(165, 166, MIGRATION_165_166$lambda);
      MIGRATION_166_167 = new DoorMigrationStatementList(166, 167, MIGRATION_166_167$lambda);
      MIGRATION_167_168 = new DoorMigrationStatementList(167, 168, MIGRATION_167_168$lambda);
      MIGRATION_168_169 = new DoorMigrationStatementList(168, 169, MIGRATION_168_169$lambda);
      MIGRATION_169_170_SERVER = new DoorMigrationStatementList(169, 170, MIGRATION_169_170_SERVER$lambda);
      MIGRATION_169_170_CLIENT = new DoorMigrationStatementList(169, 170, MIGRATION_169_170_CLIENT$lambda);
      MIGRATION_170_171 = new DoorMigrationStatementList(170, 171, MIGRATION_170_171$lambda);
      MIGRATION_171_172 = new DoorMigrationStatementList(171, 172, MIGRATION_171_172$lambda);
      MIGRATION_172_194 = new DoorMigrationStatementList(172, 194, MIGRATION_172_194$lambda);
      MIGRATION_194_195 = new DoorMigrationStatementList(194, 195, MIGRATION_194_195$lambda);
      MIGRATION_195_196 = new DoorMigrationStatementList(195, 196, MIGRATION_195_196$lambda);
      MIGRATION_196_197 = new DoorMigrationStatementList(196, 197, MIGRATION_196_197$lambda);
      MIGRATION_197_198 = new DoorMigrationStatementList(197, 198, MIGRATION_197_198$lambda);
      MIGRATION_198_199 = new DoorMigrationStatementList(198, 199, MIGRATION_198_199$lambda);
      MIGRATION_199_200 = new DoorMigrationStatementList(199, 200, MIGRATION_199_200$lambda);
      MIGRATION_200_201 = new DoorMigrationStatementList(200, 201, MIGRATION_200_201$lambda);
      MIGRATION_201_202 = new DoorMigrationStatementList(201, 202, MIGRATION_201_202$lambda);
    }
  }
  function ActorUidEtagAndLastMod(actorUid, actorEtag, actorLct) {
    actorUid = actorUid === VOID ? new Long(0, 0) : actorUid;
    actorEtag = actorEtag === VOID ? new Long(0, 0) : actorEtag;
    actorLct = actorLct === VOID ? new Long(0, 0) : actorLct;
    this.vie_1 = actorUid;
    this.wie_1 = actorEtag;
    this.xie_1 = actorLct;
  }
  protoOf(ActorUidEtagAndLastMod).toString = function () {
    return 'ActorUidEtagAndLastMod(actorUid=' + this.vie_1.toString() + ', actorEtag=' + this.wie_1.toString() + ', actorLct=' + this.xie_1.toString() + ')';
  };
  protoOf(ActorUidEtagAndLastMod).hashCode = function () {
    var result = this.vie_1.hashCode();
    result = imul(result, 31) + this.wie_1.hashCode() | 0;
    result = imul(result, 31) + this.xie_1.hashCode() | 0;
    return result;
  };
  protoOf(ActorUidEtagAndLastMod).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ActorUidEtagAndLastMod))
      return false;
    var tmp0_other_with_cast = other instanceof ActorUidEtagAndLastMod ? other : THROW_CCE();
    if (!this.vie_1.equals(tmp0_other_with_cast.vie_1))
      return false;
    if (!this.wie_1.equals(tmp0_other_with_cast.wie_1))
      return false;
    if (!this.xie_1.equals(tmp0_other_with_cast.xie_1))
      return false;
    return true;
  };
  function Companion_0() {
  }
  var Companion_instance_1;
  function Companion_getInstance_3() {
    return Companion_instance_1;
  }
  function $serializer() {
    $serializer_instance = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.AssignmentPermissionAndActiveUserSubmitterUid', this, 4);
    tmp0_serialDesc.g4f('canMark', true);
    tmp0_serialDesc.g4f('canView', true);
    tmp0_serialDesc.g4f('canModerate', true);
    tmp0_serialDesc.g4f('activeUserSubmitterUid', true);
    this.fj4_1 = tmp0_serialDesc;
  }
  protoOf($serializer).d44 = function () {
    return this.fj4_1;
  };
  protoOf($serializer).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer).f44 = function (decoder) {
    var tmp0_desc = this.fj4_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = false;
    var tmp5_local1 = false;
    var tmp6_local2 = false;
    var tmp7_local3 = new Long(0, 0);
    var tmp8_input = decoder.v47(tmp0_desc);
    if (tmp8_input.k48()) {
      tmp4_local0 = tmp8_input.x47(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.x47(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.x47(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.x47(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.x47(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.x47(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.w47(tmp0_desc);
    return AssignmentPermissionAndActiveUserSubmitterUid_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer).gj4 = function (encoder, value) {
    var tmp0_desc = this.fj4_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.md9_1 === false)) {
      tmp1_output.b49(tmp0_desc, 0, value.md9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.nd9_1 === false)) {
      tmp1_output.b49(tmp0_desc, 1, value.nd9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.od9_1 === false)) {
      tmp1_output.b49(tmp0_desc, 2, value.od9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.pd9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.pd9_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer).e44 = function (encoder, value) {
    return this.gj4(encoder, value instanceof AssignmentPermissionAndActiveUserSubmitterUid ? value : THROW_CCE());
  };
  var $serializer_instance;
  function $serializer_getInstance() {
    if ($serializer_instance == null)
      new $serializer();
    return $serializer_instance;
  }
  function AssignmentPermissionAndActiveUserSubmitterUid_init_$Init$(seen1, canMark, canView, canModerate, activeUserSubmitterUid, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance().fj4_1);
    }
    if (0 === (seen1 & 1))
      $this.md9_1 = false;
    else
      $this.md9_1 = canMark;
    if (0 === (seen1 & 2))
      $this.nd9_1 = false;
    else
      $this.nd9_1 = canView;
    if (0 === (seen1 & 4))
      $this.od9_1 = false;
    else
      $this.od9_1 = canModerate;
    if (0 === (seen1 & 8))
      $this.pd9_1 = new Long(0, 0);
    else
      $this.pd9_1 = activeUserSubmitterUid;
    return $this;
  }
  function AssignmentPermissionAndActiveUserSubmitterUid_init_$Create$(seen1, canMark, canView, canModerate, activeUserSubmitterUid, serializationConstructorMarker) {
    return AssignmentPermissionAndActiveUserSubmitterUid_init_$Init$(seen1, canMark, canView, canModerate, activeUserSubmitterUid, serializationConstructorMarker, objectCreate(protoOf(AssignmentPermissionAndActiveUserSubmitterUid)));
  }
  function AssignmentPermissionAndActiveUserSubmitterUid(canMark, canView, canModerate, activeUserSubmitterUid) {
    canMark = canMark === VOID ? false : canMark;
    canView = canView === VOID ? false : canView;
    canModerate = canModerate === VOID ? false : canModerate;
    activeUserSubmitterUid = activeUserSubmitterUid === VOID ? new Long(0, 0) : activeUserSubmitterUid;
    this.md9_1 = canMark;
    this.nd9_1 = canView;
    this.od9_1 = canModerate;
    this.pd9_1 = activeUserSubmitterUid;
  }
  protoOf(AssignmentPermissionAndActiveUserSubmitterUid).toString = function () {
    return 'AssignmentPermissionAndActiveUserSubmitterUid(canMark=' + this.md9_1 + ', canView=' + this.nd9_1 + ', canModerate=' + this.od9_1 + ', activeUserSubmitterUid=' + this.pd9_1.toString() + ')';
  };
  protoOf(AssignmentPermissionAndActiveUserSubmitterUid).hashCode = function () {
    var result = getBooleanHashCode(this.md9_1);
    result = imul(result, 31) + getBooleanHashCode(this.nd9_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.od9_1) | 0;
    result = imul(result, 31) + this.pd9_1.hashCode() | 0;
    return result;
  };
  protoOf(AssignmentPermissionAndActiveUserSubmitterUid).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof AssignmentPermissionAndActiveUserSubmitterUid))
      return false;
    var tmp0_other_with_cast = other instanceof AssignmentPermissionAndActiveUserSubmitterUid ? other : THROW_CCE();
    if (!(this.md9_1 === tmp0_other_with_cast.md9_1))
      return false;
    if (!(this.nd9_1 === tmp0_other_with_cast.nd9_1))
      return false;
    if (!(this.od9_1 === tmp0_other_with_cast.od9_1))
      return false;
    if (!this.pd9_1.equals(tmp0_other_with_cast.pd9_1))
      return false;
    return true;
  };
  function Companion_1() {
  }
  var Companion_instance_2;
  function Companion_getInstance_4() {
    return Companion_instance_2;
  }
  function $serializer_0() {
    $serializer_instance_0 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.AssignmentSubmitterUidAndName', this, 2);
    tmp0_serialDesc.g4f('name', true);
    tmp0_serialDesc.g4f('submitterUid', true);
    this.hj4_1 = tmp0_serialDesc;
  }
  protoOf($serializer_0).d44 = function () {
    return this.hj4_1;
  };
  protoOf($serializer_0).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()];
  };
  protoOf($serializer_0).f44 = function (decoder) {
    var tmp0_desc = this.hj4_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = new Long(0, 0);
    var tmp6_input = decoder.v47(tmp0_desc);
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return AssignmentSubmitterUidAndName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_0).ij4 = function (encoder, value) {
    var tmp0_desc = this.hj4_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.g7w_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, StringSerializer_getInstance(), value.g7w_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.h7w_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.h7w_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_0).e44 = function (encoder, value) {
    return this.ij4(encoder, value instanceof AssignmentSubmitterUidAndName ? value : THROW_CCE());
  };
  var $serializer_instance_0;
  function $serializer_getInstance_0() {
    if ($serializer_instance_0 == null)
      new $serializer_0();
    return $serializer_instance_0;
  }
  function AssignmentSubmitterUidAndName_init_$Init$(seen1, name, submitterUid, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_0().hj4_1);
    }
    if (0 === (seen1 & 1))
      $this.g7w_1 = null;
    else
      $this.g7w_1 = name;
    if (0 === (seen1 & 2))
      $this.h7w_1 = new Long(0, 0);
    else
      $this.h7w_1 = submitterUid;
    return $this;
  }
  function AssignmentSubmitterUidAndName_init_$Create$(seen1, name, submitterUid, serializationConstructorMarker) {
    return AssignmentSubmitterUidAndName_init_$Init$(seen1, name, submitterUid, serializationConstructorMarker, objectCreate(protoOf(AssignmentSubmitterUidAndName)));
  }
  function AssignmentSubmitterUidAndName(name, submitterUid) {
    name = name === VOID ? null : name;
    submitterUid = submitterUid === VOID ? new Long(0, 0) : submitterUid;
    this.g7w_1 = name;
    this.h7w_1 = submitterUid;
  }
  protoOf(AssignmentSubmitterUidAndName).toString = function () {
    return 'AssignmentSubmitterUidAndName(name=' + this.g7w_1 + ', submitterUid=' + this.h7w_1.toString() + ')';
  };
  protoOf(AssignmentSubmitterUidAndName).hashCode = function () {
    var result = this.g7w_1 == null ? 0 : getStringHashCode(this.g7w_1);
    result = imul(result, 31) + this.h7w_1.hashCode() | 0;
    return result;
  };
  protoOf(AssignmentSubmitterUidAndName).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof AssignmentSubmitterUidAndName))
      return false;
    var tmp0_other_with_cast = other instanceof AssignmentSubmitterUidAndName ? other : THROW_CCE();
    if (!(this.g7w_1 == tmp0_other_with_cast.g7w_1))
      return false;
    if (!this.h7w_1.equals(tmp0_other_with_cast.h7w_1))
      return false;
    return true;
  };
  function Companion_2() {
    this.jj4_1 = 1;
    this.kj4_1 = 2;
  }
  var Companion_instance_3;
  function Companion_getInstance_5() {
    return Companion_instance_3;
  }
  function $serializer_1() {
    $serializer_instance_1 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.BlockStatus', this, 6);
    tmp0_serialDesc.g4f('sPersonUid', true);
    tmp0_serialDesc.g4f('sCbUid', true);
    tmp0_serialDesc.g4f('sProgress', true);
    tmp0_serialDesc.g4f('sIsCompleted', true);
    tmp0_serialDesc.g4f('sIsSuccess', true);
    tmp0_serialDesc.g4f('sScoreScaled', true);
    this.lj4_1 = tmp0_serialDesc;
  }
  protoOf($serializer_1).d44 = function () {
    return this.lj4_1;
  };
  protoOf($serializer_1).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(IntSerializer_getInstance()), BooleanSerializer_getInstance(), get_nullable(BooleanSerializer_getInstance()), get_nullable(FloatSerializer_getInstance())];
  };
  protoOf($serializer_1).f44 = function (decoder) {
    var tmp0_desc = this.lj4_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = null;
    var tmp7_local3 = false;
    var tmp8_local4 = null;
    var tmp9_local5 = null;
    var tmp10_input = decoder.v47(tmp0_desc);
    if (tmp10_input.k48()) {
      tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.j48(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.x47(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.j48(tmp0_desc, 4, BooleanSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.j48(tmp0_desc, 5, FloatSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.j48(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.x47(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.j48(tmp0_desc, 4, BooleanSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.j48(tmp0_desc, 5, FloatSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.w47(tmp0_desc);
    return BlockStatus_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_1).mj4 = function (encoder, value) {
    var tmp0_desc = this.lj4_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.oaj_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.oaj_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.paj_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.paj_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.qaj_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, IntSerializer_getInstance(), value.qaj_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.raj_1 === false)) {
      tmp1_output.b49(tmp0_desc, 3, value.raj_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.saj_1 == null)) {
      tmp1_output.n49(tmp0_desc, 4, BooleanSerializer_getInstance(), value.saj_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.taj_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, FloatSerializer_getInstance(), value.taj_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_1).e44 = function (encoder, value) {
    return this.mj4(encoder, value instanceof BlockStatus ? value : THROW_CCE());
  };
  var $serializer_instance_1;
  function $serializer_getInstance_1() {
    if ($serializer_instance_1 == null)
      new $serializer_1();
    return $serializer_instance_1;
  }
  function BlockStatus_init_$Init$(seen1, sPersonUid, sCbUid, sProgress, sIsCompleted, sIsSuccess, sScoreScaled, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_1().lj4_1);
    }
    if (0 === (seen1 & 1))
      $this.oaj_1 = new Long(0, 0);
    else
      $this.oaj_1 = sPersonUid;
    if (0 === (seen1 & 2))
      $this.paj_1 = new Long(0, 0);
    else
      $this.paj_1 = sCbUid;
    if (0 === (seen1 & 4))
      $this.qaj_1 = null;
    else
      $this.qaj_1 = sProgress;
    if (0 === (seen1 & 8))
      $this.raj_1 = false;
    else
      $this.raj_1 = sIsCompleted;
    if (0 === (seen1 & 16))
      $this.saj_1 = null;
    else
      $this.saj_1 = sIsSuccess;
    if (0 === (seen1 & 32))
      $this.taj_1 = null;
    else
      $this.taj_1 = sScoreScaled;
    return $this;
  }
  function BlockStatus_init_$Create$(seen1, sPersonUid, sCbUid, sProgress, sIsCompleted, sIsSuccess, sScoreScaled, serializationConstructorMarker) {
    return BlockStatus_init_$Init$(seen1, sPersonUid, sCbUid, sProgress, sIsCompleted, sIsSuccess, sScoreScaled, serializationConstructorMarker, objectCreate(protoOf(BlockStatus)));
  }
  function BlockStatus(sPersonUid, sCbUid, sProgress, sIsCompleted, sIsSuccess, sScoreScaled) {
    sPersonUid = sPersonUid === VOID ? new Long(0, 0) : sPersonUid;
    sCbUid = sCbUid === VOID ? new Long(0, 0) : sCbUid;
    sProgress = sProgress === VOID ? null : sProgress;
    sIsCompleted = sIsCompleted === VOID ? false : sIsCompleted;
    sIsSuccess = sIsSuccess === VOID ? null : sIsSuccess;
    sScoreScaled = sScoreScaled === VOID ? null : sScoreScaled;
    this.oaj_1 = sPersonUid;
    this.paj_1 = sCbUid;
    this.qaj_1 = sProgress;
    this.raj_1 = sIsCompleted;
    this.saj_1 = sIsSuccess;
    this.taj_1 = sScoreScaled;
  }
  protoOf(BlockStatus).toString = function () {
    return 'BlockStatus(sPersonUid=' + this.oaj_1.toString() + ', sCbUid=' + this.paj_1.toString() + ', sProgress=' + this.qaj_1 + ', sIsCompleted=' + this.raj_1 + ', sIsSuccess=' + this.saj_1 + ', sScoreScaled=' + this.taj_1 + ')';
  };
  protoOf(BlockStatus).hashCode = function () {
    var result = this.oaj_1.hashCode();
    result = imul(result, 31) + this.paj_1.hashCode() | 0;
    result = imul(result, 31) + (this.qaj_1 == null ? 0 : this.qaj_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.raj_1) | 0;
    result = imul(result, 31) + (this.saj_1 == null ? 0 : getBooleanHashCode(this.saj_1)) | 0;
    result = imul(result, 31) + (this.taj_1 == null ? 0 : getNumberHashCode(this.taj_1)) | 0;
    return result;
  };
  protoOf(BlockStatus).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof BlockStatus))
      return false;
    var tmp0_other_with_cast = other instanceof BlockStatus ? other : THROW_CCE();
    if (!this.oaj_1.equals(tmp0_other_with_cast.oaj_1))
      return false;
    if (!this.paj_1.equals(tmp0_other_with_cast.paj_1))
      return false;
    if (!(this.qaj_1 == tmp0_other_with_cast.qaj_1))
      return false;
    if (!(this.raj_1 === tmp0_other_with_cast.raj_1))
      return false;
    if (!(this.saj_1 == tmp0_other_with_cast.saj_1))
      return false;
    if (!equals(this.taj_1, tmp0_other_with_cast.taj_1))
      return false;
    return true;
  };
  function Companion_3() {
  }
  var Companion_instance_4;
  function Companion_getInstance_6() {
    return Companion_instance_4;
  }
  function $serializer_2() {
    $serializer_instance_2 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ClazzAndDetailPermissions', this, 4);
    tmp0_serialDesc.g4f('clazz', true);
    tmp0_serialDesc.g4f('hasAttendancePermission', true);
    tmp0_serialDesc.g4f('hasViewMembersPermission', true);
    tmp0_serialDesc.g4f('hasLearningRecordPermission', true);
    this.nj4_1 = tmp0_serialDesc;
  }
  protoOf($serializer_2).d44 = function () {
    return this.nj4_1;
  };
  protoOf($serializer_2).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_40()), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_2).f44 = function (decoder) {
    var tmp0_desc = this.nj4_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = false;
    var tmp6_local2 = false;
    var tmp7_local3 = false;
    var tmp8_input = decoder.v47(tmp0_desc);
    if (tmp8_input.k48()) {
      tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, $serializer_getInstance_40(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.x47(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.x47(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.x47(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, $serializer_getInstance_40(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.x47(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.x47(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.x47(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.w47(tmp0_desc);
    return ClazzAndDetailPermissions_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_2).oj4 = function (encoder, value) {
    var tmp0_desc = this.nj4_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.b8j_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_40(), value.b8j_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.c8j_1 === false)) {
      tmp1_output.b49(tmp0_desc, 1, value.c8j_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.d8j_1 === false)) {
      tmp1_output.b49(tmp0_desc, 2, value.d8j_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.e8j_1 === false)) {
      tmp1_output.b49(tmp0_desc, 3, value.e8j_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_2).e44 = function (encoder, value) {
    return this.oj4(encoder, value instanceof ClazzAndDetailPermissions ? value : THROW_CCE());
  };
  var $serializer_instance_2;
  function $serializer_getInstance_2() {
    if ($serializer_instance_2 == null)
      new $serializer_2();
    return $serializer_instance_2;
  }
  function ClazzAndDetailPermissions_init_$Init$(seen1, clazz, hasAttendancePermission, hasViewMembersPermission, hasLearningRecordPermission, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_2().nj4_1);
    }
    if (0 === (seen1 & 1))
      $this.b8j_1 = null;
    else
      $this.b8j_1 = clazz;
    if (0 === (seen1 & 2))
      $this.c8j_1 = false;
    else
      $this.c8j_1 = hasAttendancePermission;
    if (0 === (seen1 & 4))
      $this.d8j_1 = false;
    else
      $this.d8j_1 = hasViewMembersPermission;
    if (0 === (seen1 & 8))
      $this.e8j_1 = false;
    else
      $this.e8j_1 = hasLearningRecordPermission;
    return $this;
  }
  function ClazzAndDetailPermissions_init_$Create$(seen1, clazz, hasAttendancePermission, hasViewMembersPermission, hasLearningRecordPermission, serializationConstructorMarker) {
    return ClazzAndDetailPermissions_init_$Init$(seen1, clazz, hasAttendancePermission, hasViewMembersPermission, hasLearningRecordPermission, serializationConstructorMarker, objectCreate(protoOf(ClazzAndDetailPermissions)));
  }
  function ClazzAndDetailPermissions(clazz, hasAttendancePermission, hasViewMembersPermission, hasLearningRecordPermission) {
    clazz = clazz === VOID ? null : clazz;
    hasAttendancePermission = hasAttendancePermission === VOID ? false : hasAttendancePermission;
    hasViewMembersPermission = hasViewMembersPermission === VOID ? false : hasViewMembersPermission;
    hasLearningRecordPermission = hasLearningRecordPermission === VOID ? false : hasLearningRecordPermission;
    this.b8j_1 = clazz;
    this.c8j_1 = hasAttendancePermission;
    this.d8j_1 = hasViewMembersPermission;
    this.e8j_1 = hasLearningRecordPermission;
  }
  protoOf(ClazzAndDetailPermissions).toString = function () {
    return 'ClazzAndDetailPermissions(clazz=' + this.b8j_1 + ', hasAttendancePermission=' + this.c8j_1 + ', hasViewMembersPermission=' + this.d8j_1 + ', hasLearningRecordPermission=' + this.e8j_1 + ')';
  };
  protoOf(ClazzAndDetailPermissions).hashCode = function () {
    var result = this.b8j_1 == null ? 0 : this.b8j_1.hashCode();
    result = imul(result, 31) + getBooleanHashCode(this.c8j_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.d8j_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.e8j_1) | 0;
    return result;
  };
  protoOf(ClazzAndDetailPermissions).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ClazzAndDetailPermissions))
      return false;
    var tmp0_other_with_cast = other instanceof ClazzAndDetailPermissions ? other : THROW_CCE();
    if (!equals(this.b8j_1, tmp0_other_with_cast.b8j_1))
      return false;
    if (!(this.c8j_1 === tmp0_other_with_cast.c8j_1))
      return false;
    if (!(this.d8j_1 === tmp0_other_with_cast.d8j_1))
      return false;
    if (!(this.e8j_1 === tmp0_other_with_cast.e8j_1))
      return false;
    return true;
  };
  function ClazzAndDisplayDetails(clazz, terminology, coursePicture, numStudents, numTeachers, activeUserIsStudent) {
    clazz = clazz === VOID ? null : clazz;
    terminology = terminology === VOID ? null : terminology;
    coursePicture = coursePicture === VOID ? null : coursePicture;
    numStudents = numStudents === VOID ? 0 : numStudents;
    numTeachers = numTeachers === VOID ? 0 : numTeachers;
    activeUserIsStudent = activeUserIsStudent === VOID ? false : activeUserIsStudent;
    this.r8j_1 = clazz;
    this.s8j_1 = terminology;
    this.t8j_1 = coursePicture;
    this.u8j_1 = numStudents;
    this.v8j_1 = numTeachers;
    this.w8j_1 = activeUserIsStudent;
  }
  protoOf(ClazzAndDisplayDetails).toString = function () {
    return 'ClazzAndDisplayDetails(clazz=' + this.r8j_1 + ', terminology=' + this.s8j_1 + ', coursePicture=' + this.t8j_1 + ', numStudents=' + this.u8j_1 + ', numTeachers=' + this.v8j_1 + ', activeUserIsStudent=' + this.w8j_1 + ')';
  };
  protoOf(ClazzAndDisplayDetails).hashCode = function () {
    var result = this.r8j_1 == null ? 0 : this.r8j_1.hashCode();
    result = imul(result, 31) + (this.s8j_1 == null ? 0 : hashCode(this.s8j_1)) | 0;
    result = imul(result, 31) + (this.t8j_1 == null ? 0 : this.t8j_1.hashCode()) | 0;
    result = imul(result, 31) + this.u8j_1 | 0;
    result = imul(result, 31) + this.v8j_1 | 0;
    result = imul(result, 31) + getBooleanHashCode(this.w8j_1) | 0;
    return result;
  };
  protoOf(ClazzAndDisplayDetails).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ClazzAndDisplayDetails))
      return false;
    var tmp0_other_with_cast = other instanceof ClazzAndDisplayDetails ? other : THROW_CCE();
    if (!equals(this.r8j_1, tmp0_other_with_cast.r8j_1))
      return false;
    if (!equals(this.s8j_1, tmp0_other_with_cast.s8j_1))
      return false;
    if (!equals(this.t8j_1, tmp0_other_with_cast.t8j_1))
      return false;
    if (!(this.u8j_1 === tmp0_other_with_cast.u8j_1))
      return false;
    if (!(this.v8j_1 === tmp0_other_with_cast.v8j_1))
      return false;
    if (!(this.w8j_1 === tmp0_other_with_cast.w8j_1))
      return false;
    return true;
  };
  function Companion_4() {
  }
  var Companion_instance_5;
  function Companion_getInstance_7() {
    return Companion_instance_5;
  }
  function $serializer_3() {
    $serializer_instance_3 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ClazzAssignmentAndBlock', this, 2);
    tmp0_serialDesc.g4f('assignment', true);
    tmp0_serialDesc.g4f('block', true);
    this.pj4_1 = tmp0_serialDesc;
  }
  protoOf($serializer_3).d44 = function () {
    return this.pj4_1;
  };
  protoOf($serializer_3).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_41()), get_nullable($serializer_getInstance_67())];
  };
  protoOf($serializer_3).f44 = function (decoder) {
    var tmp0_desc = this.pj4_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_input = decoder.v47(tmp0_desc);
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, $serializer_getInstance_41(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_67(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, $serializer_getInstance_41(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_67(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return ClazzAssignmentAndBlock_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_3).qj4 = function (encoder, value) {
    var tmp0_desc = this.pj4_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.u7w_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_41(), value.u7w_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.v7w_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_67(), value.v7w_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_3).e44 = function (encoder, value) {
    return this.qj4(encoder, value instanceof ClazzAssignmentAndBlock ? value : THROW_CCE());
  };
  var $serializer_instance_3;
  function $serializer_getInstance_3() {
    if ($serializer_instance_3 == null)
      new $serializer_3();
    return $serializer_instance_3;
  }
  function ClazzAssignmentAndBlock_init_$Init$(seen1, assignment, block, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_3().pj4_1);
    }
    if (0 === (seen1 & 1))
      $this.u7w_1 = null;
    else
      $this.u7w_1 = assignment;
    if (0 === (seen1 & 2))
      $this.v7w_1 = null;
    else
      $this.v7w_1 = block;
    return $this;
  }
  function ClazzAssignmentAndBlock_init_$Create$(seen1, assignment, block, serializationConstructorMarker) {
    return ClazzAssignmentAndBlock_init_$Init$(seen1, assignment, block, serializationConstructorMarker, objectCreate(protoOf(ClazzAssignmentAndBlock)));
  }
  function ClazzAssignmentAndBlock(assignment, block) {
    assignment = assignment === VOID ? null : assignment;
    block = block === VOID ? null : block;
    this.u7w_1 = assignment;
    this.v7w_1 = block;
  }
  protoOf(ClazzAssignmentAndBlock).toString = function () {
    return 'ClazzAssignmentAndBlock(assignment=' + this.u7w_1 + ', block=' + this.v7w_1 + ')';
  };
  protoOf(ClazzAssignmentAndBlock).hashCode = function () {
    var result = this.u7w_1 == null ? 0 : this.u7w_1.hashCode();
    result = imul(result, 31) + (this.v7w_1 == null ? 0 : this.v7w_1.hashCode()) | 0;
    return result;
  };
  protoOf(ClazzAssignmentAndBlock).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ClazzAssignmentAndBlock))
      return false;
    var tmp0_other_with_cast = other instanceof ClazzAssignmentAndBlock ? other : THROW_CCE();
    if (!equals(this.u7w_1, tmp0_other_with_cast.u7w_1))
      return false;
    if (!equals(this.v7w_1, tmp0_other_with_cast.v7w_1))
      return false;
    return true;
  };
  function Companion_5() {
  }
  var Companion_instance_6;
  function Companion_getInstance_8() {
    return Companion_instance_6;
  }
  function $serializer_4() {
    $serializer_instance_4 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ClazzEnrolmentAndPersonDetailDetails', this, 3);
    tmp0_serialDesc.g4f('enrolment', true);
    tmp0_serialDesc.g4f('clazz', true);
    tmp0_serialDesc.g4f('courseTerminology', true);
    this.rj4_1 = tmp0_serialDesc;
  }
  protoOf($serializer_4).d44 = function () {
    return this.rj4_1;
  };
  protoOf($serializer_4).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_43()), get_nullable($serializer_getInstance_40()), get_nullable($serializer_getInstance_74())];
  };
  protoOf($serializer_4).f44 = function (decoder) {
    var tmp0_desc = this.rj4_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_input = decoder.v47(tmp0_desc);
    if (tmp7_input.k48()) {
      tmp4_local0 = tmp7_input.j48(tmp0_desc, 0, $serializer_getInstance_43(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp7_input.j48(tmp0_desc, 1, $serializer_getInstance_40(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp7_input.j48(tmp0_desc, 2, $serializer_getInstance_74(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp7_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp7_input.j48(tmp0_desc, 0, $serializer_getInstance_43(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp7_input.j48(tmp0_desc, 1, $serializer_getInstance_40(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp7_input.j48(tmp0_desc, 2, $serializer_getInstance_74(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp7_input.w47(tmp0_desc);
    return ClazzEnrolmentAndPersonDetailDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
  };
  protoOf($serializer_4).sj4 = function (encoder, value) {
    var tmp0_desc = this.rj4_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.l94_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_43(), value.l94_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.m94_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_40(), value.m94_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.n94_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, $serializer_getInstance_74(), value.n94_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_4).e44 = function (encoder, value) {
    return this.sj4(encoder, value instanceof ClazzEnrolmentAndPersonDetailDetails ? value : THROW_CCE());
  };
  var $serializer_instance_4;
  function $serializer_getInstance_4() {
    if ($serializer_instance_4 == null)
      new $serializer_4();
    return $serializer_instance_4;
  }
  function ClazzEnrolmentAndPersonDetailDetails_init_$Init$(seen1, enrolment, clazz, courseTerminology, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_4().rj4_1);
    }
    if (0 === (seen1 & 1))
      $this.l94_1 = null;
    else
      $this.l94_1 = enrolment;
    if (0 === (seen1 & 2))
      $this.m94_1 = null;
    else
      $this.m94_1 = clazz;
    if (0 === (seen1 & 4))
      $this.n94_1 = null;
    else
      $this.n94_1 = courseTerminology;
    return $this;
  }
  function ClazzEnrolmentAndPersonDetailDetails_init_$Create$(seen1, enrolment, clazz, courseTerminology, serializationConstructorMarker) {
    return ClazzEnrolmentAndPersonDetailDetails_init_$Init$(seen1, enrolment, clazz, courseTerminology, serializationConstructorMarker, objectCreate(protoOf(ClazzEnrolmentAndPersonDetailDetails)));
  }
  function ClazzEnrolmentAndPersonDetailDetails(enrolment, clazz, courseTerminology) {
    enrolment = enrolment === VOID ? null : enrolment;
    clazz = clazz === VOID ? null : clazz;
    courseTerminology = courseTerminology === VOID ? null : courseTerminology;
    this.l94_1 = enrolment;
    this.m94_1 = clazz;
    this.n94_1 = courseTerminology;
  }
  protoOf(ClazzEnrolmentAndPersonDetailDetails).toString = function () {
    return 'ClazzEnrolmentAndPersonDetailDetails(enrolment=' + this.l94_1 + ', clazz=' + this.m94_1 + ', courseTerminology=' + this.n94_1 + ')';
  };
  protoOf(ClazzEnrolmentAndPersonDetailDetails).hashCode = function () {
    var result = this.l94_1 == null ? 0 : hashCode(this.l94_1);
    result = imul(result, 31) + (this.m94_1 == null ? 0 : this.m94_1.hashCode()) | 0;
    result = imul(result, 31) + (this.n94_1 == null ? 0 : hashCode(this.n94_1)) | 0;
    return result;
  };
  protoOf(ClazzEnrolmentAndPersonDetailDetails).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ClazzEnrolmentAndPersonDetailDetails))
      return false;
    var tmp0_other_with_cast = other instanceof ClazzEnrolmentAndPersonDetailDetails ? other : THROW_CCE();
    if (!equals(this.l94_1, tmp0_other_with_cast.l94_1))
      return false;
    if (!equals(this.m94_1, tmp0_other_with_cast.m94_1))
      return false;
    if (!equals(this.n94_1, tmp0_other_with_cast.n94_1))
      return false;
    return true;
  };
  function Companion_6() {
  }
  var Companion_instance_7;
  function Companion_getInstance_9() {
    return Companion_instance_7;
  }
  function $serializer_5() {
    $serializer_instance_5 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ClazzNameAndTerminology', this, 2);
    tmp0_serialDesc.g4f('clazzName', true);
    tmp0_serialDesc.g4f('terminology', true);
    this.tj4_1 = tmp0_serialDesc;
  }
  protoOf($serializer_5).d44 = function () {
    return this.tj4_1;
  };
  protoOf($serializer_5).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_74())];
  };
  protoOf($serializer_5).f44 = function (decoder) {
    var tmp0_desc = this.tj4_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_input = decoder.v47(tmp0_desc);
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_74(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_74(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return ClazzNameAndTerminology_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_5).uj4 = function (encoder, value) {
    var tmp0_desc = this.tj4_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.v8k_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, StringSerializer_getInstance(), value.v8k_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.w8k_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_74(), value.w8k_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_5).e44 = function (encoder, value) {
    return this.uj4(encoder, value instanceof ClazzNameAndTerminology ? value : THROW_CCE());
  };
  var $serializer_instance_5;
  function $serializer_getInstance_5() {
    if ($serializer_instance_5 == null)
      new $serializer_5();
    return $serializer_instance_5;
  }
  function ClazzNameAndTerminology_init_$Init$(seen1, clazzName, terminology, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_5().tj4_1);
    }
    if (0 === (seen1 & 1))
      $this.v8k_1 = null;
    else
      $this.v8k_1 = clazzName;
    if (0 === (seen1 & 2))
      $this.w8k_1 = null;
    else
      $this.w8k_1 = terminology;
    return $this;
  }
  function ClazzNameAndTerminology_init_$Create$(seen1, clazzName, terminology, serializationConstructorMarker) {
    return ClazzNameAndTerminology_init_$Init$(seen1, clazzName, terminology, serializationConstructorMarker, objectCreate(protoOf(ClazzNameAndTerminology)));
  }
  function ClazzNameAndTerminology(clazzName, terminology) {
    clazzName = clazzName === VOID ? null : clazzName;
    terminology = terminology === VOID ? null : terminology;
    this.v8k_1 = clazzName;
    this.w8k_1 = terminology;
  }
  protoOf(ClazzNameAndTerminology).toString = function () {
    return 'ClazzNameAndTerminology(clazzName=' + this.v8k_1 + ', terminology=' + this.w8k_1 + ')';
  };
  protoOf(ClazzNameAndTerminology).hashCode = function () {
    var result = this.v8k_1 == null ? 0 : getStringHashCode(this.v8k_1);
    result = imul(result, 31) + (this.w8k_1 == null ? 0 : hashCode(this.w8k_1)) | 0;
    return result;
  };
  protoOf(ClazzNameAndTerminology).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ClazzNameAndTerminology))
      return false;
    var tmp0_other_with_cast = other instanceof ClazzNameAndTerminology ? other : THROW_CCE();
    if (!(this.v8k_1 == tmp0_other_with_cast.v8k_1))
      return false;
    if (!equals(this.w8k_1, tmp0_other_with_cast.w8k_1))
      return false;
    return true;
  };
  function Companion_7() {
  }
  var Companion_instance_8;
  function Companion_getInstance_10() {
    return Companion_instance_8;
  }
  function $serializer_6() {
    $serializer_instance_6 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CommentsAndName', this, 4);
    tmp0_serialDesc.g4f('comment', true);
    tmp0_serialDesc.g4f('firstNames', true);
    tmp0_serialDesc.g4f('lastName', true);
    tmp0_serialDesc.g4f('pictureUri', true);
    this.vj4_1 = tmp0_serialDesc;
  }
  protoOf($serializer_6).d44 = function () {
    return this.vj4_1;
  };
  protoOf($serializer_6).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [$serializer_getInstance_49(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_6).f44 = function (decoder) {
    var tmp0_desc = this.vj4_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_input = decoder.v47(tmp0_desc);
    if (tmp8_input.k48()) {
      tmp4_local0 = tmp8_input.h48(tmp0_desc, 0, $serializer_getInstance_49(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.h48(tmp0_desc, 0, $serializer_getInstance_49(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.w47(tmp0_desc);
    return CommentsAndName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_6).wj4 = function (encoder, value) {
    var tmp0_desc = this.vj4_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.j9z_1.equals(new Comments())) {
      tmp1_output.l49(tmp0_desc, 0, $serializer_getInstance_49(), value.j9z_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.k9z_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.k9z_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.l9z_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.l9z_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.m9z_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.m9z_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_6).e44 = function (encoder, value) {
    return this.wj4(encoder, value instanceof CommentsAndName ? value : THROW_CCE());
  };
  var $serializer_instance_6;
  function $serializer_getInstance_6() {
    if ($serializer_instance_6 == null)
      new $serializer_6();
    return $serializer_instance_6;
  }
  function CommentsAndName_init_$Init$(seen1, comment, firstNames, lastName, pictureUri, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_6().vj4_1);
    }
    if (0 === (seen1 & 1))
      $this.j9z_1 = new Comments();
    else
      $this.j9z_1 = comment;
    if (0 === (seen1 & 2))
      $this.k9z_1 = null;
    else
      $this.k9z_1 = firstNames;
    if (0 === (seen1 & 4))
      $this.l9z_1 = null;
    else
      $this.l9z_1 = lastName;
    if (0 === (seen1 & 8))
      $this.m9z_1 = null;
    else
      $this.m9z_1 = pictureUri;
    return $this;
  }
  function CommentsAndName_init_$Create$(seen1, comment, firstNames, lastName, pictureUri, serializationConstructorMarker) {
    return CommentsAndName_init_$Init$(seen1, comment, firstNames, lastName, pictureUri, serializationConstructorMarker, objectCreate(protoOf(CommentsAndName)));
  }
  function CommentsAndName(comment, firstNames, lastName, pictureUri) {
    comment = comment === VOID ? new Comments() : comment;
    firstNames = firstNames === VOID ? null : firstNames;
    lastName = lastName === VOID ? null : lastName;
    pictureUri = pictureUri === VOID ? null : pictureUri;
    this.j9z_1 = comment;
    this.k9z_1 = firstNames;
    this.l9z_1 = lastName;
    this.m9z_1 = pictureUri;
  }
  protoOf(CommentsAndName).toString = function () {
    return 'CommentsAndName(comment=' + this.j9z_1 + ', firstNames=' + this.k9z_1 + ', lastName=' + this.l9z_1 + ', pictureUri=' + this.m9z_1 + ')';
  };
  protoOf(CommentsAndName).hashCode = function () {
    var result = this.j9z_1.hashCode();
    result = imul(result, 31) + (this.k9z_1 == null ? 0 : getStringHashCode(this.k9z_1)) | 0;
    result = imul(result, 31) + (this.l9z_1 == null ? 0 : getStringHashCode(this.l9z_1)) | 0;
    result = imul(result, 31) + (this.m9z_1 == null ? 0 : getStringHashCode(this.m9z_1)) | 0;
    return result;
  };
  protoOf(CommentsAndName).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CommentsAndName))
      return false;
    var tmp0_other_with_cast = other instanceof CommentsAndName ? other : THROW_CCE();
    if (!this.j9z_1.equals(tmp0_other_with_cast.j9z_1))
      return false;
    if (!(this.k9z_1 == tmp0_other_with_cast.k9z_1))
      return false;
    if (!(this.l9z_1 == tmp0_other_with_cast.l9z_1))
      return false;
    if (!(this.m9z_1 == tmp0_other_with_cast.m9z_1))
      return false;
    return true;
  };
  function Companion_8() {
  }
  protoOf(Companion_8).a4r = function () {
    return $serializer_getInstance_7();
  };
  var Companion_instance_9;
  function Companion_getInstance_11() {
    return Companion_instance_9;
  }
  function $serializer_7() {
    $serializer_instance_7 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ContentEntryAndContentJob', this, 4);
    tmp0_serialDesc.g4f('entry', true);
    tmp0_serialDesc.g4f('contentJob', true);
    tmp0_serialDesc.g4f('contentJobItem', true);
    tmp0_serialDesc.g4f('picture', true);
    this.xj4_1 = tmp0_serialDesc;
  }
  protoOf($serializer_7).d44 = function () {
    return this.xj4_1;
  };
  protoOf($serializer_7).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_52()), get_nullable($serializer_getInstance_63()), get_nullable($serializer_getInstance_54()), get_nullable($serializer_getInstance_57())];
  };
  protoOf($serializer_7).f44 = function (decoder) {
    var tmp0_desc = this.xj4_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_input = decoder.v47(tmp0_desc);
    if (tmp8_input.k48()) {
      tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, $serializer_getInstance_52(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, $serializer_getInstance_63(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, $serializer_getInstance_54(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, $serializer_getInstance_57(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, $serializer_getInstance_52(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, $serializer_getInstance_63(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, $serializer_getInstance_54(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, $serializer_getInstance_57(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.w47(tmp0_desc);
    return ContentEntryAndContentJob_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_7).yj4 = function (encoder, value) {
    var tmp0_desc = this.xj4_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.zj4_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_52(), value.zj4_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.aj5_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_63(), value.aj5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.bj5_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, $serializer_getInstance_54(), value.bj5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.cj5_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, $serializer_getInstance_57(), value.cj5_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_7).e44 = function (encoder, value) {
    return this.yj4(encoder, value instanceof ContentEntryAndContentJob ? value : THROW_CCE());
  };
  var $serializer_instance_7;
  function $serializer_getInstance_7() {
    if ($serializer_instance_7 == null)
      new $serializer_7();
    return $serializer_instance_7;
  }
  function ContentEntryAndContentJob_init_$Init$(seen1, entry, contentJob, contentJobItem, picture, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_7().xj4_1);
    }
    if (0 === (seen1 & 1))
      $this.zj4_1 = null;
    else
      $this.zj4_1 = entry;
    if (0 === (seen1 & 2))
      $this.aj5_1 = null;
    else
      $this.aj5_1 = contentJob;
    if (0 === (seen1 & 4))
      $this.bj5_1 = null;
    else
      $this.bj5_1 = contentJobItem;
    if (0 === (seen1 & 8))
      $this.cj5_1 = null;
    else
      $this.cj5_1 = picture;
    return $this;
  }
  function ContentEntryAndContentJob_init_$Create$(seen1, entry, contentJob, contentJobItem, picture, serializationConstructorMarker) {
    return ContentEntryAndContentJob_init_$Init$(seen1, entry, contentJob, contentJobItem, picture, serializationConstructorMarker, objectCreate(protoOf(ContentEntryAndContentJob)));
  }
  function ContentEntryAndContentJob(entry, contentJob, contentJobItem, picture) {
    entry = entry === VOID ? null : entry;
    contentJob = contentJob === VOID ? null : contentJob;
    contentJobItem = contentJobItem === VOID ? null : contentJobItem;
    picture = picture === VOID ? null : picture;
    this.zj4_1 = entry;
    this.aj5_1 = contentJob;
    this.bj5_1 = contentJobItem;
    this.cj5_1 = picture;
  }
  protoOf(ContentEntryAndContentJob).dj5 = function (entry, contentJob, contentJobItem, picture) {
    return new ContentEntryAndContentJob(entry, contentJob, contentJobItem, picture);
  };
  protoOf(ContentEntryAndContentJob).ej5 = function (entry, contentJob, contentJobItem, picture, $super) {
    entry = entry === VOID ? this.zj4_1 : entry;
    contentJob = contentJob === VOID ? this.aj5_1 : contentJob;
    contentJobItem = contentJobItem === VOID ? this.bj5_1 : contentJobItem;
    picture = picture === VOID ? this.cj5_1 : picture;
    return $super === VOID ? this.dj5(entry, contentJob, contentJobItem, picture) : $super.dj5.call(this, entry, contentJob, contentJobItem, picture);
  };
  protoOf(ContentEntryAndContentJob).toString = function () {
    return 'ContentEntryAndContentJob(entry=' + this.zj4_1 + ', contentJob=' + this.aj5_1 + ', contentJobItem=' + this.bj5_1 + ', picture=' + this.cj5_1 + ')';
  };
  protoOf(ContentEntryAndContentJob).hashCode = function () {
    var result = this.zj4_1 == null ? 0 : this.zj4_1.hashCode();
    result = imul(result, 31) + (this.aj5_1 == null ? 0 : this.aj5_1.hashCode()) | 0;
    result = imul(result, 31) + (this.bj5_1 == null ? 0 : this.bj5_1.hashCode()) | 0;
    result = imul(result, 31) + (this.cj5_1 == null ? 0 : this.cj5_1.hashCode()) | 0;
    return result;
  };
  protoOf(ContentEntryAndContentJob).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ContentEntryAndContentJob))
      return false;
    var tmp0_other_with_cast = other instanceof ContentEntryAndContentJob ? other : THROW_CCE();
    if (!equals(this.zj4_1, tmp0_other_with_cast.zj4_1))
      return false;
    if (!equals(this.aj5_1, tmp0_other_with_cast.aj5_1))
      return false;
    if (!equals(this.bj5_1, tmp0_other_with_cast.bj5_1))
      return false;
    if (!equals(this.cj5_1, tmp0_other_with_cast.cj5_1))
      return false;
    return true;
  };
  function Companion_9() {
  }
  var Companion_instance_10;
  function Companion_getInstance_12() {
    return Companion_instance_10;
  }
  function $serializer_8() {
    $serializer_instance_8 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ContentEntryAndDetail', this, 4);
    tmp0_serialDesc.g4f('entry', true);
    tmp0_serialDesc.g4f('latestVersion', true);
    tmp0_serialDesc.g4f('picture', true);
    tmp0_serialDesc.g4f('status', true);
    this.fj5_1 = tmp0_serialDesc;
  }
  protoOf($serializer_8).d44 = function () {
    return this.fj5_1;
  };
  protoOf($serializer_8).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_52()), get_nullable($serializer_getInstance_61()), get_nullable($serializer_getInstance_57()), get_nullable($serializer_getInstance_1())];
  };
  protoOf($serializer_8).f44 = function (decoder) {
    var tmp0_desc = this.fj5_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_input = decoder.v47(tmp0_desc);
    if (tmp8_input.k48()) {
      tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, $serializer_getInstance_52(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, $serializer_getInstance_61(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, $serializer_getInstance_57(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, $serializer_getInstance_1(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, $serializer_getInstance_52(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, $serializer_getInstance_61(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, $serializer_getInstance_57(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, $serializer_getInstance_1(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.w47(tmp0_desc);
    return ContentEntryAndDetail_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_8).gj5 = function (encoder, value) {
    var tmp0_desc = this.fj5_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.zai_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_52(), value.zai_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.aaj_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_61(), value.aaj_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.baj_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, $serializer_getInstance_57(), value.baj_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.caj_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, $serializer_getInstance_1(), value.caj_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_8).e44 = function (encoder, value) {
    return this.gj5(encoder, value instanceof ContentEntryAndDetail ? value : THROW_CCE());
  };
  var $serializer_instance_8;
  function $serializer_getInstance_8() {
    if ($serializer_instance_8 == null)
      new $serializer_8();
    return $serializer_instance_8;
  }
  function ContentEntryAndDetail_init_$Init$(seen1, entry, latestVersion, picture, status, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_8().fj5_1);
    }
    if (0 === (seen1 & 1))
      $this.zai_1 = null;
    else
      $this.zai_1 = entry;
    if (0 === (seen1 & 2))
      $this.aaj_1 = null;
    else
      $this.aaj_1 = latestVersion;
    if (0 === (seen1 & 4))
      $this.baj_1 = null;
    else
      $this.baj_1 = picture;
    if (0 === (seen1 & 8))
      $this.caj_1 = null;
    else
      $this.caj_1 = status;
    return $this;
  }
  function ContentEntryAndDetail_init_$Create$(seen1, entry, latestVersion, picture, status, serializationConstructorMarker) {
    return ContentEntryAndDetail_init_$Init$(seen1, entry, latestVersion, picture, status, serializationConstructorMarker, objectCreate(protoOf(ContentEntryAndDetail)));
  }
  function ContentEntryAndDetail(entry, latestVersion, picture, status) {
    entry = entry === VOID ? null : entry;
    latestVersion = latestVersion === VOID ? null : latestVersion;
    picture = picture === VOID ? null : picture;
    status = status === VOID ? null : status;
    this.zai_1 = entry;
    this.aaj_1 = latestVersion;
    this.baj_1 = picture;
    this.caj_1 = status;
  }
  protoOf(ContentEntryAndDetail).toString = function () {
    return 'ContentEntryAndDetail(entry=' + this.zai_1 + ', latestVersion=' + this.aaj_1 + ', picture=' + this.baj_1 + ', status=' + this.caj_1 + ')';
  };
  protoOf(ContentEntryAndDetail).hashCode = function () {
    var result = this.zai_1 == null ? 0 : this.zai_1.hashCode();
    result = imul(result, 31) + (this.aaj_1 == null ? 0 : this.aaj_1.hashCode()) | 0;
    result = imul(result, 31) + (this.baj_1 == null ? 0 : this.baj_1.hashCode()) | 0;
    result = imul(result, 31) + (this.caj_1 == null ? 0 : this.caj_1.hashCode()) | 0;
    return result;
  };
  protoOf(ContentEntryAndDetail).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ContentEntryAndDetail))
      return false;
    var tmp0_other_with_cast = other instanceof ContentEntryAndDetail ? other : THROW_CCE();
    if (!equals(this.zai_1, tmp0_other_with_cast.zai_1))
      return false;
    if (!equals(this.aaj_1, tmp0_other_with_cast.aaj_1))
      return false;
    if (!equals(this.baj_1, tmp0_other_with_cast.baj_1))
      return false;
    if (!equals(this.caj_1, tmp0_other_with_cast.caj_1))
      return false;
    return true;
  };
  function ContentEntryAndListDetail(contentEntry, picture, contentEntryParentChildJoin, status) {
    contentEntry = contentEntry === VOID ? null : contentEntry;
    picture = picture === VOID ? null : picture;
    contentEntryParentChildJoin = contentEntryParentChildJoin === VOID ? null : contentEntryParentChildJoin;
    status = status === VOID ? null : status;
    this.iak_1 = contentEntry;
    this.jak_1 = picture;
    this.kak_1 = contentEntryParentChildJoin;
    this.lak_1 = status;
  }
  protoOf(ContentEntryAndListDetail).toString = function () {
    return 'ContentEntryAndListDetail(contentEntry=' + this.iak_1 + ', picture=' + this.jak_1 + ', contentEntryParentChildJoin=' + this.kak_1 + ', status=' + this.lak_1 + ')';
  };
  protoOf(ContentEntryAndListDetail).hashCode = function () {
    var result = this.iak_1 == null ? 0 : this.iak_1.hashCode();
    result = imul(result, 31) + (this.jak_1 == null ? 0 : this.jak_1.hashCode()) | 0;
    result = imul(result, 31) + (this.kak_1 == null ? 0 : this.kak_1.hashCode()) | 0;
    result = imul(result, 31) + (this.lak_1 == null ? 0 : this.lak_1.hashCode()) | 0;
    return result;
  };
  protoOf(ContentEntryAndListDetail).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ContentEntryAndListDetail))
      return false;
    var tmp0_other_with_cast = other instanceof ContentEntryAndListDetail ? other : THROW_CCE();
    if (!equals(this.iak_1, tmp0_other_with_cast.iak_1))
      return false;
    if (!equals(this.jak_1, tmp0_other_with_cast.jak_1))
      return false;
    if (!equals(this.kak_1, tmp0_other_with_cast.kak_1))
      return false;
    if (!equals(this.lak_1, tmp0_other_with_cast.lak_1))
      return false;
    return true;
  };
  function Companion_10() {
  }
  var Companion_instance_11;
  function Companion_getInstance_13() {
    return Companion_instance_11;
  }
  function $serializer_9() {
    $serializer_instance_9 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ContentEntryAndPicture', this, 2);
    tmp0_serialDesc.g4f('entry', true);
    tmp0_serialDesc.g4f('picture', true);
    this.hj5_1 = tmp0_serialDesc;
  }
  protoOf($serializer_9).d44 = function () {
    return this.hj5_1;
  };
  protoOf($serializer_9).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_52()), get_nullable($serializer_getInstance_57())];
  };
  protoOf($serializer_9).f44 = function (decoder) {
    var tmp0_desc = this.hj5_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_input = decoder.v47(tmp0_desc);
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, $serializer_getInstance_52(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_57(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, $serializer_getInstance_52(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_57(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return ContentEntryAndPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_9).ij5 = function (encoder, value) {
    var tmp0_desc = this.hj5_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.tai_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_52(), value.tai_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.uai_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_57(), value.uai_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_9).e44 = function (encoder, value) {
    return this.ij5(encoder, value instanceof ContentEntryAndPicture ? value : THROW_CCE());
  };
  var $serializer_instance_9;
  function $serializer_getInstance_9() {
    if ($serializer_instance_9 == null)
      new $serializer_9();
    return $serializer_instance_9;
  }
  function ContentEntryAndPicture_init_$Init$(seen1, entry, picture, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_9().hj5_1);
    }
    if (0 === (seen1 & 1))
      $this.tai_1 = null;
    else
      $this.tai_1 = entry;
    if (0 === (seen1 & 2))
      $this.uai_1 = null;
    else
      $this.uai_1 = picture;
    return $this;
  }
  function ContentEntryAndPicture_init_$Create$(seen1, entry, picture, serializationConstructorMarker) {
    return ContentEntryAndPicture_init_$Init$(seen1, entry, picture, serializationConstructorMarker, objectCreate(protoOf(ContentEntryAndPicture)));
  }
  function ContentEntryAndPicture(entry, picture) {
    entry = entry === VOID ? null : entry;
    picture = picture === VOID ? null : picture;
    this.tai_1 = entry;
    this.uai_1 = picture;
  }
  protoOf(ContentEntryAndPicture).toString = function () {
    return 'ContentEntryAndPicture(entry=' + this.tai_1 + ', picture=' + this.uai_1 + ')';
  };
  protoOf(ContentEntryAndPicture).hashCode = function () {
    var result = this.tai_1 == null ? 0 : this.tai_1.hashCode();
    result = imul(result, 31) + (this.uai_1 == null ? 0 : this.uai_1.hashCode()) | 0;
    return result;
  };
  protoOf(ContentEntryAndPicture).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ContentEntryAndPicture))
      return false;
    var tmp0_other_with_cast = other instanceof ContentEntryAndPicture ? other : THROW_CCE();
    if (!equals(this.tai_1, tmp0_other_with_cast.tai_1))
      return false;
    if (!equals(this.uai_1, tmp0_other_with_cast.uai_1))
      return false;
    return true;
  };
  function Companion_11() {
  }
  protoOf(Companion_11).a4r = function () {
    return $serializer_getInstance_10();
  };
  var Companion_instance_12;
  function Companion_getInstance_14() {
    return Companion_instance_12;
  }
  function $serializer_10() {
    $serializer_instance_10 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ContentEntryImportJobProgress', this, 6);
    tmp0_serialDesc.g4f('cjiUid', true);
    tmp0_serialDesc.g4f('cjiItemProgress', true);
    tmp0_serialDesc.g4f('cjiItemTotal', true);
    tmp0_serialDesc.g4f('cjiStatus', true);
    tmp0_serialDesc.g4f('cjiError', true);
    tmp0_serialDesc.g4f('cjiOwnerPersonUid', true);
    this.jj5_1 = tmp0_serialDesc;
  }
  protoOf($serializer_10).d44 = function () {
    return this.jj5_1;
  };
  protoOf($serializer_10).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()];
  };
  protoOf($serializer_10).f44 = function (decoder) {
    var tmp0_desc = this.jj5_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = 0;
    var tmp8_local4 = null;
    var tmp9_local5 = new Long(0, 0);
    var tmp10_input = decoder.v47(tmp0_desc);
    if (tmp10_input.k48()) {
      tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.a48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.a48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.w47(tmp0_desc);
    return ContentEntryImportJobProgress_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_10).kj5 = function (encoder, value) {
    var tmp0_desc = this.jj5_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.maw_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.maw_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.naw_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.naw_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.oaw_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.oaw_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.paw_1 === 4)) {
      tmp1_output.e49(tmp0_desc, 3, value.paw_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.qaw_1 == null)) {
      tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.qaw_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.raw_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.raw_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_10).e44 = function (encoder, value) {
    return this.kj5(encoder, value instanceof ContentEntryImportJobProgress ? value : THROW_CCE());
  };
  var $serializer_instance_10;
  function $serializer_getInstance_10() {
    if ($serializer_instance_10 == null)
      new $serializer_10();
    return $serializer_instance_10;
  }
  function ContentEntryImportJobProgress_init_$Init$(seen1, cjiUid, cjiItemProgress, cjiItemTotal, cjiStatus, cjiError, cjiOwnerPersonUid, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_10().jj5_1);
    }
    if (0 === (seen1 & 1))
      $this.maw_1 = new Long(0, 0);
    else
      $this.maw_1 = cjiUid;
    if (0 === (seen1 & 2))
      $this.naw_1 = new Long(0, 0);
    else
      $this.naw_1 = cjiItemProgress;
    if (0 === (seen1 & 4))
      $this.oaw_1 = new Long(0, 0);
    else
      $this.oaw_1 = cjiItemTotal;
    if (0 === (seen1 & 8))
      $this.paw_1 = 4;
    else
      $this.paw_1 = cjiStatus;
    if (0 === (seen1 & 16))
      $this.qaw_1 = null;
    else
      $this.qaw_1 = cjiError;
    if (0 === (seen1 & 32))
      $this.raw_1 = new Long(0, 0);
    else
      $this.raw_1 = cjiOwnerPersonUid;
    return $this;
  }
  function ContentEntryImportJobProgress_init_$Create$(seen1, cjiUid, cjiItemProgress, cjiItemTotal, cjiStatus, cjiError, cjiOwnerPersonUid, serializationConstructorMarker) {
    return ContentEntryImportJobProgress_init_$Init$(seen1, cjiUid, cjiItemProgress, cjiItemTotal, cjiStatus, cjiError, cjiOwnerPersonUid, serializationConstructorMarker, objectCreate(protoOf(ContentEntryImportJobProgress)));
  }
  function ContentEntryImportJobProgress(cjiUid, cjiItemProgress, cjiItemTotal, cjiStatus, cjiError, cjiOwnerPersonUid) {
    cjiUid = cjiUid === VOID ? new Long(0, 0) : cjiUid;
    cjiItemProgress = cjiItemProgress === VOID ? new Long(0, 0) : cjiItemProgress;
    cjiItemTotal = cjiItemTotal === VOID ? new Long(0, 0) : cjiItemTotal;
    cjiStatus = cjiStatus === VOID ? 4 : cjiStatus;
    cjiError = cjiError === VOID ? null : cjiError;
    cjiOwnerPersonUid = cjiOwnerPersonUid === VOID ? new Long(0, 0) : cjiOwnerPersonUid;
    this.maw_1 = cjiUid;
    this.naw_1 = cjiItemProgress;
    this.oaw_1 = cjiItemTotal;
    this.paw_1 = cjiStatus;
    this.qaw_1 = cjiError;
    this.raw_1 = cjiOwnerPersonUid;
  }
  protoOf(ContentEntryImportJobProgress).toString = function () {
    return 'ContentEntryImportJobProgress(cjiUid=' + this.maw_1.toString() + ', cjiItemProgress=' + this.naw_1.toString() + ', cjiItemTotal=' + this.oaw_1.toString() + ', cjiStatus=' + this.paw_1 + ', cjiError=' + this.qaw_1 + ', cjiOwnerPersonUid=' + this.raw_1.toString() + ')';
  };
  protoOf(ContentEntryImportJobProgress).hashCode = function () {
    var result = this.maw_1.hashCode();
    result = imul(result, 31) + this.naw_1.hashCode() | 0;
    result = imul(result, 31) + this.oaw_1.hashCode() | 0;
    result = imul(result, 31) + this.paw_1 | 0;
    result = imul(result, 31) + (this.qaw_1 == null ? 0 : getStringHashCode(this.qaw_1)) | 0;
    result = imul(result, 31) + this.raw_1.hashCode() | 0;
    return result;
  };
  protoOf(ContentEntryImportJobProgress).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ContentEntryImportJobProgress))
      return false;
    var tmp0_other_with_cast = other instanceof ContentEntryImportJobProgress ? other : THROW_CCE();
    if (!this.maw_1.equals(tmp0_other_with_cast.maw_1))
      return false;
    if (!this.naw_1.equals(tmp0_other_with_cast.naw_1))
      return false;
    if (!this.oaw_1.equals(tmp0_other_with_cast.oaw_1))
      return false;
    if (!(this.paw_1 === tmp0_other_with_cast.paw_1))
      return false;
    if (!(this.qaw_1 == tmp0_other_with_cast.qaw_1))
      return false;
    if (!this.raw_1.equals(tmp0_other_with_cast.raw_1))
      return false;
    return true;
  };
  function Companion_12() {
  }
  var Companion_instance_13;
  function Companion_getInstance_15() {
    return Companion_instance_13;
  }
  function $serializer_11() {
    $serializer_instance_11 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseAssignmentMarkAndMarkerName', this, 4);
    tmp0_serialDesc.g4f('courseAssignmentMark', true);
    tmp0_serialDesc.g4f('markerFirstNames', true);
    tmp0_serialDesc.g4f('markerLastName', true);
    tmp0_serialDesc.g4f('markerPictureUri', true);
    this.lj5_1 = tmp0_serialDesc;
  }
  protoOf($serializer_11).d44 = function () {
    return this.lj5_1;
  };
  protoOf($serializer_11).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_64()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_11).f44 = function (decoder) {
    var tmp0_desc = this.lj5_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_input = decoder.v47(tmp0_desc);
    if (tmp8_input.k48()) {
      tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, $serializer_getInstance_64(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, $serializer_getInstance_64(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.w47(tmp0_desc);
    return CourseAssignmentMarkAndMarkerName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_11).mj5 = function (encoder, value) {
    var tmp0_desc = this.lj5_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.obh_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_64(), value.obh_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.pbh_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.pbh_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.qbh_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.qbh_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.rbh_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.rbh_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_11).e44 = function (encoder, value) {
    return this.mj5(encoder, value instanceof CourseAssignmentMarkAndMarkerName ? value : THROW_CCE());
  };
  var $serializer_instance_11;
  function $serializer_getInstance_11() {
    if ($serializer_instance_11 == null)
      new $serializer_11();
    return $serializer_instance_11;
  }
  function CourseAssignmentMarkAndMarkerName_init_$Init$(seen1, courseAssignmentMark, markerFirstNames, markerLastName, markerPictureUri, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_11().lj5_1);
    }
    if (0 === (seen1 & 1))
      $this.obh_1 = null;
    else
      $this.obh_1 = courseAssignmentMark;
    if (0 === (seen1 & 2))
      $this.pbh_1 = null;
    else
      $this.pbh_1 = markerFirstNames;
    if (0 === (seen1 & 4))
      $this.qbh_1 = null;
    else
      $this.qbh_1 = markerLastName;
    if (0 === (seen1 & 8))
      $this.rbh_1 = null;
    else
      $this.rbh_1 = markerPictureUri;
    return $this;
  }
  function CourseAssignmentMarkAndMarkerName_init_$Create$(seen1, courseAssignmentMark, markerFirstNames, markerLastName, markerPictureUri, serializationConstructorMarker) {
    return CourseAssignmentMarkAndMarkerName_init_$Init$(seen1, courseAssignmentMark, markerFirstNames, markerLastName, markerPictureUri, serializationConstructorMarker, objectCreate(protoOf(CourseAssignmentMarkAndMarkerName)));
  }
  function CourseAssignmentMarkAndMarkerName(courseAssignmentMark, markerFirstNames, markerLastName, markerPictureUri) {
    courseAssignmentMark = courseAssignmentMark === VOID ? null : courseAssignmentMark;
    markerFirstNames = markerFirstNames === VOID ? null : markerFirstNames;
    markerLastName = markerLastName === VOID ? null : markerLastName;
    markerPictureUri = markerPictureUri === VOID ? null : markerPictureUri;
    this.obh_1 = courseAssignmentMark;
    this.pbh_1 = markerFirstNames;
    this.qbh_1 = markerLastName;
    this.rbh_1 = markerPictureUri;
  }
  protoOf(CourseAssignmentMarkAndMarkerName).toString = function () {
    return 'CourseAssignmentMarkAndMarkerName(courseAssignmentMark=' + this.obh_1 + ', markerFirstNames=' + this.pbh_1 + ', markerLastName=' + this.qbh_1 + ', markerPictureUri=' + this.rbh_1 + ')';
  };
  protoOf(CourseAssignmentMarkAndMarkerName).hashCode = function () {
    var result = this.obh_1 == null ? 0 : hashCode(this.obh_1);
    result = imul(result, 31) + (this.pbh_1 == null ? 0 : getStringHashCode(this.pbh_1)) | 0;
    result = imul(result, 31) + (this.qbh_1 == null ? 0 : getStringHashCode(this.qbh_1)) | 0;
    result = imul(result, 31) + (this.rbh_1 == null ? 0 : getStringHashCode(this.rbh_1)) | 0;
    return result;
  };
  protoOf(CourseAssignmentMarkAndMarkerName).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CourseAssignmentMarkAndMarkerName))
      return false;
    var tmp0_other_with_cast = other instanceof CourseAssignmentMarkAndMarkerName ? other : THROW_CCE();
    if (!equals(this.obh_1, tmp0_other_with_cast.obh_1))
      return false;
    if (!(this.pbh_1 == tmp0_other_with_cast.pbh_1))
      return false;
    if (!(this.qbh_1 == tmp0_other_with_cast.qbh_1))
      return false;
    if (!(this.rbh_1 == tmp0_other_with_cast.rbh_1))
      return false;
    return true;
  };
  function Companion_13() {
  }
  var Companion_instance_14;
  function Companion_getInstance_16() {
    return Companion_instance_14;
  }
  function $serializer_12() {
    $serializer_instance_12 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseAssignmentSubmissionFileAndTransferJob', this, 2);
    tmp0_serialDesc.g4f('submissionFile', true);
    tmp0_serialDesc.g4f('transferJobItem', true);
    this.nj5_1 = tmp0_serialDesc;
  }
  protoOf($serializer_12).d44 = function () {
    return this.nj5_1;
  };
  protoOf($serializer_12).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_66()), get_nullable($serializer_getInstance_108())];
  };
  protoOf($serializer_12).f44 = function (decoder) {
    var tmp0_desc = this.nj5_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_input = decoder.v47(tmp0_desc);
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, $serializer_getInstance_66(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_108(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, $serializer_getInstance_66(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_108(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return CourseAssignmentSubmissionFileAndTransferJob_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_12).oj5 = function (encoder, value) {
    var tmp0_desc = this.nj5_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.tbw_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_66(), value.tbw_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.ubw_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_108(), value.ubw_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_12).e44 = function (encoder, value) {
    return this.oj5(encoder, value instanceof CourseAssignmentSubmissionFileAndTransferJob ? value : THROW_CCE());
  };
  var $serializer_instance_12;
  function $serializer_getInstance_12() {
    if ($serializer_instance_12 == null)
      new $serializer_12();
    return $serializer_instance_12;
  }
  function CourseAssignmentSubmissionFileAndTransferJob_init_$Init$(seen1, submissionFile, transferJobItem, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_12().nj5_1);
    }
    if (0 === (seen1 & 1))
      $this.tbw_1 = null;
    else
      $this.tbw_1 = submissionFile;
    if (0 === (seen1 & 2))
      $this.ubw_1 = null;
    else
      $this.ubw_1 = transferJobItem;
    return $this;
  }
  function CourseAssignmentSubmissionFileAndTransferJob_init_$Create$(seen1, submissionFile, transferJobItem, serializationConstructorMarker) {
    return CourseAssignmentSubmissionFileAndTransferJob_init_$Init$(seen1, submissionFile, transferJobItem, serializationConstructorMarker, objectCreate(protoOf(CourseAssignmentSubmissionFileAndTransferJob)));
  }
  function CourseAssignmentSubmissionFileAndTransferJob(submissionFile, transferJobItem) {
    submissionFile = submissionFile === VOID ? null : submissionFile;
    transferJobItem = transferJobItem === VOID ? null : transferJobItem;
    this.tbw_1 = submissionFile;
    this.ubw_1 = transferJobItem;
  }
  protoOf(CourseAssignmentSubmissionFileAndTransferJob).toString = function () {
    return 'CourseAssignmentSubmissionFileAndTransferJob(submissionFile=' + this.tbw_1 + ', transferJobItem=' + this.ubw_1 + ')';
  };
  protoOf(CourseAssignmentSubmissionFileAndTransferJob).hashCode = function () {
    var result = this.tbw_1 == null ? 0 : this.tbw_1.hashCode();
    result = imul(result, 31) + (this.ubw_1 == null ? 0 : this.ubw_1.hashCode()) | 0;
    return result;
  };
  protoOf(CourseAssignmentSubmissionFileAndTransferJob).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CourseAssignmentSubmissionFileAndTransferJob))
      return false;
    var tmp0_other_with_cast = other instanceof CourseAssignmentSubmissionFileAndTransferJob ? other : THROW_CCE();
    if (!equals(this.tbw_1, tmp0_other_with_cast.tbw_1))
      return false;
    if (!equals(this.ubw_1, tmp0_other_with_cast.ubw_1))
      return false;
    return true;
  };
  function Companion_14() {
  }
  var Companion_instance_15;
  function Companion_getInstance_17() {
    return Companion_instance_15;
  }
  function $serializer_13() {
    $serializer_instance_13 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndAssignment', this, 2);
    tmp0_serialDesc.g4f('courseBlock', true);
    tmp0_serialDesc.g4f('assignment', true);
    this.pj5_1 = tmp0_serialDesc;
  }
  protoOf($serializer_13).d44 = function () {
    return this.pj5_1;
  };
  protoOf($serializer_13).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_67()), get_nullable($serializer_getInstance_41())];
  };
  protoOf($serializer_13).f44 = function (decoder) {
    var tmp0_desc = this.pj5_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_input = decoder.v47(tmp0_desc);
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, $serializer_getInstance_67(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_41(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, $serializer_getInstance_67(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_41(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return CourseBlockAndAssignment_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_13).qj5 = function (encoder, value) {
    var tmp0_desc = this.pj5_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.rc9_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_67(), value.rc9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.sc9_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_41(), value.sc9_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_13).e44 = function (encoder, value) {
    return this.qj5(encoder, value instanceof CourseBlockAndAssignment ? value : THROW_CCE());
  };
  var $serializer_instance_13;
  function $serializer_getInstance_13() {
    if ($serializer_instance_13 == null)
      new $serializer_13();
    return $serializer_instance_13;
  }
  function CourseBlockAndAssignment_init_$Init$(seen1, courseBlock, assignment, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_13().pj5_1);
    }
    if (0 === (seen1 & 1))
      $this.rc9_1 = null;
    else
      $this.rc9_1 = courseBlock;
    if (0 === (seen1 & 2))
      $this.sc9_1 = null;
    else
      $this.sc9_1 = assignment;
    return $this;
  }
  function CourseBlockAndAssignment_init_$Create$(seen1, courseBlock, assignment, serializationConstructorMarker) {
    return CourseBlockAndAssignment_init_$Init$(seen1, courseBlock, assignment, serializationConstructorMarker, objectCreate(protoOf(CourseBlockAndAssignment)));
  }
  function CourseBlockAndAssignment(courseBlock, assignment) {
    courseBlock = courseBlock === VOID ? null : courseBlock;
    assignment = assignment === VOID ? null : assignment;
    this.rc9_1 = courseBlock;
    this.sc9_1 = assignment;
  }
  protoOf(CourseBlockAndAssignment).toString = function () {
    return 'CourseBlockAndAssignment(courseBlock=' + this.rc9_1 + ', assignment=' + this.sc9_1 + ')';
  };
  protoOf(CourseBlockAndAssignment).hashCode = function () {
    var result = this.rc9_1 == null ? 0 : this.rc9_1.hashCode();
    result = imul(result, 31) + (this.sc9_1 == null ? 0 : this.sc9_1.hashCode()) | 0;
    return result;
  };
  protoOf(CourseBlockAndAssignment).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CourseBlockAndAssignment))
      return false;
    var tmp0_other_with_cast = other instanceof CourseBlockAndAssignment ? other : THROW_CCE();
    if (!equals(this.rc9_1, tmp0_other_with_cast.rc9_1))
      return false;
    if (!equals(this.sc9_1, tmp0_other_with_cast.sc9_1))
      return false;
    return true;
  };
  function Companion_15() {
  }
  var Companion_instance_16;
  function Companion_getInstance_18() {
    return Companion_instance_16;
  }
  function $serializer_14() {
    $serializer_instance_14 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndDbEntities', this, 6);
    tmp0_serialDesc.g4f('courseBlock', true);
    tmp0_serialDesc.g4f('courseBlockPicture', true);
    tmp0_serialDesc.g4f('contentEntry', true);
    tmp0_serialDesc.g4f('contentEntryLang', true);
    tmp0_serialDesc.g4f('assignment', true);
    tmp0_serialDesc.g4f('assignmentCourseGroupSetName', true);
    this.rj5_1 = tmp0_serialDesc;
  }
  protoOf($serializer_14).d44 = function () {
    return this.rj5_1;
  };
  protoOf($serializer_14).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_67()), get_nullable($serializer_getInstance_68()), get_nullable($serializer_getInstance_52()), get_nullable($serializer_getInstance_83()), get_nullable($serializer_getInstance_41()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_14).f44 = function (decoder) {
    var tmp0_desc = this.rj5_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = null;
    var tmp9_local5 = null;
    var tmp10_input = decoder.v47(tmp0_desc);
    if (tmp10_input.k48()) {
      tmp4_local0 = tmp10_input.j48(tmp0_desc, 0, $serializer_getInstance_67(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.j48(tmp0_desc, 1, $serializer_getInstance_68(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.j48(tmp0_desc, 2, $serializer_getInstance_52(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.j48(tmp0_desc, 3, $serializer_getInstance_83(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.j48(tmp0_desc, 4, $serializer_getInstance_41(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.j48(tmp0_desc, 0, $serializer_getInstance_67(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.j48(tmp0_desc, 1, $serializer_getInstance_68(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.j48(tmp0_desc, 2, $serializer_getInstance_52(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.j48(tmp0_desc, 3, $serializer_getInstance_83(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.j48(tmp0_desc, 4, $serializer_getInstance_41(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.w47(tmp0_desc);
    return CourseBlockAndDbEntities_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_14).sj5 = function (encoder, value) {
    var tmp0_desc = this.rj5_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.fc8_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_67(), value.fc8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.gc8_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_68(), value.gc8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.hc8_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, $serializer_getInstance_52(), value.hc8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.ic8_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, $serializer_getInstance_83(), value.ic8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.jc8_1 == null)) {
      tmp1_output.n49(tmp0_desc, 4, $serializer_getInstance_41(), value.jc8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.kc8_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.kc8_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_14).e44 = function (encoder, value) {
    return this.sj5(encoder, value instanceof CourseBlockAndDbEntities ? value : THROW_CCE());
  };
  var $serializer_instance_14;
  function $serializer_getInstance_14() {
    if ($serializer_instance_14 == null)
      new $serializer_14();
    return $serializer_instance_14;
  }
  function CourseBlockAndDbEntities_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryLang, assignment, assignmentCourseGroupSetName, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_14().rj5_1);
    }
    if (0 === (seen1 & 1))
      $this.fc8_1 = null;
    else
      $this.fc8_1 = courseBlock;
    if (0 === (seen1 & 2))
      $this.gc8_1 = null;
    else
      $this.gc8_1 = courseBlockPicture;
    if (0 === (seen1 & 4))
      $this.hc8_1 = null;
    else
      $this.hc8_1 = contentEntry;
    if (0 === (seen1 & 8))
      $this.ic8_1 = null;
    else
      $this.ic8_1 = contentEntryLang;
    if (0 === (seen1 & 16))
      $this.jc8_1 = null;
    else
      $this.jc8_1 = assignment;
    if (0 === (seen1 & 32))
      $this.kc8_1 = null;
    else
      $this.kc8_1 = assignmentCourseGroupSetName;
    return $this;
  }
  function CourseBlockAndDbEntities_init_$Create$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryLang, assignment, assignmentCourseGroupSetName, serializationConstructorMarker) {
    return CourseBlockAndDbEntities_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryLang, assignment, assignmentCourseGroupSetName, serializationConstructorMarker, objectCreate(protoOf(CourseBlockAndDbEntities)));
  }
  function CourseBlockAndDbEntities(courseBlock, courseBlockPicture, contentEntry, contentEntryLang, assignment, assignmentCourseGroupSetName) {
    courseBlock = courseBlock === VOID ? null : courseBlock;
    courseBlockPicture = courseBlockPicture === VOID ? null : courseBlockPicture;
    contentEntry = contentEntry === VOID ? null : contentEntry;
    contentEntryLang = contentEntryLang === VOID ? null : contentEntryLang;
    assignment = assignment === VOID ? null : assignment;
    assignmentCourseGroupSetName = assignmentCourseGroupSetName === VOID ? null : assignmentCourseGroupSetName;
    this.fc8_1 = courseBlock;
    this.gc8_1 = courseBlockPicture;
    this.hc8_1 = contentEntry;
    this.ic8_1 = contentEntryLang;
    this.jc8_1 = assignment;
    this.kc8_1 = assignmentCourseGroupSetName;
  }
  protoOf(CourseBlockAndDbEntities).toString = function () {
    return 'CourseBlockAndDbEntities(courseBlock=' + this.fc8_1 + ', courseBlockPicture=' + this.gc8_1 + ', contentEntry=' + this.hc8_1 + ', contentEntryLang=' + this.ic8_1 + ', assignment=' + this.jc8_1 + ', assignmentCourseGroupSetName=' + this.kc8_1 + ')';
  };
  protoOf(CourseBlockAndDbEntities).hashCode = function () {
    var result = this.fc8_1 == null ? 0 : this.fc8_1.hashCode();
    result = imul(result, 31) + (this.gc8_1 == null ? 0 : this.gc8_1.hashCode()) | 0;
    result = imul(result, 31) + (this.hc8_1 == null ? 0 : this.hc8_1.hashCode()) | 0;
    result = imul(result, 31) + (this.ic8_1 == null ? 0 : this.ic8_1.hashCode()) | 0;
    result = imul(result, 31) + (this.jc8_1 == null ? 0 : this.jc8_1.hashCode()) | 0;
    result = imul(result, 31) + (this.kc8_1 == null ? 0 : getStringHashCode(this.kc8_1)) | 0;
    return result;
  };
  protoOf(CourseBlockAndDbEntities).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CourseBlockAndDbEntities))
      return false;
    var tmp0_other_with_cast = other instanceof CourseBlockAndDbEntities ? other : THROW_CCE();
    if (!equals(this.fc8_1, tmp0_other_with_cast.fc8_1))
      return false;
    if (!equals(this.gc8_1, tmp0_other_with_cast.gc8_1))
      return false;
    if (!equals(this.hc8_1, tmp0_other_with_cast.hc8_1))
      return false;
    if (!equals(this.ic8_1, tmp0_other_with_cast.ic8_1))
      return false;
    if (!equals(this.jc8_1, tmp0_other_with_cast.jc8_1))
      return false;
    if (!(this.kc8_1 == tmp0_other_with_cast.kc8_1))
      return false;
    return true;
  };
  function Companion_16() {
  }
  var Companion_instance_17;
  function Companion_getInstance_19() {
    return Companion_instance_17;
  }
  function $serializer_15() {
    $serializer_instance_15 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndDisplayDetails', this, 4);
    tmp0_serialDesc.g4f('courseBlock', true);
    tmp0_serialDesc.g4f('courseBlockPicture', true);
    tmp0_serialDesc.g4f('contentEntry', true);
    tmp0_serialDesc.g4f('contentEntryPicture2', true);
    this.tj5_1 = tmp0_serialDesc;
  }
  protoOf($serializer_15).d44 = function () {
    return this.tj5_1;
  };
  protoOf($serializer_15).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_67()), get_nullable($serializer_getInstance_68()), get_nullable($serializer_getInstance_52()), get_nullable($serializer_getInstance_57())];
  };
  protoOf($serializer_15).f44 = function (decoder) {
    var tmp0_desc = this.tj5_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_input = decoder.v47(tmp0_desc);
    if (tmp8_input.k48()) {
      tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, $serializer_getInstance_67(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, $serializer_getInstance_68(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, $serializer_getInstance_52(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, $serializer_getInstance_57(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, $serializer_getInstance_67(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, $serializer_getInstance_68(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, $serializer_getInstance_52(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, $serializer_getInstance_57(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.w47(tmp0_desc);
    return CourseBlockAndDisplayDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_15).uj5 = function (encoder, value) {
    var tmp0_desc = this.tj5_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.wc8_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_67(), value.wc8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.xc8_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_68(), value.xc8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.yc8_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, $serializer_getInstance_52(), value.yc8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.zc8_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, $serializer_getInstance_57(), value.zc8_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_15).e44 = function (encoder, value) {
    return this.uj5(encoder, value instanceof CourseBlockAndDisplayDetails ? value : THROW_CCE());
  };
  var $serializer_instance_15;
  function $serializer_getInstance_15() {
    if ($serializer_instance_15 == null)
      new $serializer_15();
    return $serializer_instance_15;
  }
  function CourseBlockAndDisplayDetails_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_15().tj5_1);
    }
    if (0 === (seen1 & 1))
      $this.wc8_1 = null;
    else
      $this.wc8_1 = courseBlock;
    if (0 === (seen1 & 2))
      $this.xc8_1 = null;
    else
      $this.xc8_1 = courseBlockPicture;
    if (0 === (seen1 & 4))
      $this.yc8_1 = null;
    else
      $this.yc8_1 = contentEntry;
    if (0 === (seen1 & 8))
      $this.zc8_1 = null;
    else
      $this.zc8_1 = contentEntryPicture2;
    return $this;
  }
  function CourseBlockAndDisplayDetails_init_$Create$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker) {
    return CourseBlockAndDisplayDetails_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker, objectCreate(protoOf(CourseBlockAndDisplayDetails)));
  }
  function CourseBlockAndDisplayDetails(courseBlock, courseBlockPicture, contentEntry, contentEntryPicture2) {
    courseBlock = courseBlock === VOID ? null : courseBlock;
    courseBlockPicture = courseBlockPicture === VOID ? null : courseBlockPicture;
    contentEntry = contentEntry === VOID ? null : contentEntry;
    contentEntryPicture2 = contentEntryPicture2 === VOID ? null : contentEntryPicture2;
    this.wc8_1 = courseBlock;
    this.xc8_1 = courseBlockPicture;
    this.yc8_1 = contentEntry;
    this.zc8_1 = contentEntryPicture2;
  }
  protoOf(CourseBlockAndDisplayDetails).toString = function () {
    return 'CourseBlockAndDisplayDetails(courseBlock=' + this.wc8_1 + ', courseBlockPicture=' + this.xc8_1 + ', contentEntry=' + this.yc8_1 + ', contentEntryPicture2=' + this.zc8_1 + ')';
  };
  protoOf(CourseBlockAndDisplayDetails).hashCode = function () {
    var result = this.wc8_1 == null ? 0 : this.wc8_1.hashCode();
    result = imul(result, 31) + (this.xc8_1 == null ? 0 : this.xc8_1.hashCode()) | 0;
    result = imul(result, 31) + (this.yc8_1 == null ? 0 : this.yc8_1.hashCode()) | 0;
    result = imul(result, 31) + (this.zc8_1 == null ? 0 : this.zc8_1.hashCode()) | 0;
    return result;
  };
  protoOf(CourseBlockAndDisplayDetails).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CourseBlockAndDisplayDetails))
      return false;
    var tmp0_other_with_cast = other instanceof CourseBlockAndDisplayDetails ? other : THROW_CCE();
    if (!equals(this.wc8_1, tmp0_other_with_cast.wc8_1))
      return false;
    if (!equals(this.xc8_1, tmp0_other_with_cast.xc8_1))
      return false;
    if (!equals(this.yc8_1, tmp0_other_with_cast.yc8_1))
      return false;
    if (!equals(this.zc8_1, tmp0_other_with_cast.zc8_1))
      return false;
    return true;
  };
  function Companion_17() {
    Companion_instance_18 = this;
    var tmp = this;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    tmp.vj5_1 = [null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_88())];
  }
  protoOf(Companion_17).a4r = function () {
    return $serializer_getInstance_16();
  };
  var Companion_instance_18;
  function Companion_getInstance_20() {
    if (Companion_instance_18 == null)
      new Companion_17();
    return Companion_instance_18;
  }
  function $serializer_16() {
    $serializer_instance_16 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndEditEntities', this, 10);
    tmp0_serialDesc.g4f('courseBlock', false);
    tmp0_serialDesc.g4f('courseBlockPicture', true);
    tmp0_serialDesc.g4f('contentEntry', true);
    tmp0_serialDesc.g4f('contentEntryPicture', true);
    tmp0_serialDesc.g4f('contentJobItem', true);
    tmp0_serialDesc.g4f('contentJob', true);
    tmp0_serialDesc.g4f('contentEntryLang', true);
    tmp0_serialDesc.g4f('assignment', true);
    tmp0_serialDesc.g4f('assignmentCourseGroupSetName', true);
    tmp0_serialDesc.g4f('assignmentPeerAllocations', true);
    this.wj5_1 = tmp0_serialDesc;
  }
  protoOf($serializer_16).d44 = function () {
    return this.wj5_1;
  };
  protoOf($serializer_16).x4f = function () {
    var tmp0_cached = Companion_getInstance_20().vj5_1;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [$serializer_getInstance_67(), get_nullable($serializer_getInstance_68()), get_nullable($serializer_getInstance_52()), get_nullable($serializer_getInstance_57()), get_nullable($serializer_getInstance_54()), get_nullable($serializer_getInstance_63()), get_nullable($serializer_getInstance_83()), get_nullable($serializer_getInstance_41()), get_nullable(StringSerializer_getInstance()), tmp0_cached[9]];
  };
  protoOf($serializer_16).f44 = function (decoder) {
    var tmp0_desc = this.wj5_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = null;
    var tmp9_local5 = null;
    var tmp10_local6 = null;
    var tmp11_local7 = null;
    var tmp12_local8 = null;
    var tmp13_local9 = null;
    var tmp14_input = decoder.v47(tmp0_desc);
    var tmp15_cached = Companion_getInstance_20().vj5_1;
    if (tmp14_input.k48()) {
      tmp4_local0 = tmp14_input.h48(tmp0_desc, 0, $serializer_getInstance_67(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp14_input.j48(tmp0_desc, 1, $serializer_getInstance_68(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp14_input.j48(tmp0_desc, 2, $serializer_getInstance_52(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp14_input.j48(tmp0_desc, 3, $serializer_getInstance_57(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp14_input.j48(tmp0_desc, 4, $serializer_getInstance_54(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp14_input.j48(tmp0_desc, 5, $serializer_getInstance_63(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp14_input.j48(tmp0_desc, 6, $serializer_getInstance_83(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp14_input.j48(tmp0_desc, 7, $serializer_getInstance_41(), tmp11_local7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp14_input.j48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp14_input.h48(tmp0_desc, 9, tmp15_cached[9], tmp13_local9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp14_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp14_input.h48(tmp0_desc, 0, $serializer_getInstance_67(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp14_input.j48(tmp0_desc, 1, $serializer_getInstance_68(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp14_input.j48(tmp0_desc, 2, $serializer_getInstance_52(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp14_input.j48(tmp0_desc, 3, $serializer_getInstance_57(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp14_input.j48(tmp0_desc, 4, $serializer_getInstance_54(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp14_input.j48(tmp0_desc, 5, $serializer_getInstance_63(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp14_input.j48(tmp0_desc, 6, $serializer_getInstance_83(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp14_input.j48(tmp0_desc, 7, $serializer_getInstance_41(), tmp11_local7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp14_input.j48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp14_input.h48(tmp0_desc, 9, tmp15_cached[9], tmp13_local9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp14_input.w47(tmp0_desc);
    return CourseBlockAndEditEntities_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null);
  };
  protoOf($serializer_16).xj5 = function (encoder, value) {
    var tmp0_desc = this.wj5_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    var tmp2_cached = Companion_getInstance_20().vj5_1;
    tmp1_output.l49(tmp0_desc, 0, $serializer_getInstance_67(), value.yj5_1);
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.zj5_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_68(), value.zj5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.aj6_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, $serializer_getInstance_52(), value.aj6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.bj6_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, $serializer_getInstance_57(), value.bj6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.cj6_1 == null)) {
      tmp1_output.n49(tmp0_desc, 4, $serializer_getInstance_54(), value.cj6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.dj6_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, $serializer_getInstance_63(), value.dj6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.ej6_1 == null)) {
      tmp1_output.n49(tmp0_desc, 6, $serializer_getInstance_83(), value.ej6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.fj6_1 == null)) {
      tmp1_output.n49(tmp0_desc, 7, $serializer_getInstance_41(), value.fj6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.gj6_1 == null)) {
      tmp1_output.n49(tmp0_desc, 8, StringSerializer_getInstance(), value.gj6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !equals(value.hj6_1, emptyList())) {
      tmp1_output.l49(tmp0_desc, 9, tmp2_cached[9], value.hj6_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_16).e44 = function (encoder, value) {
    return this.xj5(encoder, value instanceof CourseBlockAndEditEntities ? value : THROW_CCE());
  };
  var $serializer_instance_16;
  function $serializer_getInstance_16() {
    if ($serializer_instance_16 == null)
      new $serializer_16();
    return $serializer_instance_16;
  }
  function CourseBlockAndEditEntities_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations, serializationConstructorMarker, $this) {
    if (!(1 === (1 & seen1))) {
      throwMissingFieldException(seen1, 1, $serializer_getInstance_16().wj5_1);
    }
    $this.yj5_1 = courseBlock;
    if (0 === (seen1 & 2))
      $this.zj5_1 = null;
    else
      $this.zj5_1 = courseBlockPicture;
    if (0 === (seen1 & 4))
      $this.aj6_1 = null;
    else
      $this.aj6_1 = contentEntry;
    if (0 === (seen1 & 8))
      $this.bj6_1 = null;
    else
      $this.bj6_1 = contentEntryPicture;
    if (0 === (seen1 & 16))
      $this.cj6_1 = null;
    else
      $this.cj6_1 = contentJobItem;
    if (0 === (seen1 & 32))
      $this.dj6_1 = null;
    else
      $this.dj6_1 = contentJob;
    if (0 === (seen1 & 64))
      $this.ej6_1 = null;
    else
      $this.ej6_1 = contentEntryLang;
    if (0 === (seen1 & 128))
      $this.fj6_1 = null;
    else
      $this.fj6_1 = assignment;
    if (0 === (seen1 & 256))
      $this.gj6_1 = null;
    else
      $this.gj6_1 = assignmentCourseGroupSetName;
    if (0 === (seen1 & 512))
      $this.hj6_1 = emptyList();
    else
      $this.hj6_1 = assignmentPeerAllocations;
    return $this;
  }
  function CourseBlockAndEditEntities_init_$Create$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations, serializationConstructorMarker) {
    return CourseBlockAndEditEntities_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations, serializationConstructorMarker, objectCreate(protoOf(CourseBlockAndEditEntities)));
  }
  function CourseBlockAndEditEntities(courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations) {
    Companion_getInstance_20();
    courseBlockPicture = courseBlockPicture === VOID ? null : courseBlockPicture;
    contentEntry = contentEntry === VOID ? null : contentEntry;
    contentEntryPicture = contentEntryPicture === VOID ? null : contentEntryPicture;
    contentJobItem = contentJobItem === VOID ? null : contentJobItem;
    contentJob = contentJob === VOID ? null : contentJob;
    contentEntryLang = contentEntryLang === VOID ? null : contentEntryLang;
    assignment = assignment === VOID ? null : assignment;
    assignmentCourseGroupSetName = assignmentCourseGroupSetName === VOID ? null : assignmentCourseGroupSetName;
    assignmentPeerAllocations = assignmentPeerAllocations === VOID ? emptyList() : assignmentPeerAllocations;
    this.yj5_1 = courseBlock;
    this.zj5_1 = courseBlockPicture;
    this.aj6_1 = contentEntry;
    this.bj6_1 = contentEntryPicture;
    this.cj6_1 = contentJobItem;
    this.dj6_1 = contentJob;
    this.ej6_1 = contentEntryLang;
    this.fj6_1 = assignment;
    this.gj6_1 = assignmentCourseGroupSetName;
    this.hj6_1 = assignmentPeerAllocations;
  }
  protoOf(CourseBlockAndEditEntities).ij6 = function () {
    return new ContentEntryAndContentJob(this.aj6_1, this.dj6_1, this.cj6_1, this.bj6_1);
  };
  protoOf(CourseBlockAndEditEntities).jj6 = function (courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations) {
    return new CourseBlockAndEditEntities(courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations);
  };
  protoOf(CourseBlockAndEditEntities).kj6 = function (courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations, $super) {
    courseBlock = courseBlock === VOID ? this.yj5_1 : courseBlock;
    courseBlockPicture = courseBlockPicture === VOID ? this.zj5_1 : courseBlockPicture;
    contentEntry = contentEntry === VOID ? this.aj6_1 : contentEntry;
    contentEntryPicture = contentEntryPicture === VOID ? this.bj6_1 : contentEntryPicture;
    contentJobItem = contentJobItem === VOID ? this.cj6_1 : contentJobItem;
    contentJob = contentJob === VOID ? this.dj6_1 : contentJob;
    contentEntryLang = contentEntryLang === VOID ? this.ej6_1 : contentEntryLang;
    assignment = assignment === VOID ? this.fj6_1 : assignment;
    assignmentCourseGroupSetName = assignmentCourseGroupSetName === VOID ? this.gj6_1 : assignmentCourseGroupSetName;
    assignmentPeerAllocations = assignmentPeerAllocations === VOID ? this.hj6_1 : assignmentPeerAllocations;
    return $super === VOID ? this.jj6(courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations) : $super.jj6.call(this, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations);
  };
  protoOf(CourseBlockAndEditEntities).toString = function () {
    return 'CourseBlockAndEditEntities(courseBlock=' + this.yj5_1 + ', courseBlockPicture=' + this.zj5_1 + ', contentEntry=' + this.aj6_1 + ', contentEntryPicture=' + this.bj6_1 + ', contentJobItem=' + this.cj6_1 + ', contentJob=' + this.dj6_1 + ', contentEntryLang=' + this.ej6_1 + ', assignment=' + this.fj6_1 + ', assignmentCourseGroupSetName=' + this.gj6_1 + ', assignmentPeerAllocations=' + this.hj6_1 + ')';
  };
  protoOf(CourseBlockAndEditEntities).hashCode = function () {
    var result = this.yj5_1.hashCode();
    result = imul(result, 31) + (this.zj5_1 == null ? 0 : this.zj5_1.hashCode()) | 0;
    result = imul(result, 31) + (this.aj6_1 == null ? 0 : this.aj6_1.hashCode()) | 0;
    result = imul(result, 31) + (this.bj6_1 == null ? 0 : this.bj6_1.hashCode()) | 0;
    result = imul(result, 31) + (this.cj6_1 == null ? 0 : this.cj6_1.hashCode()) | 0;
    result = imul(result, 31) + (this.dj6_1 == null ? 0 : this.dj6_1.hashCode()) | 0;
    result = imul(result, 31) + (this.ej6_1 == null ? 0 : this.ej6_1.hashCode()) | 0;
    result = imul(result, 31) + (this.fj6_1 == null ? 0 : this.fj6_1.hashCode()) | 0;
    result = imul(result, 31) + (this.gj6_1 == null ? 0 : getStringHashCode(this.gj6_1)) | 0;
    result = imul(result, 31) + hashCode(this.hj6_1) | 0;
    return result;
  };
  protoOf(CourseBlockAndEditEntities).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CourseBlockAndEditEntities))
      return false;
    var tmp0_other_with_cast = other instanceof CourseBlockAndEditEntities ? other : THROW_CCE();
    if (!this.yj5_1.equals(tmp0_other_with_cast.yj5_1))
      return false;
    if (!equals(this.zj5_1, tmp0_other_with_cast.zj5_1))
      return false;
    if (!equals(this.aj6_1, tmp0_other_with_cast.aj6_1))
      return false;
    if (!equals(this.bj6_1, tmp0_other_with_cast.bj6_1))
      return false;
    if (!equals(this.cj6_1, tmp0_other_with_cast.cj6_1))
      return false;
    if (!equals(this.dj6_1, tmp0_other_with_cast.dj6_1))
      return false;
    if (!equals(this.ej6_1, tmp0_other_with_cast.ej6_1))
      return false;
    if (!equals(this.fj6_1, tmp0_other_with_cast.fj6_1))
      return false;
    if (!(this.gj6_1 == tmp0_other_with_cast.gj6_1))
      return false;
    if (!equals(this.hj6_1, tmp0_other_with_cast.hj6_1))
      return false;
    return true;
  };
  function Companion_18() {
  }
  var Companion_instance_19;
  function Companion_getInstance_21() {
    return Companion_instance_19;
  }
  function $serializer_17() {
    $serializer_instance_17 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndGradebookDisplayDetails', this, 4);
    tmp0_serialDesc.g4f('block', true);
    tmp0_serialDesc.g4f('courseBlockPicture', true);
    tmp0_serialDesc.g4f('contentEntry', true);
    tmp0_serialDesc.g4f('contentEntryPicture2', true);
    this.lj6_1 = tmp0_serialDesc;
  }
  protoOf($serializer_17).d44 = function () {
    return this.lj6_1;
  };
  protoOf($serializer_17).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_67()), get_nullable($serializer_getInstance_68()), get_nullable($serializer_getInstance_52()), get_nullable($serializer_getInstance_57())];
  };
  protoOf($serializer_17).f44 = function (decoder) {
    var tmp0_desc = this.lj6_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_input = decoder.v47(tmp0_desc);
    if (tmp8_input.k48()) {
      tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, $serializer_getInstance_67(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, $serializer_getInstance_68(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, $serializer_getInstance_52(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, $serializer_getInstance_57(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, $serializer_getInstance_67(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, $serializer_getInstance_68(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, $serializer_getInstance_52(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, $serializer_getInstance_57(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.w47(tmp0_desc);
    return CourseBlockAndGradebookDisplayDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_17).mj6 = function (encoder, value) {
    var tmp0_desc = this.lj6_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.eca_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_67(), value.eca_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.fca_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_68(), value.fca_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.gca_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, $serializer_getInstance_52(), value.gca_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.hca_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, $serializer_getInstance_57(), value.hca_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_17).e44 = function (encoder, value) {
    return this.mj6(encoder, value instanceof CourseBlockAndGradebookDisplayDetails ? value : THROW_CCE());
  };
  var $serializer_instance_17;
  function $serializer_getInstance_17() {
    if ($serializer_instance_17 == null)
      new $serializer_17();
    return $serializer_instance_17;
  }
  function CourseBlockAndGradebookDisplayDetails_init_$Init$(seen1, block, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_17().lj6_1);
    }
    if (0 === (seen1 & 1))
      $this.eca_1 = null;
    else
      $this.eca_1 = block;
    if (0 === (seen1 & 2))
      $this.fca_1 = null;
    else
      $this.fca_1 = courseBlockPicture;
    if (0 === (seen1 & 4))
      $this.gca_1 = null;
    else
      $this.gca_1 = contentEntry;
    if (0 === (seen1 & 8))
      $this.hca_1 = null;
    else
      $this.hca_1 = contentEntryPicture2;
    return $this;
  }
  function CourseBlockAndGradebookDisplayDetails_init_$Create$(seen1, block, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker) {
    return CourseBlockAndGradebookDisplayDetails_init_$Init$(seen1, block, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker, objectCreate(protoOf(CourseBlockAndGradebookDisplayDetails)));
  }
  function CourseBlockAndGradebookDisplayDetails(block, courseBlockPicture, contentEntry, contentEntryPicture2) {
    block = block === VOID ? null : block;
    courseBlockPicture = courseBlockPicture === VOID ? null : courseBlockPicture;
    contentEntry = contentEntry === VOID ? null : contentEntry;
    contentEntryPicture2 = contentEntryPicture2 === VOID ? null : contentEntryPicture2;
    this.eca_1 = block;
    this.fca_1 = courseBlockPicture;
    this.gca_1 = contentEntry;
    this.hca_1 = contentEntryPicture2;
  }
  protoOf(CourseBlockAndGradebookDisplayDetails).toString = function () {
    return 'CourseBlockAndGradebookDisplayDetails(block=' + this.eca_1 + ', courseBlockPicture=' + this.fca_1 + ', contentEntry=' + this.gca_1 + ', contentEntryPicture2=' + this.hca_1 + ')';
  };
  protoOf(CourseBlockAndGradebookDisplayDetails).hashCode = function () {
    var result = this.eca_1 == null ? 0 : this.eca_1.hashCode();
    result = imul(result, 31) + (this.fca_1 == null ? 0 : this.fca_1.hashCode()) | 0;
    result = imul(result, 31) + (this.gca_1 == null ? 0 : this.gca_1.hashCode()) | 0;
    result = imul(result, 31) + (this.hca_1 == null ? 0 : this.hca_1.hashCode()) | 0;
    return result;
  };
  protoOf(CourseBlockAndGradebookDisplayDetails).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CourseBlockAndGradebookDisplayDetails))
      return false;
    var tmp0_other_with_cast = other instanceof CourseBlockAndGradebookDisplayDetails ? other : THROW_CCE();
    if (!equals(this.eca_1, tmp0_other_with_cast.eca_1))
      return false;
    if (!equals(this.fca_1, tmp0_other_with_cast.fca_1))
      return false;
    if (!equals(this.gca_1, tmp0_other_with_cast.gca_1))
      return false;
    if (!equals(this.hca_1, tmp0_other_with_cast.hca_1))
      return false;
    return true;
  };
  function Companion_19() {
  }
  var Companion_instance_20;
  function Companion_getInstance_22() {
    return Companion_instance_20;
  }
  function $serializer_18() {
    $serializer_instance_18 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndPicture', this, 2);
    tmp0_serialDesc.g4f('block', true);
    tmp0_serialDesc.g4f('picture', true);
    this.nj6_1 = tmp0_serialDesc;
  }
  protoOf($serializer_18).d44 = function () {
    return this.nj6_1;
  };
  protoOf($serializer_18).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_67()), get_nullable($serializer_getInstance_68())];
  };
  protoOf($serializer_18).f44 = function (decoder) {
    var tmp0_desc = this.nj6_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_input = decoder.v47(tmp0_desc);
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, $serializer_getInstance_67(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_68(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, $serializer_getInstance_67(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_68(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return CourseBlockAndPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_18).oj6 = function (encoder, value) {
    var tmp0_desc = this.nj6_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.sc7_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_67(), value.sc7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.tc7_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_68(), value.tc7_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_18).e44 = function (encoder, value) {
    return this.oj6(encoder, value instanceof CourseBlockAndPicture ? value : THROW_CCE());
  };
  var $serializer_instance_18;
  function $serializer_getInstance_18() {
    if ($serializer_instance_18 == null)
      new $serializer_18();
    return $serializer_instance_18;
  }
  function CourseBlockAndPicture_init_$Init$(seen1, block, picture, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_18().nj6_1);
    }
    if (0 === (seen1 & 1))
      $this.sc7_1 = null;
    else
      $this.sc7_1 = block;
    if (0 === (seen1 & 2))
      $this.tc7_1 = null;
    else
      $this.tc7_1 = picture;
    return $this;
  }
  function CourseBlockAndPicture_init_$Create$(seen1, block, picture, serializationConstructorMarker) {
    return CourseBlockAndPicture_init_$Init$(seen1, block, picture, serializationConstructorMarker, objectCreate(protoOf(CourseBlockAndPicture)));
  }
  function CourseBlockAndPicture(block, picture) {
    block = block === VOID ? null : block;
    picture = picture === VOID ? null : picture;
    this.sc7_1 = block;
    this.tc7_1 = picture;
  }
  protoOf(CourseBlockAndPicture).toString = function () {
    return 'CourseBlockAndPicture(block=' + this.sc7_1 + ', picture=' + this.tc7_1 + ')';
  };
  protoOf(CourseBlockAndPicture).hashCode = function () {
    var result = this.sc7_1 == null ? 0 : this.sc7_1.hashCode();
    result = imul(result, 31) + (this.tc7_1 == null ? 0 : this.tc7_1.hashCode()) | 0;
    return result;
  };
  protoOf(CourseBlockAndPicture).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CourseBlockAndPicture))
      return false;
    var tmp0_other_with_cast = other instanceof CourseBlockAndPicture ? other : THROW_CCE();
    if (!equals(this.sc7_1, tmp0_other_with_cast.sc7_1))
      return false;
    if (!equals(this.tc7_1, tmp0_other_with_cast.tc7_1))
      return false;
    return true;
  };
  function Companion_20() {
  }
  var Companion_instance_21;
  function Companion_getInstance_23() {
    return Companion_instance_21;
  }
  function $serializer_19() {
    $serializer_instance_19 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockUidAndClazzUid', this, 2);
    tmp0_serialDesc.g4f('clazzUid', true);
    tmp0_serialDesc.g4f('courseBlockUid', true);
    this.pj6_1 = tmp0_serialDesc;
  }
  protoOf($serializer_19).d44 = function () {
    return this.pj6_1;
  };
  protoOf($serializer_19).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_19).f44 = function (decoder) {
    var tmp0_desc = this.pj6_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_input = decoder.v47(tmp0_desc);
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return CourseBlockUidAndClazzUid_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_19).qj6 = function (encoder, value) {
    var tmp0_desc = this.pj6_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.pc9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.pc9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.qc9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.qc9_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_19).e44 = function (encoder, value) {
    return this.qj6(encoder, value instanceof CourseBlockUidAndClazzUid ? value : THROW_CCE());
  };
  var $serializer_instance_19;
  function $serializer_getInstance_19() {
    if ($serializer_instance_19 == null)
      new $serializer_19();
    return $serializer_instance_19;
  }
  function CourseBlockUidAndClazzUid_init_$Init$(seen1, clazzUid, courseBlockUid, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_19().pj6_1);
    }
    if (0 === (seen1 & 1))
      $this.pc9_1 = new Long(0, 0);
    else
      $this.pc9_1 = clazzUid;
    if (0 === (seen1 & 2))
      $this.qc9_1 = new Long(0, 0);
    else
      $this.qc9_1 = courseBlockUid;
    return $this;
  }
  function CourseBlockUidAndClazzUid_init_$Create$(seen1, clazzUid, courseBlockUid, serializationConstructorMarker) {
    return CourseBlockUidAndClazzUid_init_$Init$(seen1, clazzUid, courseBlockUid, serializationConstructorMarker, objectCreate(protoOf(CourseBlockUidAndClazzUid)));
  }
  function CourseBlockUidAndClazzUid(clazzUid, courseBlockUid) {
    clazzUid = clazzUid === VOID ? new Long(0, 0) : clazzUid;
    courseBlockUid = courseBlockUid === VOID ? new Long(0, 0) : courseBlockUid;
    this.pc9_1 = clazzUid;
    this.qc9_1 = courseBlockUid;
  }
  protoOf(CourseBlockUidAndClazzUid).toString = function () {
    return 'CourseBlockUidAndClazzUid(clazzUid=' + this.pc9_1.toString() + ', courseBlockUid=' + this.qc9_1.toString() + ')';
  };
  protoOf(CourseBlockUidAndClazzUid).hashCode = function () {
    var result = this.pc9_1.hashCode();
    result = imul(result, 31) + this.qc9_1.hashCode() | 0;
    return result;
  };
  protoOf(CourseBlockUidAndClazzUid).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CourseBlockUidAndClazzUid))
      return false;
    var tmp0_other_with_cast = other instanceof CourseBlockUidAndClazzUid ? other : THROW_CCE();
    if (!this.pc9_1.equals(tmp0_other_with_cast.pc9_1))
      return false;
    if (!this.qc9_1.equals(tmp0_other_with_cast.qc9_1))
      return false;
    return true;
  };
  function Companion_21() {
  }
  var Companion_instance_22;
  function Companion_getInstance_24() {
    return Companion_instance_22;
  }
  function $serializer_20() {
    $serializer_instance_20 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseGroupMemberAndPerson', this, 2);
    tmp0_serialDesc.g4f('courseGroupMember', true);
    tmp0_serialDesc.g4f('person', true);
    this.rj6_1 = tmp0_serialDesc;
  }
  protoOf($serializer_20).d44 = function () {
    return this.rj6_1;
  };
  protoOf($serializer_20).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_69()), get_nullable($serializer_getInstance_89())];
  };
  protoOf($serializer_20).f44 = function (decoder) {
    var tmp0_desc = this.rj6_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_input = decoder.v47(tmp0_desc);
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, $serializer_getInstance_69(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_89(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, $serializer_getInstance_69(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_89(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return CourseGroupMemberAndPerson_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_20).sj6 = function (encoder, value) {
    var tmp0_desc = this.rj6_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.ycq_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_69(), value.ycq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.zcq_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_89(), value.zcq_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_20).e44 = function (encoder, value) {
    return this.sj6(encoder, value instanceof CourseGroupMemberAndPerson ? value : THROW_CCE());
  };
  var $serializer_instance_20;
  function $serializer_getInstance_20() {
    if ($serializer_instance_20 == null)
      new $serializer_20();
    return $serializer_instance_20;
  }
  function CourseGroupMemberAndPerson_init_$Init$(seen1, courseGroupMember, person, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_20().rj6_1);
    }
    if (0 === (seen1 & 1))
      $this.ycq_1 = null;
    else
      $this.ycq_1 = courseGroupMember;
    if (0 === (seen1 & 2))
      $this.zcq_1 = null;
    else
      $this.zcq_1 = person;
    return $this;
  }
  function CourseGroupMemberAndPerson_init_$Create$(seen1, courseGroupMember, person, serializationConstructorMarker) {
    return CourseGroupMemberAndPerson_init_$Init$(seen1, courseGroupMember, person, serializationConstructorMarker, objectCreate(protoOf(CourseGroupMemberAndPerson)));
  }
  function CourseGroupMemberAndPerson(courseGroupMember, person) {
    courseGroupMember = courseGroupMember === VOID ? null : courseGroupMember;
    person = person === VOID ? null : person;
    this.ycq_1 = courseGroupMember;
    this.zcq_1 = person;
  }
  protoOf(CourseGroupMemberAndPerson).toString = function () {
    return 'CourseGroupMemberAndPerson(courseGroupMember=' + this.ycq_1 + ', person=' + this.zcq_1 + ')';
  };
  protoOf(CourseGroupMemberAndPerson).hashCode = function () {
    var result = this.ycq_1 == null ? 0 : this.ycq_1.hashCode();
    result = imul(result, 31) + (this.zcq_1 == null ? 0 : this.zcq_1.hashCode()) | 0;
    return result;
  };
  protoOf(CourseGroupMemberAndPerson).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CourseGroupMemberAndPerson))
      return false;
    var tmp0_other_with_cast = other instanceof CourseGroupMemberAndPerson ? other : THROW_CCE();
    if (!equals(this.ycq_1, tmp0_other_with_cast.ycq_1))
      return false;
    if (!equals(this.zcq_1, tmp0_other_with_cast.zcq_1))
      return false;
    return true;
  };
  function Companion_22() {
  }
  var Companion_instance_23;
  function Companion_getInstance_25() {
    return Companion_instance_23;
  }
  function $serializer_21() {
    $serializer_instance_21 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseNameAndPersonName', this, 3);
    tmp0_serialDesc.g4f('clazzName', true);
    tmp0_serialDesc.g4f('firstNames', true);
    tmp0_serialDesc.g4f('lastName', true);
    this.tj6_1 = tmp0_serialDesc;
  }
  protoOf($serializer_21).d44 = function () {
    return this.tj6_1;
  };
  protoOf($serializer_21).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_21).f44 = function (decoder) {
    var tmp0_desc = this.tj6_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_input = decoder.v47(tmp0_desc);
    if (tmp7_input.k48()) {
      tmp4_local0 = tmp7_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp7_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp7_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp7_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp7_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp7_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp7_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp7_input.w47(tmp0_desc);
    return CourseNameAndPersonName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
  };
  protoOf($serializer_21).uj6 = function (encoder, value) {
    var tmp0_desc = this.tj6_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.c99_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, StringSerializer_getInstance(), value.c99_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.d99_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.d99_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.e99_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.e99_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_21).e44 = function (encoder, value) {
    return this.uj6(encoder, value instanceof CourseNameAndPersonName ? value : THROW_CCE());
  };
  var $serializer_instance_21;
  function $serializer_getInstance_21() {
    if ($serializer_instance_21 == null)
      new $serializer_21();
    return $serializer_instance_21;
  }
  function CourseNameAndPersonName_init_$Init$(seen1, clazzName, firstNames, lastName, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_21().tj6_1);
    }
    if (0 === (seen1 & 1))
      $this.c99_1 = null;
    else
      $this.c99_1 = clazzName;
    if (0 === (seen1 & 2))
      $this.d99_1 = null;
    else
      $this.d99_1 = firstNames;
    if (0 === (seen1 & 4))
      $this.e99_1 = null;
    else
      $this.e99_1 = lastName;
    return $this;
  }
  function CourseNameAndPersonName_init_$Create$(seen1, clazzName, firstNames, lastName, serializationConstructorMarker) {
    return CourseNameAndPersonName_init_$Init$(seen1, clazzName, firstNames, lastName, serializationConstructorMarker, objectCreate(protoOf(CourseNameAndPersonName)));
  }
  function CourseNameAndPersonName(clazzName, firstNames, lastName) {
    clazzName = clazzName === VOID ? null : clazzName;
    firstNames = firstNames === VOID ? null : firstNames;
    lastName = lastName === VOID ? null : lastName;
    this.c99_1 = clazzName;
    this.d99_1 = firstNames;
    this.e99_1 = lastName;
  }
  protoOf(CourseNameAndPersonName).toString = function () {
    return 'CourseNameAndPersonName(clazzName=' + this.c99_1 + ', firstNames=' + this.d99_1 + ', lastName=' + this.e99_1 + ')';
  };
  protoOf(CourseNameAndPersonName).hashCode = function () {
    var result = this.c99_1 == null ? 0 : getStringHashCode(this.c99_1);
    result = imul(result, 31) + (this.d99_1 == null ? 0 : getStringHashCode(this.d99_1)) | 0;
    result = imul(result, 31) + (this.e99_1 == null ? 0 : getStringHashCode(this.e99_1)) | 0;
    return result;
  };
  protoOf(CourseNameAndPersonName).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CourseNameAndPersonName))
      return false;
    var tmp0_other_with_cast = other instanceof CourseNameAndPersonName ? other : THROW_CCE();
    if (!(this.c99_1 == tmp0_other_with_cast.c99_1))
      return false;
    if (!(this.d99_1 == tmp0_other_with_cast.d99_1))
      return false;
    if (!(this.e99_1 == tmp0_other_with_cast.e99_1))
      return false;
    return true;
  };
  function CoursePermissionAndListDetail(coursePermission, person, personPicture) {
    coursePermission = coursePermission === VOID ? null : coursePermission;
    person = person === VOID ? null : person;
    personPicture = personPicture === VOID ? null : personPicture;
    this.ed6_1 = coursePermission;
    this.fd6_1 = person;
    this.gd6_1 = personPicture;
  }
  protoOf(CoursePermissionAndListDetail).toString = function () {
    return 'CoursePermissionAndListDetail(coursePermission=' + this.ed6_1 + ', person=' + this.fd6_1 + ', personPicture=' + this.gd6_1 + ')';
  };
  protoOf(CoursePermissionAndListDetail).hashCode = function () {
    var result = this.ed6_1 == null ? 0 : this.ed6_1.hashCode();
    result = imul(result, 31) + (this.fd6_1 == null ? 0 : this.fd6_1.hashCode()) | 0;
    result = imul(result, 31) + (this.gd6_1 == null ? 0 : this.gd6_1.hashCode()) | 0;
    return result;
  };
  protoOf(CoursePermissionAndListDetail).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CoursePermissionAndListDetail))
      return false;
    var tmp0_other_with_cast = other instanceof CoursePermissionAndListDetail ? other : THROW_CCE();
    if (!equals(this.ed6_1, tmp0_other_with_cast.ed6_1))
      return false;
    if (!equals(this.fd6_1, tmp0_other_with_cast.fd6_1))
      return false;
    if (!equals(this.gd6_1, tmp0_other_with_cast.gd6_1))
      return false;
    return true;
  };
  function Companion_23() {
  }
  var Companion_instance_24;
  function Companion_getInstance_26() {
    return Companion_instance_24;
  }
  function $serializer_22() {
    $serializer_instance_22 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.DiscussionPostAndPosterNames', this, 4);
    tmp0_serialDesc.g4f('discussionPost', true);
    tmp0_serialDesc.g4f('firstNames', true);
    tmp0_serialDesc.g4f('lastName', true);
    tmp0_serialDesc.g4f('personPictureUri', true);
    this.vj6_1 = tmp0_serialDesc;
  }
  protoOf($serializer_22).d44 = function () {
    return this.vj6_1;
  };
  protoOf($serializer_22).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_76()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_22).f44 = function (decoder) {
    var tmp0_desc = this.vj6_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_input = decoder.v47(tmp0_desc);
    if (tmp8_input.k48()) {
      tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, $serializer_getInstance_76(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, $serializer_getInstance_76(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.w47(tmp0_desc);
    return DiscussionPostAndPosterNames_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_22).wj6 = function (encoder, value) {
    var tmp0_desc = this.vj6_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.kea_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_76(), value.kea_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.lea_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.lea_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.mea_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.mea_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.nea_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.nea_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_22).e44 = function (encoder, value) {
    return this.wj6(encoder, value instanceof DiscussionPostAndPosterNames ? value : THROW_CCE());
  };
  var $serializer_instance_22;
  function $serializer_getInstance_22() {
    if ($serializer_instance_22 == null)
      new $serializer_22();
    return $serializer_instance_22;
  }
  function DiscussionPostAndPosterNames_init_$Init$(seen1, discussionPost, firstNames, lastName, personPictureUri, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_22().vj6_1);
    }
    if (0 === (seen1 & 1))
      $this.kea_1 = null;
    else
      $this.kea_1 = discussionPost;
    if (0 === (seen1 & 2))
      $this.lea_1 = null;
    else
      $this.lea_1 = firstNames;
    if (0 === (seen1 & 4))
      $this.mea_1 = null;
    else
      $this.mea_1 = lastName;
    if (0 === (seen1 & 8))
      $this.nea_1 = null;
    else
      $this.nea_1 = personPictureUri;
    return $this;
  }
  function DiscussionPostAndPosterNames_init_$Create$(seen1, discussionPost, firstNames, lastName, personPictureUri, serializationConstructorMarker) {
    return DiscussionPostAndPosterNames_init_$Init$(seen1, discussionPost, firstNames, lastName, personPictureUri, serializationConstructorMarker, objectCreate(protoOf(DiscussionPostAndPosterNames)));
  }
  function DiscussionPostAndPosterNames(discussionPost, firstNames, lastName, personPictureUri) {
    discussionPost = discussionPost === VOID ? null : discussionPost;
    firstNames = firstNames === VOID ? null : firstNames;
    lastName = lastName === VOID ? null : lastName;
    personPictureUri = personPictureUri === VOID ? null : personPictureUri;
    this.kea_1 = discussionPost;
    this.lea_1 = firstNames;
    this.mea_1 = lastName;
    this.nea_1 = personPictureUri;
  }
  protoOf(DiscussionPostAndPosterNames).toString = function () {
    return 'DiscussionPostAndPosterNames(discussionPost=' + this.kea_1 + ', firstNames=' + this.lea_1 + ', lastName=' + this.mea_1 + ', personPictureUri=' + this.nea_1 + ')';
  };
  protoOf(DiscussionPostAndPosterNames).hashCode = function () {
    var result = this.kea_1 == null ? 0 : hashCode(this.kea_1);
    result = imul(result, 31) + (this.lea_1 == null ? 0 : getStringHashCode(this.lea_1)) | 0;
    result = imul(result, 31) + (this.mea_1 == null ? 0 : getStringHashCode(this.mea_1)) | 0;
    result = imul(result, 31) + (this.nea_1 == null ? 0 : getStringHashCode(this.nea_1)) | 0;
    return result;
  };
  protoOf(DiscussionPostAndPosterNames).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof DiscussionPostAndPosterNames))
      return false;
    var tmp0_other_with_cast = other instanceof DiscussionPostAndPosterNames ? other : THROW_CCE();
    if (!equals(this.kea_1, tmp0_other_with_cast.kea_1))
      return false;
    if (!(this.lea_1 == tmp0_other_with_cast.lea_1))
      return false;
    if (!(this.mea_1 == tmp0_other_with_cast.mea_1))
      return false;
    if (!(this.nea_1 == tmp0_other_with_cast.nea_1))
      return false;
    return true;
  };
  function Companion_24() {
  }
  var Companion_instance_25;
  function Companion_getInstance_27() {
    return Companion_instance_25;
  }
  function $serializer_23() {
    $serializer_instance_23 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.EditAndViewPermission', this, 2);
    tmp0_serialDesc.g4f('hasViewPermission', true);
    tmp0_serialDesc.g4f('hasEditPermission', true);
    this.xj6_1 = tmp0_serialDesc;
  }
  protoOf($serializer_23).d44 = function () {
    return this.xj6_1;
  };
  protoOf($serializer_23).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [BooleanSerializer_getInstance(), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_23).f44 = function (decoder) {
    var tmp0_desc = this.xj6_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = false;
    var tmp5_local1 = false;
    var tmp6_input = decoder.v47(tmp0_desc);
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.x47(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.x47(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.x47(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.x47(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return EditAndViewPermission_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_23).yj6 = function (encoder, value) {
    var tmp0_desc = this.xj6_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.bhf_1 === false)) {
      tmp1_output.b49(tmp0_desc, 0, value.bhf_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.chf_1 === false)) {
      tmp1_output.b49(tmp0_desc, 1, value.chf_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_23).e44 = function (encoder, value) {
    return this.yj6(encoder, value instanceof EditAndViewPermission ? value : THROW_CCE());
  };
  var $serializer_instance_23;
  function $serializer_getInstance_23() {
    if ($serializer_instance_23 == null)
      new $serializer_23();
    return $serializer_instance_23;
  }
  function EditAndViewPermission_init_$Init$(seen1, hasViewPermission, hasEditPermission, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_23().xj6_1);
    }
    if (0 === (seen1 & 1))
      $this.bhf_1 = false;
    else
      $this.bhf_1 = hasViewPermission;
    if (0 === (seen1 & 2))
      $this.chf_1 = false;
    else
      $this.chf_1 = hasEditPermission;
    return $this;
  }
  function EditAndViewPermission_init_$Create$(seen1, hasViewPermission, hasEditPermission, serializationConstructorMarker) {
    return EditAndViewPermission_init_$Init$(seen1, hasViewPermission, hasEditPermission, serializationConstructorMarker, objectCreate(protoOf(EditAndViewPermission)));
  }
  function EditAndViewPermission(hasViewPermission, hasEditPermission) {
    hasViewPermission = hasViewPermission === VOID ? false : hasViewPermission;
    hasEditPermission = hasEditPermission === VOID ? false : hasEditPermission;
    this.bhf_1 = hasViewPermission;
    this.chf_1 = hasEditPermission;
  }
  protoOf(EditAndViewPermission).toString = function () {
    return 'EditAndViewPermission(hasViewPermission=' + this.bhf_1 + ', hasEditPermission=' + this.chf_1 + ')';
  };
  protoOf(EditAndViewPermission).hashCode = function () {
    var result = getBooleanHashCode(this.bhf_1);
    result = imul(result, 31) + getBooleanHashCode(this.chf_1) | 0;
    return result;
  };
  protoOf(EditAndViewPermission).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof EditAndViewPermission))
      return false;
    var tmp0_other_with_cast = other instanceof EditAndViewPermission ? other : THROW_CCE();
    if (!(this.bhf_1 === tmp0_other_with_cast.bhf_1))
      return false;
    if (!(this.chf_1 === tmp0_other_with_cast.chf_1))
      return false;
    return true;
  };
  function Companion_25() {
  }
  var Companion_instance_26;
  function Companion_getInstance_28() {
    return Companion_instance_26;
  }
  function $serializer_24() {
    $serializer_instance_24 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.EnrolmentRequestAndCoursePic', this, 2);
    tmp0_serialDesc.g4f('enrolmentRequest', true);
    tmp0_serialDesc.g4f('coursePicture', true);
    this.zj6_1 = tmp0_serialDesc;
  }
  protoOf($serializer_24).d44 = function () {
    return this.zj6_1;
  };
  protoOf($serializer_24).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_78()), get_nullable($serializer_getInstance_73())];
  };
  protoOf($serializer_24).f44 = function (decoder) {
    var tmp0_desc = this.zj6_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_input = decoder.v47(tmp0_desc);
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, $serializer_getInstance_78(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_73(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, $serializer_getInstance_78(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_73(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return EnrolmentRequestAndCoursePic_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_24).aj7 = function (encoder, value) {
    var tmp0_desc = this.zj6_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.vej_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_78(), value.vej_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.wej_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_73(), value.wej_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_24).e44 = function (encoder, value) {
    return this.aj7(encoder, value instanceof EnrolmentRequestAndCoursePic ? value : THROW_CCE());
  };
  var $serializer_instance_24;
  function $serializer_getInstance_24() {
    if ($serializer_instance_24 == null)
      new $serializer_24();
    return $serializer_instance_24;
  }
  function EnrolmentRequestAndCoursePic_init_$Init$(seen1, enrolmentRequest, coursePicture, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_24().zj6_1);
    }
    if (0 === (seen1 & 1))
      $this.vej_1 = null;
    else
      $this.vej_1 = enrolmentRequest;
    if (0 === (seen1 & 2))
      $this.wej_1 = null;
    else
      $this.wej_1 = coursePicture;
    return $this;
  }
  function EnrolmentRequestAndCoursePic_init_$Create$(seen1, enrolmentRequest, coursePicture, serializationConstructorMarker) {
    return EnrolmentRequestAndCoursePic_init_$Init$(seen1, enrolmentRequest, coursePicture, serializationConstructorMarker, objectCreate(protoOf(EnrolmentRequestAndCoursePic)));
  }
  function EnrolmentRequestAndCoursePic(enrolmentRequest, coursePicture) {
    enrolmentRequest = enrolmentRequest === VOID ? null : enrolmentRequest;
    coursePicture = coursePicture === VOID ? null : coursePicture;
    this.vej_1 = enrolmentRequest;
    this.wej_1 = coursePicture;
  }
  protoOf(EnrolmentRequestAndCoursePic).toString = function () {
    return 'EnrolmentRequestAndCoursePic(enrolmentRequest=' + this.vej_1 + ', coursePicture=' + this.wej_1 + ')';
  };
  protoOf(EnrolmentRequestAndCoursePic).hashCode = function () {
    var result = this.vej_1 == null ? 0 : this.vej_1.hashCode();
    result = imul(result, 31) + (this.wej_1 == null ? 0 : this.wej_1.hashCode()) | 0;
    return result;
  };
  protoOf(EnrolmentRequestAndCoursePic).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof EnrolmentRequestAndCoursePic))
      return false;
    var tmp0_other_with_cast = other instanceof EnrolmentRequestAndCoursePic ? other : THROW_CCE();
    if (!equals(this.vej_1, tmp0_other_with_cast.vej_1))
      return false;
    if (!equals(this.wej_1, tmp0_other_with_cast.wej_1))
      return false;
    return true;
  };
  function EnrolmentRequestAndPersonDetails(enrolmentRequest, personPicture, person) {
    enrolmentRequest = enrolmentRequest === VOID ? null : enrolmentRequest;
    personPicture = personPicture === VOID ? null : personPicture;
    person = person === VOID ? null : person;
    this.jek_1 = enrolmentRequest;
    this.kek_1 = personPicture;
    this.lek_1 = person;
  }
  protoOf(EnrolmentRequestAndPersonDetails).toString = function () {
    return 'EnrolmentRequestAndPersonDetails(enrolmentRequest=' + this.jek_1 + ', personPicture=' + this.kek_1 + ', person=' + this.lek_1 + ')';
  };
  protoOf(EnrolmentRequestAndPersonDetails).hashCode = function () {
    var result = this.jek_1 == null ? 0 : this.jek_1.hashCode();
    result = imul(result, 31) + (this.kek_1 == null ? 0 : this.kek_1.hashCode()) | 0;
    result = imul(result, 31) + (this.lek_1 == null ? 0 : this.lek_1.hashCode()) | 0;
    return result;
  };
  protoOf(EnrolmentRequestAndPersonDetails).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof EnrolmentRequestAndPersonDetails))
      return false;
    var tmp0_other_with_cast = other instanceof EnrolmentRequestAndPersonDetails ? other : THROW_CCE();
    if (!equals(this.jek_1, tmp0_other_with_cast.jek_1))
      return false;
    if (!equals(this.kek_1, tmp0_other_with_cast.kek_1))
      return false;
    if (!equals(this.lek_1, tmp0_other_with_cast.lek_1))
      return false;
    return true;
  };
  function Companion_26() {
  }
  var Companion_instance_27;
  function Companion_getInstance_29() {
    return Companion_instance_27;
  }
  function $serializer_25() {
    $serializer_instance_25 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.MessageAndOtherPerson', this, 3);
    tmp0_serialDesc.g4f('message', true);
    tmp0_serialDesc.g4f('otherPerson', true);
    tmp0_serialDesc.g4f('personPicture', true);
    this.bj7_1 = tmp0_serialDesc;
  }
  protoOf($serializer_25).d44 = function () {
    return this.bj7_1;
  };
  protoOf($serializer_25).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_86()), get_nullable($serializer_getInstance_89()), get_nullable($serializer_getInstance_96())];
  };
  protoOf($serializer_25).f44 = function (decoder) {
    var tmp0_desc = this.bj7_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_input = decoder.v47(tmp0_desc);
    if (tmp7_input.k48()) {
      tmp4_local0 = tmp7_input.j48(tmp0_desc, 0, $serializer_getInstance_86(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp7_input.j48(tmp0_desc, 1, $serializer_getInstance_89(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp7_input.j48(tmp0_desc, 2, $serializer_getInstance_96(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp7_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp7_input.j48(tmp0_desc, 0, $serializer_getInstance_86(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp7_input.j48(tmp0_desc, 1, $serializer_getInstance_89(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp7_input.j48(tmp0_desc, 2, $serializer_getInstance_96(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp7_input.w47(tmp0_desc);
    return MessageAndOtherPerson_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
  };
  protoOf($serializer_25).cj7 = function (encoder, value) {
    var tmp0_desc = this.bj7_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.tf7_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_86(), value.tf7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.uf7_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_89(), value.uf7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.vf7_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, $serializer_getInstance_96(), value.vf7_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_25).e44 = function (encoder, value) {
    return this.cj7(encoder, value instanceof MessageAndOtherPerson ? value : THROW_CCE());
  };
  var $serializer_instance_25;
  function $serializer_getInstance_25() {
    if ($serializer_instance_25 == null)
      new $serializer_25();
    return $serializer_instance_25;
  }
  function MessageAndOtherPerson_init_$Init$(seen1, message, otherPerson, personPicture, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_25().bj7_1);
    }
    if (0 === (seen1 & 1))
      $this.tf7_1 = null;
    else
      $this.tf7_1 = message;
    if (0 === (seen1 & 2))
      $this.uf7_1 = null;
    else
      $this.uf7_1 = otherPerson;
    if (0 === (seen1 & 4))
      $this.vf7_1 = null;
    else
      $this.vf7_1 = personPicture;
    return $this;
  }
  function MessageAndOtherPerson_init_$Create$(seen1, message, otherPerson, personPicture, serializationConstructorMarker) {
    return MessageAndOtherPerson_init_$Init$(seen1, message, otherPerson, personPicture, serializationConstructorMarker, objectCreate(protoOf(MessageAndOtherPerson)));
  }
  function MessageAndOtherPerson(message, otherPerson, personPicture) {
    message = message === VOID ? null : message;
    otherPerson = otherPerson === VOID ? null : otherPerson;
    personPicture = personPicture === VOID ? null : personPicture;
    this.tf7_1 = message;
    this.uf7_1 = otherPerson;
    this.vf7_1 = personPicture;
  }
  protoOf(MessageAndOtherPerson).toString = function () {
    return 'MessageAndOtherPerson(message=' + this.tf7_1 + ', otherPerson=' + this.uf7_1 + ', personPicture=' + this.vf7_1 + ')';
  };
  protoOf(MessageAndOtherPerson).hashCode = function () {
    var result = this.tf7_1 == null ? 0 : this.tf7_1.hashCode();
    result = imul(result, 31) + (this.uf7_1 == null ? 0 : this.uf7_1.hashCode()) | 0;
    result = imul(result, 31) + (this.vf7_1 == null ? 0 : this.vf7_1.hashCode()) | 0;
    return result;
  };
  protoOf(MessageAndOtherPerson).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof MessageAndOtherPerson))
      return false;
    var tmp0_other_with_cast = other instanceof MessageAndOtherPerson ? other : THROW_CCE();
    if (!equals(this.tf7_1, tmp0_other_with_cast.tf7_1))
      return false;
    if (!equals(this.uf7_1, tmp0_other_with_cast.uf7_1))
      return false;
    if (!equals(this.vf7_1, tmp0_other_with_cast.vf7_1))
      return false;
    return true;
  };
  function Companion_27() {
  }
  var Companion_instance_28;
  function Companion_getInstance_30() {
    return Companion_instance_28;
  }
  function $serializer_26() {
    $serializer_instance_26 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.OfflineItemAndState', this, 3);
    tmp0_serialDesc.g4f('offlineItem', true);
    tmp0_serialDesc.g4f('activeDownload', true);
    tmp0_serialDesc.g4f('readyForOffline', true);
    this.dj7_1 = tmp0_serialDesc;
  }
  protoOf($serializer_26).d44 = function () {
    return this.dj7_1;
  };
  protoOf($serializer_26).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_87()), get_nullable($serializer_getInstance_35()), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_26).f44 = function (decoder) {
    var tmp0_desc = this.dj7_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_local2 = false;
    var tmp7_input = decoder.v47(tmp0_desc);
    if (tmp7_input.k48()) {
      tmp4_local0 = tmp7_input.j48(tmp0_desc, 0, $serializer_getInstance_87(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp7_input.j48(tmp0_desc, 1, $serializer_getInstance_35(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp7_input.x47(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp7_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp7_input.j48(tmp0_desc, 0, $serializer_getInstance_87(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp7_input.j48(tmp0_desc, 1, $serializer_getInstance_35(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp7_input.x47(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp7_input.w47(tmp0_desc);
    return OfflineItemAndState_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
  };
  protoOf($serializer_26).ej7 = function (encoder, value) {
    var tmp0_desc = this.dj7_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.dfc_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_87(), value.dfc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.efc_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_35(), value.efc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.ffc_1 === false)) {
      tmp1_output.b49(tmp0_desc, 2, value.ffc_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_26).e44 = function (encoder, value) {
    return this.ej7(encoder, value instanceof OfflineItemAndState ? value : THROW_CCE());
  };
  var $serializer_instance_26;
  function $serializer_getInstance_26() {
    if ($serializer_instance_26 == null)
      new $serializer_26();
    return $serializer_instance_26;
  }
  function OfflineItemAndState_init_$Init$(seen1, offlineItem, activeDownload, readyForOffline, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_26().dj7_1);
    }
    if (0 === (seen1 & 1))
      $this.dfc_1 = null;
    else
      $this.dfc_1 = offlineItem;
    if (0 === (seen1 & 2))
      $this.efc_1 = null;
    else
      $this.efc_1 = activeDownload;
    if (0 === (seen1 & 4))
      $this.ffc_1 = false;
    else
      $this.ffc_1 = readyForOffline;
    return $this;
  }
  function OfflineItemAndState_init_$Create$(seen1, offlineItem, activeDownload, readyForOffline, serializationConstructorMarker) {
    return OfflineItemAndState_init_$Init$(seen1, offlineItem, activeDownload, readyForOffline, serializationConstructorMarker, objectCreate(protoOf(OfflineItemAndState)));
  }
  function OfflineItemAndState(offlineItem, activeDownload, readyForOffline) {
    offlineItem = offlineItem === VOID ? null : offlineItem;
    activeDownload = activeDownload === VOID ? null : activeDownload;
    readyForOffline = readyForOffline === VOID ? false : readyForOffline;
    this.dfc_1 = offlineItem;
    this.efc_1 = activeDownload;
    this.ffc_1 = readyForOffline;
  }
  protoOf(OfflineItemAndState).toString = function () {
    return 'OfflineItemAndState(offlineItem=' + this.dfc_1 + ', activeDownload=' + this.efc_1 + ', readyForOffline=' + this.ffc_1 + ')';
  };
  protoOf(OfflineItemAndState).hashCode = function () {
    var result = this.dfc_1 == null ? 0 : this.dfc_1.hashCode();
    result = imul(result, 31) + (this.efc_1 == null ? 0 : this.efc_1.hashCode()) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.ffc_1) | 0;
    return result;
  };
  protoOf(OfflineItemAndState).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof OfflineItemAndState))
      return false;
    var tmp0_other_with_cast = other instanceof OfflineItemAndState ? other : THROW_CCE();
    if (!equals(this.dfc_1, tmp0_other_with_cast.dfc_1))
      return false;
    if (!equals(this.efc_1, tmp0_other_with_cast.efc_1))
      return false;
    if (!(this.ffc_1 === tmp0_other_with_cast.ffc_1))
      return false;
    return true;
  };
  function Companion_28() {
  }
  var Companion_instance_29;
  function Companion_getInstance_31() {
    return Companion_instance_29;
  }
  function $serializer_27() {
    $serializer_instance_27 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PermissionPair', this, 2);
    tmp0_serialDesc.g4f('firstPermission', true);
    tmp0_serialDesc.g4f('secondPermission', true);
    this.fj7_1 = tmp0_serialDesc;
  }
  protoOf($serializer_27).d44 = function () {
    return this.fj7_1;
  };
  protoOf($serializer_27).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [BooleanSerializer_getInstance(), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_27).f44 = function (decoder) {
    var tmp0_desc = this.fj7_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = false;
    var tmp5_local1 = false;
    var tmp6_input = decoder.v47(tmp0_desc);
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.x47(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.x47(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.x47(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.x47(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return PermissionPair_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_27).gj7 = function (encoder, value) {
    var tmp0_desc = this.fj7_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.ed8_1 === false)) {
      tmp1_output.b49(tmp0_desc, 0, value.ed8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.fd8_1 === false)) {
      tmp1_output.b49(tmp0_desc, 1, value.fd8_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_27).e44 = function (encoder, value) {
    return this.gj7(encoder, value instanceof PermissionPair ? value : THROW_CCE());
  };
  var $serializer_instance_27;
  function $serializer_getInstance_27() {
    if ($serializer_instance_27 == null)
      new $serializer_27();
    return $serializer_instance_27;
  }
  function PermissionPair_init_$Init$(seen1, firstPermission, secondPermission, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_27().fj7_1);
    }
    if (0 === (seen1 & 1))
      $this.ed8_1 = false;
    else
      $this.ed8_1 = firstPermission;
    if (0 === (seen1 & 2))
      $this.fd8_1 = false;
    else
      $this.fd8_1 = secondPermission;
    return $this;
  }
  function PermissionPair_init_$Create$(seen1, firstPermission, secondPermission, serializationConstructorMarker) {
    return PermissionPair_init_$Init$(seen1, firstPermission, secondPermission, serializationConstructorMarker, objectCreate(protoOf(PermissionPair)));
  }
  function PermissionPair(firstPermission, secondPermission) {
    firstPermission = firstPermission === VOID ? false : firstPermission;
    secondPermission = secondPermission === VOID ? false : secondPermission;
    this.ed8_1 = firstPermission;
    this.fd8_1 = secondPermission;
  }
  protoOf(PermissionPair).y6 = function () {
    return this.ed8_1;
  };
  protoOf(PermissionPair).z6 = function () {
    return this.fd8_1;
  };
  protoOf(PermissionPair).toString = function () {
    return 'PermissionPair(firstPermission=' + this.ed8_1 + ', secondPermission=' + this.fd8_1 + ')';
  };
  protoOf(PermissionPair).hashCode = function () {
    var result = getBooleanHashCode(this.ed8_1);
    result = imul(result, 31) + getBooleanHashCode(this.fd8_1) | 0;
    return result;
  };
  protoOf(PermissionPair).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof PermissionPair))
      return false;
    var tmp0_other_with_cast = other instanceof PermissionPair ? other : THROW_CCE();
    if (!(this.ed8_1 === tmp0_other_with_cast.ed8_1))
      return false;
    if (!(this.fd8_1 === tmp0_other_with_cast.fd8_1))
      return false;
    return true;
  };
  function Companion_29() {
  }
  var Companion_instance_30;
  function Companion_getInstance_32() {
    return Companion_instance_30;
  }
  function $serializer_28() {
    $serializer_instance_28 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PermissionTriple', this, 3);
    tmp0_serialDesc.g4f('firstPermission', true);
    tmp0_serialDesc.g4f('secondPermission', true);
    tmp0_serialDesc.g4f('thirdPermission', true);
    this.hj7_1 = tmp0_serialDesc;
  }
  protoOf($serializer_28).d44 = function () {
    return this.hj7_1;
  };
  protoOf($serializer_28).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_28).f44 = function (decoder) {
    var tmp0_desc = this.hj7_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = false;
    var tmp5_local1 = false;
    var tmp6_local2 = false;
    var tmp7_input = decoder.v47(tmp0_desc);
    if (tmp7_input.k48()) {
      tmp4_local0 = tmp7_input.x47(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp7_input.x47(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp7_input.x47(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp7_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp7_input.x47(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp7_input.x47(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp7_input.x47(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp7_input.w47(tmp0_desc);
    return PermissionTriple_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
  };
  protoOf($serializer_28).ij7 = function (encoder, value) {
    var tmp0_desc = this.hj7_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.ud8_1 === false)) {
      tmp1_output.b49(tmp0_desc, 0, value.ud8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.vd8_1 === false)) {
      tmp1_output.b49(tmp0_desc, 1, value.vd8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.wd8_1 === false)) {
      tmp1_output.b49(tmp0_desc, 2, value.wd8_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_28).e44 = function (encoder, value) {
    return this.ij7(encoder, value instanceof PermissionTriple ? value : THROW_CCE());
  };
  var $serializer_instance_28;
  function $serializer_getInstance_28() {
    if ($serializer_instance_28 == null)
      new $serializer_28();
    return $serializer_instance_28;
  }
  function PermissionTriple_init_$Init$(seen1, firstPermission, secondPermission, thirdPermission, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_28().hj7_1);
    }
    if (0 === (seen1 & 1))
      $this.ud8_1 = false;
    else
      $this.ud8_1 = firstPermission;
    if (0 === (seen1 & 2))
      $this.vd8_1 = false;
    else
      $this.vd8_1 = secondPermission;
    if (0 === (seen1 & 4))
      $this.wd8_1 = false;
    else
      $this.wd8_1 = thirdPermission;
    return $this;
  }
  function PermissionTriple_init_$Create$(seen1, firstPermission, secondPermission, thirdPermission, serializationConstructorMarker) {
    return PermissionTriple_init_$Init$(seen1, firstPermission, secondPermission, thirdPermission, serializationConstructorMarker, objectCreate(protoOf(PermissionTriple)));
  }
  function PermissionTriple(firstPermission, secondPermission, thirdPermission) {
    firstPermission = firstPermission === VOID ? false : firstPermission;
    secondPermission = secondPermission === VOID ? false : secondPermission;
    thirdPermission = thirdPermission === VOID ? false : thirdPermission;
    this.ud8_1 = firstPermission;
    this.vd8_1 = secondPermission;
    this.wd8_1 = thirdPermission;
  }
  protoOf(PermissionTriple).y6 = function () {
    return this.ud8_1;
  };
  protoOf(PermissionTriple).z6 = function () {
    return this.vd8_1;
  };
  protoOf(PermissionTriple).toString = function () {
    return 'PermissionTriple(firstPermission=' + this.ud8_1 + ', secondPermission=' + this.vd8_1 + ', thirdPermission=' + this.wd8_1 + ')';
  };
  protoOf(PermissionTriple).hashCode = function () {
    var result = getBooleanHashCode(this.ud8_1);
    result = imul(result, 31) + getBooleanHashCode(this.vd8_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.wd8_1) | 0;
    return result;
  };
  protoOf(PermissionTriple).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof PermissionTriple))
      return false;
    var tmp0_other_with_cast = other instanceof PermissionTriple ? other : THROW_CCE();
    if (!(this.ud8_1 === tmp0_other_with_cast.ud8_1))
      return false;
    if (!(this.vd8_1 === tmp0_other_with_cast.vd8_1))
      return false;
    if (!(this.wd8_1 === tmp0_other_with_cast.wd8_1))
      return false;
    return true;
  };
  function Companion_30() {
  }
  protoOf(Companion_30).a4r = function () {
    return $serializer_getInstance_29();
  };
  var Companion_instance_31;
  function Companion_getInstance_33() {
    return Companion_instance_31;
  }
  function $serializer_29() {
    $serializer_instance_29 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PersonAndClazzLogAttendanceRecord', this, 3);
    tmp0_serialDesc.g4f('person', true);
    tmp0_serialDesc.g4f('personPicture', true);
    tmp0_serialDesc.g4f('attendanceRecord', true);
    this.jj7_1 = tmp0_serialDesc;
  }
  protoOf($serializer_29).d44 = function () {
    return this.jj7_1;
  };
  protoOf($serializer_29).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_89()), get_nullable($serializer_getInstance_96()), get_nullable($serializer_getInstance_46())];
  };
  protoOf($serializer_29).f44 = function (decoder) {
    var tmp0_desc = this.jj7_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_input = decoder.v47(tmp0_desc);
    if (tmp7_input.k48()) {
      tmp4_local0 = tmp7_input.j48(tmp0_desc, 0, $serializer_getInstance_89(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp7_input.j48(tmp0_desc, 1, $serializer_getInstance_96(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp7_input.j48(tmp0_desc, 2, $serializer_getInstance_46(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp7_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp7_input.j48(tmp0_desc, 0, $serializer_getInstance_89(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp7_input.j48(tmp0_desc, 1, $serializer_getInstance_96(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp7_input.j48(tmp0_desc, 2, $serializer_getInstance_46(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp7_input.w47(tmp0_desc);
    return PersonAndClazzLogAttendanceRecord_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
  };
  protoOf($serializer_29).kj7 = function (encoder, value) {
    var tmp0_desc = this.jj7_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.o9l_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_89(), value.o9l_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.p9l_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_96(), value.p9l_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.q9l_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, $serializer_getInstance_46(), value.q9l_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_29).e44 = function (encoder, value) {
    return this.kj7(encoder, value instanceof PersonAndClazzLogAttendanceRecord ? value : THROW_CCE());
  };
  var $serializer_instance_29;
  function $serializer_getInstance_29() {
    if ($serializer_instance_29 == null)
      new $serializer_29();
    return $serializer_instance_29;
  }
  function PersonAndClazzLogAttendanceRecord_init_$Init$(seen1, person, personPicture, attendanceRecord, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_29().jj7_1);
    }
    if (0 === (seen1 & 1))
      $this.o9l_1 = null;
    else
      $this.o9l_1 = person;
    if (0 === (seen1 & 2))
      $this.p9l_1 = null;
    else
      $this.p9l_1 = personPicture;
    if (0 === (seen1 & 4))
      $this.q9l_1 = null;
    else
      $this.q9l_1 = attendanceRecord;
    return $this;
  }
  function PersonAndClazzLogAttendanceRecord_init_$Create$(seen1, person, personPicture, attendanceRecord, serializationConstructorMarker) {
    return PersonAndClazzLogAttendanceRecord_init_$Init$(seen1, person, personPicture, attendanceRecord, serializationConstructorMarker, objectCreate(protoOf(PersonAndClazzLogAttendanceRecord)));
  }
  function PersonAndClazzLogAttendanceRecord(person, personPicture, attendanceRecord) {
    person = person === VOID ? null : person;
    personPicture = personPicture === VOID ? null : personPicture;
    attendanceRecord = attendanceRecord === VOID ? null : attendanceRecord;
    this.o9l_1 = person;
    this.p9l_1 = personPicture;
    this.q9l_1 = attendanceRecord;
  }
  protoOf(PersonAndClazzLogAttendanceRecord).lj7 = function (person, personPicture, attendanceRecord) {
    return new PersonAndClazzLogAttendanceRecord(person, personPicture, attendanceRecord);
  };
  protoOf(PersonAndClazzLogAttendanceRecord).mj7 = function (person, personPicture, attendanceRecord, $super) {
    person = person === VOID ? this.o9l_1 : person;
    personPicture = personPicture === VOID ? this.p9l_1 : personPicture;
    attendanceRecord = attendanceRecord === VOID ? this.q9l_1 : attendanceRecord;
    return $super === VOID ? this.lj7(person, personPicture, attendanceRecord) : $super.lj7.call(this, person, personPicture, attendanceRecord);
  };
  protoOf(PersonAndClazzLogAttendanceRecord).toString = function () {
    return 'PersonAndClazzLogAttendanceRecord(person=' + this.o9l_1 + ', personPicture=' + this.p9l_1 + ', attendanceRecord=' + this.q9l_1 + ')';
  };
  protoOf(PersonAndClazzLogAttendanceRecord).hashCode = function () {
    var result = this.o9l_1 == null ? 0 : this.o9l_1.hashCode();
    result = imul(result, 31) + (this.p9l_1 == null ? 0 : this.p9l_1.hashCode()) | 0;
    result = imul(result, 31) + (this.q9l_1 == null ? 0 : this.q9l_1.hashCode()) | 0;
    return result;
  };
  protoOf(PersonAndClazzLogAttendanceRecord).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof PersonAndClazzLogAttendanceRecord))
      return false;
    var tmp0_other_with_cast = other instanceof PersonAndClazzLogAttendanceRecord ? other : THROW_CCE();
    if (!equals(this.o9l_1, tmp0_other_with_cast.o9l_1))
      return false;
    if (!equals(this.p9l_1, tmp0_other_with_cast.p9l_1))
      return false;
    if (!equals(this.q9l_1, tmp0_other_with_cast.q9l_1))
      return false;
    return true;
  };
  function Companion_31() {
  }
  var Companion_instance_32;
  function Companion_getInstance_34() {
    return Companion_instance_32;
  }
  function $serializer_30() {
    $serializer_instance_30 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PersonAndClazzMemberListDetails', this, 5);
    tmp0_serialDesc.g4f('person', true);
    tmp0_serialDesc.g4f('personPicture', true);
    tmp0_serialDesc.g4f('earliestJoinDate', true);
    tmp0_serialDesc.g4f('latestDateLeft', true);
    tmp0_serialDesc.g4f('enrolmentRole', true);
    this.nj7_1 = tmp0_serialDesc;
  }
  protoOf($serializer_30).d44 = function () {
    return this.nj7_1;
  };
  protoOf($serializer_30).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_89()), get_nullable($serializer_getInstance_96()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance()];
  };
  protoOf($serializer_30).f44 = function (decoder) {
    var tmp0_desc = this.nj7_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = 0;
    var tmp9_input = decoder.v47(tmp0_desc);
    if (tmp9_input.k48()) {
      tmp4_local0 = tmp9_input.j48(tmp0_desc, 0, $serializer_getInstance_89(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp9_input.j48(tmp0_desc, 1, $serializer_getInstance_96(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp9_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp9_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp9_input.a48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp9_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp9_input.j48(tmp0_desc, 0, $serializer_getInstance_89(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp9_input.j48(tmp0_desc, 1, $serializer_getInstance_96(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp9_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp9_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp9_input.a48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp9_input.w47(tmp0_desc);
    return PersonAndClazzMemberListDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
  };
  protoOf($serializer_30).oj7 = function (encoder, value) {
    var tmp0_desc = this.nj7_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.a95_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_89(), value.a95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.b95_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_96(), value.b95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.c95_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.c95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.d95_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.d95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.e95_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 4, value.e95_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_30).e44 = function (encoder, value) {
    return this.oj7(encoder, value instanceof PersonAndClazzMemberListDetails ? value : THROW_CCE());
  };
  var $serializer_instance_30;
  function $serializer_getInstance_30() {
    if ($serializer_instance_30 == null)
      new $serializer_30();
    return $serializer_instance_30;
  }
  function PersonAndClazzMemberListDetails_init_$Init$(seen1, person, personPicture, earliestJoinDate, latestDateLeft, enrolmentRole, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_30().nj7_1);
    }
    if (0 === (seen1 & 1))
      $this.a95_1 = null;
    else
      $this.a95_1 = person;
    if (0 === (seen1 & 2))
      $this.b95_1 = null;
    else
      $this.b95_1 = personPicture;
    if (0 === (seen1 & 4))
      $this.c95_1 = new Long(0, 0);
    else
      $this.c95_1 = earliestJoinDate;
    if (0 === (seen1 & 8))
      $this.d95_1 = new Long(0, 0);
    else
      $this.d95_1 = latestDateLeft;
    if (0 === (seen1 & 16))
      $this.e95_1 = 0;
    else
      $this.e95_1 = enrolmentRole;
    return $this;
  }
  function PersonAndClazzMemberListDetails_init_$Create$(seen1, person, personPicture, earliestJoinDate, latestDateLeft, enrolmentRole, serializationConstructorMarker) {
    return PersonAndClazzMemberListDetails_init_$Init$(seen1, person, personPicture, earliestJoinDate, latestDateLeft, enrolmentRole, serializationConstructorMarker, objectCreate(protoOf(PersonAndClazzMemberListDetails)));
  }
  function PersonAndClazzMemberListDetails(person, personPicture, earliestJoinDate, latestDateLeft, enrolmentRole) {
    person = person === VOID ? null : person;
    personPicture = personPicture === VOID ? null : personPicture;
    earliestJoinDate = earliestJoinDate === VOID ? new Long(0, 0) : earliestJoinDate;
    latestDateLeft = latestDateLeft === VOID ? new Long(0, 0) : latestDateLeft;
    enrolmentRole = enrolmentRole === VOID ? 0 : enrolmentRole;
    this.a95_1 = person;
    this.b95_1 = personPicture;
    this.c95_1 = earliestJoinDate;
    this.d95_1 = latestDateLeft;
    this.e95_1 = enrolmentRole;
  }
  protoOf(PersonAndClazzMemberListDetails).toString = function () {
    return 'PersonAndClazzMemberListDetails(person=' + this.a95_1 + ', personPicture=' + this.b95_1 + ', earliestJoinDate=' + this.c95_1.toString() + ', latestDateLeft=' + this.d95_1.toString() + ', enrolmentRole=' + this.e95_1 + ')';
  };
  protoOf(PersonAndClazzMemberListDetails).hashCode = function () {
    var result = this.a95_1 == null ? 0 : this.a95_1.hashCode();
    result = imul(result, 31) + (this.b95_1 == null ? 0 : this.b95_1.hashCode()) | 0;
    result = imul(result, 31) + this.c95_1.hashCode() | 0;
    result = imul(result, 31) + this.d95_1.hashCode() | 0;
    result = imul(result, 31) + this.e95_1 | 0;
    return result;
  };
  protoOf(PersonAndClazzMemberListDetails).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof PersonAndClazzMemberListDetails))
      return false;
    var tmp0_other_with_cast = other instanceof PersonAndClazzMemberListDetails ? other : THROW_CCE();
    if (!equals(this.a95_1, tmp0_other_with_cast.a95_1))
      return false;
    if (!equals(this.b95_1, tmp0_other_with_cast.b95_1))
      return false;
    if (!this.c95_1.equals(tmp0_other_with_cast.c95_1))
      return false;
    if (!this.d95_1.equals(tmp0_other_with_cast.d95_1))
      return false;
    if (!(this.e95_1 === tmp0_other_with_cast.e95_1))
      return false;
    return true;
  };
  function PersonAndListDisplayDetails(person, picture) {
    person = person === VOID ? null : person;
    picture = picture === VOID ? null : picture;
    this.bfp_1 = person;
    this.cfp_1 = picture;
  }
  protoOf(PersonAndListDisplayDetails).toString = function () {
    return 'PersonAndListDisplayDetails(person=' + this.bfp_1 + ', picture=' + this.cfp_1 + ')';
  };
  protoOf(PersonAndListDisplayDetails).hashCode = function () {
    var result = this.bfp_1 == null ? 0 : this.bfp_1.hashCode();
    result = imul(result, 31) + (this.cfp_1 == null ? 0 : this.cfp_1.hashCode()) | 0;
    return result;
  };
  protoOf(PersonAndListDisplayDetails).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof PersonAndListDisplayDetails))
      return false;
    var tmp0_other_with_cast = other instanceof PersonAndListDisplayDetails ? other : THROW_CCE();
    if (!equals(this.bfp_1, tmp0_other_with_cast.bfp_1))
      return false;
    if (!equals(this.cfp_1, tmp0_other_with_cast.cfp_1))
      return false;
    return true;
  };
  function Companion_32() {
  }
  var Companion_instance_33;
  function Companion_getInstance_35() {
    return Companion_instance_33;
  }
  function $serializer_31() {
    $serializer_instance_31 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PersonAndPicture', this, 2);
    tmp0_serialDesc.g4f('person', true);
    tmp0_serialDesc.g4f('picture', true);
    this.pj7_1 = tmp0_serialDesc;
  }
  protoOf($serializer_31).d44 = function () {
    return this.pj7_1;
  };
  protoOf($serializer_31).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_89()), get_nullable($serializer_getInstance_96())];
  };
  protoOf($serializer_31).f44 = function (decoder) {
    var tmp0_desc = this.pj7_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_input = decoder.v47(tmp0_desc);
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, $serializer_getInstance_89(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_96(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, $serializer_getInstance_89(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_96(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return PersonAndPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_31).qj7 = function (encoder, value) {
    var tmp0_desc = this.pj7_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.ofo_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_89(), value.ofo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.pfo_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_96(), value.pfo_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_31).e44 = function (encoder, value) {
    return this.qj7(encoder, value instanceof PersonAndPicture ? value : THROW_CCE());
  };
  var $serializer_instance_31;
  function $serializer_getInstance_31() {
    if ($serializer_instance_31 == null)
      new $serializer_31();
    return $serializer_instance_31;
  }
  function PersonAndPicture_init_$Init$(seen1, person, picture, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_31().pj7_1);
    }
    if (0 === (seen1 & 1))
      $this.ofo_1 = null;
    else
      $this.ofo_1 = person;
    if (0 === (seen1 & 2))
      $this.pfo_1 = null;
    else
      $this.pfo_1 = picture;
    return $this;
  }
  function PersonAndPicture_init_$Create$(seen1, person, picture, serializationConstructorMarker) {
    return PersonAndPicture_init_$Init$(seen1, person, picture, serializationConstructorMarker, objectCreate(protoOf(PersonAndPicture)));
  }
  function PersonAndPicture(person, picture) {
    person = person === VOID ? null : person;
    picture = picture === VOID ? null : picture;
    this.ofo_1 = person;
    this.pfo_1 = picture;
  }
  protoOf(PersonAndPicture).toString = function () {
    return 'PersonAndPicture(person=' + this.ofo_1 + ', picture=' + this.pfo_1 + ')';
  };
  protoOf(PersonAndPicture).hashCode = function () {
    var result = this.ofo_1 == null ? 0 : this.ofo_1.hashCode();
    result = imul(result, 31) + (this.pfo_1 == null ? 0 : this.pfo_1.hashCode()) | 0;
    return result;
  };
  protoOf(PersonAndPicture).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof PersonAndPicture))
      return false;
    var tmp0_other_with_cast = other instanceof PersonAndPicture ? other : THROW_CCE();
    if (!equals(this.ofo_1, tmp0_other_with_cast.ofo_1))
      return false;
    if (!equals(this.pfo_1, tmp0_other_with_cast.pfo_1))
      return false;
    return true;
  };
  function Companion_33() {
  }
  var Companion_instance_34;
  function Companion_getInstance_36() {
    return Companion_instance_34;
  }
  function $serializer_32() {
    $serializer_instance_32 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PersonNames', this, 2);
    tmp0_serialDesc.g4f('firstNames', true);
    tmp0_serialDesc.g4f('lastName', true);
    this.rj7_1 = tmp0_serialDesc;
  }
  protoOf($serializer_32).d44 = function () {
    return this.rj7_1;
  };
  protoOf($serializer_32).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_32).f44 = function (decoder) {
    var tmp0_desc = this.rj7_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_input = decoder.v47(tmp0_desc);
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return PersonNames_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_32).sj7 = function (encoder, value) {
    var tmp0_desc = this.rj7_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.ofr_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, StringSerializer_getInstance(), value.ofr_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.pfr_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.pfr_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_32).e44 = function (encoder, value) {
    return this.sj7(encoder, value instanceof PersonNames ? value : THROW_CCE());
  };
  var $serializer_instance_32;
  function $serializer_getInstance_32() {
    if ($serializer_instance_32 == null)
      new $serializer_32();
    return $serializer_instance_32;
  }
  function PersonNames_init_$Init$(seen1, firstNames, lastName, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_32().rj7_1);
    }
    if (0 === (seen1 & 1))
      $this.ofr_1 = null;
    else
      $this.ofr_1 = firstNames;
    if (0 === (seen1 & 2))
      $this.pfr_1 = null;
    else
      $this.pfr_1 = lastName;
    return $this;
  }
  function PersonNames_init_$Create$(seen1, firstNames, lastName, serializationConstructorMarker) {
    return PersonNames_init_$Init$(seen1, firstNames, lastName, serializationConstructorMarker, objectCreate(protoOf(PersonNames)));
  }
  function PersonNames(firstNames, lastName) {
    firstNames = firstNames === VOID ? null : firstNames;
    lastName = lastName === VOID ? null : lastName;
    this.ofr_1 = firstNames;
    this.pfr_1 = lastName;
  }
  protoOf(PersonNames).toString = function () {
    var tmp0_elvis_lhs = this.ofr_1;
    var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
    var tmp1_elvis_lhs = this.pfr_1;
    return tmp + ' ' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs);
  };
  protoOf(PersonNames).hashCode = function () {
    var result = this.ofr_1 == null ? 0 : getStringHashCode(this.ofr_1);
    result = imul(result, 31) + (this.pfr_1 == null ? 0 : getStringHashCode(this.pfr_1)) | 0;
    return result;
  };
  protoOf(PersonNames).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof PersonNames))
      return false;
    var tmp0_other_with_cast = other instanceof PersonNames ? other : THROW_CCE();
    if (!(this.ofr_1 == tmp0_other_with_cast.ofr_1))
      return false;
    if (!(this.pfr_1 == tmp0_other_with_cast.pfr_1))
      return false;
    return true;
  };
  function SiteTermsAndLangName(terms, langDisplayName) {
    this.tj7_1 = terms;
    this.uj7_1 = langDisplayName;
  }
  protoOf(SiteTermsAndLangName).toString = function () {
    return 'SiteTermsAndLangName(terms=' + this.tj7_1 + ', langDisplayName=' + this.uj7_1 + ')';
  };
  protoOf(SiteTermsAndLangName).hashCode = function () {
    var result = hashCode(this.tj7_1);
    result = imul(result, 31) + getStringHashCode(this.uj7_1) | 0;
    return result;
  };
  protoOf(SiteTermsAndLangName).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof SiteTermsAndLangName))
      return false;
    var tmp0_other_with_cast = other instanceof SiteTermsAndLangName ? other : THROW_CCE();
    if (!equals(this.tj7_1, tmp0_other_with_cast.tj7_1))
      return false;
    if (!(this.uj7_1 === tmp0_other_with_cast.uj7_1))
      return false;
    return true;
  };
  function Companion_34() {
    Companion_instance_35 = this;
    var tmp = this;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    tmp.vj7_1 = [null, new ArrayListSerializer($serializer_getInstance_1())];
  }
  var Companion_instance_35;
  function Companion_getInstance_37() {
    if (Companion_instance_35 == null)
      new Companion_34();
    return Companion_instance_35;
  }
  function $serializer_33() {
    $serializer_instance_33 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.StudentAndBlockStatuses', this, 2);
    tmp0_serialDesc.g4f('student', false);
    tmp0_serialDesc.g4f('blockStatuses', false);
    this.wj7_1 = tmp0_serialDesc;
  }
  protoOf($serializer_33).d44 = function () {
    return this.wj7_1;
  };
  protoOf($serializer_33).x4f = function () {
    var tmp0_cached = Companion_getInstance_37().vj7_1;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [$serializer_getInstance_30(), tmp0_cached[1]];
  };
  protoOf($serializer_33).f44 = function (decoder) {
    var tmp0_desc = this.wj7_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_input = decoder.v47(tmp0_desc);
    var tmp7_cached = Companion_getInstance_37().vj7_1;
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.h48(tmp0_desc, 0, $serializer_getInstance_30(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.h48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.h48(tmp0_desc, 0, $serializer_getInstance_30(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.h48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return StudentAndBlockStatuses_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_33).xj7 = function (encoder, value) {
    var tmp0_desc = this.wj7_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    var tmp2_cached = Companion_getInstance_37().vj7_1;
    tmp1_output.l49(tmp0_desc, 0, $serializer_getInstance_30(), value.yj7_1);
    tmp1_output.l49(tmp0_desc, 1, tmp2_cached[1], value.zj7_1);
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_33).e44 = function (encoder, value) {
    return this.xj7(encoder, value instanceof StudentAndBlockStatuses ? value : THROW_CCE());
  };
  var $serializer_instance_33;
  function $serializer_getInstance_33() {
    if ($serializer_instance_33 == null)
      new $serializer_33();
    return $serializer_instance_33;
  }
  function StudentAndBlockStatuses_init_$Init$(seen1, student, blockStatuses, serializationConstructorMarker, $this) {
    if (!(3 === (3 & seen1))) {
      throwMissingFieldException(seen1, 3, $serializer_getInstance_33().wj7_1);
    }
    $this.yj7_1 = student;
    $this.zj7_1 = blockStatuses;
    return $this;
  }
  function StudentAndBlockStatuses_init_$Create$(seen1, student, blockStatuses, serializationConstructorMarker) {
    return StudentAndBlockStatuses_init_$Init$(seen1, student, blockStatuses, serializationConstructorMarker, objectCreate(protoOf(StudentAndBlockStatuses)));
  }
  function StudentAndBlockStatuses(student, blockStatuses) {
    Companion_getInstance_37();
    this.yj7_1 = student;
    this.zj7_1 = blockStatuses;
  }
  protoOf(StudentAndBlockStatuses).toString = function () {
    return 'StudentAndBlockStatuses(student=' + this.yj7_1 + ', blockStatuses=' + this.zj7_1 + ')';
  };
  protoOf(StudentAndBlockStatuses).hashCode = function () {
    var result = this.yj7_1.hashCode();
    result = imul(result, 31) + hashCode(this.zj7_1) | 0;
    return result;
  };
  protoOf(StudentAndBlockStatuses).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof StudentAndBlockStatuses))
      return false;
    var tmp0_other_with_cast = other instanceof StudentAndBlockStatuses ? other : THROW_CCE();
    if (!this.yj7_1.equals(tmp0_other_with_cast.yj7_1))
      return false;
    if (!equals(this.zj7_1, tmp0_other_with_cast.zj7_1))
      return false;
    return true;
  };
  function Companion_35() {
    Companion_instance_36 = this;
    var tmp = this;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    tmp.aj8_1 = [null, new ArrayListSerializer($serializer_getInstance_12())];
  }
  var Companion_instance_36;
  function Companion_getInstance_38() {
    if (Companion_instance_36 == null)
      new Companion_35();
    return Companion_instance_36;
  }
  function $serializer_34() {
    $serializer_instance_34 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.SubmissionAndFiles', this, 2);
    tmp0_serialDesc.g4f('submission', false);
    tmp0_serialDesc.g4f('files', false);
    this.bj8_1 = tmp0_serialDesc;
  }
  protoOf($serializer_34).d44 = function () {
    return this.bj8_1;
  };
  protoOf($serializer_34).x4f = function () {
    var tmp0_cached = Companion_getInstance_38().aj8_1;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [$serializer_getInstance_65(), tmp0_cached[1]];
  };
  protoOf($serializer_34).f44 = function (decoder) {
    var tmp0_desc = this.bj8_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_input = decoder.v47(tmp0_desc);
    var tmp7_cached = Companion_getInstance_38().aj8_1;
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.h48(tmp0_desc, 0, $serializer_getInstance_65(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.h48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.h48(tmp0_desc, 0, $serializer_getInstance_65(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.h48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return SubmissionAndFiles_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_34).cj8 = function (encoder, value) {
    var tmp0_desc = this.bj8_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    var tmp2_cached = Companion_getInstance_38().aj8_1;
    tmp1_output.l49(tmp0_desc, 0, $serializer_getInstance_65(), value.dj8_1);
    tmp1_output.l49(tmp0_desc, 1, tmp2_cached[1], value.ej8_1);
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_34).e44 = function (encoder, value) {
    return this.cj8(encoder, value instanceof SubmissionAndFiles ? value : THROW_CCE());
  };
  var $serializer_instance_34;
  function $serializer_getInstance_34() {
    if ($serializer_instance_34 == null)
      new $serializer_34();
    return $serializer_instance_34;
  }
  function SubmissionAndFiles_init_$Init$(seen1, submission, files, serializationConstructorMarker, $this) {
    if (!(3 === (3 & seen1))) {
      throwMissingFieldException(seen1, 3, $serializer_getInstance_34().bj8_1);
    }
    $this.dj8_1 = submission;
    $this.ej8_1 = files;
    return $this;
  }
  function SubmissionAndFiles_init_$Create$(seen1, submission, files, serializationConstructorMarker) {
    return SubmissionAndFiles_init_$Init$(seen1, submission, files, serializationConstructorMarker, objectCreate(protoOf(SubmissionAndFiles)));
  }
  function SubmissionAndFiles(submission, files) {
    Companion_getInstance_38();
    this.dj8_1 = submission;
    this.ej8_1 = files;
  }
  function Companion_36() {
  }
  var Companion_instance_37;
  function Companion_getInstance_39() {
    return Companion_instance_37;
  }
  function $serializer_35() {
    $serializer_instance_35 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.TransferJobAndTotals', this, 4);
    tmp0_serialDesc.g4f('transferJob', true);
    tmp0_serialDesc.g4f('totalSize', true);
    tmp0_serialDesc.g4f('transferred', true);
    tmp0_serialDesc.g4f('latestErrorStr', true);
    this.fj8_1 = tmp0_serialDesc;
  }
  protoOf($serializer_35).d44 = function () {
    return this.fj8_1;
  };
  protoOf($serializer_35).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_106()), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_35).f44 = function (decoder) {
    var tmp0_desc = this.fj8_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = null;
    var tmp8_input = decoder.v47(tmp0_desc);
    if (tmp8_input.k48()) {
      tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, $serializer_getInstance_106(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, $serializer_getInstance_106(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.w47(tmp0_desc);
    return TransferJobAndTotals_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_35).gj8 = function (encoder, value) {
    var tmp0_desc = this.fj8_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.nfc_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_106(), value.nfc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.ofc_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.ofc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.pfc_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.pfc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.qfc_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.qfc_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_35).e44 = function (encoder, value) {
    return this.gj8(encoder, value instanceof TransferJobAndTotals ? value : THROW_CCE());
  };
  var $serializer_instance_35;
  function $serializer_getInstance_35() {
    if ($serializer_instance_35 == null)
      new $serializer_35();
    return $serializer_instance_35;
  }
  function TransferJobAndTotals_init_$Init$(seen1, transferJob, totalSize, transferred, latestErrorStr, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_35().fj8_1);
    }
    if (0 === (seen1 & 1))
      $this.nfc_1 = null;
    else
      $this.nfc_1 = transferJob;
    if (0 === (seen1 & 2))
      $this.ofc_1 = new Long(0, 0);
    else
      $this.ofc_1 = totalSize;
    if (0 === (seen1 & 4))
      $this.pfc_1 = new Long(0, 0);
    else
      $this.pfc_1 = transferred;
    if (0 === (seen1 & 8))
      $this.qfc_1 = null;
    else
      $this.qfc_1 = latestErrorStr;
    return $this;
  }
  function TransferJobAndTotals_init_$Create$(seen1, transferJob, totalSize, transferred, latestErrorStr, serializationConstructorMarker) {
    return TransferJobAndTotals_init_$Init$(seen1, transferJob, totalSize, transferred, latestErrorStr, serializationConstructorMarker, objectCreate(protoOf(TransferJobAndTotals)));
  }
  function TransferJobAndTotals(transferJob, totalSize, transferred, latestErrorStr) {
    transferJob = transferJob === VOID ? null : transferJob;
    totalSize = totalSize === VOID ? new Long(0, 0) : totalSize;
    transferred = transferred === VOID ? new Long(0, 0) : transferred;
    latestErrorStr = latestErrorStr === VOID ? null : latestErrorStr;
    this.nfc_1 = transferJob;
    this.ofc_1 = totalSize;
    this.pfc_1 = transferred;
    this.qfc_1 = latestErrorStr;
  }
  protoOf(TransferJobAndTotals).toString = function () {
    return 'TransferJobAndTotals(transferJob=' + this.nfc_1 + ', totalSize=' + this.ofc_1.toString() + ', transferred=' + this.pfc_1.toString() + ', latestErrorStr=' + this.qfc_1 + ')';
  };
  protoOf(TransferJobAndTotals).hashCode = function () {
    var result = this.nfc_1 == null ? 0 : this.nfc_1.hashCode();
    result = imul(result, 31) + this.ofc_1.hashCode() | 0;
    result = imul(result, 31) + this.pfc_1.hashCode() | 0;
    result = imul(result, 31) + (this.qfc_1 == null ? 0 : getStringHashCode(this.qfc_1)) | 0;
    return result;
  };
  protoOf(TransferJobAndTotals).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof TransferJobAndTotals))
      return false;
    var tmp0_other_with_cast = other instanceof TransferJobAndTotals ? other : THROW_CCE();
    if (!equals(this.nfc_1, tmp0_other_with_cast.nfc_1))
      return false;
    if (!this.ofc_1.equals(tmp0_other_with_cast.ofc_1))
      return false;
    if (!this.pfc_1.equals(tmp0_other_with_cast.pfc_1))
      return false;
    if (!(this.qfc_1 == tmp0_other_with_cast.qfc_1))
      return false;
    return true;
  };
  var TransferJobItemStatus_QUEUED_instance;
  var TransferJobItemStatus_IN_PROGRESS_instance;
  var TransferJobItemStatus_COMPLETE_instance;
  var TransferJobItemStatus_FAILED_instance;
  var TransferJobItemStatus_CANCELLED_instance;
  function Companion_37() {
    this.hj8_1 = 1;
    this.ij8_1 = 11;
    this.jj8_1 = 21;
    this.kj8_1 = 22;
    this.lj8_1 = 23;
  }
  protoOf(Companion_37).mj8 = function (value) {
    var tmp$ret$1;
    $l$block: {
      // Inline function 'kotlin.collections.firstOrNull' call
      var tmp0_iterator = get_entries().w();
      while (tmp0_iterator.f()) {
        var element = tmp0_iterator.e();
        // Inline function 'com.ustadmobile.lib.db.composites.Companion.valueOf.<anonymous>' call
        if (element.pj8_1 === value) {
          tmp$ret$1 = element;
          break $l$block;
        }
      }
      tmp$ret$1 = null;
    }
    var tmp0_elvis_lhs = tmp$ret$1;
    return tmp0_elvis_lhs == null ? TransferJobItemStatus_QUEUED_getInstance() : tmp0_elvis_lhs;
  };
  var Companion_instance_38;
  function Companion_getInstance_40() {
    return Companion_instance_38;
  }
  function values() {
    return [TransferJobItemStatus_QUEUED_getInstance(), TransferJobItemStatus_IN_PROGRESS_getInstance(), TransferJobItemStatus_COMPLETE_getInstance(), TransferJobItemStatus_FAILED_getInstance(), TransferJobItemStatus_CANCELLED_getInstance()];
  }
  function get_entries() {
    if ($ENTRIES == null)
      $ENTRIES = enumEntries(values());
    return $ENTRIES;
  }
  var TransferJobItemStatus_entriesInitialized;
  function TransferJobItemStatus_initEntries() {
    if (TransferJobItemStatus_entriesInitialized)
      return Unit_instance;
    TransferJobItemStatus_entriesInitialized = true;
    TransferJobItemStatus_QUEUED_instance = new TransferJobItemStatus('QUEUED', 0, 1);
    TransferJobItemStatus_IN_PROGRESS_instance = new TransferJobItemStatus('IN_PROGRESS', 1, 11);
    TransferJobItemStatus_COMPLETE_instance = new TransferJobItemStatus('COMPLETE', 2, 21);
    TransferJobItemStatus_FAILED_instance = new TransferJobItemStatus('FAILED', 3, 22);
    TransferJobItemStatus_CANCELLED_instance = new TransferJobItemStatus('CANCELLED', 4, 23);
  }
  var $ENTRIES;
  function TransferJobItemStatus(name, ordinal, value) {
    Enum.call(this, name, ordinal);
    this.pj8_1 = value;
  }
  function TransferJobItemStatus_QUEUED_getInstance() {
    TransferJobItemStatus_initEntries();
    return TransferJobItemStatus_QUEUED_instance;
  }
  function TransferJobItemStatus_IN_PROGRESS_getInstance() {
    TransferJobItemStatus_initEntries();
    return TransferJobItemStatus_IN_PROGRESS_instance;
  }
  function TransferJobItemStatus_COMPLETE_getInstance() {
    TransferJobItemStatus_initEntries();
    return TransferJobItemStatus_COMPLETE_instance;
  }
  function TransferJobItemStatus_FAILED_getInstance() {
    TransferJobItemStatus_initEntries();
    return TransferJobItemStatus_FAILED_instance;
  }
  function TransferJobItemStatus_CANCELLED_getInstance() {
    TransferJobItemStatus_initEntries();
    return TransferJobItemStatus_CANCELLED_instance;
  }
  function Companion_38() {
  }
  var Companion_instance_39;
  function Companion_getInstance_41() {
    return Companion_instance_39;
  }
  function $serializer_36() {
    $serializer_instance_36 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.AssignmentProgressSummary', this, 5);
    tmp0_serialDesc.g4f('submittedStudents', true);
    tmp0_serialDesc.g4f('totalStudents', true);
    tmp0_serialDesc.g4f('markedStudents', true);
    tmp0_serialDesc.g4f('activeUserHasViewLearnerRecordsPermission', true);
    tmp0_serialDesc.g4f('isGroupAssignment', true);
    this.qj8_1 = tmp0_serialDesc;
  }
  protoOf($serializer_36).d44 = function () {
    return this.qj8_1;
  };
  protoOf($serializer_36).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_36).f44 = function (decoder) {
    var tmp0_desc = this.qj8_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = 0;
    var tmp5_local1 = 0;
    var tmp6_local2 = 0;
    var tmp7_local3 = false;
    var tmp8_local4 = false;
    var tmp9_input = decoder.v47(tmp0_desc);
    if (tmp9_input.k48()) {
      tmp4_local0 = tmp9_input.a48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp9_input.a48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp9_input.a48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp9_input.x47(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp9_input.x47(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp9_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp9_input.a48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp9_input.a48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp9_input.a48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp9_input.x47(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp9_input.x47(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp9_input.w47(tmp0_desc);
    return AssignmentProgressSummary_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
  };
  protoOf($serializer_36).rj8 = function (encoder, value) {
    var tmp0_desc = this.qj8_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.b7u_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 0, value.b7u_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.c7u_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 1, value.c7u_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.d7u_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 2, value.d7u_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.e7u_1 === false)) {
      tmp1_output.b49(tmp0_desc, 3, value.e7u_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.f7u_1 === false)) {
      tmp1_output.b49(tmp0_desc, 4, value.f7u_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_36).e44 = function (encoder, value) {
    return this.rj8(encoder, value instanceof AssignmentProgressSummary ? value : THROW_CCE());
  };
  var $serializer_instance_36;
  function $serializer_getInstance_36() {
    if ($serializer_instance_36 == null)
      new $serializer_36();
    return $serializer_instance_36;
  }
  function AssignmentProgressSummary_init_$Init$(seen1, submittedStudents, totalStudents, markedStudents, activeUserHasViewLearnerRecordsPermission, isGroupAssignment, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_36().qj8_1);
    }
    if (0 === (seen1 & 1))
      $this.b7u_1 = 0;
    else
      $this.b7u_1 = submittedStudents;
    if (0 === (seen1 & 2))
      $this.c7u_1 = 0;
    else
      $this.c7u_1 = totalStudents;
    if (0 === (seen1 & 4))
      $this.d7u_1 = 0;
    else
      $this.d7u_1 = markedStudents;
    if (0 === (seen1 & 8))
      $this.e7u_1 = false;
    else
      $this.e7u_1 = activeUserHasViewLearnerRecordsPermission;
    if (0 === (seen1 & 16))
      $this.f7u_1 = false;
    else
      $this.f7u_1 = isGroupAssignment;
    return $this;
  }
  function AssignmentProgressSummary_init_$Create$(seen1, submittedStudents, totalStudents, markedStudents, activeUserHasViewLearnerRecordsPermission, isGroupAssignment, serializationConstructorMarker) {
    return AssignmentProgressSummary_init_$Init$(seen1, submittedStudents, totalStudents, markedStudents, activeUserHasViewLearnerRecordsPermission, isGroupAssignment, serializationConstructorMarker, objectCreate(protoOf(AssignmentProgressSummary)));
  }
  function AssignmentProgressSummary() {
    this.b7u_1 = 0;
    this.c7u_1 = 0;
    this.d7u_1 = 0;
    this.e7u_1 = false;
    this.f7u_1 = false;
  }
  function Companion_39() {
    Companion_instance_40 = this;
    var tmp = this;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    tmp.sj8_1 = [null, new ArrayListSerializer($serializer_getInstance_88())];
  }
  protoOf(Companion_39).a4r = function () {
    return $serializer_getInstance_37();
  };
  var Companion_instance_40;
  function Companion_getInstance_42() {
    if (Companion_instance_40 == null)
      new Companion_39();
    return Companion_instance_40;
  }
  function $serializer_37() {
    $serializer_instance_37 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.AssignmentSubmitterAndAllocations', this, 2);
    tmp0_serialDesc.g4f('submitter', true);
    tmp0_serialDesc.g4f('allocations', true);
    this.tj8_1 = tmp0_serialDesc;
  }
  protoOf($serializer_37).d44 = function () {
    return this.tj8_1;
  };
  protoOf($serializer_37).x4f = function () {
    var tmp0_cached = Companion_getInstance_42().sj8_1;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [$serializer_getInstance_38(), tmp0_cached[1]];
  };
  protoOf($serializer_37).f44 = function (decoder) {
    var tmp0_desc = this.tj8_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_input = decoder.v47(tmp0_desc);
    var tmp7_cached = Companion_getInstance_42().sj8_1;
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.h48(tmp0_desc, 0, $serializer_getInstance_38(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.h48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.h48(tmp0_desc, 0, $serializer_getInstance_38(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.h48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return AssignmentSubmitterAndAllocations_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_37).uj8 = function (encoder, value) {
    var tmp0_desc = this.tj8_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    var tmp2_cached = Companion_getInstance_42().sj8_1;
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.vj8_1.equals(new AssignmentSubmitterSummary())) {
      tmp1_output.l49(tmp0_desc, 0, $serializer_getInstance_38(), value.vj8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !equals(value.wj8_1, emptyList())) {
      tmp1_output.l49(tmp0_desc, 1, tmp2_cached[1], value.wj8_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_37).e44 = function (encoder, value) {
    return this.uj8(encoder, value instanceof AssignmentSubmitterAndAllocations ? value : THROW_CCE());
  };
  var $serializer_instance_37;
  function $serializer_getInstance_37() {
    if ($serializer_instance_37 == null)
      new $serializer_37();
    return $serializer_instance_37;
  }
  function AssignmentSubmitterAndAllocations_init_$Init$(seen1, submitter, allocations, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_37().tj8_1);
    }
    if (0 === (seen1 & 1))
      $this.vj8_1 = new AssignmentSubmitterSummary();
    else
      $this.vj8_1 = submitter;
    if (0 === (seen1 & 2))
      $this.wj8_1 = emptyList();
    else
      $this.wj8_1 = allocations;
    return $this;
  }
  function AssignmentSubmitterAndAllocations_init_$Create$(seen1, submitter, allocations, serializationConstructorMarker) {
    return AssignmentSubmitterAndAllocations_init_$Init$(seen1, submitter, allocations, serializationConstructorMarker, objectCreate(protoOf(AssignmentSubmitterAndAllocations)));
  }
  function AssignmentSubmitterAndAllocations(submitter, allocations) {
    Companion_getInstance_42();
    submitter = submitter === VOID ? new AssignmentSubmitterSummary() : submitter;
    allocations = allocations === VOID ? emptyList() : allocations;
    this.vj8_1 = submitter;
    this.wj8_1 = allocations;
  }
  protoOf(AssignmentSubmitterAndAllocations).xj8 = function (submitter, allocations) {
    return new AssignmentSubmitterAndAllocations(submitter, allocations);
  };
  protoOf(AssignmentSubmitterAndAllocations).yj8 = function (submitter, allocations, $super) {
    submitter = submitter === VOID ? this.vj8_1 : submitter;
    allocations = allocations === VOID ? this.wj8_1 : allocations;
    return $super === VOID ? this.xj8(submitter, allocations) : $super.xj8.call(this, submitter, allocations);
  };
  protoOf(AssignmentSubmitterAndAllocations).toString = function () {
    return 'AssignmentSubmitterAndAllocations(submitter=' + this.vj8_1 + ', allocations=' + this.wj8_1 + ')';
  };
  protoOf(AssignmentSubmitterAndAllocations).hashCode = function () {
    var result = this.vj8_1.hashCode();
    result = imul(result, 31) + hashCode(this.wj8_1) | 0;
    return result;
  };
  protoOf(AssignmentSubmitterAndAllocations).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof AssignmentSubmitterAndAllocations))
      return false;
    var tmp0_other_with_cast = other instanceof AssignmentSubmitterAndAllocations ? other : THROW_CCE();
    if (!this.vj8_1.equals(tmp0_other_with_cast.vj8_1))
      return false;
    if (!equals(this.wj8_1, tmp0_other_with_cast.wj8_1))
      return false;
    return true;
  };
  function Companion_40() {
  }
  var Companion_instance_41;
  function Companion_getInstance_43() {
    return Companion_instance_41;
  }
  function $serializer_38() {
    $serializer_instance_38 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.AssignmentSubmitterSummary', this, 5);
    tmp0_serialDesc.g4f('submitterUid', true);
    tmp0_serialDesc.g4f('name', true);
    tmp0_serialDesc.g4f('pictureUri', true);
    tmp0_serialDesc.g4f('latestPrivateComment', true);
    tmp0_serialDesc.g4f('fileSubmissionStatus', true);
    this.zj8_1 = tmp0_serialDesc;
  }
  protoOf($serializer_38).d44 = function () {
    return this.zj8_1;
  };
  protoOf($serializer_38).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance()];
  };
  protoOf($serializer_38).f44 = function (decoder) {
    var tmp0_desc = this.zj8_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = 0;
    var tmp9_input = decoder.v47(tmp0_desc);
    if (tmp9_input.k48()) {
      tmp4_local0 = tmp9_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp9_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp9_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp9_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp9_input.a48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp9_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp9_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp9_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp9_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp9_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp9_input.a48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp9_input.w47(tmp0_desc);
    return AssignmentSubmitterSummary_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
  };
  protoOf($serializer_38).aj9 = function (encoder, value) {
    var tmp0_desc = this.zj8_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.u7u_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.u7u_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.v7u_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.v7u_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.w7u_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.w7u_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.x7u_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.x7u_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.y7u_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 4, value.y7u_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_38).e44 = function (encoder, value) {
    return this.aj9(encoder, value instanceof AssignmentSubmitterSummary ? value : THROW_CCE());
  };
  var $serializer_instance_38;
  function $serializer_getInstance_38() {
    if ($serializer_instance_38 == null)
      new $serializer_38();
    return $serializer_instance_38;
  }
  function AssignmentSubmitterSummary_init_$Init$(seen1, submitterUid, name, pictureUri, latestPrivateComment, fileSubmissionStatus, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_38().zj8_1);
    }
    if (0 === (seen1 & 1))
      $this.u7u_1 = new Long(0, 0);
    else
      $this.u7u_1 = submitterUid;
    if (0 === (seen1 & 2))
      $this.v7u_1 = null;
    else
      $this.v7u_1 = name;
    if (0 === (seen1 & 4))
      $this.w7u_1 = null;
    else
      $this.w7u_1 = pictureUri;
    if (0 === (seen1 & 8))
      $this.x7u_1 = null;
    else
      $this.x7u_1 = latestPrivateComment;
    if (0 === (seen1 & 16))
      $this.y7u_1 = 0;
    else
      $this.y7u_1 = fileSubmissionStatus;
    return $this;
  }
  function AssignmentSubmitterSummary_init_$Create$(seen1, submitterUid, name, pictureUri, latestPrivateComment, fileSubmissionStatus, serializationConstructorMarker) {
    return AssignmentSubmitterSummary_init_$Init$(seen1, submitterUid, name, pictureUri, latestPrivateComment, fileSubmissionStatus, serializationConstructorMarker, objectCreate(protoOf(AssignmentSubmitterSummary)));
  }
  function AssignmentSubmitterSummary(submitterUid, name, pictureUri, latestPrivateComment, fileSubmissionStatus) {
    submitterUid = submitterUid === VOID ? new Long(0, 0) : submitterUid;
    name = name === VOID ? null : name;
    pictureUri = pictureUri === VOID ? null : pictureUri;
    latestPrivateComment = latestPrivateComment === VOID ? null : latestPrivateComment;
    fileSubmissionStatus = fileSubmissionStatus === VOID ? 0 : fileSubmissionStatus;
    this.u7u_1 = submitterUid;
    this.v7u_1 = name;
    this.w7u_1 = pictureUri;
    this.x7u_1 = latestPrivateComment;
    this.y7u_1 = fileSubmissionStatus;
  }
  protoOf(AssignmentSubmitterSummary).toString = function () {
    return 'AssignmentSubmitterSummary(submitterUid=' + this.u7u_1.toString() + ', name=' + this.v7u_1 + ', pictureUri=' + this.w7u_1 + ', latestPrivateComment=' + this.x7u_1 + ', fileSubmissionStatus=' + this.y7u_1 + ')';
  };
  protoOf(AssignmentSubmitterSummary).hashCode = function () {
    var result = this.u7u_1.hashCode();
    result = imul(result, 31) + (this.v7u_1 == null ? 0 : getStringHashCode(this.v7u_1)) | 0;
    result = imul(result, 31) + (this.w7u_1 == null ? 0 : getStringHashCode(this.w7u_1)) | 0;
    result = imul(result, 31) + (this.x7u_1 == null ? 0 : getStringHashCode(this.x7u_1)) | 0;
    result = imul(result, 31) + this.y7u_1 | 0;
    return result;
  };
  protoOf(AssignmentSubmitterSummary).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof AssignmentSubmitterSummary))
      return false;
    var tmp0_other_with_cast = other instanceof AssignmentSubmitterSummary ? other : THROW_CCE();
    if (!this.u7u_1.equals(tmp0_other_with_cast.u7u_1))
      return false;
    if (!(this.v7u_1 == tmp0_other_with_cast.v7u_1))
      return false;
    if (!(this.w7u_1 == tmp0_other_with_cast.w7u_1))
      return false;
    if (!(this.x7u_1 == tmp0_other_with_cast.x7u_1))
      return false;
    if (!(this.y7u_1 === tmp0_other_with_cast.y7u_1))
      return false;
    return true;
  };
  function Companion_41() {
  }
  var Companion_instance_42;
  function Companion_getInstance_44() {
    return Companion_instance_42;
  }
  function $serializer_39() {
    $serializer_instance_39 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.AverageCourseAssignmentMark', this, 2);
    tmp0_serialDesc.g4f('averageScore', true);
    tmp0_serialDesc.g4f('averagePenalty', true);
    this.bj9_1 = tmp0_serialDesc;
  }
  protoOf($serializer_39).d44 = function () {
    return this.bj9_1;
  };
  protoOf($serializer_39).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [FloatSerializer_getInstance(), IntSerializer_getInstance()];
  };
  protoOf($serializer_39).f44 = function (decoder) {
    var tmp0_desc = this.bj9_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = 0.0;
    var tmp5_local1 = 0;
    var tmp6_input = decoder.v47(tmp0_desc);
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.c48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.a48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.c48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.a48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return AverageCourseAssignmentMark_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_39).cj9 = function (encoder, value) {
    var tmp0_desc = this.bj9_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !equals(value.dj9_1, 0.0)) {
      tmp1_output.g49(tmp0_desc, 0, value.dj9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.ej9_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 1, value.ej9_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_39).e44 = function (encoder, value) {
    return this.cj9(encoder, value instanceof AverageCourseAssignmentMark ? value : THROW_CCE());
  };
  var $serializer_instance_39;
  function $serializer_getInstance_39() {
    if ($serializer_instance_39 == null)
      new $serializer_39();
    return $serializer_instance_39;
  }
  function AverageCourseAssignmentMark_init_$Init$(seen1, averageScore, averagePenalty, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_39().bj9_1);
    }
    if (0 === (seen1 & 1))
      $this.dj9_1 = 0.0;
    else
      $this.dj9_1 = averageScore;
    if (0 === (seen1 & 2))
      $this.ej9_1 = 0;
    else
      $this.ej9_1 = averagePenalty;
    return $this;
  }
  function AverageCourseAssignmentMark_init_$Create$(seen1, averageScore, averagePenalty, serializationConstructorMarker) {
    return AverageCourseAssignmentMark_init_$Init$(seen1, averageScore, averagePenalty, serializationConstructorMarker, objectCreate(protoOf(AverageCourseAssignmentMark)));
  }
  function AverageCourseAssignmentMark() {
    this.dj9_1 = 0.0;
    this.ej9_1 = 0;
  }
  protoOf(AverageCourseAssignmentMark).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof AverageCourseAssignmentMark))
      return false;
    if (!(this.dj9_1 === other.dj9_1))
      return false;
    if (!(this.ej9_1 === other.ej9_1))
      return false;
    return true;
  };
  protoOf(AverageCourseAssignmentMark).hashCode = function () {
    var result = getNumberHashCode(this.dj9_1);
    result = imul(31, result) + this.ej9_1 | 0;
    return result;
  };
  function Companion_42() {
    this.fj9_1 = 1;
    this.gj9_1 = 2;
    this.hj9_1 = 3;
    this.ij9_1 = 4;
    this.jj9_1 = 1;
    this.kj9_1 = 2;
  }
  var Companion_instance_43;
  function Companion_getInstance_45() {
    return Companion_instance_43;
  }
  function CacheLockJoin() {
  }
  function Companion_43() {
    Companion_instance_44 = this;
    this.f8z_1 = 6;
    this.g8z_1 = new Long(1, 0);
    this.h8z_1 = new Long(4, 0);
    this.i8z_1 = new Long(8, 0);
    this.j8z_1 = 6;
    this.k8z_1 = 100;
    this.l8z_1 = 102;
  }
  protoOf(Companion_43).a4r = function () {
    return $serializer_getInstance_40();
  };
  var Companion_instance_44;
  function Companion_getInstance_46() {
    if (Companion_instance_44 == null)
      new Companion_43();
    return Companion_instance_44;
  }
  function $serializer_40() {
    $serializer_instance_40 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Clazz', this, 25);
    tmp0_serialDesc.g4f('clazzUid', true);
    tmp0_serialDesc.g4f('clazzName', true);
    tmp0_serialDesc.g4f('clazzDesc', true);
    tmp0_serialDesc.g4f('attendanceAverage', true);
    tmp0_serialDesc.g4f('clazzHolidayUMCalendarUid', true);
    tmp0_serialDesc.g4f('clazzScheuleUMCalendarUid', true);
    tmp0_serialDesc.g4f('isClazzActive', true);
    tmp0_serialDesc.g4f('clazzLocationUid', true);
    tmp0_serialDesc.g4f('clazzStartTime', true);
    tmp0_serialDesc.g4f('clazzEndTime', true);
    tmp0_serialDesc.g4f('clazzFeatures', true);
    tmp0_serialDesc.g4f('clazzSchoolUid', true);
    tmp0_serialDesc.g4f('clazzEnrolmentPolicy', true);
    tmp0_serialDesc.g4f('clazzTerminologyUid', true);
    tmp0_serialDesc.g4f('clazzMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('clazzLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('clazzLastChangedBy', true);
    tmp0_serialDesc.g4f('clazzLct', true);
    tmp0_serialDesc.g4f('clazzTimeZone', true);
    tmp0_serialDesc.g4f('clazzStudentsPersonGroupUid', true);
    tmp0_serialDesc.g4f('clazzTeachersPersonGroupUid', true);
    tmp0_serialDesc.g4f('clazzPendingStudentsPersonGroupUid', true);
    tmp0_serialDesc.g4f('clazzParentsPersonGroupUid', true);
    tmp0_serialDesc.g4f('clazzCode', true);
    tmp0_serialDesc.g4f('clazzOwnerPersonUid', true);
    this.lj9_1 = tmp0_serialDesc;
  }
  protoOf($serializer_40).d44 = function () {
    return this.lj9_1;
  };
  protoOf($serializer_40).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), FloatSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()];
  };
  protoOf($serializer_40).f44 = function (decoder) {
    var tmp0_desc = this.lj9_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = 0.0;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = false;
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = new Long(0, 0);
    var tmp14_local10 = new Long(0, 0);
    var tmp15_local11 = new Long(0, 0);
    var tmp16_local12 = 0;
    var tmp17_local13 = new Long(0, 0);
    var tmp18_local14 = new Long(0, 0);
    var tmp19_local15 = new Long(0, 0);
    var tmp20_local16 = 0;
    var tmp21_local17 = new Long(0, 0);
    var tmp22_local18 = null;
    var tmp23_local19 = new Long(0, 0);
    var tmp24_local20 = new Long(0, 0);
    var tmp25_local21 = new Long(0, 0);
    var tmp26_local22 = new Long(0, 0);
    var tmp27_local23 = null;
    var tmp28_local24 = new Long(0, 0);
    var tmp29_input = decoder.v47(tmp0_desc);
    if (tmp29_input.k48()) {
      tmp4_local0 = tmp29_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp29_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp29_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp29_input.c48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp29_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp29_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp29_input.x47(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp29_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp29_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp29_input.b48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp29_input.b48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp29_input.b48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp29_input.a48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp29_input.b48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp29_input.b48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp29_input.b48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp29_input.a48(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp29_input.b48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp29_input.j48(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp29_input.b48(tmp0_desc, 19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp24_local20 = tmp29_input.b48(tmp0_desc, 20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp25_local21 = tmp29_input.b48(tmp0_desc, 21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp26_local22 = tmp29_input.b48(tmp0_desc, 22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
      tmp27_local23 = tmp29_input.j48(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23);
      tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
      tmp28_local24 = tmp29_input.b48(tmp0_desc, 24);
      tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp29_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp29_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp29_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp29_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp29_input.c48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp29_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp29_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp29_input.x47(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp29_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp29_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp29_input.b48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp29_input.b48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp29_input.b48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp29_input.a48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp29_input.b48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp29_input.b48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp29_input.b48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp29_input.a48(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp29_input.b48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp29_input.j48(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp29_input.b48(tmp0_desc, 19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp24_local20 = tmp29_input.b48(tmp0_desc, 20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp25_local21 = tmp29_input.b48(tmp0_desc, 21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp26_local22 = tmp29_input.b48(tmp0_desc, 22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          case 23:
            tmp27_local23 = tmp29_input.j48(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23);
            tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
            break;
          case 24:
            tmp28_local24 = tmp29_input.b48(tmp0_desc, 24);
            tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp29_input.w47(tmp0_desc);
    return Clazz_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, tmp28_local24, null);
  };
  protoOf($serializer_40).mj9 = function (encoder, value) {
    var tmp0_desc = this.lj9_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.u8c_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.u8c_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.v8c_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.v8c_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.w8c_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.w8c_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !equals(value.x8c_1, -1.0)) {
      tmp1_output.g49(tmp0_desc, 3, value.x8c_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.y8c_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.y8c_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.z8c_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.z8c_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.a8d_1 === false)) {
      tmp1_output.b49(tmp0_desc, 6, value.a8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.b8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.b8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.c8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.c8d_1);
    }
    var tmp;
    if (tmp1_output.r49(tmp0_desc, 9)) {
      tmp = true;
    } else {
      var tmp_0 = value.d8d_1;
      Companion_getInstance();
      tmp = !tmp_0.equals(new Long(-1, 2147483647));
    }
    if (tmp) {
      tmp1_output.f49(tmp0_desc, 9, value.d8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !value.e8d_1.equals(new Long(1, 0))) {
      tmp1_output.f49(tmp0_desc, 10, value.e8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !value.f8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 11, value.f8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !(value.g8d_1 === 102)) {
      tmp1_output.e49(tmp0_desc, 12, value.g8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !value.h8d_1.equals(new Long(25966, 0))) {
      tmp1_output.f49(tmp0_desc, 13, value.h8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 14) ? true : !value.i8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 14, value.i8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 15) ? true : !value.j8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 15, value.j8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 16) ? true : !(value.k8d_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 16, value.k8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 17) ? true : !value.l8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 17, value.l8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 18) ? true : !(value.m8d_1 == null)) {
      tmp1_output.n49(tmp0_desc, 18, StringSerializer_getInstance(), value.m8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 19) ? true : !value.n8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 19, value.n8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 20) ? true : !value.o8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 20, value.o8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 21) ? true : !value.p8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 21, value.p8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 22) ? true : !value.q8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 22, value.q8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 23) ? true : !(value.r8d_1 == null)) {
      tmp1_output.n49(tmp0_desc, 23, StringSerializer_getInstance(), value.r8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 24) ? true : !value.s8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 24, value.s8d_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_40).e44 = function (encoder, value) {
    return this.mj9(encoder, value instanceof Clazz ? value : THROW_CCE());
  };
  var $serializer_instance_40;
  function $serializer_getInstance_40() {
    if ($serializer_instance_40 == null)
      new $serializer_40();
    return $serializer_instance_40;
  }
  function Clazz_init_$Init$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_40().lj9_1);
    }
    if (0 === (seen1 & 1))
      $this.u8c_1 = new Long(0, 0);
    else
      $this.u8c_1 = clazzUid;
    if (0 === (seen1 & 2))
      $this.v8c_1 = null;
    else
      $this.v8c_1 = clazzName;
    if (0 === (seen1 & 4))
      $this.w8c_1 = null;
    else
      $this.w8c_1 = clazzDesc;
    if (0 === (seen1 & 8))
      $this.x8c_1 = -1.0;
    else
      $this.x8c_1 = attendanceAverage;
    if (0 === (seen1 & 16))
      $this.y8c_1 = new Long(0, 0);
    else
      $this.y8c_1 = clazzHolidayUMCalendarUid;
    if (0 === (seen1 & 32))
      $this.z8c_1 = new Long(0, 0);
    else
      $this.z8c_1 = clazzScheuleUMCalendarUid;
    if (0 === (seen1 & 64))
      $this.a8d_1 = false;
    else
      $this.a8d_1 = isClazzActive;
    if (0 === (seen1 & 128))
      $this.b8d_1 = new Long(0, 0);
    else
      $this.b8d_1 = clazzLocationUid;
    if (0 === (seen1 & 256))
      $this.c8d_1 = new Long(0, 0);
    else
      $this.c8d_1 = clazzStartTime;
    if (0 === (seen1 & 512)) {
      var tmp = $this;
      Companion_getInstance();
      tmp.d8d_1 = new Long(-1, 2147483647);
    } else
      $this.d8d_1 = clazzEndTime;
    if (0 === (seen1 & 1024))
      $this.e8d_1 = new Long(1, 0);
    else
      $this.e8d_1 = clazzFeatures;
    if (0 === (seen1 & 2048))
      $this.f8d_1 = new Long(0, 0);
    else
      $this.f8d_1 = clazzSchoolUid;
    if (0 === (seen1 & 4096))
      $this.g8d_1 = 102;
    else
      $this.g8d_1 = clazzEnrolmentPolicy;
    if (0 === (seen1 & 8192))
      $this.h8d_1 = new Long(25966, 0);
    else
      $this.h8d_1 = clazzTerminologyUid;
    if (0 === (seen1 & 16384))
      $this.i8d_1 = new Long(0, 0);
    else
      $this.i8d_1 = clazzMasterChangeSeqNum;
    if (0 === (seen1 & 32768))
      $this.j8d_1 = new Long(0, 0);
    else
      $this.j8d_1 = clazzLocalChangeSeqNum;
    if (0 === (seen1 & 65536))
      $this.k8d_1 = 0;
    else
      $this.k8d_1 = clazzLastChangedBy;
    if (0 === (seen1 & 131072))
      $this.l8d_1 = new Long(0, 0);
    else
      $this.l8d_1 = clazzLct;
    if (0 === (seen1 & 262144))
      $this.m8d_1 = null;
    else
      $this.m8d_1 = clazzTimeZone;
    if (0 === (seen1 & 524288))
      $this.n8d_1 = new Long(0, 0);
    else
      $this.n8d_1 = clazzStudentsPersonGroupUid;
    if (0 === (seen1 & 1048576))
      $this.o8d_1 = new Long(0, 0);
    else
      $this.o8d_1 = clazzTeachersPersonGroupUid;
    if (0 === (seen1 & 2097152))
      $this.p8d_1 = new Long(0, 0);
    else
      $this.p8d_1 = clazzPendingStudentsPersonGroupUid;
    if (0 === (seen1 & 4194304))
      $this.q8d_1 = new Long(0, 0);
    else
      $this.q8d_1 = clazzParentsPersonGroupUid;
    if (0 === (seen1 & 8388608))
      $this.r8d_1 = null;
    else
      $this.r8d_1 = clazzCode;
    if (0 === (seen1 & 16777216))
      $this.s8d_1 = new Long(0, 0);
    else
      $this.s8d_1 = clazzOwnerPersonUid;
    return $this;
  }
  function Clazz_init_$Create$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, serializationConstructorMarker) {
    return Clazz_init_$Init$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, serializationConstructorMarker, objectCreate(protoOf(Clazz)));
  }
  function Clazz() {
    Companion_getInstance_46();
    this.u8c_1 = new Long(0, 0);
    this.v8c_1 = null;
    this.w8c_1 = null;
    this.x8c_1 = -1.0;
    this.y8c_1 = new Long(0, 0);
    this.z8c_1 = new Long(0, 0);
    this.a8d_1 = false;
    this.b8d_1 = new Long(0, 0);
    this.c8d_1 = new Long(0, 0);
    var tmp = this;
    Companion_getInstance();
    tmp.d8d_1 = new Long(-1, 2147483647);
    this.e8d_1 = new Long(1, 0);
    this.f8d_1 = new Long(0, 0);
    this.g8d_1 = 102;
    this.h8d_1 = new Long(25966, 0);
    this.i8d_1 = new Long(0, 0);
    this.j8d_1 = new Long(0, 0);
    this.k8d_1 = 0;
    this.l8d_1 = new Long(0, 0);
    this.m8d_1 = null;
    this.n8d_1 = new Long(0, 0);
    this.o8d_1 = new Long(0, 0);
    this.p8d_1 = new Long(0, 0);
    this.q8d_1 = new Long(0, 0);
    this.r8d_1 = null;
    this.s8d_1 = new Long(0, 0);
  }
  protoOf(Clazz).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof Clazz))
      return false;
    if (!this.u8c_1.equals(other.u8c_1))
      return false;
    if (!(this.v8c_1 == other.v8c_1))
      return false;
    if (!(this.w8c_1 == other.w8c_1))
      return false;
    if (!(this.x8c_1 === other.x8c_1))
      return false;
    if (!this.y8c_1.equals(other.y8c_1))
      return false;
    if (!this.z8c_1.equals(other.z8c_1))
      return false;
    if (!(this.a8d_1 === other.a8d_1))
      return false;
    if (!this.b8d_1.equals(other.b8d_1))
      return false;
    if (!this.c8d_1.equals(other.c8d_1))
      return false;
    if (!this.d8d_1.equals(other.d8d_1))
      return false;
    if (!this.e8d_1.equals(other.e8d_1))
      return false;
    if (!this.f8d_1.equals(other.f8d_1))
      return false;
    if (!(this.g8d_1 === other.g8d_1))
      return false;
    if (!this.h8d_1.equals(other.h8d_1))
      return false;
    if (!this.i8d_1.equals(other.i8d_1))
      return false;
    if (!this.j8d_1.equals(other.j8d_1))
      return false;
    if (!(this.k8d_1 === other.k8d_1))
      return false;
    if (!this.l8d_1.equals(other.l8d_1))
      return false;
    if (!(this.m8d_1 == other.m8d_1))
      return false;
    if (!this.n8d_1.equals(other.n8d_1))
      return false;
    if (!this.o8d_1.equals(other.o8d_1))
      return false;
    if (!this.p8d_1.equals(other.p8d_1))
      return false;
    if (!this.q8d_1.equals(other.q8d_1))
      return false;
    if (!(this.r8d_1 == other.r8d_1))
      return false;
    return true;
  };
  protoOf(Clazz).hashCode = function () {
    var result = this.u8c_1.hashCode();
    var tmp = imul(31, result);
    var tmp0_safe_receiver = this.v8c_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
    result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
    var tmp_0 = imul(31, result);
    var tmp2_safe_receiver = this.w8c_1;
    var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : getStringHashCode(tmp2_safe_receiver);
    result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0;
    result = imul(31, result) + getNumberHashCode(this.x8c_1) | 0;
    result = imul(31, result) + this.y8c_1.hashCode() | 0;
    result = imul(31, result) + this.z8c_1.hashCode() | 0;
    result = imul(31, result) + getBooleanHashCode(this.a8d_1) | 0;
    result = imul(31, result) + this.b8d_1.hashCode() | 0;
    result = imul(31, result) + this.c8d_1.hashCode() | 0;
    result = imul(31, result) + this.d8d_1.hashCode() | 0;
    result = imul(31, result) + this.e8d_1.hashCode() | 0;
    result = imul(31, result) + this.f8d_1.hashCode() | 0;
    result = imul(31, result) + this.g8d_1 | 0;
    result = imul(31, result) + this.h8d_1.hashCode() | 0;
    result = imul(31, result) + this.i8d_1.hashCode() | 0;
    result = imul(31, result) + this.j8d_1.hashCode() | 0;
    result = imul(31, result) + this.k8d_1 | 0;
    result = imul(31, result) + this.l8d_1.hashCode() | 0;
    var tmp_1 = imul(31, result);
    var tmp4_safe_receiver = this.m8d_1;
    var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : getStringHashCode(tmp4_safe_receiver);
    result = tmp_1 + (tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs) | 0;
    result = imul(31, result) + this.n8d_1.hashCode() | 0;
    result = imul(31, result) + this.o8d_1.hashCode() | 0;
    result = imul(31, result) + this.p8d_1.hashCode() | 0;
    result = imul(31, result) + this.q8d_1.hashCode() | 0;
    var tmp_2 = imul(31, result);
    var tmp6_safe_receiver = this.r8d_1;
    var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : getStringHashCode(tmp6_safe_receiver);
    result = tmp_2 + (tmp7_elvis_lhs == null ? 0 : tmp7_elvis_lhs) | 0;
    return result;
  };
  function Companion_44() {
    this.nj9_1 = 520;
    this.oj9_1 = 1;
    this.pj9_1 = 2;
    this.qj9_1 = 1;
    this.rj9_1 = 2;
    this.sj9_1 = 0;
    this.tj9_1 = 1;
    this.uj9_1 = 2;
    this.vj9_1 = 3;
    this.wj9_1 = 4;
    this.xj9_1 = 1;
    this.yj9_1 = 2;
    this.zj9_1 = 100;
    this.aja_1 = 102;
  }
  var Companion_instance_45;
  function Companion_getInstance_47() {
    return Companion_instance_45;
  }
  function $serializer_41() {
    $serializer_instance_41 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzAssignment', this, 24);
    tmp0_serialDesc.g4f('caUid', true);
    tmp0_serialDesc.g4f('caTitle', true);
    tmp0_serialDesc.g4f('caDescription', true);
    tmp0_serialDesc.g4f('caGroupUid', true);
    tmp0_serialDesc.g4f('caActive', true);
    tmp0_serialDesc.g4f('caClassCommentEnabled', true);
    tmp0_serialDesc.g4f('caPrivateCommentsEnabled', true);
    tmp0_serialDesc.g4f('caCompletionCriteria', true);
    tmp0_serialDesc.g4f('caRequireFileSubmission', true);
    tmp0_serialDesc.g4f('caFileType', true);
    tmp0_serialDesc.g4f('caSizeLimit', true);
    tmp0_serialDesc.g4f('caNumberOfFiles', true);
    tmp0_serialDesc.g4f('caSubmissionPolicy', true);
    tmp0_serialDesc.g4f('caMarkingType', true);
    tmp0_serialDesc.g4f('caRequireTextSubmission', true);
    tmp0_serialDesc.g4f('caTextLimitType', true);
    tmp0_serialDesc.g4f('caTextLimit', true);
    tmp0_serialDesc.g4f('caXObjectUid', true);
    tmp0_serialDesc.g4f('caClazzUid', true);
    tmp0_serialDesc.g4f('caPeerReviewerCount', true);
    tmp0_serialDesc.g4f('caLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('caMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('caLastChangedBy', true);
    tmp0_serialDesc.g4f('caLct', true);
    this.bja_1 = tmp0_serialDesc;
  }
  protoOf($serializer_41).d44 = function () {
    return this.bja_1;
  };
  protoOf($serializer_41).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_41).f44 = function (decoder) {
    var tmp0_desc = this.bja_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = false;
    var tmp9_local5 = false;
    var tmp10_local6 = false;
    var tmp11_local7 = 0;
    var tmp12_local8 = false;
    var tmp13_local9 = 0;
    var tmp14_local10 = 0;
    var tmp15_local11 = 0;
    var tmp16_local12 = 0;
    var tmp17_local13 = 0;
    var tmp18_local14 = false;
    var tmp19_local15 = 0;
    var tmp20_local16 = 0;
    var tmp21_local17 = new Long(0, 0);
    var tmp22_local18 = new Long(0, 0);
    var tmp23_local19 = 0;
    var tmp24_local20 = new Long(0, 0);
    var tmp25_local21 = new Long(0, 0);
    var tmp26_local22 = 0;
    var tmp27_local23 = new Long(0, 0);
    var tmp28_input = decoder.v47(tmp0_desc);
    if (tmp28_input.k48()) {
      tmp4_local0 = tmp28_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp28_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp28_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp28_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp28_input.x47(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp28_input.x47(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp28_input.x47(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp28_input.a48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp28_input.x47(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp28_input.a48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp28_input.a48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp28_input.a48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp28_input.a48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp28_input.a48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp28_input.x47(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp28_input.a48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp28_input.a48(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp28_input.b48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp28_input.b48(tmp0_desc, 18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp28_input.a48(tmp0_desc, 19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp24_local20 = tmp28_input.b48(tmp0_desc, 20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp25_local21 = tmp28_input.b48(tmp0_desc, 21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp26_local22 = tmp28_input.a48(tmp0_desc, 22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
      tmp27_local23 = tmp28_input.b48(tmp0_desc, 23);
      tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp28_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp28_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp28_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp28_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp28_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp28_input.x47(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp28_input.x47(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp28_input.x47(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp28_input.a48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp28_input.x47(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp28_input.a48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp28_input.a48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp28_input.a48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp28_input.a48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp28_input.a48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp28_input.x47(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp28_input.a48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp28_input.a48(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp28_input.b48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp28_input.b48(tmp0_desc, 18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp28_input.a48(tmp0_desc, 19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp24_local20 = tmp28_input.b48(tmp0_desc, 20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp25_local21 = tmp28_input.b48(tmp0_desc, 21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp26_local22 = tmp28_input.a48(tmp0_desc, 22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          case 23:
            tmp27_local23 = tmp28_input.b48(tmp0_desc, 23);
            tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp28_input.w47(tmp0_desc);
    return ClazzAssignment_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, null);
  };
  protoOf($serializer_41).cja = function (encoder, value) {
    var tmp0_desc = this.bja_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.q7s_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.q7s_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.r7s_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.r7s_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.s7s_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.s7s_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.t7s_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.t7s_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.u7s_1 === true)) {
      tmp1_output.b49(tmp0_desc, 4, value.u7s_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.v7s_1 === true)) {
      tmp1_output.b49(tmp0_desc, 5, value.v7s_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.w7s_1 === true)) {
      tmp1_output.b49(tmp0_desc, 6, value.w7s_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.x7s_1 === 100)) {
      tmp1_output.e49(tmp0_desc, 7, value.x7s_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.y7s_1 === true)) {
      tmp1_output.b49(tmp0_desc, 8, value.y7s_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.z7s_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 9, value.z7s_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.a7t_1 === 50)) {
      tmp1_output.e49(tmp0_desc, 10, value.a7t_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !(value.b7t_1 === 1)) {
      tmp1_output.e49(tmp0_desc, 11, value.b7t_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !(value.c7t_1 === 1)) {
      tmp1_output.e49(tmp0_desc, 12, value.c7t_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !(value.d7t_1 === 1)) {
      tmp1_output.e49(tmp0_desc, 13, value.d7t_1);
    }
    if (tmp1_output.r49(tmp0_desc, 14) ? true : !(value.e7t_1 === true)) {
      tmp1_output.b49(tmp0_desc, 14, value.e7t_1);
    }
    if (tmp1_output.r49(tmp0_desc, 15) ? true : !(value.f7t_1 === 1)) {
      tmp1_output.e49(tmp0_desc, 15, value.f7t_1);
    }
    if (tmp1_output.r49(tmp0_desc, 16) ? true : !(value.g7t_1 === 500)) {
      tmp1_output.e49(tmp0_desc, 16, value.g7t_1);
    }
    if (tmp1_output.r49(tmp0_desc, 17) ? true : !value.h7t_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 17, value.h7t_1);
    }
    if (tmp1_output.r49(tmp0_desc, 18) ? true : !value.i7t_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 18, value.i7t_1);
    }
    if (tmp1_output.r49(tmp0_desc, 19) ? true : !(value.j7t_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 19, value.j7t_1);
    }
    if (tmp1_output.r49(tmp0_desc, 20) ? true : !value.k7t_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 20, value.k7t_1);
    }
    if (tmp1_output.r49(tmp0_desc, 21) ? true : !value.l7t_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 21, value.l7t_1);
    }
    if (tmp1_output.r49(tmp0_desc, 22) ? true : !(value.m7t_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 22, value.m7t_1);
    }
    if (tmp1_output.r49(tmp0_desc, 23) ? true : !value.n7t_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 23, value.n7t_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_41).e44 = function (encoder, value) {
    return this.cja(encoder, value instanceof ClazzAssignment ? value : THROW_CCE());
  };
  var $serializer_instance_41;
  function $serializer_getInstance_41() {
    if ($serializer_instance_41 == null)
      new $serializer_41();
    return $serializer_instance_41;
  }
  function ClazzAssignment_init_$Init$(seen1, caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_41().bja_1);
    }
    if (0 === (seen1 & 1))
      $this.q7s_1 = new Long(0, 0);
    else
      $this.q7s_1 = caUid;
    if (0 === (seen1 & 2))
      $this.r7s_1 = null;
    else
      $this.r7s_1 = caTitle;
    if (0 === (seen1 & 4))
      $this.s7s_1 = null;
    else
      $this.s7s_1 = caDescription;
    if (0 === (seen1 & 8))
      $this.t7s_1 = new Long(0, 0);
    else
      $this.t7s_1 = caGroupUid;
    if (0 === (seen1 & 16))
      $this.u7s_1 = true;
    else
      $this.u7s_1 = caActive;
    if (0 === (seen1 & 32))
      $this.v7s_1 = true;
    else
      $this.v7s_1 = caClassCommentEnabled;
    if (0 === (seen1 & 64))
      $this.w7s_1 = true;
    else
      $this.w7s_1 = caPrivateCommentsEnabled;
    if (0 === (seen1 & 128))
      $this.x7s_1 = 100;
    else
      $this.x7s_1 = caCompletionCriteria;
    if (0 === (seen1 & 256))
      $this.y7s_1 = true;
    else
      $this.y7s_1 = caRequireFileSubmission;
    if (0 === (seen1 & 512))
      $this.z7s_1 = 0;
    else
      $this.z7s_1 = caFileType;
    if (0 === (seen1 & 1024))
      $this.a7t_1 = 50;
    else
      $this.a7t_1 = caSizeLimit;
    if (0 === (seen1 & 2048))
      $this.b7t_1 = 1;
    else
      $this.b7t_1 = caNumberOfFiles;
    if (0 === (seen1 & 4096))
      $this.c7t_1 = 1;
    else
      $this.c7t_1 = caSubmissionPolicy;
    if (0 === (seen1 & 8192))
      $this.d7t_1 = 1;
    else
      $this.d7t_1 = caMarkingType;
    if (0 === (seen1 & 16384))
      $this.e7t_1 = true;
    else
      $this.e7t_1 = caRequireTextSubmission;
    if (0 === (seen1 & 32768))
      $this.f7t_1 = 1;
    else
      $this.f7t_1 = caTextLimitType;
    if (0 === (seen1 & 65536))
      $this.g7t_1 = 500;
    else
      $this.g7t_1 = caTextLimit;
    if (0 === (seen1 & 131072))
      $this.h7t_1 = new Long(0, 0);
    else
      $this.h7t_1 = caXObjectUid;
    if (0 === (seen1 & 262144))
      $this.i7t_1 = new Long(0, 0);
    else
      $this.i7t_1 = caClazzUid;
    if (0 === (seen1 & 524288))
      $this.j7t_1 = 0;
    else
      $this.j7t_1 = caPeerReviewerCount;
    if (0 === (seen1 & 1048576))
      $this.k7t_1 = new Long(0, 0);
    else
      $this.k7t_1 = caLocalChangeSeqNum;
    if (0 === (seen1 & 2097152))
      $this.l7t_1 = new Long(0, 0);
    else
      $this.l7t_1 = caMasterChangeSeqNum;
    if (0 === (seen1 & 4194304))
      $this.m7t_1 = 0;
    else
      $this.m7t_1 = caLastChangedBy;
    if (0 === (seen1 & 8388608))
      $this.n7t_1 = new Long(0, 0);
    else
      $this.n7t_1 = caLct;
    return $this;
  }
  function ClazzAssignment_init_$Create$(seen1, caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct, serializationConstructorMarker) {
    return ClazzAssignment_init_$Init$(seen1, caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct, serializationConstructorMarker, objectCreate(protoOf(ClazzAssignment)));
  }
  function ClazzAssignment(caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) {
    caUid = caUid === VOID ? new Long(0, 0) : caUid;
    caTitle = caTitle === VOID ? null : caTitle;
    caDescription = caDescription === VOID ? null : caDescription;
    caGroupUid = caGroupUid === VOID ? new Long(0, 0) : caGroupUid;
    caActive = caActive === VOID ? true : caActive;
    caClassCommentEnabled = caClassCommentEnabled === VOID ? true : caClassCommentEnabled;
    caPrivateCommentsEnabled = caPrivateCommentsEnabled === VOID ? true : caPrivateCommentsEnabled;
    caCompletionCriteria = caCompletionCriteria === VOID ? 100 : caCompletionCriteria;
    caRequireFileSubmission = caRequireFileSubmission === VOID ? true : caRequireFileSubmission;
    caFileType = caFileType === VOID ? 0 : caFileType;
    caSizeLimit = caSizeLimit === VOID ? 50 : caSizeLimit;
    caNumberOfFiles = caNumberOfFiles === VOID ? 1 : caNumberOfFiles;
    caSubmissionPolicy = caSubmissionPolicy === VOID ? 1 : caSubmissionPolicy;
    caMarkingType = caMarkingType === VOID ? 1 : caMarkingType;
    caRequireTextSubmission = caRequireTextSubmission === VOID ? true : caRequireTextSubmission;
    caTextLimitType = caTextLimitType === VOID ? 1 : caTextLimitType;
    caTextLimit = caTextLimit === VOID ? 500 : caTextLimit;
    caXObjectUid = caXObjectUid === VOID ? new Long(0, 0) : caXObjectUid;
    caClazzUid = caClazzUid === VOID ? new Long(0, 0) : caClazzUid;
    caPeerReviewerCount = caPeerReviewerCount === VOID ? 0 : caPeerReviewerCount;
    caLocalChangeSeqNum = caLocalChangeSeqNum === VOID ? new Long(0, 0) : caLocalChangeSeqNum;
    caMasterChangeSeqNum = caMasterChangeSeqNum === VOID ? new Long(0, 0) : caMasterChangeSeqNum;
    caLastChangedBy = caLastChangedBy === VOID ? 0 : caLastChangedBy;
    caLct = caLct === VOID ? new Long(0, 0) : caLct;
    this.q7s_1 = caUid;
    this.r7s_1 = caTitle;
    this.s7s_1 = caDescription;
    this.t7s_1 = caGroupUid;
    this.u7s_1 = caActive;
    this.v7s_1 = caClassCommentEnabled;
    this.w7s_1 = caPrivateCommentsEnabled;
    this.x7s_1 = caCompletionCriteria;
    this.y7s_1 = caRequireFileSubmission;
    this.z7s_1 = caFileType;
    this.a7t_1 = caSizeLimit;
    this.b7t_1 = caNumberOfFiles;
    this.c7t_1 = caSubmissionPolicy;
    this.d7t_1 = caMarkingType;
    this.e7t_1 = caRequireTextSubmission;
    this.f7t_1 = caTextLimitType;
    this.g7t_1 = caTextLimit;
    this.h7t_1 = caXObjectUid;
    this.i7t_1 = caClazzUid;
    this.j7t_1 = caPeerReviewerCount;
    this.k7t_1 = caLocalChangeSeqNum;
    this.l7t_1 = caMasterChangeSeqNum;
    this.m7t_1 = caLastChangedBy;
    this.n7t_1 = caLct;
  }
  protoOf(ClazzAssignment).toString = function () {
    return 'ClazzAssignment(caUid=' + this.q7s_1.toString() + ', caTitle=' + this.r7s_1 + ', caDescription=' + this.s7s_1 + ', caGroupUid=' + this.t7s_1.toString() + ', caActive=' + this.u7s_1 + ', caClassCommentEnabled=' + this.v7s_1 + ', caPrivateCommentsEnabled=' + this.w7s_1 + ', caCompletionCriteria=' + this.x7s_1 + ', caRequireFileSubmission=' + this.y7s_1 + ', caFileType=' + this.z7s_1 + ', caSizeLimit=' + this.a7t_1 + ', caNumberOfFiles=' + this.b7t_1 + ', caSubmissionPolicy=' + this.c7t_1 + ', caMarkingType=' + this.d7t_1 + ', caRequireTextSubmission=' + this.e7t_1 + ', caTextLimitType=' + this.f7t_1 + ', caTextLimit=' + this.g7t_1 + ', caXObjectUid=' + this.h7t_1.toString() + ', caClazzUid=' + this.i7t_1.toString() + ', caPeerReviewerCount=' + this.j7t_1 + ', caLocalChangeSeqNum=' + this.k7t_1.toString() + ', caMasterChangeSeqNum=' + this.l7t_1.toString() + ', caLastChangedBy=' + this.m7t_1 + ', caLct=' + this.n7t_1.toString() + ')';
  };
  protoOf(ClazzAssignment).hashCode = function () {
    var result = this.q7s_1.hashCode();
    result = imul(result, 31) + (this.r7s_1 == null ? 0 : getStringHashCode(this.r7s_1)) | 0;
    result = imul(result, 31) + (this.s7s_1 == null ? 0 : getStringHashCode(this.s7s_1)) | 0;
    result = imul(result, 31) + this.t7s_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.u7s_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.v7s_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.w7s_1) | 0;
    result = imul(result, 31) + this.x7s_1 | 0;
    result = imul(result, 31) + getBooleanHashCode(this.y7s_1) | 0;
    result = imul(result, 31) + this.z7s_1 | 0;
    result = imul(result, 31) + this.a7t_1 | 0;
    result = imul(result, 31) + this.b7t_1 | 0;
    result = imul(result, 31) + this.c7t_1 | 0;
    result = imul(result, 31) + this.d7t_1 | 0;
    result = imul(result, 31) + getBooleanHashCode(this.e7t_1) | 0;
    result = imul(result, 31) + this.f7t_1 | 0;
    result = imul(result, 31) + this.g7t_1 | 0;
    result = imul(result, 31) + this.h7t_1.hashCode() | 0;
    result = imul(result, 31) + this.i7t_1.hashCode() | 0;
    result = imul(result, 31) + this.j7t_1 | 0;
    result = imul(result, 31) + this.k7t_1.hashCode() | 0;
    result = imul(result, 31) + this.l7t_1.hashCode() | 0;
    result = imul(result, 31) + this.m7t_1 | 0;
    result = imul(result, 31) + this.n7t_1.hashCode() | 0;
    return result;
  };
  protoOf(ClazzAssignment).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ClazzAssignment))
      return false;
    var tmp0_other_with_cast = other instanceof ClazzAssignment ? other : THROW_CCE();
    if (!this.q7s_1.equals(tmp0_other_with_cast.q7s_1))
      return false;
    if (!(this.r7s_1 == tmp0_other_with_cast.r7s_1))
      return false;
    if (!(this.s7s_1 == tmp0_other_with_cast.s7s_1))
      return false;
    if (!this.t7s_1.equals(tmp0_other_with_cast.t7s_1))
      return false;
    if (!(this.u7s_1 === tmp0_other_with_cast.u7s_1))
      return false;
    if (!(this.v7s_1 === tmp0_other_with_cast.v7s_1))
      return false;
    if (!(this.w7s_1 === tmp0_other_with_cast.w7s_1))
      return false;
    if (!(this.x7s_1 === tmp0_other_with_cast.x7s_1))
      return false;
    if (!(this.y7s_1 === tmp0_other_with_cast.y7s_1))
      return false;
    if (!(this.z7s_1 === tmp0_other_with_cast.z7s_1))
      return false;
    if (!(this.a7t_1 === tmp0_other_with_cast.a7t_1))
      return false;
    if (!(this.b7t_1 === tmp0_other_with_cast.b7t_1))
      return false;
    if (!(this.c7t_1 === tmp0_other_with_cast.c7t_1))
      return false;
    if (!(this.d7t_1 === tmp0_other_with_cast.d7t_1))
      return false;
    if (!(this.e7t_1 === tmp0_other_with_cast.e7t_1))
      return false;
    if (!(this.f7t_1 === tmp0_other_with_cast.f7t_1))
      return false;
    if (!(this.g7t_1 === tmp0_other_with_cast.g7t_1))
      return false;
    if (!this.h7t_1.equals(tmp0_other_with_cast.h7t_1))
      return false;
    if (!this.i7t_1.equals(tmp0_other_with_cast.i7t_1))
      return false;
    if (!(this.j7t_1 === tmp0_other_with_cast.j7t_1))
      return false;
    if (!this.k7t_1.equals(tmp0_other_with_cast.k7t_1))
      return false;
    if (!this.l7t_1.equals(tmp0_other_with_cast.l7t_1))
      return false;
    if (!(this.m7t_1 === tmp0_other_with_cast.m7t_1))
      return false;
    if (!this.n7t_1.equals(tmp0_other_with_cast.n7t_1))
      return false;
    return true;
  };
  function Companion_45() {
  }
  var Companion_instance_46;
  function Companion_getInstance_48() {
    return Companion_instance_46;
  }
  function $serializer_42() {
    $serializer_instance_42 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzAssignmentCourseBlockAndSubmitterUid', this, 6);
    tmp0_serialDesc.g4f('clazzAssignment', true);
    tmp0_serialDesc.g4f('courseBlock', true);
    tmp0_serialDesc.g4f('courseBlockPicture', true);
    tmp0_serialDesc.g4f('courseGroupSet', true);
    tmp0_serialDesc.g4f('submitterUid', true);
    tmp0_serialDesc.g4f('hasModeratePermission', true);
    this.dja_1 = tmp0_serialDesc;
  }
  protoOf($serializer_42).d44 = function () {
    return this.dja_1;
  };
  protoOf($serializer_42).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_41()), get_nullable($serializer_getInstance_67()), get_nullable($serializer_getInstance_68()), get_nullable($serializer_getInstance_71()), LongSerializer_getInstance(), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_42).f44 = function (decoder) {
    var tmp0_desc = this.dja_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = false;
    var tmp10_input = decoder.v47(tmp0_desc);
    if (tmp10_input.k48()) {
      tmp4_local0 = tmp10_input.j48(tmp0_desc, 0, $serializer_getInstance_41(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.j48(tmp0_desc, 1, $serializer_getInstance_67(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.j48(tmp0_desc, 2, $serializer_getInstance_68(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.j48(tmp0_desc, 3, $serializer_getInstance_71(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.x47(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.j48(tmp0_desc, 0, $serializer_getInstance_41(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.j48(tmp0_desc, 1, $serializer_getInstance_67(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.j48(tmp0_desc, 2, $serializer_getInstance_68(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.j48(tmp0_desc, 3, $serializer_getInstance_71(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.x47(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.w47(tmp0_desc);
    return ClazzAssignmentCourseBlockAndSubmitterUid_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_42).eja = function (encoder, value) {
    var tmp0_desc = this.dja_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.t7x_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_41(), value.t7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.u7x_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_67(), value.u7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.v7x_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, $serializer_getInstance_68(), value.v7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.w7x_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, $serializer_getInstance_71(), value.w7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.x7x_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.x7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.y7x_1 === false)) {
      tmp1_output.b49(tmp0_desc, 5, value.y7x_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_42).e44 = function (encoder, value) {
    return this.eja(encoder, value instanceof ClazzAssignmentCourseBlockAndSubmitterUid ? value : THROW_CCE());
  };
  var $serializer_instance_42;
  function $serializer_getInstance_42() {
    if ($serializer_instance_42 == null)
      new $serializer_42();
    return $serializer_instance_42;
  }
  function ClazzAssignmentCourseBlockAndSubmitterUid_init_$Init$(seen1, clazzAssignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, hasModeratePermission, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_42().dja_1);
    }
    if (0 === (seen1 & 1))
      $this.t7x_1 = null;
    else
      $this.t7x_1 = clazzAssignment;
    if (0 === (seen1 & 2))
      $this.u7x_1 = null;
    else
      $this.u7x_1 = courseBlock;
    if (0 === (seen1 & 4))
      $this.v7x_1 = null;
    else
      $this.v7x_1 = courseBlockPicture;
    if (0 === (seen1 & 8))
      $this.w7x_1 = null;
    else
      $this.w7x_1 = courseGroupSet;
    if (0 === (seen1 & 16))
      $this.x7x_1 = new Long(0, 0);
    else
      $this.x7x_1 = submitterUid;
    if (0 === (seen1 & 32))
      $this.y7x_1 = false;
    else
      $this.y7x_1 = hasModeratePermission;
    return $this;
  }
  function ClazzAssignmentCourseBlockAndSubmitterUid_init_$Create$(seen1, clazzAssignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, hasModeratePermission, serializationConstructorMarker) {
    return ClazzAssignmentCourseBlockAndSubmitterUid_init_$Init$(seen1, clazzAssignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, hasModeratePermission, serializationConstructorMarker, objectCreate(protoOf(ClazzAssignmentCourseBlockAndSubmitterUid)));
  }
  function ClazzAssignmentCourseBlockAndSubmitterUid(clazzAssignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, hasModeratePermission) {
    clazzAssignment = clazzAssignment === VOID ? null : clazzAssignment;
    courseBlock = courseBlock === VOID ? null : courseBlock;
    courseBlockPicture = courseBlockPicture === VOID ? null : courseBlockPicture;
    courseGroupSet = courseGroupSet === VOID ? null : courseGroupSet;
    submitterUid = submitterUid === VOID ? new Long(0, 0) : submitterUid;
    hasModeratePermission = hasModeratePermission === VOID ? false : hasModeratePermission;
    this.t7x_1 = clazzAssignment;
    this.u7x_1 = courseBlock;
    this.v7x_1 = courseBlockPicture;
    this.w7x_1 = courseGroupSet;
    this.x7x_1 = submitterUid;
    this.y7x_1 = hasModeratePermission;
  }
  protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).toString = function () {
    return 'ClazzAssignmentCourseBlockAndSubmitterUid(clazzAssignment=' + this.t7x_1 + ', courseBlock=' + this.u7x_1 + ', courseBlockPicture=' + this.v7x_1 + ', courseGroupSet=' + this.w7x_1 + ', submitterUid=' + this.x7x_1.toString() + ', hasModeratePermission=' + this.y7x_1 + ')';
  };
  protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).hashCode = function () {
    var result = this.t7x_1 == null ? 0 : this.t7x_1.hashCode();
    result = imul(result, 31) + (this.u7x_1 == null ? 0 : this.u7x_1.hashCode()) | 0;
    result = imul(result, 31) + (this.v7x_1 == null ? 0 : this.v7x_1.hashCode()) | 0;
    result = imul(result, 31) + (this.w7x_1 == null ? 0 : hashCode(this.w7x_1)) | 0;
    result = imul(result, 31) + this.x7x_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.y7x_1) | 0;
    return result;
  };
  protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ClazzAssignmentCourseBlockAndSubmitterUid))
      return false;
    var tmp0_other_with_cast = other instanceof ClazzAssignmentCourseBlockAndSubmitterUid ? other : THROW_CCE();
    if (!equals(this.t7x_1, tmp0_other_with_cast.t7x_1))
      return false;
    if (!equals(this.u7x_1, tmp0_other_with_cast.u7x_1))
      return false;
    if (!equals(this.v7x_1, tmp0_other_with_cast.v7x_1))
      return false;
    if (!equals(this.w7x_1, tmp0_other_with_cast.w7x_1))
      return false;
    if (!this.x7x_1.equals(tmp0_other_with_cast.x7x_1))
      return false;
    if (!(this.y7x_1 === tmp0_other_with_cast.y7x_1))
      return false;
    return true;
  };
  function ClazzEnrolment_init_$Init$(clazzUid, personUid, role, $this) {
    ClazzEnrolment.call($this);
    $this.g8h_1 = clazzUid;
    $this.f8h_1 = personUid;
    $this.j8h_1 = role;
    $this.l8h_1 = true;
    return $this;
  }
  function ClazzEnrolment_init_$Create$(clazzUid, personUid, role) {
    return ClazzEnrolment_init_$Init$(clazzUid, personUid, role, objectCreate(protoOf(ClazzEnrolment)));
  }
  function Companion_46() {
    this.fja_1 = 1000;
    this.gja_1 = 1001;
    this.hja_1 = 1002;
    this.ija_1 = 1003;
    this.jja_1 = 200;
    this.kja_1 = 201;
    this.lja_1 = 202;
    this.mja_1 = 203;
    this.nja_1 = 65;
  }
  var Companion_instance_47;
  function Companion_getInstance_49() {
    return Companion_instance_47;
  }
  function $serializer_43() {
    $serializer_instance_43 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzEnrolment', this, 14);
    tmp0_serialDesc.g4f('clazzEnrolmentUid', true);
    tmp0_serialDesc.g4f('clazzEnrolmentPersonUid', true);
    tmp0_serialDesc.g4f('clazzEnrolmentClazzUid', true);
    tmp0_serialDesc.g4f('clazzEnrolmentDateJoined', true);
    tmp0_serialDesc.g4f('clazzEnrolmentDateLeft', true);
    tmp0_serialDesc.g4f('clazzEnrolmentRole', true);
    tmp0_serialDesc.g4f('clazzEnrolmentAttendancePercentage', true);
    tmp0_serialDesc.g4f('clazzEnrolmentActive', true);
    tmp0_serialDesc.g4f('clazzEnrolmentLeavingReasonUid', true);
    tmp0_serialDesc.g4f('clazzEnrolmentOutcome', true);
    tmp0_serialDesc.g4f('clazzEnrolmentLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('clazzEnrolmentMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('clazzEnrolmentLastChangedBy', true);
    tmp0_serialDesc.g4f('clazzEnrolmentLct', true);
    this.oja_1 = tmp0_serialDesc;
  }
  protoOf($serializer_43).d44 = function () {
    return this.oja_1;
  };
  protoOf($serializer_43).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), FloatSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_43).f44 = function (decoder) {
    var tmp0_desc = this.oja_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = 0;
    var tmp10_local6 = 0.0;
    var tmp11_local7 = false;
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = 0;
    var tmp14_local10 = new Long(0, 0);
    var tmp15_local11 = new Long(0, 0);
    var tmp16_local12 = 0;
    var tmp17_local13 = new Long(0, 0);
    var tmp18_input = decoder.v47(tmp0_desc);
    if (tmp18_input.k48()) {
      tmp4_local0 = tmp18_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp18_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp18_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp18_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp18_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp18_input.a48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp18_input.c48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp18_input.x47(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp18_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp18_input.a48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp18_input.b48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp18_input.b48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp18_input.a48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp18_input.b48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp18_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp18_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp18_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp18_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp18_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp18_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp18_input.a48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp18_input.c48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp18_input.x47(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp18_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp18_input.a48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp18_input.b48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp18_input.b48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp18_input.a48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp18_input.b48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp18_input.w47(tmp0_desc);
    return ClazzEnrolment_init_$Create$_0(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null);
  };
  protoOf($serializer_43).pja = function (encoder, value) {
    var tmp0_desc = this.oja_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.e8h_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.e8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.f8h_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.f8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.g8h_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.g8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.h8h_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.h8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.i8h_1.equals(get_UNSET_DISTANT_FUTURE())) {
      tmp1_output.f49(tmp0_desc, 4, value.i8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.j8h_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 5, value.j8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !equals(value.k8h_1, 0.0)) {
      tmp1_output.g49(tmp0_desc, 6, value.k8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.l8h_1 === true)) {
      tmp1_output.b49(tmp0_desc, 7, value.l8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.m8h_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.m8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.n8h_1 === 200)) {
      tmp1_output.e49(tmp0_desc, 9, value.n8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !value.o8h_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 10, value.o8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !value.p8h_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 11, value.p8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !(value.q8h_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 12, value.q8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !value.r8h_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 13, value.r8h_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_43).e44 = function (encoder, value) {
    return this.pja(encoder, value instanceof ClazzEnrolment ? value : THROW_CCE());
  };
  var $serializer_instance_43;
  function $serializer_getInstance_43() {
    if ($serializer_instance_43 == null)
      new $serializer_43();
    return $serializer_instance_43;
  }
  function ClazzEnrolment_init_$Init$_0(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_43().oja_1);
    }
    if (0 === (seen1 & 1))
      $this.e8h_1 = new Long(0, 0);
    else
      $this.e8h_1 = clazzEnrolmentUid;
    if (0 === (seen1 & 2))
      $this.f8h_1 = new Long(0, 0);
    else
      $this.f8h_1 = clazzEnrolmentPersonUid;
    if (0 === (seen1 & 4))
      $this.g8h_1 = new Long(0, 0);
    else
      $this.g8h_1 = clazzEnrolmentClazzUid;
    if (0 === (seen1 & 8))
      $this.h8h_1 = new Long(0, 0);
    else
      $this.h8h_1 = clazzEnrolmentDateJoined;
    if (0 === (seen1 & 16))
      $this.i8h_1 = get_UNSET_DISTANT_FUTURE();
    else
      $this.i8h_1 = clazzEnrolmentDateLeft;
    if (0 === (seen1 & 32))
      $this.j8h_1 = 0;
    else
      $this.j8h_1 = clazzEnrolmentRole;
    if (0 === (seen1 & 64))
      $this.k8h_1 = 0.0;
    else
      $this.k8h_1 = clazzEnrolmentAttendancePercentage;
    if (0 === (seen1 & 128))
      $this.l8h_1 = true;
    else
      $this.l8h_1 = clazzEnrolmentActive;
    if (0 === (seen1 & 256))
      $this.m8h_1 = new Long(0, 0);
    else
      $this.m8h_1 = clazzEnrolmentLeavingReasonUid;
    if (0 === (seen1 & 512))
      $this.n8h_1 = 200;
    else
      $this.n8h_1 = clazzEnrolmentOutcome;
    if (0 === (seen1 & 1024))
      $this.o8h_1 = new Long(0, 0);
    else
      $this.o8h_1 = clazzEnrolmentLocalChangeSeqNum;
    if (0 === (seen1 & 2048))
      $this.p8h_1 = new Long(0, 0);
    else
      $this.p8h_1 = clazzEnrolmentMasterChangeSeqNum;
    if (0 === (seen1 & 4096))
      $this.q8h_1 = 0;
    else
      $this.q8h_1 = clazzEnrolmentLastChangedBy;
    if (0 === (seen1 & 8192))
      $this.r8h_1 = new Long(0, 0);
    else
      $this.r8h_1 = clazzEnrolmentLct;
    return $this;
  }
  function ClazzEnrolment_init_$Create$_0(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, serializationConstructorMarker) {
    return ClazzEnrolment_init_$Init$_0(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, serializationConstructorMarker, objectCreate(protoOf(ClazzEnrolment)));
  }
  function ClazzEnrolment() {
    this.e8h_1 = new Long(0, 0);
    this.f8h_1 = new Long(0, 0);
    this.g8h_1 = new Long(0, 0);
    this.h8h_1 = new Long(0, 0);
    this.i8h_1 = get_UNSET_DISTANT_FUTURE();
    this.j8h_1 = 0;
    this.k8h_1 = 0.0;
    this.l8h_1 = true;
    this.m8h_1 = new Long(0, 0);
    this.n8h_1 = 200;
    this.o8h_1 = new Long(0, 0);
    this.p8h_1 = new Long(0, 0);
    this.q8h_1 = 0;
    this.r8h_1 = new Long(0, 0);
  }
  function Companion_47() {
  }
  protoOf(Companion_47).a4r = function () {
    return $serializer_getInstance_44();
  };
  var Companion_instance_48;
  function Companion_getInstance_50() {
    return Companion_instance_48;
  }
  function $serializer_44() {
    $serializer_instance_44 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzEnrolmentWithLeavingReason', this, 16);
    tmp0_serialDesc.g4f('clazzEnrolmentUid', true);
    tmp0_serialDesc.g4f('clazzEnrolmentPersonUid', true);
    tmp0_serialDesc.g4f('clazzEnrolmentClazzUid', true);
    tmp0_serialDesc.g4f('clazzEnrolmentDateJoined', true);
    tmp0_serialDesc.g4f('clazzEnrolmentDateLeft', true);
    tmp0_serialDesc.g4f('clazzEnrolmentRole', true);
    tmp0_serialDesc.g4f('clazzEnrolmentAttendancePercentage', true);
    tmp0_serialDesc.g4f('clazzEnrolmentActive', true);
    tmp0_serialDesc.g4f('clazzEnrolmentLeavingReasonUid', true);
    tmp0_serialDesc.g4f('clazzEnrolmentOutcome', true);
    tmp0_serialDesc.g4f('clazzEnrolmentLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('clazzEnrolmentMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('clazzEnrolmentLastChangedBy', true);
    tmp0_serialDesc.g4f('clazzEnrolmentLct', true);
    tmp0_serialDesc.g4f('leavingReason', true);
    tmp0_serialDesc.g4f('timeZone', true);
    this.qja_1 = tmp0_serialDesc;
  }
  protoOf($serializer_44).d44 = function () {
    return this.qja_1;
  };
  protoOf($serializer_44).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), FloatSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_85()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_44).f44 = function (decoder) {
    var tmp0_desc = this.qja_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = 0;
    var tmp10_local6 = 0.0;
    var tmp11_local7 = false;
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = 0;
    var tmp14_local10 = new Long(0, 0);
    var tmp15_local11 = new Long(0, 0);
    var tmp16_local12 = 0;
    var tmp17_local13 = new Long(0, 0);
    var tmp18_local14 = null;
    var tmp19_local15 = null;
    var tmp20_input = decoder.v47(tmp0_desc);
    if (tmp20_input.k48()) {
      tmp4_local0 = tmp20_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp20_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp20_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp20_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp20_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp20_input.a48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp20_input.c48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp20_input.x47(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp20_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp20_input.a48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp20_input.b48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp20_input.b48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp20_input.a48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp20_input.b48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp20_input.j48(tmp0_desc, 14, $serializer_getInstance_85(), tmp18_local14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp20_input.j48(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp20_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp20_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp20_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp20_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp20_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp20_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp20_input.a48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp20_input.c48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp20_input.x47(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp20_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp20_input.a48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp20_input.b48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp20_input.b48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp20_input.a48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp20_input.b48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp20_input.j48(tmp0_desc, 14, $serializer_getInstance_85(), tmp18_local14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp20_input.j48(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp20_input.w47(tmp0_desc);
    return ClazzEnrolmentWithLeavingReason_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null);
  };
  protoOf($serializer_44).rja = function (encoder, value) {
    var tmp0_desc = this.qja_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.e8h_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.e8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.f8h_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.f8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.g8h_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.g8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.h8h_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.h8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.i8h_1.equals(get_UNSET_DISTANT_FUTURE())) {
      tmp1_output.f49(tmp0_desc, 4, value.i8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.j8h_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 5, value.j8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !equals(value.k8h_1, 0.0)) {
      tmp1_output.g49(tmp0_desc, 6, value.k8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.l8h_1 === true)) {
      tmp1_output.b49(tmp0_desc, 7, value.l8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.m8h_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.m8h_1);
    }
    var tmp;
    if (tmp1_output.r49(tmp0_desc, 9)) {
      tmp = true;
    } else {
      var tmp_0 = value.n8h_1;
      tmp = !(tmp_0 === 200);
    }
    if (tmp) {
      tmp1_output.e49(tmp0_desc, 9, value.n8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !value.o8h_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 10, value.o8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !value.p8h_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 11, value.p8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !(value.q8h_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 12, value.q8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !value.r8h_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 13, value.r8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 14) ? true : !(value.r93_1 == null)) {
      tmp1_output.n49(tmp0_desc, 14, $serializer_getInstance_85(), value.r93_1);
    }
    if (tmp1_output.r49(tmp0_desc, 15) ? true : !(value.s93_1 == null)) {
      tmp1_output.n49(tmp0_desc, 15, StringSerializer_getInstance(), value.s93_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_44).e44 = function (encoder, value) {
    return this.rja(encoder, value instanceof ClazzEnrolmentWithLeavingReason ? value : THROW_CCE());
  };
  var $serializer_instance_44;
  function $serializer_getInstance_44() {
    if ($serializer_instance_44 == null)
      new $serializer_44();
    return $serializer_instance_44;
  }
  function ClazzEnrolmentWithLeavingReason_init_$Init$(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, leavingReason, timeZone, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_44().qja_1);
    }
    ClazzEnrolment_init_$Init$_0(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, serializationConstructorMarker, $this);
    if (0 === (seen1 & 16384))
      $this.r93_1 = null;
    else
      $this.r93_1 = leavingReason;
    if (0 === (seen1 & 32768))
      $this.s93_1 = null;
    else
      $this.s93_1 = timeZone;
    return $this;
  }
  function ClazzEnrolmentWithLeavingReason_init_$Create$(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, leavingReason, timeZone, serializationConstructorMarker) {
    return ClazzEnrolmentWithLeavingReason_init_$Init$(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, leavingReason, timeZone, serializationConstructorMarker, objectCreate(protoOf(ClazzEnrolmentWithLeavingReason)));
  }
  function ClazzEnrolmentWithLeavingReason() {
    ClazzEnrolment.call(this);
    this.r93_1 = null;
    this.s93_1 = null;
  }
  function Companion_48() {
    this.sja_1 = 14;
    this.tja_1 = 0;
    this.uja_1 = 1;
    this.vja_1 = 2;
    this.wja_1 = 4;
    this.xja_1 = 8;
    this.yja_1 = 16;
  }
  protoOf(Companion_48).a4r = function () {
    return $serializer_getInstance_45();
  };
  var Companion_instance_49;
  function Companion_getInstance_51() {
    return Companion_instance_49;
  }
  function $serializer_45() {
    $serializer_instance_45 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzLog', this, 16);
    tmp0_serialDesc.g4f('clazzLogUid', true);
    tmp0_serialDesc.g4f('clazzLogClazzUid', true);
    tmp0_serialDesc.g4f('logDate', true);
    tmp0_serialDesc.g4f('timeRecorded', true);
    tmp0_serialDesc.g4f('clazzLogDone', true);
    tmp0_serialDesc.g4f('cancellationNote', true);
    tmp0_serialDesc.g4f('clazzLogCancelled', true);
    tmp0_serialDesc.g4f('clazzLogNumPresent', true);
    tmp0_serialDesc.g4f('clazzLogNumAbsent', true);
    tmp0_serialDesc.g4f('clazzLogNumPartial', true);
    tmp0_serialDesc.g4f('clazzLogScheduleUid', true);
    tmp0_serialDesc.g4f('clazzLogStatusFlag', true);
    tmp0_serialDesc.g4f('clazzLogMSQN', true);
    tmp0_serialDesc.g4f('clazzLogLCSN', true);
    tmp0_serialDesc.g4f('clazzLogLCB', true);
    tmp0_serialDesc.g4f('clazzLogLastChangedTime', true);
    this.zja_1 = tmp0_serialDesc;
  }
  protoOf($serializer_45).d44 = function () {
    return this.zja_1;
  };
  protoOf($serializer_45).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_45).f44 = function (decoder) {
    var tmp0_desc = this.zja_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = false;
    var tmp9_local5 = null;
    var tmp10_local6 = false;
    var tmp11_local7 = 0;
    var tmp12_local8 = 0;
    var tmp13_local9 = 0;
    var tmp14_local10 = new Long(0, 0);
    var tmp15_local11 = 0;
    var tmp16_local12 = new Long(0, 0);
    var tmp17_local13 = new Long(0, 0);
    var tmp18_local14 = 0;
    var tmp19_local15 = new Long(0, 0);
    var tmp20_input = decoder.v47(tmp0_desc);
    if (tmp20_input.k48()) {
      tmp4_local0 = tmp20_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp20_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp20_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp20_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp20_input.x47(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp20_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp20_input.x47(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp20_input.a48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp20_input.a48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp20_input.a48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp20_input.b48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp20_input.a48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp20_input.b48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp20_input.b48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp20_input.a48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp20_input.b48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp20_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp20_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp20_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp20_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp20_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp20_input.x47(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp20_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp20_input.x47(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp20_input.a48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp20_input.a48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp20_input.a48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp20_input.b48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp20_input.a48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp20_input.b48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp20_input.b48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp20_input.a48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp20_input.b48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp20_input.w47(tmp0_desc);
    return ClazzLog_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null);
  };
  protoOf($serializer_45).ajb = function (encoder, value) {
    var tmp0_desc = this.zja_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.z9p_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.z9p_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.a9q_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.a9q_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.b9q_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.b9q_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.c9q_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.c9q_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.d9q_1 === false)) {
      tmp1_output.b49(tmp0_desc, 4, value.d9q_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.e9q_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.e9q_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.f9q_1 === false)) {
      tmp1_output.b49(tmp0_desc, 6, value.f9q_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.g9q_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 7, value.g9q_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.h9q_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 8, value.h9q_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.i9q_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 9, value.i9q_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !value.j9q_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 10, value.j9q_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !(value.k9q_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 11, value.k9q_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !value.l9q_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 12, value.l9q_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !value.m9q_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 13, value.m9q_1);
    }
    if (tmp1_output.r49(tmp0_desc, 14) ? true : !(value.n9q_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 14, value.n9q_1);
    }
    if (tmp1_output.r49(tmp0_desc, 15) ? true : !value.o9q_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 15, value.o9q_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_45).e44 = function (encoder, value) {
    return this.ajb(encoder, value instanceof ClazzLog ? value : THROW_CCE());
  };
  var $serializer_instance_45;
  function $serializer_getInstance_45() {
    if ($serializer_instance_45 == null)
      new $serializer_45();
    return $serializer_instance_45;
  }
  function ClazzLog_init_$Init$(seen1, clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_45().zja_1);
    }
    if (0 === (seen1 & 1))
      $this.z9p_1 = new Long(0, 0);
    else
      $this.z9p_1 = clazzLogUid;
    if (0 === (seen1 & 2))
      $this.a9q_1 = new Long(0, 0);
    else
      $this.a9q_1 = clazzLogClazzUid;
    if (0 === (seen1 & 4))
      $this.b9q_1 = new Long(0, 0);
    else
      $this.b9q_1 = logDate;
    if (0 === (seen1 & 8))
      $this.c9q_1 = new Long(0, 0);
    else
      $this.c9q_1 = timeRecorded;
    if (0 === (seen1 & 16))
      $this.d9q_1 = false;
    else
      $this.d9q_1 = clazzLogDone;
    if (0 === (seen1 & 32))
      $this.e9q_1 = null;
    else
      $this.e9q_1 = cancellationNote;
    if (0 === (seen1 & 64))
      $this.f9q_1 = false;
    else
      $this.f9q_1 = clazzLogCancelled;
    if (0 === (seen1 & 128))
      $this.g9q_1 = 0;
    else
      $this.g9q_1 = clazzLogNumPresent;
    if (0 === (seen1 & 256))
      $this.h9q_1 = 0;
    else
      $this.h9q_1 = clazzLogNumAbsent;
    if (0 === (seen1 & 512))
      $this.i9q_1 = 0;
    else
      $this.i9q_1 = clazzLogNumPartial;
    if (0 === (seen1 & 1024))
      $this.j9q_1 = new Long(0, 0);
    else
      $this.j9q_1 = clazzLogScheduleUid;
    if (0 === (seen1 & 2048))
      $this.k9q_1 = 0;
    else
      $this.k9q_1 = clazzLogStatusFlag;
    if (0 === (seen1 & 4096))
      $this.l9q_1 = new Long(0, 0);
    else
      $this.l9q_1 = clazzLogMSQN;
    if (0 === (seen1 & 8192))
      $this.m9q_1 = new Long(0, 0);
    else
      $this.m9q_1 = clazzLogLCSN;
    if (0 === (seen1 & 16384))
      $this.n9q_1 = 0;
    else
      $this.n9q_1 = clazzLogLCB;
    if (0 === (seen1 & 32768))
      $this.o9q_1 = new Long(0, 0);
    else
      $this.o9q_1 = clazzLogLastChangedTime;
    return $this;
  }
  function ClazzLog_init_$Create$(seen1, clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime, serializationConstructorMarker) {
    return ClazzLog_init_$Init$(seen1, clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime, serializationConstructorMarker, objectCreate(protoOf(ClazzLog)));
  }
  function ClazzLog() {
    this.z9p_1 = new Long(0, 0);
    this.a9q_1 = new Long(0, 0);
    this.b9q_1 = new Long(0, 0);
    this.c9q_1 = new Long(0, 0);
    this.d9q_1 = false;
    this.e9q_1 = null;
    this.f9q_1 = false;
    this.g9q_1 = 0;
    this.h9q_1 = 0;
    this.i9q_1 = 0;
    this.j9q_1 = new Long(0, 0);
    this.k9q_1 = 0;
    this.l9q_1 = new Long(0, 0);
    this.m9q_1 = new Long(0, 0);
    this.n9q_1 = 0;
    this.o9q_1 = new Long(0, 0);
  }
  protoOf(ClazzLog).equals = function (other) {
    if (this === other)
      return true;
    if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
      return false;
    if (!(other instanceof ClazzLog))
      THROW_CCE();
    if (!this.z9p_1.equals(other.z9p_1))
      return false;
    if (!this.a9q_1.equals(other.a9q_1))
      return false;
    if (!this.b9q_1.equals(other.b9q_1))
      return false;
    if (!this.c9q_1.equals(other.c9q_1))
      return false;
    if (!(this.d9q_1 === other.d9q_1))
      return false;
    if (!(this.e9q_1 == other.e9q_1))
      return false;
    if (!(this.f9q_1 === other.f9q_1))
      return false;
    if (!(this.g9q_1 === other.g9q_1))
      return false;
    if (!(this.h9q_1 === other.h9q_1))
      return false;
    if (!(this.i9q_1 === other.i9q_1))
      return false;
    if (!this.j9q_1.equals(other.j9q_1))
      return false;
    if (!(this.k9q_1 === other.k9q_1))
      return false;
    if (!this.l9q_1.equals(other.l9q_1))
      return false;
    if (!this.m9q_1.equals(other.m9q_1))
      return false;
    if (!(this.n9q_1 === other.n9q_1))
      return false;
    if (!this.o9q_1.equals(other.o9q_1))
      return false;
    return true;
  };
  protoOf(ClazzLog).hashCode = function () {
    var result = this.z9p_1.hashCode();
    result = imul(31, result) + this.a9q_1.hashCode() | 0;
    result = imul(31, result) + this.b9q_1.hashCode() | 0;
    result = imul(31, result) + this.c9q_1.hashCode() | 0;
    result = imul(31, result) + getBooleanHashCode(this.d9q_1) | 0;
    var tmp = imul(31, result);
    var tmp0_safe_receiver = this.e9q_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
    result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
    result = imul(31, result) + getBooleanHashCode(this.f9q_1) | 0;
    result = imul(31, result) + this.g9q_1 | 0;
    result = imul(31, result) + this.h9q_1 | 0;
    result = imul(31, result) + this.i9q_1 | 0;
    result = imul(31, result) + this.j9q_1.hashCode() | 0;
    result = imul(31, result) + this.k9q_1 | 0;
    result = imul(31, result) + this.l9q_1.hashCode() | 0;
    result = imul(31, result) + this.m9q_1.hashCode() | 0;
    result = imul(31, result) + this.n9q_1 | 0;
    result = imul(31, result) + this.o9q_1.hashCode() | 0;
    return result;
  };
  function Companion_49() {
    this.bjb_1 = 15;
    this.cjb_1 = 1;
    this.djb_1 = 2;
    this.ejb_1 = 4;
    this.fjb_1 = 0.8;
    this.gjb_1 = 0.6;
  }
  var Companion_instance_50;
  function Companion_getInstance_52() {
    return Companion_instance_50;
  }
  function $serializer_46() {
    $serializer_instance_46 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzLogAttendanceRecord', this, 8);
    tmp0_serialDesc.g4f('clazzLogAttendanceRecordUid', true);
    tmp0_serialDesc.g4f('clazzLogAttendanceRecordClazzLogUid', true);
    tmp0_serialDesc.g4f('clazzLogAttendanceRecordPersonUid', true);
    tmp0_serialDesc.g4f('attendanceStatus', true);
    tmp0_serialDesc.g4f('clazzLogAttendanceRecordMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('clazzLogAttendanceRecordLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('clazzLogAttendanceRecordLastChangedBy', true);
    tmp0_serialDesc.g4f('clazzLogAttendanceRecordLastChangedTime', true);
    this.hjb_1 = tmp0_serialDesc;
  }
  protoOf($serializer_46).d44 = function () {
    return this.hjb_1;
  };
  protoOf($serializer_46).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_46).f44 = function (decoder) {
    var tmp0_desc = this.hjb_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = 0;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = 0;
    var tmp11_local7 = new Long(0, 0);
    var tmp12_input = decoder.v47(tmp0_desc);
    if (tmp12_input.k48()) {
      tmp4_local0 = tmp12_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.a48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.a48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.a48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.a48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.w47(tmp0_desc);
    return ClazzLogAttendanceRecord_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
  };
  protoOf($serializer_46).ijb = function (encoder, value) {
    var tmp0_desc = this.hjb_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.t9k_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.t9k_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.u9k_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.u9k_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.v9k_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.v9k_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.w9k_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 3, value.w9k_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.x9k_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.x9k_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.y9k_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.y9k_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.z9k_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 6, value.z9k_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.a9l_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.a9l_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_46).e44 = function (encoder, value) {
    return this.ijb(encoder, value instanceof ClazzLogAttendanceRecord ? value : THROW_CCE());
  };
  var $serializer_instance_46;
  function $serializer_getInstance_46() {
    if ($serializer_instance_46 == null)
      new $serializer_46();
    return $serializer_instance_46;
  }
  function ClazzLogAttendanceRecord_init_$Init$(seen1, clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_46().hjb_1);
    }
    if (0 === (seen1 & 1))
      $this.t9k_1 = new Long(0, 0);
    else
      $this.t9k_1 = clazzLogAttendanceRecordUid;
    if (0 === (seen1 & 2))
      $this.u9k_1 = new Long(0, 0);
    else
      $this.u9k_1 = clazzLogAttendanceRecordClazzLogUid;
    if (0 === (seen1 & 4))
      $this.v9k_1 = new Long(0, 0);
    else
      $this.v9k_1 = clazzLogAttendanceRecordPersonUid;
    if (0 === (seen1 & 8))
      $this.w9k_1 = 0;
    else
      $this.w9k_1 = attendanceStatus;
    if (0 === (seen1 & 16))
      $this.x9k_1 = new Long(0, 0);
    else
      $this.x9k_1 = clazzLogAttendanceRecordMasterChangeSeqNum;
    if (0 === (seen1 & 32))
      $this.y9k_1 = new Long(0, 0);
    else
      $this.y9k_1 = clazzLogAttendanceRecordLocalChangeSeqNum;
    if (0 === (seen1 & 64))
      $this.z9k_1 = 0;
    else
      $this.z9k_1 = clazzLogAttendanceRecordLastChangedBy;
    if (0 === (seen1 & 128))
      $this.a9l_1 = new Long(0, 0);
    else
      $this.a9l_1 = clazzLogAttendanceRecordLastChangedTime;
    return $this;
  }
  function ClazzLogAttendanceRecord_init_$Create$(seen1, clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime, serializationConstructorMarker) {
    return ClazzLogAttendanceRecord_init_$Init$(seen1, clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime, serializationConstructorMarker, objectCreate(protoOf(ClazzLogAttendanceRecord)));
  }
  function ClazzLogAttendanceRecord() {
    this.t9k_1 = new Long(0, 0);
    this.u9k_1 = new Long(0, 0);
    this.v9k_1 = new Long(0, 0);
    this.w9k_1 = 0;
    this.x9k_1 = new Long(0, 0);
    this.y9k_1 = new Long(0, 0);
    this.z9k_1 = 0;
    this.a9l_1 = new Long(0, 0);
  }
  protoOf(ClazzLogAttendanceRecord).equals = function (other) {
    if (this === other)
      return true;
    if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
      return false;
    if (!(other instanceof ClazzLogAttendanceRecord))
      THROW_CCE();
    if (!this.t9k_1.equals(other.t9k_1))
      return false;
    if (!this.u9k_1.equals(other.u9k_1))
      return false;
    if (!this.v9k_1.equals(other.v9k_1))
      return false;
    if (!(this.w9k_1 === other.w9k_1))
      return false;
    if (!this.x9k_1.equals(other.x9k_1))
      return false;
    if (!this.y9k_1.equals(other.y9k_1))
      return false;
    if (!(this.z9k_1 === other.z9k_1))
      return false;
    return true;
  };
  protoOf(ClazzLogAttendanceRecord).hashCode = function () {
    var result = this.t9k_1.hashCode();
    result = imul(31, result) + this.u9k_1.hashCode() | 0;
    result = imul(31, result) + this.v9k_1.hashCode() | 0;
    result = imul(31, result) + this.w9k_1 | 0;
    result = imul(31, result) + this.x9k_1.hashCode() | 0;
    result = imul(31, result) + this.y9k_1.hashCode() | 0;
    result = imul(31, result) + this.z9k_1 | 0;
    return result;
  };
  function Companion_50() {
  }
  protoOf(Companion_50).a4r = function () {
    return $serializer_getInstance_47();
  };
  var Companion_instance_51;
  function Companion_getInstance_53() {
    return Companion_instance_51;
  }
  function $serializer_47() {
    $serializer_instance_47 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzWithHolidayCalendarAndAndTerminology', this, 28);
    tmp0_serialDesc.g4f('clazzUid', true);
    tmp0_serialDesc.g4f('clazzName', true);
    tmp0_serialDesc.g4f('clazzDesc', true);
    tmp0_serialDesc.g4f('attendanceAverage', true);
    tmp0_serialDesc.g4f('clazzHolidayUMCalendarUid', true);
    tmp0_serialDesc.g4f('clazzScheuleUMCalendarUid', true);
    tmp0_serialDesc.g4f('isClazzActive', true);
    tmp0_serialDesc.g4f('clazzLocationUid', true);
    tmp0_serialDesc.g4f('clazzStartTime', true);
    tmp0_serialDesc.g4f('clazzEndTime', true);
    tmp0_serialDesc.g4f('clazzFeatures', true);
    tmp0_serialDesc.g4f('clazzSchoolUid', true);
    tmp0_serialDesc.g4f('clazzEnrolmentPolicy', true);
    tmp0_serialDesc.g4f('clazzTerminologyUid', true);
    tmp0_serialDesc.g4f('clazzMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('clazzLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('clazzLastChangedBy', true);
    tmp0_serialDesc.g4f('clazzLct', true);
    tmp0_serialDesc.g4f('clazzTimeZone', true);
    tmp0_serialDesc.g4f('clazzStudentsPersonGroupUid', true);
    tmp0_serialDesc.g4f('clazzTeachersPersonGroupUid', true);
    tmp0_serialDesc.g4f('clazzPendingStudentsPersonGroupUid', true);
    tmp0_serialDesc.g4f('clazzParentsPersonGroupUid', true);
    tmp0_serialDesc.g4f('clazzCode', true);
    tmp0_serialDesc.g4f('clazzOwnerPersonUid', true);
    tmp0_serialDesc.g4f('holidayCalendar', true);
    tmp0_serialDesc.g4f('terminology', true);
    tmp0_serialDesc.g4f('coursePicture', true);
    this.jjb_1 = tmp0_serialDesc;
  }
  protoOf($serializer_47).d44 = function () {
    return this.jjb_1;
  };
  protoOf($serializer_47).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), FloatSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable($serializer_getInstance_81()), get_nullable($serializer_getInstance_74()), get_nullable($serializer_getInstance_73())];
  };
  protoOf($serializer_47).f44 = function (decoder) {
    var tmp0_desc = this.jjb_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = 0.0;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = false;
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = new Long(0, 0);
    var tmp14_local10 = new Long(0, 0);
    var tmp15_local11 = new Long(0, 0);
    var tmp16_local12 = 0;
    var tmp17_local13 = new Long(0, 0);
    var tmp18_local14 = new Long(0, 0);
    var tmp19_local15 = new Long(0, 0);
    var tmp20_local16 = 0;
    var tmp21_local17 = new Long(0, 0);
    var tmp22_local18 = null;
    var tmp23_local19 = new Long(0, 0);
    var tmp24_local20 = new Long(0, 0);
    var tmp25_local21 = new Long(0, 0);
    var tmp26_local22 = new Long(0, 0);
    var tmp27_local23 = null;
    var tmp28_local24 = new Long(0, 0);
    var tmp29_local25 = null;
    var tmp30_local26 = null;
    var tmp31_local27 = null;
    var tmp32_input = decoder.v47(tmp0_desc);
    if (tmp32_input.k48()) {
      tmp4_local0 = tmp32_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp32_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp32_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp32_input.c48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp32_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp32_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp32_input.x47(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp32_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp32_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp32_input.b48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp32_input.b48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp32_input.b48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp32_input.a48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp32_input.b48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp32_input.b48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp32_input.b48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp32_input.a48(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp32_input.b48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp32_input.j48(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp32_input.b48(tmp0_desc, 19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp24_local20 = tmp32_input.b48(tmp0_desc, 20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp25_local21 = tmp32_input.b48(tmp0_desc, 21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp26_local22 = tmp32_input.b48(tmp0_desc, 22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
      tmp27_local23 = tmp32_input.j48(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23);
      tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
      tmp28_local24 = tmp32_input.b48(tmp0_desc, 24);
      tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
      tmp29_local25 = tmp32_input.j48(tmp0_desc, 25, $serializer_getInstance_81(), tmp29_local25);
      tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
      tmp30_local26 = tmp32_input.j48(tmp0_desc, 26, $serializer_getInstance_74(), tmp30_local26);
      tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
      tmp31_local27 = tmp32_input.j48(tmp0_desc, 27, $serializer_getInstance_73(), tmp31_local27);
      tmp3_bitMask0 = tmp3_bitMask0 | 134217728;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp32_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp32_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp32_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp32_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp32_input.c48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp32_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp32_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp32_input.x47(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp32_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp32_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp32_input.b48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp32_input.b48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp32_input.b48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp32_input.a48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp32_input.b48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp32_input.b48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp32_input.b48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp32_input.a48(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp32_input.b48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp32_input.j48(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp32_input.b48(tmp0_desc, 19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp24_local20 = tmp32_input.b48(tmp0_desc, 20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp25_local21 = tmp32_input.b48(tmp0_desc, 21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp26_local22 = tmp32_input.b48(tmp0_desc, 22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          case 23:
            tmp27_local23 = tmp32_input.j48(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23);
            tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
            break;
          case 24:
            tmp28_local24 = tmp32_input.b48(tmp0_desc, 24);
            tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
            break;
          case 25:
            tmp29_local25 = tmp32_input.j48(tmp0_desc, 25, $serializer_getInstance_81(), tmp29_local25);
            tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
            break;
          case 26:
            tmp30_local26 = tmp32_input.j48(tmp0_desc, 26, $serializer_getInstance_74(), tmp30_local26);
            tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
            break;
          case 27:
            tmp31_local27 = tmp32_input.j48(tmp0_desc, 27, $serializer_getInstance_73(), tmp31_local27);
            tmp3_bitMask0 = tmp3_bitMask0 | 134217728;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp32_input.w47(tmp0_desc);
    return ClazzWithHolidayCalendarAndAndTerminology_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, tmp28_local24, tmp29_local25, tmp30_local26, tmp31_local27, null);
  };
  protoOf($serializer_47).kjb = function (encoder, value) {
    var tmp0_desc = this.jjb_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.u8c_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.u8c_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.v8c_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.v8c_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.w8c_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.w8c_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !equals(value.x8c_1, -1.0)) {
      tmp1_output.g49(tmp0_desc, 3, value.x8c_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.y8c_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.y8c_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.z8c_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.z8c_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.a8d_1 === false)) {
      tmp1_output.b49(tmp0_desc, 6, value.a8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.b8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.b8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.c8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.c8d_1);
    }
    var tmp;
    if (tmp1_output.r49(tmp0_desc, 9)) {
      tmp = true;
    } else {
      var tmp_0 = value.d8d_1;
      Companion_getInstance();
      tmp = !tmp_0.equals(new Long(-1, 2147483647));
    }
    if (tmp) {
      tmp1_output.f49(tmp0_desc, 9, value.d8d_1);
    }
    var tmp_1;
    if (tmp1_output.r49(tmp0_desc, 10)) {
      tmp_1 = true;
    } else {
      var tmp_2 = value.e8d_1;
      Companion_getInstance_46();
      tmp_1 = !tmp_2.equals(new Long(1, 0));
    }
    if (tmp_1) {
      tmp1_output.f49(tmp0_desc, 10, value.e8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !value.f8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 11, value.f8d_1);
    }
    var tmp_3;
    if (tmp1_output.r49(tmp0_desc, 12)) {
      tmp_3 = true;
    } else {
      var tmp_4 = value.g8d_1;
      Companion_getInstance_46();
      tmp_3 = !(tmp_4 === 102);
    }
    if (tmp_3) {
      tmp1_output.e49(tmp0_desc, 12, value.g8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !value.h8d_1.equals(new Long(25966, 0))) {
      tmp1_output.f49(tmp0_desc, 13, value.h8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 14) ? true : !value.i8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 14, value.i8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 15) ? true : !value.j8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 15, value.j8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 16) ? true : !(value.k8d_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 16, value.k8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 17) ? true : !value.l8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 17, value.l8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 18) ? true : !(value.m8d_1 == null)) {
      tmp1_output.n49(tmp0_desc, 18, StringSerializer_getInstance(), value.m8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 19) ? true : !value.n8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 19, value.n8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 20) ? true : !value.o8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 20, value.o8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 21) ? true : !value.p8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 21, value.p8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 22) ? true : !value.q8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 22, value.q8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 23) ? true : !(value.r8d_1 == null)) {
      tmp1_output.n49(tmp0_desc, 23, StringSerializer_getInstance(), value.r8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 24) ? true : !value.s8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 24, value.s8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 25) ? true : !(value.m8f_1 == null)) {
      tmp1_output.n49(tmp0_desc, 25, $serializer_getInstance_81(), value.m8f_1);
    }
    if (tmp1_output.r49(tmp0_desc, 26) ? true : !(value.n8f_1 == null)) {
      tmp1_output.n49(tmp0_desc, 26, $serializer_getInstance_74(), value.n8f_1);
    }
    if (tmp1_output.r49(tmp0_desc, 27) ? true : !(value.o8f_1 == null)) {
      tmp1_output.n49(tmp0_desc, 27, $serializer_getInstance_73(), value.o8f_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_47).e44 = function (encoder, value) {
    return this.kjb(encoder, value instanceof ClazzWithHolidayCalendarAndAndTerminology ? value : THROW_CCE());
  };
  var $serializer_instance_47;
  function $serializer_getInstance_47() {
    if ($serializer_instance_47 == null)
      new $serializer_47();
    return $serializer_instance_47;
  }
  function ClazzWithHolidayCalendarAndAndTerminology_init_$Init$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, holidayCalendar, terminology, coursePicture, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_47().jjb_1);
    }
    Clazz_init_$Init$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, serializationConstructorMarker, $this);
    if (0 === (seen1 & 33554432))
      $this.m8f_1 = null;
    else
      $this.m8f_1 = holidayCalendar;
    if (0 === (seen1 & 67108864))
      $this.n8f_1 = null;
    else
      $this.n8f_1 = terminology;
    if (0 === (seen1 & 134217728))
      $this.o8f_1 = null;
    else
      $this.o8f_1 = coursePicture;
    return $this;
  }
  function ClazzWithHolidayCalendarAndAndTerminology_init_$Create$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, holidayCalendar, terminology, coursePicture, serializationConstructorMarker) {
    return ClazzWithHolidayCalendarAndAndTerminology_init_$Init$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, holidayCalendar, terminology, coursePicture, serializationConstructorMarker, objectCreate(protoOf(ClazzWithHolidayCalendarAndAndTerminology)));
  }
  function ClazzWithHolidayCalendarAndAndTerminology() {
    Clazz.call(this);
    this.m8f_1 = null;
    this.n8f_1 = null;
    this.o8f_1 = null;
  }
  protoOf(ClazzWithHolidayCalendarAndAndTerminology).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ClazzWithHolidayCalendarAndAndTerminology))
      return false;
    if (!protoOf(Clazz).equals.call(this, other))
      return false;
    if (!equals(this.m8f_1, other.m8f_1))
      return false;
    if (!equals(this.n8f_1, other.n8f_1))
      return false;
    return equals(this.o8f_1, other.o8f_1);
  };
  protoOf(ClazzWithHolidayCalendarAndAndTerminology).hashCode = function () {
    var result = protoOf(Clazz).hashCode.call(this);
    var tmp = imul(31, result);
    var tmp0_safe_receiver = this.m8f_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
    result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
    var tmp_0 = imul(31, result);
    var tmp2_safe_receiver = this.n8f_1;
    var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : hashCode(tmp2_safe_receiver);
    result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0;
    var tmp_1 = imul(31, result);
    var tmp4_safe_receiver = this.o8f_1;
    var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.hashCode();
    result = tmp_1 + (tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs) | 0;
    return result;
  };
  function Companion_51() {
  }
  var Companion_instance_52;
  function Companion_getInstance_54() {
    return Companion_instance_52;
  }
  function $serializer_48() {
    $serializer_instance_48 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzWithListDisplayDetails', this, 32);
    tmp0_serialDesc.g4f('clazzUid', true);
    tmp0_serialDesc.g4f('clazzName', true);
    tmp0_serialDesc.g4f('clazzDesc', true);
    tmp0_serialDesc.g4f('attendanceAverage', true);
    tmp0_serialDesc.g4f('clazzHolidayUMCalendarUid', true);
    tmp0_serialDesc.g4f('clazzScheuleUMCalendarUid', true);
    tmp0_serialDesc.g4f('isClazzActive', true);
    tmp0_serialDesc.g4f('clazzLocationUid', true);
    tmp0_serialDesc.g4f('clazzStartTime', true);
    tmp0_serialDesc.g4f('clazzEndTime', true);
    tmp0_serialDesc.g4f('clazzFeatures', true);
    tmp0_serialDesc.g4f('clazzSchoolUid', true);
    tmp0_serialDesc.g4f('clazzEnrolmentPolicy', true);
    tmp0_serialDesc.g4f('clazzTerminologyUid', true);
    tmp0_serialDesc.g4f('clazzMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('clazzLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('clazzLastChangedBy', true);
    tmp0_serialDesc.g4f('clazzLct', true);
    tmp0_serialDesc.g4f('clazzTimeZone', true);
    tmp0_serialDesc.g4f('clazzStudentsPersonGroupUid', true);
    tmp0_serialDesc.g4f('clazzTeachersPersonGroupUid', true);
    tmp0_serialDesc.g4f('clazzPendingStudentsPersonGroupUid', true);
    tmp0_serialDesc.g4f('clazzParentsPersonGroupUid', true);
    tmp0_serialDesc.g4f('clazzCode', true);
    tmp0_serialDesc.g4f('clazzOwnerPersonUid', true);
    tmp0_serialDesc.g4f('numStudents', true);
    tmp0_serialDesc.g4f('numTeachers', true);
    tmp0_serialDesc.g4f('teacherNames', true);
    tmp0_serialDesc.g4f('lastRecorded', true);
    tmp0_serialDesc.g4f('clazzActiveEnrolment', true);
    tmp0_serialDesc.g4f('terminology', true);
    tmp0_serialDesc.g4f('coursePicture', true);
    this.ljb_1 = tmp0_serialDesc;
  }
  protoOf($serializer_48).d44 = function () {
    return this.ljb_1;
  };
  protoOf($serializer_48).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), FloatSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable($serializer_getInstance_43()), get_nullable($serializer_getInstance_74()), get_nullable($serializer_getInstance_73())];
  };
  protoOf($serializer_48).f44 = function (decoder) {
    var tmp0_desc = this.ljb_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp5_local0 = new Long(0, 0);
    var tmp6_local1 = null;
    var tmp7_local2 = null;
    var tmp8_local3 = 0.0;
    var tmp9_local4 = new Long(0, 0);
    var tmp10_local5 = new Long(0, 0);
    var tmp11_local6 = false;
    var tmp12_local7 = new Long(0, 0);
    var tmp13_local8 = new Long(0, 0);
    var tmp14_local9 = new Long(0, 0);
    var tmp15_local10 = new Long(0, 0);
    var tmp16_local11 = new Long(0, 0);
    var tmp17_local12 = 0;
    var tmp18_local13 = new Long(0, 0);
    var tmp19_local14 = new Long(0, 0);
    var tmp20_local15 = new Long(0, 0);
    var tmp21_local16 = 0;
    var tmp22_local17 = new Long(0, 0);
    var tmp23_local18 = null;
    var tmp24_local19 = new Long(0, 0);
    var tmp25_local20 = new Long(0, 0);
    var tmp26_local21 = new Long(0, 0);
    var tmp27_local22 = new Long(0, 0);
    var tmp28_local23 = null;
    var tmp29_local24 = new Long(0, 0);
    var tmp30_local25 = 0;
    var tmp31_local26 = 0;
    var tmp32_local27 = null;
    var tmp33_local28 = new Long(0, 0);
    var tmp34_local29 = null;
    var tmp35_local30 = null;
    var tmp36_local31 = null;
    var tmp37_input = decoder.v47(tmp0_desc);
    if (tmp37_input.k48()) {
      tmp5_local0 = tmp37_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp6_local1 = tmp37_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp6_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp7_local2 = tmp37_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp7_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp8_local3 = tmp37_input.c48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp9_local4 = tmp37_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp10_local5 = tmp37_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp11_local6 = tmp37_input.x47(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp12_local7 = tmp37_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp13_local8 = tmp37_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp14_local9 = tmp37_input.b48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp15_local10 = tmp37_input.b48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp16_local11 = tmp37_input.b48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp17_local12 = tmp37_input.a48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp18_local13 = tmp37_input.b48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp19_local14 = tmp37_input.b48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp20_local15 = tmp37_input.b48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp21_local16 = tmp37_input.a48(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp22_local17 = tmp37_input.b48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp23_local18 = tmp37_input.j48(tmp0_desc, 18, StringSerializer_getInstance(), tmp23_local18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp24_local19 = tmp37_input.b48(tmp0_desc, 19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp25_local20 = tmp37_input.b48(tmp0_desc, 20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp26_local21 = tmp37_input.b48(tmp0_desc, 21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp27_local22 = tmp37_input.b48(tmp0_desc, 22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
      tmp28_local23 = tmp37_input.j48(tmp0_desc, 23, StringSerializer_getInstance(), tmp28_local23);
      tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
      tmp29_local24 = tmp37_input.b48(tmp0_desc, 24);
      tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
      tmp30_local25 = tmp37_input.a48(tmp0_desc, 25);
      tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
      tmp31_local26 = tmp37_input.a48(tmp0_desc, 26);
      tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
      tmp32_local27 = tmp37_input.j48(tmp0_desc, 27, StringSerializer_getInstance(), tmp32_local27);
      tmp3_bitMask0 = tmp3_bitMask0 | 134217728;
      tmp33_local28 = tmp37_input.b48(tmp0_desc, 28);
      tmp3_bitMask0 = tmp3_bitMask0 | 268435456;
      tmp34_local29 = tmp37_input.j48(tmp0_desc, 29, $serializer_getInstance_43(), tmp34_local29);
      tmp3_bitMask0 = tmp3_bitMask0 | 536870912;
      tmp35_local30 = tmp37_input.j48(tmp0_desc, 30, $serializer_getInstance_74(), tmp35_local30);
      tmp3_bitMask0 = tmp3_bitMask0 | 1073741824;
      tmp36_local31 = tmp37_input.j48(tmp0_desc, 31, $serializer_getInstance_73(), tmp36_local31);
      tmp3_bitMask0 = tmp3_bitMask0 | -2147483648;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp37_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp5_local0 = tmp37_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp6_local1 = tmp37_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp6_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp7_local2 = tmp37_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp7_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp8_local3 = tmp37_input.c48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp9_local4 = tmp37_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp10_local5 = tmp37_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp11_local6 = tmp37_input.x47(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp12_local7 = tmp37_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp13_local8 = tmp37_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp14_local9 = tmp37_input.b48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp15_local10 = tmp37_input.b48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp16_local11 = tmp37_input.b48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp17_local12 = tmp37_input.a48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp18_local13 = tmp37_input.b48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp19_local14 = tmp37_input.b48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp20_local15 = tmp37_input.b48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp21_local16 = tmp37_input.a48(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp22_local17 = tmp37_input.b48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp23_local18 = tmp37_input.j48(tmp0_desc, 18, StringSerializer_getInstance(), tmp23_local18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp24_local19 = tmp37_input.b48(tmp0_desc, 19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp25_local20 = tmp37_input.b48(tmp0_desc, 20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp26_local21 = tmp37_input.b48(tmp0_desc, 21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp27_local22 = tmp37_input.b48(tmp0_desc, 22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          case 23:
            tmp28_local23 = tmp37_input.j48(tmp0_desc, 23, StringSerializer_getInstance(), tmp28_local23);
            tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
            break;
          case 24:
            tmp29_local24 = tmp37_input.b48(tmp0_desc, 24);
            tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
            break;
          case 25:
            tmp30_local25 = tmp37_input.a48(tmp0_desc, 25);
            tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
            break;
          case 26:
            tmp31_local26 = tmp37_input.a48(tmp0_desc, 26);
            tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
            break;
          case 27:
            tmp32_local27 = tmp37_input.j48(tmp0_desc, 27, StringSerializer_getInstance(), tmp32_local27);
            tmp3_bitMask0 = tmp3_bitMask0 | 134217728;
            break;
          case 28:
            tmp33_local28 = tmp37_input.b48(tmp0_desc, 28);
            tmp3_bitMask0 = tmp3_bitMask0 | 268435456;
            break;
          case 29:
            tmp34_local29 = tmp37_input.j48(tmp0_desc, 29, $serializer_getInstance_43(), tmp34_local29);
            tmp3_bitMask0 = tmp3_bitMask0 | 536870912;
            break;
          case 30:
            tmp35_local30 = tmp37_input.j48(tmp0_desc, 30, $serializer_getInstance_74(), tmp35_local30);
            tmp3_bitMask0 = tmp3_bitMask0 | 1073741824;
            break;
          case 31:
            tmp36_local31 = tmp37_input.j48(tmp0_desc, 31, $serializer_getInstance_73(), tmp36_local31);
            tmp3_bitMask0 = tmp3_bitMask0 | -2147483648;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp37_input.w47(tmp0_desc);
    return ClazzWithListDisplayDetails_init_$Create$(tmp3_bitMask0, 0, tmp5_local0, tmp6_local1, tmp7_local2, tmp8_local3, tmp9_local4, tmp10_local5, tmp11_local6, tmp12_local7, tmp13_local8, tmp14_local9, tmp15_local10, tmp16_local11, tmp17_local12, tmp18_local13, tmp19_local14, tmp20_local15, tmp21_local16, tmp22_local17, tmp23_local18, tmp24_local19, tmp25_local20, tmp26_local21, tmp27_local22, tmp28_local23, tmp29_local24, tmp30_local25, tmp31_local26, tmp32_local27, tmp33_local28, tmp34_local29, tmp35_local30, tmp36_local31, null);
  };
  protoOf($serializer_48).mjb = function (encoder, value) {
    var tmp0_desc = this.ljb_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.u8c_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.u8c_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.v8c_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.v8c_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.w8c_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.w8c_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !equals(value.x8c_1, -1.0)) {
      tmp1_output.g49(tmp0_desc, 3, value.x8c_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.y8c_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.y8c_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.z8c_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.z8c_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.a8d_1 === false)) {
      tmp1_output.b49(tmp0_desc, 6, value.a8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.b8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.b8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.c8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.c8d_1);
    }
    var tmp;
    if (tmp1_output.r49(tmp0_desc, 9)) {
      tmp = true;
    } else {
      var tmp_0 = value.d8d_1;
      Companion_getInstance();
      tmp = !tmp_0.equals(new Long(-1, 2147483647));
    }
    if (tmp) {
      tmp1_output.f49(tmp0_desc, 9, value.d8d_1);
    }
    var tmp_1;
    if (tmp1_output.r49(tmp0_desc, 10)) {
      tmp_1 = true;
    } else {
      var tmp_2 = value.e8d_1;
      Companion_getInstance_46();
      tmp_1 = !tmp_2.equals(new Long(1, 0));
    }
    if (tmp_1) {
      tmp1_output.f49(tmp0_desc, 10, value.e8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !value.f8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 11, value.f8d_1);
    }
    var tmp_3;
    if (tmp1_output.r49(tmp0_desc, 12)) {
      tmp_3 = true;
    } else {
      var tmp_4 = value.g8d_1;
      Companion_getInstance_46();
      tmp_3 = !(tmp_4 === 102);
    }
    if (tmp_3) {
      tmp1_output.e49(tmp0_desc, 12, value.g8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !value.h8d_1.equals(new Long(25966, 0))) {
      tmp1_output.f49(tmp0_desc, 13, value.h8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 14) ? true : !value.i8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 14, value.i8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 15) ? true : !value.j8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 15, value.j8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 16) ? true : !(value.k8d_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 16, value.k8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 17) ? true : !value.l8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 17, value.l8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 18) ? true : !(value.m8d_1 == null)) {
      tmp1_output.n49(tmp0_desc, 18, StringSerializer_getInstance(), value.m8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 19) ? true : !value.n8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 19, value.n8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 20) ? true : !value.o8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 20, value.o8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 21) ? true : !value.p8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 21, value.p8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 22) ? true : !value.q8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 22, value.q8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 23) ? true : !(value.r8d_1 == null)) {
      tmp1_output.n49(tmp0_desc, 23, StringSerializer_getInstance(), value.r8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 24) ? true : !value.s8d_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 24, value.s8d_1);
    }
    if (tmp1_output.r49(tmp0_desc, 25) ? true : !(value.x8g_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 25, value.x8g_1);
    }
    if (tmp1_output.r49(tmp0_desc, 26) ? true : !(value.y8g_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 26, value.y8g_1);
    }
    if (tmp1_output.r49(tmp0_desc, 27) ? true : !(value.z8g_1 == null)) {
      tmp1_output.n49(tmp0_desc, 27, StringSerializer_getInstance(), value.z8g_1);
    }
    if (tmp1_output.r49(tmp0_desc, 28) ? true : !value.a8h_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 28, value.a8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 29) ? true : !(value.b8h_1 == null)) {
      tmp1_output.n49(tmp0_desc, 29, $serializer_getInstance_43(), value.b8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 30) ? true : !(value.c8h_1 == null)) {
      tmp1_output.n49(tmp0_desc, 30, $serializer_getInstance_74(), value.c8h_1);
    }
    if (tmp1_output.r49(tmp0_desc, 31) ? true : !(value.d8h_1 == null)) {
      tmp1_output.n49(tmp0_desc, 31, $serializer_getInstance_73(), value.d8h_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_48).e44 = function (encoder, value) {
    return this.mjb(encoder, value instanceof ClazzWithListDisplayDetails ? value : THROW_CCE());
  };
  var $serializer_instance_48;
  function $serializer_getInstance_48() {
    if ($serializer_instance_48 == null)
      new $serializer_48();
    return $serializer_instance_48;
  }
  function ClazzWithListDisplayDetails_init_$Init$(seen1, seen2, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, numStudents, numTeachers, teacherNames, lastRecorded, clazzActiveEnrolment, terminology, coursePicture, serializationConstructorMarker, $this) {
    if (!!(!(0 === (0 & seen1)) | !(0 === (0 & seen2)))) {
      // Inline function 'kotlin.intArrayOf' call
      var tmp = new Int32Array([seen1, seen2]);
      // Inline function 'kotlin.intArrayOf' call
      var tmp$ret$1 = new Int32Array([0, 0]);
      throwArrayMissingFieldException(tmp, tmp$ret$1, $serializer_getInstance_48().ljb_1);
    }
    Clazz_init_$Init$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, serializationConstructorMarker, $this);
    if (0 === (seen1 & 33554432))
      $this.x8g_1 = 0;
    else
      $this.x8g_1 = numStudents;
    if (0 === (seen1 & 67108864))
      $this.y8g_1 = 0;
    else
      $this.y8g_1 = numTeachers;
    if (0 === (seen1 & 134217728))
      $this.z8g_1 = null;
    else
      $this.z8g_1 = teacherNames;
    if (0 === (seen1 & 268435456))
      $this.a8h_1 = new Long(0, 0);
    else
      $this.a8h_1 = lastRecorded;
    if (0 === (seen1 & 536870912))
      $this.b8h_1 = null;
    else
      $this.b8h_1 = clazzActiveEnrolment;
    if (0 === (seen1 & 1073741824))
      $this.c8h_1 = null;
    else
      $this.c8h_1 = terminology;
    if (0 === (seen1 & -2147483648))
      $this.d8h_1 = null;
    else
      $this.d8h_1 = coursePicture;
    return $this;
  }
  function ClazzWithListDisplayDetails_init_$Create$(seen1, seen2, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, numStudents, numTeachers, teacherNames, lastRecorded, clazzActiveEnrolment, terminology, coursePicture, serializationConstructorMarker) {
    return ClazzWithListDisplayDetails_init_$Init$(seen1, seen2, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, numStudents, numTeachers, teacherNames, lastRecorded, clazzActiveEnrolment, terminology, coursePicture, serializationConstructorMarker, objectCreate(protoOf(ClazzWithListDisplayDetails)));
  }
  function ClazzWithListDisplayDetails() {
    Clazz.call(this);
    this.x8g_1 = 0;
    this.y8g_1 = 0;
    this.z8g_1 = null;
    this.a8h_1 = new Long(0, 0);
    this.b8h_1 = null;
    this.c8h_1 = null;
    this.d8h_1 = null;
  }
  protoOf(ClazzWithListDisplayDetails).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ClazzWithListDisplayDetails))
      return false;
    if (!protoOf(Clazz).equals.call(this, other))
      return false;
    if (!(this.x8g_1 === other.x8g_1))
      return false;
    if (!(this.y8g_1 === other.y8g_1))
      return false;
    if (!(this.z8g_1 == other.z8g_1))
      return false;
    if (!this.a8h_1.equals(other.a8h_1))
      return false;
    if (!equals(this.b8h_1, other.b8h_1))
      return false;
    if (!equals(this.c8h_1, other.c8h_1))
      return false;
    return equals(this.d8h_1, other.d8h_1);
  };
  protoOf(ClazzWithListDisplayDetails).hashCode = function () {
    var result = protoOf(Clazz).hashCode.call(this);
    result = imul(31, result) + this.x8g_1 | 0;
    result = imul(31, result) + this.y8g_1 | 0;
    var tmp = imul(31, result);
    var tmp0_safe_receiver = this.z8g_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
    result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
    result = imul(31, result) + this.a8h_1.hashCode() | 0;
    var tmp_0 = imul(31, result);
    var tmp2_safe_receiver = this.b8h_1;
    var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : hashCode(tmp2_safe_receiver);
    result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0;
    var tmp_1 = imul(31, result);
    var tmp4_safe_receiver = this.c8h_1;
    var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : hashCode(tmp4_safe_receiver);
    result = tmp_1 + (tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs) | 0;
    var tmp_2 = imul(31, result);
    var tmp6_safe_receiver = this.d8h_1;
    var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.hashCode();
    result = tmp_2 + (tmp7_elvis_lhs == null ? 0 : tmp7_elvis_lhs) | 0;
    return result;
  };
  function Companion_52() {
    this.njb_1 = 208;
    this.ojb_1 = 0;
  }
  var Companion_instance_53;
  function Companion_getInstance_55() {
    return Companion_instance_53;
  }
  function $serializer_49() {
    $serializer_instance_49 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Comments', this, 11);
    tmp0_serialDesc.g4f('commentsUid', true);
    tmp0_serialDesc.g4f('commentsText', true);
    tmp0_serialDesc.g4f('commentsEntityUid', true);
    tmp0_serialDesc.g4f('commentsStatus', true);
    tmp0_serialDesc.g4f('commentsFromPersonUid', true);
    tmp0_serialDesc.g4f('commentsForSubmitterUid', true);
    tmp0_serialDesc.g4f('commentsFromSubmitterUid', true);
    tmp0_serialDesc.g4f('commentsFlagged', true);
    tmp0_serialDesc.g4f('commentsDeleted', true);
    tmp0_serialDesc.g4f('commentsDateTimeAdded', true);
    tmp0_serialDesc.g4f('commentsLct', true);
    this.pjb_1 = tmp0_serialDesc;
  }
  protoOf($serializer_49).d44 = function () {
    return this.pjb_1;
  };
  protoOf($serializer_49).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_49).f44 = function (decoder) {
    var tmp0_desc = this.pjb_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = 0;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = new Long(0, 0);
    var tmp11_local7 = false;
    var tmp12_local8 = false;
    var tmp13_local9 = new Long(0, 0);
    var tmp14_local10 = new Long(0, 0);
    var tmp15_input = decoder.v47(tmp0_desc);
    if (tmp15_input.k48()) {
      tmp4_local0 = tmp15_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp15_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp15_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp15_input.a48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp15_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp15_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp15_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp15_input.x47(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp15_input.x47(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp15_input.b48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp15_input.b48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp15_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp15_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp15_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp15_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp15_input.a48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp15_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp15_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp15_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp15_input.x47(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp15_input.x47(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp15_input.b48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp15_input.b48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp15_input.w47(tmp0_desc);
    return Comments_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null);
  };
  protoOf($serializer_49).qjb = function (encoder, value) {
    var tmp0_desc = this.pjb_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.y9y_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.y9y_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.z9y_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.z9y_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.a9z_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.a9z_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.b9z_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 3, value.b9z_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.c9z_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.c9z_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.d9z_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.d9z_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.e9z_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.e9z_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.f9z_1 === false)) {
      tmp1_output.b49(tmp0_desc, 7, value.f9z_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.g9z_1 === false)) {
      tmp1_output.b49(tmp0_desc, 8, value.g9z_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !value.h9z_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 9, value.h9z_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !value.i9z_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 10, value.i9z_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_49).e44 = function (encoder, value) {
    return this.qjb(encoder, value instanceof Comments ? value : THROW_CCE());
  };
  var $serializer_instance_49;
  function $serializer_getInstance_49() {
    if ($serializer_instance_49 == null)
      new $serializer_49();
    return $serializer_instance_49;
  }
  function Comments_init_$Init$(seen1, commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_49().pjb_1);
    }
    if (0 === (seen1 & 1))
      $this.y9y_1 = new Long(0, 0);
    else
      $this.y9y_1 = commentsUid;
    if (0 === (seen1 & 2))
      $this.z9y_1 = null;
    else
      $this.z9y_1 = commentsText;
    if (0 === (seen1 & 4))
      $this.a9z_1 = new Long(0, 0);
    else
      $this.a9z_1 = commentsEntityUid;
    if (0 === (seen1 & 8))
      $this.b9z_1 = 0;
    else
      $this.b9z_1 = commentsStatus;
    if (0 === (seen1 & 16))
      $this.c9z_1 = new Long(0, 0);
    else
      $this.c9z_1 = commentsFromPersonUid;
    if (0 === (seen1 & 32))
      $this.d9z_1 = new Long(0, 0);
    else
      $this.d9z_1 = commentsForSubmitterUid;
    if (0 === (seen1 & 64))
      $this.e9z_1 = new Long(0, 0);
    else
      $this.e9z_1 = commentsFromSubmitterUid;
    if (0 === (seen1 & 128))
      $this.f9z_1 = false;
    else
      $this.f9z_1 = commentsFlagged;
    if (0 === (seen1 & 256))
      $this.g9z_1 = false;
    else
      $this.g9z_1 = commentsDeleted;
    if (0 === (seen1 & 512))
      $this.h9z_1 = new Long(0, 0);
    else
      $this.h9z_1 = commentsDateTimeAdded;
    if (0 === (seen1 & 1024))
      $this.i9z_1 = new Long(0, 0);
    else
      $this.i9z_1 = commentsLct;
    return $this;
  }
  function Comments_init_$Create$(seen1, commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct, serializationConstructorMarker) {
    return Comments_init_$Init$(seen1, commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct, serializationConstructorMarker, objectCreate(protoOf(Comments)));
  }
  function Comments(commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct) {
    commentsUid = commentsUid === VOID ? new Long(0, 0) : commentsUid;
    commentsText = commentsText === VOID ? null : commentsText;
    commentsEntityUid = commentsEntityUid === VOID ? new Long(0, 0) : commentsEntityUid;
    commentsStatus = commentsStatus === VOID ? 0 : commentsStatus;
    commentsFromPersonUid = commentsFromPersonUid === VOID ? new Long(0, 0) : commentsFromPersonUid;
    commentsForSubmitterUid = commentsForSubmitterUid === VOID ? new Long(0, 0) : commentsForSubmitterUid;
    commentsFromSubmitterUid = commentsFromSubmitterUid === VOID ? new Long(0, 0) : commentsFromSubmitterUid;
    commentsFlagged = commentsFlagged === VOID ? false : commentsFlagged;
    commentsDeleted = commentsDeleted === VOID ? false : commentsDeleted;
    commentsDateTimeAdded = commentsDateTimeAdded === VOID ? new Long(0, 0) : commentsDateTimeAdded;
    commentsLct = commentsLct === VOID ? new Long(0, 0) : commentsLct;
    this.y9y_1 = commentsUid;
    this.z9y_1 = commentsText;
    this.a9z_1 = commentsEntityUid;
    this.b9z_1 = commentsStatus;
    this.c9z_1 = commentsFromPersonUid;
    this.d9z_1 = commentsForSubmitterUid;
    this.e9z_1 = commentsFromSubmitterUid;
    this.f9z_1 = commentsFlagged;
    this.g9z_1 = commentsDeleted;
    this.h9z_1 = commentsDateTimeAdded;
    this.i9z_1 = commentsLct;
  }
  protoOf(Comments).toString = function () {
    return 'Comments(commentsUid=' + this.y9y_1.toString() + ', commentsText=' + this.z9y_1 + ', commentsEntityUid=' + this.a9z_1.toString() + ', commentsStatus=' + this.b9z_1 + ', commentsFromPersonUid=' + this.c9z_1.toString() + ', commentsForSubmitterUid=' + this.d9z_1.toString() + ', commentsFromSubmitterUid=' + this.e9z_1.toString() + ', commentsFlagged=' + this.f9z_1 + ', commentsDeleted=' + this.g9z_1 + ', commentsDateTimeAdded=' + this.h9z_1.toString() + ', commentsLct=' + this.i9z_1.toString() + ')';
  };
  protoOf(Comments).hashCode = function () {
    var result = this.y9y_1.hashCode();
    result = imul(result, 31) + (this.z9y_1 == null ? 0 : getStringHashCode(this.z9y_1)) | 0;
    result = imul(result, 31) + this.a9z_1.hashCode() | 0;
    result = imul(result, 31) + this.b9z_1 | 0;
    result = imul(result, 31) + this.c9z_1.hashCode() | 0;
    result = imul(result, 31) + this.d9z_1.hashCode() | 0;
    result = imul(result, 31) + this.e9z_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.f9z_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.g9z_1) | 0;
    result = imul(result, 31) + this.h9z_1.hashCode() | 0;
    result = imul(result, 31) + this.i9z_1.hashCode() | 0;
    return result;
  };
  protoOf(Comments).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof Comments))
      return false;
    var tmp0_other_with_cast = other instanceof Comments ? other : THROW_CCE();
    if (!this.y9y_1.equals(tmp0_other_with_cast.y9y_1))
      return false;
    if (!(this.z9y_1 == tmp0_other_with_cast.z9y_1))
      return false;
    if (!this.a9z_1.equals(tmp0_other_with_cast.a9z_1))
      return false;
    if (!(this.b9z_1 === tmp0_other_with_cast.b9z_1))
      return false;
    if (!this.c9z_1.equals(tmp0_other_with_cast.c9z_1))
      return false;
    if (!this.d9z_1.equals(tmp0_other_with_cast.d9z_1))
      return false;
    if (!this.e9z_1.equals(tmp0_other_with_cast.e9z_1))
      return false;
    if (!(this.f9z_1 === tmp0_other_with_cast.f9z_1))
      return false;
    if (!(this.g9z_1 === tmp0_other_with_cast.g9z_1))
      return false;
    if (!this.h9z_1.equals(tmp0_other_with_cast.h9z_1))
      return false;
    if (!this.i9z_1.equals(tmp0_other_with_cast.i9z_1))
      return false;
    return true;
  };
  function Companion_53() {
    this.rjb_1 = 1;
  }
  var Companion_instance_54;
  function Companion_getInstance_56() {
    return Companion_instance_54;
  }
  function $serializer_50() {
    $serializer_instance_50 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentCategory', this, 7);
    tmp0_serialDesc.g4f('contentCategoryUid', true);
    tmp0_serialDesc.g4f('ctnCatContentCategorySchemaUid', true);
    tmp0_serialDesc.g4f('name', true);
    tmp0_serialDesc.g4f('contentCategoryLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('contentCategoryMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('contentCategoryLastChangedBy', true);
    tmp0_serialDesc.g4f('contentCategoryLct', true);
    this.sjb_1 = tmp0_serialDesc;
  }
  protoOf($serializer_50).d44 = function () {
    return this.sjb_1;
  };
  protoOf($serializer_50).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_50).f44 = function (decoder) {
    var tmp0_desc = this.sjb_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = null;
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = 0;
    var tmp10_local6 = new Long(0, 0);
    var tmp11_input = decoder.v47(tmp0_desc);
    if (tmp11_input.k48()) {
      tmp4_local0 = tmp11_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp11_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp11_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp11_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp11_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp11_input.a48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp11_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp11_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp11_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp11_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp11_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp11_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp11_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp11_input.a48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp11_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp11_input.w47(tmp0_desc);
    return ContentCategory_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null);
  };
  protoOf($serializer_50).tjb = function (encoder, value) {
    var tmp0_desc = this.sjb_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.qa9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.qa9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.ra9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.ra9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.sa9_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.sa9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.ta9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.ta9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.ua9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.ua9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.va9_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 5, value.va9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.wa9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.wa9_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_50).e44 = function (encoder, value) {
    return this.tjb(encoder, value instanceof ContentCategory ? value : THROW_CCE());
  };
  var $serializer_instance_50;
  function $serializer_getInstance_50() {
    if ($serializer_instance_50 == null)
      new $serializer_50();
    return $serializer_instance_50;
  }
  function ContentCategory_init_$Init$(seen1, contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_50().sjb_1);
    }
    if (0 === (seen1 & 1))
      $this.qa9_1 = new Long(0, 0);
    else
      $this.qa9_1 = contentCategoryUid;
    if (0 === (seen1 & 2))
      $this.ra9_1 = new Long(0, 0);
    else
      $this.ra9_1 = ctnCatContentCategorySchemaUid;
    if (0 === (seen1 & 4))
      $this.sa9_1 = null;
    else
      $this.sa9_1 = name;
    if (0 === (seen1 & 8))
      $this.ta9_1 = new Long(0, 0);
    else
      $this.ta9_1 = contentCategoryLocalChangeSeqNum;
    if (0 === (seen1 & 16))
      $this.ua9_1 = new Long(0, 0);
    else
      $this.ua9_1 = contentCategoryMasterChangeSeqNum;
    if (0 === (seen1 & 32))
      $this.va9_1 = 0;
    else
      $this.va9_1 = contentCategoryLastChangedBy;
    if (0 === (seen1 & 64))
      $this.wa9_1 = new Long(0, 0);
    else
      $this.wa9_1 = contentCategoryLct;
    return $this;
  }
  function ContentCategory_init_$Create$(seen1, contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct, serializationConstructorMarker) {
    return ContentCategory_init_$Init$(seen1, contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct, serializationConstructorMarker, objectCreate(protoOf(ContentCategory)));
  }
  function ContentCategory() {
    this.qa9_1 = new Long(0, 0);
    this.ra9_1 = new Long(0, 0);
    this.sa9_1 = null;
    this.ta9_1 = new Long(0, 0);
    this.ua9_1 = new Long(0, 0);
    this.va9_1 = 0;
    this.wa9_1 = new Long(0, 0);
  }
  protoOf(ContentCategory).equals = function (other) {
    if (this === other)
      return true;
    var category = (other == null ? true : other instanceof ContentCategory) ? other : THROW_CCE();
    if (!this.qa9_1.equals(ensureNotNull(category).qa9_1))
      return false;
    if (!this.ra9_1.equals(category.ra9_1))
      return false;
    return !(this.sa9_1 == null) ? this.sa9_1 == category.sa9_1 : category.sa9_1 == null;
  };
  protoOf(ContentCategory).hashCode = function () {
    var result = this.qa9_1.wc(this.qa9_1.tc(32)).mb();
    result = imul(31, result) + this.ra9_1.wc(this.ra9_1.tc(32)).mb() | 0;
    result = imul(31, result) + (!(this.sa9_1 == null) ? getStringHashCode(ensureNotNull(this.sa9_1)) : 0) | 0;
    return result;
  };
  function Companion_54() {
    this.ujb_1 = 2;
  }
  var Companion_instance_55;
  function Companion_getInstance_57() {
    return Companion_instance_55;
  }
  function $serializer_51() {
    $serializer_instance_51 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentCategorySchema', this, 7);
    tmp0_serialDesc.g4f('contentCategorySchemaUid', true);
    tmp0_serialDesc.g4f('schemaName', true);
    tmp0_serialDesc.g4f('schemaUrl', true);
    tmp0_serialDesc.g4f('contentCategorySchemaLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('contentCategorySchemaMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('contentCategorySchemaLastChangedBy', true);
    tmp0_serialDesc.g4f('contentCategorySchemaLct', true);
    this.vjb_1 = tmp0_serialDesc;
  }
  protoOf($serializer_51).d44 = function () {
    return this.vjb_1;
  };
  protoOf($serializer_51).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_51).f44 = function (decoder) {
    var tmp0_desc = this.vjb_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = 0;
    var tmp10_local6 = new Long(0, 0);
    var tmp11_input = decoder.v47(tmp0_desc);
    if (tmp11_input.k48()) {
      tmp4_local0 = tmp11_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp11_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp11_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp11_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp11_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp11_input.a48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp11_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp11_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp11_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp11_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp11_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp11_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp11_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp11_input.a48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp11_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp11_input.w47(tmp0_desc);
    return ContentCategorySchema_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null);
  };
  protoOf($serializer_51).wjb = function (encoder, value) {
    var tmp0_desc = this.vjb_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.bac_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.bac_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.cac_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.cac_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.dac_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.dac_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.eac_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.eac_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.fac_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.fac_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.gac_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 5, value.gac_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.hac_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.hac_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_51).e44 = function (encoder, value) {
    return this.wjb(encoder, value instanceof ContentCategorySchema ? value : THROW_CCE());
  };
  var $serializer_instance_51;
  function $serializer_getInstance_51() {
    if ($serializer_instance_51 == null)
      new $serializer_51();
    return $serializer_instance_51;
  }
  function ContentCategorySchema_init_$Init$(seen1, contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_51().vjb_1);
    }
    if (0 === (seen1 & 1))
      $this.bac_1 = new Long(0, 0);
    else
      $this.bac_1 = contentCategorySchemaUid;
    if (0 === (seen1 & 2))
      $this.cac_1 = null;
    else
      $this.cac_1 = schemaName;
    if (0 === (seen1 & 4))
      $this.dac_1 = null;
    else
      $this.dac_1 = schemaUrl;
    if (0 === (seen1 & 8))
      $this.eac_1 = new Long(0, 0);
    else
      $this.eac_1 = contentCategorySchemaLocalChangeSeqNum;
    if (0 === (seen1 & 16))
      $this.fac_1 = new Long(0, 0);
    else
      $this.fac_1 = contentCategorySchemaMasterChangeSeqNum;
    if (0 === (seen1 & 32))
      $this.gac_1 = 0;
    else
      $this.gac_1 = contentCategorySchemaLastChangedBy;
    if (0 === (seen1 & 64))
      $this.hac_1 = new Long(0, 0);
    else
      $this.hac_1 = contentCategorySchemaLct;
    return $this;
  }
  function ContentCategorySchema_init_$Create$(seen1, contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct, serializationConstructorMarker) {
    return ContentCategorySchema_init_$Init$(seen1, contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct, serializationConstructorMarker, objectCreate(protoOf(ContentCategorySchema)));
  }
  function ContentCategorySchema() {
    this.bac_1 = new Long(0, 0);
    this.cac_1 = null;
    this.dac_1 = null;
    this.eac_1 = new Long(0, 0);
    this.fac_1 = new Long(0, 0);
    this.gac_1 = 0;
    this.hac_1 = new Long(0, 0);
  }
  protoOf(ContentCategorySchema).equals = function (other) {
    if (this === other)
      return true;
    var schema = (other == null ? true : other instanceof ContentCategorySchema) ? other : THROW_CCE();
    if (!this.bac_1.equals(ensureNotNull(schema).bac_1))
      return false;
    if (!(this.cac_1 == null) ? !(this.cac_1 == schema.cac_1) : !(schema.cac_1 == null))
      return false;
    return !(this.dac_1 == null) ? this.dac_1 == schema.dac_1 : schema.dac_1 == null;
  };
  protoOf(ContentCategorySchema).hashCode = function () {
    var result = this.bac_1.wc(this.bac_1.tc(32)).mb();
    result = imul(31, result) + (!(this.cac_1 == null) ? getStringHashCode(ensureNotNull(this.cac_1)) : 0) | 0;
    result = imul(31, result) + (!(this.dac_1 == null) ? getStringHashCode(ensureNotNull(this.dac_1)) : 0) | 0;
    return result;
  };
  function Companion_55() {
    this.xjb_1 = 42;
    this.yjb_1 = 0;
    this.zjb_1 = 1;
    this.ajc_1 = 2;
    this.bjc_1 = 3;
    this.cjc_1 = 4;
    this.djc_1 = 5;
    this.ejc_1 = 6;
    this.fjc_1 = 7;
    this.gjc_1 = 8;
    this.hjc_1 = 10;
    this.ijc_1 = 11;
    this.jjc_1 = 9;
    this.kjc_1 = 0;
    this.ljc_1 = 1;
    this.mjc_1 = 2;
    this.njc_1 = 3;
    this.ojc_1 = 4;
    this.pjc_1 = 5;
    this.qjc_1 = 6;
    this.rjc_1 = 7;
    this.sjc_1 = 8;
    this.tjc_1 = 1;
    this.ujc_1 = 0;
    this.vjc_1 = 1;
    this.wjc_1 = 2;
    this.xjc_1 = 1;
    this.yjc_1 = 2;
  }
  protoOf(Companion_55).a4r = function () {
    return $serializer_getInstance_52();
  };
  var Companion_instance_56;
  function Companion_getInstance_58() {
    return Companion_instance_56;
  }
  function $serializer_52() {
    $serializer_instance_52 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntry', this, 27);
    tmp0_serialDesc.g4f('contentEntryUid', true);
    tmp0_serialDesc.g4f('title', true);
    tmp0_serialDesc.g4f('description', true);
    tmp0_serialDesc.g4f('entryId', true);
    tmp0_serialDesc.g4f('author', true);
    tmp0_serialDesc.g4f('publisher', true);
    tmp0_serialDesc.g4f('licenseType', true);
    tmp0_serialDesc.g4f('licenseName', true);
    tmp0_serialDesc.g4f('licenseUrl', true);
    tmp0_serialDesc.g4f('sourceUrl', true);
    tmp0_serialDesc.g4f('thumbnailUrl', true);
    tmp0_serialDesc.g4f('lastModified', true);
    tmp0_serialDesc.g4f('primaryLanguageUid', true);
    tmp0_serialDesc.g4f('languageVariantUid', true);
    tmp0_serialDesc.g4f('contentFlags', true);
    tmp0_serialDesc.g4f('leaf', true);
    tmp0_serialDesc.g4f('publik', true);
    tmp0_serialDesc.g4f('ceInactive', true);
    tmp0_serialDesc.g4f('completionCriteria', true);
    tmp0_serialDesc.g4f('minScore', true);
    tmp0_serialDesc.g4f('contentTypeFlag', true);
    tmp0_serialDesc.g4f('contentOwner', true);
    tmp0_serialDesc.g4f('contentOwnerType', true);
    tmp0_serialDesc.g4f('contentEntryLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('contentEntryMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('contentEntryLastChangedBy', true);
    tmp0_serialDesc.g4f('contentEntryLct', true);
    this.zjc_1 = tmp0_serialDesc;
  }
  protoOf($serializer_52).d44 = function () {
    return this.zjc_1;
  };
  protoOf($serializer_52).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_52).f44 = function (decoder) {
    var tmp0_desc = this.zjc_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = null;
    var tmp9_local5 = null;
    var tmp10_local6 = 0;
    var tmp11_local7 = null;
    var tmp12_local8 = null;
    var tmp13_local9 = null;
    var tmp14_local10 = null;
    var tmp15_local11 = new Long(0, 0);
    var tmp16_local12 = new Long(0, 0);
    var tmp17_local13 = new Long(0, 0);
    var tmp18_local14 = 0;
    var tmp19_local15 = false;
    var tmp20_local16 = false;
    var tmp21_local17 = false;
    var tmp22_local18 = 0;
    var tmp23_local19 = 0;
    var tmp24_local20 = 0;
    var tmp25_local21 = new Long(0, 0);
    var tmp26_local22 = 0;
    var tmp27_local23 = new Long(0, 0);
    var tmp28_local24 = new Long(0, 0);
    var tmp29_local25 = 0;
    var tmp30_local26 = new Long(0, 0);
    var tmp31_input = decoder.v47(tmp0_desc);
    if (tmp31_input.k48()) {
      tmp4_local0 = tmp31_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp31_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp31_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp31_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp31_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp31_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp31_input.a48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp31_input.j48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp31_input.j48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp31_input.j48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp31_input.j48(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp31_input.b48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp31_input.b48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp31_input.b48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp31_input.a48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp31_input.x47(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp31_input.x47(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp31_input.x47(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp31_input.a48(tmp0_desc, 18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp31_input.a48(tmp0_desc, 19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp24_local20 = tmp31_input.a48(tmp0_desc, 20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp25_local21 = tmp31_input.b48(tmp0_desc, 21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp26_local22 = tmp31_input.a48(tmp0_desc, 22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
      tmp27_local23 = tmp31_input.b48(tmp0_desc, 23);
      tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
      tmp28_local24 = tmp31_input.b48(tmp0_desc, 24);
      tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
      tmp29_local25 = tmp31_input.a48(tmp0_desc, 25);
      tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
      tmp30_local26 = tmp31_input.b48(tmp0_desc, 26);
      tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp31_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp31_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp31_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp31_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp31_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp31_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp31_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp31_input.a48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp31_input.j48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp31_input.j48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp31_input.j48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp31_input.j48(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp31_input.b48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp31_input.b48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp31_input.b48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp31_input.a48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp31_input.x47(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp31_input.x47(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp31_input.x47(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp31_input.a48(tmp0_desc, 18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp31_input.a48(tmp0_desc, 19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp24_local20 = tmp31_input.a48(tmp0_desc, 20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp25_local21 = tmp31_input.b48(tmp0_desc, 21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp26_local22 = tmp31_input.a48(tmp0_desc, 22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          case 23:
            tmp27_local23 = tmp31_input.b48(tmp0_desc, 23);
            tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
            break;
          case 24:
            tmp28_local24 = tmp31_input.b48(tmp0_desc, 24);
            tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
            break;
          case 25:
            tmp29_local25 = tmp31_input.a48(tmp0_desc, 25);
            tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
            break;
          case 26:
            tmp30_local26 = tmp31_input.b48(tmp0_desc, 26);
            tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp31_input.w47(tmp0_desc);
    return ContentEntry_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, tmp28_local24, tmp29_local25, tmp30_local26, null);
  };
  protoOf($serializer_52).ajd = function (encoder, value) {
    var tmp0_desc = this.zjc_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.fah_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.fah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.gah_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.gah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.hah_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.hah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.iah_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.iah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.jah_1 == null)) {
      tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.jah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.kah_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.kah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.lah_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 6, value.lah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.mah_1 == null)) {
      tmp1_output.n49(tmp0_desc, 7, StringSerializer_getInstance(), value.mah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.nah_1 == null)) {
      tmp1_output.n49(tmp0_desc, 8, StringSerializer_getInstance(), value.nah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.oah_1 == null)) {
      tmp1_output.n49(tmp0_desc, 9, StringSerializer_getInstance(), value.oah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.pah_1 == null)) {
      tmp1_output.n49(tmp0_desc, 10, StringSerializer_getInstance(), value.pah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !value.qah_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 11, value.qah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !value.rah_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 12, value.rah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !value.sah_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 13, value.sah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 14) ? true : !(value.tah_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 14, value.tah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 15) ? true : !(value.uah_1 === false)) {
      tmp1_output.b49(tmp0_desc, 15, value.uah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 16) ? true : !(value.vah_1 === true)) {
      tmp1_output.b49(tmp0_desc, 16, value.vah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 17) ? true : !(value.wah_1 === false)) {
      tmp1_output.b49(tmp0_desc, 17, value.wah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 18) ? true : !(value.xah_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 18, value.xah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 19) ? true : !(value.yah_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 19, value.yah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 20) ? true : !(value.zah_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 20, value.zah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 21) ? true : !value.aai_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 21, value.aai_1);
    }
    if (tmp1_output.r49(tmp0_desc, 22) ? true : !(value.bai_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 22, value.bai_1);
    }
    if (tmp1_output.r49(tmp0_desc, 23) ? true : !value.cai_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 23, value.cai_1);
    }
    if (tmp1_output.r49(tmp0_desc, 24) ? true : !value.dai_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 24, value.dai_1);
    }
    if (tmp1_output.r49(tmp0_desc, 25) ? true : !(value.eai_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 25, value.eai_1);
    }
    if (tmp1_output.r49(tmp0_desc, 26) ? true : !value.fai_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 26, value.fai_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_52).e44 = function (encoder, value) {
    return this.ajd(encoder, value instanceof ContentEntry ? value : THROW_CCE());
  };
  var $serializer_instance_52;
  function $serializer_getInstance_52() {
    if ($serializer_instance_52 == null)
      new $serializer_52();
    return $serializer_instance_52;
  }
  function ContentEntry_init_$Init$(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_52().zjc_1);
    }
    if (0 === (seen1 & 1))
      $this.fah_1 = new Long(0, 0);
    else
      $this.fah_1 = contentEntryUid;
    if (0 === (seen1 & 2))
      $this.gah_1 = null;
    else
      $this.gah_1 = title;
    if (0 === (seen1 & 4))
      $this.hah_1 = null;
    else
      $this.hah_1 = description;
    if (0 === (seen1 & 8))
      $this.iah_1 = null;
    else
      $this.iah_1 = entryId;
    if (0 === (seen1 & 16))
      $this.jah_1 = null;
    else
      $this.jah_1 = author;
    if (0 === (seen1 & 32))
      $this.kah_1 = null;
    else
      $this.kah_1 = publisher;
    if (0 === (seen1 & 64))
      $this.lah_1 = 0;
    else
      $this.lah_1 = licenseType;
    if (0 === (seen1 & 128))
      $this.mah_1 = null;
    else
      $this.mah_1 = licenseName;
    if (0 === (seen1 & 256))
      $this.nah_1 = null;
    else
      $this.nah_1 = licenseUrl;
    if (0 === (seen1 & 512))
      $this.oah_1 = null;
    else
      $this.oah_1 = sourceUrl;
    if (0 === (seen1 & 1024))
      $this.pah_1 = null;
    else
      $this.pah_1 = thumbnailUrl;
    if (0 === (seen1 & 2048))
      $this.qah_1 = new Long(0, 0);
    else
      $this.qah_1 = lastModified;
    if (0 === (seen1 & 4096))
      $this.rah_1 = new Long(0, 0);
    else
      $this.rah_1 = primaryLanguageUid;
    if (0 === (seen1 & 8192))
      $this.sah_1 = new Long(0, 0);
    else
      $this.sah_1 = languageVariantUid;
    if (0 === (seen1 & 16384))
      $this.tah_1 = 0;
    else
      $this.tah_1 = contentFlags;
    if (0 === (seen1 & 32768))
      $this.uah_1 = false;
    else
      $this.uah_1 = leaf;
    if (0 === (seen1 & 65536))
      $this.vah_1 = true;
    else
      $this.vah_1 = publik;
    if (0 === (seen1 & 131072))
      $this.wah_1 = false;
    else
      $this.wah_1 = ceInactive;
    if (0 === (seen1 & 262144))
      $this.xah_1 = 0;
    else
      $this.xah_1 = completionCriteria;
    if (0 === (seen1 & 524288))
      $this.yah_1 = 0;
    else
      $this.yah_1 = minScore;
    if (0 === (seen1 & 1048576))
      $this.zah_1 = 0;
    else
      $this.zah_1 = contentTypeFlag;
    if (0 === (seen1 & 2097152))
      $this.aai_1 = new Long(0, 0);
    else
      $this.aai_1 = contentOwner;
    if (0 === (seen1 & 4194304))
      $this.bai_1 = 0;
    else
      $this.bai_1 = contentOwnerType;
    if (0 === (seen1 & 8388608))
      $this.cai_1 = new Long(0, 0);
    else
      $this.cai_1 = contentEntryLocalChangeSeqNum;
    if (0 === (seen1 & 16777216))
      $this.dai_1 = new Long(0, 0);
    else
      $this.dai_1 = contentEntryMasterChangeSeqNum;
    if (0 === (seen1 & 33554432))
      $this.eai_1 = 0;
    else
      $this.eai_1 = contentEntryLastChangedBy;
    if (0 === (seen1 & 67108864))
      $this.fai_1 = new Long(0, 0);
    else
      $this.fai_1 = contentEntryLct;
    return $this;
  }
  function ContentEntry_init_$Create$(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, serializationConstructorMarker) {
    return ContentEntry_init_$Init$(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, serializationConstructorMarker, objectCreate(protoOf(ContentEntry)));
  }
  function ContentEntry() {
    this.fah_1 = new Long(0, 0);
    this.gah_1 = null;
    this.hah_1 = null;
    this.iah_1 = null;
    this.jah_1 = null;
    this.kah_1 = null;
    this.lah_1 = 0;
    this.mah_1 = null;
    this.nah_1 = null;
    this.oah_1 = null;
    this.pah_1 = null;
    this.qah_1 = new Long(0, 0);
    this.rah_1 = new Long(0, 0);
    this.sah_1 = new Long(0, 0);
    this.tah_1 = 0;
    this.uah_1 = false;
    this.vah_1 = true;
    this.wah_1 = false;
    this.xah_1 = 0;
    this.yah_1 = 0;
    this.zah_1 = 0;
    this.aai_1 = new Long(0, 0);
    this.bai_1 = 0;
    this.cai_1 = new Long(0, 0);
    this.dai_1 = new Long(0, 0);
    this.eai_1 = 0;
    this.fai_1 = new Long(0, 0);
  }
  protoOf(ContentEntry).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ContentEntry))
      return false;
    if (!this.fah_1.equals(other.fah_1))
      return false;
    if (!(this.gah_1 == other.gah_1))
      return false;
    if (!(this.hah_1 == other.hah_1))
      return false;
    if (!(this.iah_1 == other.iah_1))
      return false;
    if (!(this.jah_1 == other.jah_1))
      return false;
    if (!(this.kah_1 == other.kah_1))
      return false;
    if (!(this.lah_1 === other.lah_1))
      return false;
    if (!(this.mah_1 == other.mah_1))
      return false;
    if (!(this.nah_1 == other.nah_1))
      return false;
    if (!(this.oah_1 == other.oah_1))
      return false;
    if (!(this.pah_1 == other.pah_1))
      return false;
    if (!this.qah_1.equals(other.qah_1))
      return false;
    if (!this.rah_1.equals(other.rah_1))
      return false;
    if (!this.sah_1.equals(other.sah_1))
      return false;
    if (!(this.tah_1 === other.tah_1))
      return false;
    if (!(this.uah_1 === other.uah_1))
      return false;
    if (!(this.vah_1 === other.vah_1))
      return false;
    if (!(this.wah_1 === other.wah_1))
      return false;
    if (!(this.zah_1 === other.zah_1))
      return false;
    if (!(this.xah_1 === other.xah_1))
      return false;
    if (!(this.yah_1 === other.yah_1))
      return false;
    if (!this.cai_1.equals(other.cai_1))
      return false;
    if (!this.dai_1.equals(other.dai_1))
      return false;
    if (!(this.eai_1 === other.eai_1))
      return false;
    return true;
  };
  protoOf(ContentEntry).hashCode = function () {
    var result = this.fah_1.hashCode();
    var tmp = imul(31, result);
    var tmp0_safe_receiver = this.gah_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
    result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
    var tmp_0 = imul(31, result);
    var tmp2_safe_receiver = this.hah_1;
    var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : getStringHashCode(tmp2_safe_receiver);
    result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0;
    var tmp_1 = imul(31, result);
    var tmp4_safe_receiver = this.iah_1;
    var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : getStringHashCode(tmp4_safe_receiver);
    result = tmp_1 + (tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs) | 0;
    var tmp_2 = imul(31, result);
    var tmp6_safe_receiver = this.jah_1;
    var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : getStringHashCode(tmp6_safe_receiver);
    result = tmp_2 + (tmp7_elvis_lhs == null ? 0 : tmp7_elvis_lhs) | 0;
    var tmp_3 = imul(31, result);
    var tmp8_safe_receiver = this.kah_1;
    var tmp9_elvis_lhs = tmp8_safe_receiver == null ? null : getStringHashCode(tmp8_safe_receiver);
    result = tmp_3 + (tmp9_elvis_lhs == null ? 0 : tmp9_elvis_lhs) | 0;
    result = imul(31, result) + this.lah_1 | 0;
    var tmp_4 = imul(31, result);
    var tmp10_safe_receiver = this.mah_1;
    var tmp11_elvis_lhs = tmp10_safe_receiver == null ? null : getStringHashCode(tmp10_safe_receiver);
    result = tmp_4 + (tmp11_elvis_lhs == null ? 0 : tmp11_elvis_lhs) | 0;
    var tmp_5 = imul(31, result);
    var tmp12_safe_receiver = this.nah_1;
    var tmp13_elvis_lhs = tmp12_safe_receiver == null ? null : getStringHashCode(tmp12_safe_receiver);
    result = tmp_5 + (tmp13_elvis_lhs == null ? 0 : tmp13_elvis_lhs) | 0;
    var tmp_6 = imul(31, result);
    var tmp14_safe_receiver = this.oah_1;
    var tmp15_elvis_lhs = tmp14_safe_receiver == null ? null : getStringHashCode(tmp14_safe_receiver);
    result = tmp_6 + (tmp15_elvis_lhs == null ? 0 : tmp15_elvis_lhs) | 0;
    var tmp_7 = imul(31, result);
    var tmp16_safe_receiver = this.pah_1;
    var tmp17_elvis_lhs = tmp16_safe_receiver == null ? null : getStringHashCode(tmp16_safe_receiver);
    result = tmp_7 + (tmp17_elvis_lhs == null ? 0 : tmp17_elvis_lhs) | 0;
    result = imul(31, result) + this.qah_1.hashCode() | 0;
    result = imul(31, result) + this.rah_1.hashCode() | 0;
    result = imul(31, result) + this.sah_1.hashCode() | 0;
    result = imul(31, result) + this.tah_1 | 0;
    result = imul(31, result) + getBooleanHashCode(this.uah_1) | 0;
    result = imul(31, result) + getBooleanHashCode(this.vah_1) | 0;
    result = imul(31, result) + getBooleanHashCode(this.wah_1) | 0;
    result = imul(31, result) + this.zah_1 | 0;
    result = imul(31, result) + this.xah_1 | 0;
    result = imul(31, result) + this.yah_1 | 0;
    result = imul(31, result) + this.cai_1.hashCode() | 0;
    result = imul(31, result) + this.dai_1.hashCode() | 0;
    result = imul(31, result) + this.eai_1 | 0;
    return result;
  };
  function ContentEntryButtonModel() {
    this.bjd_1 = false;
    this.cjd_1 = false;
    this.djd_1 = false;
    this.ejd_1 = false;
    this.fjd_1 = false;
  }
  function Companion_56() {
    this.gjd_1 = 3;
  }
  var Companion_instance_57;
  function Companion_getInstance_59() {
    return Companion_instance_57;
  }
  function $serializer_53() {
    $serializer_instance_53 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryContentCategoryJoin', this, 7);
    tmp0_serialDesc.g4f('ceccjUid', true);
    tmp0_serialDesc.g4f('ceccjContentEntryUid', true);
    tmp0_serialDesc.g4f('ceccjContentCategoryUid', true);
    tmp0_serialDesc.g4f('ceccjLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('ceccjMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('ceccjLastChangedBy', true);
    tmp0_serialDesc.g4f('ceccjLct', true);
    this.hjd_1 = tmp0_serialDesc;
  }
  protoOf($serializer_53).d44 = function () {
    return this.hjd_1;
  };
  protoOf($serializer_53).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_53).f44 = function (decoder) {
    var tmp0_desc = this.hjd_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = 0;
    var tmp10_local6 = new Long(0, 0);
    var tmp11_input = decoder.v47(tmp0_desc);
    if (tmp11_input.k48()) {
      tmp4_local0 = tmp11_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp11_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp11_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp11_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp11_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp11_input.a48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp11_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp11_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp11_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp11_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp11_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp11_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp11_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp11_input.a48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp11_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp11_input.w47(tmp0_desc);
    return ContentEntryContentCategoryJoin_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null);
  };
  protoOf($serializer_53).ijd = function (encoder, value) {
    var tmp0_desc = this.hjd_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.mae_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.mae_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.nae_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.nae_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.oae_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.oae_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.pae_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.pae_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.qae_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.qae_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.rae_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 5, value.rae_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.sae_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.sae_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_53).e44 = function (encoder, value) {
    return this.ijd(encoder, value instanceof ContentEntryContentCategoryJoin ? value : THROW_CCE());
  };
  var $serializer_instance_53;
  function $serializer_getInstance_53() {
    if ($serializer_instance_53 == null)
      new $serializer_53();
    return $serializer_instance_53;
  }
  function ContentEntryContentCategoryJoin_init_$Init$(seen1, ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_53().hjd_1);
    }
    if (0 === (seen1 & 1))
      $this.mae_1 = new Long(0, 0);
    else
      $this.mae_1 = ceccjUid;
    if (0 === (seen1 & 2))
      $this.nae_1 = new Long(0, 0);
    else
      $this.nae_1 = ceccjContentEntryUid;
    if (0 === (seen1 & 4))
      $this.oae_1 = new Long(0, 0);
    else
      $this.oae_1 = ceccjContentCategoryUid;
    if (0 === (seen1 & 8))
      $this.pae_1 = new Long(0, 0);
    else
      $this.pae_1 = ceccjLocalChangeSeqNum;
    if (0 === (seen1 & 16))
      $this.qae_1 = new Long(0, 0);
    else
      $this.qae_1 = ceccjMasterChangeSeqNum;
    if (0 === (seen1 & 32))
      $this.rae_1 = 0;
    else
      $this.rae_1 = ceccjLastChangedBy;
    if (0 === (seen1 & 64))
      $this.sae_1 = new Long(0, 0);
    else
      $this.sae_1 = ceccjLct;
    return $this;
  }
  function ContentEntryContentCategoryJoin_init_$Create$(seen1, ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct, serializationConstructorMarker) {
    return ContentEntryContentCategoryJoin_init_$Init$(seen1, ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct, serializationConstructorMarker, objectCreate(protoOf(ContentEntryContentCategoryJoin)));
  }
  function ContentEntryContentCategoryJoin() {
    this.mae_1 = new Long(0, 0);
    this.nae_1 = new Long(0, 0);
    this.oae_1 = new Long(0, 0);
    this.pae_1 = new Long(0, 0);
    this.qae_1 = new Long(0, 0);
    this.rae_1 = 0;
    this.sae_1 = new Long(0, 0);
  }
  protoOf(ContentEntryContentCategoryJoin).equals = function (other) {
    if (this === other)
      return true;
    var that = (other == null ? true : other instanceof ContentEntryContentCategoryJoin) ? other : THROW_CCE();
    if (!this.mae_1.equals(ensureNotNull(that).mae_1))
      return false;
    return !this.nae_1.equals(that.nae_1) ? false : this.oae_1.equals(that.oae_1);
  };
  protoOf(ContentEntryContentCategoryJoin).hashCode = function () {
    var result = this.mae_1.wc(this.mae_1.tc(32)).mb();
    result = imul(31, result) + this.nae_1.wc(this.nae_1.tc(32)).mb() | 0;
    result = imul(31, result) + this.oae_1.wc(this.oae_1.tc(32)).mb() | 0;
    return result;
  };
  function Companion_57() {
    this.jjd_1 = 720;
    this.kjd_1 = 'subtitles';
  }
  var Companion_instance_58;
  function Companion_getInstance_60() {
    return Companion_instance_58;
  }
  function $serializer_54() {
    $serializer_instance_54 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryImportJob', this, 20);
    tmp0_serialDesc.g4f('cjiUid', true);
    tmp0_serialDesc.g4f('sourceUri', true);
    tmp0_serialDesc.g4f('cjiOriginalFilename', true);
    tmp0_serialDesc.g4f('cjiContentEntryUid', true);
    tmp0_serialDesc.g4f('cjiParentContentEntryUid', true);
    tmp0_serialDesc.g4f('cjiContentEntryVersion', true);
    tmp0_serialDesc.g4f('cjiItemProgress', true);
    tmp0_serialDesc.g4f('cjiItemTotal', true);
    tmp0_serialDesc.g4f('cjiStatus', true);
    tmp0_serialDesc.g4f('cjiRecursiveStatus', true);
    tmp0_serialDesc.g4f('cjiPluginId', true);
    tmp0_serialDesc.g4f('cjiParentCjiUid', true);
    tmp0_serialDesc.g4f('cjiStartTime', true);
    tmp0_serialDesc.g4f('cjiFinishTime', true);
    tmp0_serialDesc.g4f('cjiContentDeletedOnCancellation', true);
    tmp0_serialDesc.g4f('cjiCompressionLevel', true);
    tmp0_serialDesc.g4f('cjiError', true);
    tmp0_serialDesc.g4f('cjiErrorDismissed', true);
    tmp0_serialDesc.g4f('cjiOwnerPersonUid', true);
    tmp0_serialDesc.g4f('cjiParams', true);
    this.ljd_1 = tmp0_serialDesc;
  }
  protoOf($serializer_54).d44 = function () {
    return this.ljd_1;
  };
  protoOf($serializer_54).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_54).f44 = function (decoder) {
    var tmp0_desc = this.ljd_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = new Long(0, 0);
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = 0;
    var tmp13_local9 = 0;
    var tmp14_local10 = 0;
    var tmp15_local11 = new Long(0, 0);
    var tmp16_local12 = new Long(0, 0);
    var tmp17_local13 = new Long(0, 0);
    var tmp18_local14 = false;
    var tmp19_local15 = 0;
    var tmp20_local16 = null;
    var tmp21_local17 = false;
    var tmp22_local18 = new Long(0, 0);
    var tmp23_local19 = null;
    var tmp24_input = decoder.v47(tmp0_desc);
    if (tmp24_input.k48()) {
      tmp4_local0 = tmp24_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp24_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp24_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp24_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp24_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp24_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp24_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp24_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp24_input.a48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp24_input.a48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp24_input.a48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp24_input.b48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp24_input.b48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp24_input.b48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp24_input.x47(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp24_input.a48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp24_input.j48(tmp0_desc, 16, StringSerializer_getInstance(), tmp20_local16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp24_input.x47(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp24_input.b48(tmp0_desc, 18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp24_input.j48(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp24_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp24_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp24_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp24_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp24_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp24_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp24_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp24_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp24_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp24_input.a48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp24_input.a48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp24_input.a48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp24_input.b48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp24_input.b48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp24_input.b48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp24_input.x47(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp24_input.a48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp24_input.j48(tmp0_desc, 16, StringSerializer_getInstance(), tmp20_local16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp24_input.x47(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp24_input.b48(tmp0_desc, 18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp24_input.j48(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp24_input.w47(tmp0_desc);
    return ContentEntryImportJob_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, null);
  };
  protoOf($serializer_54).mjd = function (encoder, value) {
    var tmp0_desc = this.ljd_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.iax_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.iax_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.jax_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.jax_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.kax_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.kax_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.lax_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.lax_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.max_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.max_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.nax_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.nax_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.oax_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.oax_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.pax_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.pax_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.qax_1 === 4)) {
      tmp1_output.e49(tmp0_desc, 8, value.qax_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.rax_1 === 4)) {
      tmp1_output.e49(tmp0_desc, 9, value.rax_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.sax_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 10, value.sax_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !value.tax_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 11, value.tax_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !value.uax_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 12, value.uax_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !value.vax_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 13, value.vax_1);
    }
    if (tmp1_output.r49(tmp0_desc, 14) ? true : !(value.wax_1 === false)) {
      tmp1_output.b49(tmp0_desc, 14, value.wax_1);
    }
    if (tmp1_output.r49(tmp0_desc, 15) ? true : !(value.xax_1 === 3)) {
      tmp1_output.e49(tmp0_desc, 15, value.xax_1);
    }
    if (tmp1_output.r49(tmp0_desc, 16) ? true : !(value.yax_1 == null)) {
      tmp1_output.n49(tmp0_desc, 16, StringSerializer_getInstance(), value.yax_1);
    }
    if (tmp1_output.r49(tmp0_desc, 17) ? true : !(value.zax_1 === false)) {
      tmp1_output.b49(tmp0_desc, 17, value.zax_1);
    }
    if (tmp1_output.r49(tmp0_desc, 18) ? true : !value.aay_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 18, value.aay_1);
    }
    if (tmp1_output.r49(tmp0_desc, 19) ? true : !(value.bay_1 == null)) {
      tmp1_output.n49(tmp0_desc, 19, StringSerializer_getInstance(), value.bay_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_54).e44 = function (encoder, value) {
    return this.mjd(encoder, value instanceof ContentEntryImportJob ? value : THROW_CCE());
  };
  var $serializer_instance_54;
  function $serializer_getInstance_54() {
    if ($serializer_instance_54 == null)
      new $serializer_54();
    return $serializer_instance_54;
  }
  function ContentEntryImportJob_init_$Init$(seen1, cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_54().ljd_1);
    }
    if (0 === (seen1 & 1))
      $this.iax_1 = new Long(0, 0);
    else
      $this.iax_1 = cjiUid;
    if (0 === (seen1 & 2))
      $this.jax_1 = null;
    else
      $this.jax_1 = sourceUri;
    if (0 === (seen1 & 4))
      $this.kax_1 = null;
    else
      $this.kax_1 = cjiOriginalFilename;
    if (0 === (seen1 & 8))
      $this.lax_1 = new Long(0, 0);
    else
      $this.lax_1 = cjiContentEntryUid;
    if (0 === (seen1 & 16))
      $this.max_1 = new Long(0, 0);
    else
      $this.max_1 = cjiParentContentEntryUid;
    if (0 === (seen1 & 32))
      $this.nax_1 = new Long(0, 0);
    else
      $this.nax_1 = cjiContentEntryVersion;
    if (0 === (seen1 & 64))
      $this.oax_1 = new Long(0, 0);
    else
      $this.oax_1 = cjiItemProgress;
    if (0 === (seen1 & 128))
      $this.pax_1 = new Long(0, 0);
    else
      $this.pax_1 = cjiItemTotal;
    if (0 === (seen1 & 256))
      $this.qax_1 = 4;
    else
      $this.qax_1 = cjiStatus;
    if (0 === (seen1 & 512))
      $this.rax_1 = 4;
    else
      $this.rax_1 = cjiRecursiveStatus;
    if (0 === (seen1 & 1024))
      $this.sax_1 = 0;
    else
      $this.sax_1 = cjiPluginId;
    if (0 === (seen1 & 2048))
      $this.tax_1 = new Long(0, 0);
    else
      $this.tax_1 = cjiParentCjiUid;
    if (0 === (seen1 & 4096))
      $this.uax_1 = new Long(0, 0);
    else
      $this.uax_1 = cjiStartTime;
    if (0 === (seen1 & 8192))
      $this.vax_1 = new Long(0, 0);
    else
      $this.vax_1 = cjiFinishTime;
    if (0 === (seen1 & 16384))
      $this.wax_1 = false;
    else
      $this.wax_1 = cjiContentDeletedOnCancellation;
    if (0 === (seen1 & 32768))
      $this.xax_1 = 3;
    else
      $this.xax_1 = cjiCompressionLevel;
    if (0 === (seen1 & 65536))
      $this.yax_1 = null;
    else
      $this.yax_1 = cjiError;
    if (0 === (seen1 & 131072))
      $this.zax_1 = false;
    else
      $this.zax_1 = cjiErrorDismissed;
    if (0 === (seen1 & 262144))
      $this.aay_1 = new Long(0, 0);
    else
      $this.aay_1 = cjiOwnerPersonUid;
    if (0 === (seen1 & 524288))
      $this.bay_1 = null;
    else
      $this.bay_1 = cjiParams;
    return $this;
  }
  function ContentEntryImportJob_init_$Create$(seen1, cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams, serializationConstructorMarker) {
    return ContentEntryImportJob_init_$Init$(seen1, cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams, serializationConstructorMarker, objectCreate(protoOf(ContentEntryImportJob)));
  }
  function ContentEntryImportJob(cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams) {
    cjiUid = cjiUid === VOID ? new Long(0, 0) : cjiUid;
    sourceUri = sourceUri === VOID ? null : sourceUri;
    cjiOriginalFilename = cjiOriginalFilename === VOID ? null : cjiOriginalFilename;
    cjiContentEntryUid = cjiContentEntryUid === VOID ? new Long(0, 0) : cjiContentEntryUid;
    cjiParentContentEntryUid = cjiParentContentEntryUid === VOID ? new Long(0, 0) : cjiParentContentEntryUid;
    cjiContentEntryVersion = cjiContentEntryVersion === VOID ? new Long(0, 0) : cjiContentEntryVersion;
    cjiItemProgress = cjiItemProgress === VOID ? new Long(0, 0) : cjiItemProgress;
    cjiItemTotal = cjiItemTotal === VOID ? new Long(0, 0) : cjiItemTotal;
    cjiStatus = cjiStatus === VOID ? 4 : cjiStatus;
    cjiRecursiveStatus = cjiRecursiveStatus === VOID ? 4 : cjiRecursiveStatus;
    cjiPluginId = cjiPluginId === VOID ? 0 : cjiPluginId;
    cjiParentCjiUid = cjiParentCjiUid === VOID ? new Long(0, 0) : cjiParentCjiUid;
    cjiStartTime = cjiStartTime === VOID ? new Long(0, 0) : cjiStartTime;
    cjiFinishTime = cjiFinishTime === VOID ? new Long(0, 0) : cjiFinishTime;
    cjiContentDeletedOnCancellation = cjiContentDeletedOnCancellation === VOID ? false : cjiContentDeletedOnCancellation;
    cjiCompressionLevel = cjiCompressionLevel === VOID ? 3 : cjiCompressionLevel;
    cjiError = cjiError === VOID ? null : cjiError;
    cjiErrorDismissed = cjiErrorDismissed === VOID ? false : cjiErrorDismissed;
    cjiOwnerPersonUid = cjiOwnerPersonUid === VOID ? new Long(0, 0) : cjiOwnerPersonUid;
    cjiParams = cjiParams === VOID ? null : cjiParams;
    this.iax_1 = cjiUid;
    this.jax_1 = sourceUri;
    this.kax_1 = cjiOriginalFilename;
    this.lax_1 = cjiContentEntryUid;
    this.max_1 = cjiParentContentEntryUid;
    this.nax_1 = cjiContentEntryVersion;
    this.oax_1 = cjiItemProgress;
    this.pax_1 = cjiItemTotal;
    this.qax_1 = cjiStatus;
    this.rax_1 = cjiRecursiveStatus;
    this.sax_1 = cjiPluginId;
    this.tax_1 = cjiParentCjiUid;
    this.uax_1 = cjiStartTime;
    this.vax_1 = cjiFinishTime;
    this.wax_1 = cjiContentDeletedOnCancellation;
    this.xax_1 = cjiCompressionLevel;
    this.yax_1 = cjiError;
    this.zax_1 = cjiErrorDismissed;
    this.aay_1 = cjiOwnerPersonUid;
    this.bay_1 = cjiParams;
  }
  protoOf(ContentEntryImportJob).njd = function (cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams) {
    return new ContentEntryImportJob(cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams);
  };
  protoOf(ContentEntryImportJob).ojd = function (cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams, $super) {
    cjiUid = cjiUid === VOID ? this.iax_1 : cjiUid;
    sourceUri = sourceUri === VOID ? this.jax_1 : sourceUri;
    cjiOriginalFilename = cjiOriginalFilename === VOID ? this.kax_1 : cjiOriginalFilename;
    cjiContentEntryUid = cjiContentEntryUid === VOID ? this.lax_1 : cjiContentEntryUid;
    cjiParentContentEntryUid = cjiParentContentEntryUid === VOID ? this.max_1 : cjiParentContentEntryUid;
    cjiContentEntryVersion = cjiContentEntryVersion === VOID ? this.nax_1 : cjiContentEntryVersion;
    cjiItemProgress = cjiItemProgress === VOID ? this.oax_1 : cjiItemProgress;
    cjiItemTotal = cjiItemTotal === VOID ? this.pax_1 : cjiItemTotal;
    cjiStatus = cjiStatus === VOID ? this.qax_1 : cjiStatus;
    cjiRecursiveStatus = cjiRecursiveStatus === VOID ? this.rax_1 : cjiRecursiveStatus;
    cjiPluginId = cjiPluginId === VOID ? this.sax_1 : cjiPluginId;
    cjiParentCjiUid = cjiParentCjiUid === VOID ? this.tax_1 : cjiParentCjiUid;
    cjiStartTime = cjiStartTime === VOID ? this.uax_1 : cjiStartTime;
    cjiFinishTime = cjiFinishTime === VOID ? this.vax_1 : cjiFinishTime;
    cjiContentDeletedOnCancellation = cjiContentDeletedOnCancellation === VOID ? this.wax_1 : cjiContentDeletedOnCancellation;
    cjiCompressionLevel = cjiCompressionLevel === VOID ? this.xax_1 : cjiCompressionLevel;
    cjiError = cjiError === VOID ? this.yax_1 : cjiError;
    cjiErrorDismissed = cjiErrorDismissed === VOID ? this.zax_1 : cjiErrorDismissed;
    cjiOwnerPersonUid = cjiOwnerPersonUid === VOID ? this.aay_1 : cjiOwnerPersonUid;
    cjiParams = cjiParams === VOID ? this.bay_1 : cjiParams;
    return $super === VOID ? this.njd(cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams) : $super.njd.call(this, cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams);
  };
  protoOf(ContentEntryImportJob).toString = function () {
    return 'ContentEntryImportJob(cjiUid=' + this.iax_1.toString() + ', sourceUri=' + this.jax_1 + ', cjiOriginalFilename=' + this.kax_1 + ', cjiContentEntryUid=' + this.lax_1.toString() + ', cjiParentContentEntryUid=' + this.max_1.toString() + ', cjiContentEntryVersion=' + this.nax_1.toString() + ', cjiItemProgress=' + this.oax_1.toString() + ', cjiItemTotal=' + this.pax_1.toString() + ', cjiStatus=' + this.qax_1 + ', cjiRecursiveStatus=' + this.rax_1 + ', cjiPluginId=' + this.sax_1 + ', cjiParentCjiUid=' + this.tax_1.toString() + ', cjiStartTime=' + this.uax_1.toString() + ', cjiFinishTime=' + this.vax_1.toString() + ', cjiContentDeletedOnCancellation=' + this.wax_1 + ', cjiCompressionLevel=' + this.xax_1 + ', cjiError=' + this.yax_1 + ', cjiErrorDismissed=' + this.zax_1 + ', cjiOwnerPersonUid=' + this.aay_1.toString() + ', cjiParams=' + this.bay_1 + ')';
  };
  protoOf(ContentEntryImportJob).hashCode = function () {
    var result = this.iax_1.hashCode();
    result = imul(result, 31) + (this.jax_1 == null ? 0 : getStringHashCode(this.jax_1)) | 0;
    result = imul(result, 31) + (this.kax_1 == null ? 0 : getStringHashCode(this.kax_1)) | 0;
    result = imul(result, 31) + this.lax_1.hashCode() | 0;
    result = imul(result, 31) + this.max_1.hashCode() | 0;
    result = imul(result, 31) + this.nax_1.hashCode() | 0;
    result = imul(result, 31) + this.oax_1.hashCode() | 0;
    result = imul(result, 31) + this.pax_1.hashCode() | 0;
    result = imul(result, 31) + this.qax_1 | 0;
    result = imul(result, 31) + this.rax_1 | 0;
    result = imul(result, 31) + this.sax_1 | 0;
    result = imul(result, 31) + this.tax_1.hashCode() | 0;
    result = imul(result, 31) + this.uax_1.hashCode() | 0;
    result = imul(result, 31) + this.vax_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.wax_1) | 0;
    result = imul(result, 31) + this.xax_1 | 0;
    result = imul(result, 31) + (this.yax_1 == null ? 0 : getStringHashCode(this.yax_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.zax_1) | 0;
    result = imul(result, 31) + this.aay_1.hashCode() | 0;
    result = imul(result, 31) + (this.bay_1 == null ? 0 : getStringHashCode(this.bay_1)) | 0;
    return result;
  };
  protoOf(ContentEntryImportJob).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ContentEntryImportJob))
      return false;
    var tmp0_other_with_cast = other instanceof ContentEntryImportJob ? other : THROW_CCE();
    if (!this.iax_1.equals(tmp0_other_with_cast.iax_1))
      return false;
    if (!(this.jax_1 == tmp0_other_with_cast.jax_1))
      return false;
    if (!(this.kax_1 == tmp0_other_with_cast.kax_1))
      return false;
    if (!this.lax_1.equals(tmp0_other_with_cast.lax_1))
      return false;
    if (!this.max_1.equals(tmp0_other_with_cast.max_1))
      return false;
    if (!this.nax_1.equals(tmp0_other_with_cast.nax_1))
      return false;
    if (!this.oax_1.equals(tmp0_other_with_cast.oax_1))
      return false;
    if (!this.pax_1.equals(tmp0_other_with_cast.pax_1))
      return false;
    if (!(this.qax_1 === tmp0_other_with_cast.qax_1))
      return false;
    if (!(this.rax_1 === tmp0_other_with_cast.rax_1))
      return false;
    if (!(this.sax_1 === tmp0_other_with_cast.sax_1))
      return false;
    if (!this.tax_1.equals(tmp0_other_with_cast.tax_1))
      return false;
    if (!this.uax_1.equals(tmp0_other_with_cast.uax_1))
      return false;
    if (!this.vax_1.equals(tmp0_other_with_cast.vax_1))
      return false;
    if (!(this.wax_1 === tmp0_other_with_cast.wax_1))
      return false;
    if (!(this.xax_1 === tmp0_other_with_cast.xax_1))
      return false;
    if (!(this.yax_1 == tmp0_other_with_cast.yax_1))
      return false;
    if (!(this.zax_1 === tmp0_other_with_cast.zax_1))
      return false;
    if (!this.aay_1.equals(tmp0_other_with_cast.aay_1))
      return false;
    if (!(this.bay_1 == tmp0_other_with_cast.bay_1))
      return false;
    return true;
  };
  function Companion_58() {
    this.pjd_1 = 7;
  }
  var Companion_instance_59;
  function Companion_getInstance_61() {
    return Companion_instance_59;
  }
  function $serializer_55() {
    $serializer_instance_55 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryParentChildJoin', this, 9);
    tmp0_serialDesc.g4f('cepcjParentContentEntryUid', true);
    tmp0_serialDesc.g4f('cepcjChildContentEntryUid', true);
    tmp0_serialDesc.g4f('childIndex', true);
    tmp0_serialDesc.g4f('cepcjUid', true);
    tmp0_serialDesc.g4f('cepcjLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('cepcjMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('cepcjLastChangedBy', true);
    tmp0_serialDesc.g4f('cepcjLct', true);
    tmp0_serialDesc.g4f('cepcjDeleted', true);
    this.qjd_1 = tmp0_serialDesc;
  }
  protoOf($serializer_55).d44 = function () {
    return this.qjd_1;
  };
  protoOf($serializer_55).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_55).f44 = function (decoder) {
    var tmp0_desc = this.qjd_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = 0;
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = 0;
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = false;
    var tmp13_input = decoder.v47(tmp0_desc);
    if (tmp13_input.k48()) {
      tmp4_local0 = tmp13_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp13_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp13_input.a48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp13_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp13_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp13_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp13_input.a48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp13_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp13_input.x47(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp13_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp13_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp13_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp13_input.a48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp13_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp13_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp13_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp13_input.a48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp13_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp13_input.x47(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp13_input.w47(tmp0_desc);
    return ContentEntryParentChildJoin_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null);
  };
  protoOf($serializer_55).rjd = function (encoder, value) {
    var tmp0_desc = this.qjd_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.mak_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.mak_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.nak_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.nak_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.oak_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 2, value.oak_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.pak_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.pak_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.qak_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.qak_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.rak_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.rak_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.sak_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 6, value.sak_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.tak_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.tak_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.uak_1 === false)) {
      tmp1_output.b49(tmp0_desc, 8, value.uak_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_55).e44 = function (encoder, value) {
    return this.rjd(encoder, value instanceof ContentEntryParentChildJoin ? value : THROW_CCE());
  };
  var $serializer_instance_55;
  function $serializer_getInstance_55() {
    if ($serializer_instance_55 == null)
      new $serializer_55();
    return $serializer_instance_55;
  }
  function ContentEntryParentChildJoin_init_$Init$(seen1, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex, cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_55().qjd_1);
    }
    if (0 === (seen1 & 1))
      $this.mak_1 = new Long(0, 0);
    else
      $this.mak_1 = cepcjParentContentEntryUid;
    if (0 === (seen1 & 2))
      $this.nak_1 = new Long(0, 0);
    else
      $this.nak_1 = cepcjChildContentEntryUid;
    if (0 === (seen1 & 4))
      $this.oak_1 = 0;
    else
      $this.oak_1 = childIndex;
    if (0 === (seen1 & 8))
      $this.pak_1 = new Long(0, 0);
    else
      $this.pak_1 = cepcjUid;
    if (0 === (seen1 & 16))
      $this.qak_1 = new Long(0, 0);
    else
      $this.qak_1 = cepcjLocalChangeSeqNum;
    if (0 === (seen1 & 32))
      $this.rak_1 = new Long(0, 0);
    else
      $this.rak_1 = cepcjMasterChangeSeqNum;
    if (0 === (seen1 & 64))
      $this.sak_1 = 0;
    else
      $this.sak_1 = cepcjLastChangedBy;
    if (0 === (seen1 & 128))
      $this.tak_1 = new Long(0, 0);
    else
      $this.tak_1 = cepcjLct;
    if (0 === (seen1 & 256))
      $this.uak_1 = false;
    else
      $this.uak_1 = cepcjDeleted;
    return $this;
  }
  function ContentEntryParentChildJoin_init_$Create$(seen1, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex, cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, serializationConstructorMarker) {
    return ContentEntryParentChildJoin_init_$Init$(seen1, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex, cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, serializationConstructorMarker, objectCreate(protoOf(ContentEntryParentChildJoin)));
  }
  function ContentEntryParentChildJoin(cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex) {
    cepcjParentContentEntryUid = cepcjParentContentEntryUid === VOID ? new Long(0, 0) : cepcjParentContentEntryUid;
    cepcjChildContentEntryUid = cepcjChildContentEntryUid === VOID ? new Long(0, 0) : cepcjChildContentEntryUid;
    childIndex = childIndex === VOID ? 0 : childIndex;
    this.mak_1 = cepcjParentContentEntryUid;
    this.nak_1 = cepcjChildContentEntryUid;
    this.oak_1 = childIndex;
    this.pak_1 = new Long(0, 0);
    this.qak_1 = new Long(0, 0);
    this.rak_1 = new Long(0, 0);
    this.sak_1 = 0;
    this.tak_1 = new Long(0, 0);
    this.uak_1 = false;
  }
  protoOf(ContentEntryParentChildJoin).equals = function (other) {
    if (this === other)
      return true;
    if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
      return false;
    if (!(other instanceof ContentEntryParentChildJoin))
      THROW_CCE();
    if (!this.pak_1.equals(other.pak_1))
      return false;
    if (!this.qak_1.equals(other.qak_1))
      return false;
    if (!this.rak_1.equals(other.rak_1))
      return false;
    if (!(this.sak_1 === other.sak_1))
      return false;
    if (!this.mak_1.equals(other.mak_1))
      return false;
    if (!this.nak_1.equals(other.nak_1))
      return false;
    if (!(this.oak_1 === other.oak_1))
      return false;
    return true;
  };
  protoOf(ContentEntryParentChildJoin).hashCode = function () {
    var result = this.pak_1.hashCode();
    result = imul(31, result) + this.qak_1.hashCode() | 0;
    result = imul(31, result) + this.rak_1.hashCode() | 0;
    result = imul(31, result) + this.sak_1 | 0;
    result = imul(31, result) + this.mak_1.hashCode() | 0;
    result = imul(31, result) + this.nak_1.hashCode() | 0;
    result = imul(31, result) + this.oak_1 | 0;
    return result;
  };
  function Companion_59() {
    this.sjd_1 = 138;
  }
  var Companion_instance_60;
  function Companion_getInstance_62() {
    return Companion_instance_60;
  }
  function $serializer_56() {
    $serializer_instance_56 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryPicture', this, 8);
    tmp0_serialDesc.g4f('cepUid', true);
    tmp0_serialDesc.g4f('cepContentEntryUid', true);
    tmp0_serialDesc.g4f('cepUri', true);
    tmp0_serialDesc.g4f('cepMd5', true);
    tmp0_serialDesc.g4f('cepFileSize', true);
    tmp0_serialDesc.g4f('cepTimestamp', true);
    tmp0_serialDesc.g4f('cepMimeType', true);
    tmp0_serialDesc.g4f('cepActive', true);
    this.tjd_1 = tmp0_serialDesc;
  }
  protoOf($serializer_56).d44 = function () {
    return this.tjd_1;
  };
  protoOf($serializer_56).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_56).f44 = function (decoder) {
    var tmp0_desc = this.tjd_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = 0;
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = null;
    var tmp11_local7 = false;
    var tmp12_input = decoder.v47(tmp0_desc);
    if (tmp12_input.k48()) {
      tmp4_local0 = tmp12_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.a48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.x47(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.a48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.x47(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.w47(tmp0_desc);
    return ContentEntryPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
  };
  protoOf($serializer_56).ujd = function (encoder, value) {
    var tmp0_desc = this.tjd_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.qb6_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.qb6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.rb6_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.rb6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.sb6_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.sb6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.tb6_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.tb6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.ub6_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 4, value.ub6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.vb6_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.vb6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.wb6_1 == null)) {
      tmp1_output.n49(tmp0_desc, 6, StringSerializer_getInstance(), value.wb6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.xb6_1 === true)) {
      tmp1_output.b49(tmp0_desc, 7, value.xb6_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_56).e44 = function (encoder, value) {
    return this.ujd(encoder, value instanceof ContentEntryPicture ? value : THROW_CCE());
  };
  var $serializer_instance_56;
  function $serializer_getInstance_56() {
    if ($serializer_instance_56 == null)
      new $serializer_56();
    return $serializer_instance_56;
  }
  function ContentEntryPicture_init_$Init$(seen1, cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_56().tjd_1);
    }
    if (0 === (seen1 & 1))
      $this.qb6_1 = new Long(0, 0);
    else
      $this.qb6_1 = cepUid;
    if (0 === (seen1 & 2))
      $this.rb6_1 = new Long(0, 0);
    else
      $this.rb6_1 = cepContentEntryUid;
    if (0 === (seen1 & 4))
      $this.sb6_1 = null;
    else
      $this.sb6_1 = cepUri;
    if (0 === (seen1 & 8))
      $this.tb6_1 = null;
    else
      $this.tb6_1 = cepMd5;
    if (0 === (seen1 & 16))
      $this.ub6_1 = 0;
    else
      $this.ub6_1 = cepFileSize;
    if (0 === (seen1 & 32))
      $this.vb6_1 = new Long(0, 0);
    else
      $this.vb6_1 = cepTimestamp;
    if (0 === (seen1 & 64))
      $this.wb6_1 = null;
    else
      $this.wb6_1 = cepMimeType;
    if (0 === (seen1 & 128))
      $this.xb6_1 = true;
    else
      $this.xb6_1 = cepActive;
    return $this;
  }
  function ContentEntryPicture_init_$Create$(seen1, cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive, serializationConstructorMarker) {
    return ContentEntryPicture_init_$Init$(seen1, cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive, serializationConstructorMarker, objectCreate(protoOf(ContentEntryPicture)));
  }
  function ContentEntryPicture() {
    this.qb6_1 = new Long(0, 0);
    this.rb6_1 = new Long(0, 0);
    this.sb6_1 = null;
    this.tb6_1 = null;
    this.ub6_1 = 0;
    this.vb6_1 = new Long(0, 0);
    this.wb6_1 = null;
    this.xb6_1 = true;
  }
  protoOf(ContentEntryPicture).equals = function (other) {
    if (this === other)
      return true;
    if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
      return false;
    if (!(other instanceof ContentEntryPicture))
      THROW_CCE();
    if (!this.qb6_1.equals(other.qb6_1))
      return false;
    if (!this.rb6_1.equals(other.rb6_1))
      return false;
    if (!(this.sb6_1 == other.sb6_1))
      return false;
    if (!(this.tb6_1 == other.tb6_1))
      return false;
    if (!(this.ub6_1 === other.ub6_1))
      return false;
    if (!this.vb6_1.equals(other.vb6_1))
      return false;
    if (!(this.wb6_1 == other.wb6_1))
      return false;
    if (!(this.xb6_1 === other.xb6_1))
      return false;
    return true;
  };
  protoOf(ContentEntryPicture).hashCode = function () {
    var result = this.qb6_1.hashCode();
    result = imul(31, result) + this.rb6_1.hashCode() | 0;
    var tmp = imul(31, result);
    var tmp0_safe_receiver = this.sb6_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
    result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
    var tmp_0 = imul(31, result);
    var tmp2_safe_receiver = this.tb6_1;
    var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : getStringHashCode(tmp2_safe_receiver);
    result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0;
    result = imul(31, result) + this.ub6_1 | 0;
    result = imul(31, result) + this.vb6_1.hashCode() | 0;
    var tmp_1 = imul(31, result);
    var tmp4_safe_receiver = this.wb6_1;
    var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : getStringHashCode(tmp4_safe_receiver);
    result = tmp_1 + (tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs) | 0;
    result = imul(31, result) + getBooleanHashCode(this.xb6_1) | 0;
    return result;
  };
  function Companion_60() {
    this.vjd_1 = 6678;
  }
  var Companion_instance_61;
  function Companion_getInstance_63() {
    return Companion_instance_61;
  }
  function $serializer_57() {
    $serializer_instance_57 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryPicture2', this, 4);
    tmp0_serialDesc.g4f('cepUid', true);
    tmp0_serialDesc.g4f('cepLct', true);
    tmp0_serialDesc.g4f('cepPictureUri', true);
    tmp0_serialDesc.g4f('cepThumbnailUri', true);
    this.wjd_1 = tmp0_serialDesc;
  }
  protoOf($serializer_57).d44 = function () {
    return this.wjd_1;
  };
  protoOf($serializer_57).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_57).f44 = function (decoder) {
    var tmp0_desc = this.wjd_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_input = decoder.v47(tmp0_desc);
    if (tmp8_input.k48()) {
      tmp4_local0 = tmp8_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.w47(tmp0_desc);
    return ContentEntryPicture2_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_57).xjd = function (encoder, value) {
    var tmp0_desc = this.wjd_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.vai_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.vai_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.wai_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.wai_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.xai_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.xai_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.yai_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.yai_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_57).e44 = function (encoder, value) {
    return this.xjd(encoder, value instanceof ContentEntryPicture2 ? value : THROW_CCE());
  };
  var $serializer_instance_57;
  function $serializer_getInstance_57() {
    if ($serializer_instance_57 == null)
      new $serializer_57();
    return $serializer_instance_57;
  }
  function ContentEntryPicture2_init_$Init$(seen1, cepUid, cepLct, cepPictureUri, cepThumbnailUri, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_57().wjd_1);
    }
    if (0 === (seen1 & 1))
      $this.vai_1 = new Long(0, 0);
    else
      $this.vai_1 = cepUid;
    if (0 === (seen1 & 2))
      $this.wai_1 = new Long(0, 0);
    else
      $this.wai_1 = cepLct;
    if (0 === (seen1 & 4))
      $this.xai_1 = null;
    else
      $this.xai_1 = cepPictureUri;
    if (0 === (seen1 & 8))
      $this.yai_1 = null;
    else
      $this.yai_1 = cepThumbnailUri;
    return $this;
  }
  function ContentEntryPicture2_init_$Create$(seen1, cepUid, cepLct, cepPictureUri, cepThumbnailUri, serializationConstructorMarker) {
    return ContentEntryPicture2_init_$Init$(seen1, cepUid, cepLct, cepPictureUri, cepThumbnailUri, serializationConstructorMarker, objectCreate(protoOf(ContentEntryPicture2)));
  }
  function ContentEntryPicture2(cepUid, cepLct, cepPictureUri, cepThumbnailUri) {
    cepUid = cepUid === VOID ? new Long(0, 0) : cepUid;
    cepLct = cepLct === VOID ? new Long(0, 0) : cepLct;
    cepPictureUri = cepPictureUri === VOID ? null : cepPictureUri;
    cepThumbnailUri = cepThumbnailUri === VOID ? null : cepThumbnailUri;
    this.vai_1 = cepUid;
    this.wai_1 = cepLct;
    this.xai_1 = cepPictureUri;
    this.yai_1 = cepThumbnailUri;
  }
  protoOf(ContentEntryPicture2).yjd = function (cepUid, cepLct, cepPictureUri, cepThumbnailUri) {
    return new ContentEntryPicture2(cepUid, cepLct, cepPictureUri, cepThumbnailUri);
  };
  protoOf(ContentEntryPicture2).zjd = function (cepUid, cepLct, cepPictureUri, cepThumbnailUri, $super) {
    cepUid = cepUid === VOID ? this.vai_1 : cepUid;
    cepLct = cepLct === VOID ? this.wai_1 : cepLct;
    cepPictureUri = cepPictureUri === VOID ? this.xai_1 : cepPictureUri;
    cepThumbnailUri = cepThumbnailUri === VOID ? this.yai_1 : cepThumbnailUri;
    return $super === VOID ? this.yjd(cepUid, cepLct, cepPictureUri, cepThumbnailUri) : $super.yjd.call(this, cepUid, cepLct, cepPictureUri, cepThumbnailUri);
  };
  protoOf(ContentEntryPicture2).toString = function () {
    return 'ContentEntryPicture2(cepUid=' + this.vai_1.toString() + ', cepLct=' + this.wai_1.toString() + ', cepPictureUri=' + this.xai_1 + ', cepThumbnailUri=' + this.yai_1 + ')';
  };
  protoOf(ContentEntryPicture2).hashCode = function () {
    var result = this.vai_1.hashCode();
    result = imul(result, 31) + this.wai_1.hashCode() | 0;
    result = imul(result, 31) + (this.xai_1 == null ? 0 : getStringHashCode(this.xai_1)) | 0;
    result = imul(result, 31) + (this.yai_1 == null ? 0 : getStringHashCode(this.yai_1)) | 0;
    return result;
  };
  protoOf(ContentEntryPicture2).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ContentEntryPicture2))
      return false;
    var tmp0_other_with_cast = other instanceof ContentEntryPicture2 ? other : THROW_CCE();
    if (!this.vai_1.equals(tmp0_other_with_cast.vai_1))
      return false;
    if (!this.wai_1.equals(tmp0_other_with_cast.wai_1))
      return false;
    if (!(this.xai_1 == tmp0_other_with_cast.xai_1))
      return false;
    if (!(this.yai_1 == tmp0_other_with_cast.yai_1))
      return false;
    return true;
  };
  function Companion_61() {
    this.aje_1 = 8;
    this.bje_1 = 1;
    this.cje_1 = 2;
  }
  var Companion_instance_62;
  function Companion_getInstance_64() {
    return Companion_instance_62;
  }
  function $serializer_58() {
    $serializer_instance_58 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryRelatedEntryJoin', this, 10);
    tmp0_serialDesc.g4f('cerejUid', true);
    tmp0_serialDesc.g4f('cerejContentEntryUid', true);
    tmp0_serialDesc.g4f('cerejRelatedEntryUid', true);
    tmp0_serialDesc.g4f('cerejLastChangedBy', true);
    tmp0_serialDesc.g4f('relType', true);
    tmp0_serialDesc.g4f('comment', true);
    tmp0_serialDesc.g4f('cerejRelLanguageUid', true);
    tmp0_serialDesc.g4f('cerejLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('cerejMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('cerejLct', true);
    this.dje_1 = tmp0_serialDesc;
  }
  protoOf($serializer_58).d44 = function () {
    return this.dje_1;
  };
  protoOf($serializer_58).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_58).f44 = function (decoder) {
    var tmp0_desc = this.dje_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = 0;
    var tmp8_local4 = 0;
    var tmp9_local5 = null;
    var tmp10_local6 = new Long(0, 0);
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = new Long(0, 0);
    var tmp14_input = decoder.v47(tmp0_desc);
    if (tmp14_input.k48()) {
      tmp4_local0 = tmp14_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp14_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp14_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp14_input.a48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp14_input.a48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp14_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp14_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp14_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp14_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp14_input.b48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp14_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp14_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp14_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp14_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp14_input.a48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp14_input.a48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp14_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp14_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp14_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp14_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp14_input.b48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp14_input.w47(tmp0_desc);
    return ContentEntryRelatedEntryJoin_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null);
  };
  protoOf($serializer_58).eje = function (encoder, value) {
    var tmp0_desc = this.dje_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.cb9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.cb9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.db9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.db9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.eb9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.eb9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.fb9_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 3, value.fb9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.gb9_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 4, value.gb9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.hb9_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.hb9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.ib9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.ib9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.jb9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.jb9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.kb9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.kb9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !value.lb9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 9, value.lb9_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_58).e44 = function (encoder, value) {
    return this.eje(encoder, value instanceof ContentEntryRelatedEntryJoin ? value : THROW_CCE());
  };
  var $serializer_instance_58;
  function $serializer_getInstance_58() {
    if ($serializer_instance_58 == null)
      new $serializer_58();
    return $serializer_instance_58;
  }
  function ContentEntryRelatedEntryJoin_init_$Init$(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_58().dje_1);
    }
    if (0 === (seen1 & 1))
      $this.cb9_1 = new Long(0, 0);
    else
      $this.cb9_1 = cerejUid;
    if (0 === (seen1 & 2))
      $this.db9_1 = new Long(0, 0);
    else
      $this.db9_1 = cerejContentEntryUid;
    if (0 === (seen1 & 4))
      $this.eb9_1 = new Long(0, 0);
    else
      $this.eb9_1 = cerejRelatedEntryUid;
    if (0 === (seen1 & 8))
      $this.fb9_1 = 0;
    else
      $this.fb9_1 = cerejLastChangedBy;
    if (0 === (seen1 & 16))
      $this.gb9_1 = 0;
    else
      $this.gb9_1 = relType;
    if (0 === (seen1 & 32))
      $this.hb9_1 = null;
    else
      $this.hb9_1 = comment;
    if (0 === (seen1 & 64))
      $this.ib9_1 = new Long(0, 0);
    else
      $this.ib9_1 = cerejRelLanguageUid;
    if (0 === (seen1 & 128))
      $this.jb9_1 = new Long(0, 0);
    else
      $this.jb9_1 = cerejLocalChangeSeqNum;
    if (0 === (seen1 & 256))
      $this.kb9_1 = new Long(0, 0);
    else
      $this.kb9_1 = cerejMasterChangeSeqNum;
    if (0 === (seen1 & 512))
      $this.lb9_1 = new Long(0, 0);
    else
      $this.lb9_1 = cerejLct;
    return $this;
  }
  function ContentEntryRelatedEntryJoin_init_$Create$(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, serializationConstructorMarker) {
    return ContentEntryRelatedEntryJoin_init_$Init$(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, serializationConstructorMarker, objectCreate(protoOf(ContentEntryRelatedEntryJoin)));
  }
  function ContentEntryRelatedEntryJoin() {
    this.cb9_1 = new Long(0, 0);
    this.db9_1 = new Long(0, 0);
    this.eb9_1 = new Long(0, 0);
    this.fb9_1 = 0;
    this.gb9_1 = 0;
    this.hb9_1 = null;
    this.ib9_1 = new Long(0, 0);
    this.jb9_1 = new Long(0, 0);
    this.kb9_1 = new Long(0, 0);
    this.lb9_1 = new Long(0, 0);
  }
  protoOf(ContentEntryRelatedEntryJoin).equals = function (other) {
    if (this === other)
      return true;
    var that = (other == null ? true : other instanceof ContentEntryRelatedEntryJoin) ? other : THROW_CCE();
    if (!this.cb9_1.equals(ensureNotNull(that).cb9_1))
      return false;
    if (!this.db9_1.equals(that.db9_1))
      return false;
    if (!this.eb9_1.equals(that.eb9_1))
      return false;
    if (!(this.gb9_1 === that.gb9_1))
      return false;
    if (!this.ib9_1.equals(that.ib9_1))
      return false;
    return !(this.hb9_1 == null) ? this.hb9_1 == that.hb9_1 : that.hb9_1 == null;
  };
  protoOf(ContentEntryRelatedEntryJoin).hashCode = function () {
    var result = this.cb9_1.wc(this.cb9_1.tc(32)).mb();
    result = imul(31, result) + this.db9_1.wc(this.db9_1.tc(32)).mb() | 0;
    result = imul(31, result) + this.eb9_1.wc(this.eb9_1.tc(32)).mb() | 0;
    result = imul(31, result) + this.gb9_1 | 0;
    result = imul(31, result) + (!(this.hb9_1 == null) ? getStringHashCode(ensureNotNull(this.hb9_1)) : 0) | 0;
    result = imul(31, result) + this.ib9_1.wc(this.ib9_1.tc(32)).mb() | 0;
    return result;
  };
  function Companion_62() {
  }
  var Companion_instance_63;
  function Companion_getInstance_65() {
    return Companion_instance_63;
  }
  function $serializer_59() {
    $serializer_instance_59 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryRelatedEntryJoinWithLanguage', this, 11);
    tmp0_serialDesc.g4f('cerejUid', true);
    tmp0_serialDesc.g4f('cerejContentEntryUid', true);
    tmp0_serialDesc.g4f('cerejRelatedEntryUid', true);
    tmp0_serialDesc.g4f('cerejLastChangedBy', true);
    tmp0_serialDesc.g4f('relType', true);
    tmp0_serialDesc.g4f('comment', true);
    tmp0_serialDesc.g4f('cerejRelLanguageUid', true);
    tmp0_serialDesc.g4f('cerejLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('cerejMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('cerejLct', true);
    tmp0_serialDesc.g4f('language', true);
    this.fje_1 = tmp0_serialDesc;
  }
  protoOf($serializer_59).d44 = function () {
    return this.fje_1;
  };
  protoOf($serializer_59).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_83())];
  };
  protoOf($serializer_59).f44 = function (decoder) {
    var tmp0_desc = this.fje_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = 0;
    var tmp8_local4 = 0;
    var tmp9_local5 = null;
    var tmp10_local6 = new Long(0, 0);
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = new Long(0, 0);
    var tmp14_local10 = null;
    var tmp15_input = decoder.v47(tmp0_desc);
    if (tmp15_input.k48()) {
      tmp4_local0 = tmp15_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp15_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp15_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp15_input.a48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp15_input.a48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp15_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp15_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp15_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp15_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp15_input.b48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp15_input.j48(tmp0_desc, 10, $serializer_getInstance_83(), tmp14_local10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp15_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp15_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp15_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp15_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp15_input.a48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp15_input.a48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp15_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp15_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp15_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp15_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp15_input.b48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp15_input.j48(tmp0_desc, 10, $serializer_getInstance_83(), tmp14_local10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp15_input.w47(tmp0_desc);
    return ContentEntryRelatedEntryJoinWithLanguage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null);
  };
  protoOf($serializer_59).gje = function (encoder, value) {
    var tmp0_desc = this.fje_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.cb9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.cb9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.db9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.db9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.eb9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.eb9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.fb9_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 3, value.fb9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.gb9_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 4, value.gb9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.hb9_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.hb9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.ib9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.ib9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.jb9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.jb9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.kb9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.kb9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !value.lb9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 9, value.lb9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.rje_1 == null)) {
      tmp1_output.n49(tmp0_desc, 10, $serializer_getInstance_83(), value.rje_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_59).e44 = function (encoder, value) {
    return this.gje(encoder, value instanceof ContentEntryRelatedEntryJoinWithLanguage ? value : THROW_CCE());
  };
  var $serializer_instance_59;
  function $serializer_getInstance_59() {
    if ($serializer_instance_59 == null)
      new $serializer_59();
    return $serializer_instance_59;
  }
  function ContentEntryRelatedEntryJoinWithLanguage_init_$Init$(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, language, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_59().fje_1);
    }
    ContentEntryRelatedEntryJoin_init_$Init$(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, serializationConstructorMarker, $this);
    if (0 === (seen1 & 1024))
      $this.rje_1 = null;
    else
      $this.rje_1 = language;
    return $this;
  }
  function ContentEntryRelatedEntryJoinWithLanguage_init_$Create$(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, language, serializationConstructorMarker) {
    return ContentEntryRelatedEntryJoinWithLanguage_init_$Init$(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, language, serializationConstructorMarker, objectCreate(protoOf(ContentEntryRelatedEntryJoinWithLanguage)));
  }
  function ContentEntryRelatedEntryJoinWithLanguage() {
    ContentEntryRelatedEntryJoin.call(this);
    this.rje_1 = null;
  }
  protoOf(ContentEntryRelatedEntryJoinWithLanguage).equals = function (other) {
    if (this === other)
      return true;
    if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
      return false;
    if (!protoOf(ContentEntryRelatedEntryJoin).equals.call(this, other))
      return false;
    if (!(other instanceof ContentEntryRelatedEntryJoinWithLanguage))
      THROW_CCE();
    if (!equals(this.rje_1, other.rje_1))
      return false;
    return true;
  };
  protoOf(ContentEntryRelatedEntryJoinWithLanguage).hashCode = function () {
    var result = protoOf(ContentEntryRelatedEntryJoin).hashCode.call(this);
    var tmp = imul(31, result);
    var tmp0_safe_receiver = this.rje_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.hashCode();
    result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
    return result;
  };
  function Companion_63() {
  }
  var Companion_instance_64;
  function Companion_getInstance_66() {
    return Companion_instance_64;
  }
  function $serializer_60() {
    $serializer_instance_60 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryStatementScoreProgress', this, 10);
    tmp0_serialDesc.g4f('resultScore', true);
    tmp0_serialDesc.g4f('resultMax', true);
    tmp0_serialDesc.g4f('resultScaled', true);
    tmp0_serialDesc.g4f('resultWeight', true);
    tmp0_serialDesc.g4f('contentComplete', true);
    tmp0_serialDesc.g4f('progress', true);
    tmp0_serialDesc.g4f('success', true);
    tmp0_serialDesc.g4f('penalty', true);
    tmp0_serialDesc.g4f('totalContent', true);
    tmp0_serialDesc.g4f('totalCompletedContent', true);
    this.sje_1 = tmp0_serialDesc;
  }
  protoOf($serializer_60).d44 = function () {
    return this.sje_1;
  };
  protoOf($serializer_60).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [IntSerializer_getInstance(), IntSerializer_getInstance(), FloatSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), ByteSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()];
  };
  protoOf($serializer_60).f44 = function (decoder) {
    var tmp0_desc = this.sje_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = 0;
    var tmp5_local1 = 0;
    var tmp6_local2 = 0.0;
    var tmp7_local3 = 0;
    var tmp8_local4 = false;
    var tmp9_local5 = 0;
    var tmp10_local6 = 0;
    var tmp11_local7 = 0;
    var tmp12_local8 = 0;
    var tmp13_local9 = 0;
    var tmp14_input = decoder.v47(tmp0_desc);
    if (tmp14_input.k48()) {
      tmp4_local0 = tmp14_input.a48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp14_input.a48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp14_input.c48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp14_input.a48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp14_input.x47(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp14_input.a48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp14_input.y47(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp14_input.a48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp14_input.a48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp14_input.a48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp14_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp14_input.a48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp14_input.a48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp14_input.c48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp14_input.a48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp14_input.x47(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp14_input.a48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp14_input.y47(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp14_input.a48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp14_input.a48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp14_input.a48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp14_input.w47(tmp0_desc);
    return ContentEntryStatementScoreProgress_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null);
  };
  protoOf($serializer_60).tje = function (encoder, value) {
    var tmp0_desc = this.sje_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.uje_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 0, value.uje_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.vje_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 1, value.vje_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !equals(value.wje_1, 0.0)) {
      tmp1_output.g49(tmp0_desc, 2, value.wje_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.xje_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 3, value.xje_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.yje_1 === false)) {
      tmp1_output.b49(tmp0_desc, 4, value.yje_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.zje_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 5, value.zje_1);
    }
    var tmp;
    if (tmp1_output.r49(tmp0_desc, 6)) {
      tmp = true;
    } else {
      var tmp_0 = value.ajf_1;
      tmp = !(tmp_0 === 0);
    }
    if (tmp) {
      tmp1_output.c49(tmp0_desc, 6, value.ajf_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.bjf_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 7, value.bjf_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.cjf_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 8, value.cjf_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.djf_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 9, value.djf_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_60).e44 = function (encoder, value) {
    return this.tje(encoder, value instanceof ContentEntryStatementScoreProgress ? value : THROW_CCE());
  };
  var $serializer_instance_60;
  function $serializer_getInstance_60() {
    if ($serializer_instance_60 == null)
      new $serializer_60();
    return $serializer_instance_60;
  }
  function ContentEntryStatementScoreProgress_init_$Init$(seen1, resultScore, resultMax, resultScaled, resultWeight, contentComplete, progress, success, penalty, totalContent, totalCompletedContent, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_60().sje_1);
    }
    if (0 === (seen1 & 1))
      $this.uje_1 = 0;
    else
      $this.uje_1 = resultScore;
    if (0 === (seen1 & 2))
      $this.vje_1 = 0;
    else
      $this.vje_1 = resultMax;
    if (0 === (seen1 & 4))
      $this.wje_1 = 0.0;
    else
      $this.wje_1 = resultScaled;
    if (0 === (seen1 & 8))
      $this.xje_1 = 0;
    else
      $this.xje_1 = resultWeight;
    if (0 === (seen1 & 16))
      $this.yje_1 = false;
    else
      $this.yje_1 = contentComplete;
    if (0 === (seen1 & 32))
      $this.zje_1 = 0;
    else
      $this.zje_1 = progress;
    if (0 === (seen1 & 64)) {
      var tmp = $this;
      tmp.ajf_1 = 0;
    } else
      $this.ajf_1 = success;
    if (0 === (seen1 & 128))
      $this.bjf_1 = 0;
    else
      $this.bjf_1 = penalty;
    if (0 === (seen1 & 256))
      $this.cjf_1 = 0;
    else
      $this.cjf_1 = totalContent;
    if (0 === (seen1 & 512))
      $this.djf_1 = 0;
    else
      $this.djf_1 = totalCompletedContent;
    return $this;
  }
  function ContentEntryStatementScoreProgress_init_$Create$(seen1, resultScore, resultMax, resultScaled, resultWeight, contentComplete, progress, success, penalty, totalContent, totalCompletedContent, serializationConstructorMarker) {
    return ContentEntryStatementScoreProgress_init_$Init$(seen1, resultScore, resultMax, resultScaled, resultWeight, contentComplete, progress, success, penalty, totalContent, totalCompletedContent, serializationConstructorMarker, objectCreate(protoOf(ContentEntryStatementScoreProgress)));
  }
  function ContentEntryStatementScoreProgress() {
    this.uje_1 = 0;
    this.vje_1 = 0;
    this.wje_1 = 0.0;
    this.xje_1 = 0;
    this.yje_1 = false;
    this.zje_1 = 0;
    var tmp = this;
    tmp.ajf_1 = 0;
    this.bjf_1 = 0;
    this.cjf_1 = 0;
    this.djf_1 = 0;
  }
  protoOf(ContentEntryStatementScoreProgress).equals = function (other) {
    if (this === other)
      return true;
    if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
      return false;
    if (!(other instanceof ContentEntryStatementScoreProgress))
      THROW_CCE();
    if (!(this.uje_1 === other.uje_1))
      return false;
    if (!(this.vje_1 === other.vje_1))
      return false;
    if (!(this.wje_1 === other.wje_1))
      return false;
    if (!(this.xje_1 === other.xje_1))
      return false;
    if (!(this.yje_1 === other.yje_1))
      return false;
    if (!(this.zje_1 === other.zje_1))
      return false;
    if (!(this.ajf_1 === other.ajf_1))
      return false;
    if (!(this.bjf_1 === other.bjf_1))
      return false;
    if (!(this.cjf_1 === other.cjf_1))
      return false;
    if (!(this.djf_1 === other.djf_1))
      return false;
    return true;
  };
  protoOf(ContentEntryStatementScoreProgress).hashCode = function () {
    var result = this.uje_1;
    result = imul(31, result) + this.vje_1 | 0;
    result = imul(31, result) + getNumberHashCode(this.wje_1) | 0;
    result = imul(31, result) + this.xje_1 | 0;
    result = imul(31, result) + getBooleanHashCode(this.yje_1) | 0;
    result = imul(31, result) + this.zje_1 | 0;
    result = imul(31, result) + this.ajf_1 | 0;
    result = imul(31, result) + this.bjf_1 | 0;
    result = imul(31, result) + this.cjf_1 | 0;
    result = imul(31, result) + this.djf_1 | 0;
    return result;
  };
  function Companion_64() {
    this.ejf_1 = 'epub';
    this.fjf_1 = 'video';
    this.gjf_1 = 'pdf';
    this.hjf_1 = 'xapi';
    this.ijf_1 = 'api/content/';
    this.jjf_1 = 738;
    this.kjf_1 = '\n                 SELECT OfflineItem.oiUid\n                   FROM OfflineItem\n                  WHERE OfflineItem.oiContentEntryUid = NEW.cevContentEntryUid\n                    AND CAST(OfflineItem.oiActive AS INTEGER) = 1\n                    AND OfflineItem.oiNodeId = \n            (SELECT COALESCE(\n                    (SELECT nodeClientId \n                       FROM SyncNode \n                      LIMIT 1), 0))\n        \n        ';
  }
  var Companion_instance_65;
  function Companion_getInstance_67() {
    return Companion_instance_65;
  }
  function $serializer_61() {
    $serializer_instance_61 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryVersion', this, 11);
    tmp0_serialDesc.g4f('cevUid', true);
    tmp0_serialDesc.g4f('cevContentEntryUid', true);
    tmp0_serialDesc.g4f('cevOpenUri', true);
    tmp0_serialDesc.g4f('cevContentType', true);
    tmp0_serialDesc.g4f('cevManifestUrl', true);
    tmp0_serialDesc.g4f('cevSize', true);
    tmp0_serialDesc.g4f('cevInActive', true);
    tmp0_serialDesc.g4f('cevLastModified', true);
    tmp0_serialDesc.g4f('cevLct', true);
    tmp0_serialDesc.g4f('cevStorageSize', true);
    tmp0_serialDesc.g4f('cevOriginalSize', true);
    this.ljf_1 = tmp0_serialDesc;
  }
  protoOf($serializer_61).d44 = function () {
    return this.ljf_1;
  };
  protoOf($serializer_61).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_61).f44 = function (decoder) {
    var tmp0_desc = this.ljf_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = null;
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = false;
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = new Long(0, 0);
    var tmp14_local10 = new Long(0, 0);
    var tmp15_input = decoder.v47(tmp0_desc);
    if (tmp15_input.k48()) {
      tmp4_local0 = tmp15_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp15_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp15_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp15_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp15_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp15_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp15_input.x47(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp15_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp15_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp15_input.b48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp15_input.b48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp15_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp15_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp15_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp15_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp15_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp15_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp15_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp15_input.x47(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp15_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp15_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp15_input.b48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp15_input.b48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp15_input.w47(tmp0_desc);
    return ContentEntryVersion_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null);
  };
  protoOf($serializer_61).mjf = function (encoder, value) {
    var tmp0_desc = this.ljf_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.daj_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.daj_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.eaj_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.eaj_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.faj_1 === '')) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.faj_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.gaj_1 === '')) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.gaj_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.haj_1 == null)) {
      tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.haj_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.iaj_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.iaj_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.jaj_1 === false)) {
      tmp1_output.b49(tmp0_desc, 6, value.jaj_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.kaj_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.kaj_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.laj_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.laj_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !value.maj_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 9, value.maj_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !value.naj_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 10, value.naj_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_61).e44 = function (encoder, value) {
    return this.mjf(encoder, value instanceof ContentEntryVersion ? value : THROW_CCE());
  };
  var $serializer_instance_61;
  function $serializer_getInstance_61() {
    if ($serializer_instance_61 == null)
      new $serializer_61();
    return $serializer_instance_61;
  }
  function ContentEntryVersion_init_$Init$(seen1, cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_61().ljf_1);
    }
    if (0 === (seen1 & 1))
      $this.daj_1 = new Long(0, 0);
    else
      $this.daj_1 = cevUid;
    if (0 === (seen1 & 2))
      $this.eaj_1 = new Long(0, 0);
    else
      $this.eaj_1 = cevContentEntryUid;
    if (0 === (seen1 & 4))
      $this.faj_1 = '';
    else
      $this.faj_1 = cevOpenUri;
    if (0 === (seen1 & 8))
      $this.gaj_1 = '';
    else
      $this.gaj_1 = cevContentType;
    if (0 === (seen1 & 16))
      $this.haj_1 = null;
    else
      $this.haj_1 = cevManifestUrl;
    if (0 === (seen1 & 32))
      $this.iaj_1 = new Long(0, 0);
    else
      $this.iaj_1 = cevSize;
    if (0 === (seen1 & 64))
      $this.jaj_1 = false;
    else
      $this.jaj_1 = cevInActive;
    if (0 === (seen1 & 128))
      $this.kaj_1 = new Long(0, 0);
    else
      $this.kaj_1 = cevLastModified;
    if (0 === (seen1 & 256))
      $this.laj_1 = new Long(0, 0);
    else
      $this.laj_1 = cevLct;
    if (0 === (seen1 & 512))
      $this.maj_1 = new Long(0, 0);
    else
      $this.maj_1 = cevStorageSize;
    if (0 === (seen1 & 1024))
      $this.naj_1 = new Long(0, 0);
    else
      $this.naj_1 = cevOriginalSize;
    return $this;
  }
  function ContentEntryVersion_init_$Create$(seen1, cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize, serializationConstructorMarker) {
    return ContentEntryVersion_init_$Init$(seen1, cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize, serializationConstructorMarker, objectCreate(protoOf(ContentEntryVersion)));
  }
  function ContentEntryVersion(cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize) {
    cevUid = cevUid === VOID ? new Long(0, 0) : cevUid;
    cevContentEntryUid = cevContentEntryUid === VOID ? new Long(0, 0) : cevContentEntryUid;
    cevOpenUri = cevOpenUri === VOID ? '' : cevOpenUri;
    cevContentType = cevContentType === VOID ? '' : cevContentType;
    cevManifestUrl = cevManifestUrl === VOID ? null : cevManifestUrl;
    cevSize = cevSize === VOID ? new Long(0, 0) : cevSize;
    cevInActive = cevInActive === VOID ? false : cevInActive;
    cevLastModified = cevLastModified === VOID ? new Long(0, 0) : cevLastModified;
    cevLct = cevLct === VOID ? new Long(0, 0) : cevLct;
    cevStorageSize = cevStorageSize === VOID ? new Long(0, 0) : cevStorageSize;
    cevOriginalSize = cevOriginalSize === VOID ? new Long(0, 0) : cevOriginalSize;
    this.daj_1 = cevUid;
    this.eaj_1 = cevContentEntryUid;
    this.faj_1 = cevOpenUri;
    this.gaj_1 = cevContentType;
    this.haj_1 = cevManifestUrl;
    this.iaj_1 = cevSize;
    this.jaj_1 = cevInActive;
    this.kaj_1 = cevLastModified;
    this.laj_1 = cevLct;
    this.maj_1 = cevStorageSize;
    this.naj_1 = cevOriginalSize;
  }
  protoOf(ContentEntryVersion).toString = function () {
    return 'ContentEntryVersion(cevUid=' + this.daj_1.toString() + ', cevContentEntryUid=' + this.eaj_1.toString() + ', cevOpenUri=' + this.faj_1 + ', cevContentType=' + this.gaj_1 + ', cevManifestUrl=' + this.haj_1 + ', cevSize=' + this.iaj_1.toString() + ', cevInActive=' + this.jaj_1 + ', cevLastModified=' + this.kaj_1.toString() + ', cevLct=' + this.laj_1.toString() + ', cevStorageSize=' + this.maj_1.toString() + ', cevOriginalSize=' + this.naj_1.toString() + ')';
  };
  protoOf(ContentEntryVersion).hashCode = function () {
    var result = this.daj_1.hashCode();
    result = imul(result, 31) + this.eaj_1.hashCode() | 0;
    result = imul(result, 31) + (this.faj_1 == null ? 0 : getStringHashCode(this.faj_1)) | 0;
    result = imul(result, 31) + (this.gaj_1 == null ? 0 : getStringHashCode(this.gaj_1)) | 0;
    result = imul(result, 31) + (this.haj_1 == null ? 0 : getStringHashCode(this.haj_1)) | 0;
    result = imul(result, 31) + this.iaj_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.jaj_1) | 0;
    result = imul(result, 31) + this.kaj_1.hashCode() | 0;
    result = imul(result, 31) + this.laj_1.hashCode() | 0;
    result = imul(result, 31) + this.maj_1.hashCode() | 0;
    result = imul(result, 31) + this.naj_1.hashCode() | 0;
    return result;
  };
  protoOf(ContentEntryVersion).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ContentEntryVersion))
      return false;
    var tmp0_other_with_cast = other instanceof ContentEntryVersion ? other : THROW_CCE();
    if (!this.daj_1.equals(tmp0_other_with_cast.daj_1))
      return false;
    if (!this.eaj_1.equals(tmp0_other_with_cast.eaj_1))
      return false;
    if (!(this.faj_1 == tmp0_other_with_cast.faj_1))
      return false;
    if (!(this.gaj_1 == tmp0_other_with_cast.gaj_1))
      return false;
    if (!(this.haj_1 == tmp0_other_with_cast.haj_1))
      return false;
    if (!this.iaj_1.equals(tmp0_other_with_cast.iaj_1))
      return false;
    if (!(this.jaj_1 === tmp0_other_with_cast.jaj_1))
      return false;
    if (!this.kaj_1.equals(tmp0_other_with_cast.kaj_1))
      return false;
    if (!this.laj_1.equals(tmp0_other_with_cast.laj_1))
      return false;
    if (!this.maj_1.equals(tmp0_other_with_cast.maj_1))
      return false;
    if (!this.naj_1.equals(tmp0_other_with_cast.naj_1))
      return false;
    return true;
  };
  function Companion_65() {
  }
  var Companion_instance_66;
  function Companion_getInstance_68() {
    return Companion_instance_66;
  }
  function $serializer_62() {
    $serializer_instance_62 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryWithLanguage', this, 28);
    tmp0_serialDesc.g4f('contentEntryUid', true);
    tmp0_serialDesc.g4f('title', true);
    tmp0_serialDesc.g4f('description', true);
    tmp0_serialDesc.g4f('entryId', true);
    tmp0_serialDesc.g4f('author', true);
    tmp0_serialDesc.g4f('publisher', true);
    tmp0_serialDesc.g4f('licenseType', true);
    tmp0_serialDesc.g4f('licenseName', true);
    tmp0_serialDesc.g4f('licenseUrl', true);
    tmp0_serialDesc.g4f('sourceUrl', true);
    tmp0_serialDesc.g4f('thumbnailUrl', true);
    tmp0_serialDesc.g4f('lastModified', true);
    tmp0_serialDesc.g4f('primaryLanguageUid', true);
    tmp0_serialDesc.g4f('languageVariantUid', true);
    tmp0_serialDesc.g4f('contentFlags', true);
    tmp0_serialDesc.g4f('leaf', true);
    tmp0_serialDesc.g4f('publik', true);
    tmp0_serialDesc.g4f('ceInactive', true);
    tmp0_serialDesc.g4f('completionCriteria', true);
    tmp0_serialDesc.g4f('minScore', true);
    tmp0_serialDesc.g4f('contentTypeFlag', true);
    tmp0_serialDesc.g4f('contentOwner', true);
    tmp0_serialDesc.g4f('contentOwnerType', true);
    tmp0_serialDesc.g4f('contentEntryLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('contentEntryMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('contentEntryLastChangedBy', true);
    tmp0_serialDesc.g4f('contentEntryLct', true);
    tmp0_serialDesc.g4f('language', true);
    this.njf_1 = tmp0_serialDesc;
  }
  protoOf($serializer_62).d44 = function () {
    return this.njf_1;
  };
  protoOf($serializer_62).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_83())];
  };
  protoOf($serializer_62).f44 = function (decoder) {
    var tmp0_desc = this.njf_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = null;
    var tmp9_local5 = null;
    var tmp10_local6 = 0;
    var tmp11_local7 = null;
    var tmp12_local8 = null;
    var tmp13_local9 = null;
    var tmp14_local10 = null;
    var tmp15_local11 = new Long(0, 0);
    var tmp16_local12 = new Long(0, 0);
    var tmp17_local13 = new Long(0, 0);
    var tmp18_local14 = 0;
    var tmp19_local15 = false;
    var tmp20_local16 = false;
    var tmp21_local17 = false;
    var tmp22_local18 = 0;
    var tmp23_local19 = 0;
    var tmp24_local20 = 0;
    var tmp25_local21 = new Long(0, 0);
    var tmp26_local22 = 0;
    var tmp27_local23 = new Long(0, 0);
    var tmp28_local24 = new Long(0, 0);
    var tmp29_local25 = 0;
    var tmp30_local26 = new Long(0, 0);
    var tmp31_local27 = null;
    var tmp32_input = decoder.v47(tmp0_desc);
    if (tmp32_input.k48()) {
      tmp4_local0 = tmp32_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp32_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp32_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp32_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp32_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp32_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp32_input.a48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp32_input.j48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp32_input.j48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp32_input.j48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp32_input.j48(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp32_input.b48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp32_input.b48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp32_input.b48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp32_input.a48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp32_input.x47(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp32_input.x47(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp32_input.x47(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp32_input.a48(tmp0_desc, 18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp32_input.a48(tmp0_desc, 19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp24_local20 = tmp32_input.a48(tmp0_desc, 20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp25_local21 = tmp32_input.b48(tmp0_desc, 21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp26_local22 = tmp32_input.a48(tmp0_desc, 22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
      tmp27_local23 = tmp32_input.b48(tmp0_desc, 23);
      tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
      tmp28_local24 = tmp32_input.b48(tmp0_desc, 24);
      tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
      tmp29_local25 = tmp32_input.a48(tmp0_desc, 25);
      tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
      tmp30_local26 = tmp32_input.b48(tmp0_desc, 26);
      tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
      tmp31_local27 = tmp32_input.j48(tmp0_desc, 27, $serializer_getInstance_83(), tmp31_local27);
      tmp3_bitMask0 = tmp3_bitMask0 | 134217728;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp32_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp32_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp32_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp32_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp32_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp32_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp32_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp32_input.a48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp32_input.j48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp32_input.j48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp32_input.j48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp32_input.j48(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp32_input.b48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp32_input.b48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp32_input.b48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp32_input.a48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp32_input.x47(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp32_input.x47(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp32_input.x47(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp32_input.a48(tmp0_desc, 18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp32_input.a48(tmp0_desc, 19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp24_local20 = tmp32_input.a48(tmp0_desc, 20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp25_local21 = tmp32_input.b48(tmp0_desc, 21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp26_local22 = tmp32_input.a48(tmp0_desc, 22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          case 23:
            tmp27_local23 = tmp32_input.b48(tmp0_desc, 23);
            tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
            break;
          case 24:
            tmp28_local24 = tmp32_input.b48(tmp0_desc, 24);
            tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
            break;
          case 25:
            tmp29_local25 = tmp32_input.a48(tmp0_desc, 25);
            tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
            break;
          case 26:
            tmp30_local26 = tmp32_input.b48(tmp0_desc, 26);
            tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
            break;
          case 27:
            tmp31_local27 = tmp32_input.j48(tmp0_desc, 27, $serializer_getInstance_83(), tmp31_local27);
            tmp3_bitMask0 = tmp3_bitMask0 | 134217728;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp32_input.w47(tmp0_desc);
    return ContentEntryWithLanguage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, tmp28_local24, tmp29_local25, tmp30_local26, tmp31_local27, null);
  };
  protoOf($serializer_62).ojf = function (encoder, value) {
    var tmp0_desc = this.njf_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.fah_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.fah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.gah_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.gah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.hah_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.hah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.iah_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.iah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.jah_1 == null)) {
      tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.jah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.kah_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.kah_1);
    }
    var tmp;
    if (tmp1_output.r49(tmp0_desc, 6)) {
      tmp = true;
    } else {
      var tmp_0 = value.lah_1;
      tmp = !(tmp_0 === 0);
    }
    if (tmp) {
      tmp1_output.e49(tmp0_desc, 6, value.lah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.mah_1 == null)) {
      tmp1_output.n49(tmp0_desc, 7, StringSerializer_getInstance(), value.mah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.nah_1 == null)) {
      tmp1_output.n49(tmp0_desc, 8, StringSerializer_getInstance(), value.nah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.oah_1 == null)) {
      tmp1_output.n49(tmp0_desc, 9, StringSerializer_getInstance(), value.oah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.pah_1 == null)) {
      tmp1_output.n49(tmp0_desc, 10, StringSerializer_getInstance(), value.pah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !value.qah_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 11, value.qah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !value.rah_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 12, value.rah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !value.sah_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 13, value.sah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 14) ? true : !(value.tah_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 14, value.tah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 15) ? true : !(value.uah_1 === false)) {
      tmp1_output.b49(tmp0_desc, 15, value.uah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 16) ? true : !(value.vah_1 === true)) {
      tmp1_output.b49(tmp0_desc, 16, value.vah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 17) ? true : !(value.wah_1 === false)) {
      tmp1_output.b49(tmp0_desc, 17, value.wah_1);
    }
    var tmp_1;
    if (tmp1_output.r49(tmp0_desc, 18)) {
      tmp_1 = true;
    } else {
      var tmp_2 = value.xah_1;
      tmp_1 = !(tmp_2 === 0);
    }
    if (tmp_1) {
      tmp1_output.e49(tmp0_desc, 18, value.xah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 19) ? true : !(value.yah_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 19, value.yah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 20) ? true : !(value.zah_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 20, value.zah_1);
    }
    if (tmp1_output.r49(tmp0_desc, 21) ? true : !value.aai_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 21, value.aai_1);
    }
    if (tmp1_output.r49(tmp0_desc, 22) ? true : !(value.bai_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 22, value.bai_1);
    }
    if (tmp1_output.r49(tmp0_desc, 23) ? true : !value.cai_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 23, value.cai_1);
    }
    if (tmp1_output.r49(tmp0_desc, 24) ? true : !value.dai_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 24, value.dai_1);
    }
    if (tmp1_output.r49(tmp0_desc, 25) ? true : !(value.eai_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 25, value.eai_1);
    }
    if (tmp1_output.r49(tmp0_desc, 26) ? true : !value.fai_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 26, value.fai_1);
    }
    if (tmp1_output.r49(tmp0_desc, 27) ? true : !(value.qjg_1 == null)) {
      tmp1_output.n49(tmp0_desc, 27, $serializer_getInstance_83(), value.qjg_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_62).e44 = function (encoder, value) {
    return this.ojf(encoder, value instanceof ContentEntryWithLanguage ? value : THROW_CCE());
  };
  var $serializer_instance_62;
  function $serializer_getInstance_62() {
    if ($serializer_instance_62 == null)
      new $serializer_62();
    return $serializer_instance_62;
  }
  function ContentEntryWithLanguage_init_$Init$(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, language, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_62().njf_1);
    }
    ContentEntry_init_$Init$(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, serializationConstructorMarker, $this);
    if (0 === (seen1 & 134217728))
      $this.qjg_1 = null;
    else
      $this.qjg_1 = language;
    return $this;
  }
  function ContentEntryWithLanguage_init_$Create$(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, language, serializationConstructorMarker) {
    return ContentEntryWithLanguage_init_$Init$(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, language, serializationConstructorMarker, objectCreate(protoOf(ContentEntryWithLanguage)));
  }
  function ContentEntryWithLanguage() {
    ContentEntry.call(this);
    this.qjg_1 = null;
  }
  function Companion_66() {
    this.rjg_1 = 702;
  }
  var Companion_instance_67;
  function Companion_getInstance_69() {
    return Companion_instance_67;
  }
  function $serializer_63() {
    $serializer_instance_63 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentJob', this, 8);
    tmp0_serialDesc.g4f('cjUid', true);
    tmp0_serialDesc.g4f('toUri', true);
    tmp0_serialDesc.g4f('cjProgress', true);
    tmp0_serialDesc.g4f('cjTotal', true);
    tmp0_serialDesc.g4f('cjNotificationTitle', true);
    tmp0_serialDesc.g4f('cjIsMeteredAllowed', true);
    tmp0_serialDesc.g4f('params', true);
    tmp0_serialDesc.g4f('cjLct', true);
    this.sjg_1 = tmp0_serialDesc;
  }
  protoOf($serializer_63).d44 = function () {
    return this.sjg_1;
  };
  protoOf($serializer_63).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()];
  };
  protoOf($serializer_63).f44 = function (decoder) {
    var tmp0_desc = this.sjg_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = null;
    var tmp9_local5 = false;
    var tmp10_local6 = null;
    var tmp11_local7 = new Long(0, 0);
    var tmp12_input = decoder.v47(tmp0_desc);
    if (tmp12_input.k48()) {
      tmp4_local0 = tmp12_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.x47(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.x47(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.w47(tmp0_desc);
    return ContentJob_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
  };
  protoOf($serializer_63).tjg = function (encoder, value) {
    var tmp0_desc = this.sjg_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.ujg_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.ujg_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.vjg_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.vjg_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.wjg_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.wjg_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.xjg_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.xjg_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.yjg_1 == null)) {
      tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.yjg_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.zjg_1 === false)) {
      tmp1_output.b49(tmp0_desc, 5, value.zjg_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.ajh_1 == null)) {
      tmp1_output.n49(tmp0_desc, 6, StringSerializer_getInstance(), value.ajh_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.bjh_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.bjh_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_63).e44 = function (encoder, value) {
    return this.tjg(encoder, value instanceof ContentJob ? value : THROW_CCE());
  };
  var $serializer_instance_63;
  function $serializer_getInstance_63() {
    if ($serializer_instance_63 == null)
      new $serializer_63();
    return $serializer_instance_63;
  }
  function ContentJob_init_$Init$(seen1, cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_63().sjg_1);
    }
    if (0 === (seen1 & 1))
      $this.ujg_1 = new Long(0, 0);
    else
      $this.ujg_1 = cjUid;
    if (0 === (seen1 & 2))
      $this.vjg_1 = null;
    else
      $this.vjg_1 = toUri;
    if (0 === (seen1 & 4))
      $this.wjg_1 = new Long(0, 0);
    else
      $this.wjg_1 = cjProgress;
    if (0 === (seen1 & 8))
      $this.xjg_1 = new Long(0, 0);
    else
      $this.xjg_1 = cjTotal;
    if (0 === (seen1 & 16))
      $this.yjg_1 = null;
    else
      $this.yjg_1 = cjNotificationTitle;
    if (0 === (seen1 & 32))
      $this.zjg_1 = false;
    else
      $this.zjg_1 = cjIsMeteredAllowed;
    if (0 === (seen1 & 64))
      $this.ajh_1 = null;
    else
      $this.ajh_1 = params;
    if (0 === (seen1 & 128))
      $this.bjh_1 = new Long(0, 0);
    else
      $this.bjh_1 = cjLct;
    return $this;
  }
  function ContentJob_init_$Create$(seen1, cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct, serializationConstructorMarker) {
    return ContentJob_init_$Init$(seen1, cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct, serializationConstructorMarker, objectCreate(protoOf(ContentJob)));
  }
  function ContentJob(cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct) {
    cjUid = cjUid === VOID ? new Long(0, 0) : cjUid;
    toUri = toUri === VOID ? null : toUri;
    cjProgress = cjProgress === VOID ? new Long(0, 0) : cjProgress;
    cjTotal = cjTotal === VOID ? new Long(0, 0) : cjTotal;
    cjNotificationTitle = cjNotificationTitle === VOID ? null : cjNotificationTitle;
    cjIsMeteredAllowed = cjIsMeteredAllowed === VOID ? false : cjIsMeteredAllowed;
    params = params === VOID ? null : params;
    cjLct = cjLct === VOID ? new Long(0, 0) : cjLct;
    this.ujg_1 = cjUid;
    this.vjg_1 = toUri;
    this.wjg_1 = cjProgress;
    this.xjg_1 = cjTotal;
    this.yjg_1 = cjNotificationTitle;
    this.zjg_1 = cjIsMeteredAllowed;
    this.ajh_1 = params;
    this.bjh_1 = cjLct;
  }
  protoOf(ContentJob).toString = function () {
    return 'ContentJob(cjUid=' + this.ujg_1.toString() + ', toUri=' + this.vjg_1 + ', cjProgress=' + this.wjg_1.toString() + ', cjTotal=' + this.xjg_1.toString() + ', cjNotificationTitle=' + this.yjg_1 + ', cjIsMeteredAllowed=' + this.zjg_1 + ', params=' + this.ajh_1 + ', cjLct=' + this.bjh_1.toString() + ')';
  };
  protoOf(ContentJob).hashCode = function () {
    var result = this.ujg_1.hashCode();
    result = imul(result, 31) + (this.vjg_1 == null ? 0 : getStringHashCode(this.vjg_1)) | 0;
    result = imul(result, 31) + this.wjg_1.hashCode() | 0;
    result = imul(result, 31) + this.xjg_1.hashCode() | 0;
    result = imul(result, 31) + (this.yjg_1 == null ? 0 : getStringHashCode(this.yjg_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.zjg_1) | 0;
    result = imul(result, 31) + (this.ajh_1 == null ? 0 : getStringHashCode(this.ajh_1)) | 0;
    result = imul(result, 31) + this.bjh_1.hashCode() | 0;
    return result;
  };
  protoOf(ContentJob).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ContentJob))
      return false;
    var tmp0_other_with_cast = other instanceof ContentJob ? other : THROW_CCE();
    if (!this.ujg_1.equals(tmp0_other_with_cast.ujg_1))
      return false;
    if (!(this.vjg_1 == tmp0_other_with_cast.vjg_1))
      return false;
    if (!this.wjg_1.equals(tmp0_other_with_cast.wjg_1))
      return false;
    if (!this.xjg_1.equals(tmp0_other_with_cast.xjg_1))
      return false;
    if (!(this.yjg_1 == tmp0_other_with_cast.yjg_1))
      return false;
    if (!(this.zjg_1 === tmp0_other_with_cast.zjg_1))
      return false;
    if (!(this.ajh_1 == tmp0_other_with_cast.ajh_1))
      return false;
    if (!this.bjh_1.equals(tmp0_other_with_cast.bjh_1))
      return false;
    return true;
  };
  function Companion_67() {
    this.cjh_1 = 523;
  }
  var Companion_instance_68;
  function Companion_getInstance_70() {
    return Companion_instance_68;
  }
  function $serializer_64() {
    $serializer_instance_64 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseAssignmentMark', this, 11);
    tmp0_serialDesc.g4f('camUid', true);
    tmp0_serialDesc.g4f('camAssignmentUid', true);
    tmp0_serialDesc.g4f('camSubmitterUid', true);
    tmp0_serialDesc.g4f('camMarkerSubmitterUid', true);
    tmp0_serialDesc.g4f('camMarkerPersonUid', true);
    tmp0_serialDesc.g4f('camMarkerComment', true);
    tmp0_serialDesc.g4f('camMark', true);
    tmp0_serialDesc.g4f('camMaxMark', true);
    tmp0_serialDesc.g4f('camPenalty', true);
    tmp0_serialDesc.g4f('camLct', true);
    tmp0_serialDesc.g4f('camClazzUid', true);
    this.djh_1 = tmp0_serialDesc;
  }
  protoOf($serializer_64).d44 = function () {
    return this.djh_1;
  };
  protoOf($serializer_64).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), FloatSerializer_getInstance(), FloatSerializer_getInstance(), FloatSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_64).f44 = function (decoder) {
    var tmp0_desc = this.djh_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = null;
    var tmp10_local6 = 0.0;
    var tmp11_local7 = 0.0;
    var tmp12_local8 = 0.0;
    var tmp13_local9 = new Long(0, 0);
    var tmp14_local10 = new Long(0, 0);
    var tmp15_input = decoder.v47(tmp0_desc);
    if (tmp15_input.k48()) {
      tmp4_local0 = tmp15_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp15_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp15_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp15_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp15_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp15_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp15_input.c48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp15_input.c48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp15_input.c48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp15_input.b48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp15_input.b48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp15_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp15_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp15_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp15_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp15_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp15_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp15_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp15_input.c48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp15_input.c48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp15_input.c48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp15_input.b48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp15_input.b48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp15_input.w47(tmp0_desc);
    return CourseAssignmentMark_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null);
  };
  protoOf($serializer_64).ejh = function (encoder, value) {
    var tmp0_desc = this.djh_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.cbh_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.cbh_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.dbh_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.dbh_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.ebh_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.ebh_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.fbh_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.fbh_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.gbh_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.gbh_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.hbh_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.hbh_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !equals(value.ibh_1, 0.0)) {
      tmp1_output.g49(tmp0_desc, 6, value.ibh_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !equals(value.jbh_1, 1.0)) {
      tmp1_output.g49(tmp0_desc, 7, value.jbh_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !equals(value.kbh_1, 0.0)) {
      tmp1_output.g49(tmp0_desc, 8, value.kbh_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !value.lbh_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 9, value.lbh_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !value.mbh_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 10, value.mbh_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_64).e44 = function (encoder, value) {
    return this.ejh(encoder, value instanceof CourseAssignmentMark ? value : THROW_CCE());
  };
  var $serializer_instance_64;
  function $serializer_getInstance_64() {
    if ($serializer_instance_64 == null)
      new $serializer_64();
    return $serializer_instance_64;
  }
  function CourseAssignmentMark_init_$Init$(seen1, camUid, camAssignmentUid, camSubmitterUid, camMarkerSubmitterUid, camMarkerPersonUid, camMarkerComment, camMark, camMaxMark, camPenalty, camLct, camClazzUid, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_64().djh_1);
    }
    if (0 === (seen1 & 1))
      $this.cbh_1 = new Long(0, 0);
    else
      $this.cbh_1 = camUid;
    if (0 === (seen1 & 2))
      $this.dbh_1 = new Long(0, 0);
    else
      $this.dbh_1 = camAssignmentUid;
    if (0 === (seen1 & 4))
      $this.ebh_1 = new Long(0, 0);
    else
      $this.ebh_1 = camSubmitterUid;
    if (0 === (seen1 & 8))
      $this.fbh_1 = new Long(0, 0);
    else
      $this.fbh_1 = camMarkerSubmitterUid;
    if (0 === (seen1 & 16))
      $this.gbh_1 = new Long(0, 0);
    else
      $this.gbh_1 = camMarkerPersonUid;
    if (0 === (seen1 & 32))
      $this.hbh_1 = null;
    else
      $this.hbh_1 = camMarkerComment;
    if (0 === (seen1 & 64))
      $this.ibh_1 = 0.0;
    else
      $this.ibh_1 = camMark;
    if (0 === (seen1 & 128))
      $this.jbh_1 = 1.0;
    else
      $this.jbh_1 = camMaxMark;
    if (0 === (seen1 & 256))
      $this.kbh_1 = 0.0;
    else
      $this.kbh_1 = camPenalty;
    if (0 === (seen1 & 512))
      $this.lbh_1 = new Long(0, 0);
    else
      $this.lbh_1 = camLct;
    if (0 === (seen1 & 1024))
      $this.mbh_1 = new Long(0, 0);
    else
      $this.mbh_1 = camClazzUid;
    return $this;
  }
  function CourseAssignmentMark_init_$Create$(seen1, camUid, camAssignmentUid, camSubmitterUid, camMarkerSubmitterUid, camMarkerPersonUid, camMarkerComment, camMark, camMaxMark, camPenalty, camLct, camClazzUid, serializationConstructorMarker) {
    return CourseAssignmentMark_init_$Init$(seen1, camUid, camAssignmentUid, camSubmitterUid, camMarkerSubmitterUid, camMarkerPersonUid, camMarkerComment, camMark, camMaxMark, camPenalty, camLct, camClazzUid, serializationConstructorMarker, objectCreate(protoOf(CourseAssignmentMark)));
  }
  function CourseAssignmentMark() {
    this.cbh_1 = new Long(0, 0);
    this.dbh_1 = new Long(0, 0);
    this.ebh_1 = new Long(0, 0);
    this.fbh_1 = new Long(0, 0);
    this.gbh_1 = new Long(0, 0);
    this.hbh_1 = null;
    this.ibh_1 = 0.0;
    this.jbh_1 = 1.0;
    this.kbh_1 = 0.0;
    this.lbh_1 = new Long(0, 0);
    this.mbh_1 = new Long(0, 0);
  }
  function Companion_68() {
    Companion_instance_69 = this;
    this.fjh_1 = 522;
    this.gjh_1 = new Long(-1, -1);
    this.hjh_1 = 1;
    this.ijh_1 = 2;
    this.jjh_1 = 0;
    this.kjh_1 = 1;
    this.ljh_1 = 2;
    this.mjh_1 = 10000;
  }
  protoOf(Companion_68).a4r = function () {
    return $serializer_getInstance_65();
  };
  var Companion_instance_69;
  function Companion_getInstance_71() {
    if (Companion_instance_69 == null)
      new Companion_68();
    return Companion_instance_69;
  }
  function $serializer_65() {
    $serializer_instance_65 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseAssignmentSubmission', this, 8);
    tmp0_serialDesc.g4f('casUid', true);
    tmp0_serialDesc.g4f('casAssignmentUid', true);
    tmp0_serialDesc.g4f('casSubmitterUid', true);
    tmp0_serialDesc.g4f('casSubmitterPersonUid', true);
    tmp0_serialDesc.g4f('casText', true);
    tmp0_serialDesc.g4f('casType', true);
    tmp0_serialDesc.g4f('casTimestamp', true);
    tmp0_serialDesc.g4f('casClazzUid', true);
    this.njh_1 = tmp0_serialDesc;
  }
  protoOf($serializer_65).d44 = function () {
    return this.njh_1;
  };
  protoOf($serializer_65).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_65).f44 = function (decoder) {
    var tmp0_desc = this.njh_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = null;
    var tmp9_local5 = 0;
    var tmp10_local6 = new Long(0, 0);
    var tmp11_local7 = new Long(0, 0);
    var tmp12_input = decoder.v47(tmp0_desc);
    if (tmp12_input.k48()) {
      tmp4_local0 = tmp12_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.a48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.a48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.w47(tmp0_desc);
    return CourseAssignmentSubmission_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
  };
  protoOf($serializer_65).ojh = function (encoder, value) {
    var tmp0_desc = this.njh_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.hbn_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.hbn_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.ibn_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.ibn_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.jbn_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.jbn_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.kbn_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.kbn_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.lbn_1 == null)) {
      tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.lbn_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.mbn_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 5, value.mbn_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.nbn_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.nbn_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.obn_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.obn_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_65).e44 = function (encoder, value) {
    return this.ojh(encoder, value instanceof CourseAssignmentSubmission ? value : THROW_CCE());
  };
  var $serializer_instance_65;
  function $serializer_getInstance_65() {
    if ($serializer_instance_65 == null)
      new $serializer_65();
    return $serializer_instance_65;
  }
  function CourseAssignmentSubmission_init_$Init$(seen1, casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_65().njh_1);
    }
    if (0 === (seen1 & 1))
      $this.hbn_1 = new Long(0, 0);
    else
      $this.hbn_1 = casUid;
    if (0 === (seen1 & 2))
      $this.ibn_1 = new Long(0, 0);
    else
      $this.ibn_1 = casAssignmentUid;
    if (0 === (seen1 & 4))
      $this.jbn_1 = new Long(0, 0);
    else
      $this.jbn_1 = casSubmitterUid;
    if (0 === (seen1 & 8))
      $this.kbn_1 = new Long(0, 0);
    else
      $this.kbn_1 = casSubmitterPersonUid;
    if (0 === (seen1 & 16))
      $this.lbn_1 = null;
    else
      $this.lbn_1 = casText;
    if (0 === (seen1 & 32))
      $this.mbn_1 = 0;
    else
      $this.mbn_1 = casType;
    if (0 === (seen1 & 64))
      $this.nbn_1 = new Long(0, 0);
    else
      $this.nbn_1 = casTimestamp;
    if (0 === (seen1 & 128))
      $this.obn_1 = new Long(0, 0);
    else
      $this.obn_1 = casClazzUid;
    return $this;
  }
  function CourseAssignmentSubmission_init_$Create$(seen1, casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid, serializationConstructorMarker) {
    return CourseAssignmentSubmission_init_$Init$(seen1, casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid, serializationConstructorMarker, objectCreate(protoOf(CourseAssignmentSubmission)));
  }
  function CourseAssignmentSubmission(casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid) {
    Companion_getInstance_71();
    casUid = casUid === VOID ? new Long(0, 0) : casUid;
    casAssignmentUid = casAssignmentUid === VOID ? new Long(0, 0) : casAssignmentUid;
    casSubmitterUid = casSubmitterUid === VOID ? new Long(0, 0) : casSubmitterUid;
    casSubmitterPersonUid = casSubmitterPersonUid === VOID ? new Long(0, 0) : casSubmitterPersonUid;
    casText = casText === VOID ? null : casText;
    casType = casType === VOID ? 0 : casType;
    casTimestamp = casTimestamp === VOID ? new Long(0, 0) : casTimestamp;
    casClazzUid = casClazzUid === VOID ? new Long(0, 0) : casClazzUid;
    this.hbn_1 = casUid;
    this.ibn_1 = casAssignmentUid;
    this.jbn_1 = casSubmitterUid;
    this.kbn_1 = casSubmitterPersonUid;
    this.lbn_1 = casText;
    this.mbn_1 = casType;
    this.nbn_1 = casTimestamp;
    this.obn_1 = casClazzUid;
  }
  protoOf(CourseAssignmentSubmission).toString = function () {
    return 'CourseAssignmentSubmission(casUid=' + this.hbn_1.toString() + ', casAssignmentUid=' + this.ibn_1.toString() + ', casSubmitterUid=' + this.jbn_1.toString() + ', casSubmitterPersonUid=' + this.kbn_1.toString() + ', casText=' + this.lbn_1 + ', casType=' + this.mbn_1 + ', casTimestamp=' + this.nbn_1.toString() + ', casClazzUid=' + this.obn_1.toString() + ')';
  };
  protoOf(CourseAssignmentSubmission).hashCode = function () {
    var result = this.hbn_1.hashCode();
    result = imul(result, 31) + this.ibn_1.hashCode() | 0;
    result = imul(result, 31) + this.jbn_1.hashCode() | 0;
    result = imul(result, 31) + this.kbn_1.hashCode() | 0;
    result = imul(result, 31) + (this.lbn_1 == null ? 0 : getStringHashCode(this.lbn_1)) | 0;
    result = imul(result, 31) + this.mbn_1 | 0;
    result = imul(result, 31) + this.nbn_1.hashCode() | 0;
    result = imul(result, 31) + this.obn_1.hashCode() | 0;
    return result;
  };
  protoOf(CourseAssignmentSubmission).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CourseAssignmentSubmission))
      return false;
    var tmp0_other_with_cast = other instanceof CourseAssignmentSubmission ? other : THROW_CCE();
    if (!this.hbn_1.equals(tmp0_other_with_cast.hbn_1))
      return false;
    if (!this.ibn_1.equals(tmp0_other_with_cast.ibn_1))
      return false;
    if (!this.jbn_1.equals(tmp0_other_with_cast.jbn_1))
      return false;
    if (!this.kbn_1.equals(tmp0_other_with_cast.kbn_1))
      return false;
    if (!(this.lbn_1 == tmp0_other_with_cast.lbn_1))
      return false;
    if (!(this.mbn_1 === tmp0_other_with_cast.mbn_1))
      return false;
    if (!this.nbn_1.equals(tmp0_other_with_cast.nbn_1))
      return false;
    if (!this.obn_1.equals(tmp0_other_with_cast.obn_1))
      return false;
    return true;
  };
  function Companion_69() {
    this.pjh_1 = 90;
  }
  var Companion_instance_70;
  function Companion_getInstance_72() {
    return Companion_instance_70;
  }
  function $serializer_66() {
    $serializer_instance_66 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseAssignmentSubmissionFile', this, 11);
    tmp0_serialDesc.g4f('casaUid', true);
    tmp0_serialDesc.g4f('casaSubmissionUid', true);
    tmp0_serialDesc.g4f('casaSubmitterUid', true);
    tmp0_serialDesc.g4f('casaCaUid', true);
    tmp0_serialDesc.g4f('casaClazzUid', true);
    tmp0_serialDesc.g4f('casaMimeType', true);
    tmp0_serialDesc.g4f('casaFileName', true);
    tmp0_serialDesc.g4f('casaUri', true);
    tmp0_serialDesc.g4f('casaSize', true);
    tmp0_serialDesc.g4f('casaTimestamp', true);
    tmp0_serialDesc.g4f('casaDeleted', true);
    this.qjh_1 = tmp0_serialDesc;
  }
  protoOf($serializer_66).d44 = function () {
    return this.qjh_1;
  };
  protoOf($serializer_66).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_66).f44 = function (decoder) {
    var tmp0_desc = this.qjh_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = null;
    var tmp10_local6 = null;
    var tmp11_local7 = null;
    var tmp12_local8 = 0;
    var tmp13_local9 = new Long(0, 0);
    var tmp14_local10 = false;
    var tmp15_input = decoder.v47(tmp0_desc);
    if (tmp15_input.k48()) {
      tmp4_local0 = tmp15_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp15_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp15_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp15_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp15_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp15_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp15_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp15_input.j48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp15_input.a48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp15_input.b48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp15_input.x47(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp15_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp15_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp15_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp15_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp15_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp15_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp15_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp15_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp15_input.j48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp15_input.a48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp15_input.b48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp15_input.x47(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp15_input.w47(tmp0_desc);
    return CourseAssignmentSubmissionFile_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null);
  };
  protoOf($serializer_66).rjh = function (encoder, value) {
    var tmp0_desc = this.qjh_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.vbv_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.vbv_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.wbv_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.wbv_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.xbv_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.xbv_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.ybv_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.ybv_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.zbv_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.zbv_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.abw_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.abw_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.bbw_1 == null)) {
      tmp1_output.n49(tmp0_desc, 6, StringSerializer_getInstance(), value.bbw_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.cbw_1 == null)) {
      tmp1_output.n49(tmp0_desc, 7, StringSerializer_getInstance(), value.cbw_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.dbw_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 8, value.dbw_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !value.ebw_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 9, value.ebw_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.fbw_1 === false)) {
      tmp1_output.b49(tmp0_desc, 10, value.fbw_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_66).e44 = function (encoder, value) {
    return this.rjh(encoder, value instanceof CourseAssignmentSubmissionFile ? value : THROW_CCE());
  };
  var $serializer_instance_66;
  function $serializer_getInstance_66() {
    if ($serializer_instance_66 == null)
      new $serializer_66();
    return $serializer_instance_66;
  }
  function CourseAssignmentSubmissionFile_init_$Init$(seen1, casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_66().qjh_1);
    }
    if (0 === (seen1 & 1))
      $this.vbv_1 = new Long(0, 0);
    else
      $this.vbv_1 = casaUid;
    if (0 === (seen1 & 2))
      $this.wbv_1 = new Long(0, 0);
    else
      $this.wbv_1 = casaSubmissionUid;
    if (0 === (seen1 & 4))
      $this.xbv_1 = new Long(0, 0);
    else
      $this.xbv_1 = casaSubmitterUid;
    if (0 === (seen1 & 8))
      $this.ybv_1 = new Long(0, 0);
    else
      $this.ybv_1 = casaCaUid;
    if (0 === (seen1 & 16))
      $this.zbv_1 = new Long(0, 0);
    else
      $this.zbv_1 = casaClazzUid;
    if (0 === (seen1 & 32))
      $this.abw_1 = null;
    else
      $this.abw_1 = casaMimeType;
    if (0 === (seen1 & 64))
      $this.bbw_1 = null;
    else
      $this.bbw_1 = casaFileName;
    if (0 === (seen1 & 128))
      $this.cbw_1 = null;
    else
      $this.cbw_1 = casaUri;
    if (0 === (seen1 & 256))
      $this.dbw_1 = 0;
    else
      $this.dbw_1 = casaSize;
    if (0 === (seen1 & 512))
      $this.ebw_1 = new Long(0, 0);
    else
      $this.ebw_1 = casaTimestamp;
    if (0 === (seen1 & 1024))
      $this.fbw_1 = false;
    else
      $this.fbw_1 = casaDeleted;
    return $this;
  }
  function CourseAssignmentSubmissionFile_init_$Create$(seen1, casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted, serializationConstructorMarker) {
    return CourseAssignmentSubmissionFile_init_$Init$(seen1, casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted, serializationConstructorMarker, objectCreate(protoOf(CourseAssignmentSubmissionFile)));
  }
  function CourseAssignmentSubmissionFile(casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted) {
    casaUid = casaUid === VOID ? new Long(0, 0) : casaUid;
    casaSubmissionUid = casaSubmissionUid === VOID ? new Long(0, 0) : casaSubmissionUid;
    casaSubmitterUid = casaSubmitterUid === VOID ? new Long(0, 0) : casaSubmitterUid;
    casaCaUid = casaCaUid === VOID ? new Long(0, 0) : casaCaUid;
    casaClazzUid = casaClazzUid === VOID ? new Long(0, 0) : casaClazzUid;
    casaMimeType = casaMimeType === VOID ? null : casaMimeType;
    casaFileName = casaFileName === VOID ? null : casaFileName;
    casaUri = casaUri === VOID ? null : casaUri;
    casaSize = casaSize === VOID ? 0 : casaSize;
    casaTimestamp = casaTimestamp === VOID ? new Long(0, 0) : casaTimestamp;
    casaDeleted = casaDeleted === VOID ? false : casaDeleted;
    this.vbv_1 = casaUid;
    this.wbv_1 = casaSubmissionUid;
    this.xbv_1 = casaSubmitterUid;
    this.ybv_1 = casaCaUid;
    this.zbv_1 = casaClazzUid;
    this.abw_1 = casaMimeType;
    this.bbw_1 = casaFileName;
    this.cbw_1 = casaUri;
    this.dbw_1 = casaSize;
    this.ebw_1 = casaTimestamp;
    this.fbw_1 = casaDeleted;
  }
  protoOf(CourseAssignmentSubmissionFile).toString = function () {
    return 'CourseAssignmentSubmissionFile(casaUid=' + this.vbv_1.toString() + ', casaSubmissionUid=' + this.wbv_1.toString() + ', casaSubmitterUid=' + this.xbv_1.toString() + ', casaCaUid=' + this.ybv_1.toString() + ', casaClazzUid=' + this.zbv_1.toString() + ', casaMimeType=' + this.abw_1 + ', casaFileName=' + this.bbw_1 + ', casaUri=' + this.cbw_1 + ', casaSize=' + this.dbw_1 + ', casaTimestamp=' + this.ebw_1.toString() + ', casaDeleted=' + this.fbw_1 + ')';
  };
  protoOf(CourseAssignmentSubmissionFile).hashCode = function () {
    var result = this.vbv_1.hashCode();
    result = imul(result, 31) + this.wbv_1.hashCode() | 0;
    result = imul(result, 31) + this.xbv_1.hashCode() | 0;
    result = imul(result, 31) + this.ybv_1.hashCode() | 0;
    result = imul(result, 31) + this.zbv_1.hashCode() | 0;
    result = imul(result, 31) + (this.abw_1 == null ? 0 : getStringHashCode(this.abw_1)) | 0;
    result = imul(result, 31) + (this.bbw_1 == null ? 0 : getStringHashCode(this.bbw_1)) | 0;
    result = imul(result, 31) + (this.cbw_1 == null ? 0 : getStringHashCode(this.cbw_1)) | 0;
    result = imul(result, 31) + this.dbw_1 | 0;
    result = imul(result, 31) + this.ebw_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.fbw_1) | 0;
    return result;
  };
  protoOf(CourseAssignmentSubmissionFile).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CourseAssignmentSubmissionFile))
      return false;
    var tmp0_other_with_cast = other instanceof CourseAssignmentSubmissionFile ? other : THROW_CCE();
    if (!this.vbv_1.equals(tmp0_other_with_cast.vbv_1))
      return false;
    if (!this.wbv_1.equals(tmp0_other_with_cast.wbv_1))
      return false;
    if (!this.xbv_1.equals(tmp0_other_with_cast.xbv_1))
      return false;
    if (!this.ybv_1.equals(tmp0_other_with_cast.ybv_1))
      return false;
    if (!this.zbv_1.equals(tmp0_other_with_cast.zbv_1))
      return false;
    if (!(this.abw_1 == tmp0_other_with_cast.abw_1))
      return false;
    if (!(this.bbw_1 == tmp0_other_with_cast.bbw_1))
      return false;
    if (!(this.cbw_1 == tmp0_other_with_cast.cbw_1))
      return false;
    if (!(this.dbw_1 === tmp0_other_with_cast.dbw_1))
      return false;
    if (!this.ebw_1.equals(tmp0_other_with_cast.ebw_1))
      return false;
    if (!(this.fbw_1 === tmp0_other_with_cast.fbw_1))
      return false;
    return true;
  };
  function Companion_70() {
    this.sjh_1 = 124;
    this.tjh_1 = 100;
    this.ujh_1 = 102;
    this.vjh_1 = 103;
    this.wjh_1 = 104;
    this.xjh_1 = 105;
    this.yjh_1 = 300;
  }
  protoOf(Companion_70).a4r = function () {
    return $serializer_getInstance_67();
  };
  var Companion_instance_71;
  function Companion_getInstance_73() {
    return Companion_instance_71;
  }
  function $serializer_67() {
    $serializer_instance_67 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseBlock', this, 23);
    tmp0_serialDesc.g4f('cbUid', true);
    tmp0_serialDesc.g4f('cbType', true);
    tmp0_serialDesc.g4f('cbIndentLevel', true);
    tmp0_serialDesc.g4f('cbModuleParentBlockUid', true);
    tmp0_serialDesc.g4f('cbTitle', true);
    tmp0_serialDesc.g4f('cbDescription', true);
    tmp0_serialDesc.g4f('cbCompletionCriteria', true);
    tmp0_serialDesc.g4f('cbHideUntilDate', true);
    tmp0_serialDesc.g4f('cbDeadlineDate', true);
    tmp0_serialDesc.g4f('cbLateSubmissionPenalty', true);
    tmp0_serialDesc.g4f('cbGracePeriodDate', true);
    tmp0_serialDesc.g4f('cbMaxPoints', true);
    tmp0_serialDesc.g4f('cbMinPoints', true);
    tmp0_serialDesc.g4f('cbIndex', true);
    tmp0_serialDesc.g4f('cbClazzUid', true);
    tmp0_serialDesc.g4f('cbClazzSourcedId', true);
    tmp0_serialDesc.g4f('cbActive', true);
    tmp0_serialDesc.g4f('cbHidden', true);
    tmp0_serialDesc.g4f('cbEntityUid', true);
    tmp0_serialDesc.g4f('cbLct', true);
    tmp0_serialDesc.g4f('cbSourcedId', true);
    tmp0_serialDesc.g4f('cbMetadata', true);
    tmp0_serialDesc.g4f('cbCreatedByAppId', true);
    this.zjh_1 = tmp0_serialDesc;
  }
  protoOf($serializer_67).d44 = function () {
    return this.zjh_1;
  };
  protoOf($serializer_67).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(FloatSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_67).f44 = function (decoder) {
    var tmp0_desc = this.zjh_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = 0;
    var tmp6_local2 = 0;
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = null;
    var tmp9_local5 = null;
    var tmp10_local6 = 0;
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = 0;
    var tmp14_local10 = new Long(0, 0);
    var tmp15_local11 = null;
    var tmp16_local12 = null;
    var tmp17_local13 = 0;
    var tmp18_local14 = new Long(0, 0);
    var tmp19_local15 = null;
    var tmp20_local16 = false;
    var tmp21_local17 = false;
    var tmp22_local18 = new Long(0, 0);
    var tmp23_local19 = new Long(0, 0);
    var tmp24_local20 = null;
    var tmp25_local21 = null;
    var tmp26_local22 = null;
    var tmp27_input = decoder.v47(tmp0_desc);
    if (tmp27_input.k48()) {
      tmp4_local0 = tmp27_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp27_input.a48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp27_input.a48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp27_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp27_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp27_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp27_input.a48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp27_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp27_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp27_input.a48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp27_input.b48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp27_input.j48(tmp0_desc, 11, FloatSerializer_getInstance(), tmp15_local11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp27_input.j48(tmp0_desc, 12, FloatSerializer_getInstance(), tmp16_local12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp27_input.a48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp27_input.b48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp27_input.j48(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp27_input.x47(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp27_input.x47(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp27_input.b48(tmp0_desc, 18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp27_input.b48(tmp0_desc, 19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp24_local20 = tmp27_input.j48(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp25_local21 = tmp27_input.j48(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp26_local22 = tmp27_input.j48(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp27_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp27_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp27_input.a48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp27_input.a48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp27_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp27_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp27_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp27_input.a48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp27_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp27_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp27_input.a48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp27_input.b48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp27_input.j48(tmp0_desc, 11, FloatSerializer_getInstance(), tmp15_local11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp27_input.j48(tmp0_desc, 12, FloatSerializer_getInstance(), tmp16_local12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp27_input.a48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp27_input.b48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp27_input.j48(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp27_input.x47(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp27_input.x47(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp27_input.b48(tmp0_desc, 18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp27_input.b48(tmp0_desc, 19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp24_local20 = tmp27_input.j48(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp25_local21 = tmp27_input.j48(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp26_local22 = tmp27_input.j48(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp27_input.w47(tmp0_desc);
    return CourseBlock_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, null);
  };
  protoOf($serializer_67).aji = function (encoder, value) {
    var tmp0_desc = this.zjh_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.w7w_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.w7w_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.x7w_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 1, value.x7w_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.y7w_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 2, value.y7w_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.z7w_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.z7w_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.a7x_1 == null)) {
      tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.a7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.b7x_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.b7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.c7x_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 6, value.c7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.d7x_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.d7x_1);
    }
    var tmp;
    if (tmp1_output.r49(tmp0_desc, 8)) {
      tmp = true;
    } else {
      var tmp_0 = value.e7x_1;
      Companion_getInstance();
      tmp = !tmp_0.equals(new Long(-1, 2147483647));
    }
    if (tmp) {
      tmp1_output.f49(tmp0_desc, 8, value.e7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.f7x_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 9, value.f7x_1);
    }
    var tmp_1;
    if (tmp1_output.r49(tmp0_desc, 10)) {
      tmp_1 = true;
    } else {
      var tmp_2 = value.g7x_1;
      Companion_getInstance();
      tmp_1 = !tmp_2.equals(new Long(-1, 2147483647));
    }
    if (tmp_1) {
      tmp1_output.f49(tmp0_desc, 10, value.g7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !(value.h7x_1 == null)) {
      tmp1_output.n49(tmp0_desc, 11, FloatSerializer_getInstance(), value.h7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !(value.i7x_1 == null)) {
      tmp1_output.n49(tmp0_desc, 12, FloatSerializer_getInstance(), value.i7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !(value.j7x_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 13, value.j7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 14) ? true : !value.k7x_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 14, value.k7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 15) ? true : !(value.l7x_1 == null)) {
      tmp1_output.n49(tmp0_desc, 15, StringSerializer_getInstance(), value.l7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 16) ? true : !(value.m7x_1 === true)) {
      tmp1_output.b49(tmp0_desc, 16, value.m7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 17) ? true : !(value.n7x_1 === false)) {
      tmp1_output.b49(tmp0_desc, 17, value.n7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 18) ? true : !value.o7x_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 18, value.o7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 19) ? true : !value.p7x_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 19, value.p7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 20) ? true : !(value.q7x_1 == null)) {
      tmp1_output.n49(tmp0_desc, 20, StringSerializer_getInstance(), value.q7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 21) ? true : !(value.r7x_1 == null)) {
      tmp1_output.n49(tmp0_desc, 21, StringSerializer_getInstance(), value.r7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 22) ? true : !(value.s7x_1 == null)) {
      tmp1_output.n49(tmp0_desc, 22, StringSerializer_getInstance(), value.s7x_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_67).e44 = function (encoder, value) {
    return this.aji(encoder, value instanceof CourseBlock ? value : THROW_CCE());
  };
  var $serializer_instance_67;
  function $serializer_getInstance_67() {
    if ($serializer_instance_67 == null)
      new $serializer_67();
    return $serializer_instance_67;
  }
  function CourseBlock_init_$Init$(seen1, cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_67().zjh_1);
    }
    if (0 === (seen1 & 1))
      $this.w7w_1 = new Long(0, 0);
    else
      $this.w7w_1 = cbUid;
    if (0 === (seen1 & 2))
      $this.x7w_1 = 0;
    else
      $this.x7w_1 = cbType;
    if (0 === (seen1 & 4))
      $this.y7w_1 = 0;
    else
      $this.y7w_1 = cbIndentLevel;
    if (0 === (seen1 & 8))
      $this.z7w_1 = new Long(0, 0);
    else
      $this.z7w_1 = cbModuleParentBlockUid;
    if (0 === (seen1 & 16))
      $this.a7x_1 = null;
    else
      $this.a7x_1 = cbTitle;
    if (0 === (seen1 & 32))
      $this.b7x_1 = null;
    else
      $this.b7x_1 = cbDescription;
    if (0 === (seen1 & 64))
      $this.c7x_1 = 0;
    else
      $this.c7x_1 = cbCompletionCriteria;
    if (0 === (seen1 & 128))
      $this.d7x_1 = new Long(0, 0);
    else
      $this.d7x_1 = cbHideUntilDate;
    if (0 === (seen1 & 256)) {
      var tmp = $this;
      Companion_getInstance();
      tmp.e7x_1 = new Long(-1, 2147483647);
    } else
      $this.e7x_1 = cbDeadlineDate;
    if (0 === (seen1 & 512))
      $this.f7x_1 = 0;
    else
      $this.f7x_1 = cbLateSubmissionPenalty;
    if (0 === (seen1 & 1024)) {
      var tmp_0 = $this;
      Companion_getInstance();
      tmp_0.g7x_1 = new Long(-1, 2147483647);
    } else
      $this.g7x_1 = cbGracePeriodDate;
    if (0 === (seen1 & 2048))
      $this.h7x_1 = null;
    else
      $this.h7x_1 = cbMaxPoints;
    if (0 === (seen1 & 4096))
      $this.i7x_1 = null;
    else
      $this.i7x_1 = cbMinPoints;
    if (0 === (seen1 & 8192))
      $this.j7x_1 = 0;
    else
      $this.j7x_1 = cbIndex;
    if (0 === (seen1 & 16384))
      $this.k7x_1 = new Long(0, 0);
    else
      $this.k7x_1 = cbClazzUid;
    if (0 === (seen1 & 32768))
      $this.l7x_1 = null;
    else
      $this.l7x_1 = cbClazzSourcedId;
    if (0 === (seen1 & 65536))
      $this.m7x_1 = true;
    else
      $this.m7x_1 = cbActive;
    if (0 === (seen1 & 131072))
      $this.n7x_1 = false;
    else
      $this.n7x_1 = cbHidden;
    if (0 === (seen1 & 262144))
      $this.o7x_1 = new Long(0, 0);
    else
      $this.o7x_1 = cbEntityUid;
    if (0 === (seen1 & 524288))
      $this.p7x_1 = new Long(0, 0);
    else
      $this.p7x_1 = cbLct;
    if (0 === (seen1 & 1048576))
      $this.q7x_1 = null;
    else
      $this.q7x_1 = cbSourcedId;
    if (0 === (seen1 & 2097152))
      $this.r7x_1 = null;
    else
      $this.r7x_1 = cbMetadata;
    if (0 === (seen1 & 4194304))
      $this.s7x_1 = null;
    else
      $this.s7x_1 = cbCreatedByAppId;
    return $this;
  }
  function CourseBlock_init_$Create$(seen1, cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId, serializationConstructorMarker) {
    return CourseBlock_init_$Init$(seen1, cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId, serializationConstructorMarker, objectCreate(protoOf(CourseBlock)));
  }
  function CourseBlock(cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) {
    cbUid = cbUid === VOID ? new Long(0, 0) : cbUid;
    cbType = cbType === VOID ? 0 : cbType;
    cbIndentLevel = cbIndentLevel === VOID ? 0 : cbIndentLevel;
    cbModuleParentBlockUid = cbModuleParentBlockUid === VOID ? new Long(0, 0) : cbModuleParentBlockUid;
    cbTitle = cbTitle === VOID ? null : cbTitle;
    cbDescription = cbDescription === VOID ? null : cbDescription;
    cbCompletionCriteria = cbCompletionCriteria === VOID ? 0 : cbCompletionCriteria;
    cbHideUntilDate = cbHideUntilDate === VOID ? new Long(0, 0) : cbHideUntilDate;
    var tmp;
    if (cbDeadlineDate === VOID) {
      Companion_getInstance();
      tmp = new Long(-1, 2147483647);
    } else {
      tmp = cbDeadlineDate;
    }
    cbDeadlineDate = tmp;
    cbLateSubmissionPenalty = cbLateSubmissionPenalty === VOID ? 0 : cbLateSubmissionPenalty;
    var tmp_0;
    if (cbGracePeriodDate === VOID) {
      Companion_getInstance();
      tmp_0 = new Long(-1, 2147483647);
    } else {
      tmp_0 = cbGracePeriodDate;
    }
    cbGracePeriodDate = tmp_0;
    cbMaxPoints = cbMaxPoints === VOID ? null : cbMaxPoints;
    cbMinPoints = cbMinPoints === VOID ? null : cbMinPoints;
    cbIndex = cbIndex === VOID ? 0 : cbIndex;
    cbClazzUid = cbClazzUid === VOID ? new Long(0, 0) : cbClazzUid;
    cbClazzSourcedId = cbClazzSourcedId === VOID ? null : cbClazzSourcedId;
    cbActive = cbActive === VOID ? true : cbActive;
    cbHidden = cbHidden === VOID ? false : cbHidden;
    cbEntityUid = cbEntityUid === VOID ? new Long(0, 0) : cbEntityUid;
    cbLct = cbLct === VOID ? new Long(0, 0) : cbLct;
    cbSourcedId = cbSourcedId === VOID ? null : cbSourcedId;
    cbMetadata = cbMetadata === VOID ? null : cbMetadata;
    cbCreatedByAppId = cbCreatedByAppId === VOID ? null : cbCreatedByAppId;
    this.w7w_1 = cbUid;
    this.x7w_1 = cbType;
    this.y7w_1 = cbIndentLevel;
    this.z7w_1 = cbModuleParentBlockUid;
    this.a7x_1 = cbTitle;
    this.b7x_1 = cbDescription;
    this.c7x_1 = cbCompletionCriteria;
    this.d7x_1 = cbHideUntilDate;
    this.e7x_1 = cbDeadlineDate;
    this.f7x_1 = cbLateSubmissionPenalty;
    this.g7x_1 = cbGracePeriodDate;
    this.h7x_1 = cbMaxPoints;
    this.i7x_1 = cbMinPoints;
    this.j7x_1 = cbIndex;
    this.k7x_1 = cbClazzUid;
    this.l7x_1 = cbClazzSourcedId;
    this.m7x_1 = cbActive;
    this.n7x_1 = cbHidden;
    this.o7x_1 = cbEntityUid;
    this.p7x_1 = cbLct;
    this.q7x_1 = cbSourcedId;
    this.r7x_1 = cbMetadata;
    this.s7x_1 = cbCreatedByAppId;
  }
  protoOf(CourseBlock).bji = function (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) {
    return new CourseBlock(cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId);
  };
  protoOf(CourseBlock).cji = function (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId, $super) {
    cbUid = cbUid === VOID ? this.w7w_1 : cbUid;
    cbType = cbType === VOID ? this.x7w_1 : cbType;
    cbIndentLevel = cbIndentLevel === VOID ? this.y7w_1 : cbIndentLevel;
    cbModuleParentBlockUid = cbModuleParentBlockUid === VOID ? this.z7w_1 : cbModuleParentBlockUid;
    cbTitle = cbTitle === VOID ? this.a7x_1 : cbTitle;
    cbDescription = cbDescription === VOID ? this.b7x_1 : cbDescription;
    cbCompletionCriteria = cbCompletionCriteria === VOID ? this.c7x_1 : cbCompletionCriteria;
    cbHideUntilDate = cbHideUntilDate === VOID ? this.d7x_1 : cbHideUntilDate;
    cbDeadlineDate = cbDeadlineDate === VOID ? this.e7x_1 : cbDeadlineDate;
    cbLateSubmissionPenalty = cbLateSubmissionPenalty === VOID ? this.f7x_1 : cbLateSubmissionPenalty;
    cbGracePeriodDate = cbGracePeriodDate === VOID ? this.g7x_1 : cbGracePeriodDate;
    cbMaxPoints = cbMaxPoints === VOID ? this.h7x_1 : cbMaxPoints;
    cbMinPoints = cbMinPoints === VOID ? this.i7x_1 : cbMinPoints;
    cbIndex = cbIndex === VOID ? this.j7x_1 : cbIndex;
    cbClazzUid = cbClazzUid === VOID ? this.k7x_1 : cbClazzUid;
    cbClazzSourcedId = cbClazzSourcedId === VOID ? this.l7x_1 : cbClazzSourcedId;
    cbActive = cbActive === VOID ? this.m7x_1 : cbActive;
    cbHidden = cbHidden === VOID ? this.n7x_1 : cbHidden;
    cbEntityUid = cbEntityUid === VOID ? this.o7x_1 : cbEntityUid;
    cbLct = cbLct === VOID ? this.p7x_1 : cbLct;
    cbSourcedId = cbSourcedId === VOID ? this.q7x_1 : cbSourcedId;
    cbMetadata = cbMetadata === VOID ? this.r7x_1 : cbMetadata;
    cbCreatedByAppId = cbCreatedByAppId === VOID ? this.s7x_1 : cbCreatedByAppId;
    return $super === VOID ? this.bji(cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) : $super.bji.call(this, cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId);
  };
  protoOf(CourseBlock).toString = function () {
    return 'CourseBlock(cbUid=' + this.w7w_1.toString() + ', cbType=' + this.x7w_1 + ', cbIndentLevel=' + this.y7w_1 + ', cbModuleParentBlockUid=' + this.z7w_1.toString() + ', cbTitle=' + this.a7x_1 + ', cbDescription=' + this.b7x_1 + ', cbCompletionCriteria=' + this.c7x_1 + ', cbHideUntilDate=' + this.d7x_1.toString() + ', cbDeadlineDate=' + this.e7x_1.toString() + ', cbLateSubmissionPenalty=' + this.f7x_1 + ', cbGracePeriodDate=' + this.g7x_1.toString() + ', cbMaxPoints=' + this.h7x_1 + ', cbMinPoints=' + this.i7x_1 + ', cbIndex=' + this.j7x_1 + ', cbClazzUid=' + this.k7x_1.toString() + ', cbClazzSourcedId=' + this.l7x_1 + ', cbActive=' + this.m7x_1 + ', cbHidden=' + this.n7x_1 + ', cbEntityUid=' + this.o7x_1.toString() + ', cbLct=' + this.p7x_1.toString() + ', cbSourcedId=' + this.q7x_1 + ', cbMetadata=' + this.r7x_1 + ', cbCreatedByAppId=' + this.s7x_1 + ')';
  };
  protoOf(CourseBlock).hashCode = function () {
    var result = this.w7w_1.hashCode();
    result = imul(result, 31) + this.x7w_1 | 0;
    result = imul(result, 31) + this.y7w_1 | 0;
    result = imul(result, 31) + this.z7w_1.hashCode() | 0;
    result = imul(result, 31) + (this.a7x_1 == null ? 0 : getStringHashCode(this.a7x_1)) | 0;
    result = imul(result, 31) + (this.b7x_1 == null ? 0 : getStringHashCode(this.b7x_1)) | 0;
    result = imul(result, 31) + this.c7x_1 | 0;
    result = imul(result, 31) + this.d7x_1.hashCode() | 0;
    result = imul(result, 31) + this.e7x_1.hashCode() | 0;
    result = imul(result, 31) + this.f7x_1 | 0;
    result = imul(result, 31) + this.g7x_1.hashCode() | 0;
    result = imul(result, 31) + (this.h7x_1 == null ? 0 : getNumberHashCode(this.h7x_1)) | 0;
    result = imul(result, 31) + (this.i7x_1 == null ? 0 : getNumberHashCode(this.i7x_1)) | 0;
    result = imul(result, 31) + this.j7x_1 | 0;
    result = imul(result, 31) + this.k7x_1.hashCode() | 0;
    result = imul(result, 31) + (this.l7x_1 == null ? 0 : getStringHashCode(this.l7x_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.m7x_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.n7x_1) | 0;
    result = imul(result, 31) + this.o7x_1.hashCode() | 0;
    result = imul(result, 31) + this.p7x_1.hashCode() | 0;
    result = imul(result, 31) + (this.q7x_1 == null ? 0 : getStringHashCode(this.q7x_1)) | 0;
    result = imul(result, 31) + (this.r7x_1 == null ? 0 : getStringHashCode(this.r7x_1)) | 0;
    result = imul(result, 31) + (this.s7x_1 == null ? 0 : getStringHashCode(this.s7x_1)) | 0;
    return result;
  };
  protoOf(CourseBlock).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CourseBlock))
      return false;
    var tmp0_other_with_cast = other instanceof CourseBlock ? other : THROW_CCE();
    if (!this.w7w_1.equals(tmp0_other_with_cast.w7w_1))
      return false;
    if (!(this.x7w_1 === tmp0_other_with_cast.x7w_1))
      return false;
    if (!(this.y7w_1 === tmp0_other_with_cast.y7w_1))
      return false;
    if (!this.z7w_1.equals(tmp0_other_with_cast.z7w_1))
      return false;
    if (!(this.a7x_1 == tmp0_other_with_cast.a7x_1))
      return false;
    if (!(this.b7x_1 == tmp0_other_with_cast.b7x_1))
      return false;
    if (!(this.c7x_1 === tmp0_other_with_cast.c7x_1))
      return false;
    if (!this.d7x_1.equals(tmp0_other_with_cast.d7x_1))
      return false;
    if (!this.e7x_1.equals(tmp0_other_with_cast.e7x_1))
      return false;
    if (!(this.f7x_1 === tmp0_other_with_cast.f7x_1))
      return false;
    if (!this.g7x_1.equals(tmp0_other_with_cast.g7x_1))
      return false;
    if (!equals(this.h7x_1, tmp0_other_with_cast.h7x_1))
      return false;
    if (!equals(this.i7x_1, tmp0_other_with_cast.i7x_1))
      return false;
    if (!(this.j7x_1 === tmp0_other_with_cast.j7x_1))
      return false;
    if (!this.k7x_1.equals(tmp0_other_with_cast.k7x_1))
      return false;
    if (!(this.l7x_1 == tmp0_other_with_cast.l7x_1))
      return false;
    if (!(this.m7x_1 === tmp0_other_with_cast.m7x_1))
      return false;
    if (!(this.n7x_1 === tmp0_other_with_cast.n7x_1))
      return false;
    if (!this.o7x_1.equals(tmp0_other_with_cast.o7x_1))
      return false;
    if (!this.p7x_1.equals(tmp0_other_with_cast.p7x_1))
      return false;
    if (!(this.q7x_1 == tmp0_other_with_cast.q7x_1))
      return false;
    if (!(this.r7x_1 == tmp0_other_with_cast.r7x_1))
      return false;
    if (!(this.s7x_1 == tmp0_other_with_cast.s7x_1))
      return false;
    return true;
  };
  function Companion_71() {
    this.dji_1 = 6677;
  }
  var Companion_instance_72;
  function Companion_getInstance_74() {
    return Companion_instance_72;
  }
  function $serializer_68() {
    $serializer_instance_68 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseBlockPicture', this, 4);
    tmp0_serialDesc.g4f('cbpUid', true);
    tmp0_serialDesc.g4f('cbpLct', true);
    tmp0_serialDesc.g4f('cbpPictureUri', true);
    tmp0_serialDesc.g4f('cbpThumbnailUri', true);
    this.eji_1 = tmp0_serialDesc;
  }
  protoOf($serializer_68).d44 = function () {
    return this.eji_1;
  };
  protoOf($serializer_68).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_68).f44 = function (decoder) {
    var tmp0_desc = this.eji_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_input = decoder.v47(tmp0_desc);
    if (tmp8_input.k48()) {
      tmp4_local0 = tmp8_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.w47(tmp0_desc);
    return CourseBlockPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_68).fji = function (encoder, value) {
    var tmp0_desc = this.eji_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.z7x_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.z7x_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.a7y_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.a7y_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.b7y_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.b7y_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.c7y_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.c7y_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_68).e44 = function (encoder, value) {
    return this.fji(encoder, value instanceof CourseBlockPicture ? value : THROW_CCE());
  };
  var $serializer_instance_68;
  function $serializer_getInstance_68() {
    if ($serializer_instance_68 == null)
      new $serializer_68();
    return $serializer_instance_68;
  }
  function CourseBlockPicture_init_$Init$(seen1, cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_68().eji_1);
    }
    if (0 === (seen1 & 1))
      $this.z7x_1 = new Long(0, 0);
    else
      $this.z7x_1 = cbpUid;
    if (0 === (seen1 & 2))
      $this.a7y_1 = new Long(0, 0);
    else
      $this.a7y_1 = cbpLct;
    if (0 === (seen1 & 4))
      $this.b7y_1 = null;
    else
      $this.b7y_1 = cbpPictureUri;
    if (0 === (seen1 & 8))
      $this.c7y_1 = null;
    else
      $this.c7y_1 = cbpThumbnailUri;
    return $this;
  }
  function CourseBlockPicture_init_$Create$(seen1, cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri, serializationConstructorMarker) {
    return CourseBlockPicture_init_$Init$(seen1, cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri, serializationConstructorMarker, objectCreate(protoOf(CourseBlockPicture)));
  }
  function CourseBlockPicture(cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) {
    cbpUid = cbpUid === VOID ? new Long(0, 0) : cbpUid;
    cbpLct = cbpLct === VOID ? new Long(0, 0) : cbpLct;
    cbpPictureUri = cbpPictureUri === VOID ? null : cbpPictureUri;
    cbpThumbnailUri = cbpThumbnailUri === VOID ? null : cbpThumbnailUri;
    this.z7x_1 = cbpUid;
    this.a7y_1 = cbpLct;
    this.b7y_1 = cbpPictureUri;
    this.c7y_1 = cbpThumbnailUri;
  }
  protoOf(CourseBlockPicture).yjd = function (cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) {
    return new CourseBlockPicture(cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri);
  };
  protoOf(CourseBlockPicture).gji = function (cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri, $super) {
    cbpUid = cbpUid === VOID ? this.z7x_1 : cbpUid;
    cbpLct = cbpLct === VOID ? this.a7y_1 : cbpLct;
    cbpPictureUri = cbpPictureUri === VOID ? this.b7y_1 : cbpPictureUri;
    cbpThumbnailUri = cbpThumbnailUri === VOID ? this.c7y_1 : cbpThumbnailUri;
    return $super === VOID ? this.yjd(cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) : $super.yjd.call(this, cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri);
  };
  protoOf(CourseBlockPicture).toString = function () {
    return 'CourseBlockPicture(cbpUid=' + this.z7x_1.toString() + ', cbpLct=' + this.a7y_1.toString() + ', cbpPictureUri=' + this.b7y_1 + ', cbpThumbnailUri=' + this.c7y_1 + ')';
  };
  protoOf(CourseBlockPicture).hashCode = function () {
    var result = this.z7x_1.hashCode();
    result = imul(result, 31) + this.a7y_1.hashCode() | 0;
    result = imul(result, 31) + (this.b7y_1 == null ? 0 : getStringHashCode(this.b7y_1)) | 0;
    result = imul(result, 31) + (this.c7y_1 == null ? 0 : getStringHashCode(this.c7y_1)) | 0;
    return result;
  };
  protoOf(CourseBlockPicture).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CourseBlockPicture))
      return false;
    var tmp0_other_with_cast = other instanceof CourseBlockPicture ? other : THROW_CCE();
    if (!this.z7x_1.equals(tmp0_other_with_cast.z7x_1))
      return false;
    if (!this.a7y_1.equals(tmp0_other_with_cast.a7y_1))
      return false;
    if (!(this.b7y_1 == tmp0_other_with_cast.b7y_1))
      return false;
    if (!(this.c7y_1 == tmp0_other_with_cast.c7y_1))
      return false;
    return true;
  };
  function Companion_72() {
    this.hji_1 = 243;
  }
  var Companion_instance_73;
  function Companion_getInstance_75() {
    return Companion_instance_73;
  }
  function $serializer_69() {
    $serializer_instance_69 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseGroupMember', this, 5);
    tmp0_serialDesc.g4f('cgmUid', true);
    tmp0_serialDesc.g4f('cgmSetUid', true);
    tmp0_serialDesc.g4f('cgmGroupNumber', true);
    tmp0_serialDesc.g4f('cgmPersonUid', true);
    tmp0_serialDesc.g4f('cgmLct', true);
    this.iji_1 = tmp0_serialDesc;
  }
  protoOf($serializer_69).d44 = function () {
    return this.iji_1;
  };
  protoOf($serializer_69).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_69).f44 = function (decoder) {
    var tmp0_desc = this.iji_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = 0;
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = new Long(0, 0);
    var tmp9_input = decoder.v47(tmp0_desc);
    if (tmp9_input.k48()) {
      tmp4_local0 = tmp9_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp9_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp9_input.a48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp9_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp9_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp9_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp9_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp9_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp9_input.a48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp9_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp9_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp9_input.w47(tmp0_desc);
    return CourseGroupMember_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
  };
  protoOf($serializer_69).jji = function (encoder, value) {
    var tmp0_desc = this.iji_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.mcp_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.mcp_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.ncp_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.ncp_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.ocp_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 2, value.ocp_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.pcp_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.pcp_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.qcp_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.qcp_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_69).e44 = function (encoder, value) {
    return this.jji(encoder, value instanceof CourseGroupMember ? value : THROW_CCE());
  };
  var $serializer_instance_69;
  function $serializer_getInstance_69() {
    if ($serializer_instance_69 == null)
      new $serializer_69();
    return $serializer_instance_69;
  }
  function CourseGroupMember_init_$Init$(seen1, cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_69().iji_1);
    }
    if (0 === (seen1 & 1))
      $this.mcp_1 = new Long(0, 0);
    else
      $this.mcp_1 = cgmUid;
    if (0 === (seen1 & 2))
      $this.ncp_1 = new Long(0, 0);
    else
      $this.ncp_1 = cgmSetUid;
    if (0 === (seen1 & 4))
      $this.ocp_1 = 0;
    else
      $this.ocp_1 = cgmGroupNumber;
    if (0 === (seen1 & 8))
      $this.pcp_1 = new Long(0, 0);
    else
      $this.pcp_1 = cgmPersonUid;
    if (0 === (seen1 & 16))
      $this.qcp_1 = new Long(0, 0);
    else
      $this.qcp_1 = cgmLct;
    return $this;
  }
  function CourseGroupMember_init_$Create$(seen1, cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct, serializationConstructorMarker) {
    return CourseGroupMember_init_$Init$(seen1, cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct, serializationConstructorMarker, objectCreate(protoOf(CourseGroupMember)));
  }
  function CourseGroupMember(cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) {
    cgmUid = cgmUid === VOID ? new Long(0, 0) : cgmUid;
    cgmSetUid = cgmSetUid === VOID ? new Long(0, 0) : cgmSetUid;
    cgmGroupNumber = cgmGroupNumber === VOID ? 0 : cgmGroupNumber;
    cgmPersonUid = cgmPersonUid === VOID ? new Long(0, 0) : cgmPersonUid;
    cgmLct = cgmLct === VOID ? new Long(0, 0) : cgmLct;
    this.mcp_1 = cgmUid;
    this.ncp_1 = cgmSetUid;
    this.ocp_1 = cgmGroupNumber;
    this.pcp_1 = cgmPersonUid;
    this.qcp_1 = cgmLct;
  }
  protoOf(CourseGroupMember).toString = function () {
    return 'CourseGroupMember(cgmUid=' + this.mcp_1.toString() + ', cgmSetUid=' + this.ncp_1.toString() + ', cgmGroupNumber=' + this.ocp_1 + ', cgmPersonUid=' + this.pcp_1.toString() + ', cgmLct=' + this.qcp_1.toString() + ')';
  };
  protoOf(CourseGroupMember).hashCode = function () {
    var result = this.mcp_1.hashCode();
    result = imul(result, 31) + this.ncp_1.hashCode() | 0;
    result = imul(result, 31) + this.ocp_1 | 0;
    result = imul(result, 31) + this.pcp_1.hashCode() | 0;
    result = imul(result, 31) + this.qcp_1.hashCode() | 0;
    return result;
  };
  protoOf(CourseGroupMember).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CourseGroupMember))
      return false;
    var tmp0_other_with_cast = other instanceof CourseGroupMember ? other : THROW_CCE();
    if (!this.mcp_1.equals(tmp0_other_with_cast.mcp_1))
      return false;
    if (!this.ncp_1.equals(tmp0_other_with_cast.ncp_1))
      return false;
    if (!(this.ocp_1 === tmp0_other_with_cast.ocp_1))
      return false;
    if (!this.pcp_1.equals(tmp0_other_with_cast.pcp_1))
      return false;
    if (!this.qcp_1.equals(tmp0_other_with_cast.qcp_1))
      return false;
    return true;
  };
  function Companion_73() {
  }
  protoOf(Companion_73).a4r = function () {
    return $serializer_getInstance_70();
  };
  var Companion_instance_74;
  function Companion_getInstance_76() {
    return Companion_instance_74;
  }
  function $serializer_70() {
    $serializer_instance_70 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseGroupMemberAndName', this, 5);
    tmp0_serialDesc.g4f('cgm', true);
    tmp0_serialDesc.g4f('name', true);
    tmp0_serialDesc.g4f('personUid', true);
    tmp0_serialDesc.g4f('enrolmentIsActive', true);
    tmp0_serialDesc.g4f('pictureUri', true);
    this.kji_1 = tmp0_serialDesc;
  }
  protoOf($serializer_70).d44 = function () {
    return this.kji_1;
  };
  protoOf($serializer_70).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_69()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_70).f44 = function (decoder) {
    var tmp0_desc = this.kji_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = false;
    var tmp8_local4 = null;
    var tmp9_input = decoder.v47(tmp0_desc);
    if (tmp9_input.k48()) {
      tmp4_local0 = tmp9_input.j48(tmp0_desc, 0, $serializer_getInstance_69(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp9_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp9_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp9_input.x47(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp9_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp9_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp9_input.j48(tmp0_desc, 0, $serializer_getInstance_69(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp9_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp9_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp9_input.x47(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp9_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp9_input.w47(tmp0_desc);
    return CourseGroupMemberAndName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
  };
  protoOf($serializer_70).lji = function (encoder, value) {
    var tmp0_desc = this.kji_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.ecq_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_69(), value.ecq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.fcq_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.fcq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.gcq_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.gcq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.hcq_1 === false)) {
      tmp1_output.b49(tmp0_desc, 3, value.hcq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.icq_1 == null)) {
      tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.icq_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_70).e44 = function (encoder, value) {
    return this.lji(encoder, value instanceof CourseGroupMemberAndName ? value : THROW_CCE());
  };
  var $serializer_instance_70;
  function $serializer_getInstance_70() {
    if ($serializer_instance_70 == null)
      new $serializer_70();
    return $serializer_instance_70;
  }
  function CourseGroupMemberAndName_init_$Init$(seen1, cgm, name, personUid, enrolmentIsActive, pictureUri, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_70().kji_1);
    }
    if (0 === (seen1 & 1))
      $this.ecq_1 = null;
    else
      $this.ecq_1 = cgm;
    if (0 === (seen1 & 2))
      $this.fcq_1 = null;
    else
      $this.fcq_1 = name;
    if (0 === (seen1 & 4))
      $this.gcq_1 = new Long(0, 0);
    else
      $this.gcq_1 = personUid;
    if (0 === (seen1 & 8))
      $this.hcq_1 = false;
    else
      $this.hcq_1 = enrolmentIsActive;
    if (0 === (seen1 & 16))
      $this.icq_1 = null;
    else
      $this.icq_1 = pictureUri;
    return $this;
  }
  function CourseGroupMemberAndName_init_$Create$(seen1, cgm, name, personUid, enrolmentIsActive, pictureUri, serializationConstructorMarker) {
    return CourseGroupMemberAndName_init_$Init$(seen1, cgm, name, personUid, enrolmentIsActive, pictureUri, serializationConstructorMarker, objectCreate(protoOf(CourseGroupMemberAndName)));
  }
  function CourseGroupMemberAndName(cgm, name, personUid, enrolmentIsActive, pictureUri) {
    cgm = cgm === VOID ? null : cgm;
    name = name === VOID ? null : name;
    personUid = personUid === VOID ? new Long(0, 0) : personUid;
    enrolmentIsActive = enrolmentIsActive === VOID ? false : enrolmentIsActive;
    pictureUri = pictureUri === VOID ? null : pictureUri;
    this.ecq_1 = cgm;
    this.fcq_1 = name;
    this.gcq_1 = personUid;
    this.hcq_1 = enrolmentIsActive;
    this.icq_1 = pictureUri;
  }
  protoOf(CourseGroupMemberAndName).mji = function (cgm, name, personUid, enrolmentIsActive, pictureUri) {
    return new CourseGroupMemberAndName(cgm, name, personUid, enrolmentIsActive, pictureUri);
  };
  protoOf(CourseGroupMemberAndName).nji = function (cgm, name, personUid, enrolmentIsActive, pictureUri, $super) {
    cgm = cgm === VOID ? this.ecq_1 : cgm;
    name = name === VOID ? this.fcq_1 : name;
    personUid = personUid === VOID ? this.gcq_1 : personUid;
    enrolmentIsActive = enrolmentIsActive === VOID ? this.hcq_1 : enrolmentIsActive;
    pictureUri = pictureUri === VOID ? this.icq_1 : pictureUri;
    return $super === VOID ? this.mji(cgm, name, personUid, enrolmentIsActive, pictureUri) : $super.mji.call(this, cgm, name, personUid, enrolmentIsActive, pictureUri);
  };
  protoOf(CourseGroupMemberAndName).toString = function () {
    return 'CourseGroupMemberAndName(cgm=' + this.ecq_1 + ', name=' + this.fcq_1 + ', personUid=' + this.gcq_1.toString() + ', enrolmentIsActive=' + this.hcq_1 + ', pictureUri=' + this.icq_1 + ')';
  };
  protoOf(CourseGroupMemberAndName).hashCode = function () {
    var result = this.ecq_1 == null ? 0 : this.ecq_1.hashCode();
    result = imul(result, 31) + (this.fcq_1 == null ? 0 : getStringHashCode(this.fcq_1)) | 0;
    result = imul(result, 31) + this.gcq_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.hcq_1) | 0;
    result = imul(result, 31) + (this.icq_1 == null ? 0 : getStringHashCode(this.icq_1)) | 0;
    return result;
  };
  protoOf(CourseGroupMemberAndName).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CourseGroupMemberAndName))
      return false;
    var tmp0_other_with_cast = other instanceof CourseGroupMemberAndName ? other : THROW_CCE();
    if (!equals(this.ecq_1, tmp0_other_with_cast.ecq_1))
      return false;
    if (!(this.fcq_1 == tmp0_other_with_cast.fcq_1))
      return false;
    if (!this.gcq_1.equals(tmp0_other_with_cast.gcq_1))
      return false;
    if (!(this.hcq_1 === tmp0_other_with_cast.hcq_1))
      return false;
    if (!(this.icq_1 == tmp0_other_with_cast.icq_1))
      return false;
    return true;
  };
  function Companion_74() {
    this.oji_1 = 242;
  }
  protoOf(Companion_74).a4r = function () {
    return $serializer_getInstance_71();
  };
  var Companion_instance_75;
  function Companion_getInstance_77() {
    return Companion_instance_75;
  }
  function $serializer_71() {
    $serializer_instance_71 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseGroupSet', this, 6);
    tmp0_serialDesc.g4f('cgsUid', true);
    tmp0_serialDesc.g4f('cgsName', true);
    tmp0_serialDesc.g4f('cgsTotalGroups', true);
    tmp0_serialDesc.g4f('cgsActive', true);
    tmp0_serialDesc.g4f('cgsClazzUid', true);
    tmp0_serialDesc.g4f('cgsLct', true);
    this.pji_1 = tmp0_serialDesc;
  }
  protoOf($serializer_71).d44 = function () {
    return this.pji_1;
  };
  protoOf($serializer_71).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_71).f44 = function (decoder) {
    var tmp0_desc = this.pji_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = 0;
    var tmp7_local3 = false;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_input = decoder.v47(tmp0_desc);
    if (tmp10_input.k48()) {
      tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.a48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.x47(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.a48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.x47(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.w47(tmp0_desc);
    return CourseGroupSet_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_71).qji = function (encoder, value) {
    var tmp0_desc = this.pji_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.d7y_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.d7y_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.e7y_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.e7y_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.f7y_1 === 4)) {
      tmp1_output.e49(tmp0_desc, 2, value.f7y_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.g7y_1 === true)) {
      tmp1_output.b49(tmp0_desc, 3, value.g7y_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.h7y_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.h7y_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.i7y_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.i7y_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_71).e44 = function (encoder, value) {
    return this.qji(encoder, value instanceof CourseGroupSet ? value : THROW_CCE());
  };
  var $serializer_instance_71;
  function $serializer_getInstance_71() {
    if ($serializer_instance_71 == null)
      new $serializer_71();
    return $serializer_instance_71;
  }
  function CourseGroupSet_init_$Init$(seen1, cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_71().pji_1);
    }
    if (0 === (seen1 & 1))
      $this.d7y_1 = new Long(0, 0);
    else
      $this.d7y_1 = cgsUid;
    if (0 === (seen1 & 2))
      $this.e7y_1 = null;
    else
      $this.e7y_1 = cgsName;
    if (0 === (seen1 & 4))
      $this.f7y_1 = 4;
    else
      $this.f7y_1 = cgsTotalGroups;
    if (0 === (seen1 & 8))
      $this.g7y_1 = true;
    else
      $this.g7y_1 = cgsActive;
    if (0 === (seen1 & 16))
      $this.h7y_1 = new Long(0, 0);
    else
      $this.h7y_1 = cgsClazzUid;
    if (0 === (seen1 & 32))
      $this.i7y_1 = new Long(0, 0);
    else
      $this.i7y_1 = cgsLct;
    return $this;
  }
  function CourseGroupSet_init_$Create$(seen1, cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct, serializationConstructorMarker) {
    return CourseGroupSet_init_$Init$(seen1, cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct, serializationConstructorMarker, objectCreate(protoOf(CourseGroupSet)));
  }
  function CourseGroupSet() {
    this.d7y_1 = new Long(0, 0);
    this.e7y_1 = null;
    this.f7y_1 = 4;
    this.g7y_1 = true;
    this.h7y_1 = new Long(0, 0);
    this.i7y_1 = new Long(0, 0);
  }
  function Companion_75() {
    Companion_instance_76 = this;
    this.rji_1 = 10012;
    this.sji_1 = new Long(8703, 0);
    this.tji_1 = new Long(8193, 0);
  }
  protoOf(Companion_75).a4r = function () {
    return $serializer_getInstance_72();
  };
  var Companion_instance_76;
  function Companion_getInstance_78() {
    if (Companion_instance_76 == null)
      new Companion_75();
    return Companion_instance_76;
  }
  function $serializer_72() {
    $serializer_instance_72 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CoursePermission', this, 8);
    tmp0_serialDesc.g4f('cpUid', true);
    tmp0_serialDesc.g4f('cpLastModified', true);
    tmp0_serialDesc.g4f('cpClazzUid', true);
    tmp0_serialDesc.g4f('cpToEnrolmentRole', true);
    tmp0_serialDesc.g4f('cpToPersonUid', true);
    tmp0_serialDesc.g4f('cpToGroupUid', true);
    tmp0_serialDesc.g4f('cpPermissionsFlag', true);
    tmp0_serialDesc.g4f('cpIsDeleted', true);
    this.uji_1 = tmp0_serialDesc;
  }
  protoOf($serializer_72).d44 = function () {
    return this.uji_1;
  };
  protoOf($serializer_72).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_72).f44 = function (decoder) {
    var tmp0_desc = this.uji_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = 0;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = new Long(0, 0);
    var tmp11_local7 = false;
    var tmp12_input = decoder.v47(tmp0_desc);
    if (tmp12_input.k48()) {
      tmp4_local0 = tmp12_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.a48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.x47(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.a48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.x47(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.w47(tmp0_desc);
    return CoursePermission_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
  };
  protoOf($serializer_72).vji = function (encoder, value) {
    var tmp0_desc = this.uji_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.wd5_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.wd5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.xd5_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.xd5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.yd5_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.yd5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.zd5_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 3, value.zd5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.ad6_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.ad6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.bd6_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.bd6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.cd6_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.cd6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.dd6_1 === false)) {
      tmp1_output.b49(tmp0_desc, 7, value.dd6_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_72).e44 = function (encoder, value) {
    return this.vji(encoder, value instanceof CoursePermission ? value : THROW_CCE());
  };
  var $serializer_instance_72;
  function $serializer_getInstance_72() {
    if ($serializer_instance_72 == null)
      new $serializer_72();
    return $serializer_instance_72;
  }
  function CoursePermission_init_$Init$(seen1, cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_72().uji_1);
    }
    if (0 === (seen1 & 1))
      $this.wd5_1 = new Long(0, 0);
    else
      $this.wd5_1 = cpUid;
    if (0 === (seen1 & 2))
      $this.xd5_1 = new Long(0, 0);
    else
      $this.xd5_1 = cpLastModified;
    if (0 === (seen1 & 4))
      $this.yd5_1 = new Long(0, 0);
    else
      $this.yd5_1 = cpClazzUid;
    if (0 === (seen1 & 8))
      $this.zd5_1 = 0;
    else
      $this.zd5_1 = cpToEnrolmentRole;
    if (0 === (seen1 & 16))
      $this.ad6_1 = new Long(0, 0);
    else
      $this.ad6_1 = cpToPersonUid;
    if (0 === (seen1 & 32))
      $this.bd6_1 = new Long(0, 0);
    else
      $this.bd6_1 = cpToGroupUid;
    if (0 === (seen1 & 64))
      $this.cd6_1 = new Long(0, 0);
    else
      $this.cd6_1 = cpPermissionsFlag;
    if (0 === (seen1 & 128))
      $this.dd6_1 = false;
    else
      $this.dd6_1 = cpIsDeleted;
    return $this;
  }
  function CoursePermission_init_$Create$(seen1, cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted, serializationConstructorMarker) {
    return CoursePermission_init_$Init$(seen1, cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted, serializationConstructorMarker, objectCreate(protoOf(CoursePermission)));
  }
  function CoursePermission(cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) {
    Companion_getInstance_78();
    cpUid = cpUid === VOID ? new Long(0, 0) : cpUid;
    cpLastModified = cpLastModified === VOID ? new Long(0, 0) : cpLastModified;
    cpClazzUid = cpClazzUid === VOID ? new Long(0, 0) : cpClazzUid;
    cpToEnrolmentRole = cpToEnrolmentRole === VOID ? 0 : cpToEnrolmentRole;
    cpToPersonUid = cpToPersonUid === VOID ? new Long(0, 0) : cpToPersonUid;
    cpToGroupUid = cpToGroupUid === VOID ? new Long(0, 0) : cpToGroupUid;
    cpPermissionsFlag = cpPermissionsFlag === VOID ? new Long(0, 0) : cpPermissionsFlag;
    cpIsDeleted = cpIsDeleted === VOID ? false : cpIsDeleted;
    this.wd5_1 = cpUid;
    this.xd5_1 = cpLastModified;
    this.yd5_1 = cpClazzUid;
    this.zd5_1 = cpToEnrolmentRole;
    this.ad6_1 = cpToPersonUid;
    this.bd6_1 = cpToGroupUid;
    this.cd6_1 = cpPermissionsFlag;
    this.dd6_1 = cpIsDeleted;
  }
  protoOf(CoursePermission).wji = function (cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) {
    return new CoursePermission(cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted);
  };
  protoOf(CoursePermission).xji = function (cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted, $super) {
    cpUid = cpUid === VOID ? this.wd5_1 : cpUid;
    cpLastModified = cpLastModified === VOID ? this.xd5_1 : cpLastModified;
    cpClazzUid = cpClazzUid === VOID ? this.yd5_1 : cpClazzUid;
    cpToEnrolmentRole = cpToEnrolmentRole === VOID ? this.zd5_1 : cpToEnrolmentRole;
    cpToPersonUid = cpToPersonUid === VOID ? this.ad6_1 : cpToPersonUid;
    cpToGroupUid = cpToGroupUid === VOID ? this.bd6_1 : cpToGroupUid;
    cpPermissionsFlag = cpPermissionsFlag === VOID ? this.cd6_1 : cpPermissionsFlag;
    cpIsDeleted = cpIsDeleted === VOID ? this.dd6_1 : cpIsDeleted;
    return $super === VOID ? this.wji(cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) : $super.wji.call(this, cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted);
  };
  protoOf(CoursePermission).toString = function () {
    return 'CoursePermission(cpUid=' + this.wd5_1.toString() + ', cpLastModified=' + this.xd5_1.toString() + ', cpClazzUid=' + this.yd5_1.toString() + ', cpToEnrolmentRole=' + this.zd5_1 + ', cpToPersonUid=' + this.ad6_1.toString() + ', cpToGroupUid=' + this.bd6_1.toString() + ', cpPermissionsFlag=' + this.cd6_1.toString() + ', cpIsDeleted=' + this.dd6_1 + ')';
  };
  protoOf(CoursePermission).hashCode = function () {
    var result = this.wd5_1.hashCode();
    result = imul(result, 31) + this.xd5_1.hashCode() | 0;
    result = imul(result, 31) + this.yd5_1.hashCode() | 0;
    result = imul(result, 31) + this.zd5_1 | 0;
    result = imul(result, 31) + this.ad6_1.hashCode() | 0;
    result = imul(result, 31) + this.bd6_1.hashCode() | 0;
    result = imul(result, 31) + this.cd6_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.dd6_1) | 0;
    return result;
  };
  protoOf(CoursePermission).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CoursePermission))
      return false;
    var tmp0_other_with_cast = other instanceof CoursePermission ? other : THROW_CCE();
    if (!this.wd5_1.equals(tmp0_other_with_cast.wd5_1))
      return false;
    if (!this.xd5_1.equals(tmp0_other_with_cast.xd5_1))
      return false;
    if (!this.yd5_1.equals(tmp0_other_with_cast.yd5_1))
      return false;
    if (!(this.zd5_1 === tmp0_other_with_cast.zd5_1))
      return false;
    if (!this.ad6_1.equals(tmp0_other_with_cast.ad6_1))
      return false;
    if (!this.bd6_1.equals(tmp0_other_with_cast.bd6_1))
      return false;
    if (!this.cd6_1.equals(tmp0_other_with_cast.cd6_1))
      return false;
    if (!(this.dd6_1 === tmp0_other_with_cast.dd6_1))
      return false;
    return true;
  };
  function Companion_76() {
    this.yji_1 = 125;
  }
  var Companion_instance_77;
  function Companion_getInstance_79() {
    return Companion_instance_77;
  }
  function $serializer_73() {
    $serializer_instance_73 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CoursePicture', this, 5);
    tmp0_serialDesc.g4f('coursePictureUid', true);
    tmp0_serialDesc.g4f('coursePictureLct', true);
    tmp0_serialDesc.g4f('coursePictureUri', true);
    tmp0_serialDesc.g4f('coursePictureThumbnailUri', true);
    tmp0_serialDesc.g4f('coursePictureActive', true);
    this.zji_1 = tmp0_serialDesc;
  }
  protoOf($serializer_73).d44 = function () {
    return this.zji_1;
  };
  protoOf($serializer_73).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_73).f44 = function (decoder) {
    var tmp0_desc = this.zji_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = false;
    var tmp9_input = decoder.v47(tmp0_desc);
    if (tmp9_input.k48()) {
      tmp4_local0 = tmp9_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp9_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp9_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp9_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp9_input.x47(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp9_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp9_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp9_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp9_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp9_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp9_input.x47(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp9_input.w47(tmp0_desc);
    return CoursePicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
  };
  protoOf($serializer_73).ajj = function (encoder, value) {
    var tmp0_desc = this.zji_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.t8f_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.t8f_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.u8f_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.u8f_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.v8f_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.v8f_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.w8f_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.w8f_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.x8f_1 === true)) {
      tmp1_output.b49(tmp0_desc, 4, value.x8f_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_73).e44 = function (encoder, value) {
    return this.ajj(encoder, value instanceof CoursePicture ? value : THROW_CCE());
  };
  var $serializer_instance_73;
  function $serializer_getInstance_73() {
    if ($serializer_instance_73 == null)
      new $serializer_73();
    return $serializer_instance_73;
  }
  function CoursePicture_init_$Init$(seen1, coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_73().zji_1);
    }
    if (0 === (seen1 & 1))
      $this.t8f_1 = new Long(0, 0);
    else
      $this.t8f_1 = coursePictureUid;
    if (0 === (seen1 & 2))
      $this.u8f_1 = new Long(0, 0);
    else
      $this.u8f_1 = coursePictureLct;
    if (0 === (seen1 & 4))
      $this.v8f_1 = null;
    else
      $this.v8f_1 = coursePictureUri;
    if (0 === (seen1 & 8))
      $this.w8f_1 = null;
    else
      $this.w8f_1 = coursePictureThumbnailUri;
    if (0 === (seen1 & 16))
      $this.x8f_1 = true;
    else
      $this.x8f_1 = coursePictureActive;
    return $this;
  }
  function CoursePicture_init_$Create$(seen1, coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive, serializationConstructorMarker) {
    return CoursePicture_init_$Init$(seen1, coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive, serializationConstructorMarker, objectCreate(protoOf(CoursePicture)));
  }
  function CoursePicture(coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) {
    coursePictureUid = coursePictureUid === VOID ? new Long(0, 0) : coursePictureUid;
    coursePictureLct = coursePictureLct === VOID ? new Long(0, 0) : coursePictureLct;
    coursePictureUri = coursePictureUri === VOID ? null : coursePictureUri;
    coursePictureThumbnailUri = coursePictureThumbnailUri === VOID ? null : coursePictureThumbnailUri;
    coursePictureActive = coursePictureActive === VOID ? true : coursePictureActive;
    this.t8f_1 = coursePictureUid;
    this.u8f_1 = coursePictureLct;
    this.v8f_1 = coursePictureUri;
    this.w8f_1 = coursePictureThumbnailUri;
    this.x8f_1 = coursePictureActive;
  }
  protoOf(CoursePicture).bjj = function (coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) {
    return new CoursePicture(coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive);
  };
  protoOf(CoursePicture).cjj = function (coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive, $super) {
    coursePictureUid = coursePictureUid === VOID ? this.t8f_1 : coursePictureUid;
    coursePictureLct = coursePictureLct === VOID ? this.u8f_1 : coursePictureLct;
    coursePictureUri = coursePictureUri === VOID ? this.v8f_1 : coursePictureUri;
    coursePictureThumbnailUri = coursePictureThumbnailUri === VOID ? this.w8f_1 : coursePictureThumbnailUri;
    coursePictureActive = coursePictureActive === VOID ? this.x8f_1 : coursePictureActive;
    return $super === VOID ? this.bjj(coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) : $super.bjj.call(this, coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive);
  };
  protoOf(CoursePicture).toString = function () {
    return 'CoursePicture(coursePictureUid=' + this.t8f_1.toString() + ', coursePictureLct=' + this.u8f_1.toString() + ', coursePictureUri=' + this.v8f_1 + ', coursePictureThumbnailUri=' + this.w8f_1 + ', coursePictureActive=' + this.x8f_1 + ')';
  };
  protoOf(CoursePicture).hashCode = function () {
    var result = this.t8f_1.hashCode();
    result = imul(result, 31) + this.u8f_1.hashCode() | 0;
    result = imul(result, 31) + (this.v8f_1 == null ? 0 : getStringHashCode(this.v8f_1)) | 0;
    result = imul(result, 31) + (this.w8f_1 == null ? 0 : getStringHashCode(this.w8f_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.x8f_1) | 0;
    return result;
  };
  protoOf(CoursePicture).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof CoursePicture))
      return false;
    var tmp0_other_with_cast = other instanceof CoursePicture ? other : THROW_CCE();
    if (!this.t8f_1.equals(tmp0_other_with_cast.t8f_1))
      return false;
    if (!this.u8f_1.equals(tmp0_other_with_cast.u8f_1))
      return false;
    if (!(this.v8f_1 == tmp0_other_with_cast.v8f_1))
      return false;
    if (!(this.w8f_1 == tmp0_other_with_cast.w8f_1))
      return false;
    if (!(this.x8f_1 === tmp0_other_with_cast.x8f_1))
      return false;
    return true;
  };
  function Companion_77() {
    this.djj_1 = 450;
  }
  protoOf(Companion_77).a4r = function () {
    return $serializer_getInstance_74();
  };
  var Companion_instance_78;
  function Companion_getInstance_80() {
    return Companion_instance_78;
  }
  function $serializer_74() {
    $serializer_instance_74 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseTerminology', this, 4);
    tmp0_serialDesc.g4f('ctUid', true);
    tmp0_serialDesc.g4f('ctTitle', true);
    tmp0_serialDesc.g4f('ctTerminology', true);
    tmp0_serialDesc.g4f('ctLct', true);
    this.ejj_1 = tmp0_serialDesc;
  }
  protoOf($serializer_74).d44 = function () {
    return this.ejj_1;
  };
  protoOf($serializer_74).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()];
  };
  protoOf($serializer_74).f44 = function (decoder) {
    var tmp0_desc = this.ejj_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = new Long(0, 0);
    var tmp8_input = decoder.v47(tmp0_desc);
    if (tmp8_input.k48()) {
      tmp4_local0 = tmp8_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.w47(tmp0_desc);
    return CourseTerminology_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_74).fjj = function (encoder, value) {
    var tmp0_desc = this.ejj_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.p8f_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.p8f_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.q8f_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.q8f_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.r8f_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.r8f_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.s8f_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.s8f_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_74).e44 = function (encoder, value) {
    return this.fjj(encoder, value instanceof CourseTerminology ? value : THROW_CCE());
  };
  var $serializer_instance_74;
  function $serializer_getInstance_74() {
    if ($serializer_instance_74 == null)
      new $serializer_74();
    return $serializer_instance_74;
  }
  function CourseTerminology_init_$Init$(seen1, ctUid, ctTitle, ctTerminology, ctLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_74().ejj_1);
    }
    if (0 === (seen1 & 1))
      $this.p8f_1 = new Long(0, 0);
    else
      $this.p8f_1 = ctUid;
    if (0 === (seen1 & 2))
      $this.q8f_1 = null;
    else
      $this.q8f_1 = ctTitle;
    if (0 === (seen1 & 4))
      $this.r8f_1 = null;
    else
      $this.r8f_1 = ctTerminology;
    if (0 === (seen1 & 8))
      $this.s8f_1 = new Long(0, 0);
    else
      $this.s8f_1 = ctLct;
    return $this;
  }
  function CourseTerminology_init_$Create$(seen1, ctUid, ctTitle, ctTerminology, ctLct, serializationConstructorMarker) {
    return CourseTerminology_init_$Init$(seen1, ctUid, ctTitle, ctTerminology, ctLct, serializationConstructorMarker, objectCreate(protoOf(CourseTerminology)));
  }
  function CourseTerminology() {
    this.p8f_1 = new Long(0, 0);
    this.q8f_1 = null;
    this.r8f_1 = null;
    this.s8f_1 = new Long(0, 0);
  }
  function Companion_78() {
    this.gjj_1 = 999;
    this.hjj_1 = 1;
    this.ijj_1 = 2;
    this.jjj_1 = 3;
  }
  var Companion_instance_79;
  function Companion_getInstance_81() {
    return Companion_instance_79;
  }
  function $serializer_75() {
    $serializer_instance_75 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.DeletedItem', this, 10);
    tmp0_serialDesc.g4f('delItemUid', true);
    tmp0_serialDesc.g4f('delItemName', true);
    tmp0_serialDesc.g4f('delItemIconUri', true);
    tmp0_serialDesc.g4f('delItemLastModTime', true);
    tmp0_serialDesc.g4f('delItemTimeDeleted', true);
    tmp0_serialDesc.g4f('delItemEntityTable', true);
    tmp0_serialDesc.g4f('delItemEntityUid', true);
    tmp0_serialDesc.g4f('delItemDeletedByPersonUid', true);
    tmp0_serialDesc.g4f('delItemStatus', true);
    tmp0_serialDesc.g4f('delItemIsFolder', true);
    this.kjj_1 = tmp0_serialDesc;
  }
  protoOf($serializer_75).d44 = function () {
    return this.kjj_1;
  };
  protoOf($serializer_75).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_75).f44 = function (decoder) {
    var tmp0_desc = this.kjj_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = 0;
    var tmp10_local6 = new Long(0, 0);
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = 0;
    var tmp13_local9 = false;
    var tmp14_input = decoder.v47(tmp0_desc);
    if (tmp14_input.k48()) {
      tmp4_local0 = tmp14_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp14_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp14_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp14_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp14_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp14_input.a48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp14_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp14_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp14_input.a48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp14_input.x47(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp14_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp14_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp14_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp14_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp14_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp14_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp14_input.a48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp14_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp14_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp14_input.a48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp14_input.x47(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp14_input.w47(tmp0_desc);
    return DeletedItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null);
  };
  protoOf($serializer_75).ljj = function (encoder, value) {
    var tmp0_desc = this.kjj_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.ce1_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.ce1_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.de1_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.de1_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.ee1_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.ee1_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.fe1_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.fe1_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.ge1_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.ge1_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.he1_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 5, value.he1_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.ie1_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.ie1_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.je1_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.je1_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.ke1_1 === 1)) {
      tmp1_output.e49(tmp0_desc, 8, value.ke1_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.le1_1 === false)) {
      tmp1_output.b49(tmp0_desc, 9, value.le1_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_75).e44 = function (encoder, value) {
    return this.ljj(encoder, value instanceof DeletedItem ? value : THROW_CCE());
  };
  var $serializer_instance_75;
  function $serializer_getInstance_75() {
    if ($serializer_instance_75 == null)
      new $serializer_75();
    return $serializer_instance_75;
  }
  function DeletedItem_init_$Init$(seen1, delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_75().kjj_1);
    }
    if (0 === (seen1 & 1))
      $this.ce1_1 = new Long(0, 0);
    else
      $this.ce1_1 = delItemUid;
    if (0 === (seen1 & 2))
      $this.de1_1 = null;
    else
      $this.de1_1 = delItemName;
    if (0 === (seen1 & 4))
      $this.ee1_1 = null;
    else
      $this.ee1_1 = delItemIconUri;
    if (0 === (seen1 & 8))
      $this.fe1_1 = new Long(0, 0);
    else
      $this.fe1_1 = delItemLastModTime;
    if (0 === (seen1 & 16))
      $this.ge1_1 = new Long(0, 0);
    else
      $this.ge1_1 = delItemTimeDeleted;
    if (0 === (seen1 & 32))
      $this.he1_1 = 0;
    else
      $this.he1_1 = delItemEntityTable;
    if (0 === (seen1 & 64))
      $this.ie1_1 = new Long(0, 0);
    else
      $this.ie1_1 = delItemEntityUid;
    if (0 === (seen1 & 128))
      $this.je1_1 = new Long(0, 0);
    else
      $this.je1_1 = delItemDeletedByPersonUid;
    if (0 === (seen1 & 256))
      $this.ke1_1 = 1;
    else
      $this.ke1_1 = delItemStatus;
    if (0 === (seen1 & 512))
      $this.le1_1 = false;
    else
      $this.le1_1 = delItemIsFolder;
    return $this;
  }
  function DeletedItem_init_$Create$(seen1, delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder, serializationConstructorMarker) {
    return DeletedItem_init_$Init$(seen1, delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder, serializationConstructorMarker, objectCreate(protoOf(DeletedItem)));
  }
  function DeletedItem(delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder) {
    delItemUid = delItemUid === VOID ? new Long(0, 0) : delItemUid;
    delItemName = delItemName === VOID ? null : delItemName;
    delItemIconUri = delItemIconUri === VOID ? null : delItemIconUri;
    delItemLastModTime = delItemLastModTime === VOID ? new Long(0, 0) : delItemLastModTime;
    delItemTimeDeleted = delItemTimeDeleted === VOID ? new Long(0, 0) : delItemTimeDeleted;
    delItemEntityTable = delItemEntityTable === VOID ? 0 : delItemEntityTable;
    delItemEntityUid = delItemEntityUid === VOID ? new Long(0, 0) : delItemEntityUid;
    delItemDeletedByPersonUid = delItemDeletedByPersonUid === VOID ? new Long(0, 0) : delItemDeletedByPersonUid;
    delItemStatus = delItemStatus === VOID ? 1 : delItemStatus;
    delItemIsFolder = delItemIsFolder === VOID ? false : delItemIsFolder;
    this.ce1_1 = delItemUid;
    this.de1_1 = delItemName;
    this.ee1_1 = delItemIconUri;
    this.fe1_1 = delItemLastModTime;
    this.ge1_1 = delItemTimeDeleted;
    this.he1_1 = delItemEntityTable;
    this.ie1_1 = delItemEntityUid;
    this.je1_1 = delItemDeletedByPersonUid;
    this.ke1_1 = delItemStatus;
    this.le1_1 = delItemIsFolder;
  }
  protoOf(DeletedItem).toString = function () {
    return 'DeletedItem(delItemUid=' + this.ce1_1.toString() + ', delItemName=' + this.de1_1 + ', delItemIconUri=' + this.ee1_1 + ', delItemLastModTime=' + this.fe1_1.toString() + ', delItemTimeDeleted=' + this.ge1_1.toString() + ', delItemEntityTable=' + this.he1_1 + ', delItemEntityUid=' + this.ie1_1.toString() + ', delItemDeletedByPersonUid=' + this.je1_1.toString() + ', delItemStatus=' + this.ke1_1 + ', delItemIsFolder=' + this.le1_1 + ')';
  };
  protoOf(DeletedItem).hashCode = function () {
    var result = this.ce1_1.hashCode();
    result = imul(result, 31) + (this.de1_1 == null ? 0 : getStringHashCode(this.de1_1)) | 0;
    result = imul(result, 31) + (this.ee1_1 == null ? 0 : getStringHashCode(this.ee1_1)) | 0;
    result = imul(result, 31) + this.fe1_1.hashCode() | 0;
    result = imul(result, 31) + this.ge1_1.hashCode() | 0;
    result = imul(result, 31) + this.he1_1 | 0;
    result = imul(result, 31) + this.ie1_1.hashCode() | 0;
    result = imul(result, 31) + this.je1_1.hashCode() | 0;
    result = imul(result, 31) + this.ke1_1 | 0;
    result = imul(result, 31) + getBooleanHashCode(this.le1_1) | 0;
    return result;
  };
  protoOf(DeletedItem).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof DeletedItem))
      return false;
    var tmp0_other_with_cast = other instanceof DeletedItem ? other : THROW_CCE();
    if (!this.ce1_1.equals(tmp0_other_with_cast.ce1_1))
      return false;
    if (!(this.de1_1 == tmp0_other_with_cast.de1_1))
      return false;
    if (!(this.ee1_1 == tmp0_other_with_cast.ee1_1))
      return false;
    if (!this.fe1_1.equals(tmp0_other_with_cast.fe1_1))
      return false;
    if (!this.ge1_1.equals(tmp0_other_with_cast.ge1_1))
      return false;
    if (!(this.he1_1 === tmp0_other_with_cast.he1_1))
      return false;
    if (!this.ie1_1.equals(tmp0_other_with_cast.ie1_1))
      return false;
    if (!this.je1_1.equals(tmp0_other_with_cast.je1_1))
      return false;
    if (!(this.ke1_1 === tmp0_other_with_cast.ke1_1))
      return false;
    if (!(this.le1_1 === tmp0_other_with_cast.le1_1))
      return false;
    return true;
  };
  function Companion_79() {
    this.mjj_1 = 132;
  }
  protoOf(Companion_79).a4r = function () {
    return $serializer_getInstance_76();
  };
  var Companion_instance_80;
  function Companion_getInstance_82() {
    return Companion_instance_80;
  }
  function $serializer_76() {
    $serializer_instance_76 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.DiscussionPost', this, 12);
    tmp0_serialDesc.g4f('discussionPostUid', true);
    tmp0_serialDesc.g4f('discussionPostReplyToPostUid', true);
    tmp0_serialDesc.g4f('discussionPostTitle', true);
    tmp0_serialDesc.g4f('discussionPostMessage', true);
    tmp0_serialDesc.g4f('discussionPostStartDate', true);
    tmp0_serialDesc.g4f('discussionPostCourseBlockUid', true);
    tmp0_serialDesc.g4f('dpDeleted', true);
    tmp0_serialDesc.g4f('discussionPostStartedPersonUid', true);
    tmp0_serialDesc.g4f('discussionPostClazzUid', true);
    tmp0_serialDesc.g4f('discussionPostLct', true);
    tmp0_serialDesc.g4f('discussionPostVisible', true);
    tmp0_serialDesc.g4f('discussionPostArchive', true);
    this.njj_1 = tmp0_serialDesc;
  }
  protoOf($serializer_76).d44 = function () {
    return this.njj_1;
  };
  protoOf($serializer_76).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_76).f44 = function (decoder) {
    var tmp0_desc = this.njj_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = false;
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = new Long(0, 0);
    var tmp14_local10 = false;
    var tmp15_local11 = false;
    var tmp16_input = decoder.v47(tmp0_desc);
    if (tmp16_input.k48()) {
      tmp4_local0 = tmp16_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp16_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp16_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp16_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp16_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp16_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp16_input.x47(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp16_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp16_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp16_input.b48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp16_input.x47(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp16_input.x47(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp16_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp16_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp16_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp16_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp16_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp16_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp16_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp16_input.x47(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp16_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp16_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp16_input.b48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp16_input.x47(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp16_input.x47(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp16_input.w47(tmp0_desc);
    return DiscussionPost_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null);
  };
  protoOf($serializer_76).ojj = function (encoder, value) {
    var tmp0_desc = this.njj_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.ke7_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.ke7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.le7_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.le7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.me7_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.me7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.ne7_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.ne7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.oe7_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.oe7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.pe7_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.pe7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.qe7_1 === false)) {
      tmp1_output.b49(tmp0_desc, 6, value.qe7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.re7_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.re7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.se7_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.se7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !value.te7_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 9, value.te7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.ue7_1 === false)) {
      tmp1_output.b49(tmp0_desc, 10, value.ue7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !(value.ve7_1 === false)) {
      tmp1_output.b49(tmp0_desc, 11, value.ve7_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_76).e44 = function (encoder, value) {
    return this.ojj(encoder, value instanceof DiscussionPost ? value : THROW_CCE());
  };
  var $serializer_instance_76;
  function $serializer_getInstance_76() {
    if ($serializer_instance_76 == null)
      new $serializer_76();
    return $serializer_instance_76;
  }
  function DiscussionPost_init_$Init$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_76().njj_1);
    }
    if (0 === (seen1 & 1))
      $this.ke7_1 = new Long(0, 0);
    else
      $this.ke7_1 = discussionPostUid;
    if (0 === (seen1 & 2))
      $this.le7_1 = new Long(0, 0);
    else
      $this.le7_1 = discussionPostReplyToPostUid;
    if (0 === (seen1 & 4))
      $this.me7_1 = null;
    else
      $this.me7_1 = discussionPostTitle;
    if (0 === (seen1 & 8))
      $this.ne7_1 = null;
    else
      $this.ne7_1 = discussionPostMessage;
    if (0 === (seen1 & 16))
      $this.oe7_1 = new Long(0, 0);
    else
      $this.oe7_1 = discussionPostStartDate;
    if (0 === (seen1 & 32))
      $this.pe7_1 = new Long(0, 0);
    else
      $this.pe7_1 = discussionPostCourseBlockUid;
    if (0 === (seen1 & 64))
      $this.qe7_1 = false;
    else
      $this.qe7_1 = dpDeleted;
    if (0 === (seen1 & 128))
      $this.re7_1 = new Long(0, 0);
    else
      $this.re7_1 = discussionPostStartedPersonUid;
    if (0 === (seen1 & 256))
      $this.se7_1 = new Long(0, 0);
    else
      $this.se7_1 = discussionPostClazzUid;
    if (0 === (seen1 & 512))
      $this.te7_1 = new Long(0, 0);
    else
      $this.te7_1 = discussionPostLct;
    if (0 === (seen1 & 1024))
      $this.ue7_1 = false;
    else
      $this.ue7_1 = discussionPostVisible;
    if (0 === (seen1 & 2048))
      $this.ve7_1 = false;
    else
      $this.ve7_1 = discussionPostArchive;
    return $this;
  }
  function DiscussionPost_init_$Create$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, serializationConstructorMarker) {
    return DiscussionPost_init_$Init$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, serializationConstructorMarker, objectCreate(protoOf(DiscussionPost)));
  }
  function DiscussionPost() {
    this.ke7_1 = new Long(0, 0);
    this.le7_1 = new Long(0, 0);
    this.me7_1 = null;
    this.ne7_1 = null;
    this.oe7_1 = new Long(0, 0);
    this.pe7_1 = new Long(0, 0);
    this.qe7_1 = false;
    this.re7_1 = new Long(0, 0);
    this.se7_1 = new Long(0, 0);
    this.te7_1 = new Long(0, 0);
    this.ue7_1 = false;
    this.ve7_1 = false;
  }
  function Companion_80() {
  }
  var Companion_instance_81;
  function Companion_getInstance_83() {
    return Companion_instance_81;
  }
  function $serializer_77() {
    $serializer_instance_77 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.DiscussionPostWithDetails', this, 18);
    tmp0_serialDesc.g4f('discussionPostUid', true);
    tmp0_serialDesc.g4f('discussionPostReplyToPostUid', true);
    tmp0_serialDesc.g4f('discussionPostTitle', true);
    tmp0_serialDesc.g4f('discussionPostMessage', true);
    tmp0_serialDesc.g4f('discussionPostStartDate', true);
    tmp0_serialDesc.g4f('discussionPostCourseBlockUid', true);
    tmp0_serialDesc.g4f('dpDeleted', true);
    tmp0_serialDesc.g4f('discussionPostStartedPersonUid', true);
    tmp0_serialDesc.g4f('discussionPostClazzUid', true);
    tmp0_serialDesc.g4f('discussionPostLct', true);
    tmp0_serialDesc.g4f('discussionPostVisible', true);
    tmp0_serialDesc.g4f('discussionPostArchive', true);
    tmp0_serialDesc.g4f('authorPersonFirstNames', true);
    tmp0_serialDesc.g4f('authorPersonLastName', true);
    tmp0_serialDesc.g4f('authorPictureUri', true);
    tmp0_serialDesc.g4f('postLatestMessage', true);
    tmp0_serialDesc.g4f('postRepliesCount', true);
    tmp0_serialDesc.g4f('postLatestMessageTimestamp', true);
    this.pjj_1 = tmp0_serialDesc;
  }
  protoOf($serializer_77).d44 = function () {
    return this.pjj_1;
  };
  protoOf($serializer_77).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_77).f44 = function (decoder) {
    var tmp0_desc = this.pjj_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = false;
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = new Long(0, 0);
    var tmp14_local10 = false;
    var tmp15_local11 = false;
    var tmp16_local12 = null;
    var tmp17_local13 = null;
    var tmp18_local14 = null;
    var tmp19_local15 = null;
    var tmp20_local16 = 0;
    var tmp21_local17 = new Long(0, 0);
    var tmp22_input = decoder.v47(tmp0_desc);
    if (tmp22_input.k48()) {
      tmp4_local0 = tmp22_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp22_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp22_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp22_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp22_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp22_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp22_input.x47(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp22_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp22_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp22_input.b48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp22_input.x47(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp22_input.x47(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp22_input.j48(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp22_input.j48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp22_input.j48(tmp0_desc, 14, StringSerializer_getInstance(), tmp18_local14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp22_input.j48(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp22_input.a48(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp22_input.b48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp22_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp22_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp22_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp22_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp22_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp22_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp22_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp22_input.x47(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp22_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp22_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp22_input.b48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp22_input.x47(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp22_input.x47(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp22_input.j48(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp22_input.j48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp22_input.j48(tmp0_desc, 14, StringSerializer_getInstance(), tmp18_local14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp22_input.j48(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp22_input.a48(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp22_input.b48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp22_input.w47(tmp0_desc);
    return DiscussionPostWithDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, null);
  };
  protoOf($serializer_77).qjj = function (encoder, value) {
    var tmp0_desc = this.pjj_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.ke7_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.ke7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.le7_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.le7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.me7_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.me7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.ne7_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.ne7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.oe7_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.oe7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.pe7_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.pe7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.qe7_1 === false)) {
      tmp1_output.b49(tmp0_desc, 6, value.qe7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.re7_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.re7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.se7_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.se7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !value.te7_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 9, value.te7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.ue7_1 === false)) {
      tmp1_output.b49(tmp0_desc, 10, value.ue7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !(value.ve7_1 === false)) {
      tmp1_output.b49(tmp0_desc, 11, value.ve7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !(value.ve8_1 == null)) {
      tmp1_output.n49(tmp0_desc, 12, StringSerializer_getInstance(), value.ve8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !(value.we8_1 == null)) {
      tmp1_output.n49(tmp0_desc, 13, StringSerializer_getInstance(), value.we8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 14) ? true : !(value.xe8_1 == null)) {
      tmp1_output.n49(tmp0_desc, 14, StringSerializer_getInstance(), value.xe8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 15) ? true : !(value.ye8_1 == null)) {
      tmp1_output.n49(tmp0_desc, 15, StringSerializer_getInstance(), value.ye8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 16) ? true : !(value.ze8_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 16, value.ze8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 17) ? true : !value.ae9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 17, value.ae9_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_77).e44 = function (encoder, value) {
    return this.qjj(encoder, value instanceof DiscussionPostWithDetails ? value : THROW_CCE());
  };
  var $serializer_instance_77;
  function $serializer_getInstance_77() {
    if ($serializer_instance_77 == null)
      new $serializer_77();
    return $serializer_instance_77;
  }
  function DiscussionPostWithDetails_init_$Init$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, authorPersonFirstNames, authorPersonLastName, authorPictureUri, postLatestMessage, postRepliesCount, postLatestMessageTimestamp, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_77().pjj_1);
    }
    DiscussionPost_init_$Init$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, serializationConstructorMarker, $this);
    if (0 === (seen1 & 4096))
      $this.ve8_1 = null;
    else
      $this.ve8_1 = authorPersonFirstNames;
    if (0 === (seen1 & 8192))
      $this.we8_1 = null;
    else
      $this.we8_1 = authorPersonLastName;
    if (0 === (seen1 & 16384))
      $this.xe8_1 = null;
    else
      $this.xe8_1 = authorPictureUri;
    if (0 === (seen1 & 32768))
      $this.ye8_1 = null;
    else
      $this.ye8_1 = postLatestMessage;
    if (0 === (seen1 & 65536))
      $this.ze8_1 = 0;
    else
      $this.ze8_1 = postRepliesCount;
    if (0 === (seen1 & 131072))
      $this.ae9_1 = new Long(0, 0);
    else
      $this.ae9_1 = postLatestMessageTimestamp;
    return $this;
  }
  function DiscussionPostWithDetails_init_$Create$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, authorPersonFirstNames, authorPersonLastName, authorPictureUri, postLatestMessage, postRepliesCount, postLatestMessageTimestamp, serializationConstructorMarker) {
    return DiscussionPostWithDetails_init_$Init$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, authorPersonFirstNames, authorPersonLastName, authorPictureUri, postLatestMessage, postRepliesCount, postLatestMessageTimestamp, serializationConstructorMarker, objectCreate(protoOf(DiscussionPostWithDetails)));
  }
  function DiscussionPostWithDetails() {
    DiscussionPost.call(this);
    this.ve8_1 = null;
    this.we8_1 = null;
    this.xe8_1 = null;
    this.ye8_1 = null;
    this.ze8_1 = 0;
    this.ae9_1 = new Long(0, 0);
  }
  function Companion_81() {
    this.rjj_1 = 1;
    this.sjj_1 = 2;
    this.tjj_1 = 3;
    this.ujj_1 = 4;
    this.vjj_1 = 10070;
  }
  var Companion_instance_82;
  function Companion_getInstance_84() {
    return Companion_instance_82;
  }
  function $serializer_78() {
    $serializer_instance_78 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.EnrolmentRequest', this, 14);
    tmp0_serialDesc.g4f('erUid', true);
    tmp0_serialDesc.g4f('erClazzUid', true);
    tmp0_serialDesc.g4f('erClazzName', true);
    tmp0_serialDesc.g4f('erPersonUid', true);
    tmp0_serialDesc.g4f('erPersonFullname', true);
    tmp0_serialDesc.g4f('erPersonPictureUri', true);
    tmp0_serialDesc.g4f('erPersonUsername', true);
    tmp0_serialDesc.g4f('erRole', true);
    tmp0_serialDesc.g4f('erRequestTime', true);
    tmp0_serialDesc.g4f('erStatus', true);
    tmp0_serialDesc.g4f('erStatusSetByPersonUid', true);
    tmp0_serialDesc.g4f('erDeleted', true);
    tmp0_serialDesc.g4f('erStatusSetAuth', true);
    tmp0_serialDesc.g4f('erLastModified', true);
    this.wjj_1 = tmp0_serialDesc;
  }
  protoOf($serializer_78).d44 = function () {
    return this.wjj_1;
  };
  protoOf($serializer_78).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()];
  };
  protoOf($serializer_78).f44 = function (decoder) {
    var tmp0_desc = this.wjj_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = null;
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = null;
    var tmp9_local5 = null;
    var tmp10_local6 = null;
    var tmp11_local7 = 0;
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = 0;
    var tmp14_local10 = new Long(0, 0);
    var tmp15_local11 = false;
    var tmp16_local12 = null;
    var tmp17_local13 = new Long(0, 0);
    var tmp18_input = decoder.v47(tmp0_desc);
    if (tmp18_input.k48()) {
      tmp4_local0 = tmp18_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp18_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp18_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp18_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp18_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp18_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp18_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp18_input.a48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp18_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp18_input.a48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp18_input.b48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp18_input.x47(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp18_input.j48(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp18_input.b48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp18_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp18_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp18_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp18_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp18_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp18_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp18_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp18_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp18_input.a48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp18_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp18_input.a48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp18_input.b48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp18_input.x47(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp18_input.j48(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp18_input.b48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp18_input.w47(tmp0_desc);
    return EnrolmentRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null);
  };
  protoOf($serializer_78).xjj = function (encoder, value) {
    var tmp0_desc = this.wjj_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.hej_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.hej_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.iej_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.iej_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.jej_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.jej_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.kej_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.kej_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.lej_1 == null)) {
      tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.lej_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.mej_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.mej_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.nej_1 == null)) {
      tmp1_output.n49(tmp0_desc, 6, StringSerializer_getInstance(), value.nej_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.oej_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 7, value.oej_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.pej_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.pej_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.qej_1 === 1)) {
      tmp1_output.e49(tmp0_desc, 9, value.qej_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !value.rej_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 10, value.rej_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !(value.sej_1 === false)) {
      tmp1_output.b49(tmp0_desc, 11, value.sej_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !(value.tej_1 == null)) {
      tmp1_output.n49(tmp0_desc, 12, StringSerializer_getInstance(), value.tej_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !value.uej_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 13, value.uej_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_78).e44 = function (encoder, value) {
    return this.xjj(encoder, value instanceof EnrolmentRequest ? value : THROW_CCE());
  };
  var $serializer_instance_78;
  function $serializer_getInstance_78() {
    if ($serializer_instance_78 == null)
      new $serializer_78();
    return $serializer_instance_78;
  }
  function EnrolmentRequest_init_$Init$(seen1, erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_78().wjj_1);
    }
    if (0 === (seen1 & 1))
      $this.hej_1 = new Long(0, 0);
    else
      $this.hej_1 = erUid;
    if (0 === (seen1 & 2))
      $this.iej_1 = new Long(0, 0);
    else
      $this.iej_1 = erClazzUid;
    if (0 === (seen1 & 4))
      $this.jej_1 = null;
    else
      $this.jej_1 = erClazzName;
    if (0 === (seen1 & 8))
      $this.kej_1 = new Long(0, 0);
    else
      $this.kej_1 = erPersonUid;
    if (0 === (seen1 & 16))
      $this.lej_1 = null;
    else
      $this.lej_1 = erPersonFullname;
    if (0 === (seen1 & 32))
      $this.mej_1 = null;
    else
      $this.mej_1 = erPersonPictureUri;
    if (0 === (seen1 & 64))
      $this.nej_1 = null;
    else
      $this.nej_1 = erPersonUsername;
    if (0 === (seen1 & 128))
      $this.oej_1 = 0;
    else
      $this.oej_1 = erRole;
    if (0 === (seen1 & 256))
      $this.pej_1 = new Long(0, 0);
    else
      $this.pej_1 = erRequestTime;
    if (0 === (seen1 & 512))
      $this.qej_1 = 1;
    else
      $this.qej_1 = erStatus;
    if (0 === (seen1 & 1024))
      $this.rej_1 = new Long(0, 0);
    else
      $this.rej_1 = erStatusSetByPersonUid;
    if (0 === (seen1 & 2048))
      $this.sej_1 = false;
    else
      $this.sej_1 = erDeleted;
    if (0 === (seen1 & 4096))
      $this.tej_1 = null;
    else
      $this.tej_1 = erStatusSetAuth;
    if (0 === (seen1 & 8192))
      $this.uej_1 = new Long(0, 0);
    else
      $this.uej_1 = erLastModified;
    return $this;
  }
  function EnrolmentRequest_init_$Create$(seen1, erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified, serializationConstructorMarker) {
    return EnrolmentRequest_init_$Init$(seen1, erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified, serializationConstructorMarker, objectCreate(protoOf(EnrolmentRequest)));
  }
  function EnrolmentRequest(erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified) {
    erUid = erUid === VOID ? new Long(0, 0) : erUid;
    erClazzUid = erClazzUid === VOID ? new Long(0, 0) : erClazzUid;
    erClazzName = erClazzName === VOID ? null : erClazzName;
    erPersonUid = erPersonUid === VOID ? new Long(0, 0) : erPersonUid;
    erPersonFullname = erPersonFullname === VOID ? null : erPersonFullname;
    erPersonPictureUri = erPersonPictureUri === VOID ? null : erPersonPictureUri;
    erPersonUsername = erPersonUsername === VOID ? null : erPersonUsername;
    erRole = erRole === VOID ? 0 : erRole;
    erRequestTime = erRequestTime === VOID ? new Long(0, 0) : erRequestTime;
    erStatus = erStatus === VOID ? 1 : erStatus;
    erStatusSetByPersonUid = erStatusSetByPersonUid === VOID ? new Long(0, 0) : erStatusSetByPersonUid;
    erDeleted = erDeleted === VOID ? false : erDeleted;
    erStatusSetAuth = erStatusSetAuth === VOID ? null : erStatusSetAuth;
    erLastModified = erLastModified === VOID ? new Long(0, 0) : erLastModified;
    this.hej_1 = erUid;
    this.iej_1 = erClazzUid;
    this.jej_1 = erClazzName;
    this.kej_1 = erPersonUid;
    this.lej_1 = erPersonFullname;
    this.mej_1 = erPersonPictureUri;
    this.nej_1 = erPersonUsername;
    this.oej_1 = erRole;
    this.pej_1 = erRequestTime;
    this.qej_1 = erStatus;
    this.rej_1 = erStatusSetByPersonUid;
    this.sej_1 = erDeleted;
    this.tej_1 = erStatusSetAuth;
    this.uej_1 = erLastModified;
  }
  protoOf(EnrolmentRequest).toString = function () {
    return 'EnrolmentRequest(erUid=' + this.hej_1.toString() + ', erClazzUid=' + this.iej_1.toString() + ', erClazzName=' + this.jej_1 + ', erPersonUid=' + this.kej_1.toString() + ', erPersonFullname=' + this.lej_1 + ', erPersonPictureUri=' + this.mej_1 + ', erPersonUsername=' + this.nej_1 + ', erRole=' + this.oej_1 + ', erRequestTime=' + this.pej_1.toString() + ', erStatus=' + this.qej_1 + ', erStatusSetByPersonUid=' + this.rej_1.toString() + ', erDeleted=' + this.sej_1 + ', erStatusSetAuth=' + this.tej_1 + ', erLastModified=' + this.uej_1.toString() + ')';
  };
  protoOf(EnrolmentRequest).hashCode = function () {
    var result = this.hej_1.hashCode();
    result = imul(result, 31) + this.iej_1.hashCode() | 0;
    result = imul(result, 31) + (this.jej_1 == null ? 0 : getStringHashCode(this.jej_1)) | 0;
    result = imul(result, 31) + this.kej_1.hashCode() | 0;
    result = imul(result, 31) + (this.lej_1 == null ? 0 : getStringHashCode(this.lej_1)) | 0;
    result = imul(result, 31) + (this.mej_1 == null ? 0 : getStringHashCode(this.mej_1)) | 0;
    result = imul(result, 31) + (this.nej_1 == null ? 0 : getStringHashCode(this.nej_1)) | 0;
    result = imul(result, 31) + this.oej_1 | 0;
    result = imul(result, 31) + this.pej_1.hashCode() | 0;
    result = imul(result, 31) + this.qej_1 | 0;
    result = imul(result, 31) + this.rej_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.sej_1) | 0;
    result = imul(result, 31) + (this.tej_1 == null ? 0 : getStringHashCode(this.tej_1)) | 0;
    result = imul(result, 31) + this.uej_1.hashCode() | 0;
    return result;
  };
  protoOf(EnrolmentRequest).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof EnrolmentRequest))
      return false;
    var tmp0_other_with_cast = other instanceof EnrolmentRequest ? other : THROW_CCE();
    if (!this.hej_1.equals(tmp0_other_with_cast.hej_1))
      return false;
    if (!this.iej_1.equals(tmp0_other_with_cast.iej_1))
      return false;
    if (!(this.jej_1 == tmp0_other_with_cast.jej_1))
      return false;
    if (!this.kej_1.equals(tmp0_other_with_cast.kej_1))
      return false;
    if (!(this.lej_1 == tmp0_other_with_cast.lej_1))
      return false;
    if (!(this.mej_1 == tmp0_other_with_cast.mej_1))
      return false;
    if (!(this.nej_1 == tmp0_other_with_cast.nej_1))
      return false;
    if (!(this.oej_1 === tmp0_other_with_cast.oej_1))
      return false;
    if (!this.pej_1.equals(tmp0_other_with_cast.pej_1))
      return false;
    if (!(this.qej_1 === tmp0_other_with_cast.qej_1))
      return false;
    if (!this.rej_1.equals(tmp0_other_with_cast.rej_1))
      return false;
    if (!(this.sej_1 === tmp0_other_with_cast.sej_1))
      return false;
    if (!(this.tej_1 == tmp0_other_with_cast.tej_1))
      return false;
    if (!this.uej_1.equals(tmp0_other_with_cast.uej_1))
      return false;
    return true;
  };
  function ErrorReport() {
    this.zer_1 = new Long(0, 0);
    this.aes_1 = new Long(0, 0);
    this.bes_1 = new Long(0, 0);
    this.ces_1 = 0;
    this.des_1 = new Long(0, 0);
    this.ees_1 = 0;
    this.fes_1 = new Long(0, 0);
    this.ges_1 = null;
    this.hes_1 = null;
    this.ies_1 = 0;
    this.jes_1 = 0;
    this.kes_1 = null;
    this.les_1 = null;
    this.mes_1 = null;
    this.nes_1 = null;
  }
  function Companion_82() {
  }
  var Companion_instance_83;
  function Companion_getInstance_85() {
    return Companion_instance_83;
  }
  function $serializer_79() {
    $serializer_instance_79 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ExternalAppPermission', this, 7);
    tmp0_serialDesc.g4f('eapUid', true);
    tmp0_serialDesc.g4f('eapPersonUid', true);
    tmp0_serialDesc.g4f('eapPackageId', true);
    tmp0_serialDesc.g4f('eapStartTime', true);
    tmp0_serialDesc.g4f('eapExpireTime', true);
    tmp0_serialDesc.g4f('eapAuthToken', true);
    tmp0_serialDesc.g4f('eapAndroidAccountName', true);
    this.yjj_1 = tmp0_serialDesc;
  }
  protoOf($serializer_79).d44 = function () {
    return this.yjj_1;
  };
  protoOf($serializer_79).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_79).f44 = function (decoder) {
    var tmp0_desc = this.yjj_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = 0;
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = null;
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = null;
    var tmp10_local6 = null;
    var tmp11_input = decoder.v47(tmp0_desc);
    if (tmp11_input.k48()) {
      tmp4_local0 = tmp11_input.a48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp11_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp11_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp11_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp11_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp11_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp11_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp11_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp11_input.a48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp11_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp11_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp11_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp11_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp11_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp11_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp11_input.w47(tmp0_desc);
    return ExternalAppPermission_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null);
  };
  protoOf($serializer_79).zjj = function (encoder, value) {
    var tmp0_desc = this.yjj_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.zes_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 0, value.zes_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.aet_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.aet_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.bet_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.bet_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.cet_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.cet_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.det_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.det_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.eet_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.eet_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.fet_1 == null)) {
      tmp1_output.n49(tmp0_desc, 6, StringSerializer_getInstance(), value.fet_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_79).e44 = function (encoder, value) {
    return this.zjj(encoder, value instanceof ExternalAppPermission ? value : THROW_CCE());
  };
  var $serializer_instance_79;
  function $serializer_getInstance_79() {
    if ($serializer_instance_79 == null)
      new $serializer_79();
    return $serializer_instance_79;
  }
  function ExternalAppPermission_init_$Init$(seen1, eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_79().yjj_1);
    }
    if (0 === (seen1 & 1))
      $this.zes_1 = 0;
    else
      $this.zes_1 = eapUid;
    if (0 === (seen1 & 2))
      $this.aet_1 = new Long(0, 0);
    else
      $this.aet_1 = eapPersonUid;
    if (0 === (seen1 & 4))
      $this.bet_1 = null;
    else
      $this.bet_1 = eapPackageId;
    if (0 === (seen1 & 8))
      $this.cet_1 = new Long(0, 0);
    else
      $this.cet_1 = eapStartTime;
    if (0 === (seen1 & 16))
      $this.det_1 = new Long(0, 0);
    else
      $this.det_1 = eapExpireTime;
    if (0 === (seen1 & 32))
      $this.eet_1 = null;
    else
      $this.eet_1 = eapAuthToken;
    if (0 === (seen1 & 64))
      $this.fet_1 = null;
    else
      $this.fet_1 = eapAndroidAccountName;
    return $this;
  }
  function ExternalAppPermission_init_$Create$(seen1, eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName, serializationConstructorMarker) {
    return ExternalAppPermission_init_$Init$(seen1, eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName, serializationConstructorMarker, objectCreate(protoOf(ExternalAppPermission)));
  }
  function ExternalAppPermission(eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName) {
    eapUid = eapUid === VOID ? 0 : eapUid;
    eapPersonUid = eapPersonUid === VOID ? new Long(0, 0) : eapPersonUid;
    eapPackageId = eapPackageId === VOID ? null : eapPackageId;
    eapStartTime = eapStartTime === VOID ? new Long(0, 0) : eapStartTime;
    eapExpireTime = eapExpireTime === VOID ? new Long(0, 0) : eapExpireTime;
    eapAuthToken = eapAuthToken === VOID ? null : eapAuthToken;
    eapAndroidAccountName = eapAndroidAccountName === VOID ? null : eapAndroidAccountName;
    this.zes_1 = eapUid;
    this.aet_1 = eapPersonUid;
    this.bet_1 = eapPackageId;
    this.cet_1 = eapStartTime;
    this.det_1 = eapExpireTime;
    this.eet_1 = eapAuthToken;
    this.fet_1 = eapAndroidAccountName;
  }
  protoOf(ExternalAppPermission).toString = function () {
    return 'ExternalAppPermission(eapUid=' + this.zes_1 + ', eapPersonUid=' + this.aet_1.toString() + ', eapPackageId=' + this.bet_1 + ', eapStartTime=' + this.cet_1.toString() + ', eapExpireTime=' + this.det_1.toString() + ', eapAuthToken=' + this.eet_1 + ', eapAndroidAccountName=' + this.fet_1 + ')';
  };
  protoOf(ExternalAppPermission).hashCode = function () {
    var result = this.zes_1;
    result = imul(result, 31) + this.aet_1.hashCode() | 0;
    result = imul(result, 31) + (this.bet_1 == null ? 0 : getStringHashCode(this.bet_1)) | 0;
    result = imul(result, 31) + this.cet_1.hashCode() | 0;
    result = imul(result, 31) + this.det_1.hashCode() | 0;
    result = imul(result, 31) + (this.eet_1 == null ? 0 : getStringHashCode(this.eet_1)) | 0;
    result = imul(result, 31) + (this.fet_1 == null ? 0 : getStringHashCode(this.fet_1)) | 0;
    return result;
  };
  protoOf(ExternalAppPermission).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ExternalAppPermission))
      return false;
    var tmp0_other_with_cast = other instanceof ExternalAppPermission ? other : THROW_CCE();
    if (!(this.zes_1 === tmp0_other_with_cast.zes_1))
      return false;
    if (!this.aet_1.equals(tmp0_other_with_cast.aet_1))
      return false;
    if (!(this.bet_1 == tmp0_other_with_cast.bet_1))
      return false;
    if (!this.cet_1.equals(tmp0_other_with_cast.cet_1))
      return false;
    if (!this.det_1.equals(tmp0_other_with_cast.det_1))
      return false;
    if (!(this.eet_1 == tmp0_other_with_cast.eet_1))
      return false;
    if (!(this.fet_1 == tmp0_other_with_cast.fet_1))
      return false;
    return true;
  };
  function Companion_83() {
    this.ajk_1 = 99;
  }
  var Companion_instance_84;
  function Companion_getInstance_86() {
    return Companion_instance_84;
  }
  function $serializer_80() {
    $serializer_instance_80 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Holiday', this, 10);
    tmp0_serialDesc.g4f('holUid', true);
    tmp0_serialDesc.g4f('holMasterCsn', true);
    tmp0_serialDesc.g4f('holLocalCsn', true);
    tmp0_serialDesc.g4f('holLastModBy', true);
    tmp0_serialDesc.g4f('holLct', true);
    tmp0_serialDesc.g4f('holActive', true);
    tmp0_serialDesc.g4f('holHolidayCalendarUid', true);
    tmp0_serialDesc.g4f('holStartTime', true);
    tmp0_serialDesc.g4f('holEndTime', true);
    tmp0_serialDesc.g4f('holName', true);
    this.bjk_1 = tmp0_serialDesc;
  }
  protoOf($serializer_80).d44 = function () {
    return this.bjk_1;
  };
  protoOf($serializer_80).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_80).f44 = function (decoder) {
    var tmp0_desc = this.bjk_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = 0;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = false;
    var tmp10_local6 = new Long(0, 0);
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = null;
    var tmp14_input = decoder.v47(tmp0_desc);
    if (tmp14_input.k48()) {
      tmp4_local0 = tmp14_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp14_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp14_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp14_input.a48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp14_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp14_input.x47(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp14_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp14_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp14_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp14_input.j48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp14_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp14_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp14_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp14_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp14_input.a48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp14_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp14_input.x47(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp14_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp14_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp14_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp14_input.j48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp14_input.w47(tmp0_desc);
    return Holiday_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null);
  };
  protoOf($serializer_80).cjk = function (encoder, value) {
    var tmp0_desc = this.bjk_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.bew_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.bew_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.cew_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.cew_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.dew_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.dew_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.eew_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 3, value.eew_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.few_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.few_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.gew_1 === true)) {
      tmp1_output.b49(tmp0_desc, 5, value.gew_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.hew_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.hew_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.iew_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.iew_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.jew_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.jew_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.kew_1 == null)) {
      tmp1_output.n49(tmp0_desc, 9, StringSerializer_getInstance(), value.kew_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_80).e44 = function (encoder, value) {
    return this.cjk(encoder, value instanceof Holiday ? value : THROW_CCE());
  };
  var $serializer_instance_80;
  function $serializer_getInstance_80() {
    if ($serializer_instance_80 == null)
      new $serializer_80();
    return $serializer_instance_80;
  }
  function Holiday_init_$Init$(seen1, holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_80().bjk_1);
    }
    if (0 === (seen1 & 1))
      $this.bew_1 = new Long(0, 0);
    else
      $this.bew_1 = holUid;
    if (0 === (seen1 & 2))
      $this.cew_1 = new Long(0, 0);
    else
      $this.cew_1 = holMasterCsn;
    if (0 === (seen1 & 4))
      $this.dew_1 = new Long(0, 0);
    else
      $this.dew_1 = holLocalCsn;
    if (0 === (seen1 & 8))
      $this.eew_1 = 0;
    else
      $this.eew_1 = holLastModBy;
    if (0 === (seen1 & 16))
      $this.few_1 = new Long(0, 0);
    else
      $this.few_1 = holLct;
    if (0 === (seen1 & 32))
      $this.gew_1 = true;
    else
      $this.gew_1 = holActive;
    if (0 === (seen1 & 64))
      $this.hew_1 = new Long(0, 0);
    else
      $this.hew_1 = holHolidayCalendarUid;
    if (0 === (seen1 & 128))
      $this.iew_1 = new Long(0, 0);
    else
      $this.iew_1 = holStartTime;
    if (0 === (seen1 & 256))
      $this.jew_1 = new Long(0, 0);
    else
      $this.jew_1 = holEndTime;
    if (0 === (seen1 & 512))
      $this.kew_1 = null;
    else
      $this.kew_1 = holName;
    return $this;
  }
  function Holiday_init_$Create$(seen1, holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName, serializationConstructorMarker) {
    return Holiday_init_$Init$(seen1, holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName, serializationConstructorMarker, objectCreate(protoOf(Holiday)));
  }
  function Holiday() {
    this.bew_1 = new Long(0, 0);
    this.cew_1 = new Long(0, 0);
    this.dew_1 = new Long(0, 0);
    this.eew_1 = 0;
    this.few_1 = new Long(0, 0);
    this.gew_1 = true;
    this.hew_1 = new Long(0, 0);
    this.iew_1 = new Long(0, 0);
    this.jew_1 = new Long(0, 0);
    this.kew_1 = null;
  }
  protoOf(Holiday).equals = function (other) {
    if (this === other)
      return true;
    if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
      return false;
    if (!(other instanceof Holiday))
      THROW_CCE();
    if (!this.bew_1.equals(other.bew_1))
      return false;
    if (!this.cew_1.equals(other.cew_1))
      return false;
    if (!this.dew_1.equals(other.dew_1))
      return false;
    if (!(this.eew_1 === other.eew_1))
      return false;
    if (!(this.gew_1 === other.gew_1))
      return false;
    if (!this.hew_1.equals(other.hew_1))
      return false;
    if (!this.iew_1.equals(other.iew_1))
      return false;
    if (!this.jew_1.equals(other.jew_1))
      return false;
    if (!(this.kew_1 == other.kew_1))
      return false;
    return true;
  };
  protoOf(Holiday).hashCode = function () {
    var result = this.bew_1.hashCode();
    result = imul(31, result) + this.cew_1.hashCode() | 0;
    result = imul(31, result) + this.dew_1.hashCode() | 0;
    result = imul(31, result) + this.eew_1 | 0;
    result = imul(31, result) + getBooleanHashCode(this.gew_1) | 0;
    result = imul(31, result) + this.hew_1.hashCode() | 0;
    result = imul(31, result) + this.iew_1.hashCode() | 0;
    result = imul(31, result) + this.jew_1.hashCode() | 0;
    var tmp = imul(31, result);
    var tmp0_safe_receiver = this.kew_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
    result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
    return result;
  };
  function Companion_84() {
    this.djk_1 = 28;
    this.ejk_1 = 1;
  }
  var Companion_instance_85;
  function Companion_getInstance_87() {
    return Companion_instance_85;
  }
  function $serializer_81() {
    $serializer_instance_81 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.HolidayCalendar', this, 8);
    tmp0_serialDesc.g4f('umCalendarUid', true);
    tmp0_serialDesc.g4f('umCalendarName', true);
    tmp0_serialDesc.g4f('umCalendarCategory', true);
    tmp0_serialDesc.g4f('umCalendarActive', true);
    tmp0_serialDesc.g4f('umCalendarMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('umCalendarLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('umCalendarLastChangedBy', true);
    tmp0_serialDesc.g4f('umCalendarLct', true);
    this.fjk_1 = tmp0_serialDesc;
  }
  protoOf($serializer_81).d44 = function () {
    return this.fjk_1;
  };
  protoOf($serializer_81).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_81).f44 = function (decoder) {
    var tmp0_desc = this.fjk_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = 0;
    var tmp7_local3 = false;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = 0;
    var tmp11_local7 = new Long(0, 0);
    var tmp12_input = decoder.v47(tmp0_desc);
    if (tmp12_input.k48()) {
      tmp4_local0 = tmp12_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.a48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.x47(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.a48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.a48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.x47(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.a48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.w47(tmp0_desc);
    return HolidayCalendar_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
  };
  protoOf($serializer_81).gjk = function (encoder, value) {
    var tmp0_desc = this.fjk_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.f8e_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.f8e_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.g8e_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.g8e_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.h8e_1 === 1)) {
      tmp1_output.e49(tmp0_desc, 2, value.h8e_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.i8e_1 === true)) {
      tmp1_output.b49(tmp0_desc, 3, value.i8e_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.j8e_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.j8e_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.k8e_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.k8e_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.l8e_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 6, value.l8e_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.m8e_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.m8e_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_81).e44 = function (encoder, value) {
    return this.gjk(encoder, value instanceof HolidayCalendar ? value : THROW_CCE());
  };
  var $serializer_instance_81;
  function $serializer_getInstance_81() {
    if ($serializer_instance_81 == null)
      new $serializer_81();
    return $serializer_instance_81;
  }
  function HolidayCalendar_init_$Init$(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_81().fjk_1);
    }
    if (0 === (seen1 & 1))
      $this.f8e_1 = new Long(0, 0);
    else
      $this.f8e_1 = umCalendarUid;
    if (0 === (seen1 & 2))
      $this.g8e_1 = null;
    else
      $this.g8e_1 = umCalendarName;
    if (0 === (seen1 & 4))
      $this.h8e_1 = 1;
    else
      $this.h8e_1 = umCalendarCategory;
    if (0 === (seen1 & 8))
      $this.i8e_1 = true;
    else
      $this.i8e_1 = umCalendarActive;
    if (0 === (seen1 & 16))
      $this.j8e_1 = new Long(0, 0);
    else
      $this.j8e_1 = umCalendarMasterChangeSeqNum;
    if (0 === (seen1 & 32))
      $this.k8e_1 = new Long(0, 0);
    else
      $this.k8e_1 = umCalendarLocalChangeSeqNum;
    if (0 === (seen1 & 64))
      $this.l8e_1 = 0;
    else
      $this.l8e_1 = umCalendarLastChangedBy;
    if (0 === (seen1 & 128))
      $this.m8e_1 = new Long(0, 0);
    else
      $this.m8e_1 = umCalendarLct;
    return $this;
  }
  function HolidayCalendar_init_$Create$(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, serializationConstructorMarker) {
    return HolidayCalendar_init_$Init$(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, serializationConstructorMarker, objectCreate(protoOf(HolidayCalendar)));
  }
  function HolidayCalendar() {
    this.f8e_1 = new Long(0, 0);
    this.g8e_1 = null;
    this.h8e_1 = 1;
    this.i8e_1 = true;
    this.j8e_1 = new Long(0, 0);
    this.k8e_1 = new Long(0, 0);
    this.l8e_1 = 0;
    this.m8e_1 = new Long(0, 0);
  }
  function Companion_85() {
  }
  var Companion_instance_86;
  function Companion_getInstance_88() {
    return Companion_instance_86;
  }
  function $serializer_82() {
    $serializer_instance_82 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.HolidayCalendarWithNumEntries', this, 9);
    tmp0_serialDesc.g4f('umCalendarUid', true);
    tmp0_serialDesc.g4f('umCalendarName', true);
    tmp0_serialDesc.g4f('umCalendarCategory', true);
    tmp0_serialDesc.g4f('umCalendarActive', true);
    tmp0_serialDesc.g4f('umCalendarMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('umCalendarLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('umCalendarLastChangedBy', true);
    tmp0_serialDesc.g4f('umCalendarLct', true);
    tmp0_serialDesc.g4f('numEntries', true);
    this.hjk_1 = tmp0_serialDesc;
  }
  protoOf($serializer_82).d44 = function () {
    return this.hjk_1;
  };
  protoOf($serializer_82).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance()];
  };
  protoOf($serializer_82).f44 = function (decoder) {
    var tmp0_desc = this.hjk_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = 0;
    var tmp7_local3 = false;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = 0;
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = 0;
    var tmp13_input = decoder.v47(tmp0_desc);
    if (tmp13_input.k48()) {
      tmp4_local0 = tmp13_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp13_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp13_input.a48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp13_input.x47(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp13_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp13_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp13_input.a48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp13_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp13_input.a48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp13_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp13_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp13_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp13_input.a48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp13_input.x47(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp13_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp13_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp13_input.a48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp13_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp13_input.a48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp13_input.w47(tmp0_desc);
    return HolidayCalendarWithNumEntries_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null);
  };
  protoOf($serializer_82).ijk = function (encoder, value) {
    var tmp0_desc = this.hjk_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.f8e_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.f8e_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.g8e_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.g8e_1);
    }
    var tmp;
    if (tmp1_output.r49(tmp0_desc, 2)) {
      tmp = true;
    } else {
      var tmp_0 = value.h8e_1;
      tmp = !(tmp_0 === 1);
    }
    if (tmp) {
      tmp1_output.e49(tmp0_desc, 2, value.h8e_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.i8e_1 === true)) {
      tmp1_output.b49(tmp0_desc, 3, value.i8e_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.j8e_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.j8e_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.k8e_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.k8e_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.l8e_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 6, value.l8e_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.m8e_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.m8e_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.rjk_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 8, value.rjk_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_82).e44 = function (encoder, value) {
    return this.ijk(encoder, value instanceof HolidayCalendarWithNumEntries ? value : THROW_CCE());
  };
  var $serializer_instance_82;
  function $serializer_getInstance_82() {
    if ($serializer_instance_82 == null)
      new $serializer_82();
    return $serializer_instance_82;
  }
  function HolidayCalendarWithNumEntries_init_$Init$(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, numEntries, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_82().hjk_1);
    }
    HolidayCalendar_init_$Init$(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, serializationConstructorMarker, $this);
    if (0 === (seen1 & 256))
      $this.rjk_1 = 0;
    else
      $this.rjk_1 = numEntries;
    return $this;
  }
  function HolidayCalendarWithNumEntries_init_$Create$(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, numEntries, serializationConstructorMarker) {
    return HolidayCalendarWithNumEntries_init_$Init$(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, numEntries, serializationConstructorMarker, objectCreate(protoOf(HolidayCalendarWithNumEntries)));
  }
  function HolidayCalendarWithNumEntries() {
    HolidayCalendar.call(this);
    this.rjk_1 = 0;
  }
  function Companion_86() {
    Companion_instance_87 = this;
    this.sjk_1 = 13;
    this.tjk_1 = new Long(10000, 0);
    this.ujk_1 = new Long(10001, 0);
    this.vjk_1 = new Long(10002, 0);
    this.wjk_1 = new Long(10003, 0);
    this.xjk_1 = new Long(10004, 0);
    this.yjk_1 = new Long(10005, 0);
    this.zjk_1 = new Long(10006, 0);
    this.ajl_1 = new Long(10007, 0);
    this.bjl_1 = new Long(10008, 0);
    this.cjl_1 = new Long(10009, 0);
    var tmp = this;
    // Inline function 'kotlin.apply' call
    var this_0 = new Language();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.<anonymous>' call
    this_0.mc8_1 = 'English';
    this_0.lc8_1 = new Long(10000, 0);
    this_0.nc8_1 = 'en';
    this_0.oc8_1 = 'eng';
    this_0.pc8_1 = 'eng';
    var tmp_0 = this_0;
    // Inline function 'kotlin.apply' call
    var this_1 = new Language();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.<anonymous>' call
    this_1.mc8_1 = '\u0627\u0644\u0639\u0631\u0628\u064A\u0629';
    this_1.lc8_1 = new Long(10001, 0);
    this_1.nc8_1 = 'ar';
    this_1.oc8_1 = 'ara';
    this_1.pc8_1 = 'ara';
    var tmp_1 = this_1;
    // Inline function 'kotlin.apply' call
    var this_2 = new Language();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.<anonymous>' call
    this_2.mc8_1 = '\u09AC\u09BE\u0982\u09B2\u09BE';
    this_2.lc8_1 = new Long(10002, 0);
    this_2.nc8_1 = 'bn';
    this_2.oc8_1 = 'ben';
    this_2.pc8_1 = 'ben';
    var tmp_2 = this_2;
    // Inline function 'kotlin.apply' call
    var this_3 = new Language();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.<anonymous>' call
    this_3.mc8_1 = '\u1019\u103C\u1014\u103A\u1019\u102C';
    this_3.lc8_1 = new Long(10003, 0);
    this_3.nc8_1 = 'my';
    this_3.oc8_1 = 'bur';
    this_3.pc8_1 = 'mya';
    var tmp_3 = this_3;
    // Inline function 'kotlin.apply' call
    var this_4 = new Language();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.<anonymous>' call
    this_4.mc8_1 = 'Ikinyarwanda';
    this_4.lc8_1 = new Long(10004, 0);
    this_4.nc8_1 = 'rw';
    this_4.oc8_1 = 'kin';
    this_4.pc8_1 = 'kin';
    var tmp_4 = this_4;
    // Inline function 'kotlin.apply' call
    var this_5 = new Language();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.<anonymous>' call
    this_5.mc8_1 = '\u0928\u0947\u092A\u093E\u0932\u0940';
    this_5.lc8_1 = new Long(10005, 0);
    this_5.nc8_1 = 'ne';
    this_5.oc8_1 = 'nep';
    this_5.pc8_1 = 'nep';
    var tmp_5 = this_5;
    // Inline function 'kotlin.apply' call
    var this_6 = new Language();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.<anonymous>' call
    this_6.mc8_1 = '\u067E\u069A\u062A\u0648';
    this_6.lc8_1 = new Long(10006, 0);
    this_6.nc8_1 = 'ps';
    this_6.oc8_1 = 'pus';
    this_6.pc8_1 = 'pus';
    var tmp_6 = this_6;
    // Inline function 'kotlin.apply' call
    var this_7 = new Language();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.<anonymous>' call
    this_7.mc8_1 = '\u0641\u0627\u0631\u0633\u06CC';
    this_7.lc8_1 = new Long(10007, 0);
    this_7.nc8_1 = 'fa';
    this_7.oc8_1 = 'per';
    this_7.pc8_1 = 'fas';
    var tmp_7 = this_7;
    // Inline function 'kotlin.apply' call
    var this_8 = new Language();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.<anonymous>' call
    this_8.mc8_1 = '\u0440\u0443\u0441\u0441\u043A\u0438\u0439';
    this_8.lc8_1 = new Long(10008, 0);
    this_8.nc8_1 = 'ru';
    this_8.oc8_1 = 'rus';
    this_8.pc8_1 = 'rus';
    var tmp_8 = this_8;
    // Inline function 'kotlin.apply' call
    var this_9 = new Language();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.<anonymous>' call
    this_9.mc8_1 = '\u0422\u043E\u04B7\u0438\u043A\u04E3';
    this_9.lc8_1 = new Long(10009, 0);
    this_9.nc8_1 = 'tg';
    this_9.oc8_1 = 'tgk';
    this_9.pc8_1 = 'tgk';
    tmp.djl_1 = listOf_0([tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_6, tmp_7, tmp_8, this_9]);
  }
  var Companion_instance_87;
  function Companion_getInstance_89() {
    if (Companion_instance_87 == null)
      new Companion_86();
    return Companion_instance_87;
  }
  function $serializer_83() {
    $serializer_instance_83 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Language', this, 11);
    tmp0_serialDesc.g4f('langUid', true);
    tmp0_serialDesc.g4f('name', true);
    tmp0_serialDesc.g4f('iso_639_1_standard', true);
    tmp0_serialDesc.g4f('iso_639_2_standard', true);
    tmp0_serialDesc.g4f('iso_639_3_standard', true);
    tmp0_serialDesc.g4f('Language_Type', true);
    tmp0_serialDesc.g4f('languageActive', true);
    tmp0_serialDesc.g4f('langLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('langMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('langLastChangedBy', true);
    tmp0_serialDesc.g4f('langLct', true);
    this.ejl_1 = tmp0_serialDesc;
  }
  protoOf($serializer_83).d44 = function () {
    return this.ejl_1;
  };
  protoOf($serializer_83).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_83).f44 = function (decoder) {
    var tmp0_desc = this.ejl_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = null;
    var tmp9_local5 = null;
    var tmp10_local6 = false;
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = 0;
    var tmp14_local10 = new Long(0, 0);
    var tmp15_input = decoder.v47(tmp0_desc);
    if (tmp15_input.k48()) {
      tmp4_local0 = tmp15_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp15_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp15_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp15_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp15_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp15_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp15_input.x47(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp15_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp15_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp15_input.a48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp15_input.b48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp15_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp15_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp15_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp15_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp15_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp15_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp15_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp15_input.x47(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp15_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp15_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp15_input.a48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp15_input.b48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp15_input.w47(tmp0_desc);
    return Language_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null);
  };
  protoOf($serializer_83).fjl = function (encoder, value) {
    var tmp0_desc = this.ejl_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.lc8_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.lc8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.mc8_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.mc8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.nc8_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.nc8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.oc8_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.oc8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.pc8_1 == null)) {
      tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.pc8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.qc8_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.qc8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.rc8_1 === true)) {
      tmp1_output.b49(tmp0_desc, 6, value.rc8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.sc8_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.sc8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.tc8_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.tc8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.uc8_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 9, value.uc8_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !value.vc8_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 10, value.vc8_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_83).e44 = function (encoder, value) {
    return this.fjl(encoder, value instanceof Language ? value : THROW_CCE());
  };
  var $serializer_instance_83;
  function $serializer_getInstance_83() {
    if ($serializer_instance_83 == null)
      new $serializer_83();
    return $serializer_instance_83;
  }
  function Language_init_$Init$(seen1, langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_83().ejl_1);
    }
    if (0 === (seen1 & 1))
      $this.lc8_1 = new Long(0, 0);
    else
      $this.lc8_1 = langUid;
    if (0 === (seen1 & 2))
      $this.mc8_1 = null;
    else
      $this.mc8_1 = name;
    if (0 === (seen1 & 4))
      $this.nc8_1 = null;
    else
      $this.nc8_1 = iso_639_1_standard;
    if (0 === (seen1 & 8))
      $this.oc8_1 = null;
    else
      $this.oc8_1 = iso_639_2_standard;
    if (0 === (seen1 & 16))
      $this.pc8_1 = null;
    else
      $this.pc8_1 = iso_639_3_standard;
    if (0 === (seen1 & 32))
      $this.qc8_1 = null;
    else
      $this.qc8_1 = Language_Type;
    if (0 === (seen1 & 64))
      $this.rc8_1 = true;
    else
      $this.rc8_1 = languageActive;
    if (0 === (seen1 & 128))
      $this.sc8_1 = new Long(0, 0);
    else
      $this.sc8_1 = langLocalChangeSeqNum;
    if (0 === (seen1 & 256))
      $this.tc8_1 = new Long(0, 0);
    else
      $this.tc8_1 = langMasterChangeSeqNum;
    if (0 === (seen1 & 512))
      $this.uc8_1 = 0;
    else
      $this.uc8_1 = langLastChangedBy;
    if (0 === (seen1 & 1024))
      $this.vc8_1 = new Long(0, 0);
    else
      $this.vc8_1 = langLct;
    return $this;
  }
  function Language_init_$Create$(seen1, langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct, serializationConstructorMarker) {
    return Language_init_$Init$(seen1, langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct, serializationConstructorMarker, objectCreate(protoOf(Language)));
  }
  function Language() {
    Companion_getInstance_89();
    this.lc8_1 = new Long(0, 0);
    this.mc8_1 = null;
    this.nc8_1 = null;
    this.oc8_1 = null;
    this.pc8_1 = null;
    this.qc8_1 = null;
    this.rc8_1 = true;
    this.sc8_1 = new Long(0, 0);
    this.tc8_1 = new Long(0, 0);
    this.uc8_1 = 0;
    this.vc8_1 = new Long(0, 0);
  }
  protoOf(Language).toString = function () {
    return toString(this.mc8_1);
  };
  protoOf(Language).equals = function (other) {
    if (this === other)
      return true;
    var language = (other == null ? true : other instanceof Language) ? other : THROW_CCE();
    if (!this.lc8_1.equals(ensureNotNull(language).lc8_1))
      return false;
    if (!(this.mc8_1 == null) ? !(this.mc8_1 == language.mc8_1) : !(language.mc8_1 == null))
      return false;
    if (!(this.nc8_1 == null) ? !(this.nc8_1 == language.nc8_1) : !(language.nc8_1 == null))
      return false;
    if (!(this.oc8_1 == null) ? !(this.oc8_1 == language.oc8_1) : !(language.oc8_1 == null))
      return false;
    return !(this.pc8_1 == null) ? this.pc8_1 == language.pc8_1 : language.pc8_1 == null;
  };
  protoOf(Language).hashCode = function () {
    var result = this.lc8_1.wc(this.lc8_1.tc(32)).mb();
    result = imul(31, result) + (!(this.mc8_1 == null) ? getStringHashCode(ensureNotNull(this.mc8_1)) : 0) | 0;
    result = imul(31, result) + (!(this.nc8_1 == null) ? getStringHashCode(ensureNotNull(this.nc8_1)) : 0) | 0;
    result = imul(31, result) + (!(this.oc8_1 == null) ? getStringHashCode(ensureNotNull(this.oc8_1)) : 0) | 0;
    result = imul(31, result) + (!(this.pc8_1 == null) ? getStringHashCode(ensureNotNull(this.pc8_1)) : 0) | 0;
    return result;
  };
  function Companion_87() {
    this.gjl_1 = 10;
  }
  var Companion_instance_88;
  function Companion_getInstance_90() {
    return Companion_instance_88;
  }
  function $serializer_84() {
    $serializer_instance_84 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.LanguageVariant', this, 8);
    tmp0_serialDesc.g4f('langVariantUid', true);
    tmp0_serialDesc.g4f('langUid', true);
    tmp0_serialDesc.g4f('countryCode', true);
    tmp0_serialDesc.g4f('name', true);
    tmp0_serialDesc.g4f('langVariantLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('langVariantMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('langVariantLastChangedBy', true);
    tmp0_serialDesc.g4f('langVariantLct', true);
    this.hjl_1 = tmp0_serialDesc;
  }
  protoOf($serializer_84).d44 = function () {
    return this.hjl_1;
  };
  protoOf($serializer_84).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_84).f44 = function (decoder) {
    var tmp0_desc = this.hjl_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = 0;
    var tmp11_local7 = new Long(0, 0);
    var tmp12_input = decoder.v47(tmp0_desc);
    if (tmp12_input.k48()) {
      tmp4_local0 = tmp12_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.a48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.a48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.w47(tmp0_desc);
    return LanguageVariant_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
  };
  protoOf($serializer_84).ijl = function (encoder, value) {
    var tmp0_desc = this.hjl_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.wf0_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.wf0_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.xf0_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.xf0_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.yf0_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.yf0_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.zf0_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.zf0_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.af1_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.af1_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.bf1_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.bf1_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.cf1_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 6, value.cf1_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.df1_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.df1_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_84).e44 = function (encoder, value) {
    return this.ijl(encoder, value instanceof LanguageVariant ? value : THROW_CCE());
  };
  var $serializer_instance_84;
  function $serializer_getInstance_84() {
    if ($serializer_instance_84 == null)
      new $serializer_84();
    return $serializer_instance_84;
  }
  function LanguageVariant_init_$Init$(seen1, langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_84().hjl_1);
    }
    if (0 === (seen1 & 1))
      $this.wf0_1 = new Long(0, 0);
    else
      $this.wf0_1 = langVariantUid;
    if (0 === (seen1 & 2))
      $this.xf0_1 = new Long(0, 0);
    else
      $this.xf0_1 = langUid;
    if (0 === (seen1 & 4))
      $this.yf0_1 = null;
    else
      $this.yf0_1 = countryCode;
    if (0 === (seen1 & 8))
      $this.zf0_1 = null;
    else
      $this.zf0_1 = name;
    if (0 === (seen1 & 16))
      $this.af1_1 = new Long(0, 0);
    else
      $this.af1_1 = langVariantLocalChangeSeqNum;
    if (0 === (seen1 & 32))
      $this.bf1_1 = new Long(0, 0);
    else
      $this.bf1_1 = langVariantMasterChangeSeqNum;
    if (0 === (seen1 & 64))
      $this.cf1_1 = 0;
    else
      $this.cf1_1 = langVariantLastChangedBy;
    if (0 === (seen1 & 128))
      $this.df1_1 = new Long(0, 0);
    else
      $this.df1_1 = langVariantLct;
    return $this;
  }
  function LanguageVariant_init_$Create$(seen1, langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct, serializationConstructorMarker) {
    return LanguageVariant_init_$Init$(seen1, langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct, serializationConstructorMarker, objectCreate(protoOf(LanguageVariant)));
  }
  function LanguageVariant() {
    this.wf0_1 = new Long(0, 0);
    this.xf0_1 = new Long(0, 0);
    this.yf0_1 = null;
    this.zf0_1 = null;
    this.af1_1 = new Long(0, 0);
    this.bf1_1 = new Long(0, 0);
    this.cf1_1 = 0;
    this.df1_1 = new Long(0, 0);
  }
  protoOf(LanguageVariant).equals = function (other) {
    if (this === other)
      return true;
    var that = (other == null ? true : other instanceof LanguageVariant) ? other : THROW_CCE();
    if (!this.wf0_1.equals(ensureNotNull(that).wf0_1))
      return false;
    if (!this.xf0_1.equals(that.xf0_1))
      return false;
    if (!(this.yf0_1 == null) ? !(this.yf0_1 == that.yf0_1) : !(that.yf0_1 == null))
      return false;
    return !(this.zf0_1 == null) ? this.zf0_1 == that.zf0_1 : that.zf0_1 == null;
  };
  protoOf(LanguageVariant).hashCode = function () {
    var result = this.wf0_1.wc(this.wf0_1.tc(32)).mb();
    result = imul(31, result) + this.xf0_1.wc(this.xf0_1.tc(32)).mb() | 0;
    result = imul(31, result) + (!(this.yf0_1 == null) ? getStringHashCode(ensureNotNull(this.yf0_1)) : 0) | 0;
    result = imul(31, result) + (!(this.zf0_1 == null) ? getStringHashCode(ensureNotNull(this.zf0_1)) : 0) | 0;
    return result;
  };
  function Companion_88() {
    Companion_instance_89 = this;
    this.jjl_1 = 410;
    this.kjl_1 = 'Moved';
    this.ljl_1 = new Long(10000, 0);
    this.mjl_1 = 'Medical';
    this.njl_1 = new Long(10001, 0);
    this.ojl_1 = 'Transportation problem';
    this.pjl_1 = new Long(10002, 0);
    this.qjl_1 = 'Family economic problem';
    this.rjl_1 = new Long(10003, 0);
    this.sjl_1 = 'Failed test';
    this.tjl_1 = new Long(10004, 0);
    this.ujl_1 = 'Passed test';
    this.vjl_1 = new Long(10005, 0);
    this.wjl_1 = mapOf([to('Moved', new Long(10000, 0)), to('Medical', new Long(10001, 0)), to('Transportation problem', new Long(10002, 0)), to('Family economic problem', new Long(10003, 0)), to('Failed test', new Long(10004, 0)), to('Passed test', new Long(10005, 0))]);
  }
  protoOf(Companion_88).a4r = function () {
    return $serializer_getInstance_85();
  };
  var Companion_instance_89;
  function Companion_getInstance_91() {
    if (Companion_instance_89 == null)
      new Companion_88();
    return Companion_instance_89;
  }
  function $serializer_85() {
    $serializer_instance_85 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.LeavingReason', this, 6);
    tmp0_serialDesc.g4f('leavingReasonUid', true);
    tmp0_serialDesc.g4f('leavingReasonTitle', true);
    tmp0_serialDesc.g4f('leavingReasonMCSN', true);
    tmp0_serialDesc.g4f('leavingReasonCSN', true);
    tmp0_serialDesc.g4f('leavingReasonLCB', true);
    tmp0_serialDesc.g4f('leavingReasonLct', true);
    this.xjl_1 = tmp0_serialDesc;
  }
  protoOf($serializer_85).d44 = function () {
    return this.xjl_1;
  };
  protoOf($serializer_85).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_85).f44 = function (decoder) {
    var tmp0_desc = this.xjl_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = 0;
    var tmp9_local5 = new Long(0, 0);
    var tmp10_input = decoder.v47(tmp0_desc);
    if (tmp10_input.k48()) {
      tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.a48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.a48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.w47(tmp0_desc);
    return LeavingReason_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_85).yjl = function (encoder, value) {
    var tmp0_desc = this.xjl_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.t93_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.t93_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.u93_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.u93_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.v93_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.v93_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.w93_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.w93_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.x93_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 4, value.x93_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.y93_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.y93_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_85).e44 = function (encoder, value) {
    return this.yjl(encoder, value instanceof LeavingReason ? value : THROW_CCE());
  };
  var $serializer_instance_85;
  function $serializer_getInstance_85() {
    if ($serializer_instance_85 == null)
      new $serializer_85();
    return $serializer_instance_85;
  }
  function LeavingReason_init_$Init$(seen1, leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_85().xjl_1);
    }
    if (0 === (seen1 & 1))
      $this.t93_1 = new Long(0, 0);
    else
      $this.t93_1 = leavingReasonUid;
    if (0 === (seen1 & 2))
      $this.u93_1 = null;
    else
      $this.u93_1 = leavingReasonTitle;
    if (0 === (seen1 & 4))
      $this.v93_1 = new Long(0, 0);
    else
      $this.v93_1 = leavingReasonMCSN;
    if (0 === (seen1 & 8))
      $this.w93_1 = new Long(0, 0);
    else
      $this.w93_1 = leavingReasonCSN;
    if (0 === (seen1 & 16))
      $this.x93_1 = 0;
    else
      $this.x93_1 = leavingReasonLCB;
    if (0 === (seen1 & 32))
      $this.y93_1 = new Long(0, 0);
    else
      $this.y93_1 = leavingReasonLct;
    return $this;
  }
  function LeavingReason_init_$Create$(seen1, leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct, serializationConstructorMarker) {
    return LeavingReason_init_$Init$(seen1, leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct, serializationConstructorMarker, objectCreate(protoOf(LeavingReason)));
  }
  function LeavingReason() {
    Companion_getInstance_91();
    this.t93_1 = new Long(0, 0);
    this.u93_1 = null;
    this.v93_1 = new Long(0, 0);
    this.w93_1 = new Long(0, 0);
    this.x93_1 = 0;
    this.y93_1 = new Long(0, 0);
  }
  function Companion_89() {
    this.zjl_1 = 126;
  }
  var Companion_instance_90;
  function Companion_getInstance_92() {
    return Companion_instance_90;
  }
  function $serializer_86() {
    $serializer_instance_86 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Message', this, 6);
    tmp0_serialDesc.g4f('messageUid', true);
    tmp0_serialDesc.g4f('messageSenderPersonUid', true);
    tmp0_serialDesc.g4f('messageToPersonUid', true);
    tmp0_serialDesc.g4f('messageText', true);
    tmp0_serialDesc.g4f('messageTimestamp', true);
    tmp0_serialDesc.g4f('messageLct', true);
    this.ajm_1 = tmp0_serialDesc;
  }
  protoOf($serializer_86).d44 = function () {
    return this.ajm_1;
  };
  protoOf($serializer_86).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_86).f44 = function (decoder) {
    var tmp0_desc = this.ajm_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = null;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_input = decoder.v47(tmp0_desc);
    if (tmp10_input.k48()) {
      tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.w47(tmp0_desc);
    return Message_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_86).bjm = function (encoder, value) {
    var tmp0_desc = this.ajm_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.of6_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.of6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.pf6_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.pf6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.qf6_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.qf6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.rf6_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.rf6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.sf6_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.sf6_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.tf6_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.tf6_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_86).e44 = function (encoder, value) {
    return this.bjm(encoder, value instanceof Message ? value : THROW_CCE());
  };
  var $serializer_instance_86;
  function $serializer_getInstance_86() {
    if ($serializer_instance_86 == null)
      new $serializer_86();
    return $serializer_instance_86;
  }
  function Message_init_$Init$(seen1, messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_86().ajm_1);
    }
    if (0 === (seen1 & 1))
      $this.of6_1 = new Long(0, 0);
    else
      $this.of6_1 = messageUid;
    if (0 === (seen1 & 2))
      $this.pf6_1 = new Long(0, 0);
    else
      $this.pf6_1 = messageSenderPersonUid;
    if (0 === (seen1 & 4))
      $this.qf6_1 = new Long(0, 0);
    else
      $this.qf6_1 = messageToPersonUid;
    if (0 === (seen1 & 8))
      $this.rf6_1 = null;
    else
      $this.rf6_1 = messageText;
    if (0 === (seen1 & 16))
      $this.sf6_1 = new Long(0, 0);
    else
      $this.sf6_1 = messageTimestamp;
    if (0 === (seen1 & 32))
      $this.tf6_1 = new Long(0, 0);
    else
      $this.tf6_1 = messageLct;
    return $this;
  }
  function Message_init_$Create$(seen1, messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct, serializationConstructorMarker) {
    return Message_init_$Init$(seen1, messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct, serializationConstructorMarker, objectCreate(protoOf(Message)));
  }
  function Message(messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct) {
    messageUid = messageUid === VOID ? new Long(0, 0) : messageUid;
    messageSenderPersonUid = messageSenderPersonUid === VOID ? new Long(0, 0) : messageSenderPersonUid;
    messageToPersonUid = messageToPersonUid === VOID ? new Long(0, 0) : messageToPersonUid;
    messageText = messageText === VOID ? null : messageText;
    messageTimestamp = messageTimestamp === VOID ? new Long(0, 0) : messageTimestamp;
    messageLct = messageLct === VOID ? new Long(0, 0) : messageLct;
    this.of6_1 = messageUid;
    this.pf6_1 = messageSenderPersonUid;
    this.qf6_1 = messageToPersonUid;
    this.rf6_1 = messageText;
    this.sf6_1 = messageTimestamp;
    this.tf6_1 = messageLct;
  }
  protoOf(Message).toString = function () {
    return 'Message(messageUid=' + this.of6_1.toString() + ', messageSenderPersonUid=' + this.pf6_1.toString() + ', messageToPersonUid=' + this.qf6_1.toString() + ', messageText=' + this.rf6_1 + ', messageTimestamp=' + this.sf6_1.toString() + ', messageLct=' + this.tf6_1.toString() + ')';
  };
  protoOf(Message).hashCode = function () {
    var result = this.of6_1.hashCode();
    result = imul(result, 31) + this.pf6_1.hashCode() | 0;
    result = imul(result, 31) + this.qf6_1.hashCode() | 0;
    result = imul(result, 31) + (this.rf6_1 == null ? 0 : getStringHashCode(this.rf6_1)) | 0;
    result = imul(result, 31) + this.sf6_1.hashCode() | 0;
    result = imul(result, 31) + this.tf6_1.hashCode() | 0;
    return result;
  };
  protoOf(Message).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof Message))
      return false;
    var tmp0_other_with_cast = other instanceof Message ? other : THROW_CCE();
    if (!this.of6_1.equals(tmp0_other_with_cast.of6_1))
      return false;
    if (!this.pf6_1.equals(tmp0_other_with_cast.pf6_1))
      return false;
    if (!this.qf6_1.equals(tmp0_other_with_cast.qf6_1))
      return false;
    if (!(this.rf6_1 == tmp0_other_with_cast.rf6_1))
      return false;
    if (!this.sf6_1.equals(tmp0_other_with_cast.sf6_1))
      return false;
    if (!this.tf6_1.equals(tmp0_other_with_cast.tf6_1))
      return false;
    return true;
  };
  function Companion_90() {
    this.cjm_1 = 971;
  }
  var Companion_instance_91;
  function Companion_getInstance_93() {
    return Companion_instance_91;
  }
  function $serializer_87() {
    $serializer_instance_87 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.OfflineItem', this, 7);
    tmp0_serialDesc.g4f('oiUid', true);
    tmp0_serialDesc.g4f('oiNodeId', true);
    tmp0_serialDesc.g4f('oiClazzUid', true);
    tmp0_serialDesc.g4f('oiCourseBlockUid', true);
    tmp0_serialDesc.g4f('oiContentEntryUid', true);
    tmp0_serialDesc.g4f('oiActive', true);
    tmp0_serialDesc.g4f('oiLct', true);
    this.djm_1 = tmp0_serialDesc;
  }
  protoOf($serializer_87).d44 = function () {
    return this.djm_1;
  };
  protoOf($serializer_87).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_87).f44 = function (decoder) {
    var tmp0_desc = this.djm_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = false;
    var tmp10_local6 = new Long(0, 0);
    var tmp11_input = decoder.v47(tmp0_desc);
    if (tmp11_input.k48()) {
      tmp4_local0 = tmp11_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp11_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp11_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp11_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp11_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp11_input.x47(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp11_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp11_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp11_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp11_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp11_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp11_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp11_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp11_input.x47(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp11_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp11_input.w47(tmp0_desc);
    return OfflineItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null);
  };
  protoOf($serializer_87).ejm = function (encoder, value) {
    var tmp0_desc = this.djm_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.gfc_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.gfc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.hfc_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.hfc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.ifc_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.ifc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.jfc_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.jfc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.kfc_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.kfc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.lfc_1 === true)) {
      tmp1_output.b49(tmp0_desc, 5, value.lfc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.mfc_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.mfc_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_87).e44 = function (encoder, value) {
    return this.ejm(encoder, value instanceof OfflineItem ? value : THROW_CCE());
  };
  var $serializer_instance_87;
  function $serializer_getInstance_87() {
    if ($serializer_instance_87 == null)
      new $serializer_87();
    return $serializer_instance_87;
  }
  function OfflineItem_init_$Init$(seen1, oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_87().djm_1);
    }
    if (0 === (seen1 & 1))
      $this.gfc_1 = new Long(0, 0);
    else
      $this.gfc_1 = oiUid;
    if (0 === (seen1 & 2))
      $this.hfc_1 = new Long(0, 0);
    else
      $this.hfc_1 = oiNodeId;
    if (0 === (seen1 & 4))
      $this.ifc_1 = new Long(0, 0);
    else
      $this.ifc_1 = oiClazzUid;
    if (0 === (seen1 & 8))
      $this.jfc_1 = new Long(0, 0);
    else
      $this.jfc_1 = oiCourseBlockUid;
    if (0 === (seen1 & 16))
      $this.kfc_1 = new Long(0, 0);
    else
      $this.kfc_1 = oiContentEntryUid;
    if (0 === (seen1 & 32))
      $this.lfc_1 = true;
    else
      $this.lfc_1 = oiActive;
    if (0 === (seen1 & 64))
      $this.mfc_1 = new Long(0, 0);
    else
      $this.mfc_1 = oiLct;
    return $this;
  }
  function OfflineItem_init_$Create$(seen1, oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct, serializationConstructorMarker) {
    return OfflineItem_init_$Init$(seen1, oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct, serializationConstructorMarker, objectCreate(protoOf(OfflineItem)));
  }
  function OfflineItem(oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct) {
    oiUid = oiUid === VOID ? new Long(0, 0) : oiUid;
    oiNodeId = oiNodeId === VOID ? new Long(0, 0) : oiNodeId;
    oiClazzUid = oiClazzUid === VOID ? new Long(0, 0) : oiClazzUid;
    oiCourseBlockUid = oiCourseBlockUid === VOID ? new Long(0, 0) : oiCourseBlockUid;
    oiContentEntryUid = oiContentEntryUid === VOID ? new Long(0, 0) : oiContentEntryUid;
    oiActive = oiActive === VOID ? true : oiActive;
    oiLct = oiLct === VOID ? new Long(0, 0) : oiLct;
    this.gfc_1 = oiUid;
    this.hfc_1 = oiNodeId;
    this.ifc_1 = oiClazzUid;
    this.jfc_1 = oiCourseBlockUid;
    this.kfc_1 = oiContentEntryUid;
    this.lfc_1 = oiActive;
    this.mfc_1 = oiLct;
  }
  protoOf(OfflineItem).toString = function () {
    return 'OfflineItem(oiUid=' + this.gfc_1.toString() + ', oiNodeId=' + this.hfc_1.toString() + ', oiClazzUid=' + this.ifc_1.toString() + ', oiCourseBlockUid=' + this.jfc_1.toString() + ', oiContentEntryUid=' + this.kfc_1.toString() + ', oiActive=' + this.lfc_1 + ', oiLct=' + this.mfc_1.toString() + ')';
  };
  protoOf(OfflineItem).hashCode = function () {
    var result = this.gfc_1.hashCode();
    result = imul(result, 31) + this.hfc_1.hashCode() | 0;
    result = imul(result, 31) + this.ifc_1.hashCode() | 0;
    result = imul(result, 31) + this.jfc_1.hashCode() | 0;
    result = imul(result, 31) + this.kfc_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.lfc_1) | 0;
    result = imul(result, 31) + this.mfc_1.hashCode() | 0;
    return result;
  };
  protoOf(OfflineItem).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof OfflineItem))
      return false;
    var tmp0_other_with_cast = other instanceof OfflineItem ? other : THROW_CCE();
    if (!this.gfc_1.equals(tmp0_other_with_cast.gfc_1))
      return false;
    if (!this.hfc_1.equals(tmp0_other_with_cast.hfc_1))
      return false;
    if (!this.ifc_1.equals(tmp0_other_with_cast.ifc_1))
      return false;
    if (!this.jfc_1.equals(tmp0_other_with_cast.jfc_1))
      return false;
    if (!this.kfc_1.equals(tmp0_other_with_cast.kfc_1))
      return false;
    if (!(this.lfc_1 === tmp0_other_with_cast.lfc_1))
      return false;
    if (!this.mfc_1.equals(tmp0_other_with_cast.mfc_1))
      return false;
    return true;
  };
  function Companion_91() {
    this.fjm_1 = 140;
  }
  protoOf(Companion_91).a4r = function () {
    return $serializer_getInstance_88();
  };
  var Companion_instance_92;
  function Companion_getInstance_94() {
    return Companion_instance_92;
  }
  function $serializer_88() {
    $serializer_instance_88 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PeerReviewerAllocation', this, 6);
    tmp0_serialDesc.g4f('praUid', true);
    tmp0_serialDesc.g4f('praMarkerSubmitterUid', true);
    tmp0_serialDesc.g4f('praToMarkerSubmitterUid', true);
    tmp0_serialDesc.g4f('praAssignmentUid', true);
    tmp0_serialDesc.g4f('praActive', true);
    tmp0_serialDesc.g4f('praLct', true);
    this.gjm_1 = tmp0_serialDesc;
  }
  protoOf($serializer_88).d44 = function () {
    return this.gjm_1;
  };
  protoOf($serializer_88).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_88).f44 = function (decoder) {
    var tmp0_desc = this.gjm_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = false;
    var tmp9_local5 = new Long(0, 0);
    var tmp10_input = decoder.v47(tmp0_desc);
    if (tmp10_input.k48()) {
      tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.x47(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.x47(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.w47(tmp0_desc);
    return PeerReviewerAllocation_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_88).hjm = function (encoder, value) {
    var tmp0_desc = this.gjm_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.kff_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.kff_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.lff_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.lff_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.mff_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.mff_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.nff_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.nff_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.off_1 === true)) {
      tmp1_output.b49(tmp0_desc, 4, value.off_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.pff_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.pff_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_88).e44 = function (encoder, value) {
    return this.hjm(encoder, value instanceof PeerReviewerAllocation ? value : THROW_CCE());
  };
  var $serializer_instance_88;
  function $serializer_getInstance_88() {
    if ($serializer_instance_88 == null)
      new $serializer_88();
    return $serializer_instance_88;
  }
  function PeerReviewerAllocation_init_$Init$(seen1, praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_88().gjm_1);
    }
    if (0 === (seen1 & 1))
      $this.kff_1 = new Long(0, 0);
    else
      $this.kff_1 = praUid;
    if (0 === (seen1 & 2))
      $this.lff_1 = new Long(0, 0);
    else
      $this.lff_1 = praMarkerSubmitterUid;
    if (0 === (seen1 & 4))
      $this.mff_1 = new Long(0, 0);
    else
      $this.mff_1 = praToMarkerSubmitterUid;
    if (0 === (seen1 & 8))
      $this.nff_1 = new Long(0, 0);
    else
      $this.nff_1 = praAssignmentUid;
    if (0 === (seen1 & 16))
      $this.off_1 = true;
    else
      $this.off_1 = praActive;
    if (0 === (seen1 & 32))
      $this.pff_1 = new Long(0, 0);
    else
      $this.pff_1 = praLct;
    return $this;
  }
  function PeerReviewerAllocation_init_$Create$(seen1, praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct, serializationConstructorMarker) {
    return PeerReviewerAllocation_init_$Init$(seen1, praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct, serializationConstructorMarker, objectCreate(protoOf(PeerReviewerAllocation)));
  }
  function PeerReviewerAllocation(praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) {
    praUid = praUid === VOID ? new Long(0, 0) : praUid;
    praMarkerSubmitterUid = praMarkerSubmitterUid === VOID ? new Long(0, 0) : praMarkerSubmitterUid;
    praToMarkerSubmitterUid = praToMarkerSubmitterUid === VOID ? new Long(0, 0) : praToMarkerSubmitterUid;
    praAssignmentUid = praAssignmentUid === VOID ? new Long(0, 0) : praAssignmentUid;
    praActive = praActive === VOID ? true : praActive;
    praLct = praLct === VOID ? new Long(0, 0) : praLct;
    this.kff_1 = praUid;
    this.lff_1 = praMarkerSubmitterUid;
    this.mff_1 = praToMarkerSubmitterUid;
    this.nff_1 = praAssignmentUid;
    this.off_1 = praActive;
    this.pff_1 = praLct;
  }
  protoOf(PeerReviewerAllocation).ijm = function (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) {
    return new PeerReviewerAllocation(praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct);
  };
  protoOf(PeerReviewerAllocation).jjm = function (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct, $super) {
    praUid = praUid === VOID ? this.kff_1 : praUid;
    praMarkerSubmitterUid = praMarkerSubmitterUid === VOID ? this.lff_1 : praMarkerSubmitterUid;
    praToMarkerSubmitterUid = praToMarkerSubmitterUid === VOID ? this.mff_1 : praToMarkerSubmitterUid;
    praAssignmentUid = praAssignmentUid === VOID ? this.nff_1 : praAssignmentUid;
    praActive = praActive === VOID ? this.off_1 : praActive;
    praLct = praLct === VOID ? this.pff_1 : praLct;
    return $super === VOID ? this.ijm(praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) : $super.ijm.call(this, praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct);
  };
  protoOf(PeerReviewerAllocation).toString = function () {
    return 'PeerReviewerAllocation(praUid=' + this.kff_1.toString() + ', praMarkerSubmitterUid=' + this.lff_1.toString() + ', praToMarkerSubmitterUid=' + this.mff_1.toString() + ', praAssignmentUid=' + this.nff_1.toString() + ', praActive=' + this.off_1 + ', praLct=' + this.pff_1.toString() + ')';
  };
  protoOf(PeerReviewerAllocation).hashCode = function () {
    var result = this.kff_1.hashCode();
    result = imul(result, 31) + this.lff_1.hashCode() | 0;
    result = imul(result, 31) + this.mff_1.hashCode() | 0;
    result = imul(result, 31) + this.nff_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.off_1) | 0;
    result = imul(result, 31) + this.pff_1.hashCode() | 0;
    return result;
  };
  protoOf(PeerReviewerAllocation).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof PeerReviewerAllocation))
      return false;
    var tmp0_other_with_cast = other instanceof PeerReviewerAllocation ? other : THROW_CCE();
    if (!this.kff_1.equals(tmp0_other_with_cast.kff_1))
      return false;
    if (!this.lff_1.equals(tmp0_other_with_cast.lff_1))
      return false;
    if (!this.mff_1.equals(tmp0_other_with_cast.mff_1))
      return false;
    if (!this.nff_1.equals(tmp0_other_with_cast.nff_1))
      return false;
    if (!(this.off_1 === tmp0_other_with_cast.off_1))
      return false;
    if (!this.pff_1.equals(tmp0_other_with_cast.pff_1))
      return false;
    return true;
  };
  function Companion_92() {
    this.kjm_1 = 9;
    this.ljm_1 = 0;
    this.mjm_1 = 1;
    this.njm_1 = 2;
    this.ojm_1 = 4;
    this.pjm_1 = 0;
    this.qjm_1 = 1;
    this.rjm_1 = 2;
    this.sjm_1 = '\n            JOIN ScopedGrant\n                 ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n                    AND (ScopedGrant.sgPermissions &';
    this.tjm_1 = '\n                ((ScopedGrant.sgTableId = -2\n                    AND ScopedGrant.sgEntityUid = -2)\n                 OR (ScopedGrant.sgTableId = 9\n                    AND ScopedGrant.sgEntityUid = Person.personUid)\n                 OR (ScopedGrant.sgTableId = 6       \n                    AND Person.personUid IN (\n                        SELECT DISTINCT clazzEnrolmentPersonUid\n                          FROM ClazzEnrolment\n                         WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n                           AND ClazzEnrolment.clazzEnrolmentActive))\n                 \n                 )    \n        ';
    this.ujm_1 = '\n                                                    ) > 0\n            JOIN Person \n                 ON \n                ((ScopedGrant.sgTableId = -2\n                    AND ScopedGrant.sgEntityUid = -2)\n                 OR (ScopedGrant.sgTableId = 9\n                    AND ScopedGrant.sgEntityUid = Person.personUid)\n                 OR (ScopedGrant.sgTableId = 6       \n                    AND Person.personUid IN (\n                        SELECT DISTINCT clazzEnrolmentPersonUid\n                          FROM ClazzEnrolment\n                         WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n                           AND ClazzEnrolment.clazzEnrolmentActive))\n                 \n                 )    \n        \n        ';
  }
  protoOf(Companion_92).a4r = function () {
    return $serializer_getInstance_89();
  };
  var Companion_instance_93;
  function Companion_getInstance_95() {
    return Companion_instance_93;
  }
  function $serializer_89() {
    $serializer_instance_89 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Person', this, 24);
    tmp0_serialDesc.g4f('personUid', true);
    tmp0_serialDesc.g4f('username', true);
    tmp0_serialDesc.g4f('firstNames', true);
    tmp0_serialDesc.g4f('lastName', true);
    tmp0_serialDesc.g4f('emailAddr', true);
    tmp0_serialDesc.g4f('phoneNum', true);
    tmp0_serialDesc.g4f('gender', true);
    tmp0_serialDesc.g4f('active', true);
    tmp0_serialDesc.g4f('dateOfBirth', true);
    tmp0_serialDesc.g4f('personAddress', true);
    tmp0_serialDesc.g4f('personOrgId', true);
    tmp0_serialDesc.g4f('personGroupUid', true);
    tmp0_serialDesc.g4f('personLct', true);
    tmp0_serialDesc.g4f('personCountry', true);
    tmp0_serialDesc.g4f('personType', true);
    tmp0_serialDesc.g4f('personMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('personLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('personLastChangedBy', true);
    tmp0_serialDesc.g4f('admin', true);
    tmp0_serialDesc.g4f('personNotes', true);
    tmp0_serialDesc.g4f('fatherName', true);
    tmp0_serialDesc.g4f('fatherNumber', true);
    tmp0_serialDesc.g4f('motherName', true);
    tmp0_serialDesc.g4f('motherNum', true);
    this.vjm_1 = tmp0_serialDesc;
  }
  protoOf($serializer_89).d44 = function () {
    return this.vjm_1;
  };
  protoOf($serializer_89).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_89).f44 = function (decoder) {
    var tmp0_desc = this.vjm_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = null;
    var tmp9_local5 = null;
    var tmp10_local6 = 0;
    var tmp11_local7 = false;
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = null;
    var tmp14_local10 = null;
    var tmp15_local11 = new Long(0, 0);
    var tmp16_local12 = new Long(0, 0);
    var tmp17_local13 = null;
    var tmp18_local14 = 0;
    var tmp19_local15 = new Long(0, 0);
    var tmp20_local16 = new Long(0, 0);
    var tmp21_local17 = 0;
    var tmp22_local18 = false;
    var tmp23_local19 = null;
    var tmp24_local20 = null;
    var tmp25_local21 = null;
    var tmp26_local22 = null;
    var tmp27_local23 = null;
    var tmp28_input = decoder.v47(tmp0_desc);
    if (tmp28_input.k48()) {
      tmp4_local0 = tmp28_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp28_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp28_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp28_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp28_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp28_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp28_input.a48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp28_input.x47(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp28_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp28_input.j48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp28_input.j48(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp28_input.b48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp28_input.b48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp28_input.j48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp28_input.a48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp28_input.b48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp28_input.b48(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp28_input.a48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp28_input.x47(tmp0_desc, 18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp28_input.j48(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp24_local20 = tmp28_input.j48(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp25_local21 = tmp28_input.j48(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp26_local22 = tmp28_input.j48(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
      tmp27_local23 = tmp28_input.j48(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23);
      tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp28_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp28_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp28_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp28_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp28_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp28_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp28_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp28_input.a48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp28_input.x47(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp28_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp28_input.j48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp28_input.j48(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp28_input.b48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp28_input.b48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp28_input.j48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp28_input.a48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp28_input.b48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp28_input.b48(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp28_input.a48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp28_input.x47(tmp0_desc, 18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp28_input.j48(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp24_local20 = tmp28_input.j48(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp25_local21 = tmp28_input.j48(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp26_local22 = tmp28_input.j48(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          case 23:
            tmp27_local23 = tmp28_input.j48(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23);
            tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp28_input.w47(tmp0_desc);
    return Person_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, null);
  };
  protoOf($serializer_89).wjm = function (encoder, value) {
    var tmp0_desc = this.vjm_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.f95_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.f95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.g95_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.g95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.h95_1 === '')) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.h95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.i95_1 === '')) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.i95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.j95_1 == null)) {
      tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.j95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.k95_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.k95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.l95_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 6, value.l95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.m95_1 === true)) {
      tmp1_output.b49(tmp0_desc, 7, value.m95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.n95_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.n95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.o95_1 == null)) {
      tmp1_output.n49(tmp0_desc, 9, StringSerializer_getInstance(), value.o95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.p95_1 == null)) {
      tmp1_output.n49(tmp0_desc, 10, StringSerializer_getInstance(), value.p95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !value.q95_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 11, value.q95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !value.r95_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 12, value.r95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !(value.s95_1 == null)) {
      tmp1_output.n49(tmp0_desc, 13, StringSerializer_getInstance(), value.s95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 14) ? true : !(value.t95_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 14, value.t95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 15) ? true : !value.u95_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 15, value.u95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 16) ? true : !value.v95_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 16, value.v95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 17) ? true : !(value.w95_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 17, value.w95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 18) ? true : !(value.x95_1 === false)) {
      tmp1_output.b49(tmp0_desc, 18, value.x95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 19) ? true : !(value.y95_1 == null)) {
      tmp1_output.n49(tmp0_desc, 19, StringSerializer_getInstance(), value.y95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 20) ? true : !(value.z95_1 == null)) {
      tmp1_output.n49(tmp0_desc, 20, StringSerializer_getInstance(), value.z95_1);
    }
    if (tmp1_output.r49(tmp0_desc, 21) ? true : !(value.a96_1 == null)) {
      tmp1_output.n49(tmp0_desc, 21, StringSerializer_getInstance(), value.a96_1);
    }
    if (tmp1_output.r49(tmp0_desc, 22) ? true : !(value.b96_1 == null)) {
      tmp1_output.n49(tmp0_desc, 22, StringSerializer_getInstance(), value.b96_1);
    }
    if (tmp1_output.r49(tmp0_desc, 23) ? true : !(value.c96_1 == null)) {
      tmp1_output.n49(tmp0_desc, 23, StringSerializer_getInstance(), value.c96_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_89).e44 = function (encoder, value) {
    return this.wjm(encoder, value instanceof Person ? value : THROW_CCE());
  };
  var $serializer_instance_89;
  function $serializer_getInstance_89() {
    if ($serializer_instance_89 == null)
      new $serializer_89();
    return $serializer_instance_89;
  }
  function Person_init_$Init$(seen1, personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_89().vjm_1);
    }
    if (0 === (seen1 & 1))
      $this.f95_1 = new Long(0, 0);
    else
      $this.f95_1 = personUid;
    if (0 === (seen1 & 2))
      $this.g95_1 = null;
    else
      $this.g95_1 = username;
    if (0 === (seen1 & 4))
      $this.h95_1 = '';
    else
      $this.h95_1 = firstNames;
    if (0 === (seen1 & 8))
      $this.i95_1 = '';
    else
      $this.i95_1 = lastName;
    if (0 === (seen1 & 16))
      $this.j95_1 = null;
    else
      $this.j95_1 = emailAddr;
    if (0 === (seen1 & 32))
      $this.k95_1 = null;
    else
      $this.k95_1 = phoneNum;
    if (0 === (seen1 & 64))
      $this.l95_1 = 0;
    else
      $this.l95_1 = gender;
    if (0 === (seen1 & 128))
      $this.m95_1 = true;
    else
      $this.m95_1 = active;
    if (0 === (seen1 & 256))
      $this.n95_1 = new Long(0, 0);
    else
      $this.n95_1 = dateOfBirth;
    if (0 === (seen1 & 512))
      $this.o95_1 = null;
    else
      $this.o95_1 = personAddress;
    if (0 === (seen1 & 1024))
      $this.p95_1 = null;
    else
      $this.p95_1 = personOrgId;
    if (0 === (seen1 & 2048))
      $this.q95_1 = new Long(0, 0);
    else
      $this.q95_1 = personGroupUid;
    if (0 === (seen1 & 4096))
      $this.r95_1 = new Long(0, 0);
    else
      $this.r95_1 = personLct;
    if (0 === (seen1 & 8192))
      $this.s95_1 = null;
    else
      $this.s95_1 = personCountry;
    if (0 === (seen1 & 16384))
      $this.t95_1 = 0;
    else
      $this.t95_1 = personType;
    if (0 === (seen1 & 32768))
      $this.u95_1 = new Long(0, 0);
    else
      $this.u95_1 = personMasterChangeSeqNum;
    if (0 === (seen1 & 65536))
      $this.v95_1 = new Long(0, 0);
    else
      $this.v95_1 = personLocalChangeSeqNum;
    if (0 === (seen1 & 131072))
      $this.w95_1 = 0;
    else
      $this.w95_1 = personLastChangedBy;
    if (0 === (seen1 & 262144))
      $this.x95_1 = false;
    else
      $this.x95_1 = admin;
    if (0 === (seen1 & 524288))
      $this.y95_1 = null;
    else
      $this.y95_1 = personNotes;
    if (0 === (seen1 & 1048576))
      $this.z95_1 = null;
    else
      $this.z95_1 = fatherName;
    if (0 === (seen1 & 2097152))
      $this.a96_1 = null;
    else
      $this.a96_1 = fatherNumber;
    if (0 === (seen1 & 4194304))
      $this.b96_1 = null;
    else
      $this.b96_1 = motherName;
    if (0 === (seen1 & 8388608))
      $this.c96_1 = null;
    else
      $this.c96_1 = motherNum;
    return $this;
  }
  function Person_init_$Create$(seen1, personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum, serializationConstructorMarker) {
    return Person_init_$Init$(seen1, personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum, serializationConstructorMarker, objectCreate(protoOf(Person)));
  }
  function Person(personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) {
    personUid = personUid === VOID ? new Long(0, 0) : personUid;
    username = username === VOID ? null : username;
    firstNames = firstNames === VOID ? '' : firstNames;
    lastName = lastName === VOID ? '' : lastName;
    emailAddr = emailAddr === VOID ? null : emailAddr;
    phoneNum = phoneNum === VOID ? null : phoneNum;
    gender = gender === VOID ? 0 : gender;
    active = active === VOID ? true : active;
    dateOfBirth = dateOfBirth === VOID ? new Long(0, 0) : dateOfBirth;
    personAddress = personAddress === VOID ? null : personAddress;
    personOrgId = personOrgId === VOID ? null : personOrgId;
    personGroupUid = personGroupUid === VOID ? new Long(0, 0) : personGroupUid;
    personLct = personLct === VOID ? new Long(0, 0) : personLct;
    personCountry = personCountry === VOID ? null : personCountry;
    personType = personType === VOID ? 0 : personType;
    personMasterChangeSeqNum = personMasterChangeSeqNum === VOID ? new Long(0, 0) : personMasterChangeSeqNum;
    personLocalChangeSeqNum = personLocalChangeSeqNum === VOID ? new Long(0, 0) : personLocalChangeSeqNum;
    personLastChangedBy = personLastChangedBy === VOID ? 0 : personLastChangedBy;
    admin = admin === VOID ? false : admin;
    personNotes = personNotes === VOID ? null : personNotes;
    fatherName = fatherName === VOID ? null : fatherName;
    fatherNumber = fatherNumber === VOID ? null : fatherNumber;
    motherName = motherName === VOID ? null : motherName;
    motherNum = motherNum === VOID ? null : motherNum;
    this.f95_1 = personUid;
    this.g95_1 = username;
    this.h95_1 = firstNames;
    this.i95_1 = lastName;
    this.j95_1 = emailAddr;
    this.k95_1 = phoneNum;
    this.l95_1 = gender;
    this.m95_1 = active;
    this.n95_1 = dateOfBirth;
    this.o95_1 = personAddress;
    this.p95_1 = personOrgId;
    this.q95_1 = personGroupUid;
    this.r95_1 = personLct;
    this.s95_1 = personCountry;
    this.t95_1 = personType;
    this.u95_1 = personMasterChangeSeqNum;
    this.v95_1 = personLocalChangeSeqNum;
    this.w95_1 = personLastChangedBy;
    this.x95_1 = admin;
    this.y95_1 = personNotes;
    this.z95_1 = fatherName;
    this.a96_1 = fatherNumber;
    this.b96_1 = motherName;
    this.c96_1 = motherNum;
  }
  protoOf(Person).xjm = function () {
    // Inline function 'kotlin.text.buildString' call
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'kotlin.apply' call
    var this_0 = StringBuilder_init_$Create$();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.Person.fullName.<anonymous>' call
    var tmp0_safe_receiver = this.h95_1;
    if (tmp0_safe_receiver == null)
      null;
    else {
      // Inline function 'kotlin.also' call
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.lib.db.entities.Person.fullName.<anonymous>.<anonymous>' call
      this_0.y5(tmp0_safe_receiver);
    }
    if (!(this.h95_1 == null) ? !(this.i95_1 == null) : false) {
      this_0.y5(' ');
    }
    var tmp1_safe_receiver = this.i95_1;
    if (tmp1_safe_receiver == null)
      null;
    else {
      // Inline function 'kotlin.also' call
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.lib.db.entities.Person.fullName.<anonymous>.<anonymous>' call
      this_0.y5(tmp1_safe_receiver);
    }
    return this_0.toString();
  };
  protoOf(Person).toString = function () {
    return 'Person(personUid=' + this.f95_1.toString() + ', username=' + this.g95_1 + ', firstNames=' + this.h95_1 + ', lastName=' + this.i95_1 + ', emailAddr=' + this.j95_1 + ', phoneNum=' + this.k95_1 + ', gender=' + this.l95_1 + ', active=' + this.m95_1 + ', dateOfBirth=' + this.n95_1.toString() + ', personAddress=' + this.o95_1 + ', personOrgId=' + this.p95_1 + ', personGroupUid=' + this.q95_1.toString() + ', personLct=' + this.r95_1.toString() + ', personCountry=' + this.s95_1 + ', personType=' + this.t95_1 + ', personMasterChangeSeqNum=' + this.u95_1.toString() + ', personLocalChangeSeqNum=' + this.v95_1.toString() + ', personLastChangedBy=' + this.w95_1 + ', admin=' + this.x95_1 + ', personNotes=' + this.y95_1 + ', fatherName=' + this.z95_1 + ', fatherNumber=' + this.a96_1 + ', motherName=' + this.b96_1 + ', motherNum=' + this.c96_1 + ')';
  };
  protoOf(Person).hashCode = function () {
    var result = this.f95_1.hashCode();
    result = imul(result, 31) + (this.g95_1 == null ? 0 : getStringHashCode(this.g95_1)) | 0;
    result = imul(result, 31) + (this.h95_1 == null ? 0 : getStringHashCode(this.h95_1)) | 0;
    result = imul(result, 31) + (this.i95_1 == null ? 0 : getStringHashCode(this.i95_1)) | 0;
    result = imul(result, 31) + (this.j95_1 == null ? 0 : getStringHashCode(this.j95_1)) | 0;
    result = imul(result, 31) + (this.k95_1 == null ? 0 : getStringHashCode(this.k95_1)) | 0;
    result = imul(result, 31) + this.l95_1 | 0;
    result = imul(result, 31) + getBooleanHashCode(this.m95_1) | 0;
    result = imul(result, 31) + this.n95_1.hashCode() | 0;
    result = imul(result, 31) + (this.o95_1 == null ? 0 : getStringHashCode(this.o95_1)) | 0;
    result = imul(result, 31) + (this.p95_1 == null ? 0 : getStringHashCode(this.p95_1)) | 0;
    result = imul(result, 31) + this.q95_1.hashCode() | 0;
    result = imul(result, 31) + this.r95_1.hashCode() | 0;
    result = imul(result, 31) + (this.s95_1 == null ? 0 : getStringHashCode(this.s95_1)) | 0;
    result = imul(result, 31) + this.t95_1 | 0;
    result = imul(result, 31) + this.u95_1.hashCode() | 0;
    result = imul(result, 31) + this.v95_1.hashCode() | 0;
    result = imul(result, 31) + this.w95_1 | 0;
    result = imul(result, 31) + getBooleanHashCode(this.x95_1) | 0;
    result = imul(result, 31) + (this.y95_1 == null ? 0 : getStringHashCode(this.y95_1)) | 0;
    result = imul(result, 31) + (this.z95_1 == null ? 0 : getStringHashCode(this.z95_1)) | 0;
    result = imul(result, 31) + (this.a96_1 == null ? 0 : getStringHashCode(this.a96_1)) | 0;
    result = imul(result, 31) + (this.b96_1 == null ? 0 : getStringHashCode(this.b96_1)) | 0;
    result = imul(result, 31) + (this.c96_1 == null ? 0 : getStringHashCode(this.c96_1)) | 0;
    return result;
  };
  protoOf(Person).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof Person))
      return false;
    var tmp0_other_with_cast = other instanceof Person ? other : THROW_CCE();
    if (!this.f95_1.equals(tmp0_other_with_cast.f95_1))
      return false;
    if (!(this.g95_1 == tmp0_other_with_cast.g95_1))
      return false;
    if (!(this.h95_1 == tmp0_other_with_cast.h95_1))
      return false;
    if (!(this.i95_1 == tmp0_other_with_cast.i95_1))
      return false;
    if (!(this.j95_1 == tmp0_other_with_cast.j95_1))
      return false;
    if (!(this.k95_1 == tmp0_other_with_cast.k95_1))
      return false;
    if (!(this.l95_1 === tmp0_other_with_cast.l95_1))
      return false;
    if (!(this.m95_1 === tmp0_other_with_cast.m95_1))
      return false;
    if (!this.n95_1.equals(tmp0_other_with_cast.n95_1))
      return false;
    if (!(this.o95_1 == tmp0_other_with_cast.o95_1))
      return false;
    if (!(this.p95_1 == tmp0_other_with_cast.p95_1))
      return false;
    if (!this.q95_1.equals(tmp0_other_with_cast.q95_1))
      return false;
    if (!this.r95_1.equals(tmp0_other_with_cast.r95_1))
      return false;
    if (!(this.s95_1 == tmp0_other_with_cast.s95_1))
      return false;
    if (!(this.t95_1 === tmp0_other_with_cast.t95_1))
      return false;
    if (!this.u95_1.equals(tmp0_other_with_cast.u95_1))
      return false;
    if (!this.v95_1.equals(tmp0_other_with_cast.v95_1))
      return false;
    if (!(this.w95_1 === tmp0_other_with_cast.w95_1))
      return false;
    if (!(this.x95_1 === tmp0_other_with_cast.x95_1))
      return false;
    if (!(this.y95_1 == tmp0_other_with_cast.y95_1))
      return false;
    if (!(this.z95_1 == tmp0_other_with_cast.z95_1))
      return false;
    if (!(this.a96_1 == tmp0_other_with_cast.a96_1))
      return false;
    if (!(this.b96_1 == tmp0_other_with_cast.b96_1))
      return false;
    if (!(this.c96_1 == tmp0_other_with_cast.c96_1))
      return false;
    return true;
  };
  function Companion_93() {
  }
  var Companion_instance_94;
  function Companion_getInstance_96() {
    return Companion_instance_94;
  }
  function $serializer_90() {
    $serializer_instance_90 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonAndDisplayDetail', this, 4);
    tmp0_serialDesc.g4f('person', true);
    tmp0_serialDesc.g4f('parentJoin', true);
    tmp0_serialDesc.g4f('personPicture', true);
    tmp0_serialDesc.g4f('personPictureTransferJobItem', true);
    this.yjm_1 = tmp0_serialDesc;
  }
  protoOf($serializer_90).d44 = function () {
    return this.yjm_1;
  };
  protoOf($serializer_90).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_89()), get_nullable($serializer_getInstance_94()), get_nullable($serializer_getInstance_96()), get_nullable($serializer_getInstance_108())];
  };
  protoOf($serializer_90).f44 = function (decoder) {
    var tmp0_desc = this.yjm_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_input = decoder.v47(tmp0_desc);
    if (tmp8_input.k48()) {
      tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, $serializer_getInstance_89(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, $serializer_getInstance_94(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, $serializer_getInstance_96(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, $serializer_getInstance_108(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.j48(tmp0_desc, 0, $serializer_getInstance_89(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, $serializer_getInstance_94(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.j48(tmp0_desc, 2, $serializer_getInstance_96(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, $serializer_getInstance_108(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.w47(tmp0_desc);
    return PersonAndDisplayDetail_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_90).zjm = function (encoder, value) {
    var tmp0_desc = this.yjm_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.kfq_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_89(), value.kfq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.lfq_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_94(), value.lfq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.mfq_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, $serializer_getInstance_96(), value.mfq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.nfq_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, $serializer_getInstance_108(), value.nfq_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_90).e44 = function (encoder, value) {
    return this.zjm(encoder, value instanceof PersonAndDisplayDetail ? value : THROW_CCE());
  };
  var $serializer_instance_90;
  function $serializer_getInstance_90() {
    if ($serializer_instance_90 == null)
      new $serializer_90();
    return $serializer_instance_90;
  }
  function PersonAndDisplayDetail_init_$Init$(seen1, person, parentJoin, personPicture, personPictureTransferJobItem, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_90().yjm_1);
    }
    if (0 === (seen1 & 1))
      $this.kfq_1 = null;
    else
      $this.kfq_1 = person;
    if (0 === (seen1 & 2))
      $this.lfq_1 = null;
    else
      $this.lfq_1 = parentJoin;
    if (0 === (seen1 & 4))
      $this.mfq_1 = null;
    else
      $this.mfq_1 = personPicture;
    if (0 === (seen1 & 8))
      $this.nfq_1 = null;
    else
      $this.nfq_1 = personPictureTransferJobItem;
    return $this;
  }
  function PersonAndDisplayDetail_init_$Create$(seen1, person, parentJoin, personPicture, personPictureTransferJobItem, serializationConstructorMarker) {
    return PersonAndDisplayDetail_init_$Init$(seen1, person, parentJoin, personPicture, personPictureTransferJobItem, serializationConstructorMarker, objectCreate(protoOf(PersonAndDisplayDetail)));
  }
  function PersonAndDisplayDetail(person, parentJoin, personPicture, personPictureTransferJobItem) {
    person = person === VOID ? null : person;
    parentJoin = parentJoin === VOID ? null : parentJoin;
    personPicture = personPicture === VOID ? null : personPicture;
    personPictureTransferJobItem = personPictureTransferJobItem === VOID ? null : personPictureTransferJobItem;
    this.kfq_1 = person;
    this.lfq_1 = parentJoin;
    this.mfq_1 = personPicture;
    this.nfq_1 = personPictureTransferJobItem;
  }
  protoOf(PersonAndDisplayDetail).toString = function () {
    return 'PersonAndDisplayDetail(person=' + this.kfq_1 + ', parentJoin=' + this.lfq_1 + ', personPicture=' + this.mfq_1 + ', personPictureTransferJobItem=' + this.nfq_1 + ')';
  };
  protoOf(PersonAndDisplayDetail).hashCode = function () {
    var result = this.kfq_1 == null ? 0 : this.kfq_1.hashCode();
    result = imul(result, 31) + (this.lfq_1 == null ? 0 : this.lfq_1.hashCode()) | 0;
    result = imul(result, 31) + (this.mfq_1 == null ? 0 : this.mfq_1.hashCode()) | 0;
    result = imul(result, 31) + (this.nfq_1 == null ? 0 : this.nfq_1.hashCode()) | 0;
    return result;
  };
  protoOf(PersonAndDisplayDetail).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof PersonAndDisplayDetail))
      return false;
    var tmp0_other_with_cast = other instanceof PersonAndDisplayDetail ? other : THROW_CCE();
    if (!equals(this.kfq_1, tmp0_other_with_cast.kfq_1))
      return false;
    if (!equals(this.lfq_1, tmp0_other_with_cast.lfq_1))
      return false;
    if (!equals(this.mfq_1, tmp0_other_with_cast.mfq_1))
      return false;
    if (!equals(this.nfq_1, tmp0_other_with_cast.nfq_1))
      return false;
    return true;
  };
  function Companion_94() {
    this.ajn_1 = 1;
    this.bjn_1 = 0;
  }
  var Companion_instance_95;
  function Companion_getInstance_97() {
    return Companion_instance_95;
  }
  function $serializer_91() {
    $serializer_instance_91 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonAuth', this, 3);
    tmp0_serialDesc.g4f('personAuthUid', true);
    tmp0_serialDesc.g4f('passwordHash', true);
    tmp0_serialDesc.g4f('personAuthStatus', true);
    this.cjn_1 = tmp0_serialDesc;
  }
  protoOf($serializer_91).d44 = function () {
    return this.cjn_1;
  };
  protoOf($serializer_91).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance()];
  };
  protoOf($serializer_91).f44 = function (decoder) {
    var tmp0_desc = this.cjn_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = 0;
    var tmp7_input = decoder.v47(tmp0_desc);
    if (tmp7_input.k48()) {
      tmp4_local0 = tmp7_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp7_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp7_input.a48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp7_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp7_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp7_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp7_input.a48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp7_input.w47(tmp0_desc);
    return PersonAuth_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
  };
  protoOf($serializer_91).djn = function (encoder, value) {
    var tmp0_desc = this.cjn_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.cfn_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.cfn_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.dfn_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.dfn_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.efn_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 2, value.efn_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_91).e44 = function (encoder, value) {
    return this.djn(encoder, value instanceof PersonAuth ? value : THROW_CCE());
  };
  var $serializer_instance_91;
  function $serializer_getInstance_91() {
    if ($serializer_instance_91 == null)
      new $serializer_91();
    return $serializer_instance_91;
  }
  function PersonAuth_init_$Init$(seen1, personAuthUid, passwordHash, personAuthStatus, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_91().cjn_1);
    }
    if (0 === (seen1 & 1))
      $this.cfn_1 = new Long(0, 0);
    else
      $this.cfn_1 = personAuthUid;
    if (0 === (seen1 & 2))
      $this.dfn_1 = null;
    else
      $this.dfn_1 = passwordHash;
    if (0 === (seen1 & 4))
      $this.efn_1 = 0;
    else
      $this.efn_1 = personAuthStatus;
    return $this;
  }
  function PersonAuth_init_$Create$(seen1, personAuthUid, passwordHash, personAuthStatus, serializationConstructorMarker) {
    return PersonAuth_init_$Init$(seen1, personAuthUid, passwordHash, personAuthStatus, serializationConstructorMarker, objectCreate(protoOf(PersonAuth)));
  }
  function PersonAuth() {
    this.cfn_1 = new Long(0, 0);
    this.dfn_1 = null;
    this.efn_1 = 0;
  }
  function Companion_95() {
    this.ejn_1 = 'PBKDF2x2';
    this.fjn_1 = 678;
  }
  var Companion_instance_96;
  function Companion_getInstance_98() {
    return Companion_instance_96;
  }
  function PersonAuth2() {
    this.yfk_1 = new Long(0, 0);
    this.zfk_1 = null;
    this.afl_1 = null;
    this.bfl_1 = new Long(0, 0);
    this.cfl_1 = new Long(0, 0);
    this.dfl_1 = new Long(0, 0);
    this.efl_1 = new Long(0, 0);
  }
  function Companion_96() {
    this.gjn_1 = 43;
    this.hjn_1 = 0;
    this.ijn_1 = 1;
    this.jjn_1 = 2;
    this.kjn_1 = 4;
    this.ljn_1 = 8;
    this.mjn_1 = 16;
  }
  var Companion_instance_97;
  function Companion_getInstance_99() {
    return Companion_instance_97;
  }
  function $serializer_92() {
    $serializer_instance_92 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonGroup', this, 8);
    tmp0_serialDesc.g4f('groupUid', true);
    tmp0_serialDesc.g4f('groupMasterCsn', true);
    tmp0_serialDesc.g4f('groupLocalCsn', true);
    tmp0_serialDesc.g4f('groupLastChangedBy', true);
    tmp0_serialDesc.g4f('groupLct', true);
    tmp0_serialDesc.g4f('groupName', true);
    tmp0_serialDesc.g4f('groupActive', true);
    tmp0_serialDesc.g4f('personGroupFlag', true);
    this.njn_1 = tmp0_serialDesc;
  }
  protoOf($serializer_92).d44 = function () {
    return this.njn_1;
  };
  protoOf($serializer_92).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), IntSerializer_getInstance()];
  };
  protoOf($serializer_92).f44 = function (decoder) {
    var tmp0_desc = this.njn_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = 0;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = null;
    var tmp10_local6 = false;
    var tmp11_local7 = 0;
    var tmp12_input = decoder.v47(tmp0_desc);
    if (tmp12_input.k48()) {
      tmp4_local0 = tmp12_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.a48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.x47(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.a48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.a48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.x47(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.a48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.w47(tmp0_desc);
    return PersonGroup_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
  };
  protoOf($serializer_92).ojn = function (encoder, value) {
    var tmp0_desc = this.njn_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.rfs_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.rfs_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.sfs_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.sfs_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.tfs_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.tfs_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.ufs_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 3, value.ufs_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.vfs_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.vfs_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.wfs_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.wfs_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.xfs_1 === true)) {
      tmp1_output.b49(tmp0_desc, 6, value.xfs_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.yfs_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 7, value.yfs_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_92).e44 = function (encoder, value) {
    return this.ojn(encoder, value instanceof PersonGroup ? value : THROW_CCE());
  };
  var $serializer_instance_92;
  function $serializer_getInstance_92() {
    if ($serializer_instance_92 == null)
      new $serializer_92();
    return $serializer_instance_92;
  }
  function PersonGroup_init_$Init$(seen1, groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_92().njn_1);
    }
    if (0 === (seen1 & 1))
      $this.rfs_1 = new Long(0, 0);
    else
      $this.rfs_1 = groupUid;
    if (0 === (seen1 & 2))
      $this.sfs_1 = new Long(0, 0);
    else
      $this.sfs_1 = groupMasterCsn;
    if (0 === (seen1 & 4))
      $this.tfs_1 = new Long(0, 0);
    else
      $this.tfs_1 = groupLocalCsn;
    if (0 === (seen1 & 8))
      $this.ufs_1 = 0;
    else
      $this.ufs_1 = groupLastChangedBy;
    if (0 === (seen1 & 16))
      $this.vfs_1 = new Long(0, 0);
    else
      $this.vfs_1 = groupLct;
    if (0 === (seen1 & 32))
      $this.wfs_1 = null;
    else
      $this.wfs_1 = groupName;
    if (0 === (seen1 & 64))
      $this.xfs_1 = true;
    else
      $this.xfs_1 = groupActive;
    if (0 === (seen1 & 128))
      $this.yfs_1 = 0;
    else
      $this.yfs_1 = personGroupFlag;
    return $this;
  }
  function PersonGroup_init_$Create$(seen1, groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag, serializationConstructorMarker) {
    return PersonGroup_init_$Init$(seen1, groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag, serializationConstructorMarker, objectCreate(protoOf(PersonGroup)));
  }
  function PersonGroup() {
    this.rfs_1 = new Long(0, 0);
    this.sfs_1 = new Long(0, 0);
    this.tfs_1 = new Long(0, 0);
    this.ufs_1 = 0;
    this.vfs_1 = new Long(0, 0);
    this.wfs_1 = null;
    this.xfs_1 = true;
    this.yfs_1 = 0;
  }
  function PersonGroupMember_init_$Init$(personUid, groupUid, $this) {
    PersonGroupMember.call($this);
    $this.eft_1 = personUid;
    $this.fft_1 = groupUid;
    return $this;
  }
  function PersonGroupMember_init_$Create$(personUid, groupUid) {
    return PersonGroupMember_init_$Init$(personUid, groupUid, objectCreate(protoOf(PersonGroupMember)));
  }
  function Companion_97() {
    this.pjn_1 = 44;
  }
  var Companion_instance_98;
  function Companion_getInstance_100() {
    return Companion_instance_98;
  }
  function $serializer_93() {
    $serializer_instance_93 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonGroupMember', this, 8);
    tmp0_serialDesc.g4f('groupMemberUid', true);
    tmp0_serialDesc.g4f('groupMemberActive', true);
    tmp0_serialDesc.g4f('groupMemberPersonUid', true);
    tmp0_serialDesc.g4f('groupMemberGroupUid', true);
    tmp0_serialDesc.g4f('groupMemberMasterCsn', true);
    tmp0_serialDesc.g4f('groupMemberLocalCsn', true);
    tmp0_serialDesc.g4f('groupMemberLastChangedBy', true);
    tmp0_serialDesc.g4f('groupMemberLct', true);
    this.qjn_1 = tmp0_serialDesc;
  }
  protoOf($serializer_93).d44 = function () {
    return this.qjn_1;
  };
  protoOf($serializer_93).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_93).f44 = function (decoder) {
    var tmp0_desc = this.qjn_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = false;
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = 0;
    var tmp11_local7 = new Long(0, 0);
    var tmp12_input = decoder.v47(tmp0_desc);
    if (tmp12_input.k48()) {
      tmp4_local0 = tmp12_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.x47(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.a48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.x47(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.a48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.w47(tmp0_desc);
    return PersonGroupMember_init_$Create$_0(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
  };
  protoOf($serializer_93).rjn = function (encoder, value) {
    var tmp0_desc = this.qjn_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.cft_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.cft_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.dft_1 === true)) {
      tmp1_output.b49(tmp0_desc, 1, value.dft_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.eft_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.eft_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.fft_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.fft_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.gft_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.gft_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.hft_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.hft_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.ift_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 6, value.ift_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.jft_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.jft_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_93).e44 = function (encoder, value) {
    return this.rjn(encoder, value instanceof PersonGroupMember ? value : THROW_CCE());
  };
  var $serializer_instance_93;
  function $serializer_getInstance_93() {
    if ($serializer_instance_93 == null)
      new $serializer_93();
    return $serializer_instance_93;
  }
  function PersonGroupMember_init_$Init$_0(seen1, groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_93().qjn_1);
    }
    if (0 === (seen1 & 1))
      $this.cft_1 = new Long(0, 0);
    else
      $this.cft_1 = groupMemberUid;
    if (0 === (seen1 & 2))
      $this.dft_1 = true;
    else
      $this.dft_1 = groupMemberActive;
    if (0 === (seen1 & 4))
      $this.eft_1 = new Long(0, 0);
    else
      $this.eft_1 = groupMemberPersonUid;
    if (0 === (seen1 & 8))
      $this.fft_1 = new Long(0, 0);
    else
      $this.fft_1 = groupMemberGroupUid;
    if (0 === (seen1 & 16))
      $this.gft_1 = new Long(0, 0);
    else
      $this.gft_1 = groupMemberMasterCsn;
    if (0 === (seen1 & 32))
      $this.hft_1 = new Long(0, 0);
    else
      $this.hft_1 = groupMemberLocalCsn;
    if (0 === (seen1 & 64))
      $this.ift_1 = 0;
    else
      $this.ift_1 = groupMemberLastChangedBy;
    if (0 === (seen1 & 128))
      $this.jft_1 = new Long(0, 0);
    else
      $this.jft_1 = groupMemberLct;
    return $this;
  }
  function PersonGroupMember_init_$Create$_0(seen1, groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct, serializationConstructorMarker) {
    return PersonGroupMember_init_$Init$_0(seen1, groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct, serializationConstructorMarker, objectCreate(protoOf(PersonGroupMember)));
  }
  function PersonGroupMember() {
    this.cft_1 = new Long(0, 0);
    this.dft_1 = true;
    this.eft_1 = new Long(0, 0);
    this.fft_1 = new Long(0, 0);
    this.gft_1 = new Long(0, 0);
    this.hft_1 = new Long(0, 0);
    this.ift_1 = 0;
    this.jft_1 = new Long(0, 0);
  }
  function Companion_98() {
    this.sjn_1 = 512;
    this.tjn_1 = 0;
    this.ujn_1 = 1;
    this.vjn_1 = 2;
    this.wjn_1 = 1;
    this.xjn_1 = 2;
    this.yjn_1 = 4;
    this.zjn_1 = 8;
  }
  var Companion_instance_99;
  function Companion_getInstance_101() {
    return Companion_instance_99;
  }
  function $serializer_94() {
    $serializer_instance_94 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonParentJoin', this, 14);
    tmp0_serialDesc.g4f('ppjUid', true);
    tmp0_serialDesc.g4f('ppjPcsn', true);
    tmp0_serialDesc.g4f('ppjLcsn', true);
    tmp0_serialDesc.g4f('ppjLcb', true);
    tmp0_serialDesc.g4f('ppjLct', true);
    tmp0_serialDesc.g4f('ppjParentPersonUid', true);
    tmp0_serialDesc.g4f('ppjMinorPersonUid', true);
    tmp0_serialDesc.g4f('ppjRelationship', true);
    tmp0_serialDesc.g4f('ppjEmail', true);
    tmp0_serialDesc.g4f('ppjPhone', true);
    tmp0_serialDesc.g4f('ppjInactive', true);
    tmp0_serialDesc.g4f('ppjStatus', true);
    tmp0_serialDesc.g4f('ppjApprovalTiemstamp', true);
    tmp0_serialDesc.g4f('ppjApprovalIpAddr', true);
    this.ajo_1 = tmp0_serialDesc;
  }
  protoOf($serializer_94).d44 = function () {
    return this.ajo_1;
  };
  protoOf($serializer_94).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_94).f44 = function (decoder) {
    var tmp0_desc = this.ajo_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = 0;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = new Long(0, 0);
    var tmp11_local7 = 0;
    var tmp12_local8 = null;
    var tmp13_local9 = null;
    var tmp14_local10 = false;
    var tmp15_local11 = 0;
    var tmp16_local12 = new Long(0, 0);
    var tmp17_local13 = null;
    var tmp18_input = decoder.v47(tmp0_desc);
    if (tmp18_input.k48()) {
      tmp4_local0 = tmp18_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp18_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp18_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp18_input.a48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp18_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp18_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp18_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp18_input.a48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp18_input.j48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp18_input.j48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp18_input.x47(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp18_input.a48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp18_input.b48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp18_input.j48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp18_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp18_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp18_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp18_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp18_input.a48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp18_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp18_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp18_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp18_input.a48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp18_input.j48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp18_input.j48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp18_input.x47(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp18_input.a48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp18_input.b48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp18_input.j48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp18_input.w47(tmp0_desc);
    return PersonParentJoin_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null);
  };
  protoOf($serializer_94).bjo = function (encoder, value) {
    var tmp0_desc = this.ajo_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.ofq_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.ofq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.pfq_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.pfq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.qfq_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.qfq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.rfq_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 3, value.rfq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.sfq_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.sfq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.tfq_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.tfq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.ufq_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.ufq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.vfq_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 7, value.vfq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.wfq_1 == null)) {
      tmp1_output.n49(tmp0_desc, 8, StringSerializer_getInstance(), value.wfq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.xfq_1 == null)) {
      tmp1_output.n49(tmp0_desc, 9, StringSerializer_getInstance(), value.xfq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.yfq_1 === false)) {
      tmp1_output.b49(tmp0_desc, 10, value.yfq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !(value.zfq_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 11, value.zfq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !value.afr_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 12, value.afr_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !(value.bfr_1 == null)) {
      tmp1_output.n49(tmp0_desc, 13, StringSerializer_getInstance(), value.bfr_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_94).e44 = function (encoder, value) {
    return this.bjo(encoder, value instanceof PersonParentJoin ? value : THROW_CCE());
  };
  var $serializer_instance_94;
  function $serializer_getInstance_94() {
    if ($serializer_instance_94 == null)
      new $serializer_94();
    return $serializer_instance_94;
  }
  function PersonParentJoin_init_$Init$(seen1, ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_94().ajo_1);
    }
    if (0 === (seen1 & 1))
      $this.ofq_1 = new Long(0, 0);
    else
      $this.ofq_1 = ppjUid;
    if (0 === (seen1 & 2))
      $this.pfq_1 = new Long(0, 0);
    else
      $this.pfq_1 = ppjPcsn;
    if (0 === (seen1 & 4))
      $this.qfq_1 = new Long(0, 0);
    else
      $this.qfq_1 = ppjLcsn;
    if (0 === (seen1 & 8))
      $this.rfq_1 = 0;
    else
      $this.rfq_1 = ppjLcb;
    if (0 === (seen1 & 16))
      $this.sfq_1 = new Long(0, 0);
    else
      $this.sfq_1 = ppjLct;
    if (0 === (seen1 & 32))
      $this.tfq_1 = new Long(0, 0);
    else
      $this.tfq_1 = ppjParentPersonUid;
    if (0 === (seen1 & 64))
      $this.ufq_1 = new Long(0, 0);
    else
      $this.ufq_1 = ppjMinorPersonUid;
    if (0 === (seen1 & 128))
      $this.vfq_1 = 0;
    else
      $this.vfq_1 = ppjRelationship;
    if (0 === (seen1 & 256))
      $this.wfq_1 = null;
    else
      $this.wfq_1 = ppjEmail;
    if (0 === (seen1 & 512))
      $this.xfq_1 = null;
    else
      $this.xfq_1 = ppjPhone;
    if (0 === (seen1 & 1024))
      $this.yfq_1 = false;
    else
      $this.yfq_1 = ppjInactive;
    if (0 === (seen1 & 2048))
      $this.zfq_1 = 0;
    else
      $this.zfq_1 = ppjStatus;
    if (0 === (seen1 & 4096))
      $this.afr_1 = new Long(0, 0);
    else
      $this.afr_1 = ppjApprovalTiemstamp;
    if (0 === (seen1 & 8192))
      $this.bfr_1 = null;
    else
      $this.bfr_1 = ppjApprovalIpAddr;
    return $this;
  }
  function PersonParentJoin_init_$Create$(seen1, ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr, serializationConstructorMarker) {
    return PersonParentJoin_init_$Init$(seen1, ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr, serializationConstructorMarker, objectCreate(protoOf(PersonParentJoin)));
  }
  function PersonParentJoin(ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) {
    ppjUid = ppjUid === VOID ? new Long(0, 0) : ppjUid;
    ppjPcsn = ppjPcsn === VOID ? new Long(0, 0) : ppjPcsn;
    ppjLcsn = ppjLcsn === VOID ? new Long(0, 0) : ppjLcsn;
    ppjLcb = ppjLcb === VOID ? 0 : ppjLcb;
    ppjLct = ppjLct === VOID ? new Long(0, 0) : ppjLct;
    ppjParentPersonUid = ppjParentPersonUid === VOID ? new Long(0, 0) : ppjParentPersonUid;
    ppjMinorPersonUid = ppjMinorPersonUid === VOID ? new Long(0, 0) : ppjMinorPersonUid;
    ppjRelationship = ppjRelationship === VOID ? 0 : ppjRelationship;
    ppjEmail = ppjEmail === VOID ? null : ppjEmail;
    ppjPhone = ppjPhone === VOID ? null : ppjPhone;
    ppjInactive = ppjInactive === VOID ? false : ppjInactive;
    ppjStatus = ppjStatus === VOID ? 0 : ppjStatus;
    ppjApprovalTiemstamp = ppjApprovalTiemstamp === VOID ? new Long(0, 0) : ppjApprovalTiemstamp;
    ppjApprovalIpAddr = ppjApprovalIpAddr === VOID ? null : ppjApprovalIpAddr;
    this.ofq_1 = ppjUid;
    this.pfq_1 = ppjPcsn;
    this.qfq_1 = ppjLcsn;
    this.rfq_1 = ppjLcb;
    this.sfq_1 = ppjLct;
    this.tfq_1 = ppjParentPersonUid;
    this.ufq_1 = ppjMinorPersonUid;
    this.vfq_1 = ppjRelationship;
    this.wfq_1 = ppjEmail;
    this.xfq_1 = ppjPhone;
    this.yfq_1 = ppjInactive;
    this.zfq_1 = ppjStatus;
    this.afr_1 = ppjApprovalTiemstamp;
    this.bfr_1 = ppjApprovalIpAddr;
  }
  protoOf(PersonParentJoin).toString = function () {
    return 'PersonParentJoin(ppjUid=' + this.ofq_1.toString() + ', ppjPcsn=' + this.pfq_1.toString() + ', ppjLcsn=' + this.qfq_1.toString() + ', ppjLcb=' + this.rfq_1 + ', ppjLct=' + this.sfq_1.toString() + ', ppjParentPersonUid=' + this.tfq_1.toString() + ', ppjMinorPersonUid=' + this.ufq_1.toString() + ', ppjRelationship=' + this.vfq_1 + ', ppjEmail=' + this.wfq_1 + ', ppjPhone=' + this.xfq_1 + ', ppjInactive=' + this.yfq_1 + ', ppjStatus=' + this.zfq_1 + ', ppjApprovalTiemstamp=' + this.afr_1.toString() + ', ppjApprovalIpAddr=' + this.bfr_1 + ')';
  };
  protoOf(PersonParentJoin).hashCode = function () {
    var result = this.ofq_1.hashCode();
    result = imul(result, 31) + this.pfq_1.hashCode() | 0;
    result = imul(result, 31) + this.qfq_1.hashCode() | 0;
    result = imul(result, 31) + this.rfq_1 | 0;
    result = imul(result, 31) + this.sfq_1.hashCode() | 0;
    result = imul(result, 31) + this.tfq_1.hashCode() | 0;
    result = imul(result, 31) + this.ufq_1.hashCode() | 0;
    result = imul(result, 31) + this.vfq_1 | 0;
    result = imul(result, 31) + (this.wfq_1 == null ? 0 : getStringHashCode(this.wfq_1)) | 0;
    result = imul(result, 31) + (this.xfq_1 == null ? 0 : getStringHashCode(this.xfq_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.yfq_1) | 0;
    result = imul(result, 31) + this.zfq_1 | 0;
    result = imul(result, 31) + this.afr_1.hashCode() | 0;
    result = imul(result, 31) + (this.bfr_1 == null ? 0 : getStringHashCode(this.bfr_1)) | 0;
    return result;
  };
  protoOf(PersonParentJoin).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof PersonParentJoin))
      return false;
    var tmp0_other_with_cast = other instanceof PersonParentJoin ? other : THROW_CCE();
    if (!this.ofq_1.equals(tmp0_other_with_cast.ofq_1))
      return false;
    if (!this.pfq_1.equals(tmp0_other_with_cast.pfq_1))
      return false;
    if (!this.qfq_1.equals(tmp0_other_with_cast.qfq_1))
      return false;
    if (!(this.rfq_1 === tmp0_other_with_cast.rfq_1))
      return false;
    if (!this.sfq_1.equals(tmp0_other_with_cast.sfq_1))
      return false;
    if (!this.tfq_1.equals(tmp0_other_with_cast.tfq_1))
      return false;
    if (!this.ufq_1.equals(tmp0_other_with_cast.ufq_1))
      return false;
    if (!(this.vfq_1 === tmp0_other_with_cast.vfq_1))
      return false;
    if (!(this.wfq_1 == tmp0_other_with_cast.wfq_1))
      return false;
    if (!(this.xfq_1 == tmp0_other_with_cast.xfq_1))
      return false;
    if (!(this.yfq_1 === tmp0_other_with_cast.yfq_1))
      return false;
    if (!(this.zfq_1 === tmp0_other_with_cast.zfq_1))
      return false;
    if (!this.afr_1.equals(tmp0_other_with_cast.afr_1))
      return false;
    if (!(this.bfr_1 == tmp0_other_with_cast.bfr_1))
      return false;
    return true;
  };
  function Companion_99() {
  }
  protoOf(Companion_99).a4r = function () {
    return $serializer_getInstance_95();
  };
  var Companion_instance_100;
  function Companion_getInstance_102() {
    return Companion_instance_100;
  }
  function $serializer_95() {
    $serializer_instance_95 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonParentJoinAndMinorPerson', this, 2);
    tmp0_serialDesc.g4f('personParentJoin', true);
    tmp0_serialDesc.g4f('minorPerson', true);
    this.cjo_1 = tmp0_serialDesc;
  }
  protoOf($serializer_95).d44 = function () {
    return this.cjo_1;
  };
  protoOf($serializer_95).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_94()), get_nullable($serializer_getInstance_89())];
  };
  protoOf($serializer_95).f44 = function (decoder) {
    var tmp0_desc = this.cjo_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_input = decoder.v47(tmp0_desc);
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, $serializer_getInstance_94(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_89(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.j48(tmp0_desc, 0, $serializer_getInstance_94(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, $serializer_getInstance_89(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return PersonParentJoinAndMinorPerson_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_95).djo = function (encoder, value) {
    var tmp0_desc = this.cjo_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.qgb_1 == null)) {
      tmp1_output.n49(tmp0_desc, 0, $serializer_getInstance_94(), value.qgb_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.rgb_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, $serializer_getInstance_89(), value.rgb_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_95).e44 = function (encoder, value) {
    return this.djo(encoder, value instanceof PersonParentJoinAndMinorPerson ? value : THROW_CCE());
  };
  var $serializer_instance_95;
  function $serializer_getInstance_95() {
    if ($serializer_instance_95 == null)
      new $serializer_95();
    return $serializer_instance_95;
  }
  function PersonParentJoinAndMinorPerson_init_$Init$(seen1, personParentJoin, minorPerson, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_95().cjo_1);
    }
    if (0 === (seen1 & 1))
      $this.qgb_1 = null;
    else
      $this.qgb_1 = personParentJoin;
    if (0 === (seen1 & 2))
      $this.rgb_1 = null;
    else
      $this.rgb_1 = minorPerson;
    return $this;
  }
  function PersonParentJoinAndMinorPerson_init_$Create$(seen1, personParentJoin, minorPerson, serializationConstructorMarker) {
    return PersonParentJoinAndMinorPerson_init_$Init$(seen1, personParentJoin, minorPerson, serializationConstructorMarker, objectCreate(protoOf(PersonParentJoinAndMinorPerson)));
  }
  function PersonParentJoinAndMinorPerson(personParentJoin, minorPerson) {
    personParentJoin = personParentJoin === VOID ? null : personParentJoin;
    minorPerson = minorPerson === VOID ? null : minorPerson;
    this.qgb_1 = personParentJoin;
    this.rgb_1 = minorPerson;
  }
  protoOf(PersonParentJoinAndMinorPerson).ejo = function (personParentJoin, minorPerson) {
    return new PersonParentJoinAndMinorPerson(personParentJoin, minorPerson);
  };
  protoOf(PersonParentJoinAndMinorPerson).fjo = function (personParentJoin, minorPerson, $super) {
    personParentJoin = personParentJoin === VOID ? this.qgb_1 : personParentJoin;
    minorPerson = minorPerson === VOID ? this.rgb_1 : minorPerson;
    return $super === VOID ? this.ejo(personParentJoin, minorPerson) : $super.ejo.call(this, personParentJoin, minorPerson);
  };
  protoOf(PersonParentJoinAndMinorPerson).toString = function () {
    return 'PersonParentJoinAndMinorPerson(personParentJoin=' + this.qgb_1 + ', minorPerson=' + this.rgb_1 + ')';
  };
  protoOf(PersonParentJoinAndMinorPerson).hashCode = function () {
    var result = this.qgb_1 == null ? 0 : this.qgb_1.hashCode();
    result = imul(result, 31) + (this.rgb_1 == null ? 0 : this.rgb_1.hashCode()) | 0;
    return result;
  };
  protoOf(PersonParentJoinAndMinorPerson).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof PersonParentJoinAndMinorPerson))
      return false;
    var tmp0_other_with_cast = other instanceof PersonParentJoinAndMinorPerson ? other : THROW_CCE();
    if (!equals(this.qgb_1, tmp0_other_with_cast.qgb_1))
      return false;
    if (!equals(this.rgb_1, tmp0_other_with_cast.rgb_1))
      return false;
    return true;
  };
  function Companion_100() {
    this.gjo_1 = 50;
  }
  protoOf(Companion_100).a4r = function () {
    return $serializer_getInstance_96();
  };
  var Companion_instance_101;
  function Companion_getInstance_103() {
    return Companion_instance_101;
  }
  function $serializer_96() {
    $serializer_instance_96 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonPicture', this, 6);
    tmp0_serialDesc.g4f('personPictureUid', true);
    tmp0_serialDesc.g4f('personPictureLct', true);
    tmp0_serialDesc.g4f('personPictureUri', true);
    tmp0_serialDesc.g4f('personPictureThumbnailUri', true);
    tmp0_serialDesc.g4f('fileSize', true);
    tmp0_serialDesc.g4f('personPictureActive', true);
    this.hjo_1 = tmp0_serialDesc;
  }
  protoOf($serializer_96).d44 = function () {
    return this.hjo_1;
  };
  protoOf($serializer_96).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_96).f44 = function (decoder) {
    var tmp0_desc = this.hjo_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = 0;
    var tmp9_local5 = false;
    var tmp10_input = decoder.v47(tmp0_desc);
    if (tmp10_input.k48()) {
      tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.a48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.x47(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.a48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.x47(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.w47(tmp0_desc);
    return PersonPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_96).ijo = function (encoder, value) {
    var tmp0_desc = this.hjo_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.d96_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.d96_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.e96_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.e96_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.f96_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.f96_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.g96_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.g96_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.h96_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 4, value.h96_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.i96_1 === true)) {
      tmp1_output.b49(tmp0_desc, 5, value.i96_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_96).e44 = function (encoder, value) {
    return this.ijo(encoder, value instanceof PersonPicture ? value : THROW_CCE());
  };
  var $serializer_instance_96;
  function $serializer_getInstance_96() {
    if ($serializer_instance_96 == null)
      new $serializer_96();
    return $serializer_instance_96;
  }
  function PersonPicture_init_$Init$(seen1, personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_96().hjo_1);
    }
    if (0 === (seen1 & 1))
      $this.d96_1 = new Long(0, 0);
    else
      $this.d96_1 = personPictureUid;
    if (0 === (seen1 & 2))
      $this.e96_1 = new Long(0, 0);
    else
      $this.e96_1 = personPictureLct;
    if (0 === (seen1 & 4))
      $this.f96_1 = null;
    else
      $this.f96_1 = personPictureUri;
    if (0 === (seen1 & 8))
      $this.g96_1 = null;
    else
      $this.g96_1 = personPictureThumbnailUri;
    if (0 === (seen1 & 16))
      $this.h96_1 = 0;
    else
      $this.h96_1 = fileSize;
    if (0 === (seen1 & 32))
      $this.i96_1 = true;
    else
      $this.i96_1 = personPictureActive;
    return $this;
  }
  function PersonPicture_init_$Create$(seen1, personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive, serializationConstructorMarker) {
    return PersonPicture_init_$Init$(seen1, personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive, serializationConstructorMarker, objectCreate(protoOf(PersonPicture)));
  }
  function PersonPicture(personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive) {
    personPictureUid = personPictureUid === VOID ? new Long(0, 0) : personPictureUid;
    personPictureLct = personPictureLct === VOID ? new Long(0, 0) : personPictureLct;
    personPictureUri = personPictureUri === VOID ? null : personPictureUri;
    personPictureThumbnailUri = personPictureThumbnailUri === VOID ? null : personPictureThumbnailUri;
    fileSize = fileSize === VOID ? 0 : fileSize;
    personPictureActive = personPictureActive === VOID ? true : personPictureActive;
    this.d96_1 = personPictureUid;
    this.e96_1 = personPictureLct;
    this.f96_1 = personPictureUri;
    this.g96_1 = personPictureThumbnailUri;
    this.h96_1 = fileSize;
    this.i96_1 = personPictureActive;
  }
  protoOf(PersonPicture).toString = function () {
    return 'PersonPicture(personPictureUid=' + this.d96_1.toString() + ', personPictureLct=' + this.e96_1.toString() + ', personPictureUri=' + this.f96_1 + ', personPictureThumbnailUri=' + this.g96_1 + ', fileSize=' + this.h96_1 + ', personPictureActive=' + this.i96_1 + ')';
  };
  protoOf(PersonPicture).hashCode = function () {
    var result = this.d96_1.hashCode();
    result = imul(result, 31) + this.e96_1.hashCode() | 0;
    result = imul(result, 31) + (this.f96_1 == null ? 0 : getStringHashCode(this.f96_1)) | 0;
    result = imul(result, 31) + (this.g96_1 == null ? 0 : getStringHashCode(this.g96_1)) | 0;
    result = imul(result, 31) + this.h96_1 | 0;
    result = imul(result, 31) + getBooleanHashCode(this.i96_1) | 0;
    return result;
  };
  protoOf(PersonPicture).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof PersonPicture))
      return false;
    var tmp0_other_with_cast = other instanceof PersonPicture ? other : THROW_CCE();
    if (!this.d96_1.equals(tmp0_other_with_cast.d96_1))
      return false;
    if (!this.e96_1.equals(tmp0_other_with_cast.e96_1))
      return false;
    if (!(this.f96_1 == tmp0_other_with_cast.f96_1))
      return false;
    if (!(this.g96_1 == tmp0_other_with_cast.g96_1))
      return false;
    if (!(this.h96_1 === tmp0_other_with_cast.h96_1))
      return false;
    if (!(this.i96_1 === tmp0_other_with_cast.i96_1))
      return false;
    return true;
  };
  function Companion_101() {
    Companion_instance_102 = this;
    this.jjo_1 = 101;
    this.kjo_1 = 300;
    this.ljo_1 = 301;
    this.mjo_1 = 302;
    this.njo_1 = 304;
    this.ojo_1 = 306;
    this.pjo_1 = 307;
    this.qjo_1 = 308;
    this.rjo_1 = 309;
    this.sjo_1 = 0;
    this.tjo_1 = 800;
    this.ujo_1 = 801;
    this.vjo_1 = 802;
    this.wjo_1 = 803;
    this.xjo_1 = 804;
    this.yjo_1 = 805;
    this.zjo_1 = new Long(100000, 0);
    this.ajp_1 = new Long(100001, 0);
    this.bjp_1 = new Long(100002, 0);
    this.cjp_1 = new Long(100003, 0);
    this.djp_1 = new Long(100004, 0);
    this.ejp_1 = new Long(100005, 0);
    this.fjp_1 = 1;
    this.gjp_1 = 2;
    this.hjp_1 = 3;
    this.ijp_1 = 4;
    this.jjp_1 = 5;
    this.kjp_1 = 6;
    this.ljp_1 = 7;
    this.mjp_1 = 8;
    this.njp_1 = 9;
    this.ojp_1 = 10;
    this.pjp_1 = 11;
    this.qjp_1 = 12;
    var tmp = this;
    // Inline function 'kotlin.apply' call
    var this_0 = new Report();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_TEMPLATES.<anonymous>' call
    this_0.cgo_1 = new Long(100000, 0);
    this_0.ogo_1 = 'Blank report';
    this_0.pgo_1 = 'Start ';
    this_0.sgo_1 = true;
    this_0.tgo_1 = 0;
    this_0.ugo_1 = 1;
    this_0.vgo_1 = 2;
    var tmp_0 = this_0;
    Companion_getInstance_106();
    Companion_getInstance_106();
    Companion_getInstance_106();
    tmp_0.qgo_1 = trimIndent('                \n                        [{\n                          "reportSeriesUid": 0,\n                          "reportSeriesName": "Series 1",\n                          "reportSeriesYAxis": ' + 200 + ',\n                          "reportSeriesVisualType": ' + 100 + ',\n                          "reportSeriesSubGroup": ' + 0 + '\n                        }]\n                    ');
    var tmp_1 = this_0;
    // Inline function 'kotlin.apply' call
    var this_1 = new Report();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_TEMPLATES.<anonymous>' call
    this_1.cgo_1 = new Long(100001, 0);
    this_1.ogo_1 = 'Content usage over time';
    this_1.pgo_1 = 'Total content ';
    this_1.ego_1 = 306;
    this_1.sgo_1 = true;
    this_1.ugo_1 = 3;
    this_1.vgo_1 = 4;
    var tmp_2 = this_1;
    Companion_getInstance_106();
    Companion_getInstance_106();
    Companion_getInstance_106();
    tmp_2.qgo_1 = trimIndent('                \n                        [{\n                          "reportSeriesUid": 0,\n                          "reportSeriesName": "Series 1",\n                          "reportSeriesYAxis": ' + 200 + ',\n                          "reportSeriesVisualType": ' + 100 + ',\n                          "reportSeriesSubGroup": ' + 0 + '\n                        }]\n                    ');
    var tmp_3 = this_1;
    // Inline function 'kotlin.apply' call
    var this_2 = new Report();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_TEMPLATES.<anonymous>' call
    this_2.cgo_1 = new Long(100002, 0);
    this_2.ogo_1 = 'Unique content users over time';
    this_2.pgo_1 = 'Number of active users over time';
    this_2.ego_1 = 302;
    this_2.sgo_1 = true;
    this_2.ugo_1 = 5;
    this_2.vgo_1 = 6;
    var tmp_4 = this_2;
    Companion_getInstance_106();
    Companion_getInstance_106();
    Companion_getInstance_106();
    tmp_4.qgo_1 = trimIndent('                \n                        [{\n                         "reportSeriesUid": 0,\n                         "reportSeriesName": "Series 1",\n                         "reportSeriesYAxis": ' + 204 + ',\n                         "reportSeriesVisualType": ' + 100 + ',\n                         "reportSeriesSubGroup": ' + 0 + '\n                        }]\n                    ');
    var tmp_5 = this_2;
    // Inline function 'kotlin.apply' call
    var this_3 = new Report();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_TEMPLATES.<anonymous>' call
    this_3.cgo_1 = new Long(100003, 0);
    this_3.ogo_1 = 'Attendance over time by class';
    this_3.pgo_1 = 'Percentage of students attending over time';
    this_3.sgo_1 = true;
    this_3.ego_1 = 307;
    this_3.ugo_1 = 7;
    this_3.vgo_1 = 8;
    var tmp_6 = this_3;
    Companion_getInstance_106();
    Companion_getInstance_106();
    Companion_getInstance_106();
    tmp_6.qgo_1 = trimIndent('                \n                        [{\n                         "reportSeriesUid": 0,\n                         "reportSeriesName": "Series 1",\n                         "reportSeriesYAxis": ' + 211 + ',\n                          "reportSeriesVisualType": ' + 100 + ',\n                          "reportSeriesSubGroup": ' + 0 + '\n                        }]\n                        ');
    var tmp_7 = this_3;
    // Inline function 'kotlin.apply' call
    var this_4 = new Report();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_TEMPLATES.<anonymous>' call
    this_4.cgo_1 = new Long(100004, 0);
    this_4.ogo_1 = 'Content usage by class';
    this_4.pgo_1 = 'Total content usage duration subgroup by class';
    this_4.ego_1 = 307;
    this_4.sgo_1 = true;
    this_4.ugo_1 = 9;
    this_4.vgo_1 = 10;
    var tmp_8 = this_4;
    Companion_getInstance_106();
    Companion_getInstance_106();
    Companion_getInstance_106();
    tmp_8.qgo_1 = trimIndent('\n                        [{\n                            "reportSeriesUid ": 0,\n                            "reportSeriesName ": " Series 1",\n                            "reportSeriesYAxis": ' + 200 + ',\n                            "reportSeriesVisualType": ' + 100 + ',\n                            "reportSeriesSubGroup": ' + 0 + '\n                        }]\n                            ');
    var tmp_9 = this_4;
    // Inline function 'kotlin.apply' call
    var this_5 = new Report();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_TEMPLATES.<anonymous>' call
    this_5.cgo_1 = new Long(100005, 0);
    this_5.ogo_1 = 'Content completion';
    this_5.pgo_1 = 'Number of students who have completed selected content';
    this_5.sgo_1 = true;
    this_5.ego_1 = 304;
    this_5.ugo_1 = 11;
    this_5.vgo_1 = 12;
    var tmp_10 = this_5;
    Companion_getInstance_106();
    Companion_getInstance_106();
    Companion_getInstance_106();
    tmp_10.qgo_1 = trimIndent('\n                            [{\n                                "reportSeriesUid": 0,\n                                "reportSeriesName": "Series 1",\n                                "reportSeriesYAxis": ' + 206 + ',\n                                "reportSeriesVisualType": ' + 100 + ',\n                                "reportSeriesSubGroup": ' + 0 + '\n                            }]\n                            ');
    tmp.rjp_1 = listOf_0([tmp_1, tmp_3, tmp_5, tmp_7, tmp_9, this_5]);
  }
  var Companion_instance_102;
  function Companion_getInstance_104() {
    if (Companion_instance_102 == null)
      new Companion_101();
    return Companion_instance_102;
  }
  function $serializer_97() {
    $serializer_instance_97 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Report', this, 24);
    tmp0_serialDesc.g4f('reportUid', true);
    tmp0_serialDesc.g4f('reportOwnerUid', true);
    tmp0_serialDesc.g4f('xAxis', true);
    tmp0_serialDesc.g4f('reportDateRangeSelection', true);
    tmp0_serialDesc.g4f('fromDate', true);
    tmp0_serialDesc.g4f('fromRelTo', true);
    tmp0_serialDesc.g4f('fromRelOffSet', true);
    tmp0_serialDesc.g4f('fromRelUnit', true);
    tmp0_serialDesc.g4f('toDate', true);
    tmp0_serialDesc.g4f('toRelTo', true);
    tmp0_serialDesc.g4f('toRelOffSet', true);
    tmp0_serialDesc.g4f('toRelUnit', true);
    tmp0_serialDesc.g4f('reportTitle', true);
    tmp0_serialDesc.g4f('reportDescription', true);
    tmp0_serialDesc.g4f('reportSeries', true);
    tmp0_serialDesc.g4f('reportInactive', true);
    tmp0_serialDesc.g4f('isTemplate', true);
    tmp0_serialDesc.g4f('priority', true);
    tmp0_serialDesc.g4f('reportTitleId', true);
    tmp0_serialDesc.g4f('reportDescId', true);
    tmp0_serialDesc.g4f('reportMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('reportLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('reportLastChangedBy', true);
    tmp0_serialDesc.g4f('reportLct', true);
    this.sjp_1 = tmp0_serialDesc;
  }
  protoOf($serializer_97).d44 = function () {
    return this.sjp_1;
  };
  protoOf($serializer_97).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_97).f44 = function (decoder) {
    var tmp0_desc = this.sjp_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = 0;
    var tmp7_local3 = 0;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = 0;
    var tmp10_local6 = 0;
    var tmp11_local7 = 0;
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = 0;
    var tmp14_local10 = 0;
    var tmp15_local11 = 0;
    var tmp16_local12 = null;
    var tmp17_local13 = null;
    var tmp18_local14 = null;
    var tmp19_local15 = false;
    var tmp20_local16 = false;
    var tmp21_local17 = 0;
    var tmp22_local18 = 0;
    var tmp23_local19 = 0;
    var tmp24_local20 = new Long(0, 0);
    var tmp25_local21 = new Long(0, 0);
    var tmp26_local22 = 0;
    var tmp27_local23 = new Long(0, 0);
    var tmp28_input = decoder.v47(tmp0_desc);
    if (tmp28_input.k48()) {
      tmp4_local0 = tmp28_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp28_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp28_input.a48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp28_input.a48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp28_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp28_input.a48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp28_input.a48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp28_input.a48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp28_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp28_input.a48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp28_input.a48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp28_input.a48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp28_input.j48(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp28_input.j48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp28_input.j48(tmp0_desc, 14, StringSerializer_getInstance(), tmp18_local14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp28_input.x47(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp28_input.x47(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp28_input.a48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp28_input.a48(tmp0_desc, 18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp28_input.a48(tmp0_desc, 19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp24_local20 = tmp28_input.b48(tmp0_desc, 20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp25_local21 = tmp28_input.b48(tmp0_desc, 21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp26_local22 = tmp28_input.a48(tmp0_desc, 22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
      tmp27_local23 = tmp28_input.b48(tmp0_desc, 23);
      tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp28_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp28_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp28_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp28_input.a48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp28_input.a48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp28_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp28_input.a48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp28_input.a48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp28_input.a48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp28_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp28_input.a48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp28_input.a48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp28_input.a48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp28_input.j48(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp28_input.j48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp28_input.j48(tmp0_desc, 14, StringSerializer_getInstance(), tmp18_local14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp28_input.x47(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp28_input.x47(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp28_input.a48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp28_input.a48(tmp0_desc, 18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp28_input.a48(tmp0_desc, 19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp24_local20 = tmp28_input.b48(tmp0_desc, 20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp25_local21 = tmp28_input.b48(tmp0_desc, 21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp26_local22 = tmp28_input.a48(tmp0_desc, 22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          case 23:
            tmp27_local23 = tmp28_input.b48(tmp0_desc, 23);
            tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp28_input.w47(tmp0_desc);
    return Report_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, null);
  };
  protoOf($serializer_97).tjp = function (encoder, value) {
    var tmp0_desc = this.sjp_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.cgo_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.cgo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.dgo_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.dgo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.ego_1 === 300)) {
      tmp1_output.e49(tmp0_desc, 2, value.ego_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.fgo_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 3, value.fgo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.ggo_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.ggo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.hgo_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 5, value.hgo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.igo_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 6, value.igo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.jgo_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 7, value.jgo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.kgo_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.kgo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.lgo_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 9, value.lgo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.mgo_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 10, value.mgo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !(value.ngo_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 11, value.ngo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !(value.ogo_1 == null)) {
      tmp1_output.n49(tmp0_desc, 12, StringSerializer_getInstance(), value.ogo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !(value.pgo_1 == null)) {
      tmp1_output.n49(tmp0_desc, 13, StringSerializer_getInstance(), value.pgo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 14) ? true : !(value.qgo_1 == null)) {
      tmp1_output.n49(tmp0_desc, 14, StringSerializer_getInstance(), value.qgo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 15) ? true : !(value.rgo_1 === false)) {
      tmp1_output.b49(tmp0_desc, 15, value.rgo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 16) ? true : !(value.sgo_1 === false)) {
      tmp1_output.b49(tmp0_desc, 16, value.sgo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 17) ? true : !(value.tgo_1 === 1)) {
      tmp1_output.e49(tmp0_desc, 17, value.tgo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 18) ? true : !(value.ugo_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 18, value.ugo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 19) ? true : !(value.vgo_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 19, value.vgo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 20) ? true : !value.wgo_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 20, value.wgo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 21) ? true : !value.xgo_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 21, value.xgo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 22) ? true : !(value.ygo_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 22, value.ygo_1);
    }
    if (tmp1_output.r49(tmp0_desc, 23) ? true : !value.zgo_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 23, value.zgo_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_97).e44 = function (encoder, value) {
    return this.tjp(encoder, value instanceof Report ? value : THROW_CCE());
  };
  var $serializer_instance_97;
  function $serializer_getInstance_97() {
    if ($serializer_instance_97 == null)
      new $serializer_97();
    return $serializer_instance_97;
  }
  function Report_init_$Init$(seen1, reportUid, reportOwnerUid, xAxis, reportDateRangeSelection, fromDate, fromRelTo, fromRelOffSet, fromRelUnit, toDate, toRelTo, toRelOffSet, toRelUnit, reportTitle, reportDescription, reportSeries, reportInactive, isTemplate, priority, reportTitleId, reportDescId, reportMasterChangeSeqNum, reportLocalChangeSeqNum, reportLastChangedBy, reportLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_97().sjp_1);
    }
    if (0 === (seen1 & 1))
      $this.cgo_1 = new Long(0, 0);
    else
      $this.cgo_1 = reportUid;
    if (0 === (seen1 & 2))
      $this.dgo_1 = new Long(0, 0);
    else
      $this.dgo_1 = reportOwnerUid;
    if (0 === (seen1 & 4))
      $this.ego_1 = 300;
    else
      $this.ego_1 = xAxis;
    if (0 === (seen1 & 8))
      $this.fgo_1 = 0;
    else
      $this.fgo_1 = reportDateRangeSelection;
    if (0 === (seen1 & 16))
      $this.ggo_1 = new Long(0, 0);
    else
      $this.ggo_1 = fromDate;
    if (0 === (seen1 & 32))
      $this.hgo_1 = 0;
    else
      $this.hgo_1 = fromRelTo;
    if (0 === (seen1 & 64))
      $this.igo_1 = 0;
    else
      $this.igo_1 = fromRelOffSet;
    if (0 === (seen1 & 128))
      $this.jgo_1 = 0;
    else
      $this.jgo_1 = fromRelUnit;
    if (0 === (seen1 & 256))
      $this.kgo_1 = new Long(0, 0);
    else
      $this.kgo_1 = toDate;
    if (0 === (seen1 & 512))
      $this.lgo_1 = 0;
    else
      $this.lgo_1 = toRelTo;
    if (0 === (seen1 & 1024))
      $this.mgo_1 = 0;
    else
      $this.mgo_1 = toRelOffSet;
    if (0 === (seen1 & 2048))
      $this.ngo_1 = 0;
    else
      $this.ngo_1 = toRelUnit;
    if (0 === (seen1 & 4096))
      $this.ogo_1 = null;
    else
      $this.ogo_1 = reportTitle;
    if (0 === (seen1 & 8192))
      $this.pgo_1 = null;
    else
      $this.pgo_1 = reportDescription;
    if (0 === (seen1 & 16384))
      $this.qgo_1 = null;
    else
      $this.qgo_1 = reportSeries;
    if (0 === (seen1 & 32768))
      $this.rgo_1 = false;
    else
      $this.rgo_1 = reportInactive;
    if (0 === (seen1 & 65536))
      $this.sgo_1 = false;
    else
      $this.sgo_1 = isTemplate;
    if (0 === (seen1 & 131072))
      $this.tgo_1 = 1;
    else
      $this.tgo_1 = priority;
    if (0 === (seen1 & 262144))
      $this.ugo_1 = 0;
    else
      $this.ugo_1 = reportTitleId;
    if (0 === (seen1 & 524288))
      $this.vgo_1 = 0;
    else
      $this.vgo_1 = reportDescId;
    if (0 === (seen1 & 1048576))
      $this.wgo_1 = new Long(0, 0);
    else
      $this.wgo_1 = reportMasterChangeSeqNum;
    if (0 === (seen1 & 2097152))
      $this.xgo_1 = new Long(0, 0);
    else
      $this.xgo_1 = reportLocalChangeSeqNum;
    if (0 === (seen1 & 4194304))
      $this.ygo_1 = 0;
    else
      $this.ygo_1 = reportLastChangedBy;
    if (0 === (seen1 & 8388608))
      $this.zgo_1 = new Long(0, 0);
    else
      $this.zgo_1 = reportLct;
    return $this;
  }
  function Report_init_$Create$(seen1, reportUid, reportOwnerUid, xAxis, reportDateRangeSelection, fromDate, fromRelTo, fromRelOffSet, fromRelUnit, toDate, toRelTo, toRelOffSet, toRelUnit, reportTitle, reportDescription, reportSeries, reportInactive, isTemplate, priority, reportTitleId, reportDescId, reportMasterChangeSeqNum, reportLocalChangeSeqNum, reportLastChangedBy, reportLct, serializationConstructorMarker) {
    return Report_init_$Init$(seen1, reportUid, reportOwnerUid, xAxis, reportDateRangeSelection, fromDate, fromRelTo, fromRelOffSet, fromRelUnit, toDate, toRelTo, toRelOffSet, toRelUnit, reportTitle, reportDescription, reportSeries, reportInactive, isTemplate, priority, reportTitleId, reportDescId, reportMasterChangeSeqNum, reportLocalChangeSeqNum, reportLastChangedBy, reportLct, serializationConstructorMarker, objectCreate(protoOf(Report)));
  }
  function Report() {
    Companion_getInstance_104();
    this.cgo_1 = new Long(0, 0);
    this.dgo_1 = new Long(0, 0);
    this.ego_1 = 300;
    this.fgo_1 = 0;
    this.ggo_1 = new Long(0, 0);
    this.hgo_1 = 0;
    this.igo_1 = 0;
    this.jgo_1 = 0;
    this.kgo_1 = new Long(0, 0);
    this.lgo_1 = 0;
    this.mgo_1 = 0;
    this.ngo_1 = 0;
    this.ogo_1 = null;
    this.pgo_1 = null;
    this.qgo_1 = null;
    this.rgo_1 = false;
    this.sgo_1 = false;
    this.tgo_1 = 1;
    this.ugo_1 = 0;
    this.vgo_1 = 0;
    this.wgo_1 = new Long(0, 0);
    this.xgo_1 = new Long(0, 0);
    this.ygo_1 = 0;
    this.zgo_1 = new Long(0, 0);
  }
  protoOf(Report).equals = function (other) {
    if (this === other)
      return true;
    if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
      return false;
    if (!(other instanceof Report))
      THROW_CCE();
    if (!this.cgo_1.equals(other.cgo_1))
      return false;
    if (!this.dgo_1.equals(other.dgo_1))
      return false;
    if (!(this.ego_1 === other.ego_1))
      return false;
    if (!this.ggo_1.equals(other.ggo_1))
      return false;
    if (!(this.hgo_1 === other.hgo_1))
      return false;
    if (!(this.igo_1 === other.igo_1))
      return false;
    if (!(this.jgo_1 === other.jgo_1))
      return false;
    if (!this.kgo_1.equals(other.kgo_1))
      return false;
    if (!(this.lgo_1 === other.lgo_1))
      return false;
    if (!(this.mgo_1 === other.mgo_1))
      return false;
    if (!(this.ngo_1 === other.ngo_1))
      return false;
    if (!(this.ogo_1 == other.ogo_1))
      return false;
    if (!(this.pgo_1 == other.pgo_1))
      return false;
    if (!(this.qgo_1 == other.qgo_1))
      return false;
    if (!(this.rgo_1 === other.rgo_1))
      return false;
    if (!(this.sgo_1 === other.sgo_1))
      return false;
    if (!(this.tgo_1 === other.tgo_1))
      return false;
    if (!this.wgo_1.equals(other.wgo_1))
      return false;
    if (!this.xgo_1.equals(other.xgo_1))
      return false;
    if (!(this.ygo_1 === other.ygo_1))
      return false;
    return true;
  };
  protoOf(Report).hashCode = function () {
    var result = this.cgo_1.hashCode();
    result = imul(31, result) + this.dgo_1.hashCode() | 0;
    result = imul(31, result) + this.ego_1 | 0;
    result = imul(31, result) + this.ggo_1.hashCode() | 0;
    result = imul(31, result) + this.hgo_1 | 0;
    result = imul(31, result) + this.igo_1 | 0;
    result = imul(31, result) + this.jgo_1 | 0;
    result = imul(31, result) + this.kgo_1.hashCode() | 0;
    result = imul(31, result) + this.lgo_1 | 0;
    result = imul(31, result) + this.mgo_1 | 0;
    result = imul(31, result) + this.ngo_1 | 0;
    var tmp = imul(31, result);
    var tmp0_safe_receiver = this.ogo_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
    result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
    var tmp_0 = imul(31, result);
    var tmp2_safe_receiver = this.pgo_1;
    var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : getStringHashCode(tmp2_safe_receiver);
    result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0;
    var tmp_1 = imul(31, result);
    var tmp4_safe_receiver = this.qgo_1;
    var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : getStringHashCode(tmp4_safe_receiver);
    result = tmp_1 + (tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs) | 0;
    result = imul(31, result) + getBooleanHashCode(this.rgo_1) | 0;
    result = imul(31, result) + getBooleanHashCode(this.sgo_1) | 0;
    result = imul(31, result) + this.tgo_1 | 0;
    result = imul(31, result) + this.wgo_1.hashCode() | 0;
    result = imul(31, result) + this.xgo_1.hashCode() | 0;
    result = imul(31, result) + this.ygo_1 | 0;
    return result;
  };
  function Companion_102() {
    this.ujp_1 = 100;
    this.vjp_1 = 101;
    this.wjp_1 = 102;
    this.xjp_1 = 103;
    this.yjp_1 = 104;
    this.zjp_1 = 105;
    this.ajq_1 = 106;
    this.bjq_1 = 107;
    this.cjq_1 = 200;
    this.djq_1 = 201;
    this.ejq_1 = 202;
    this.fjq_1 = 203;
    this.gjq_1 = 205;
    this.hjq_1 = 206;
    this.ijq_1 = 207;
  }
  var Companion_instance_103;
  function Companion_getInstance_105() {
    return Companion_instance_103;
  }
  function $serializer_98() {
    $serializer_instance_98 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ReportFilter', this, 8);
    tmp0_serialDesc.g4f('reportFilterUid', true);
    tmp0_serialDesc.g4f('reportFilterSeriesUid', true);
    tmp0_serialDesc.g4f('reportFilterField', true);
    tmp0_serialDesc.g4f('reportFilterCondition', true);
    tmp0_serialDesc.g4f('reportFilterValue', true);
    tmp0_serialDesc.g4f('reportFilterDropDownValue', true);
    tmp0_serialDesc.g4f('reportFilterValueBetweenX', true);
    tmp0_serialDesc.g4f('reportFilterValueBetweenY', true);
    this.jjq_1 = tmp0_serialDesc;
  }
  protoOf($serializer_98).d44 = function () {
    return this.jjq_1;
  };
  protoOf($serializer_98).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_98).f44 = function (decoder) {
    var tmp0_desc = this.jjq_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = 0;
    var tmp5_local1 = 0;
    var tmp6_local2 = 0;
    var tmp7_local3 = 0;
    var tmp8_local4 = null;
    var tmp9_local5 = 0;
    var tmp10_local6 = null;
    var tmp11_local7 = null;
    var tmp12_input = decoder.v47(tmp0_desc);
    if (tmp12_input.k48()) {
      tmp4_local0 = tmp12_input.a48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.a48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.a48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.a48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.a48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.j48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.a48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.a48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.a48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.a48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.a48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.j48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.w47(tmp0_desc);
    return ReportFilter_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
  };
  protoOf($serializer_98).kjq = function (encoder, value) {
    var tmp0_desc = this.jjq_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.liz_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 0, value.liz_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.miz_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 1, value.miz_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.niz_1 === 100)) {
      tmp1_output.e49(tmp0_desc, 2, value.niz_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.oiz_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 3, value.oiz_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.piz_1 == null)) {
      tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.piz_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.qiz_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 5, value.qiz_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.riz_1 == null)) {
      tmp1_output.n49(tmp0_desc, 6, StringSerializer_getInstance(), value.riz_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.siz_1 == null)) {
      tmp1_output.n49(tmp0_desc, 7, StringSerializer_getInstance(), value.siz_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_98).e44 = function (encoder, value) {
    return this.kjq(encoder, value instanceof ReportFilter ? value : THROW_CCE());
  };
  var $serializer_instance_98;
  function $serializer_getInstance_98() {
    if ($serializer_instance_98 == null)
      new $serializer_98();
    return $serializer_instance_98;
  }
  function ReportFilter_init_$Init$(seen1, reportFilterUid, reportFilterSeriesUid, reportFilterField, reportFilterCondition, reportFilterValue, reportFilterDropDownValue, reportFilterValueBetweenX, reportFilterValueBetweenY, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_98().jjq_1);
    }
    if (0 === (seen1 & 1))
      $this.liz_1 = 0;
    else
      $this.liz_1 = reportFilterUid;
    if (0 === (seen1 & 2))
      $this.miz_1 = 0;
    else
      $this.miz_1 = reportFilterSeriesUid;
    if (0 === (seen1 & 4))
      $this.niz_1 = 100;
    else
      $this.niz_1 = reportFilterField;
    if (0 === (seen1 & 8))
      $this.oiz_1 = 0;
    else
      $this.oiz_1 = reportFilterCondition;
    if (0 === (seen1 & 16))
      $this.piz_1 = null;
    else
      $this.piz_1 = reportFilterValue;
    if (0 === (seen1 & 32))
      $this.qiz_1 = 0;
    else
      $this.qiz_1 = reportFilterDropDownValue;
    if (0 === (seen1 & 64))
      $this.riz_1 = null;
    else
      $this.riz_1 = reportFilterValueBetweenX;
    if (0 === (seen1 & 128))
      $this.siz_1 = null;
    else
      $this.siz_1 = reportFilterValueBetweenY;
    return $this;
  }
  function ReportFilter_init_$Create$(seen1, reportFilterUid, reportFilterSeriesUid, reportFilterField, reportFilterCondition, reportFilterValue, reportFilterDropDownValue, reportFilterValueBetweenX, reportFilterValueBetweenY, serializationConstructorMarker) {
    return ReportFilter_init_$Init$(seen1, reportFilterUid, reportFilterSeriesUid, reportFilterField, reportFilterCondition, reportFilterValue, reportFilterDropDownValue, reportFilterValueBetweenX, reportFilterValueBetweenY, serializationConstructorMarker, objectCreate(protoOf(ReportFilter)));
  }
  function ReportFilter() {
    this.liz_1 = 0;
    this.miz_1 = 0;
    this.niz_1 = 100;
    this.oiz_1 = 0;
    this.piz_1 = null;
    this.qiz_1 = 0;
    this.riz_1 = null;
    this.siz_1 = null;
  }
  protoOf(ReportFilter).equals = function (other) {
    if (this === other)
      return true;
    if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
      return false;
    if (!(other instanceof ReportFilter))
      THROW_CCE();
    if (!(this.liz_1 === other.liz_1))
      return false;
    if (!(this.miz_1 === other.miz_1))
      return false;
    if (!(this.niz_1 === other.niz_1))
      return false;
    if (!(this.oiz_1 === other.oiz_1))
      return false;
    if (!(this.piz_1 == other.piz_1))
      return false;
    if (!(this.qiz_1 === other.qiz_1))
      return false;
    if (!(this.riz_1 == other.riz_1))
      return false;
    if (!(this.siz_1 == other.siz_1))
      return false;
    return true;
  };
  protoOf(ReportFilter).hashCode = function () {
    var result = this.liz_1;
    result = imul(31, result) + this.miz_1 | 0;
    result = imul(31, result) + this.niz_1 | 0;
    result = imul(31, result) + this.oiz_1 | 0;
    var tmp = imul(31, result);
    var tmp0_safe_receiver = this.piz_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
    result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
    result = imul(31, result) + this.qiz_1 | 0;
    var tmp_0 = imul(31, result);
    var tmp2_safe_receiver = this.riz_1;
    var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : getStringHashCode(tmp2_safe_receiver);
    result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0;
    var tmp_1 = imul(31, result);
    var tmp4_safe_receiver = this.siz_1;
    var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : getStringHashCode(tmp4_safe_receiver);
    result = tmp_1 + (tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs) | 0;
    return result;
  };
  function Companion_103() {
    Companion_instance_104 = this;
    var tmp = this;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    tmp.ljq_1 = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_98())];
    this.mjq_1 = 100;
    this.njq_1 = 101;
    this.ojq_1 = 100;
    this.pjq_1 = 101;
    this.qjq_1 = 200;
    this.rjq_1 = 201;
    this.sjq_1 = 202;
    this.tjq_1 = 203;
    this.ujq_1 = 204;
    this.vjq_1 = 205;
    this.wjq_1 = 206;
    this.xjq_1 = 207;
    this.yjq_1 = 208;
    this.zjq_1 = 209;
    this.ajr_1 = 210;
    this.bjr_1 = 211;
    this.cjr_1 = 212;
    this.djr_1 = 213;
    this.ejr_1 = 214;
    this.fjr_1 = 0;
  }
  var Companion_instance_104;
  function Companion_getInstance_106() {
    if (Companion_instance_104 == null)
      new Companion_103();
    return Companion_instance_104;
  }
  function Companion_104() {
    this.gjr_1 = 21;
    this.hjr_1 = 1;
    this.ijr_1 = 2;
    this.jjr_1 = 3;
    this.kjr_1 = 4;
    this.ljr_1 = 5;
    this.mjr_1 = 1;
    this.njr_1 = 2;
    this.ojr_1 = 3;
    this.pjr_1 = 4;
    this.qjr_1 = 5;
    this.rjr_1 = 6;
    this.sjr_1 = 7;
    this.tjr_1 = 1;
    this.ujr_1 = 2;
    this.vjr_1 = 3;
    this.wjr_1 = 4;
    this.xjr_1 = 5;
    this.yjr_1 = 6;
    this.zjr_1 = 7;
    this.ajs_1 = 8;
    this.bjs_1 = 9;
    this.cjs_1 = 10;
    this.djs_1 = 11;
    this.ejs_1 = 12;
  }
  protoOf(Companion_104).a4r = function () {
    return $serializer_getInstance_99();
  };
  var Companion_instance_105;
  function Companion_getInstance_107() {
    return Companion_instance_105;
  }
  function $serializer_99() {
    $serializer_instance_99 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Schedule', this, 13);
    tmp0_serialDesc.g4f('scheduleUid', true);
    tmp0_serialDesc.g4f('sceduleStartTime', true);
    tmp0_serialDesc.g4f('scheduleEndTime', true);
    tmp0_serialDesc.g4f('scheduleDay', true);
    tmp0_serialDesc.g4f('scheduleMonth', true);
    tmp0_serialDesc.g4f('scheduleFrequency', true);
    tmp0_serialDesc.g4f('umCalendarUid', true);
    tmp0_serialDesc.g4f('scheduleClazzUid', true);
    tmp0_serialDesc.g4f('scheduleMasterChangeSeqNum', true);
    tmp0_serialDesc.g4f('scheduleLocalChangeSeqNum', true);
    tmp0_serialDesc.g4f('scheduleLastChangedBy', true);
    tmp0_serialDesc.g4f('scheduleLastChangedTime', true);
    tmp0_serialDesc.g4f('scheduleActive', true);
    this.fjs_1 = tmp0_serialDesc;
  }
  protoOf($serializer_99).d44 = function () {
    return this.fjs_1;
  };
  protoOf($serializer_99).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_99).f44 = function (decoder) {
    var tmp0_desc = this.fjs_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = 0;
    var tmp8_local4 = 0;
    var tmp9_local5 = 0;
    var tmp10_local6 = new Long(0, 0);
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = new Long(0, 0);
    var tmp14_local10 = 0;
    var tmp15_local11 = new Long(0, 0);
    var tmp16_local12 = false;
    var tmp17_input = decoder.v47(tmp0_desc);
    if (tmp17_input.k48()) {
      tmp4_local0 = tmp17_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp17_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp17_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp17_input.a48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp17_input.a48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp17_input.a48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp17_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp17_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp17_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp17_input.b48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp17_input.a48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp17_input.b48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp17_input.x47(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp17_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp17_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp17_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp17_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp17_input.a48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp17_input.a48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp17_input.a48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp17_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp17_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp17_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp17_input.b48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp17_input.a48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp17_input.b48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp17_input.x47(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp17_input.w47(tmp0_desc);
    return Schedule_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null);
  };
  protoOf($serializer_99).gjs = function (encoder, value) {
    var tmp0_desc = this.fjs_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.pgr_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.pgr_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.qgr_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.qgr_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.rgr_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.rgr_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.sgr_1 === Companion_instance_105.mjr_1)) {
      tmp1_output.e49(tmp0_desc, 3, value.sgr_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.tgr_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 4, value.tgr_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.ugr_1 === Companion_instance_105.ijr_1)) {
      tmp1_output.e49(tmp0_desc, 5, value.ugr_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.vgr_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.vgr_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.wgr_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.wgr_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.xgr_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.xgr_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !value.ygr_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 9, value.ygr_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.zgr_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 10, value.zgr_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !value.ags_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 11, value.ags_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !(value.bgs_1 === true)) {
      tmp1_output.b49(tmp0_desc, 12, value.bgs_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_99).e44 = function (encoder, value) {
    return this.gjs(encoder, value instanceof Schedule ? value : THROW_CCE());
  };
  var $serializer_instance_99;
  function $serializer_getInstance_99() {
    if ($serializer_instance_99 == null)
      new $serializer_99();
    return $serializer_instance_99;
  }
  function Schedule_init_$Init$(seen1, scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_99().fjs_1);
    }
    if (0 === (seen1 & 1))
      $this.pgr_1 = new Long(0, 0);
    else
      $this.pgr_1 = scheduleUid;
    if (0 === (seen1 & 2))
      $this.qgr_1 = new Long(0, 0);
    else
      $this.qgr_1 = sceduleStartTime;
    if (0 === (seen1 & 4))
      $this.rgr_1 = new Long(0, 0);
    else
      $this.rgr_1 = scheduleEndTime;
    if (0 === (seen1 & 8))
      $this.sgr_1 = Companion_instance_105.mjr_1;
    else
      $this.sgr_1 = scheduleDay;
    if (0 === (seen1 & 16))
      $this.tgr_1 = 0;
    else
      $this.tgr_1 = scheduleMonth;
    if (0 === (seen1 & 32))
      $this.ugr_1 = Companion_instance_105.ijr_1;
    else
      $this.ugr_1 = scheduleFrequency;
    if (0 === (seen1 & 64))
      $this.vgr_1 = new Long(0, 0);
    else
      $this.vgr_1 = umCalendarUid;
    if (0 === (seen1 & 128))
      $this.wgr_1 = new Long(0, 0);
    else
      $this.wgr_1 = scheduleClazzUid;
    if (0 === (seen1 & 256))
      $this.xgr_1 = new Long(0, 0);
    else
      $this.xgr_1 = scheduleMasterChangeSeqNum;
    if (0 === (seen1 & 512))
      $this.ygr_1 = new Long(0, 0);
    else
      $this.ygr_1 = scheduleLocalChangeSeqNum;
    if (0 === (seen1 & 1024))
      $this.zgr_1 = 0;
    else
      $this.zgr_1 = scheduleLastChangedBy;
    if (0 === (seen1 & 2048))
      $this.ags_1 = new Long(0, 0);
    else
      $this.ags_1 = scheduleLastChangedTime;
    if (0 === (seen1 & 4096))
      $this.bgs_1 = true;
    else
      $this.bgs_1 = scheduleActive;
    return $this;
  }
  function Schedule_init_$Create$(seen1, scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive, serializationConstructorMarker) {
    return Schedule_init_$Init$(seen1, scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive, serializationConstructorMarker, objectCreate(protoOf(Schedule)));
  }
  function Schedule() {
    this.pgr_1 = new Long(0, 0);
    this.qgr_1 = new Long(0, 0);
    this.rgr_1 = new Long(0, 0);
    this.sgr_1 = Companion_instance_105.mjr_1;
    this.tgr_1 = 0;
    this.ugr_1 = Companion_instance_105.ijr_1;
    this.vgr_1 = new Long(0, 0);
    this.wgr_1 = new Long(0, 0);
    this.xgr_1 = new Long(0, 0);
    this.ygr_1 = new Long(0, 0);
    this.zgr_1 = 0;
    this.ags_1 = new Long(0, 0);
    this.bgs_1 = true;
  }
  protoOf(Schedule).equals = function (other) {
    if (this === other)
      return true;
    if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
      return false;
    if (!(other instanceof Schedule))
      THROW_CCE();
    if (!this.pgr_1.equals(other.pgr_1))
      return false;
    if (!this.qgr_1.equals(other.qgr_1))
      return false;
    if (!this.rgr_1.equals(other.rgr_1))
      return false;
    if (!(this.sgr_1 === other.sgr_1))
      return false;
    if (!(this.tgr_1 === other.tgr_1))
      return false;
    if (!(this.ugr_1 === other.ugr_1))
      return false;
    if (!this.vgr_1.equals(other.vgr_1))
      return false;
    if (!this.wgr_1.equals(other.wgr_1))
      return false;
    if (!this.xgr_1.equals(other.xgr_1))
      return false;
    if (!this.ygr_1.equals(other.ygr_1))
      return false;
    if (!(this.zgr_1 === other.zgr_1))
      return false;
    if (!(this.bgs_1 === other.bgs_1))
      return false;
    return true;
  };
  protoOf(Schedule).hashCode = function () {
    var result = this.pgr_1.hashCode();
    result = imul(31, result) + this.qgr_1.hashCode() | 0;
    result = imul(31, result) + this.rgr_1.hashCode() | 0;
    result = imul(31, result) + this.sgr_1 | 0;
    result = imul(31, result) + this.tgr_1 | 0;
    result = imul(31, result) + this.ugr_1 | 0;
    result = imul(31, result) + this.vgr_1.hashCode() | 0;
    result = imul(31, result) + this.wgr_1.hashCode() | 0;
    result = imul(31, result) + this.xgr_1.hashCode() | 0;
    result = imul(31, result) + this.ygr_1.hashCode() | 0;
    result = imul(31, result) + this.zgr_1 | 0;
    result = imul(31, result) + getBooleanHashCode(this.bgs_1) | 0;
    return result;
  };
  function Companion_105() {
    Companion_instance_106 = this;
    this.hjs_1 = 48;
    this.ijs_1 = -2;
    this.jjs_1 = new Long(-2, -1);
  }
  var Companion_instance_106;
  function Companion_getInstance_108() {
    if (Companion_instance_106 == null)
      new Companion_105();
    return Companion_instance_106;
  }
  function $serializer_100() {
    $serializer_instance_100 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ScopedGrant', this, 11);
    tmp0_serialDesc.g4f('sgUid', true);
    tmp0_serialDesc.g4f('sgPcsn', true);
    tmp0_serialDesc.g4f('sgLcsn', true);
    tmp0_serialDesc.g4f('sgLcb', true);
    tmp0_serialDesc.g4f('sgLct', true);
    tmp0_serialDesc.g4f('sgTableId', true);
    tmp0_serialDesc.g4f('sgEntityUid', true);
    tmp0_serialDesc.g4f('sgPermissions', true);
    tmp0_serialDesc.g4f('sgGroupUid', true);
    tmp0_serialDesc.g4f('sgIndex', true);
    tmp0_serialDesc.g4f('sgFlags', true);
    this.kjs_1 = tmp0_serialDesc;
  }
  protoOf($serializer_100).d44 = function () {
    return this.kjs_1;
  };
  protoOf($serializer_100).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()];
  };
  protoOf($serializer_100).f44 = function (decoder) {
    var tmp0_desc = this.kjs_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = 0;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = 0;
    var tmp10_local6 = new Long(0, 0);
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = 0;
    var tmp14_local10 = 0;
    var tmp15_input = decoder.v47(tmp0_desc);
    if (tmp15_input.k48()) {
      tmp4_local0 = tmp15_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp15_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp15_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp15_input.a48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp15_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp15_input.a48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp15_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp15_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp15_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp15_input.a48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp15_input.a48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp15_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp15_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp15_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp15_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp15_input.a48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp15_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp15_input.a48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp15_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp15_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp15_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp15_input.a48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp15_input.a48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp15_input.w47(tmp0_desc);
    return ScopedGrant_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null);
  };
  protoOf($serializer_100).ljs = function (encoder, value) {
    var tmp0_desc = this.kjs_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.lgx_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.lgx_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.mgx_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.mgx_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.ngx_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.ngx_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.ogx_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 3, value.ogx_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.pgx_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.pgx_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.qgx_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 5, value.qgx_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.rgx_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.rgx_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.sgx_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.sgx_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.tgx_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.tgx_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.ugx_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 9, value.ugx_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.vgx_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 10, value.vgx_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_100).e44 = function (encoder, value) {
    return this.ljs(encoder, value instanceof ScopedGrant ? value : THROW_CCE());
  };
  var $serializer_instance_100;
  function $serializer_getInstance_100() {
    if ($serializer_instance_100 == null)
      new $serializer_100();
    return $serializer_instance_100;
  }
  function ScopedGrant_init_$Init$(seen1, sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_100().kjs_1);
    }
    if (0 === (seen1 & 1))
      $this.lgx_1 = new Long(0, 0);
    else
      $this.lgx_1 = sgUid;
    if (0 === (seen1 & 2))
      $this.mgx_1 = new Long(0, 0);
    else
      $this.mgx_1 = sgPcsn;
    if (0 === (seen1 & 4))
      $this.ngx_1 = new Long(0, 0);
    else
      $this.ngx_1 = sgLcsn;
    if (0 === (seen1 & 8))
      $this.ogx_1 = 0;
    else
      $this.ogx_1 = sgLcb;
    if (0 === (seen1 & 16))
      $this.pgx_1 = new Long(0, 0);
    else
      $this.pgx_1 = sgLct;
    if (0 === (seen1 & 32))
      $this.qgx_1 = 0;
    else
      $this.qgx_1 = sgTableId;
    if (0 === (seen1 & 64))
      $this.rgx_1 = new Long(0, 0);
    else
      $this.rgx_1 = sgEntityUid;
    if (0 === (seen1 & 128))
      $this.sgx_1 = new Long(0, 0);
    else
      $this.sgx_1 = sgPermissions;
    if (0 === (seen1 & 256))
      $this.tgx_1 = new Long(0, 0);
    else
      $this.tgx_1 = sgGroupUid;
    if (0 === (seen1 & 512))
      $this.ugx_1 = 0;
    else
      $this.ugx_1 = sgIndex;
    if (0 === (seen1 & 1024))
      $this.vgx_1 = 0;
    else
      $this.vgx_1 = sgFlags;
    return $this;
  }
  function ScopedGrant_init_$Create$(seen1, sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags, serializationConstructorMarker) {
    return ScopedGrant_init_$Init$(seen1, sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags, serializationConstructorMarker, objectCreate(protoOf(ScopedGrant)));
  }
  function ScopedGrant() {
    Companion_getInstance_108();
    this.lgx_1 = new Long(0, 0);
    this.mgx_1 = new Long(0, 0);
    this.ngx_1 = new Long(0, 0);
    this.ogx_1 = 0;
    this.pgx_1 = new Long(0, 0);
    this.qgx_1 = 0;
    this.rgx_1 = new Long(0, 0);
    this.sgx_1 = new Long(0, 0);
    this.tgx_1 = new Long(0, 0);
    this.ugx_1 = 0;
    this.vgx_1 = 0;
  }
  function Companion_106() {
    this.mjs_1 = 189;
  }
  protoOf(Companion_106).a4r = function () {
    return $serializer_getInstance_101();
  };
  var Companion_instance_107;
  function Companion_getInstance_109() {
    return Companion_instance_107;
  }
  function $serializer_101() {
    $serializer_instance_101 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Site', this, 9);
    tmp0_serialDesc.g4f('siteUid', true);
    tmp0_serialDesc.g4f('sitePcsn', true);
    tmp0_serialDesc.g4f('siteLcsn', true);
    tmp0_serialDesc.g4f('siteLcb', true);
    tmp0_serialDesc.g4f('siteLct', true);
    tmp0_serialDesc.g4f('siteName', true);
    tmp0_serialDesc.g4f('guestLogin', true);
    tmp0_serialDesc.g4f('registrationAllowed', true);
    tmp0_serialDesc.g4f('authSalt', true);
    this.njs_1 = tmp0_serialDesc;
  }
  protoOf($serializer_101).d44 = function () {
    return this.njs_1;
  };
  protoOf($serializer_101).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_101).f44 = function (decoder) {
    var tmp0_desc = this.njs_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = 0;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = null;
    var tmp10_local6 = false;
    var tmp11_local7 = false;
    var tmp12_local8 = null;
    var tmp13_input = decoder.v47(tmp0_desc);
    if (tmp13_input.k48()) {
      tmp4_local0 = tmp13_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp13_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp13_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp13_input.a48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp13_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp13_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp13_input.x47(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp13_input.x47(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp13_input.j48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp13_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp13_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp13_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp13_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp13_input.a48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp13_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp13_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp13_input.x47(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp13_input.x47(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp13_input.j48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp13_input.w47(tmp0_desc);
    return Site_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null);
  };
  protoOf($serializer_101).ojs = function (encoder, value) {
    var tmp0_desc = this.njs_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.qgz_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.qgz_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.rgz_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.rgz_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.sgz_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.sgz_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.tgz_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 3, value.tgz_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.ugz_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.ugz_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.vgz_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.vgz_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.wgz_1 === true)) {
      tmp1_output.b49(tmp0_desc, 6, value.wgz_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.xgz_1 === true)) {
      tmp1_output.b49(tmp0_desc, 7, value.xgz_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.ygz_1 == null)) {
      tmp1_output.n49(tmp0_desc, 8, StringSerializer_getInstance(), value.ygz_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_101).e44 = function (encoder, value) {
    return this.ojs(encoder, value instanceof Site ? value : THROW_CCE());
  };
  var $serializer_instance_101;
  function $serializer_getInstance_101() {
    if ($serializer_instance_101 == null)
      new $serializer_101();
    return $serializer_instance_101;
  }
  function Site_init_$Init$(seen1, siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_101().njs_1);
    }
    if (0 === (seen1 & 1))
      $this.qgz_1 = new Long(0, 0);
    else
      $this.qgz_1 = siteUid;
    if (0 === (seen1 & 2))
      $this.rgz_1 = new Long(0, 0);
    else
      $this.rgz_1 = sitePcsn;
    if (0 === (seen1 & 4))
      $this.sgz_1 = new Long(0, 0);
    else
      $this.sgz_1 = siteLcsn;
    if (0 === (seen1 & 8))
      $this.tgz_1 = 0;
    else
      $this.tgz_1 = siteLcb;
    if (0 === (seen1 & 16))
      $this.ugz_1 = new Long(0, 0);
    else
      $this.ugz_1 = siteLct;
    if (0 === (seen1 & 32))
      $this.vgz_1 = null;
    else
      $this.vgz_1 = siteName;
    if (0 === (seen1 & 64))
      $this.wgz_1 = true;
    else
      $this.wgz_1 = guestLogin;
    if (0 === (seen1 & 128))
      $this.xgz_1 = true;
    else
      $this.xgz_1 = registrationAllowed;
    if (0 === (seen1 & 256))
      $this.ygz_1 = null;
    else
      $this.ygz_1 = authSalt;
    return $this;
  }
  function Site_init_$Create$(seen1, siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt, serializationConstructorMarker) {
    return Site_init_$Init$(seen1, siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt, serializationConstructorMarker, objectCreate(protoOf(Site)));
  }
  function Site() {
    this.qgz_1 = new Long(0, 0);
    this.rgz_1 = new Long(0, 0);
    this.sgz_1 = new Long(0, 0);
    this.tgz_1 = 0;
    this.ugz_1 = new Long(0, 0);
    this.vgz_1 = null;
    this.wgz_1 = true;
    this.xgz_1 = true;
    this.ygz_1 = null;
  }
  function Companion_107() {
    this.pjs_1 = 272;
  }
  protoOf(Companion_107).a4r = function () {
    return $serializer_getInstance_102();
  };
  var Companion_instance_108;
  function Companion_getInstance_110() {
    return Companion_instance_108;
  }
  function $serializer_102() {
    $serializer_instance_102 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.SiteTerms', this, 9);
    tmp0_serialDesc.g4f('sTermsUid', true);
    tmp0_serialDesc.g4f('termsHtml', true);
    tmp0_serialDesc.g4f('sTermsLang', true);
    tmp0_serialDesc.g4f('sTermsLangUid', true);
    tmp0_serialDesc.g4f('sTermsActive', true);
    tmp0_serialDesc.g4f('sTermsLastChangedBy', true);
    tmp0_serialDesc.g4f('sTermsPrimaryCsn', true);
    tmp0_serialDesc.g4f('sTermsLocalCsn', true);
    tmp0_serialDesc.g4f('sTermsLct', true);
    this.qjs_1 = tmp0_serialDesc;
  }
  protoOf($serializer_102).d44 = function () {
    return this.qjs_1;
  };
  protoOf($serializer_102).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_102).f44 = function (decoder) {
    var tmp0_desc = this.qjs_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = false;
    var tmp9_local5 = 0;
    var tmp10_local6 = new Long(0, 0);
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = new Long(0, 0);
    var tmp13_input = decoder.v47(tmp0_desc);
    if (tmp13_input.k48()) {
      tmp4_local0 = tmp13_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp13_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp13_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp13_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp13_input.x47(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp13_input.a48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp13_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp13_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp13_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp13_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp13_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp13_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp13_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp13_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp13_input.x47(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp13_input.a48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp13_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp13_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp13_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp13_input.w47(tmp0_desc);
    return SiteTerms_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null);
  };
  protoOf($serializer_102).rjs = function (encoder, value) {
    var tmp0_desc = this.qjs_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.dh5_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.dh5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.eh5_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.eh5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.fh5_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.fh5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.gh5_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.gh5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.hh5_1 === true)) {
      tmp1_output.b49(tmp0_desc, 4, value.hh5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.ih5_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 5, value.ih5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.jh5_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.jh5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.kh5_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.kh5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.lh5_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.lh5_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_102).e44 = function (encoder, value) {
    return this.rjs(encoder, value instanceof SiteTerms ? value : THROW_CCE());
  };
  var $serializer_instance_102;
  function $serializer_getInstance_102() {
    if ($serializer_instance_102 == null)
      new $serializer_102();
    return $serializer_instance_102;
  }
  function SiteTerms_init_$Init$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_102().qjs_1);
    }
    if (0 === (seen1 & 1))
      $this.dh5_1 = new Long(0, 0);
    else
      $this.dh5_1 = sTermsUid;
    if (0 === (seen1 & 2))
      $this.eh5_1 = null;
    else
      $this.eh5_1 = termsHtml;
    if (0 === (seen1 & 4))
      $this.fh5_1 = null;
    else
      $this.fh5_1 = sTermsLang;
    if (0 === (seen1 & 8))
      $this.gh5_1 = new Long(0, 0);
    else
      $this.gh5_1 = sTermsLangUid;
    if (0 === (seen1 & 16))
      $this.hh5_1 = true;
    else
      $this.hh5_1 = sTermsActive;
    if (0 === (seen1 & 32))
      $this.ih5_1 = 0;
    else
      $this.ih5_1 = sTermsLastChangedBy;
    if (0 === (seen1 & 64))
      $this.jh5_1 = new Long(0, 0);
    else
      $this.jh5_1 = sTermsPrimaryCsn;
    if (0 === (seen1 & 128))
      $this.kh5_1 = new Long(0, 0);
    else
      $this.kh5_1 = sTermsLocalCsn;
    if (0 === (seen1 & 256))
      $this.lh5_1 = new Long(0, 0);
    else
      $this.lh5_1 = sTermsLct;
    return $this;
  }
  function SiteTerms_init_$Create$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, serializationConstructorMarker) {
    return SiteTerms_init_$Init$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, serializationConstructorMarker, objectCreate(protoOf(SiteTerms)));
  }
  function SiteTerms() {
    this.dh5_1 = new Long(0, 0);
    this.eh5_1 = null;
    this.fh5_1 = null;
    this.gh5_1 = new Long(0, 0);
    this.hh5_1 = true;
    this.ih5_1 = 0;
    this.jh5_1 = new Long(0, 0);
    this.kh5_1 = new Long(0, 0);
    this.lh5_1 = new Long(0, 0);
  }
  function Companion_108() {
  }
  var Companion_instance_109;
  function Companion_getInstance_111() {
    return Companion_instance_109;
  }
  function $serializer_103() {
    $serializer_instance_103 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.SiteTermsWithLanguage', this, 10);
    tmp0_serialDesc.g4f('sTermsUid', true);
    tmp0_serialDesc.g4f('termsHtml', true);
    tmp0_serialDesc.g4f('sTermsLang', true);
    tmp0_serialDesc.g4f('sTermsLangUid', true);
    tmp0_serialDesc.g4f('sTermsActive', true);
    tmp0_serialDesc.g4f('sTermsLastChangedBy', true);
    tmp0_serialDesc.g4f('sTermsPrimaryCsn', true);
    tmp0_serialDesc.g4f('sTermsLocalCsn', true);
    tmp0_serialDesc.g4f('sTermsLct', true);
    tmp0_serialDesc.g4f('stLanguage', true);
    this.sjs_1 = tmp0_serialDesc;
  }
  protoOf($serializer_103).d44 = function () {
    return this.sjs_1;
  };
  protoOf($serializer_103).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_83())];
  };
  protoOf($serializer_103).f44 = function (decoder) {
    var tmp0_desc = this.sjs_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = false;
    var tmp9_local5 = 0;
    var tmp10_local6 = new Long(0, 0);
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = null;
    var tmp14_input = decoder.v47(tmp0_desc);
    if (tmp14_input.k48()) {
      tmp4_local0 = tmp14_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp14_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp14_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp14_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp14_input.x47(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp14_input.a48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp14_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp14_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp14_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp14_input.j48(tmp0_desc, 9, $serializer_getInstance_83(), tmp13_local9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp14_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp14_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp14_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp14_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp14_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp14_input.x47(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp14_input.a48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp14_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp14_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp14_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp14_input.j48(tmp0_desc, 9, $serializer_getInstance_83(), tmp13_local9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp14_input.w47(tmp0_desc);
    return SiteTermsWithLanguage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null);
  };
  protoOf($serializer_103).tjs = function (encoder, value) {
    var tmp0_desc = this.sjs_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.dh5_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.dh5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.eh5_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.eh5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.fh5_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.fh5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.gh5_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.gh5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.hh5_1 === true)) {
      tmp1_output.b49(tmp0_desc, 4, value.hh5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.ih5_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 5, value.ih5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.jh5_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.jh5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.kh5_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.kh5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.lh5_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.lh5_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.djt_1 == null)) {
      tmp1_output.n49(tmp0_desc, 9, $serializer_getInstance_83(), value.djt_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_103).e44 = function (encoder, value) {
    return this.tjs(encoder, value instanceof SiteTermsWithLanguage ? value : THROW_CCE());
  };
  var $serializer_instance_103;
  function $serializer_getInstance_103() {
    if ($serializer_instance_103 == null)
      new $serializer_103();
    return $serializer_instance_103;
  }
  function SiteTermsWithLanguage_init_$Init$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, stLanguage, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_103().sjs_1);
    }
    SiteTerms_init_$Init$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, serializationConstructorMarker, $this);
    if (0 === (seen1 & 512))
      $this.djt_1 = null;
    else
      $this.djt_1 = stLanguage;
    return $this;
  }
  function SiteTermsWithLanguage_init_$Create$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, stLanguage, serializationConstructorMarker) {
    return SiteTermsWithLanguage_init_$Init$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, stLanguage, serializationConstructorMarker, objectCreate(protoOf(SiteTermsWithLanguage)));
  }
  function SiteTermsWithLanguage() {
    SiteTerms.call(this);
    this.djt_1 = null;
  }
  function Companion_109() {
    this.ejt_1 = 471;
  }
  var Companion_instance_110;
  function Companion_getInstance_112() {
    return Companion_instance_110;
  }
  function $serializer_104() {
    $serializer_instance_104 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.StudentResult', this, 21);
    tmp0_serialDesc.g4f('srUid', true);
    tmp0_serialDesc.g4f('srSourcedId', true);
    tmp0_serialDesc.g4f('srCourseBlockUid', true);
    tmp0_serialDesc.g4f('srLineItemSourcedId', true);
    tmp0_serialDesc.g4f('srLineItemHref', true);
    tmp0_serialDesc.g4f('srClazzUid', true);
    tmp0_serialDesc.g4f('srAssignmentUid', true);
    tmp0_serialDesc.g4f('srStatus', true);
    tmp0_serialDesc.g4f('srMetaData', true);
    tmp0_serialDesc.g4f('srStudentPersonUid', true);
    tmp0_serialDesc.g4f('srStudentPersonSourcedId', true);
    tmp0_serialDesc.g4f('srStudentGroupId', true);
    tmp0_serialDesc.g4f('srMarkerPersonUid', true);
    tmp0_serialDesc.g4f('srMarkerGroupId', true);
    tmp0_serialDesc.g4f('srScoreStatus', true);
    tmp0_serialDesc.g4f('srScore', true);
    tmp0_serialDesc.g4f('srScoreDate', true);
    tmp0_serialDesc.g4f('srLastModified', true);
    tmp0_serialDesc.g4f('srComment', true);
    tmp0_serialDesc.g4f('srAppId', true);
    tmp0_serialDesc.g4f('srDeleted', true);
    this.fjt_1 = tmp0_serialDesc;
  }
  protoOf($serializer_104).d44 = function () {
    return this.fjt_1;
  };
  protoOf($serializer_104).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), FloatSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_104).f44 = function (decoder) {
    var tmp0_desc = this.fjt_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = null;
    var tmp8_local4 = null;
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = new Long(0, 0);
    var tmp11_local7 = 0;
    var tmp12_local8 = null;
    var tmp13_local9 = new Long(0, 0);
    var tmp14_local10 = null;
    var tmp15_local11 = 0;
    var tmp16_local12 = new Long(0, 0);
    var tmp17_local13 = 0;
    var tmp18_local14 = 0;
    var tmp19_local15 = 0.0;
    var tmp20_local16 = new Long(0, 0);
    var tmp21_local17 = new Long(0, 0);
    var tmp22_local18 = null;
    var tmp23_local19 = null;
    var tmp24_local20 = false;
    var tmp25_input = decoder.v47(tmp0_desc);
    if (tmp25_input.k48()) {
      tmp4_local0 = tmp25_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp25_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp25_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp25_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp25_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp25_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp25_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp25_input.a48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp25_input.j48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp25_input.b48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp25_input.j48(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp25_input.a48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp25_input.b48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp25_input.a48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp25_input.a48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp25_input.c48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp25_input.b48(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp25_input.b48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp25_input.j48(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp25_input.j48(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp24_local20 = tmp25_input.x47(tmp0_desc, 20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp25_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp25_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp25_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp25_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp25_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp25_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp25_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp25_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp25_input.a48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp25_input.j48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp25_input.b48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp25_input.j48(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp25_input.a48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp25_input.b48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp25_input.a48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp25_input.a48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp25_input.c48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp25_input.b48(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp25_input.b48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp25_input.j48(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp25_input.j48(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp24_local20 = tmp25_input.x47(tmp0_desc, 20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp25_input.w47(tmp0_desc);
    return StudentResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, null);
  };
  protoOf($serializer_104).gjt = function (encoder, value) {
    var tmp0_desc = this.fjt_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.jhb_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.jhb_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.khb_1 === '')) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.khb_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.lhb_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.lhb_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.mhb_1 === '')) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.mhb_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.nhb_1 === '')) {
      tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.nhb_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.ohb_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.ohb_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.phb_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.phb_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.qhb_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 7, value.qhb_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.rhb_1 == null)) {
      tmp1_output.n49(tmp0_desc, 8, StringSerializer_getInstance(), value.rhb_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !value.shb_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 9, value.shb_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.thb_1 === '')) {
      tmp1_output.n49(tmp0_desc, 10, StringSerializer_getInstance(), value.thb_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !(value.uhb_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 11, value.uhb_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !value.vhb_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 12, value.vhb_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !(value.whb_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 13, value.whb_1);
    }
    if (tmp1_output.r49(tmp0_desc, 14) ? true : !(value.xhb_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 14, value.xhb_1);
    }
    if (tmp1_output.r49(tmp0_desc, 15) ? true : !equals(value.yhb_1, 0.0)) {
      tmp1_output.g49(tmp0_desc, 15, value.yhb_1);
    }
    if (tmp1_output.r49(tmp0_desc, 16) ? true : !value.zhb_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 16, value.zhb_1);
    }
    if (tmp1_output.r49(tmp0_desc, 17) ? true : !value.ahc_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 17, value.ahc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 18) ? true : !(value.bhc_1 == null)) {
      tmp1_output.n49(tmp0_desc, 18, StringSerializer_getInstance(), value.bhc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 19) ? true : !(value.chc_1 == null)) {
      tmp1_output.n49(tmp0_desc, 19, StringSerializer_getInstance(), value.chc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 20) ? true : !(value.dhc_1 === false)) {
      tmp1_output.b49(tmp0_desc, 20, value.dhc_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_104).e44 = function (encoder, value) {
    return this.gjt(encoder, value instanceof StudentResult ? value : THROW_CCE());
  };
  var $serializer_instance_104;
  function $serializer_getInstance_104() {
    if ($serializer_instance_104 == null)
      new $serializer_104();
    return $serializer_instance_104;
  }
  function StudentResult_init_$Init$(seen1, srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_104().fjt_1);
    }
    if (0 === (seen1 & 1))
      $this.jhb_1 = new Long(0, 0);
    else
      $this.jhb_1 = srUid;
    if (0 === (seen1 & 2))
      $this.khb_1 = '';
    else
      $this.khb_1 = srSourcedId;
    if (0 === (seen1 & 4))
      $this.lhb_1 = new Long(0, 0);
    else
      $this.lhb_1 = srCourseBlockUid;
    if (0 === (seen1 & 8))
      $this.mhb_1 = '';
    else
      $this.mhb_1 = srLineItemSourcedId;
    if (0 === (seen1 & 16))
      $this.nhb_1 = '';
    else
      $this.nhb_1 = srLineItemHref;
    if (0 === (seen1 & 32))
      $this.ohb_1 = new Long(0, 0);
    else
      $this.ohb_1 = srClazzUid;
    if (0 === (seen1 & 64))
      $this.phb_1 = new Long(0, 0);
    else
      $this.phb_1 = srAssignmentUid;
    if (0 === (seen1 & 128))
      $this.qhb_1 = 0;
    else
      $this.qhb_1 = srStatus;
    if (0 === (seen1 & 256))
      $this.rhb_1 = null;
    else
      $this.rhb_1 = srMetaData;
    if (0 === (seen1 & 512))
      $this.shb_1 = new Long(0, 0);
    else
      $this.shb_1 = srStudentPersonUid;
    if (0 === (seen1 & 1024))
      $this.thb_1 = '';
    else
      $this.thb_1 = srStudentPersonSourcedId;
    if (0 === (seen1 & 2048))
      $this.uhb_1 = 0;
    else
      $this.uhb_1 = srStudentGroupId;
    if (0 === (seen1 & 4096))
      $this.vhb_1 = new Long(0, 0);
    else
      $this.vhb_1 = srMarkerPersonUid;
    if (0 === (seen1 & 8192))
      $this.whb_1 = 0;
    else
      $this.whb_1 = srMarkerGroupId;
    if (0 === (seen1 & 16384))
      $this.xhb_1 = 0;
    else
      $this.xhb_1 = srScoreStatus;
    if (0 === (seen1 & 32768))
      $this.yhb_1 = 0.0;
    else
      $this.yhb_1 = srScore;
    if (0 === (seen1 & 65536))
      $this.zhb_1 = new Long(0, 0);
    else
      $this.zhb_1 = srScoreDate;
    if (0 === (seen1 & 131072))
      $this.ahc_1 = new Long(0, 0);
    else
      $this.ahc_1 = srLastModified;
    if (0 === (seen1 & 262144))
      $this.bhc_1 = null;
    else
      $this.bhc_1 = srComment;
    if (0 === (seen1 & 524288))
      $this.chc_1 = null;
    else
      $this.chc_1 = srAppId;
    if (0 === (seen1 & 1048576))
      $this.dhc_1 = false;
    else
      $this.dhc_1 = srDeleted;
    return $this;
  }
  function StudentResult_init_$Create$(seen1, srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted, serializationConstructorMarker) {
    return StudentResult_init_$Init$(seen1, srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted, serializationConstructorMarker, objectCreate(protoOf(StudentResult)));
  }
  function StudentResult(srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted) {
    srUid = srUid === VOID ? new Long(0, 0) : srUid;
    srSourcedId = srSourcedId === VOID ? '' : srSourcedId;
    srCourseBlockUid = srCourseBlockUid === VOID ? new Long(0, 0) : srCourseBlockUid;
    srLineItemSourcedId = srLineItemSourcedId === VOID ? '' : srLineItemSourcedId;
    srLineItemHref = srLineItemHref === VOID ? '' : srLineItemHref;
    srClazzUid = srClazzUid === VOID ? new Long(0, 0) : srClazzUid;
    srAssignmentUid = srAssignmentUid === VOID ? new Long(0, 0) : srAssignmentUid;
    srStatus = srStatus === VOID ? 0 : srStatus;
    srMetaData = srMetaData === VOID ? null : srMetaData;
    srStudentPersonUid = srStudentPersonUid === VOID ? new Long(0, 0) : srStudentPersonUid;
    srStudentPersonSourcedId = srStudentPersonSourcedId === VOID ? '' : srStudentPersonSourcedId;
    srStudentGroupId = srStudentGroupId === VOID ? 0 : srStudentGroupId;
    srMarkerPersonUid = srMarkerPersonUid === VOID ? new Long(0, 0) : srMarkerPersonUid;
    srMarkerGroupId = srMarkerGroupId === VOID ? 0 : srMarkerGroupId;
    srScoreStatus = srScoreStatus === VOID ? 0 : srScoreStatus;
    srScore = srScore === VOID ? 0.0 : srScore;
    srScoreDate = srScoreDate === VOID ? new Long(0, 0) : srScoreDate;
    srLastModified = srLastModified === VOID ? new Long(0, 0) : srLastModified;
    srComment = srComment === VOID ? null : srComment;
    srAppId = srAppId === VOID ? null : srAppId;
    srDeleted = srDeleted === VOID ? false : srDeleted;
    this.jhb_1 = srUid;
    this.khb_1 = srSourcedId;
    this.lhb_1 = srCourseBlockUid;
    this.mhb_1 = srLineItemSourcedId;
    this.nhb_1 = srLineItemHref;
    this.ohb_1 = srClazzUid;
    this.phb_1 = srAssignmentUid;
    this.qhb_1 = srStatus;
    this.rhb_1 = srMetaData;
    this.shb_1 = srStudentPersonUid;
    this.thb_1 = srStudentPersonSourcedId;
    this.uhb_1 = srStudentGroupId;
    this.vhb_1 = srMarkerPersonUid;
    this.whb_1 = srMarkerGroupId;
    this.xhb_1 = srScoreStatus;
    this.yhb_1 = srScore;
    this.zhb_1 = srScoreDate;
    this.ahc_1 = srLastModified;
    this.bhc_1 = srComment;
    this.chc_1 = srAppId;
    this.dhc_1 = srDeleted;
  }
  protoOf(StudentResult).toString = function () {
    return 'StudentResult(srUid=' + this.jhb_1.toString() + ', srSourcedId=' + this.khb_1 + ', srCourseBlockUid=' + this.lhb_1.toString() + ', srLineItemSourcedId=' + this.mhb_1 + ', srLineItemHref=' + this.nhb_1 + ', srClazzUid=' + this.ohb_1.toString() + ', srAssignmentUid=' + this.phb_1.toString() + ', srStatus=' + this.qhb_1 + ', srMetaData=' + this.rhb_1 + ', srStudentPersonUid=' + this.shb_1.toString() + ', srStudentPersonSourcedId=' + this.thb_1 + ', srStudentGroupId=' + this.uhb_1 + ', srMarkerPersonUid=' + this.vhb_1.toString() + ', srMarkerGroupId=' + this.whb_1 + ', srScoreStatus=' + this.xhb_1 + ', srScore=' + this.yhb_1 + ', srScoreDate=' + this.zhb_1.toString() + ', srLastModified=' + this.ahc_1.toString() + ', srComment=' + this.bhc_1 + ', srAppId=' + this.chc_1 + ', srDeleted=' + this.dhc_1 + ')';
  };
  protoOf(StudentResult).hashCode = function () {
    var result = this.jhb_1.hashCode();
    result = imul(result, 31) + (this.khb_1 == null ? 0 : getStringHashCode(this.khb_1)) | 0;
    result = imul(result, 31) + this.lhb_1.hashCode() | 0;
    result = imul(result, 31) + (this.mhb_1 == null ? 0 : getStringHashCode(this.mhb_1)) | 0;
    result = imul(result, 31) + (this.nhb_1 == null ? 0 : getStringHashCode(this.nhb_1)) | 0;
    result = imul(result, 31) + this.ohb_1.hashCode() | 0;
    result = imul(result, 31) + this.phb_1.hashCode() | 0;
    result = imul(result, 31) + this.qhb_1 | 0;
    result = imul(result, 31) + (this.rhb_1 == null ? 0 : getStringHashCode(this.rhb_1)) | 0;
    result = imul(result, 31) + this.shb_1.hashCode() | 0;
    result = imul(result, 31) + (this.thb_1 == null ? 0 : getStringHashCode(this.thb_1)) | 0;
    result = imul(result, 31) + this.uhb_1 | 0;
    result = imul(result, 31) + this.vhb_1.hashCode() | 0;
    result = imul(result, 31) + this.whb_1 | 0;
    result = imul(result, 31) + this.xhb_1 | 0;
    result = imul(result, 31) + getNumberHashCode(this.yhb_1) | 0;
    result = imul(result, 31) + this.zhb_1.hashCode() | 0;
    result = imul(result, 31) + this.ahc_1.hashCode() | 0;
    result = imul(result, 31) + (this.bhc_1 == null ? 0 : getStringHashCode(this.bhc_1)) | 0;
    result = imul(result, 31) + (this.chc_1 == null ? 0 : getStringHashCode(this.chc_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.dhc_1) | 0;
    return result;
  };
  protoOf(StudentResult).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof StudentResult))
      return false;
    var tmp0_other_with_cast = other instanceof StudentResult ? other : THROW_CCE();
    if (!this.jhb_1.equals(tmp0_other_with_cast.jhb_1))
      return false;
    if (!(this.khb_1 == tmp0_other_with_cast.khb_1))
      return false;
    if (!this.lhb_1.equals(tmp0_other_with_cast.lhb_1))
      return false;
    if (!(this.mhb_1 == tmp0_other_with_cast.mhb_1))
      return false;
    if (!(this.nhb_1 == tmp0_other_with_cast.nhb_1))
      return false;
    if (!this.ohb_1.equals(tmp0_other_with_cast.ohb_1))
      return false;
    if (!this.phb_1.equals(tmp0_other_with_cast.phb_1))
      return false;
    if (!(this.qhb_1 === tmp0_other_with_cast.qhb_1))
      return false;
    if (!(this.rhb_1 == tmp0_other_with_cast.rhb_1))
      return false;
    if (!this.shb_1.equals(tmp0_other_with_cast.shb_1))
      return false;
    if (!(this.thb_1 == tmp0_other_with_cast.thb_1))
      return false;
    if (!(this.uhb_1 === tmp0_other_with_cast.uhb_1))
      return false;
    if (!this.vhb_1.equals(tmp0_other_with_cast.vhb_1))
      return false;
    if (!(this.whb_1 === tmp0_other_with_cast.whb_1))
      return false;
    if (!(this.xhb_1 === tmp0_other_with_cast.xhb_1))
      return false;
    if (!equals(this.yhb_1, tmp0_other_with_cast.yhb_1))
      return false;
    if (!this.zhb_1.equals(tmp0_other_with_cast.zhb_1))
      return false;
    if (!this.ahc_1.equals(tmp0_other_with_cast.ahc_1))
      return false;
    if (!(this.bhc_1 == tmp0_other_with_cast.bhc_1))
      return false;
    if (!(this.chc_1 == tmp0_other_with_cast.chc_1))
      return false;
    if (!(this.dhc_1 === tmp0_other_with_cast.dhc_1))
      return false;
    return true;
  };
  function Companion_110() {
    Companion_instance_111 = this;
    this.hjt_1 = new Long(0, 0);
    this.ijt_1 = 10011;
  }
  protoOf(Companion_110).a4r = function () {
    return $serializer_getInstance_105();
  };
  var Companion_instance_111;
  function Companion_getInstance_113() {
    if (Companion_instance_111 == null)
      new Companion_110();
    return Companion_instance_111;
  }
  function $serializer_105() {
    $serializer_instance_105 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.SystemPermission', this, 6);
    tmp0_serialDesc.g4f('spUid', true);
    tmp0_serialDesc.g4f('spToPersonUid', true);
    tmp0_serialDesc.g4f('spToGroupUid', true);
    tmp0_serialDesc.g4f('spPermissionsFlag', true);
    tmp0_serialDesc.g4f('spLastModified', true);
    tmp0_serialDesc.g4f('spIsDeleted', true);
    this.jjt_1 = tmp0_serialDesc;
  }
  protoOf($serializer_105).d44 = function () {
    return this.jjt_1;
  };
  protoOf($serializer_105).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_105).f44 = function (decoder) {
    var tmp0_desc = this.jjt_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = false;
    var tmp10_input = decoder.v47(tmp0_desc);
    if (tmp10_input.k48()) {
      tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.x47(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.x47(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.w47(tmp0_desc);
    return SystemPermission_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_105).kjt = function (encoder, value) {
    var tmp0_desc = this.jjt_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.nhd_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.nhd_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.ohd_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.ohd_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.phd_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.phd_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.qhd_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.qhd_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.rhd_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.rhd_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.shd_1 === false)) {
      tmp1_output.b49(tmp0_desc, 5, value.shd_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_105).e44 = function (encoder, value) {
    return this.kjt(encoder, value instanceof SystemPermission ? value : THROW_CCE());
  };
  var $serializer_instance_105;
  function $serializer_getInstance_105() {
    if ($serializer_instance_105 == null)
      new $serializer_105();
    return $serializer_instance_105;
  }
  function SystemPermission_init_$Init$(seen1, spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_105().jjt_1);
    }
    if (0 === (seen1 & 1))
      $this.nhd_1 = new Long(0, 0);
    else
      $this.nhd_1 = spUid;
    if (0 === (seen1 & 2))
      $this.ohd_1 = new Long(0, 0);
    else
      $this.ohd_1 = spToPersonUid;
    if (0 === (seen1 & 4))
      $this.phd_1 = new Long(0, 0);
    else
      $this.phd_1 = spToGroupUid;
    if (0 === (seen1 & 8))
      $this.qhd_1 = new Long(0, 0);
    else
      $this.qhd_1 = spPermissionsFlag;
    if (0 === (seen1 & 16))
      $this.rhd_1 = new Long(0, 0);
    else
      $this.rhd_1 = spLastModified;
    if (0 === (seen1 & 32))
      $this.shd_1 = false;
    else
      $this.shd_1 = spIsDeleted;
    return $this;
  }
  function SystemPermission_init_$Create$(seen1, spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted, serializationConstructorMarker) {
    return SystemPermission_init_$Init$(seen1, spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted, serializationConstructorMarker, objectCreate(protoOf(SystemPermission)));
  }
  function SystemPermission(spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) {
    Companion_getInstance_113();
    spUid = spUid === VOID ? new Long(0, 0) : spUid;
    spToPersonUid = spToPersonUid === VOID ? new Long(0, 0) : spToPersonUid;
    spToGroupUid = spToGroupUid === VOID ? new Long(0, 0) : spToGroupUid;
    spPermissionsFlag = spPermissionsFlag === VOID ? new Long(0, 0) : spPermissionsFlag;
    spLastModified = spLastModified === VOID ? new Long(0, 0) : spLastModified;
    spIsDeleted = spIsDeleted === VOID ? false : spIsDeleted;
    this.nhd_1 = spUid;
    this.ohd_1 = spToPersonUid;
    this.phd_1 = spToGroupUid;
    this.qhd_1 = spPermissionsFlag;
    this.rhd_1 = spLastModified;
    this.shd_1 = spIsDeleted;
  }
  protoOf(SystemPermission).ljt = function (spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) {
    return new SystemPermission(spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted);
  };
  protoOf(SystemPermission).mjt = function (spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted, $super) {
    spUid = spUid === VOID ? this.nhd_1 : spUid;
    spToPersonUid = spToPersonUid === VOID ? this.ohd_1 : spToPersonUid;
    spToGroupUid = spToGroupUid === VOID ? this.phd_1 : spToGroupUid;
    spPermissionsFlag = spPermissionsFlag === VOID ? this.qhd_1 : spPermissionsFlag;
    spLastModified = spLastModified === VOID ? this.rhd_1 : spLastModified;
    spIsDeleted = spIsDeleted === VOID ? this.shd_1 : spIsDeleted;
    return $super === VOID ? this.ljt(spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) : $super.ljt.call(this, spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted);
  };
  protoOf(SystemPermission).toString = function () {
    return 'SystemPermission(spUid=' + this.nhd_1.toString() + ', spToPersonUid=' + this.ohd_1.toString() + ', spToGroupUid=' + this.phd_1.toString() + ', spPermissionsFlag=' + this.qhd_1.toString() + ', spLastModified=' + this.rhd_1.toString() + ', spIsDeleted=' + this.shd_1 + ')';
  };
  protoOf(SystemPermission).hashCode = function () {
    var result = this.nhd_1.hashCode();
    result = imul(result, 31) + this.ohd_1.hashCode() | 0;
    result = imul(result, 31) + this.phd_1.hashCode() | 0;
    result = imul(result, 31) + this.qhd_1.hashCode() | 0;
    result = imul(result, 31) + this.rhd_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.shd_1) | 0;
    return result;
  };
  protoOf(SystemPermission).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof SystemPermission))
      return false;
    var tmp0_other_with_cast = other instanceof SystemPermission ? other : THROW_CCE();
    if (!this.nhd_1.equals(tmp0_other_with_cast.nhd_1))
      return false;
    if (!this.ohd_1.equals(tmp0_other_with_cast.ohd_1))
      return false;
    if (!this.phd_1.equals(tmp0_other_with_cast.phd_1))
      return false;
    if (!this.qhd_1.equals(tmp0_other_with_cast.qhd_1))
      return false;
    if (!this.rhd_1.equals(tmp0_other_with_cast.rhd_1))
      return false;
    if (!(this.shd_1 === tmp0_other_with_cast.shd_1))
      return false;
    return true;
  };
  function Companion_111() {
    this.njt_1 = 1081;
    this.ojt_1 = 1;
    this.pjt_1 = 2;
    this.qjt_1 = 1;
    this.rjt_1 = 2;
  }
  var Companion_instance_112;
  function Companion_getInstance_114() {
    return Companion_instance_112;
  }
  function $serializer_106() {
    $serializer_instance_106 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.TransferJob', this, 10);
    tmp0_serialDesc.g4f('tjUid', true);
    tmp0_serialDesc.g4f('tjType', true);
    tmp0_serialDesc.g4f('tjStatus', true);
    tmp0_serialDesc.g4f('tjName', true);
    tmp0_serialDesc.g4f('tjUuid', true);
    tmp0_serialDesc.g4f('tjTableId', true);
    tmp0_serialDesc.g4f('tjEntityUid', true);
    tmp0_serialDesc.g4f('tjTimeCreated', true);
    tmp0_serialDesc.g4f('tjCreationType', true);
    tmp0_serialDesc.g4f('tjOiUid', true);
    this.sjt_1 = tmp0_serialDesc;
  }
  protoOf($serializer_106).d44 = function () {
    return this.sjt_1;
  };
  protoOf($serializer_106).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_106).f44 = function (decoder) {
    var tmp0_desc = this.sjt_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = 0;
    var tmp5_local1 = 0;
    var tmp6_local2 = 0;
    var tmp7_local3 = null;
    var tmp8_local4 = null;
    var tmp9_local5 = 0;
    var tmp10_local6 = new Long(0, 0);
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = 0;
    var tmp13_local9 = new Long(0, 0);
    var tmp14_input = decoder.v47(tmp0_desc);
    if (tmp14_input.k48()) {
      tmp4_local0 = tmp14_input.a48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp14_input.a48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp14_input.a48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp14_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp14_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp14_input.a48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp14_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp14_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp14_input.a48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp14_input.b48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp14_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp14_input.a48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp14_input.a48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp14_input.a48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp14_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp14_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp14_input.a48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp14_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp14_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp14_input.a48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp14_input.b48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp14_input.w47(tmp0_desc);
    return TransferJob_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null);
  };
  protoOf($serializer_106).tjt = function (encoder, value) {
    var tmp0_desc = this.sjt_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.rfc_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 0, value.rfc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.sfc_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 1, value.sfc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.tfc_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 2, value.tfc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.ufc_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.ufc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.vfc_1 == null)) {
      tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.vfc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.wfc_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 5, value.wfc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.xfc_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.xfc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.yfc_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.yfc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.zfc_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 8, value.zfc_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !value.afd_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 9, value.afd_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_106).e44 = function (encoder, value) {
    return this.tjt(encoder, value instanceof TransferJob ? value : THROW_CCE());
  };
  var $serializer_instance_106;
  function $serializer_getInstance_106() {
    if ($serializer_instance_106 == null)
      new $serializer_106();
    return $serializer_instance_106;
  }
  function TransferJob_init_$Init$(seen1, tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_106().sjt_1);
    }
    if (0 === (seen1 & 1))
      $this.rfc_1 = 0;
    else
      $this.rfc_1 = tjUid;
    if (0 === (seen1 & 2))
      $this.sfc_1 = 0;
    else
      $this.sfc_1 = tjType;
    if (0 === (seen1 & 4))
      $this.tfc_1 = 0;
    else
      $this.tfc_1 = tjStatus;
    if (0 === (seen1 & 8))
      $this.ufc_1 = null;
    else
      $this.ufc_1 = tjName;
    if (0 === (seen1 & 16))
      $this.vfc_1 = null;
    else
      $this.vfc_1 = tjUuid;
    if (0 === (seen1 & 32))
      $this.wfc_1 = 0;
    else
      $this.wfc_1 = tjTableId;
    if (0 === (seen1 & 64))
      $this.xfc_1 = new Long(0, 0);
    else
      $this.xfc_1 = tjEntityUid;
    if (0 === (seen1 & 128))
      $this.yfc_1 = new Long(0, 0);
    else
      $this.yfc_1 = tjTimeCreated;
    if (0 === (seen1 & 256))
      $this.zfc_1 = 0;
    else
      $this.zfc_1 = tjCreationType;
    if (0 === (seen1 & 512))
      $this.afd_1 = new Long(0, 0);
    else
      $this.afd_1 = tjOiUid;
    return $this;
  }
  function TransferJob_init_$Create$(seen1, tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid, serializationConstructorMarker) {
    return TransferJob_init_$Init$(seen1, tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid, serializationConstructorMarker, objectCreate(protoOf(TransferJob)));
  }
  function TransferJob(tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid) {
    tjUid = tjUid === VOID ? 0 : tjUid;
    tjType = tjType === VOID ? 0 : tjType;
    tjStatus = tjStatus === VOID ? 0 : tjStatus;
    tjName = tjName === VOID ? null : tjName;
    tjUuid = tjUuid === VOID ? null : tjUuid;
    tjTableId = tjTableId === VOID ? 0 : tjTableId;
    tjEntityUid = tjEntityUid === VOID ? new Long(0, 0) : tjEntityUid;
    tjTimeCreated = tjTimeCreated === VOID ? new Long(0, 0) : tjTimeCreated;
    tjCreationType = tjCreationType === VOID ? 0 : tjCreationType;
    tjOiUid = tjOiUid === VOID ? new Long(0, 0) : tjOiUid;
    this.rfc_1 = tjUid;
    this.sfc_1 = tjType;
    this.tfc_1 = tjStatus;
    this.ufc_1 = tjName;
    this.vfc_1 = tjUuid;
    this.wfc_1 = tjTableId;
    this.xfc_1 = tjEntityUid;
    this.yfc_1 = tjTimeCreated;
    this.zfc_1 = tjCreationType;
    this.afd_1 = tjOiUid;
  }
  protoOf(TransferJob).toString = function () {
    return 'TransferJob(tjUid=' + this.rfc_1 + ', tjType=' + this.sfc_1 + ', tjStatus=' + this.tfc_1 + ', tjName=' + this.ufc_1 + ', tjUuid=' + this.vfc_1 + ', tjTableId=' + this.wfc_1 + ', tjEntityUid=' + this.xfc_1.toString() + ', tjTimeCreated=' + this.yfc_1.toString() + ', tjCreationType=' + this.zfc_1 + ', tjOiUid=' + this.afd_1.toString() + ')';
  };
  protoOf(TransferJob).hashCode = function () {
    var result = this.rfc_1;
    result = imul(result, 31) + this.sfc_1 | 0;
    result = imul(result, 31) + this.tfc_1 | 0;
    result = imul(result, 31) + (this.ufc_1 == null ? 0 : getStringHashCode(this.ufc_1)) | 0;
    result = imul(result, 31) + (this.vfc_1 == null ? 0 : getStringHashCode(this.vfc_1)) | 0;
    result = imul(result, 31) + this.wfc_1 | 0;
    result = imul(result, 31) + this.xfc_1.hashCode() | 0;
    result = imul(result, 31) + this.yfc_1.hashCode() | 0;
    result = imul(result, 31) + this.zfc_1 | 0;
    result = imul(result, 31) + this.afd_1.hashCode() | 0;
    return result;
  };
  protoOf(TransferJob).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof TransferJob))
      return false;
    var tmp0_other_with_cast = other instanceof TransferJob ? other : THROW_CCE();
    if (!(this.rfc_1 === tmp0_other_with_cast.rfc_1))
      return false;
    if (!(this.sfc_1 === tmp0_other_with_cast.sfc_1))
      return false;
    if (!(this.tfc_1 === tmp0_other_with_cast.tfc_1))
      return false;
    if (!(this.ufc_1 == tmp0_other_with_cast.ufc_1))
      return false;
    if (!(this.vfc_1 == tmp0_other_with_cast.vfc_1))
      return false;
    if (!(this.wfc_1 === tmp0_other_with_cast.wfc_1))
      return false;
    if (!this.xfc_1.equals(tmp0_other_with_cast.xfc_1))
      return false;
    if (!this.yfc_1.equals(tmp0_other_with_cast.yfc_1))
      return false;
    if (!(this.zfc_1 === tmp0_other_with_cast.zfc_1))
      return false;
    if (!this.afd_1.equals(tmp0_other_with_cast.afd_1))
      return false;
    return true;
  };
  function Companion_112() {
  }
  var Companion_instance_113;
  function Companion_getInstance_115() {
    return Companion_instance_113;
  }
  function $serializer_107() {
    $serializer_instance_107 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.TransferJobError', this, 5);
    tmp0_serialDesc.g4f('tjeId', true);
    tmp0_serialDesc.g4f('tjeTjUid', true);
    tmp0_serialDesc.g4f('tjeTime', true);
    tmp0_serialDesc.g4f('tjeErrorStr', true);
    tmp0_serialDesc.g4f('tjeDismissed', true);
    this.ujt_1 = tmp0_serialDesc;
  }
  protoOf($serializer_107).d44 = function () {
    return this.ujt_1;
  };
  protoOf($serializer_107).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_107).f44 = function (decoder) {
    var tmp0_desc = this.ujt_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = 0;
    var tmp5_local1 = 0;
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = null;
    var tmp8_local4 = false;
    var tmp9_input = decoder.v47(tmp0_desc);
    if (tmp9_input.k48()) {
      tmp4_local0 = tmp9_input.a48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp9_input.a48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp9_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp9_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp9_input.x47(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp9_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp9_input.a48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp9_input.a48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp9_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp9_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp9_input.x47(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp9_input.w47(tmp0_desc);
    return TransferJobError_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
  };
  protoOf($serializer_107).vjt = function (encoder, value) {
    var tmp0_desc = this.ujt_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.phq_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 0, value.phq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.qhq_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 1, value.qhq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.rhq_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.rhq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.shq_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.shq_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.thq_1 === false)) {
      tmp1_output.b49(tmp0_desc, 4, value.thq_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_107).e44 = function (encoder, value) {
    return this.vjt(encoder, value instanceof TransferJobError ? value : THROW_CCE());
  };
  var $serializer_instance_107;
  function $serializer_getInstance_107() {
    if ($serializer_instance_107 == null)
      new $serializer_107();
    return $serializer_instance_107;
  }
  function TransferJobError_init_$Init$(seen1, tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_107().ujt_1);
    }
    if (0 === (seen1 & 1))
      $this.phq_1 = 0;
    else
      $this.phq_1 = tjeId;
    if (0 === (seen1 & 2))
      $this.qhq_1 = 0;
    else
      $this.qhq_1 = tjeTjUid;
    if (0 === (seen1 & 4))
      $this.rhq_1 = new Long(0, 0);
    else
      $this.rhq_1 = tjeTime;
    if (0 === (seen1 & 8))
      $this.shq_1 = null;
    else
      $this.shq_1 = tjeErrorStr;
    if (0 === (seen1 & 16))
      $this.thq_1 = false;
    else
      $this.thq_1 = tjeDismissed;
    return $this;
  }
  function TransferJobError_init_$Create$(seen1, tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed, serializationConstructorMarker) {
    return TransferJobError_init_$Init$(seen1, tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed, serializationConstructorMarker, objectCreate(protoOf(TransferJobError)));
  }
  function TransferJobError(tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed) {
    tjeId = tjeId === VOID ? 0 : tjeId;
    tjeTjUid = tjeTjUid === VOID ? 0 : tjeTjUid;
    tjeTime = tjeTime === VOID ? new Long(0, 0) : tjeTime;
    tjeErrorStr = tjeErrorStr === VOID ? null : tjeErrorStr;
    tjeDismissed = tjeDismissed === VOID ? false : tjeDismissed;
    this.phq_1 = tjeId;
    this.qhq_1 = tjeTjUid;
    this.rhq_1 = tjeTime;
    this.shq_1 = tjeErrorStr;
    this.thq_1 = tjeDismissed;
  }
  protoOf(TransferJobError).toString = function () {
    return 'TransferJobError(tjeId=' + this.phq_1 + ', tjeTjUid=' + this.qhq_1 + ', tjeTime=' + this.rhq_1.toString() + ', tjeErrorStr=' + this.shq_1 + ', tjeDismissed=' + this.thq_1 + ')';
  };
  protoOf(TransferJobError).hashCode = function () {
    var result = this.phq_1;
    result = imul(result, 31) + this.qhq_1 | 0;
    result = imul(result, 31) + this.rhq_1.hashCode() | 0;
    result = imul(result, 31) + (this.shq_1 == null ? 0 : getStringHashCode(this.shq_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.thq_1) | 0;
    return result;
  };
  protoOf(TransferJobError).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof TransferJobError))
      return false;
    var tmp0_other_with_cast = other instanceof TransferJobError ? other : THROW_CCE();
    if (!(this.phq_1 === tmp0_other_with_cast.phq_1))
      return false;
    if (!(this.qhq_1 === tmp0_other_with_cast.qhq_1))
      return false;
    if (!this.rhq_1.equals(tmp0_other_with_cast.rhq_1))
      return false;
    if (!(this.shq_1 == tmp0_other_with_cast.shq_1))
      return false;
    if (!(this.thq_1 === tmp0_other_with_cast.thq_1))
      return false;
    return true;
  };
  function Companion_113() {
  }
  var Companion_instance_114;
  function Companion_getInstance_116() {
    return Companion_instance_114;
  }
  function $serializer_108() {
    $serializer_instance_108 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.TransferJobItem', this, 14);
    tmp0_serialDesc.g4f('tjiUid', true);
    tmp0_serialDesc.g4f('tjiTjUid', true);
    tmp0_serialDesc.g4f('tjTotalSize', true);
    tmp0_serialDesc.g4f('tjTransferred', true);
    tmp0_serialDesc.g4f('tjAttemptCount', true);
    tmp0_serialDesc.g4f('tjiSrc', true);
    tmp0_serialDesc.g4f('tjiDest', true);
    tmp0_serialDesc.g4f('tjiType', true);
    tmp0_serialDesc.g4f('tjiStatus', true);
    tmp0_serialDesc.g4f('tjiTableId', true);
    tmp0_serialDesc.g4f('tjiEntityUid', true);
    tmp0_serialDesc.g4f('tjiEntityEtag', true);
    tmp0_serialDesc.g4f('tjiLockIdToRelease', true);
    tmp0_serialDesc.g4f('tjiPartialTmpFile', true);
    this.wjt_1 = tmp0_serialDesc;
  }
  protoOf($serializer_108).d44 = function () {
    return this.wjt_1;
  };
  protoOf($serializer_108).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_108).f44 = function (decoder) {
    var tmp0_desc = this.wjt_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = 0;
    var tmp5_local1 = 0;
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = 0;
    var tmp9_local5 = null;
    var tmp10_local6 = null;
    var tmp11_local7 = 0;
    var tmp12_local8 = 0;
    var tmp13_local9 = 0;
    var tmp14_local10 = new Long(0, 0);
    var tmp15_local11 = new Long(0, 0);
    var tmp16_local12 = new Long(0, 0);
    var tmp17_local13 = null;
    var tmp18_input = decoder.v47(tmp0_desc);
    if (tmp18_input.k48()) {
      tmp4_local0 = tmp18_input.a48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp18_input.a48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp18_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp18_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp18_input.a48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp18_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp18_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp18_input.a48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp18_input.a48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp18_input.a48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp18_input.b48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp18_input.b48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp18_input.b48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp18_input.j48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp18_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp18_input.a48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp18_input.a48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp18_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp18_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp18_input.a48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp18_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp18_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp18_input.a48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp18_input.a48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp18_input.a48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp18_input.b48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp18_input.b48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp18_input.b48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp18_input.j48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp18_input.w47(tmp0_desc);
    return TransferJobItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null);
  };
  protoOf($serializer_108).xjt = function (encoder, value) {
    var tmp0_desc = this.wjt_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !(value.vbw_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 0, value.vbw_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.wbw_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 1, value.wbw_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.xbw_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.xbw_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.ybw_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.ybw_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.zbw_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 4, value.zbw_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.abx_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.abx_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.bbx_1 == null)) {
      tmp1_output.n49(tmp0_desc, 6, StringSerializer_getInstance(), value.bbx_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.cbx_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 7, value.cbx_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.dbx_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 8, value.dbx_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.ebx_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 9, value.ebx_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !value.fbx_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 10, value.fbx_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !value.gbx_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 11, value.gbx_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !value.hbx_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 12, value.hbx_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !(value.ibx_1 == null)) {
      tmp1_output.n49(tmp0_desc, 13, StringSerializer_getInstance(), value.ibx_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_108).e44 = function (encoder, value) {
    return this.xjt(encoder, value instanceof TransferJobItem ? value : THROW_CCE());
  };
  var $serializer_instance_108;
  function $serializer_getInstance_108() {
    if ($serializer_instance_108 == null)
      new $serializer_108();
    return $serializer_instance_108;
  }
  function TransferJobItem_init_$Init$(seen1, tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_108().wjt_1);
    }
    if (0 === (seen1 & 1))
      $this.vbw_1 = 0;
    else
      $this.vbw_1 = tjiUid;
    if (0 === (seen1 & 2))
      $this.wbw_1 = 0;
    else
      $this.wbw_1 = tjiTjUid;
    if (0 === (seen1 & 4))
      $this.xbw_1 = new Long(0, 0);
    else
      $this.xbw_1 = tjTotalSize;
    if (0 === (seen1 & 8))
      $this.ybw_1 = new Long(0, 0);
    else
      $this.ybw_1 = tjTransferred;
    if (0 === (seen1 & 16))
      $this.zbw_1 = 0;
    else
      $this.zbw_1 = tjAttemptCount;
    if (0 === (seen1 & 32))
      $this.abx_1 = null;
    else
      $this.abx_1 = tjiSrc;
    if (0 === (seen1 & 64))
      $this.bbx_1 = null;
    else
      $this.bbx_1 = tjiDest;
    if (0 === (seen1 & 128))
      $this.cbx_1 = 0;
    else
      $this.cbx_1 = tjiType;
    if (0 === (seen1 & 256))
      $this.dbx_1 = 0;
    else
      $this.dbx_1 = tjiStatus;
    if (0 === (seen1 & 512))
      $this.ebx_1 = 0;
    else
      $this.ebx_1 = tjiTableId;
    if (0 === (seen1 & 1024))
      $this.fbx_1 = new Long(0, 0);
    else
      $this.fbx_1 = tjiEntityUid;
    if (0 === (seen1 & 2048))
      $this.gbx_1 = new Long(0, 0);
    else
      $this.gbx_1 = tjiEntityEtag;
    if (0 === (seen1 & 4096))
      $this.hbx_1 = new Long(0, 0);
    else
      $this.hbx_1 = tjiLockIdToRelease;
    if (0 === (seen1 & 8192))
      $this.ibx_1 = null;
    else
      $this.ibx_1 = tjiPartialTmpFile;
    return $this;
  }
  function TransferJobItem_init_$Create$(seen1, tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile, serializationConstructorMarker) {
    return TransferJobItem_init_$Init$(seen1, tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile, serializationConstructorMarker, objectCreate(protoOf(TransferJobItem)));
  }
  function TransferJobItem(tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile) {
    tjiUid = tjiUid === VOID ? 0 : tjiUid;
    tjiTjUid = tjiTjUid === VOID ? 0 : tjiTjUid;
    tjTotalSize = tjTotalSize === VOID ? new Long(0, 0) : tjTotalSize;
    tjTransferred = tjTransferred === VOID ? new Long(0, 0) : tjTransferred;
    tjAttemptCount = tjAttemptCount === VOID ? 0 : tjAttemptCount;
    tjiSrc = tjiSrc === VOID ? null : tjiSrc;
    tjiDest = tjiDest === VOID ? null : tjiDest;
    tjiType = tjiType === VOID ? 0 : tjiType;
    tjiStatus = tjiStatus === VOID ? 0 : tjiStatus;
    tjiTableId = tjiTableId === VOID ? 0 : tjiTableId;
    tjiEntityUid = tjiEntityUid === VOID ? new Long(0, 0) : tjiEntityUid;
    tjiEntityEtag = tjiEntityEtag === VOID ? new Long(0, 0) : tjiEntityEtag;
    tjiLockIdToRelease = tjiLockIdToRelease === VOID ? new Long(0, 0) : tjiLockIdToRelease;
    tjiPartialTmpFile = tjiPartialTmpFile === VOID ? null : tjiPartialTmpFile;
    this.vbw_1 = tjiUid;
    this.wbw_1 = tjiTjUid;
    this.xbw_1 = tjTotalSize;
    this.ybw_1 = tjTransferred;
    this.zbw_1 = tjAttemptCount;
    this.abx_1 = tjiSrc;
    this.bbx_1 = tjiDest;
    this.cbx_1 = tjiType;
    this.dbx_1 = tjiStatus;
    this.ebx_1 = tjiTableId;
    this.fbx_1 = tjiEntityUid;
    this.gbx_1 = tjiEntityEtag;
    this.hbx_1 = tjiLockIdToRelease;
    this.ibx_1 = tjiPartialTmpFile;
  }
  protoOf(TransferJobItem).yjt = function (tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile) {
    return new TransferJobItem(tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile);
  };
  protoOf(TransferJobItem).zjt = function (tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile, $super) {
    tjiUid = tjiUid === VOID ? this.vbw_1 : tjiUid;
    tjiTjUid = tjiTjUid === VOID ? this.wbw_1 : tjiTjUid;
    tjTotalSize = tjTotalSize === VOID ? this.xbw_1 : tjTotalSize;
    tjTransferred = tjTransferred === VOID ? this.ybw_1 : tjTransferred;
    tjAttemptCount = tjAttemptCount === VOID ? this.zbw_1 : tjAttemptCount;
    tjiSrc = tjiSrc === VOID ? this.abx_1 : tjiSrc;
    tjiDest = tjiDest === VOID ? this.bbx_1 : tjiDest;
    tjiType = tjiType === VOID ? this.cbx_1 : tjiType;
    tjiStatus = tjiStatus === VOID ? this.dbx_1 : tjiStatus;
    tjiTableId = tjiTableId === VOID ? this.ebx_1 : tjiTableId;
    tjiEntityUid = tjiEntityUid === VOID ? this.fbx_1 : tjiEntityUid;
    tjiEntityEtag = tjiEntityEtag === VOID ? this.gbx_1 : tjiEntityEtag;
    tjiLockIdToRelease = tjiLockIdToRelease === VOID ? this.hbx_1 : tjiLockIdToRelease;
    tjiPartialTmpFile = tjiPartialTmpFile === VOID ? this.ibx_1 : tjiPartialTmpFile;
    return $super === VOID ? this.yjt(tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile) : $super.yjt.call(this, tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile);
  };
  protoOf(TransferJobItem).toString = function () {
    return 'TransferJobItem(tjiUid=' + this.vbw_1 + ', tjiTjUid=' + this.wbw_1 + ', tjTotalSize=' + this.xbw_1.toString() + ', tjTransferred=' + this.ybw_1.toString() + ', tjAttemptCount=' + this.zbw_1 + ', tjiSrc=' + this.abx_1 + ', tjiDest=' + this.bbx_1 + ', tjiType=' + this.cbx_1 + ', tjiStatus=' + this.dbx_1 + ', tjiTableId=' + this.ebx_1 + ', tjiEntityUid=' + this.fbx_1.toString() + ', tjiEntityEtag=' + this.gbx_1.toString() + ', tjiLockIdToRelease=' + this.hbx_1.toString() + ', tjiPartialTmpFile=' + this.ibx_1 + ')';
  };
  protoOf(TransferJobItem).hashCode = function () {
    var result = this.vbw_1;
    result = imul(result, 31) + this.wbw_1 | 0;
    result = imul(result, 31) + this.xbw_1.hashCode() | 0;
    result = imul(result, 31) + this.ybw_1.hashCode() | 0;
    result = imul(result, 31) + this.zbw_1 | 0;
    result = imul(result, 31) + (this.abx_1 == null ? 0 : getStringHashCode(this.abx_1)) | 0;
    result = imul(result, 31) + (this.bbx_1 == null ? 0 : getStringHashCode(this.bbx_1)) | 0;
    result = imul(result, 31) + this.cbx_1 | 0;
    result = imul(result, 31) + this.dbx_1 | 0;
    result = imul(result, 31) + this.ebx_1 | 0;
    result = imul(result, 31) + this.fbx_1.hashCode() | 0;
    result = imul(result, 31) + this.gbx_1.hashCode() | 0;
    result = imul(result, 31) + this.hbx_1.hashCode() | 0;
    result = imul(result, 31) + (this.ibx_1 == null ? 0 : getStringHashCode(this.ibx_1)) | 0;
    return result;
  };
  protoOf(TransferJobItem).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof TransferJobItem))
      return false;
    var tmp0_other_with_cast = other instanceof TransferJobItem ? other : THROW_CCE();
    if (!(this.vbw_1 === tmp0_other_with_cast.vbw_1))
      return false;
    if (!(this.wbw_1 === tmp0_other_with_cast.wbw_1))
      return false;
    if (!this.xbw_1.equals(tmp0_other_with_cast.xbw_1))
      return false;
    if (!this.ybw_1.equals(tmp0_other_with_cast.ybw_1))
      return false;
    if (!(this.zbw_1 === tmp0_other_with_cast.zbw_1))
      return false;
    if (!(this.abx_1 == tmp0_other_with_cast.abx_1))
      return false;
    if (!(this.bbx_1 == tmp0_other_with_cast.bbx_1))
      return false;
    if (!(this.cbx_1 === tmp0_other_with_cast.cbx_1))
      return false;
    if (!(this.dbx_1 === tmp0_other_with_cast.dbx_1))
      return false;
    if (!(this.ebx_1 === tmp0_other_with_cast.ebx_1))
      return false;
    if (!this.fbx_1.equals(tmp0_other_with_cast.fbx_1))
      return false;
    if (!this.gbx_1.equals(tmp0_other_with_cast.gbx_1))
      return false;
    if (!this.hbx_1.equals(tmp0_other_with_cast.hbx_1))
      return false;
    if (!(this.ibx_1 == tmp0_other_with_cast.ibx_1))
      return false;
    return true;
  };
  function Companion_114() {
  }
  var Companion_instance_115;
  function Companion_getInstance_117() {
    return Companion_instance_115;
  }
  function $serializer_109() {
    $serializer_instance_109 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.UidAndLabel', this, 2);
    tmp0_serialDesc.g4f('uid', true);
    tmp0_serialDesc.g4f('labelName', true);
    this.aju_1 = tmp0_serialDesc;
  }
  protoOf($serializer_109).d44 = function () {
    return this.aju_1;
  };
  protoOf($serializer_109).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_109).f44 = function (decoder) {
    var tmp0_desc = this.aju_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_input = decoder.v47(tmp0_desc);
    if (tmp6_input.k48()) {
      tmp4_local0 = tmp6_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.w47(tmp0_desc);
    return UidAndLabel_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_109).bju = function (encoder, value) {
    var tmp0_desc = this.aju_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.cju_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.cju_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.dju_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.dju_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_109).e44 = function (encoder, value) {
    return this.bju(encoder, value instanceof UidAndLabel ? value : THROW_CCE());
  };
  var $serializer_instance_109;
  function $serializer_getInstance_109() {
    if ($serializer_instance_109 == null)
      new $serializer_109();
    return $serializer_instance_109;
  }
  function UidAndLabel_init_$Init$(seen1, uid, labelName, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_109().aju_1);
    }
    if (0 === (seen1 & 1))
      $this.cju_1 = new Long(0, 0);
    else
      $this.cju_1 = uid;
    if (0 === (seen1 & 2))
      $this.dju_1 = null;
    else
      $this.dju_1 = labelName;
    return $this;
  }
  function UidAndLabel_init_$Create$(seen1, uid, labelName, serializationConstructorMarker) {
    return UidAndLabel_init_$Init$(seen1, uid, labelName, serializationConstructorMarker, objectCreate(protoOf(UidAndLabel)));
  }
  function UidAndLabel() {
    this.cju_1 = new Long(0, 0);
    this.dju_1 = null;
  }
  function Companion_115() {
  }
  var Companion_instance_116;
  function Companion_getInstance_118() {
    return Companion_instance_116;
  }
  function $serializer_110() {
    $serializer_instance_110 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.UmAccount', this, 7);
    tmp0_serialDesc.g4f('personUid', false);
    tmp0_serialDesc.g4f('username', true);
    tmp0_serialDesc.g4f('auth', true);
    tmp0_serialDesc.g4f('endpointUrl', true);
    tmp0_serialDesc.g4f('firstName', true);
    tmp0_serialDesc.g4f('lastName', true);
    tmp0_serialDesc.g4f('admin', true);
    this.eju_1 = tmp0_serialDesc;
  }
  protoOf($serializer_110).d44 = function () {
    return this.eju_1;
  };
  protoOf($serializer_110).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_110).f44 = function (decoder) {
    var tmp0_desc = this.eju_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = null;
    var tmp9_local5 = null;
    var tmp10_local6 = false;
    var tmp11_input = decoder.v47(tmp0_desc);
    if (tmp11_input.k48()) {
      tmp4_local0 = tmp11_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp11_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp11_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp11_input.f48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp11_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp11_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp11_input.x47(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp11_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp11_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp11_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp11_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp11_input.f48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp11_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp11_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp11_input.x47(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp11_input.w47(tmp0_desc);
    return UmAccount_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null);
  };
  protoOf($serializer_110).fju = function (encoder, value) {
    var tmp0_desc = this.eju_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    tmp1_output.f49(tmp0_desc, 0, value.gju_1);
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.hju_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.hju_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.iju_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.iju_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.jju_1 === '')) {
      tmp1_output.j49(tmp0_desc, 3, value.jju_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.kju_1 == null)) {
      tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.kju_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.lju_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.lju_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.mju_1 === false)) {
      tmp1_output.b49(tmp0_desc, 6, value.mju_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_110).e44 = function (encoder, value) {
    return this.fju(encoder, value instanceof UmAccount ? value : THROW_CCE());
  };
  var $serializer_instance_110;
  function $serializer_getInstance_110() {
    if ($serializer_instance_110 == null)
      new $serializer_110();
    return $serializer_instance_110;
  }
  function UmAccount_init_$Init$(seen1, personUid, username, auth, endpointUrl, firstName, lastName, admin, serializationConstructorMarker, $this) {
    if (!(1 === (1 & seen1))) {
      throwMissingFieldException(seen1, 1, $serializer_getInstance_110().eju_1);
    }
    $this.gju_1 = personUid;
    if (0 === (seen1 & 2))
      $this.hju_1 = null;
    else
      $this.hju_1 = username;
    if (0 === (seen1 & 4))
      $this.iju_1 = null;
    else
      $this.iju_1 = auth;
    if (0 === (seen1 & 8))
      $this.jju_1 = '';
    else
      $this.jju_1 = endpointUrl;
    if (0 === (seen1 & 16))
      $this.kju_1 = null;
    else
      $this.kju_1 = firstName;
    if (0 === (seen1 & 32))
      $this.lju_1 = null;
    else
      $this.lju_1 = lastName;
    if (0 === (seen1 & 64))
      $this.mju_1 = false;
    else
      $this.mju_1 = admin;
    return $this;
  }
  function UmAccount_init_$Create$(seen1, personUid, username, auth, endpointUrl, firstName, lastName, admin, serializationConstructorMarker) {
    return UmAccount_init_$Init$(seen1, personUid, username, auth, endpointUrl, firstName, lastName, admin, serializationConstructorMarker, objectCreate(protoOf(UmAccount)));
  }
  function UmAccount(personUid, username, auth, endpointUrl, firstName, lastName, admin) {
    username = username === VOID ? null : username;
    auth = auth === VOID ? null : auth;
    endpointUrl = endpointUrl === VOID ? '' : endpointUrl;
    firstName = firstName === VOID ? null : firstName;
    lastName = lastName === VOID ? null : lastName;
    admin = admin === VOID ? false : admin;
    this.gju_1 = personUid;
    this.hju_1 = username;
    this.iju_1 = auth;
    this.jju_1 = endpointUrl;
    this.kju_1 = firstName;
    this.lju_1 = lastName;
    this.mju_1 = admin;
  }
  protoOf(UmAccount).toString = function () {
    return 'UmAccount(personUid=' + this.gju_1.toString() + ', username=' + this.hju_1 + ', auth=' + this.iju_1 + ', endpointUrl=' + this.jju_1 + ', firstName=' + this.kju_1 + ', lastName=' + this.lju_1 + ', admin=' + this.mju_1 + ')';
  };
  protoOf(UmAccount).hashCode = function () {
    var result = this.gju_1.hashCode();
    result = imul(result, 31) + (this.hju_1 == null ? 0 : getStringHashCode(this.hju_1)) | 0;
    result = imul(result, 31) + (this.iju_1 == null ? 0 : getStringHashCode(this.iju_1)) | 0;
    result = imul(result, 31) + getStringHashCode(this.jju_1) | 0;
    result = imul(result, 31) + (this.kju_1 == null ? 0 : getStringHashCode(this.kju_1)) | 0;
    result = imul(result, 31) + (this.lju_1 == null ? 0 : getStringHashCode(this.lju_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.mju_1) | 0;
    return result;
  };
  protoOf(UmAccount).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof UmAccount))
      return false;
    var tmp0_other_with_cast = other instanceof UmAccount ? other : THROW_CCE();
    if (!this.gju_1.equals(tmp0_other_with_cast.gju_1))
      return false;
    if (!(this.hju_1 == tmp0_other_with_cast.hju_1))
      return false;
    if (!(this.iju_1 == tmp0_other_with_cast.iju_1))
      return false;
    if (!(this.jju_1 === tmp0_other_with_cast.jju_1))
      return false;
    if (!(this.kju_1 == tmp0_other_with_cast.kju_1))
      return false;
    if (!(this.lju_1 == tmp0_other_with_cast.lju_1))
      return false;
    if (!(this.mju_1 === tmp0_other_with_cast.mju_1))
      return false;
    return true;
  };
  function Companion_116() {
    this.nju_1 = 679;
    this.oju_1 = 1;
    this.pju_1 = 2;
    this.qju_1 = 4;
    this.rju_1 = 8;
    this.sju_1 = 1;
    this.tju_1 = 2;
    this.uju_1 = 4;
    this.vju_1 = 1;
    this.wju_1 = 2;
    this.xju_1 = 3;
  }
  var Companion_instance_117;
  function Companion_getInstance_119() {
    return Companion_instance_117;
  }
  function $serializer_111() {
    $serializer_instance_111 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.UserSession', this, 13);
    tmp0_serialDesc.g4f('usUid', true);
    tmp0_serialDesc.g4f('usPcsn', true);
    tmp0_serialDesc.g4f('usLcsn', true);
    tmp0_serialDesc.g4f('usLcb', true);
    tmp0_serialDesc.g4f('usLct', true);
    tmp0_serialDesc.g4f('usPersonUid', true);
    tmp0_serialDesc.g4f('usClientNodeId', true);
    tmp0_serialDesc.g4f('usStartTime', true);
    tmp0_serialDesc.g4f('usEndTime', true);
    tmp0_serialDesc.g4f('usStatus', true);
    tmp0_serialDesc.g4f('usReason', true);
    tmp0_serialDesc.g4f('usAuth', true);
    tmp0_serialDesc.g4f('usSessionType', true);
    this.yju_1 = tmp0_serialDesc;
  }
  protoOf($serializer_111).d44 = function () {
    return this.yju_1;
  };
  protoOf($serializer_111).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance()];
  };
  protoOf($serializer_111).f44 = function (decoder) {
    var tmp0_desc = this.yju_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = new Long(0, 0);
    var tmp11_local7 = new Long(0, 0);
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = 0;
    var tmp14_local10 = 0;
    var tmp15_local11 = null;
    var tmp16_local12 = 0;
    var tmp17_input = decoder.v47(tmp0_desc);
    if (tmp17_input.k48()) {
      tmp4_local0 = tmp17_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp17_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp17_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp17_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp17_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp17_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp17_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp17_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp17_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp17_input.a48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp17_input.a48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp17_input.j48(tmp0_desc, 11, StringSerializer_getInstance(), tmp15_local11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp17_input.a48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp17_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp17_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp17_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp17_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp17_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp17_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp17_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp17_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp17_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp17_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp17_input.a48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp17_input.a48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp17_input.j48(tmp0_desc, 11, StringSerializer_getInstance(), tmp15_local11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp17_input.a48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp17_input.w47(tmp0_desc);
    return UserSession_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null);
  };
  protoOf($serializer_111).zju = function (encoder, value) {
    var tmp0_desc = this.yju_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.rhv_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.rhv_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.shv_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.shv_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.thv_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.thv_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.uhv_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.uhv_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.vhv_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.vhv_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.whv_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.whv_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.xhv_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.xhv_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.yhv_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.yhv_1);
    }
    var tmp;
    if (tmp1_output.r49(tmp0_desc, 8)) {
      tmp = true;
    } else {
      var tmp_0 = value.zhv_1;
      Companion_getInstance();
      tmp = !tmp_0.equals(new Long(-1, 2147483647));
    }
    if (tmp) {
      tmp1_output.f49(tmp0_desc, 8, value.zhv_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.ahw_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 9, value.ahw_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.bhw_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 10, value.bhw_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !(value.chw_1 == null)) {
      tmp1_output.n49(tmp0_desc, 11, StringSerializer_getInstance(), value.chw_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !(value.dhw_1 === 1)) {
      tmp1_output.e49(tmp0_desc, 12, value.dhw_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_111).e44 = function (encoder, value) {
    return this.zju(encoder, value instanceof UserSession ? value : THROW_CCE());
  };
  var $serializer_instance_111;
  function $serializer_getInstance_111() {
    if ($serializer_instance_111 == null)
      new $serializer_111();
    return $serializer_instance_111;
  }
  function UserSession_init_$Init$(seen1, usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_111().yju_1);
    }
    if (0 === (seen1 & 1))
      $this.rhv_1 = new Long(0, 0);
    else
      $this.rhv_1 = usUid;
    if (0 === (seen1 & 2))
      $this.shv_1 = new Long(0, 0);
    else
      $this.shv_1 = usPcsn;
    if (0 === (seen1 & 4))
      $this.thv_1 = new Long(0, 0);
    else
      $this.thv_1 = usLcsn;
    if (0 === (seen1 & 8))
      $this.uhv_1 = new Long(0, 0);
    else
      $this.uhv_1 = usLcb;
    if (0 === (seen1 & 16))
      $this.vhv_1 = new Long(0, 0);
    else
      $this.vhv_1 = usLct;
    if (0 === (seen1 & 32))
      $this.whv_1 = new Long(0, 0);
    else
      $this.whv_1 = usPersonUid;
    if (0 === (seen1 & 64))
      $this.xhv_1 = new Long(0, 0);
    else
      $this.xhv_1 = usClientNodeId;
    if (0 === (seen1 & 128))
      $this.yhv_1 = new Long(0, 0);
    else
      $this.yhv_1 = usStartTime;
    if (0 === (seen1 & 256)) {
      var tmp = $this;
      Companion_getInstance();
      tmp.zhv_1 = new Long(-1, 2147483647);
    } else
      $this.zhv_1 = usEndTime;
    if (0 === (seen1 & 512))
      $this.ahw_1 = 0;
    else
      $this.ahw_1 = usStatus;
    if (0 === (seen1 & 1024))
      $this.bhw_1 = 0;
    else
      $this.bhw_1 = usReason;
    if (0 === (seen1 & 2048))
      $this.chw_1 = null;
    else
      $this.chw_1 = usAuth;
    if (0 === (seen1 & 4096))
      $this.dhw_1 = 1;
    else
      $this.dhw_1 = usSessionType;
    return $this;
  }
  function UserSession_init_$Create$(seen1, usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType, serializationConstructorMarker) {
    return UserSession_init_$Init$(seen1, usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType, serializationConstructorMarker, objectCreate(protoOf(UserSession)));
  }
  function UserSession() {
    this.rhv_1 = new Long(0, 0);
    this.shv_1 = new Long(0, 0);
    this.thv_1 = new Long(0, 0);
    this.uhv_1 = new Long(0, 0);
    this.vhv_1 = new Long(0, 0);
    this.whv_1 = new Long(0, 0);
    this.xhv_1 = new Long(0, 0);
    this.yhv_1 = new Long(0, 0);
    var tmp = this;
    Companion_getInstance();
    tmp.zhv_1 = new Long(-1, 2147483647);
    this.ahw_1 = 0;
    this.bhw_1 = 0;
    this.chw_1 = null;
    this.dhw_1 = 1;
  }
  function UserSessionAndPerson(person, personPicture, userSession) {
    person = person === VOID ? null : person;
    personPicture = personPicture === VOID ? null : personPicture;
    userSession = userSession === VOID ? null : userSession;
    this.ehw_1 = person;
    this.fhw_1 = personPicture;
    this.ghw_1 = userSession;
  }
  protoOf(UserSessionAndPerson).toString = function () {
    return 'UserSessionAndPerson(person=' + this.ehw_1 + ', personPicture=' + this.fhw_1 + ', userSession=' + this.ghw_1 + ')';
  };
  protoOf(UserSessionAndPerson).hashCode = function () {
    var result = this.ehw_1 == null ? 0 : this.ehw_1.hashCode();
    result = imul(result, 31) + (this.fhw_1 == null ? 0 : this.fhw_1.hashCode()) | 0;
    result = imul(result, 31) + (this.ghw_1 == null ? 0 : hashCode(this.ghw_1)) | 0;
    return result;
  };
  protoOf(UserSessionAndPerson).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof UserSessionAndPerson))
      return false;
    var tmp0_other_with_cast = other instanceof UserSessionAndPerson ? other : THROW_CCE();
    if (!equals(this.ehw_1, tmp0_other_with_cast.ehw_1))
      return false;
    if (!equals(this.fhw_1, tmp0_other_with_cast.fhw_1))
      return false;
    if (!equals(this.ghw_1, tmp0_other_with_cast.ghw_1))
      return false;
    return true;
  };
  function Companion_117() {
    this.ajv_1 = 0;
    this.bjv_1 = 1;
    this.cjv_1 = 2;
    this.djv_1 = 3;
    this.ejv_1 = 4;
    this.fjv_1 = 5;
    this.gjv_1 = 6;
    this.hjv_1 = 7;
    this.ijv_1 = 8;
    this.jjv_1 = 9;
    this.kjv_1 = 10;
    this.ljv_1 = 64;
  }
  var Companion_instance_118;
  function Companion_getInstance_120() {
    return Companion_instance_118;
  }
  function $serializer_112() {
    $serializer_instance_112 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.ActivityEntity', this, 7);
    tmp0_serialDesc.g4f('actUid', true);
    tmp0_serialDesc.g4f('actIdIri', true);
    tmp0_serialDesc.g4f('actType', true);
    tmp0_serialDesc.g4f('actMoreInfo', true);
    tmp0_serialDesc.g4f('actInteractionType', true);
    tmp0_serialDesc.g4f('actCorrectResponsePatterns', true);
    tmp0_serialDesc.g4f('actLct', true);
    this.mjv_1 = tmp0_serialDesc;
  }
  protoOf($serializer_112).d44 = function () {
    return this.mjv_1;
  };
  protoOf($serializer_112).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()];
  };
  protoOf($serializer_112).f44 = function (decoder) {
    var tmp0_desc = this.mjv_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = 0;
    var tmp9_local5 = null;
    var tmp10_local6 = new Long(0, 0);
    var tmp11_input = decoder.v47(tmp0_desc);
    if (tmp11_input.k48()) {
      tmp4_local0 = tmp11_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp11_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp11_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp11_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp11_input.a48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp11_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp11_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp11_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp11_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp11_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp11_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp11_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp11_input.a48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp11_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp11_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp11_input.w47(tmp0_desc);
    return ActivityEntity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null);
  };
  protoOf($serializer_112).njv = function (encoder, value) {
    var tmp0_desc = this.mjv_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.ui1_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.ui1_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.vi1_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.vi1_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.wi1_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.wi1_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.xi1_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.xi1_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.yi1_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 4, value.yi1_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.zi1_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.zi1_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.ai2_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.ai2_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_112).e44 = function (encoder, value) {
    return this.njv(encoder, value instanceof ActivityEntity ? value : THROW_CCE());
  };
  var $serializer_instance_112;
  function $serializer_getInstance_112() {
    if ($serializer_instance_112 == null)
      new $serializer_112();
    return $serializer_instance_112;
  }
  function ActivityEntity_init_$Init$(seen1, actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_112().mjv_1);
    }
    if (0 === (seen1 & 1))
      $this.ui1_1 = new Long(0, 0);
    else
      $this.ui1_1 = actUid;
    if (0 === (seen1 & 2))
      $this.vi1_1 = null;
    else
      $this.vi1_1 = actIdIri;
    if (0 === (seen1 & 4))
      $this.wi1_1 = null;
    else
      $this.wi1_1 = actType;
    if (0 === (seen1 & 8))
      $this.xi1_1 = null;
    else
      $this.xi1_1 = actMoreInfo;
    if (0 === (seen1 & 16))
      $this.yi1_1 = 0;
    else
      $this.yi1_1 = actInteractionType;
    if (0 === (seen1 & 32))
      $this.zi1_1 = null;
    else
      $this.zi1_1 = actCorrectResponsePatterns;
    if (0 === (seen1 & 64))
      $this.ai2_1 = new Long(0, 0);
    else
      $this.ai2_1 = actLct;
    return $this;
  }
  function ActivityEntity_init_$Create$(seen1, actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, serializationConstructorMarker) {
    return ActivityEntity_init_$Init$(seen1, actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, serializationConstructorMarker, objectCreate(protoOf(ActivityEntity)));
  }
  function ActivityEntity(actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) {
    actUid = actUid === VOID ? new Long(0, 0) : actUid;
    actIdIri = actIdIri === VOID ? null : actIdIri;
    actType = actType === VOID ? null : actType;
    actMoreInfo = actMoreInfo === VOID ? null : actMoreInfo;
    actInteractionType = actInteractionType === VOID ? 0 : actInteractionType;
    actCorrectResponsePatterns = actCorrectResponsePatterns === VOID ? null : actCorrectResponsePatterns;
    actLct = actLct === VOID ? new Long(0, 0) : actLct;
    this.ui1_1 = actUid;
    this.vi1_1 = actIdIri;
    this.wi1_1 = actType;
    this.xi1_1 = actMoreInfo;
    this.yi1_1 = actInteractionType;
    this.zi1_1 = actCorrectResponsePatterns;
    this.ai2_1 = actLct;
  }
  protoOf(ActivityEntity).ojv = function (actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) {
    return new ActivityEntity(actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct);
  };
  protoOf(ActivityEntity).pjv = function (actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, $super) {
    actUid = actUid === VOID ? this.ui1_1 : actUid;
    actIdIri = actIdIri === VOID ? this.vi1_1 : actIdIri;
    actType = actType === VOID ? this.wi1_1 : actType;
    actMoreInfo = actMoreInfo === VOID ? this.xi1_1 : actMoreInfo;
    actInteractionType = actInteractionType === VOID ? this.yi1_1 : actInteractionType;
    actCorrectResponsePatterns = actCorrectResponsePatterns === VOID ? this.zi1_1 : actCorrectResponsePatterns;
    actLct = actLct === VOID ? this.ai2_1 : actLct;
    return $super === VOID ? this.ojv(actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) : $super.ojv.call(this, actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct);
  };
  protoOf(ActivityEntity).toString = function () {
    return 'ActivityEntity(actUid=' + this.ui1_1.toString() + ', actIdIri=' + this.vi1_1 + ', actType=' + this.wi1_1 + ', actMoreInfo=' + this.xi1_1 + ', actInteractionType=' + this.yi1_1 + ', actCorrectResponsePatterns=' + this.zi1_1 + ', actLct=' + this.ai2_1.toString() + ')';
  };
  protoOf(ActivityEntity).hashCode = function () {
    var result = this.ui1_1.hashCode();
    result = imul(result, 31) + (this.vi1_1 == null ? 0 : getStringHashCode(this.vi1_1)) | 0;
    result = imul(result, 31) + (this.wi1_1 == null ? 0 : getStringHashCode(this.wi1_1)) | 0;
    result = imul(result, 31) + (this.xi1_1 == null ? 0 : getStringHashCode(this.xi1_1)) | 0;
    result = imul(result, 31) + this.yi1_1 | 0;
    result = imul(result, 31) + (this.zi1_1 == null ? 0 : getStringHashCode(this.zi1_1)) | 0;
    result = imul(result, 31) + this.ai2_1.hashCode() | 0;
    return result;
  };
  protoOf(ActivityEntity).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ActivityEntity))
      return false;
    var tmp0_other_with_cast = other instanceof ActivityEntity ? other : THROW_CCE();
    if (!this.ui1_1.equals(tmp0_other_with_cast.ui1_1))
      return false;
    if (!(this.vi1_1 == tmp0_other_with_cast.vi1_1))
      return false;
    if (!(this.wi1_1 == tmp0_other_with_cast.wi1_1))
      return false;
    if (!(this.xi1_1 == tmp0_other_with_cast.xi1_1))
      return false;
    if (!(this.yi1_1 === tmp0_other_with_cast.yi1_1))
      return false;
    if (!(this.zi1_1 == tmp0_other_with_cast.zi1_1))
      return false;
    if (!this.ai2_1.equals(tmp0_other_with_cast.ai2_1))
      return false;
    return true;
  };
  function Companion_118() {
    this.qjv_1 = 6405;
  }
  var Companion_instance_119;
  function Companion_getInstance_121() {
    return Companion_instance_119;
  }
  function ActivityExtensionEntity(aeeActivityUid, aeeKeyHash, aeeKey, aeeJson, aeeLastMod, aeeIsDeleted) {
    aeeActivityUid = aeeActivityUid === VOID ? new Long(0, 0) : aeeActivityUid;
    aeeKeyHash = aeeKeyHash === VOID ? new Long(0, 0) : aeeKeyHash;
    aeeKey = aeeKey === VOID ? null : aeeKey;
    aeeJson = aeeJson === VOID ? null : aeeJson;
    aeeLastMod = aeeLastMod === VOID ? new Long(0, 0) : aeeLastMod;
    aeeIsDeleted = aeeIsDeleted === VOID ? false : aeeIsDeleted;
    this.zi5_1 = aeeActivityUid;
    this.ai6_1 = aeeKeyHash;
    this.bi6_1 = aeeKey;
    this.ci6_1 = aeeJson;
    this.di6_1 = aeeLastMod;
    this.ei6_1 = aeeIsDeleted;
  }
  protoOf(ActivityExtensionEntity).toString = function () {
    return 'ActivityExtensionEntity(aeeActivityUid=' + this.zi5_1.toString() + ', aeeKeyHash=' + this.ai6_1.toString() + ', aeeKey=' + this.bi6_1 + ', aeeJson=' + this.ci6_1 + ', aeeLastMod=' + this.di6_1.toString() + ', aeeIsDeleted=' + this.ei6_1 + ')';
  };
  protoOf(ActivityExtensionEntity).hashCode = function () {
    var result = this.zi5_1.hashCode();
    result = imul(result, 31) + this.ai6_1.hashCode() | 0;
    result = imul(result, 31) + (this.bi6_1 == null ? 0 : getStringHashCode(this.bi6_1)) | 0;
    result = imul(result, 31) + (this.ci6_1 == null ? 0 : getStringHashCode(this.ci6_1)) | 0;
    result = imul(result, 31) + this.di6_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.ei6_1) | 0;
    return result;
  };
  protoOf(ActivityExtensionEntity).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ActivityExtensionEntity))
      return false;
    var tmp0_other_with_cast = other instanceof ActivityExtensionEntity ? other : THROW_CCE();
    if (!this.zi5_1.equals(tmp0_other_with_cast.zi5_1))
      return false;
    if (!this.ai6_1.equals(tmp0_other_with_cast.ai6_1))
      return false;
    if (!(this.bi6_1 == tmp0_other_with_cast.bi6_1))
      return false;
    if (!(this.ci6_1 == tmp0_other_with_cast.ci6_1))
      return false;
    if (!this.di6_1.equals(tmp0_other_with_cast.di6_1))
      return false;
    if (!(this.ei6_1 === tmp0_other_with_cast.ei6_1))
      return false;
    return true;
  };
  function Companion_119() {
    this.rjv_1 = 1;
    this.sjv_1 = 2;
    this.tjv_1 = 3;
    this.ujv_1 = 4;
    this.vjv_1 = 5;
    this.wjv_1 = 6401;
  }
  var Companion_instance_120;
  function Companion_getInstance_122() {
    return Companion_instance_120;
  }
  function $serializer_113() {
    $serializer_instance_113 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.ActivityInteractionEntity', this, 6);
    tmp0_serialDesc.g4f('aieActivityUid', true);
    tmp0_serialDesc.g4f('aieHash', true);
    tmp0_serialDesc.g4f('aieProp', true);
    tmp0_serialDesc.g4f('aieId', true);
    tmp0_serialDesc.g4f('aieLastMod', true);
    tmp0_serialDesc.g4f('aieIsDeleted', true);
    this.xjv_1 = tmp0_serialDesc;
  }
  protoOf($serializer_113).d44 = function () {
    return this.xjv_1;
  };
  protoOf($serializer_113).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_113).f44 = function (decoder) {
    var tmp0_desc = this.xjv_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = 0;
    var tmp7_local3 = null;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = false;
    var tmp10_input = decoder.v47(tmp0_desc);
    if (tmp10_input.k48()) {
      tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.a48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.x47(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.a48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.x47(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.w47(tmp0_desc);
    return ActivityInteractionEntity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_113).yjv = function (encoder, value) {
    var tmp0_desc = this.xjv_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.ei7_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.ei7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.fi7_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.fi7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.gi7_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 2, value.gi7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.hi7_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.hi7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.ii7_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.ii7_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.ji7_1 === false)) {
      tmp1_output.b49(tmp0_desc, 5, value.ji7_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_113).e44 = function (encoder, value) {
    return this.yjv(encoder, value instanceof ActivityInteractionEntity ? value : THROW_CCE());
  };
  var $serializer_instance_113;
  function $serializer_getInstance_113() {
    if ($serializer_instance_113 == null)
      new $serializer_113();
    return $serializer_instance_113;
  }
  function ActivityInteractionEntity_init_$Init$(seen1, aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_113().xjv_1);
    }
    if (0 === (seen1 & 1))
      $this.ei7_1 = new Long(0, 0);
    else
      $this.ei7_1 = aieActivityUid;
    if (0 === (seen1 & 2))
      $this.fi7_1 = new Long(0, 0);
    else
      $this.fi7_1 = aieHash;
    if (0 === (seen1 & 4))
      $this.gi7_1 = 0;
    else
      $this.gi7_1 = aieProp;
    if (0 === (seen1 & 8))
      $this.hi7_1 = null;
    else
      $this.hi7_1 = aieId;
    if (0 === (seen1 & 16))
      $this.ii7_1 = new Long(0, 0);
    else
      $this.ii7_1 = aieLastMod;
    if (0 === (seen1 & 32))
      $this.ji7_1 = false;
    else
      $this.ji7_1 = aieIsDeleted;
    return $this;
  }
  function ActivityInteractionEntity_init_$Create$(seen1, aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted, serializationConstructorMarker) {
    return ActivityInteractionEntity_init_$Init$(seen1, aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted, serializationConstructorMarker, objectCreate(protoOf(ActivityInteractionEntity)));
  }
  function ActivityInteractionEntity(aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted) {
    aieActivityUid = aieActivityUid === VOID ? new Long(0, 0) : aieActivityUid;
    aieHash = aieHash === VOID ? new Long(0, 0) : aieHash;
    aieProp = aieProp === VOID ? 0 : aieProp;
    aieId = aieId === VOID ? null : aieId;
    aieLastMod = aieLastMod === VOID ? new Long(0, 0) : aieLastMod;
    aieIsDeleted = aieIsDeleted === VOID ? false : aieIsDeleted;
    this.ei7_1 = aieActivityUid;
    this.fi7_1 = aieHash;
    this.gi7_1 = aieProp;
    this.hi7_1 = aieId;
    this.ii7_1 = aieLastMod;
    this.ji7_1 = aieIsDeleted;
  }
  protoOf(ActivityInteractionEntity).toString = function () {
    return 'ActivityInteractionEntity(aieActivityUid=' + this.ei7_1.toString() + ', aieHash=' + this.fi7_1.toString() + ', aieProp=' + this.gi7_1 + ', aieId=' + this.hi7_1 + ', aieLastMod=' + this.ii7_1.toString() + ', aieIsDeleted=' + this.ji7_1 + ')';
  };
  protoOf(ActivityInteractionEntity).hashCode = function () {
    var result = this.ei7_1.hashCode();
    result = imul(result, 31) + this.fi7_1.hashCode() | 0;
    result = imul(result, 31) + this.gi7_1 | 0;
    result = imul(result, 31) + (this.hi7_1 == null ? 0 : getStringHashCode(this.hi7_1)) | 0;
    result = imul(result, 31) + this.ii7_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.ji7_1) | 0;
    return result;
  };
  protoOf(ActivityInteractionEntity).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ActivityInteractionEntity))
      return false;
    var tmp0_other_with_cast = other instanceof ActivityInteractionEntity ? other : THROW_CCE();
    if (!this.ei7_1.equals(tmp0_other_with_cast.ei7_1))
      return false;
    if (!this.fi7_1.equals(tmp0_other_with_cast.fi7_1))
      return false;
    if (!(this.gi7_1 === tmp0_other_with_cast.gi7_1))
      return false;
    if (!(this.hi7_1 == tmp0_other_with_cast.hi7_1))
      return false;
    if (!this.ii7_1.equals(tmp0_other_with_cast.ii7_1))
      return false;
    if (!(this.ji7_1 === tmp0_other_with_cast.ji7_1))
      return false;
    return true;
  };
  function Companion_120() {
    this.zjv_1 = 6442;
    this.ajw_1 = 'name';
    this.bjw_1 = 'description';
  }
  var Companion_instance_121;
  function Companion_getInstance_123() {
    return Companion_instance_121;
  }
  function $serializer_114() {
    $serializer_instance_114 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.ActivityLangMapEntry', this, 6);
    tmp0_serialDesc.g4f('almeActivityUid', true);
    tmp0_serialDesc.g4f('almeHash', true);
    tmp0_serialDesc.g4f('almeLangCode', true);
    tmp0_serialDesc.g4f('almeValue', true);
    tmp0_serialDesc.g4f('almeAieHash', true);
    tmp0_serialDesc.g4f('almeLastMod', true);
    this.cjw_1 = tmp0_serialDesc;
  }
  protoOf($serializer_114).d44 = function () {
    return this.cjw_1;
  };
  protoOf($serializer_114).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_114).f44 = function (decoder) {
    var tmp0_desc = this.cjw_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_input = decoder.v47(tmp0_desc);
    if (tmp10_input.k48()) {
      tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.w47(tmp0_desc);
    return ActivityLangMapEntry_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_114).djw = function (encoder, value) {
    var tmp0_desc = this.cjw_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.ei9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.ei9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.fi9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.fi9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.gi9_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.gi9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.hi9_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.hi9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.ii9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.ii9_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.ji9_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.ji9_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_114).e44 = function (encoder, value) {
    return this.djw(encoder, value instanceof ActivityLangMapEntry ? value : THROW_CCE());
  };
  var $serializer_instance_114;
  function $serializer_getInstance_114() {
    if ($serializer_instance_114 == null)
      new $serializer_114();
    return $serializer_instance_114;
  }
  function ActivityLangMapEntry_init_$Init$(seen1, almeActivityUid, almeHash, almeLangCode, almeValue, almeAieHash, almeLastMod, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_114().cjw_1);
    }
    if (0 === (seen1 & 1))
      $this.ei9_1 = new Long(0, 0);
    else
      $this.ei9_1 = almeActivityUid;
    if (0 === (seen1 & 2))
      $this.fi9_1 = new Long(0, 0);
    else
      $this.fi9_1 = almeHash;
    if (0 === (seen1 & 4))
      $this.gi9_1 = null;
    else
      $this.gi9_1 = almeLangCode;
    if (0 === (seen1 & 8))
      $this.hi9_1 = null;
    else
      $this.hi9_1 = almeValue;
    if (0 === (seen1 & 16))
      $this.ii9_1 = new Long(0, 0);
    else
      $this.ii9_1 = almeAieHash;
    if (0 === (seen1 & 32))
      $this.ji9_1 = new Long(0, 0);
    else
      $this.ji9_1 = almeLastMod;
    return $this;
  }
  function ActivityLangMapEntry_init_$Create$(seen1, almeActivityUid, almeHash, almeLangCode, almeValue, almeAieHash, almeLastMod, serializationConstructorMarker) {
    return ActivityLangMapEntry_init_$Init$(seen1, almeActivityUid, almeHash, almeLangCode, almeValue, almeAieHash, almeLastMod, serializationConstructorMarker, objectCreate(protoOf(ActivityLangMapEntry)));
  }
  function ActivityLangMapEntry(almeActivityUid, almeHash, almeLangCode, almeValue, almeAieHash, almeLastMod) {
    almeActivityUid = almeActivityUid === VOID ? new Long(0, 0) : almeActivityUid;
    almeHash = almeHash === VOID ? new Long(0, 0) : almeHash;
    almeLangCode = almeLangCode === VOID ? null : almeLangCode;
    almeValue = almeValue === VOID ? null : almeValue;
    almeAieHash = almeAieHash === VOID ? new Long(0, 0) : almeAieHash;
    almeLastMod = almeLastMod === VOID ? new Long(0, 0) : almeLastMod;
    this.ei9_1 = almeActivityUid;
    this.fi9_1 = almeHash;
    this.gi9_1 = almeLangCode;
    this.hi9_1 = almeValue;
    this.ii9_1 = almeAieHash;
    this.ji9_1 = almeLastMod;
  }
  protoOf(ActivityLangMapEntry).toString = function () {
    return 'ActivityLangMapEntry(almeActivityUid=' + this.ei9_1.toString() + ', almeHash=' + this.fi9_1.toString() + ', almeLangCode=' + this.gi9_1 + ', almeValue=' + this.hi9_1 + ', almeAieHash=' + this.ii9_1.toString() + ', almeLastMod=' + this.ji9_1.toString() + ')';
  };
  protoOf(ActivityLangMapEntry).hashCode = function () {
    var result = this.ei9_1.hashCode();
    result = imul(result, 31) + this.fi9_1.hashCode() | 0;
    result = imul(result, 31) + (this.gi9_1 == null ? 0 : getStringHashCode(this.gi9_1)) | 0;
    result = imul(result, 31) + (this.hi9_1 == null ? 0 : getStringHashCode(this.hi9_1)) | 0;
    result = imul(result, 31) + this.ii9_1.hashCode() | 0;
    result = imul(result, 31) + this.ji9_1.hashCode() | 0;
    return result;
  };
  protoOf(ActivityLangMapEntry).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ActivityLangMapEntry))
      return false;
    var tmp0_other_with_cast = other instanceof ActivityLangMapEntry ? other : THROW_CCE();
    if (!this.ei9_1.equals(tmp0_other_with_cast.ei9_1))
      return false;
    if (!this.fi9_1.equals(tmp0_other_with_cast.fi9_1))
      return false;
    if (!(this.gi9_1 == tmp0_other_with_cast.gi9_1))
      return false;
    if (!(this.hi9_1 == tmp0_other_with_cast.hi9_1))
      return false;
    if (!this.ii9_1.equals(tmp0_other_with_cast.ii9_1))
      return false;
    if (!this.ji9_1.equals(tmp0_other_with_cast.ji9_1))
      return false;
    return true;
  };
  function Companion_121() {
    this.ejw_1 = 68;
  }
  var Companion_instance_122;
  function Companion_getInstance_124() {
    return Companion_instance_122;
  }
  function $serializer_115() {
    $serializer_instance_115 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.ActorEntity', this, 11);
    tmp0_serialDesc.g4f('actorUid', true);
    tmp0_serialDesc.g4f('actorPersonUid', true);
    tmp0_serialDesc.g4f('actorName', true);
    tmp0_serialDesc.g4f('actorMbox', true);
    tmp0_serialDesc.g4f('actorMbox_sha1sum', true);
    tmp0_serialDesc.g4f('actorOpenid', true);
    tmp0_serialDesc.g4f('actorAccountName', true);
    tmp0_serialDesc.g4f('actorAccountHomePage', true);
    tmp0_serialDesc.g4f('actorEtag', true);
    tmp0_serialDesc.g4f('actorLct', true);
    tmp0_serialDesc.g4f('actorObjectType', true);
    this.fjw_1 = tmp0_serialDesc;
  }
  protoOf($serializer_115).d44 = function () {
    return this.fjw_1;
  };
  protoOf($serializer_115).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance()];
  };
  protoOf($serializer_115).f44 = function (decoder) {
    var tmp0_desc = this.fjw_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = null;
    var tmp9_local5 = null;
    var tmp10_local6 = null;
    var tmp11_local7 = null;
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = new Long(0, 0);
    var tmp14_local10 = 0;
    var tmp15_input = decoder.v47(tmp0_desc);
    if (tmp15_input.k48()) {
      tmp4_local0 = tmp15_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp15_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp15_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp15_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp15_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp15_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp15_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp15_input.j48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp15_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp15_input.b48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp15_input.a48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp15_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp15_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp15_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp15_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp15_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp15_input.j48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp15_input.j48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp15_input.j48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp15_input.j48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp15_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp15_input.b48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp15_input.a48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp15_input.w47(tmp0_desc);
    return ActorEntity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null);
  };
  protoOf($serializer_115).gjw = function (encoder, value) {
    var tmp0_desc = this.fjw_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.tid_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.tid_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.uid_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.uid_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.vid_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.vid_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.wid_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.wid_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.xid_1 == null)) {
      tmp1_output.n49(tmp0_desc, 4, StringSerializer_getInstance(), value.xid_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.yid_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, StringSerializer_getInstance(), value.yid_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.zid_1 == null)) {
      tmp1_output.n49(tmp0_desc, 6, StringSerializer_getInstance(), value.zid_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.aie_1 == null)) {
      tmp1_output.n49(tmp0_desc, 7, StringSerializer_getInstance(), value.aie_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.bie_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.bie_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !value.cie_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 9, value.cie_1);
    }
    var tmp;
    if (tmp1_output.r49(tmp0_desc, 10)) {
      tmp = true;
    } else {
      var tmp_0 = value.die_1;
      tmp = !(tmp_0 === 1);
    }
    if (tmp) {
      tmp1_output.e49(tmp0_desc, 10, value.die_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_115).e44 = function (encoder, value) {
    return this.gjw(encoder, value instanceof ActorEntity ? value : THROW_CCE());
  };
  var $serializer_instance_115;
  function $serializer_getInstance_115() {
    if ($serializer_instance_115 == null)
      new $serializer_115();
    return $serializer_instance_115;
  }
  function ActorEntity_init_$Init$(seen1, actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_115().fjw_1);
    }
    if (0 === (seen1 & 1))
      $this.tid_1 = new Long(0, 0);
    else
      $this.tid_1 = actorUid;
    if (0 === (seen1 & 2))
      $this.uid_1 = new Long(0, 0);
    else
      $this.uid_1 = actorPersonUid;
    if (0 === (seen1 & 4))
      $this.vid_1 = null;
    else
      $this.vid_1 = actorName;
    if (0 === (seen1 & 8))
      $this.wid_1 = null;
    else
      $this.wid_1 = actorMbox;
    if (0 === (seen1 & 16))
      $this.xid_1 = null;
    else
      $this.xid_1 = actorMbox_sha1sum;
    if (0 === (seen1 & 32))
      $this.yid_1 = null;
    else
      $this.yid_1 = actorOpenid;
    if (0 === (seen1 & 64))
      $this.zid_1 = null;
    else
      $this.zid_1 = actorAccountName;
    if (0 === (seen1 & 128))
      $this.aie_1 = null;
    else
      $this.aie_1 = actorAccountHomePage;
    if (0 === (seen1 & 256))
      $this.bie_1 = new Long(0, 0);
    else
      $this.bie_1 = actorEtag;
    if (0 === (seen1 & 512))
      $this.cie_1 = new Long(0, 0);
    else
      $this.cie_1 = actorLct;
    if (0 === (seen1 & 1024)) {
      var tmp = $this;
      tmp.die_1 = 1;
    } else
      $this.die_1 = actorObjectType;
    return $this;
  }
  function ActorEntity_init_$Create$(seen1, actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType, serializationConstructorMarker) {
    return ActorEntity_init_$Init$(seen1, actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType, serializationConstructorMarker, objectCreate(protoOf(ActorEntity)));
  }
  function ActorEntity(actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType) {
    actorUid = actorUid === VOID ? new Long(0, 0) : actorUid;
    actorPersonUid = actorPersonUid === VOID ? new Long(0, 0) : actorPersonUid;
    actorName = actorName === VOID ? null : actorName;
    actorMbox = actorMbox === VOID ? null : actorMbox;
    actorMbox_sha1sum = actorMbox_sha1sum === VOID ? null : actorMbox_sha1sum;
    actorOpenid = actorOpenid === VOID ? null : actorOpenid;
    actorAccountName = actorAccountName === VOID ? null : actorAccountName;
    actorAccountHomePage = actorAccountHomePage === VOID ? null : actorAccountHomePage;
    actorEtag = actorEtag === VOID ? new Long(0, 0) : actorEtag;
    actorLct = actorLct === VOID ? new Long(0, 0) : actorLct;
    var tmp;
    if (actorObjectType === VOID) {
      tmp = 1;
    } else {
      tmp = actorObjectType;
    }
    actorObjectType = tmp;
    this.tid_1 = actorUid;
    this.uid_1 = actorPersonUid;
    this.vid_1 = actorName;
    this.wid_1 = actorMbox;
    this.xid_1 = actorMbox_sha1sum;
    this.yid_1 = actorOpenid;
    this.zid_1 = actorAccountName;
    this.aie_1 = actorAccountHomePage;
    this.bie_1 = actorEtag;
    this.cie_1 = actorLct;
    this.die_1 = actorObjectType;
  }
  protoOf(ActorEntity).toString = function () {
    return 'ActorEntity(actorUid=' + this.tid_1.toString() + ', actorPersonUid=' + this.uid_1.toString() + ', actorName=' + this.vid_1 + ', actorMbox=' + this.wid_1 + ', actorMbox_sha1sum=' + this.xid_1 + ', actorOpenid=' + this.yid_1 + ', actorAccountName=' + this.zid_1 + ', actorAccountHomePage=' + this.aie_1 + ', actorEtag=' + this.bie_1.toString() + ', actorLct=' + this.cie_1.toString() + ', actorObjectType=' + this.die_1 + ')';
  };
  protoOf(ActorEntity).hashCode = function () {
    var result = this.tid_1.hashCode();
    result = imul(result, 31) + this.uid_1.hashCode() | 0;
    result = imul(result, 31) + (this.vid_1 == null ? 0 : getStringHashCode(this.vid_1)) | 0;
    result = imul(result, 31) + (this.wid_1 == null ? 0 : getStringHashCode(this.wid_1)) | 0;
    result = imul(result, 31) + (this.xid_1 == null ? 0 : getStringHashCode(this.xid_1)) | 0;
    result = imul(result, 31) + (this.yid_1 == null ? 0 : getStringHashCode(this.yid_1)) | 0;
    result = imul(result, 31) + (this.zid_1 == null ? 0 : getStringHashCode(this.zid_1)) | 0;
    result = imul(result, 31) + (this.aie_1 == null ? 0 : getStringHashCode(this.aie_1)) | 0;
    result = imul(result, 31) + this.bie_1.hashCode() | 0;
    result = imul(result, 31) + this.cie_1.hashCode() | 0;
    result = imul(result, 31) + this.die_1 | 0;
    return result;
  };
  protoOf(ActorEntity).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ActorEntity))
      return false;
    var tmp0_other_with_cast = other instanceof ActorEntity ? other : THROW_CCE();
    if (!this.tid_1.equals(tmp0_other_with_cast.tid_1))
      return false;
    if (!this.uid_1.equals(tmp0_other_with_cast.uid_1))
      return false;
    if (!(this.vid_1 == tmp0_other_with_cast.vid_1))
      return false;
    if (!(this.wid_1 == tmp0_other_with_cast.wid_1))
      return false;
    if (!(this.xid_1 == tmp0_other_with_cast.xid_1))
      return false;
    if (!(this.yid_1 == tmp0_other_with_cast.yid_1))
      return false;
    if (!(this.zid_1 == tmp0_other_with_cast.zid_1))
      return false;
    if (!(this.aie_1 == tmp0_other_with_cast.aie_1))
      return false;
    if (!this.bie_1.equals(tmp0_other_with_cast.bie_1))
      return false;
    if (!this.cie_1.equals(tmp0_other_with_cast.cie_1))
      return false;
    if (!(this.die_1 === tmp0_other_with_cast.die_1))
      return false;
    return true;
  };
  function Companion_122() {
    this.hjw_1 = 4232;
  }
  var Companion_instance_123;
  function Companion_getInstance_125() {
    return Companion_instance_123;
  }
  function $serializer_116() {
    $serializer_instance_116 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.GroupMemberActorJoin', this, 3);
    tmp0_serialDesc.g4f('gmajGroupActorUid', true);
    tmp0_serialDesc.g4f('gmajMemberActorUid', true);
    tmp0_serialDesc.g4f('gmajLastMod', true);
    this.ijw_1 = tmp0_serialDesc;
  }
  protoOf($serializer_116).d44 = function () {
    return this.ijw_1;
  };
  protoOf($serializer_116).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_116).f44 = function (decoder) {
    var tmp0_desc = this.ijw_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_input = decoder.v47(tmp0_desc);
    if (tmp7_input.k48()) {
      tmp4_local0 = tmp7_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp7_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp7_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp7_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp7_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp7_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp7_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp7_input.w47(tmp0_desc);
    return GroupMemberActorJoin_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
  };
  protoOf($serializer_116).jjw = function (encoder, value) {
    var tmp0_desc = this.ijw_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.qii_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.qii_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.rii_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.rii_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.sii_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.sii_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_116).e44 = function (encoder, value) {
    return this.jjw(encoder, value instanceof GroupMemberActorJoin ? value : THROW_CCE());
  };
  var $serializer_instance_116;
  function $serializer_getInstance_116() {
    if ($serializer_instance_116 == null)
      new $serializer_116();
    return $serializer_instance_116;
  }
  function GroupMemberActorJoin_init_$Init$(seen1, gmajGroupActorUid, gmajMemberActorUid, gmajLastMod, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_116().ijw_1);
    }
    if (0 === (seen1 & 1))
      $this.qii_1 = new Long(0, 0);
    else
      $this.qii_1 = gmajGroupActorUid;
    if (0 === (seen1 & 2))
      $this.rii_1 = new Long(0, 0);
    else
      $this.rii_1 = gmajMemberActorUid;
    if (0 === (seen1 & 4))
      $this.sii_1 = new Long(0, 0);
    else
      $this.sii_1 = gmajLastMod;
    return $this;
  }
  function GroupMemberActorJoin_init_$Create$(seen1, gmajGroupActorUid, gmajMemberActorUid, gmajLastMod, serializationConstructorMarker) {
    return GroupMemberActorJoin_init_$Init$(seen1, gmajGroupActorUid, gmajMemberActorUid, gmajLastMod, serializationConstructorMarker, objectCreate(protoOf(GroupMemberActorJoin)));
  }
  function GroupMemberActorJoin(gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) {
    gmajGroupActorUid = gmajGroupActorUid === VOID ? new Long(0, 0) : gmajGroupActorUid;
    gmajMemberActorUid = gmajMemberActorUid === VOID ? new Long(0, 0) : gmajMemberActorUid;
    gmajLastMod = gmajLastMod === VOID ? new Long(0, 0) : gmajLastMod;
    this.qii_1 = gmajGroupActorUid;
    this.rii_1 = gmajMemberActorUid;
    this.sii_1 = gmajLastMod;
  }
  protoOf(GroupMemberActorJoin).kjw = function (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) {
    return new GroupMemberActorJoin(gmajGroupActorUid, gmajMemberActorUid, gmajLastMod);
  };
  protoOf(GroupMemberActorJoin).ljw = function (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod, $super) {
    gmajGroupActorUid = gmajGroupActorUid === VOID ? this.qii_1 : gmajGroupActorUid;
    gmajMemberActorUid = gmajMemberActorUid === VOID ? this.rii_1 : gmajMemberActorUid;
    gmajLastMod = gmajLastMod === VOID ? this.sii_1 : gmajLastMod;
    return $super === VOID ? this.kjw(gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) : $super.kjw.call(this, gmajGroupActorUid, gmajMemberActorUid, gmajLastMod);
  };
  protoOf(GroupMemberActorJoin).toString = function () {
    return 'GroupMemberActorJoin(gmajGroupActorUid=' + this.qii_1.toString() + ', gmajMemberActorUid=' + this.rii_1.toString() + ', gmajLastMod=' + this.sii_1.toString() + ')';
  };
  protoOf(GroupMemberActorJoin).hashCode = function () {
    var result = this.qii_1.hashCode();
    result = imul(result, 31) + this.rii_1.hashCode() | 0;
    result = imul(result, 31) + this.sii_1.hashCode() | 0;
    return result;
  };
  protoOf(GroupMemberActorJoin).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof GroupMemberActorJoin))
      return false;
    var tmp0_other_with_cast = other instanceof GroupMemberActorJoin ? other : THROW_CCE();
    if (!this.qii_1.equals(tmp0_other_with_cast.qii_1))
      return false;
    if (!this.rii_1.equals(tmp0_other_with_cast.rii_1))
      return false;
    if (!this.sii_1.equals(tmp0_other_with_cast.sii_1))
      return false;
    return true;
  };
  function Companion_123() {
    this.mjw_1 = 121422;
  }
  var Companion_instance_124;
  function Companion_getInstance_126() {
    return Companion_instance_124;
  }
  function $serializer_117() {
    $serializer_instance_117 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.StateDeleteCommand', this, 7);
    tmp0_serialDesc.g4f('sdcActorUid', true);
    tmp0_serialDesc.g4f('sdcHash', true);
    tmp0_serialDesc.g4f('sdcActivityUid', true);
    tmp0_serialDesc.g4f('sdcStateId', true);
    tmp0_serialDesc.g4f('sdcLastMod', true);
    tmp0_serialDesc.g4f('sdcRegistrationHi', true);
    tmp0_serialDesc.g4f('sdcRegistrationLo', true);
    this.njw_1 = tmp0_serialDesc;
  }
  protoOf($serializer_117).d44 = function () {
    return this.njw_1;
  };
  protoOf($serializer_117).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable(LongSerializer_getInstance()), get_nullable(LongSerializer_getInstance())];
  };
  protoOf($serializer_117).f44 = function (decoder) {
    var tmp0_desc = this.njw_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = null;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = null;
    var tmp10_local6 = null;
    var tmp11_input = decoder.v47(tmp0_desc);
    if (tmp11_input.k48()) {
      tmp4_local0 = tmp11_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp11_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp11_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp11_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp11_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp11_input.j48(tmp0_desc, 5, LongSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp11_input.j48(tmp0_desc, 6, LongSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp11_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp11_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp11_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp11_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp11_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp11_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp11_input.j48(tmp0_desc, 5, LongSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp11_input.j48(tmp0_desc, 6, LongSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp11_input.w47(tmp0_desc);
    return StateDeleteCommand_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null);
  };
  protoOf($serializer_117).ojw = function (encoder, value) {
    var tmp0_desc = this.njw_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.sil_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.sil_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.til_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.til_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.uil_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.uil_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.vil_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.vil_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.wil_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.wil_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !(value.xil_1 == null)) {
      tmp1_output.n49(tmp0_desc, 5, LongSerializer_getInstance(), value.xil_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.yil_1 == null)) {
      tmp1_output.n49(tmp0_desc, 6, LongSerializer_getInstance(), value.yil_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_117).e44 = function (encoder, value) {
    return this.ojw(encoder, value instanceof StateDeleteCommand ? value : THROW_CCE());
  };
  var $serializer_instance_117;
  function $serializer_getInstance_117() {
    if ($serializer_instance_117 == null)
      new $serializer_117();
    return $serializer_instance_117;
  }
  function StateDeleteCommand_init_$Init$(seen1, sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_117().njw_1);
    }
    if (0 === (seen1 & 1))
      $this.sil_1 = new Long(0, 0);
    else
      $this.sil_1 = sdcActorUid;
    if (0 === (seen1 & 2))
      $this.til_1 = new Long(0, 0);
    else
      $this.til_1 = sdcHash;
    if (0 === (seen1 & 4))
      $this.uil_1 = new Long(0, 0);
    else
      $this.uil_1 = sdcActivityUid;
    if (0 === (seen1 & 8))
      $this.vil_1 = null;
    else
      $this.vil_1 = sdcStateId;
    if (0 === (seen1 & 16))
      $this.wil_1 = new Long(0, 0);
    else
      $this.wil_1 = sdcLastMod;
    if (0 === (seen1 & 32))
      $this.xil_1 = null;
    else
      $this.xil_1 = sdcRegistrationHi;
    if (0 === (seen1 & 64))
      $this.yil_1 = null;
    else
      $this.yil_1 = sdcRegistrationLo;
    return $this;
  }
  function StateDeleteCommand_init_$Create$(seen1, sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo, serializationConstructorMarker) {
    return StateDeleteCommand_init_$Init$(seen1, sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo, serializationConstructorMarker, objectCreate(protoOf(StateDeleteCommand)));
  }
  function StateDeleteCommand(sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo) {
    sdcActorUid = sdcActorUid === VOID ? new Long(0, 0) : sdcActorUid;
    sdcHash = sdcHash === VOID ? new Long(0, 0) : sdcHash;
    sdcActivityUid = sdcActivityUid === VOID ? new Long(0, 0) : sdcActivityUid;
    sdcStateId = sdcStateId === VOID ? null : sdcStateId;
    sdcLastMod = sdcLastMod === VOID ? new Long(0, 0) : sdcLastMod;
    sdcRegistrationHi = sdcRegistrationHi === VOID ? null : sdcRegistrationHi;
    sdcRegistrationLo = sdcRegistrationLo === VOID ? null : sdcRegistrationLo;
    this.sil_1 = sdcActorUid;
    this.til_1 = sdcHash;
    this.uil_1 = sdcActivityUid;
    this.vil_1 = sdcStateId;
    this.wil_1 = sdcLastMod;
    this.xil_1 = sdcRegistrationHi;
    this.yil_1 = sdcRegistrationLo;
  }
  protoOf(StateDeleteCommand).toString = function () {
    return 'StateDeleteCommand(sdcActorUid=' + this.sil_1.toString() + ', sdcHash=' + this.til_1.toString() + ', sdcActivityUid=' + this.uil_1.toString() + ', sdcStateId=' + this.vil_1 + ', sdcLastMod=' + this.wil_1.toString() + ', sdcRegistrationHi=' + toString(this.xil_1) + ', sdcRegistrationLo=' + toString(this.yil_1) + ')';
  };
  protoOf(StateDeleteCommand).hashCode = function () {
    var result = this.sil_1.hashCode();
    result = imul(result, 31) + this.til_1.hashCode() | 0;
    result = imul(result, 31) + this.uil_1.hashCode() | 0;
    result = imul(result, 31) + (this.vil_1 == null ? 0 : getStringHashCode(this.vil_1)) | 0;
    result = imul(result, 31) + this.wil_1.hashCode() | 0;
    result = imul(result, 31) + (this.xil_1 == null ? 0 : this.xil_1.hashCode()) | 0;
    result = imul(result, 31) + (this.yil_1 == null ? 0 : this.yil_1.hashCode()) | 0;
    return result;
  };
  protoOf(StateDeleteCommand).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof StateDeleteCommand))
      return false;
    var tmp0_other_with_cast = other instanceof StateDeleteCommand ? other : THROW_CCE();
    if (!this.sil_1.equals(tmp0_other_with_cast.sil_1))
      return false;
    if (!this.til_1.equals(tmp0_other_with_cast.til_1))
      return false;
    if (!this.uil_1.equals(tmp0_other_with_cast.uil_1))
      return false;
    if (!(this.vil_1 == tmp0_other_with_cast.vil_1))
      return false;
    if (!this.wil_1.equals(tmp0_other_with_cast.wil_1))
      return false;
    if (!equals(this.xil_1, tmp0_other_with_cast.xil_1))
      return false;
    if (!equals(this.yil_1, tmp0_other_with_cast.yil_1))
      return false;
    return true;
  };
  function Companion_124() {
    this.pjw_1 = 3289;
  }
  var Companion_instance_125;
  function Companion_getInstance_127() {
    return Companion_instance_125;
  }
  function $serializer_118() {
    $serializer_instance_118 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.StateEntity', this, 14);
    tmp0_serialDesc.g4f('seActorUid', true);
    tmp0_serialDesc.g4f('seHash', true);
    tmp0_serialDesc.g4f('seActivityUid', true);
    tmp0_serialDesc.g4f('seStateId', true);
    tmp0_serialDesc.g4f('seLastMod', true);
    tmp0_serialDesc.g4f('seTimeStored', true);
    tmp0_serialDesc.g4f('seContentType', true);
    tmp0_serialDesc.g4f('seCompressed', true);
    tmp0_serialDesc.g4f('seContent', true);
    tmp0_serialDesc.g4f('seDeleted', true);
    tmp0_serialDesc.g4f('seRegistrationHi', true);
    tmp0_serialDesc.g4f('seRegistrationLo', true);
    tmp0_serialDesc.g4f('seH5PPreloaded', true);
    tmp0_serialDesc.g4f('seH5PSubContentId', true);
    this.qjw_1 = tmp0_serialDesc;
  }
  protoOf($serializer_118).d44 = function () {
    return this.qjw_1;
  };
  protoOf($serializer_118).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(LongSerializer_getInstance()), get_nullable(LongSerializer_getInstance()), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_118).f44 = function (decoder) {
    var tmp0_desc = this.qjw_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = null;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = null;
    var tmp11_local7 = 0;
    var tmp12_local8 = null;
    var tmp13_local9 = false;
    var tmp14_local10 = null;
    var tmp15_local11 = null;
    var tmp16_local12 = false;
    var tmp17_local13 = null;
    var tmp18_input = decoder.v47(tmp0_desc);
    if (tmp18_input.k48()) {
      tmp4_local0 = tmp18_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp18_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp18_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp18_input.f48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp18_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp18_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp18_input.f48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp18_input.a48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp18_input.f48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp18_input.x47(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp18_input.j48(tmp0_desc, 10, LongSerializer_getInstance(), tmp14_local10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp18_input.j48(tmp0_desc, 11, LongSerializer_getInstance(), tmp15_local11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp18_input.x47(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp18_input.j48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp18_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp18_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp18_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp18_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp18_input.f48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp18_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp18_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp18_input.f48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp18_input.a48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp18_input.f48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp18_input.x47(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp18_input.j48(tmp0_desc, 10, LongSerializer_getInstance(), tmp14_local10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp18_input.j48(tmp0_desc, 11, LongSerializer_getInstance(), tmp15_local11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp18_input.x47(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp18_input.j48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp18_input.w47(tmp0_desc);
    return StateEntity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null);
  };
  protoOf($serializer_118).rjw = function (encoder, value) {
    var tmp0_desc = this.qjw_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.mim_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.mim_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.nim_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.nim_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.oim_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.oim_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.pim_1 === '')) {
      tmp1_output.j49(tmp0_desc, 3, value.pim_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.qim_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.qim_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.rim_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.rim_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !(value.sim_1 === '')) {
      tmp1_output.j49(tmp0_desc, 6, value.sim_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.tim_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 7, value.tim_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !(value.uim_1 === '')) {
      tmp1_output.j49(tmp0_desc, 8, value.uim_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !(value.vim_1 === false)) {
      tmp1_output.b49(tmp0_desc, 9, value.vim_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.wim_1 == null)) {
      tmp1_output.n49(tmp0_desc, 10, LongSerializer_getInstance(), value.wim_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !(value.xim_1 == null)) {
      tmp1_output.n49(tmp0_desc, 11, LongSerializer_getInstance(), value.xim_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !(value.yim_1 === false)) {
      tmp1_output.b49(tmp0_desc, 12, value.yim_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !(value.zim_1 == null)) {
      tmp1_output.n49(tmp0_desc, 13, StringSerializer_getInstance(), value.zim_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_118).e44 = function (encoder, value) {
    return this.rjw(encoder, value instanceof StateEntity ? value : THROW_CCE());
  };
  var $serializer_instance_118;
  function $serializer_getInstance_118() {
    if ($serializer_instance_118 == null)
      new $serializer_118();
    return $serializer_instance_118;
  }
  function StateEntity_init_$Init$(seen1, seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_118().qjw_1);
    }
    if (0 === (seen1 & 1))
      $this.mim_1 = new Long(0, 0);
    else
      $this.mim_1 = seActorUid;
    if (0 === (seen1 & 2))
      $this.nim_1 = new Long(0, 0);
    else
      $this.nim_1 = seHash;
    if (0 === (seen1 & 4))
      $this.oim_1 = new Long(0, 0);
    else
      $this.oim_1 = seActivityUid;
    if (0 === (seen1 & 8))
      $this.pim_1 = '';
    else
      $this.pim_1 = seStateId;
    if (0 === (seen1 & 16))
      $this.qim_1 = new Long(0, 0);
    else
      $this.qim_1 = seLastMod;
    if (0 === (seen1 & 32))
      $this.rim_1 = new Long(0, 0);
    else
      $this.rim_1 = seTimeStored;
    if (0 === (seen1 & 64))
      $this.sim_1 = '';
    else
      $this.sim_1 = seContentType;
    if (0 === (seen1 & 128))
      $this.tim_1 = 0;
    else
      $this.tim_1 = seCompressed;
    if (0 === (seen1 & 256))
      $this.uim_1 = '';
    else
      $this.uim_1 = seContent;
    if (0 === (seen1 & 512))
      $this.vim_1 = false;
    else
      $this.vim_1 = seDeleted;
    if (0 === (seen1 & 1024))
      $this.wim_1 = null;
    else
      $this.wim_1 = seRegistrationHi;
    if (0 === (seen1 & 2048))
      $this.xim_1 = null;
    else
      $this.xim_1 = seRegistrationLo;
    if (0 === (seen1 & 4096))
      $this.yim_1 = false;
    else
      $this.yim_1 = seH5PPreloaded;
    if (0 === (seen1 & 8192))
      $this.zim_1 = null;
    else
      $this.zim_1 = seH5PSubContentId;
    return $this;
  }
  function StateEntity_init_$Create$(seen1, seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId, serializationConstructorMarker) {
    return StateEntity_init_$Init$(seen1, seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId, serializationConstructorMarker, objectCreate(protoOf(StateEntity)));
  }
  function StateEntity(seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId) {
    seActorUid = seActorUid === VOID ? new Long(0, 0) : seActorUid;
    seHash = seHash === VOID ? new Long(0, 0) : seHash;
    seActivityUid = seActivityUid === VOID ? new Long(0, 0) : seActivityUid;
    seStateId = seStateId === VOID ? '' : seStateId;
    seLastMod = seLastMod === VOID ? new Long(0, 0) : seLastMod;
    seTimeStored = seTimeStored === VOID ? new Long(0, 0) : seTimeStored;
    seContentType = seContentType === VOID ? '' : seContentType;
    seCompressed = seCompressed === VOID ? 0 : seCompressed;
    seContent = seContent === VOID ? '' : seContent;
    seDeleted = seDeleted === VOID ? false : seDeleted;
    seRegistrationHi = seRegistrationHi === VOID ? null : seRegistrationHi;
    seRegistrationLo = seRegistrationLo === VOID ? null : seRegistrationLo;
    seH5PPreloaded = seH5PPreloaded === VOID ? false : seH5PPreloaded;
    seH5PSubContentId = seH5PSubContentId === VOID ? null : seH5PSubContentId;
    this.mim_1 = seActorUid;
    this.nim_1 = seHash;
    this.oim_1 = seActivityUid;
    this.pim_1 = seStateId;
    this.qim_1 = seLastMod;
    this.rim_1 = seTimeStored;
    this.sim_1 = seContentType;
    this.tim_1 = seCompressed;
    this.uim_1 = seContent;
    this.vim_1 = seDeleted;
    this.wim_1 = seRegistrationHi;
    this.xim_1 = seRegistrationLo;
    this.yim_1 = seH5PPreloaded;
    this.zim_1 = seH5PSubContentId;
  }
  protoOf(StateEntity).toString = function () {
    return 'StateEntity(seActorUid=' + this.mim_1.toString() + ', seHash=' + this.nim_1.toString() + ', seActivityUid=' + this.oim_1.toString() + ', seStateId=' + this.pim_1 + ', seLastMod=' + this.qim_1.toString() + ', seTimeStored=' + this.rim_1.toString() + ', seContentType=' + this.sim_1 + ', seCompressed=' + this.tim_1 + ', seContent=' + this.uim_1 + ', seDeleted=' + this.vim_1 + ', seRegistrationHi=' + toString(this.wim_1) + ', seRegistrationLo=' + toString(this.xim_1) + ', seH5PPreloaded=' + this.yim_1 + ', seH5PSubContentId=' + this.zim_1 + ')';
  };
  protoOf(StateEntity).hashCode = function () {
    var result = this.mim_1.hashCode();
    result = imul(result, 31) + this.nim_1.hashCode() | 0;
    result = imul(result, 31) + this.oim_1.hashCode() | 0;
    result = imul(result, 31) + getStringHashCode(this.pim_1) | 0;
    result = imul(result, 31) + this.qim_1.hashCode() | 0;
    result = imul(result, 31) + this.rim_1.hashCode() | 0;
    result = imul(result, 31) + getStringHashCode(this.sim_1) | 0;
    result = imul(result, 31) + this.tim_1 | 0;
    result = imul(result, 31) + getStringHashCode(this.uim_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.vim_1) | 0;
    result = imul(result, 31) + (this.wim_1 == null ? 0 : this.wim_1.hashCode()) | 0;
    result = imul(result, 31) + (this.xim_1 == null ? 0 : this.xim_1.hashCode()) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.yim_1) | 0;
    result = imul(result, 31) + (this.zim_1 == null ? 0 : getStringHashCode(this.zim_1)) | 0;
    return result;
  };
  protoOf(StateEntity).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof StateEntity))
      return false;
    var tmp0_other_with_cast = other instanceof StateEntity ? other : THROW_CCE();
    if (!this.mim_1.equals(tmp0_other_with_cast.mim_1))
      return false;
    if (!this.nim_1.equals(tmp0_other_with_cast.nim_1))
      return false;
    if (!this.oim_1.equals(tmp0_other_with_cast.oim_1))
      return false;
    if (!(this.pim_1 === tmp0_other_with_cast.pim_1))
      return false;
    if (!this.qim_1.equals(tmp0_other_with_cast.qim_1))
      return false;
    if (!this.rim_1.equals(tmp0_other_with_cast.rim_1))
      return false;
    if (!(this.sim_1 === tmp0_other_with_cast.sim_1))
      return false;
    if (!(this.tim_1 === tmp0_other_with_cast.tim_1))
      return false;
    if (!(this.uim_1 === tmp0_other_with_cast.uim_1))
      return false;
    if (!(this.vim_1 === tmp0_other_with_cast.vim_1))
      return false;
    if (!equals(this.wim_1, tmp0_other_with_cast.wim_1))
      return false;
    if (!equals(this.xim_1, tmp0_other_with_cast.xim_1))
      return false;
    if (!(this.yim_1 === tmp0_other_with_cast.yim_1))
      return false;
    if (!(this.zim_1 == tmp0_other_with_cast.zim_1))
      return false;
    return true;
  };
  function Companion_125() {
    this.sjw_1 = 1;
    this.tjw_1 = 2;
    this.ujw_1 = 3;
    this.vjw_1 = 4;
    this.wjw_1 = 44044;
  }
  var Companion_instance_126;
  function Companion_getInstance_128() {
    return Companion_instance_126;
  }
  function StatementContextActivityJoin(scajFromStatementIdHi, scajFromStatementIdLo, scajToHash, scajContextType, scajToActivityUid, scajToActivityId, scajEtag) {
    scajFromStatementIdHi = scajFromStatementIdHi === VOID ? new Long(0, 0) : scajFromStatementIdHi;
    scajFromStatementIdLo = scajFromStatementIdLo === VOID ? new Long(0, 0) : scajFromStatementIdLo;
    scajToHash = scajToHash === VOID ? new Long(0, 0) : scajToHash;
    scajContextType = scajContextType === VOID ? 0 : scajContextType;
    scajToActivityUid = scajToActivityUid === VOID ? new Long(0, 0) : scajToActivityUid;
    scajToActivityId = scajToActivityId === VOID ? null : scajToActivityId;
    scajEtag = scajEtag === VOID ? new Long(1, 0) : scajEtag;
    this.oin_1 = scajFromStatementIdHi;
    this.pin_1 = scajFromStatementIdLo;
    this.qin_1 = scajToHash;
    this.rin_1 = scajContextType;
    this.sin_1 = scajToActivityUid;
    this.tin_1 = scajToActivityId;
    this.uin_1 = scajEtag;
  }
  protoOf(StatementContextActivityJoin).toString = function () {
    return 'StatementContextActivityJoin(scajFromStatementIdHi=' + this.oin_1.toString() + ', scajFromStatementIdLo=' + this.pin_1.toString() + ', scajToHash=' + this.qin_1.toString() + ', scajContextType=' + this.rin_1 + ', scajToActivityUid=' + this.sin_1.toString() + ', scajToActivityId=' + this.tin_1 + ', scajEtag=' + this.uin_1.toString() + ')';
  };
  protoOf(StatementContextActivityJoin).hashCode = function () {
    var result = this.oin_1.hashCode();
    result = imul(result, 31) + this.pin_1.hashCode() | 0;
    result = imul(result, 31) + this.qin_1.hashCode() | 0;
    result = imul(result, 31) + this.rin_1 | 0;
    result = imul(result, 31) + this.sin_1.hashCode() | 0;
    result = imul(result, 31) + (this.tin_1 == null ? 0 : getStringHashCode(this.tin_1)) | 0;
    result = imul(result, 31) + this.uin_1.hashCode() | 0;
    return result;
  };
  protoOf(StatementContextActivityJoin).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof StatementContextActivityJoin))
      return false;
    var tmp0_other_with_cast = other instanceof StatementContextActivityJoin ? other : THROW_CCE();
    if (!this.oin_1.equals(tmp0_other_with_cast.oin_1))
      return false;
    if (!this.pin_1.equals(tmp0_other_with_cast.pin_1))
      return false;
    if (!this.qin_1.equals(tmp0_other_with_cast.qin_1))
      return false;
    if (!(this.rin_1 === tmp0_other_with_cast.rin_1))
      return false;
    if (!this.sin_1.equals(tmp0_other_with_cast.sin_1))
      return false;
    if (!(this.tin_1 == tmp0_other_with_cast.tin_1))
      return false;
    if (!this.uin_1.equals(tmp0_other_with_cast.uin_1))
      return false;
    return true;
  };
  function Companion_126() {
    this.xjw_1 = 60;
    this.yjw_1 = 0;
    this.zjw_1 = 2;
    this.ajx_1 = 1;
    this.bjx_1 = 100;
    this.cjx_1 = 101;
    this.djx_1 = 102;
    this.ejx_1 = 103;
  }
  var Companion_instance_127;
  function Companion_getInstance_129() {
    return Companion_instance_127;
  }
  function $serializer_119() {
    $serializer_instance_119 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.StatementEntity', this, 35);
    tmp0_serialDesc.g4f('statementIdHi', true);
    tmp0_serialDesc.g4f('statementIdLo', true);
    tmp0_serialDesc.g4f('statementActorPersonUid', true);
    tmp0_serialDesc.g4f('statementVerbUid', true);
    tmp0_serialDesc.g4f('statementObjectType', true);
    tmp0_serialDesc.g4f('statementObjectUid1', true);
    tmp0_serialDesc.g4f('statementObjectUid2', true);
    tmp0_serialDesc.g4f('statementActorUid', true);
    tmp0_serialDesc.g4f('authorityActorUid', true);
    tmp0_serialDesc.g4f('teamUid', true);
    tmp0_serialDesc.g4f('resultCompletion', true);
    tmp0_serialDesc.g4f('resultSuccess', true);
    tmp0_serialDesc.g4f('resultScoreScaled', true);
    tmp0_serialDesc.g4f('resultScoreRaw', true);
    tmp0_serialDesc.g4f('resultScoreMin', true);
    tmp0_serialDesc.g4f('resultScoreMax', true);
    tmp0_serialDesc.g4f('resultDuration', true);
    tmp0_serialDesc.g4f('resultResponse', true);
    tmp0_serialDesc.g4f('timestamp', true);
    tmp0_serialDesc.g4f('stored', true);
    tmp0_serialDesc.g4f('contextRegistrationHi', true);
    tmp0_serialDesc.g4f('contextRegistrationLo', true);
    tmp0_serialDesc.g4f('contextPlatform', true);
    tmp0_serialDesc.g4f('contextStatementRefIdHi', true);
    tmp0_serialDesc.g4f('contextStatementRefIdLo', true);
    tmp0_serialDesc.g4f('contextInstructorActorUid', true);
    tmp0_serialDesc.g4f('statementLct', true);
    tmp0_serialDesc.g4f('extensionProgress', true);
    tmp0_serialDesc.g4f('completionOrProgress', true);
    tmp0_serialDesc.g4f('statementContentEntryUid', true);
    tmp0_serialDesc.g4f('statementLearnerGroupUid', true);
    tmp0_serialDesc.g4f('statementClazzUid', true);
    tmp0_serialDesc.g4f('statementCbUid', true);
    tmp0_serialDesc.g4f('statementDoorNode', true);
    tmp0_serialDesc.g4f('isSubStatement', true);
    this.fjx_1 = tmp0_serialDesc;
  }
  protoOf($serializer_119).d44 = function () {
    return this.fjx_1;
  };
  protoOf($serializer_119).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(BooleanSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), get_nullable(LongSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(IntSerializer_getInstance()), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_119).f44 = function (decoder) {
    var tmp0_desc = this.fjx_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_bitMask1 = 0;
    var tmp5_local0 = new Long(0, 0);
    var tmp6_local1 = new Long(0, 0);
    var tmp7_local2 = new Long(0, 0);
    var tmp8_local3 = new Long(0, 0);
    var tmp9_local4 = 0;
    var tmp10_local5 = new Long(0, 0);
    var tmp11_local6 = new Long(0, 0);
    var tmp12_local7 = new Long(0, 0);
    var tmp13_local8 = new Long(0, 0);
    var tmp14_local9 = new Long(0, 0);
    var tmp15_local10 = null;
    var tmp16_local11 = null;
    var tmp17_local12 = null;
    var tmp18_local13 = null;
    var tmp19_local14 = null;
    var tmp20_local15 = null;
    var tmp21_local16 = null;
    var tmp22_local17 = null;
    var tmp23_local18 = new Long(0, 0);
    var tmp24_local19 = new Long(0, 0);
    var tmp25_local20 = new Long(0, 0);
    var tmp26_local21 = new Long(0, 0);
    var tmp27_local22 = null;
    var tmp28_local23 = new Long(0, 0);
    var tmp29_local24 = new Long(0, 0);
    var tmp30_local25 = new Long(0, 0);
    var tmp31_local26 = new Long(0, 0);
    var tmp32_local27 = null;
    var tmp33_local28 = false;
    var tmp34_local29 = new Long(0, 0);
    var tmp35_local30 = new Long(0, 0);
    var tmp36_local31 = new Long(0, 0);
    var tmp37_local32 = new Long(0, 0);
    var tmp38_local33 = new Long(0, 0);
    var tmp39_local34 = false;
    var tmp40_input = decoder.v47(tmp0_desc);
    if (tmp40_input.k48()) {
      tmp5_local0 = tmp40_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp6_local1 = tmp40_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp7_local2 = tmp40_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp8_local3 = tmp40_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp9_local4 = tmp40_input.a48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp10_local5 = tmp40_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp11_local6 = tmp40_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp12_local7 = tmp40_input.b48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp13_local8 = tmp40_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp14_local9 = tmp40_input.b48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp15_local10 = tmp40_input.j48(tmp0_desc, 10, BooleanSerializer_getInstance(), tmp15_local10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp16_local11 = tmp40_input.j48(tmp0_desc, 11, BooleanSerializer_getInstance(), tmp16_local11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp17_local12 = tmp40_input.j48(tmp0_desc, 12, FloatSerializer_getInstance(), tmp17_local12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp18_local13 = tmp40_input.j48(tmp0_desc, 13, FloatSerializer_getInstance(), tmp18_local13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp19_local14 = tmp40_input.j48(tmp0_desc, 14, FloatSerializer_getInstance(), tmp19_local14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp20_local15 = tmp40_input.j48(tmp0_desc, 15, FloatSerializer_getInstance(), tmp20_local15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp21_local16 = tmp40_input.j48(tmp0_desc, 16, LongSerializer_getInstance(), tmp21_local16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp22_local17 = tmp40_input.j48(tmp0_desc, 17, StringSerializer_getInstance(), tmp22_local17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp23_local18 = tmp40_input.b48(tmp0_desc, 18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp24_local19 = tmp40_input.b48(tmp0_desc, 19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp25_local20 = tmp40_input.b48(tmp0_desc, 20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp26_local21 = tmp40_input.b48(tmp0_desc, 21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp27_local22 = tmp40_input.j48(tmp0_desc, 22, StringSerializer_getInstance(), tmp27_local22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
      tmp28_local23 = tmp40_input.b48(tmp0_desc, 23);
      tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
      tmp29_local24 = tmp40_input.b48(tmp0_desc, 24);
      tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
      tmp30_local25 = tmp40_input.b48(tmp0_desc, 25);
      tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
      tmp31_local26 = tmp40_input.b48(tmp0_desc, 26);
      tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
      tmp32_local27 = tmp40_input.j48(tmp0_desc, 27, IntSerializer_getInstance(), tmp32_local27);
      tmp3_bitMask0 = tmp3_bitMask0 | 134217728;
      tmp33_local28 = tmp40_input.x47(tmp0_desc, 28);
      tmp3_bitMask0 = tmp3_bitMask0 | 268435456;
      tmp34_local29 = tmp40_input.b48(tmp0_desc, 29);
      tmp3_bitMask0 = tmp3_bitMask0 | 536870912;
      tmp35_local30 = tmp40_input.b48(tmp0_desc, 30);
      tmp3_bitMask0 = tmp3_bitMask0 | 1073741824;
      tmp36_local31 = tmp40_input.b48(tmp0_desc, 31);
      tmp3_bitMask0 = tmp3_bitMask0 | -2147483648;
      tmp37_local32 = tmp40_input.b48(tmp0_desc, 32);
      tmp4_bitMask1 = tmp4_bitMask1 | 1;
      tmp38_local33 = tmp40_input.b48(tmp0_desc, 33);
      tmp4_bitMask1 = tmp4_bitMask1 | 2;
      tmp39_local34 = tmp40_input.x47(tmp0_desc, 34);
      tmp4_bitMask1 = tmp4_bitMask1 | 4;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp40_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp5_local0 = tmp40_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp6_local1 = tmp40_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp7_local2 = tmp40_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp8_local3 = tmp40_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp9_local4 = tmp40_input.a48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp10_local5 = tmp40_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp11_local6 = tmp40_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp12_local7 = tmp40_input.b48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp13_local8 = tmp40_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp14_local9 = tmp40_input.b48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp15_local10 = tmp40_input.j48(tmp0_desc, 10, BooleanSerializer_getInstance(), tmp15_local10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp16_local11 = tmp40_input.j48(tmp0_desc, 11, BooleanSerializer_getInstance(), tmp16_local11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp17_local12 = tmp40_input.j48(tmp0_desc, 12, FloatSerializer_getInstance(), tmp17_local12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp18_local13 = tmp40_input.j48(tmp0_desc, 13, FloatSerializer_getInstance(), tmp18_local13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp19_local14 = tmp40_input.j48(tmp0_desc, 14, FloatSerializer_getInstance(), tmp19_local14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp20_local15 = tmp40_input.j48(tmp0_desc, 15, FloatSerializer_getInstance(), tmp20_local15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp21_local16 = tmp40_input.j48(tmp0_desc, 16, LongSerializer_getInstance(), tmp21_local16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp22_local17 = tmp40_input.j48(tmp0_desc, 17, StringSerializer_getInstance(), tmp22_local17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp23_local18 = tmp40_input.b48(tmp0_desc, 18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp24_local19 = tmp40_input.b48(tmp0_desc, 19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp25_local20 = tmp40_input.b48(tmp0_desc, 20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp26_local21 = tmp40_input.b48(tmp0_desc, 21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp27_local22 = tmp40_input.j48(tmp0_desc, 22, StringSerializer_getInstance(), tmp27_local22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          case 23:
            tmp28_local23 = tmp40_input.b48(tmp0_desc, 23);
            tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
            break;
          case 24:
            tmp29_local24 = tmp40_input.b48(tmp0_desc, 24);
            tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
            break;
          case 25:
            tmp30_local25 = tmp40_input.b48(tmp0_desc, 25);
            tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
            break;
          case 26:
            tmp31_local26 = tmp40_input.b48(tmp0_desc, 26);
            tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
            break;
          case 27:
            tmp32_local27 = tmp40_input.j48(tmp0_desc, 27, IntSerializer_getInstance(), tmp32_local27);
            tmp3_bitMask0 = tmp3_bitMask0 | 134217728;
            break;
          case 28:
            tmp33_local28 = tmp40_input.x47(tmp0_desc, 28);
            tmp3_bitMask0 = tmp3_bitMask0 | 268435456;
            break;
          case 29:
            tmp34_local29 = tmp40_input.b48(tmp0_desc, 29);
            tmp3_bitMask0 = tmp3_bitMask0 | 536870912;
            break;
          case 30:
            tmp35_local30 = tmp40_input.b48(tmp0_desc, 30);
            tmp3_bitMask0 = tmp3_bitMask0 | 1073741824;
            break;
          case 31:
            tmp36_local31 = tmp40_input.b48(tmp0_desc, 31);
            tmp3_bitMask0 = tmp3_bitMask0 | -2147483648;
            break;
          case 32:
            tmp37_local32 = tmp40_input.b48(tmp0_desc, 32);
            tmp4_bitMask1 = tmp4_bitMask1 | 1;
            break;
          case 33:
            tmp38_local33 = tmp40_input.b48(tmp0_desc, 33);
            tmp4_bitMask1 = tmp4_bitMask1 | 2;
            break;
          case 34:
            tmp39_local34 = tmp40_input.x47(tmp0_desc, 34);
            tmp4_bitMask1 = tmp4_bitMask1 | 4;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp40_input.w47(tmp0_desc);
    return StatementEntity_init_$Create$(tmp3_bitMask0, tmp4_bitMask1, tmp5_local0, tmp6_local1, tmp7_local2, tmp8_local3, tmp9_local4, tmp10_local5, tmp11_local6, tmp12_local7, tmp13_local8, tmp14_local9, tmp15_local10, tmp16_local11, tmp17_local12, tmp18_local13, tmp19_local14, tmp20_local15, tmp21_local16, tmp22_local17, tmp23_local18, tmp24_local19, tmp25_local20, tmp26_local21, tmp27_local22, tmp28_local23, tmp29_local24, tmp30_local25, tmp31_local26, tmp32_local27, tmp33_local28, tmp34_local29, tmp35_local30, tmp36_local31, tmp37_local32, tmp38_local33, tmp39_local34, null);
  };
  protoOf($serializer_119).gjx = function (encoder, value) {
    var tmp0_desc = this.fjx_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.qio_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.qio_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.rio_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.rio_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.sio_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.sio_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.tio_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.tio_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !(value.uio_1 === 0)) {
      tmp1_output.e49(tmp0_desc, 4, value.uio_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.vio_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.vio_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.wio_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.wio_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !value.xio_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 7, value.xio_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.yio_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.yio_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !value.zio_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 9, value.zio_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !(value.aip_1 == null)) {
      tmp1_output.n49(tmp0_desc, 10, BooleanSerializer_getInstance(), value.aip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !(value.bip_1 == null)) {
      tmp1_output.n49(tmp0_desc, 11, BooleanSerializer_getInstance(), value.bip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !(value.cip_1 == null)) {
      tmp1_output.n49(tmp0_desc, 12, FloatSerializer_getInstance(), value.cip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !(value.dip_1 == null)) {
      tmp1_output.n49(tmp0_desc, 13, FloatSerializer_getInstance(), value.dip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 14) ? true : !(value.eip_1 == null)) {
      tmp1_output.n49(tmp0_desc, 14, FloatSerializer_getInstance(), value.eip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 15) ? true : !(value.fip_1 == null)) {
      tmp1_output.n49(tmp0_desc, 15, FloatSerializer_getInstance(), value.fip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 16) ? true : !(value.gip_1 == null)) {
      tmp1_output.n49(tmp0_desc, 16, LongSerializer_getInstance(), value.gip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 17) ? true : !(value.hip_1 == null)) {
      tmp1_output.n49(tmp0_desc, 17, StringSerializer_getInstance(), value.hip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 18) ? true : !value.iip_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 18, value.iip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 19) ? true : !value.jip_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 19, value.jip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 20) ? true : !value.kip_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 20, value.kip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 21) ? true : !value.lip_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 21, value.lip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 22) ? true : !(value.mip_1 == null)) {
      tmp1_output.n49(tmp0_desc, 22, StringSerializer_getInstance(), value.mip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 23) ? true : !value.nip_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 23, value.nip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 24) ? true : !value.oip_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 24, value.oip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 25) ? true : !value.pip_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 25, value.pip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 26) ? true : !value.qip_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 26, value.qip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 27) ? true : !(value.rip_1 == null)) {
      tmp1_output.n49(tmp0_desc, 27, IntSerializer_getInstance(), value.rip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 28) ? true : !(value.sip_1 === false)) {
      tmp1_output.b49(tmp0_desc, 28, value.sip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 29) ? true : !value.tip_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 29, value.tip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 30) ? true : !value.uip_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 30, value.uip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 31) ? true : !value.vip_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 31, value.vip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 32) ? true : !value.wip_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 32, value.wip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 33) ? true : !value.xip_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 33, value.xip_1);
    }
    if (tmp1_output.r49(tmp0_desc, 34) ? true : !(value.yip_1 === false)) {
      tmp1_output.b49(tmp0_desc, 34, value.yip_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_119).e44 = function (encoder, value) {
    return this.gjx(encoder, value instanceof StatementEntity ? value : THROW_CCE());
  };
  var $serializer_instance_119;
  function $serializer_getInstance_119() {
    if ($serializer_instance_119 == null)
      new $serializer_119();
    return $serializer_instance_119;
  }
  function StatementEntity_init_$Init$(seen1, seen2, statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement, serializationConstructorMarker, $this) {
    if (!!(!(0 === (0 & seen1)) | !(0 === (0 & seen2)))) {
      // Inline function 'kotlin.intArrayOf' call
      var tmp = new Int32Array([seen1, seen2]);
      // Inline function 'kotlin.intArrayOf' call
      var tmp$ret$1 = new Int32Array([0, 0]);
      throwArrayMissingFieldException(tmp, tmp$ret$1, $serializer_getInstance_119().fjx_1);
    }
    if (0 === (seen1 & 1))
      $this.qio_1 = new Long(0, 0);
    else
      $this.qio_1 = statementIdHi;
    if (0 === (seen1 & 2))
      $this.rio_1 = new Long(0, 0);
    else
      $this.rio_1 = statementIdLo;
    if (0 === (seen1 & 4))
      $this.sio_1 = new Long(0, 0);
    else
      $this.sio_1 = statementActorPersonUid;
    if (0 === (seen1 & 8))
      $this.tio_1 = new Long(0, 0);
    else
      $this.tio_1 = statementVerbUid;
    if (0 === (seen1 & 16))
      $this.uio_1 = 0;
    else
      $this.uio_1 = statementObjectType;
    if (0 === (seen1 & 32))
      $this.vio_1 = new Long(0, 0);
    else
      $this.vio_1 = statementObjectUid1;
    if (0 === (seen1 & 64))
      $this.wio_1 = new Long(0, 0);
    else
      $this.wio_1 = statementObjectUid2;
    if (0 === (seen1 & 128))
      $this.xio_1 = new Long(0, 0);
    else
      $this.xio_1 = statementActorUid;
    if (0 === (seen1 & 256))
      $this.yio_1 = new Long(0, 0);
    else
      $this.yio_1 = authorityActorUid;
    if (0 === (seen1 & 512))
      $this.zio_1 = new Long(0, 0);
    else
      $this.zio_1 = teamUid;
    if (0 === (seen1 & 1024))
      $this.aip_1 = null;
    else
      $this.aip_1 = resultCompletion;
    if (0 === (seen1 & 2048))
      $this.bip_1 = null;
    else
      $this.bip_1 = resultSuccess;
    if (0 === (seen1 & 4096))
      $this.cip_1 = null;
    else
      $this.cip_1 = resultScoreScaled;
    if (0 === (seen1 & 8192))
      $this.dip_1 = null;
    else
      $this.dip_1 = resultScoreRaw;
    if (0 === (seen1 & 16384))
      $this.eip_1 = null;
    else
      $this.eip_1 = resultScoreMin;
    if (0 === (seen1 & 32768))
      $this.fip_1 = null;
    else
      $this.fip_1 = resultScoreMax;
    if (0 === (seen1 & 65536))
      $this.gip_1 = null;
    else
      $this.gip_1 = resultDuration;
    if (0 === (seen1 & 131072))
      $this.hip_1 = null;
    else
      $this.hip_1 = resultResponse;
    if (0 === (seen1 & 262144))
      $this.iip_1 = new Long(0, 0);
    else
      $this.iip_1 = timestamp;
    if (0 === (seen1 & 524288))
      $this.jip_1 = new Long(0, 0);
    else
      $this.jip_1 = stored;
    if (0 === (seen1 & 1048576))
      $this.kip_1 = new Long(0, 0);
    else
      $this.kip_1 = contextRegistrationHi;
    if (0 === (seen1 & 2097152))
      $this.lip_1 = new Long(0, 0);
    else
      $this.lip_1 = contextRegistrationLo;
    if (0 === (seen1 & 4194304))
      $this.mip_1 = null;
    else
      $this.mip_1 = contextPlatform;
    if (0 === (seen1 & 8388608))
      $this.nip_1 = new Long(0, 0);
    else
      $this.nip_1 = contextStatementRefIdHi;
    if (0 === (seen1 & 16777216))
      $this.oip_1 = new Long(0, 0);
    else
      $this.oip_1 = contextStatementRefIdLo;
    if (0 === (seen1 & 33554432))
      $this.pip_1 = new Long(0, 0);
    else
      $this.pip_1 = contextInstructorActorUid;
    if (0 === (seen1 & 67108864))
      $this.qip_1 = new Long(0, 0);
    else
      $this.qip_1 = statementLct;
    if (0 === (seen1 & 134217728))
      $this.rip_1 = null;
    else
      $this.rip_1 = extensionProgress;
    if (0 === (seen1 & 268435456))
      $this.sip_1 = false;
    else
      $this.sip_1 = completionOrProgress;
    if (0 === (seen1 & 536870912))
      $this.tip_1 = new Long(0, 0);
    else
      $this.tip_1 = statementContentEntryUid;
    if (0 === (seen1 & 1073741824))
      $this.uip_1 = new Long(0, 0);
    else
      $this.uip_1 = statementLearnerGroupUid;
    if (0 === (seen1 & -2147483648))
      $this.vip_1 = new Long(0, 0);
    else
      $this.vip_1 = statementClazzUid;
    if (0 === (seen2 & 1))
      $this.wip_1 = new Long(0, 0);
    else
      $this.wip_1 = statementCbUid;
    if (0 === (seen2 & 2))
      $this.xip_1 = new Long(0, 0);
    else
      $this.xip_1 = statementDoorNode;
    if (0 === (seen2 & 4))
      $this.yip_1 = false;
    else
      $this.yip_1 = isSubStatement;
    return $this;
  }
  function StatementEntity_init_$Create$(seen1, seen2, statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement, serializationConstructorMarker) {
    return StatementEntity_init_$Init$(seen1, seen2, statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement, serializationConstructorMarker, objectCreate(protoOf(StatementEntity)));
  }
  function StatementEntity(statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement) {
    statementIdHi = statementIdHi === VOID ? new Long(0, 0) : statementIdHi;
    statementIdLo = statementIdLo === VOID ? new Long(0, 0) : statementIdLo;
    statementActorPersonUid = statementActorPersonUid === VOID ? new Long(0, 0) : statementActorPersonUid;
    statementVerbUid = statementVerbUid === VOID ? new Long(0, 0) : statementVerbUid;
    statementObjectType = statementObjectType === VOID ? 0 : statementObjectType;
    statementObjectUid1 = statementObjectUid1 === VOID ? new Long(0, 0) : statementObjectUid1;
    statementObjectUid2 = statementObjectUid2 === VOID ? new Long(0, 0) : statementObjectUid2;
    statementActorUid = statementActorUid === VOID ? new Long(0, 0) : statementActorUid;
    authorityActorUid = authorityActorUid === VOID ? new Long(0, 0) : authorityActorUid;
    teamUid = teamUid === VOID ? new Long(0, 0) : teamUid;
    resultCompletion = resultCompletion === VOID ? null : resultCompletion;
    resultSuccess = resultSuccess === VOID ? null : resultSuccess;
    resultScoreScaled = resultScoreScaled === VOID ? null : resultScoreScaled;
    resultScoreRaw = resultScoreRaw === VOID ? null : resultScoreRaw;
    resultScoreMin = resultScoreMin === VOID ? null : resultScoreMin;
    resultScoreMax = resultScoreMax === VOID ? null : resultScoreMax;
    resultDuration = resultDuration === VOID ? null : resultDuration;
    resultResponse = resultResponse === VOID ? null : resultResponse;
    timestamp = timestamp === VOID ? new Long(0, 0) : timestamp;
    stored = stored === VOID ? new Long(0, 0) : stored;
    contextRegistrationHi = contextRegistrationHi === VOID ? new Long(0, 0) : contextRegistrationHi;
    contextRegistrationLo = contextRegistrationLo === VOID ? new Long(0, 0) : contextRegistrationLo;
    contextPlatform = contextPlatform === VOID ? null : contextPlatform;
    contextStatementRefIdHi = contextStatementRefIdHi === VOID ? new Long(0, 0) : contextStatementRefIdHi;
    contextStatementRefIdLo = contextStatementRefIdLo === VOID ? new Long(0, 0) : contextStatementRefIdLo;
    contextInstructorActorUid = contextInstructorActorUid === VOID ? new Long(0, 0) : contextInstructorActorUid;
    statementLct = statementLct === VOID ? new Long(0, 0) : statementLct;
    extensionProgress = extensionProgress === VOID ? null : extensionProgress;
    completionOrProgress = completionOrProgress === VOID ? false : completionOrProgress;
    statementContentEntryUid = statementContentEntryUid === VOID ? new Long(0, 0) : statementContentEntryUid;
    statementLearnerGroupUid = statementLearnerGroupUid === VOID ? new Long(0, 0) : statementLearnerGroupUid;
    statementClazzUid = statementClazzUid === VOID ? new Long(0, 0) : statementClazzUid;
    statementCbUid = statementCbUid === VOID ? new Long(0, 0) : statementCbUid;
    statementDoorNode = statementDoorNode === VOID ? new Long(0, 0) : statementDoorNode;
    isSubStatement = isSubStatement === VOID ? false : isSubStatement;
    this.qio_1 = statementIdHi;
    this.rio_1 = statementIdLo;
    this.sio_1 = statementActorPersonUid;
    this.tio_1 = statementVerbUid;
    this.uio_1 = statementObjectType;
    this.vio_1 = statementObjectUid1;
    this.wio_1 = statementObjectUid2;
    this.xio_1 = statementActorUid;
    this.yio_1 = authorityActorUid;
    this.zio_1 = teamUid;
    this.aip_1 = resultCompletion;
    this.bip_1 = resultSuccess;
    this.cip_1 = resultScoreScaled;
    this.dip_1 = resultScoreRaw;
    this.eip_1 = resultScoreMin;
    this.fip_1 = resultScoreMax;
    this.gip_1 = resultDuration;
    this.hip_1 = resultResponse;
    this.iip_1 = timestamp;
    this.jip_1 = stored;
    this.kip_1 = contextRegistrationHi;
    this.lip_1 = contextRegistrationLo;
    this.mip_1 = contextPlatform;
    this.nip_1 = contextStatementRefIdHi;
    this.oip_1 = contextStatementRefIdLo;
    this.pip_1 = contextInstructorActorUid;
    this.qip_1 = statementLct;
    this.rip_1 = extensionProgress;
    this.sip_1 = completionOrProgress;
    this.tip_1 = statementContentEntryUid;
    this.uip_1 = statementLearnerGroupUid;
    this.vip_1 = statementClazzUid;
    this.wip_1 = statementCbUid;
    this.xip_1 = statementDoorNode;
    this.yip_1 = isSubStatement;
  }
  protoOf(StatementEntity).toString = function () {
    return 'StatementEntity(statementIdHi=' + this.qio_1.toString() + ', statementIdLo=' + this.rio_1.toString() + ', statementActorPersonUid=' + this.sio_1.toString() + ', statementVerbUid=' + this.tio_1.toString() + ', statementObjectType=' + this.uio_1 + ', statementObjectUid1=' + this.vio_1.toString() + ', statementObjectUid2=' + this.wio_1.toString() + ', statementActorUid=' + this.xio_1.toString() + ', authorityActorUid=' + this.yio_1.toString() + ', teamUid=' + this.zio_1.toString() + ', resultCompletion=' + this.aip_1 + ', resultSuccess=' + this.bip_1 + ', resultScoreScaled=' + this.cip_1 + ', resultScoreRaw=' + this.dip_1 + ', resultScoreMin=' + this.eip_1 + ', resultScoreMax=' + this.fip_1 + ', resultDuration=' + toString(this.gip_1) + ', resultResponse=' + this.hip_1 + ', timestamp=' + this.iip_1.toString() + ', stored=' + this.jip_1.toString() + ', contextRegistrationHi=' + this.kip_1.toString() + ', contextRegistrationLo=' + this.lip_1.toString() + ', contextPlatform=' + this.mip_1 + ', contextStatementRefIdHi=' + this.nip_1.toString() + ', contextStatementRefIdLo=' + this.oip_1.toString() + ', contextInstructorActorUid=' + this.pip_1.toString() + ', statementLct=' + this.qip_1.toString() + ', extensionProgress=' + this.rip_1 + ', completionOrProgress=' + this.sip_1 + ', statementContentEntryUid=' + this.tip_1.toString() + ', statementLearnerGroupUid=' + this.uip_1.toString() + ', statementClazzUid=' + this.vip_1.toString() + ', statementCbUid=' + this.wip_1.toString() + ', statementDoorNode=' + this.xip_1.toString() + ', isSubStatement=' + this.yip_1 + ')';
  };
  protoOf(StatementEntity).hashCode = function () {
    var result = this.qio_1.hashCode();
    result = imul(result, 31) + this.rio_1.hashCode() | 0;
    result = imul(result, 31) + this.sio_1.hashCode() | 0;
    result = imul(result, 31) + this.tio_1.hashCode() | 0;
    result = imul(result, 31) + this.uio_1 | 0;
    result = imul(result, 31) + this.vio_1.hashCode() | 0;
    result = imul(result, 31) + this.wio_1.hashCode() | 0;
    result = imul(result, 31) + this.xio_1.hashCode() | 0;
    result = imul(result, 31) + this.yio_1.hashCode() | 0;
    result = imul(result, 31) + this.zio_1.hashCode() | 0;
    result = imul(result, 31) + (this.aip_1 == null ? 0 : getBooleanHashCode(this.aip_1)) | 0;
    result = imul(result, 31) + (this.bip_1 == null ? 0 : getBooleanHashCode(this.bip_1)) | 0;
    result = imul(result, 31) + (this.cip_1 == null ? 0 : getNumberHashCode(this.cip_1)) | 0;
    result = imul(result, 31) + (this.dip_1 == null ? 0 : getNumberHashCode(this.dip_1)) | 0;
    result = imul(result, 31) + (this.eip_1 == null ? 0 : getNumberHashCode(this.eip_1)) | 0;
    result = imul(result, 31) + (this.fip_1 == null ? 0 : getNumberHashCode(this.fip_1)) | 0;
    result = imul(result, 31) + (this.gip_1 == null ? 0 : this.gip_1.hashCode()) | 0;
    result = imul(result, 31) + (this.hip_1 == null ? 0 : getStringHashCode(this.hip_1)) | 0;
    result = imul(result, 31) + this.iip_1.hashCode() | 0;
    result = imul(result, 31) + this.jip_1.hashCode() | 0;
    result = imul(result, 31) + this.kip_1.hashCode() | 0;
    result = imul(result, 31) + this.lip_1.hashCode() | 0;
    result = imul(result, 31) + (this.mip_1 == null ? 0 : getStringHashCode(this.mip_1)) | 0;
    result = imul(result, 31) + this.nip_1.hashCode() | 0;
    result = imul(result, 31) + this.oip_1.hashCode() | 0;
    result = imul(result, 31) + this.pip_1.hashCode() | 0;
    result = imul(result, 31) + this.qip_1.hashCode() | 0;
    result = imul(result, 31) + (this.rip_1 == null ? 0 : this.rip_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.sip_1) | 0;
    result = imul(result, 31) + this.tip_1.hashCode() | 0;
    result = imul(result, 31) + this.uip_1.hashCode() | 0;
    result = imul(result, 31) + this.vip_1.hashCode() | 0;
    result = imul(result, 31) + this.wip_1.hashCode() | 0;
    result = imul(result, 31) + this.xip_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.yip_1) | 0;
    return result;
  };
  protoOf(StatementEntity).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof StatementEntity))
      return false;
    var tmp0_other_with_cast = other instanceof StatementEntity ? other : THROW_CCE();
    if (!this.qio_1.equals(tmp0_other_with_cast.qio_1))
      return false;
    if (!this.rio_1.equals(tmp0_other_with_cast.rio_1))
      return false;
    if (!this.sio_1.equals(tmp0_other_with_cast.sio_1))
      return false;
    if (!this.tio_1.equals(tmp0_other_with_cast.tio_1))
      return false;
    if (!(this.uio_1 === tmp0_other_with_cast.uio_1))
      return false;
    if (!this.vio_1.equals(tmp0_other_with_cast.vio_1))
      return false;
    if (!this.wio_1.equals(tmp0_other_with_cast.wio_1))
      return false;
    if (!this.xio_1.equals(tmp0_other_with_cast.xio_1))
      return false;
    if (!this.yio_1.equals(tmp0_other_with_cast.yio_1))
      return false;
    if (!this.zio_1.equals(tmp0_other_with_cast.zio_1))
      return false;
    if (!(this.aip_1 == tmp0_other_with_cast.aip_1))
      return false;
    if (!(this.bip_1 == tmp0_other_with_cast.bip_1))
      return false;
    if (!equals(this.cip_1, tmp0_other_with_cast.cip_1))
      return false;
    if (!equals(this.dip_1, tmp0_other_with_cast.dip_1))
      return false;
    if (!equals(this.eip_1, tmp0_other_with_cast.eip_1))
      return false;
    if (!equals(this.fip_1, tmp0_other_with_cast.fip_1))
      return false;
    if (!equals(this.gip_1, tmp0_other_with_cast.gip_1))
      return false;
    if (!(this.hip_1 == tmp0_other_with_cast.hip_1))
      return false;
    if (!this.iip_1.equals(tmp0_other_with_cast.iip_1))
      return false;
    if (!this.jip_1.equals(tmp0_other_with_cast.jip_1))
      return false;
    if (!this.kip_1.equals(tmp0_other_with_cast.kip_1))
      return false;
    if (!this.lip_1.equals(tmp0_other_with_cast.lip_1))
      return false;
    if (!(this.mip_1 == tmp0_other_with_cast.mip_1))
      return false;
    if (!this.nip_1.equals(tmp0_other_with_cast.nip_1))
      return false;
    if (!this.oip_1.equals(tmp0_other_with_cast.oip_1))
      return false;
    if (!this.pip_1.equals(tmp0_other_with_cast.pip_1))
      return false;
    if (!this.qip_1.equals(tmp0_other_with_cast.qip_1))
      return false;
    if (!(this.rip_1 == tmp0_other_with_cast.rip_1))
      return false;
    if (!(this.sip_1 === tmp0_other_with_cast.sip_1))
      return false;
    if (!this.tip_1.equals(tmp0_other_with_cast.tip_1))
      return false;
    if (!this.uip_1.equals(tmp0_other_with_cast.uip_1))
      return false;
    if (!this.vip_1.equals(tmp0_other_with_cast.vip_1))
      return false;
    if (!this.wip_1.equals(tmp0_other_with_cast.wip_1))
      return false;
    if (!this.xip_1.equals(tmp0_other_with_cast.xip_1))
      return false;
    if (!(this.yip_1 === tmp0_other_with_cast.yip_1))
      return false;
    return true;
  };
  function Companion_127() {
    this.hjx_1 = 602;
  }
  var Companion_instance_128;
  function Companion_getInstance_130() {
    return Companion_instance_128;
  }
  function $serializer_120() {
    $serializer_instance_120 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.StatementEntityJson', this, 4);
    tmp0_serialDesc.g4f('stmtJsonIdHi', true);
    tmp0_serialDesc.g4f('stmtJsonIdLo', true);
    tmp0_serialDesc.g4f('stmtEtag', true);
    tmp0_serialDesc.g4f('fullStatement', true);
    this.ijx_1 = tmp0_serialDesc;
  }
  protoOf($serializer_120).d44 = function () {
    return this.ijx_1;
  };
  protoOf($serializer_120).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_120).f44 = function (decoder) {
    var tmp0_desc = this.ijx_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = null;
    var tmp8_input = decoder.v47(tmp0_desc);
    if (tmp8_input.k48()) {
      tmp4_local0 = tmp8_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.w47(tmp0_desc);
    return StatementEntityJson_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_120).jjx = function (encoder, value) {
    var tmp0_desc = this.ijx_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.vit_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.vit_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.wit_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.wit_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.xit_1.equals(new Long(1, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.xit_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.yit_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.yit_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_120).e44 = function (encoder, value) {
    return this.jjx(encoder, value instanceof StatementEntityJson ? value : THROW_CCE());
  };
  var $serializer_instance_120;
  function $serializer_getInstance_120() {
    if ($serializer_instance_120 == null)
      new $serializer_120();
    return $serializer_instance_120;
  }
  function StatementEntityJson_init_$Init$(seen1, stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_120().ijx_1);
    }
    if (0 === (seen1 & 1))
      $this.vit_1 = new Long(0, 0);
    else
      $this.vit_1 = stmtJsonIdHi;
    if (0 === (seen1 & 2))
      $this.wit_1 = new Long(0, 0);
    else
      $this.wit_1 = stmtJsonIdLo;
    if (0 === (seen1 & 4))
      $this.xit_1 = new Long(1, 0);
    else
      $this.xit_1 = stmtEtag;
    if (0 === (seen1 & 8))
      $this.yit_1 = null;
    else
      $this.yit_1 = fullStatement;
    return $this;
  }
  function StatementEntityJson_init_$Create$(seen1, stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement, serializationConstructorMarker) {
    return StatementEntityJson_init_$Init$(seen1, stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement, serializationConstructorMarker, objectCreate(protoOf(StatementEntityJson)));
  }
  function StatementEntityJson(stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement) {
    stmtJsonIdHi = stmtJsonIdHi === VOID ? new Long(0, 0) : stmtJsonIdHi;
    stmtJsonIdLo = stmtJsonIdLo === VOID ? new Long(0, 0) : stmtJsonIdLo;
    stmtEtag = stmtEtag === VOID ? new Long(1, 0) : stmtEtag;
    fullStatement = fullStatement === VOID ? null : fullStatement;
    this.vit_1 = stmtJsonIdHi;
    this.wit_1 = stmtJsonIdLo;
    this.xit_1 = stmtEtag;
    this.yit_1 = fullStatement;
  }
  protoOf(StatementEntityJson).toString = function () {
    return 'StatementEntityJson(stmtJsonIdHi=' + this.vit_1.toString() + ', stmtJsonIdLo=' + this.wit_1.toString() + ', stmtEtag=' + this.xit_1.toString() + ', fullStatement=' + this.yit_1 + ')';
  };
  protoOf(StatementEntityJson).hashCode = function () {
    var result = this.vit_1.hashCode();
    result = imul(result, 31) + this.wit_1.hashCode() | 0;
    result = imul(result, 31) + this.xit_1.hashCode() | 0;
    result = imul(result, 31) + (this.yit_1 == null ? 0 : getStringHashCode(this.yit_1)) | 0;
    return result;
  };
  protoOf(StatementEntityJson).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof StatementEntityJson))
      return false;
    var tmp0_other_with_cast = other instanceof StatementEntityJson ? other : THROW_CCE();
    if (!this.vit_1.equals(tmp0_other_with_cast.vit_1))
      return false;
    if (!this.wit_1.equals(tmp0_other_with_cast.wit_1))
      return false;
    if (!this.xit_1.equals(tmp0_other_with_cast.xit_1))
      return false;
    if (!(this.yit_1 == tmp0_other_with_cast.yit_1))
      return false;
    return true;
  };
  function Companion_128() {
    Companion_instance_129 = this;
    this.kjx_1 = 62;
    this.ljx_1 = 'http://adlnet.gov/expapi/verbs/completed';
    this.mjx_1 = new Long(10001, 0);
    this.njx_1 = 'http://adlnet.gov/expapi/verbs/passed';
    this.ojx_1 = new Long(10002, 0);
    this.pjx_1 = 'http://adlnet.gov/expapi/verbs/failed';
    this.qjx_1 = new Long(10003, 0);
  }
  var Companion_instance_129;
  function Companion_getInstance_131() {
    if (Companion_instance_129 == null)
      new Companion_128();
    return Companion_instance_129;
  }
  function $serializer_121() {
    $serializer_instance_121 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.VerbEntity', this, 4);
    tmp0_serialDesc.g4f('verbUid', true);
    tmp0_serialDesc.g4f('verbUrlId', true);
    tmp0_serialDesc.g4f('verbDeleted', true);
    tmp0_serialDesc.g4f('verbLct', true);
    this.rjx_1 = tmp0_serialDesc;
  }
  protoOf($serializer_121).d44 = function () {
    return this.rjx_1;
  };
  protoOf($serializer_121).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_121).f44 = function (decoder) {
    var tmp0_desc = this.rjx_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = null;
    var tmp6_local2 = false;
    var tmp7_local3 = new Long(0, 0);
    var tmp8_input = decoder.v47(tmp0_desc);
    if (tmp8_input.k48()) {
      tmp4_local0 = tmp8_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.x47(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.j48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.x47(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.w47(tmp0_desc);
    return VerbEntity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_121).sjx = function (encoder, value) {
    var tmp0_desc = this.rjx_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.siu_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.siu_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !(value.tiu_1 == null)) {
      tmp1_output.n49(tmp0_desc, 1, StringSerializer_getInstance(), value.tiu_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.uiu_1 === false)) {
      tmp1_output.b49(tmp0_desc, 2, value.uiu_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.viu_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.viu_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_121).e44 = function (encoder, value) {
    return this.sjx(encoder, value instanceof VerbEntity ? value : THROW_CCE());
  };
  var $serializer_instance_121;
  function $serializer_getInstance_121() {
    if ($serializer_instance_121 == null)
      new $serializer_121();
    return $serializer_instance_121;
  }
  function VerbEntity_init_$Init$(seen1, verbUid, verbUrlId, verbDeleted, verbLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_121().rjx_1);
    }
    if (0 === (seen1 & 1))
      $this.siu_1 = new Long(0, 0);
    else
      $this.siu_1 = verbUid;
    if (0 === (seen1 & 2))
      $this.tiu_1 = null;
    else
      $this.tiu_1 = verbUrlId;
    if (0 === (seen1 & 4))
      $this.uiu_1 = false;
    else
      $this.uiu_1 = verbDeleted;
    if (0 === (seen1 & 8))
      $this.viu_1 = new Long(0, 0);
    else
      $this.viu_1 = verbLct;
    return $this;
  }
  function VerbEntity_init_$Create$(seen1, verbUid, verbUrlId, verbDeleted, verbLct, serializationConstructorMarker) {
    return VerbEntity_init_$Init$(seen1, verbUid, verbUrlId, verbDeleted, verbLct, serializationConstructorMarker, objectCreate(protoOf(VerbEntity)));
  }
  function VerbEntity(verbUid, verbUrlId, verbDeleted, verbLct) {
    Companion_getInstance_131();
    verbUid = verbUid === VOID ? new Long(0, 0) : verbUid;
    verbUrlId = verbUrlId === VOID ? null : verbUrlId;
    verbDeleted = verbDeleted === VOID ? false : verbDeleted;
    verbLct = verbLct === VOID ? new Long(0, 0) : verbLct;
    this.siu_1 = verbUid;
    this.tiu_1 = verbUrlId;
    this.uiu_1 = verbDeleted;
    this.viu_1 = verbLct;
  }
  protoOf(VerbEntity).toString = function () {
    return 'VerbEntity(verbUid=' + this.siu_1.toString() + ', verbUrlId=' + this.tiu_1 + ', verbDeleted=' + this.uiu_1 + ', verbLct=' + this.viu_1.toString() + ')';
  };
  protoOf(VerbEntity).hashCode = function () {
    var result = this.siu_1.hashCode();
    result = imul(result, 31) + (this.tiu_1 == null ? 0 : getStringHashCode(this.tiu_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.uiu_1) | 0;
    result = imul(result, 31) + this.viu_1.hashCode() | 0;
    return result;
  };
  protoOf(VerbEntity).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof VerbEntity))
      return false;
    var tmp0_other_with_cast = other instanceof VerbEntity ? other : THROW_CCE();
    if (!this.siu_1.equals(tmp0_other_with_cast.siu_1))
      return false;
    if (!(this.tiu_1 == tmp0_other_with_cast.tiu_1))
      return false;
    if (!(this.uiu_1 === tmp0_other_with_cast.uiu_1))
      return false;
    if (!this.viu_1.equals(tmp0_other_with_cast.viu_1))
      return false;
    return true;
  };
  function Companion_129() {
    this.tjx_1 = 620;
  }
  var Companion_instance_130;
  function Companion_getInstance_132() {
    return Companion_instance_130;
  }
  function $serializer_122() {
    $serializer_instance_122 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.VerbLangMapEntry', this, 5);
    tmp0_serialDesc.g4f('vlmeVerbUid', true);
    tmp0_serialDesc.g4f('vlmeLangHash', true);
    tmp0_serialDesc.g4f('vlmeLangCode', true);
    tmp0_serialDesc.g4f('vlmeEntryString', true);
    tmp0_serialDesc.g4f('vlmeLastModified', true);
    this.ujx_1 = tmp0_serialDesc;
  }
  protoOf($serializer_122).d44 = function () {
    return this.ujx_1;
  };
  protoOf($serializer_122).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()];
  };
  protoOf($serializer_122).f44 = function (decoder) {
    var tmp0_desc = this.ujx_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = null;
    var tmp7_local3 = null;
    var tmp8_local4 = new Long(0, 0);
    var tmp9_input = decoder.v47(tmp0_desc);
    if (tmp9_input.k48()) {
      tmp4_local0 = tmp9_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp9_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp9_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp9_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp9_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp9_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp9_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp9_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp9_input.j48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp9_input.j48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp9_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp9_input.w47(tmp0_desc);
    return VerbLangMapEntry_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
  };
  protoOf($serializer_122).vjx = function (encoder, value) {
    var tmp0_desc = this.ujx_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.uiv_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.uiv_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.viv_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.viv_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !(value.wiv_1 == null)) {
      tmp1_output.n49(tmp0_desc, 2, StringSerializer_getInstance(), value.wiv_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !(value.xiv_1 == null)) {
      tmp1_output.n49(tmp0_desc, 3, StringSerializer_getInstance(), value.xiv_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.yiv_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.yiv_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_122).e44 = function (encoder, value) {
    return this.vjx(encoder, value instanceof VerbLangMapEntry ? value : THROW_CCE());
  };
  var $serializer_instance_122;
  function $serializer_getInstance_122() {
    if ($serializer_instance_122 == null)
      new $serializer_122();
    return $serializer_instance_122;
  }
  function VerbLangMapEntry_init_$Init$(seen1, vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_122().ujx_1);
    }
    if (0 === (seen1 & 1))
      $this.uiv_1 = new Long(0, 0);
    else
      $this.uiv_1 = vlmeVerbUid;
    if (0 === (seen1 & 2))
      $this.viv_1 = new Long(0, 0);
    else
      $this.viv_1 = vlmeLangHash;
    if (0 === (seen1 & 4))
      $this.wiv_1 = null;
    else
      $this.wiv_1 = vlmeLangCode;
    if (0 === (seen1 & 8))
      $this.xiv_1 = null;
    else
      $this.xiv_1 = vlmeEntryString;
    if (0 === (seen1 & 16))
      $this.yiv_1 = new Long(0, 0);
    else
      $this.yiv_1 = vlmeLastModified;
    return $this;
  }
  function VerbLangMapEntry_init_$Create$(seen1, vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified, serializationConstructorMarker) {
    return VerbLangMapEntry_init_$Init$(seen1, vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified, serializationConstructorMarker, objectCreate(protoOf(VerbLangMapEntry)));
  }
  function VerbLangMapEntry(vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified) {
    vlmeVerbUid = vlmeVerbUid === VOID ? new Long(0, 0) : vlmeVerbUid;
    vlmeLangHash = vlmeLangHash === VOID ? new Long(0, 0) : vlmeLangHash;
    vlmeLangCode = vlmeLangCode === VOID ? null : vlmeLangCode;
    vlmeEntryString = vlmeEntryString === VOID ? null : vlmeEntryString;
    vlmeLastModified = vlmeLastModified === VOID ? new Long(0, 0) : vlmeLastModified;
    this.uiv_1 = vlmeVerbUid;
    this.viv_1 = vlmeLangHash;
    this.wiv_1 = vlmeLangCode;
    this.xiv_1 = vlmeEntryString;
    this.yiv_1 = vlmeLastModified;
  }
  protoOf(VerbLangMapEntry).toString = function () {
    return 'VerbLangMapEntry(vlmeVerbUid=' + this.uiv_1.toString() + ', vlmeLangHash=' + this.viv_1.toString() + ', vlmeLangCode=' + this.wiv_1 + ', vlmeEntryString=' + this.xiv_1 + ', vlmeLastModified=' + this.yiv_1.toString() + ')';
  };
  protoOf(VerbLangMapEntry).hashCode = function () {
    var result = this.uiv_1.hashCode();
    result = imul(result, 31) + this.viv_1.hashCode() | 0;
    result = imul(result, 31) + (this.wiv_1 == null ? 0 : getStringHashCode(this.wiv_1)) | 0;
    result = imul(result, 31) + (this.xiv_1 == null ? 0 : getStringHashCode(this.xiv_1)) | 0;
    result = imul(result, 31) + this.yiv_1.hashCode() | 0;
    return result;
  };
  protoOf(VerbLangMapEntry).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof VerbLangMapEntry))
      return false;
    var tmp0_other_with_cast = other instanceof VerbLangMapEntry ? other : THROW_CCE();
    if (!this.uiv_1.equals(tmp0_other_with_cast.uiv_1))
      return false;
    if (!this.viv_1.equals(tmp0_other_with_cast.viv_1))
      return false;
    if (!(this.wiv_1 == tmp0_other_with_cast.wiv_1))
      return false;
    if (!(this.xiv_1 == tmp0_other_with_cast.xiv_1))
      return false;
    if (!this.yiv_1.equals(tmp0_other_with_cast.yiv_1))
      return false;
    return true;
  };
  function XapiEntityObjectTypeFlags() {
    this.wjx_1 = 1;
    this.xjx_1 = 2;
    this.yjx_1 = 3;
    this.zjx_1 = 4;
    this.ajy_1 = 5;
    this.bjy_1 = 6;
  }
  var XapiEntityObjectTypeFlags_instance;
  function XapiEntityObjectTypeFlags_getInstance() {
    return XapiEntityObjectTypeFlags_instance;
  }
  function Companion_130() {
    this.cjy_1 = 400122;
  }
  var Companion_instance_131;
  function Companion_getInstance_133() {
    return Companion_instance_131;
  }
  function $serializer_123() {
    $serializer_instance_123 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.XapiSessionEntity', this, 19);
    tmp0_serialDesc.g4f('xseUid', true);
    tmp0_serialDesc.g4f('xseLastMod', true);
    tmp0_serialDesc.g4f('xseRegistrationHi', true);
    tmp0_serialDesc.g4f('xseRegistrationLo', true);
    tmp0_serialDesc.g4f('xseUsUid', true);
    tmp0_serialDesc.g4f('xseAccountPersonUid', true);
    tmp0_serialDesc.g4f('xseActorUid', true);
    tmp0_serialDesc.g4f('xseAccountUsername', true);
    tmp0_serialDesc.g4f('xseClazzUid', true);
    tmp0_serialDesc.g4f('xseCbUid', true);
    tmp0_serialDesc.g4f('xseContentEntryUid', true);
    tmp0_serialDesc.g4f('xseContentEntryVersionUid', true);
    tmp0_serialDesc.g4f('xseRootActivityId', true);
    tmp0_serialDesc.g4f('xseRootActivityUid', true);
    tmp0_serialDesc.g4f('xseStartTime', true);
    tmp0_serialDesc.g4f('xseExpireTime', true);
    tmp0_serialDesc.g4f('xseAuth', true);
    tmp0_serialDesc.g4f('xseCompleted', true);
    tmp0_serialDesc.g4f('knownActorUidToPersonUids', true);
    this.djy_1 = tmp0_serialDesc;
  }
  protoOf($serializer_123).d44 = function () {
    return this.djy_1;
  };
  protoOf($serializer_123).x4f = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), StringSerializer_getInstance()];
  };
  protoOf($serializer_123).f44 = function (decoder) {
    var tmp0_desc = this.djy_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = new Long(0, 0);
    var tmp5_local1 = new Long(0, 0);
    var tmp6_local2 = new Long(0, 0);
    var tmp7_local3 = new Long(0, 0);
    var tmp8_local4 = new Long(0, 0);
    var tmp9_local5 = new Long(0, 0);
    var tmp10_local6 = new Long(0, 0);
    var tmp11_local7 = null;
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = new Long(0, 0);
    var tmp14_local10 = new Long(0, 0);
    var tmp15_local11 = new Long(0, 0);
    var tmp16_local12 = null;
    var tmp17_local13 = new Long(0, 0);
    var tmp18_local14 = new Long(0, 0);
    var tmp19_local15 = new Long(0, 0);
    var tmp20_local16 = null;
    var tmp21_local17 = false;
    var tmp22_local18 = null;
    var tmp23_input = decoder.v47(tmp0_desc);
    if (tmp23_input.k48()) {
      tmp4_local0 = tmp23_input.b48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp23_input.b48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp23_input.b48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp23_input.b48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp23_input.b48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp23_input.b48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp23_input.b48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp23_input.f48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp23_input.b48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp23_input.b48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp23_input.b48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp23_input.b48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp23_input.f48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp23_input.b48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp23_input.b48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp23_input.b48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp23_input.j48(tmp0_desc, 16, StringSerializer_getInstance(), tmp20_local16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp23_input.x47(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp23_input.f48(tmp0_desc, 18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp23_input.l48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp23_input.b48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp23_input.b48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp23_input.b48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp23_input.b48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp23_input.b48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp23_input.b48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp23_input.b48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp23_input.f48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp23_input.b48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp23_input.b48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp23_input.b48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp23_input.b48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp23_input.f48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp23_input.b48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp23_input.b48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp23_input.b48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp23_input.j48(tmp0_desc, 16, StringSerializer_getInstance(), tmp20_local16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp23_input.x47(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp23_input.f48(tmp0_desc, 18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp23_input.w47(tmp0_desc);
    return XapiSessionEntity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, null);
  };
  protoOf($serializer_123).ejy = function (encoder, value) {
    var tmp0_desc = this.djy_1;
    var tmp1_output = encoder.v47(tmp0_desc);
    if (tmp1_output.r49(tmp0_desc, 0) ? true : !value.cix_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 0, value.cix_1);
    }
    if (tmp1_output.r49(tmp0_desc, 1) ? true : !value.dix_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 1, value.dix_1);
    }
    if (tmp1_output.r49(tmp0_desc, 2) ? true : !value.eix_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 2, value.eix_1);
    }
    if (tmp1_output.r49(tmp0_desc, 3) ? true : !value.fix_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 3, value.fix_1);
    }
    if (tmp1_output.r49(tmp0_desc, 4) ? true : !value.gix_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 4, value.gix_1);
    }
    if (tmp1_output.r49(tmp0_desc, 5) ? true : !value.hix_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 5, value.hix_1);
    }
    if (tmp1_output.r49(tmp0_desc, 6) ? true : !value.iix_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 6, value.iix_1);
    }
    if (tmp1_output.r49(tmp0_desc, 7) ? true : !(value.jix_1 === '')) {
      tmp1_output.j49(tmp0_desc, 7, value.jix_1);
    }
    if (tmp1_output.r49(tmp0_desc, 8) ? true : !value.kix_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 8, value.kix_1);
    }
    if (tmp1_output.r49(tmp0_desc, 9) ? true : !value.lix_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 9, value.lix_1);
    }
    if (tmp1_output.r49(tmp0_desc, 10) ? true : !value.mix_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 10, value.mix_1);
    }
    if (tmp1_output.r49(tmp0_desc, 11) ? true : !value.nix_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 11, value.nix_1);
    }
    if (tmp1_output.r49(tmp0_desc, 12) ? true : !(value.oix_1 === '')) {
      tmp1_output.j49(tmp0_desc, 12, value.oix_1);
    }
    if (tmp1_output.r49(tmp0_desc, 13) ? true : !value.pix_1.equals(new Long(0, 0))) {
      tmp1_output.f49(tmp0_desc, 13, value.pix_1);
    }
    if (tmp1_output.r49(tmp0_desc, 14) ? true : !value.qix_1.equals(systemTimeInMillis())) {
      tmp1_output.f49(tmp0_desc, 14, value.qix_1);
    }
    var tmp;
    if (tmp1_output.r49(tmp0_desc, 15)) {
      tmp = true;
    } else {
      var tmp_0 = value.rix_1;
      Companion_getInstance();
      tmp = !tmp_0.equals(new Long(-1, 2147483647));
    }
    if (tmp) {
      tmp1_output.f49(tmp0_desc, 15, value.rix_1);
    }
    if (tmp1_output.r49(tmp0_desc, 16) ? true : !(value.six_1 == null)) {
      tmp1_output.n49(tmp0_desc, 16, StringSerializer_getInstance(), value.six_1);
    }
    if (tmp1_output.r49(tmp0_desc, 17) ? true : !(value.tix_1 === false)) {
      tmp1_output.b49(tmp0_desc, 17, value.tix_1);
    }
    if (tmp1_output.r49(tmp0_desc, 18) ? true : !(value.uix_1 === '')) {
      tmp1_output.j49(tmp0_desc, 18, value.uix_1);
    }
    tmp1_output.w47(tmp0_desc);
  };
  protoOf($serializer_123).e44 = function (encoder, value) {
    return this.ejy(encoder, value instanceof XapiSessionEntity ? value : THROW_CCE());
  };
  var $serializer_instance_123;
  function $serializer_getInstance_123() {
    if ($serializer_instance_123 == null)
      new $serializer_123();
    return $serializer_instance_123;
  }
  function XapiSessionEntity_init_$Init$(seen1, xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_123().djy_1);
    }
    if (0 === (seen1 & 1))
      $this.cix_1 = new Long(0, 0);
    else
      $this.cix_1 = xseUid;
    if (0 === (seen1 & 2))
      $this.dix_1 = new Long(0, 0);
    else
      $this.dix_1 = xseLastMod;
    if (0 === (seen1 & 4))
      $this.eix_1 = new Long(0, 0);
    else
      $this.eix_1 = xseRegistrationHi;
    if (0 === (seen1 & 8))
      $this.fix_1 = new Long(0, 0);
    else
      $this.fix_1 = xseRegistrationLo;
    if (0 === (seen1 & 16))
      $this.gix_1 = new Long(0, 0);
    else
      $this.gix_1 = xseUsUid;
    if (0 === (seen1 & 32))
      $this.hix_1 = new Long(0, 0);
    else
      $this.hix_1 = xseAccountPersonUid;
    if (0 === (seen1 & 64))
      $this.iix_1 = new Long(0, 0);
    else
      $this.iix_1 = xseActorUid;
    if (0 === (seen1 & 128))
      $this.jix_1 = '';
    else
      $this.jix_1 = xseAccountUsername;
    if (0 === (seen1 & 256))
      $this.kix_1 = new Long(0, 0);
    else
      $this.kix_1 = xseClazzUid;
    if (0 === (seen1 & 512))
      $this.lix_1 = new Long(0, 0);
    else
      $this.lix_1 = xseCbUid;
    if (0 === (seen1 & 1024))
      $this.mix_1 = new Long(0, 0);
    else
      $this.mix_1 = xseContentEntryUid;
    if (0 === (seen1 & 2048))
      $this.nix_1 = new Long(0, 0);
    else
      $this.nix_1 = xseContentEntryVersionUid;
    if (0 === (seen1 & 4096))
      $this.oix_1 = '';
    else
      $this.oix_1 = xseRootActivityId;
    if (0 === (seen1 & 8192))
      $this.pix_1 = new Long(0, 0);
    else
      $this.pix_1 = xseRootActivityUid;
    if (0 === (seen1 & 16384))
      $this.qix_1 = systemTimeInMillis();
    else
      $this.qix_1 = xseStartTime;
    if (0 === (seen1 & 32768)) {
      var tmp = $this;
      Companion_getInstance();
      tmp.rix_1 = new Long(-1, 2147483647);
    } else
      $this.rix_1 = xseExpireTime;
    if (0 === (seen1 & 65536))
      $this.six_1 = null;
    else
      $this.six_1 = xseAuth;
    if (0 === (seen1 & 131072))
      $this.tix_1 = false;
    else
      $this.tix_1 = xseCompleted;
    if (0 === (seen1 & 262144))
      $this.uix_1 = '';
    else
      $this.uix_1 = knownActorUidToPersonUids;
    return $this;
  }
  function XapiSessionEntity_init_$Create$(seen1, xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids, serializationConstructorMarker) {
    return XapiSessionEntity_init_$Init$(seen1, xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids, serializationConstructorMarker, objectCreate(protoOf(XapiSessionEntity)));
  }
  function XapiSessionEntity(xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids) {
    xseUid = xseUid === VOID ? new Long(0, 0) : xseUid;
    xseLastMod = xseLastMod === VOID ? new Long(0, 0) : xseLastMod;
    xseRegistrationHi = xseRegistrationHi === VOID ? new Long(0, 0) : xseRegistrationHi;
    xseRegistrationLo = xseRegistrationLo === VOID ? new Long(0, 0) : xseRegistrationLo;
    xseUsUid = xseUsUid === VOID ? new Long(0, 0) : xseUsUid;
    xseAccountPersonUid = xseAccountPersonUid === VOID ? new Long(0, 0) : xseAccountPersonUid;
    xseActorUid = xseActorUid === VOID ? new Long(0, 0) : xseActorUid;
    xseAccountUsername = xseAccountUsername === VOID ? '' : xseAccountUsername;
    xseClazzUid = xseClazzUid === VOID ? new Long(0, 0) : xseClazzUid;
    xseCbUid = xseCbUid === VOID ? new Long(0, 0) : xseCbUid;
    xseContentEntryUid = xseContentEntryUid === VOID ? new Long(0, 0) : xseContentEntryUid;
    xseContentEntryVersionUid = xseContentEntryVersionUid === VOID ? new Long(0, 0) : xseContentEntryVersionUid;
    xseRootActivityId = xseRootActivityId === VOID ? '' : xseRootActivityId;
    xseRootActivityUid = xseRootActivityUid === VOID ? new Long(0, 0) : xseRootActivityUid;
    xseStartTime = xseStartTime === VOID ? systemTimeInMillis() : xseStartTime;
    var tmp;
    if (xseExpireTime === VOID) {
      Companion_getInstance();
      tmp = new Long(-1, 2147483647);
    } else {
      tmp = xseExpireTime;
    }
    xseExpireTime = tmp;
    xseAuth = xseAuth === VOID ? null : xseAuth;
    xseCompleted = xseCompleted === VOID ? false : xseCompleted;
    knownActorUidToPersonUids = knownActorUidToPersonUids === VOID ? '' : knownActorUidToPersonUids;
    this.cix_1 = xseUid;
    this.dix_1 = xseLastMod;
    this.eix_1 = xseRegistrationHi;
    this.fix_1 = xseRegistrationLo;
    this.gix_1 = xseUsUid;
    this.hix_1 = xseAccountPersonUid;
    this.iix_1 = xseActorUid;
    this.jix_1 = xseAccountUsername;
    this.kix_1 = xseClazzUid;
    this.lix_1 = xseCbUid;
    this.mix_1 = xseContentEntryUid;
    this.nix_1 = xseContentEntryVersionUid;
    this.oix_1 = xseRootActivityId;
    this.pix_1 = xseRootActivityUid;
    this.qix_1 = xseStartTime;
    this.rix_1 = xseExpireTime;
    this.six_1 = xseAuth;
    this.tix_1 = xseCompleted;
    this.uix_1 = knownActorUidToPersonUids;
  }
  protoOf(XapiSessionEntity).toString = function () {
    return 'XapiSessionEntity(xseUid=' + this.cix_1.toString() + ', xseLastMod=' + this.dix_1.toString() + ', xseRegistrationHi=' + this.eix_1.toString() + ', xseRegistrationLo=' + this.fix_1.toString() + ', xseUsUid=' + this.gix_1.toString() + ', xseAccountPersonUid=' + this.hix_1.toString() + ', xseActorUid=' + this.iix_1.toString() + ', xseAccountUsername=' + this.jix_1 + ', xseClazzUid=' + this.kix_1.toString() + ', xseCbUid=' + this.lix_1.toString() + ', xseContentEntryUid=' + this.mix_1.toString() + ', xseContentEntryVersionUid=' + this.nix_1.toString() + ', xseRootActivityId=' + this.oix_1 + ', xseRootActivityUid=' + this.pix_1.toString() + ', xseStartTime=' + this.qix_1.toString() + ', xseExpireTime=' + this.rix_1.toString() + ', xseAuth=' + this.six_1 + ', xseCompleted=' + this.tix_1 + ', knownActorUidToPersonUids=' + this.uix_1 + ')';
  };
  protoOf(XapiSessionEntity).hashCode = function () {
    var result = this.cix_1.hashCode();
    result = imul(result, 31) + this.dix_1.hashCode() | 0;
    result = imul(result, 31) + this.eix_1.hashCode() | 0;
    result = imul(result, 31) + this.fix_1.hashCode() | 0;
    result = imul(result, 31) + this.gix_1.hashCode() | 0;
    result = imul(result, 31) + this.hix_1.hashCode() | 0;
    result = imul(result, 31) + this.iix_1.hashCode() | 0;
    result = imul(result, 31) + getStringHashCode(this.jix_1) | 0;
    result = imul(result, 31) + this.kix_1.hashCode() | 0;
    result = imul(result, 31) + this.lix_1.hashCode() | 0;
    result = imul(result, 31) + this.mix_1.hashCode() | 0;
    result = imul(result, 31) + this.nix_1.hashCode() | 0;
    result = imul(result, 31) + getStringHashCode(this.oix_1) | 0;
    result = imul(result, 31) + this.pix_1.hashCode() | 0;
    result = imul(result, 31) + this.qix_1.hashCode() | 0;
    result = imul(result, 31) + this.rix_1.hashCode() | 0;
    result = imul(result, 31) + (this.six_1 == null ? 0 : getStringHashCode(this.six_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.tix_1) | 0;
    result = imul(result, 31) + getStringHashCode(this.uix_1) | 0;
    return result;
  };
  protoOf(XapiSessionEntity).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof XapiSessionEntity))
      return false;
    var tmp0_other_with_cast = other instanceof XapiSessionEntity ? other : THROW_CCE();
    if (!this.cix_1.equals(tmp0_other_with_cast.cix_1))
      return false;
    if (!this.dix_1.equals(tmp0_other_with_cast.dix_1))
      return false;
    if (!this.eix_1.equals(tmp0_other_with_cast.eix_1))
      return false;
    if (!this.fix_1.equals(tmp0_other_with_cast.fix_1))
      return false;
    if (!this.gix_1.equals(tmp0_other_with_cast.gix_1))
      return false;
    if (!this.hix_1.equals(tmp0_other_with_cast.hix_1))
      return false;
    if (!this.iix_1.equals(tmp0_other_with_cast.iix_1))
      return false;
    if (!(this.jix_1 === tmp0_other_with_cast.jix_1))
      return false;
    if (!this.kix_1.equals(tmp0_other_with_cast.kix_1))
      return false;
    if (!this.lix_1.equals(tmp0_other_with_cast.lix_1))
      return false;
    if (!this.mix_1.equals(tmp0_other_with_cast.mix_1))
      return false;
    if (!this.nix_1.equals(tmp0_other_with_cast.nix_1))
      return false;
    if (!(this.oix_1 === tmp0_other_with_cast.oix_1))
      return false;
    if (!this.pix_1.equals(tmp0_other_with_cast.pix_1))
      return false;
    if (!this.qix_1.equals(tmp0_other_with_cast.qix_1))
      return false;
    if (!this.rix_1.equals(tmp0_other_with_cast.rix_1))
      return false;
    if (!(this.six_1 == tmp0_other_with_cast.six_1))
      return false;
    if (!(this.tix_1 === tmp0_other_with_cast.tix_1))
      return false;
    if (!(this.uix_1 === tmp0_other_with_cast.uix_1))
      return false;
    return true;
  };
  function addSyncCallback(_this__u8e3s4, nodeIdAndAuth) {
    _this__u8e3s4.b72(new SyncNodeIdCallback(nodeIdAndAuth.d64_1));
    return _this__u8e3s4;
  }
  //region block: post-declaration
  protoOf($serializer).y4f = typeParametersSerializers;
  protoOf($serializer_0).y4f = typeParametersSerializers;
  protoOf($serializer_1).y4f = typeParametersSerializers;
  protoOf($serializer_2).y4f = typeParametersSerializers;
  protoOf($serializer_3).y4f = typeParametersSerializers;
  protoOf($serializer_4).y4f = typeParametersSerializers;
  protoOf($serializer_5).y4f = typeParametersSerializers;
  protoOf($serializer_6).y4f = typeParametersSerializers;
  protoOf($serializer_7).y4f = typeParametersSerializers;
  protoOf($serializer_8).y4f = typeParametersSerializers;
  protoOf($serializer_9).y4f = typeParametersSerializers;
  protoOf($serializer_10).y4f = typeParametersSerializers;
  protoOf($serializer_11).y4f = typeParametersSerializers;
  protoOf($serializer_12).y4f = typeParametersSerializers;
  protoOf($serializer_13).y4f = typeParametersSerializers;
  protoOf($serializer_14).y4f = typeParametersSerializers;
  protoOf($serializer_15).y4f = typeParametersSerializers;
  protoOf($serializer_16).y4f = typeParametersSerializers;
  protoOf($serializer_17).y4f = typeParametersSerializers;
  protoOf($serializer_18).y4f = typeParametersSerializers;
  protoOf($serializer_19).y4f = typeParametersSerializers;
  protoOf($serializer_20).y4f = typeParametersSerializers;
  protoOf($serializer_21).y4f = typeParametersSerializers;
  protoOf($serializer_22).y4f = typeParametersSerializers;
  protoOf($serializer_23).y4f = typeParametersSerializers;
  protoOf($serializer_24).y4f = typeParametersSerializers;
  protoOf($serializer_25).y4f = typeParametersSerializers;
  protoOf($serializer_26).y4f = typeParametersSerializers;
  protoOf($serializer_27).y4f = typeParametersSerializers;
  protoOf($serializer_28).y4f = typeParametersSerializers;
  protoOf($serializer_29).y4f = typeParametersSerializers;
  protoOf($serializer_30).y4f = typeParametersSerializers;
  protoOf($serializer_31).y4f = typeParametersSerializers;
  protoOf($serializer_32).y4f = typeParametersSerializers;
  protoOf($serializer_33).y4f = typeParametersSerializers;
  protoOf($serializer_34).y4f = typeParametersSerializers;
  protoOf($serializer_35).y4f = typeParametersSerializers;
  protoOf($serializer_36).y4f = typeParametersSerializers;
  protoOf($serializer_37).y4f = typeParametersSerializers;
  protoOf($serializer_38).y4f = typeParametersSerializers;
  protoOf($serializer_39).y4f = typeParametersSerializers;
  protoOf($serializer_40).y4f = typeParametersSerializers;
  protoOf($serializer_41).y4f = typeParametersSerializers;
  protoOf($serializer_42).y4f = typeParametersSerializers;
  protoOf($serializer_43).y4f = typeParametersSerializers;
  protoOf($serializer_44).y4f = typeParametersSerializers;
  protoOf($serializer_45).y4f = typeParametersSerializers;
  protoOf($serializer_46).y4f = typeParametersSerializers;
  protoOf($serializer_47).y4f = typeParametersSerializers;
  protoOf($serializer_48).y4f = typeParametersSerializers;
  protoOf($serializer_49).y4f = typeParametersSerializers;
  protoOf($serializer_50).y4f = typeParametersSerializers;
  protoOf($serializer_51).y4f = typeParametersSerializers;
  protoOf($serializer_52).y4f = typeParametersSerializers;
  protoOf($serializer_53).y4f = typeParametersSerializers;
  protoOf($serializer_54).y4f = typeParametersSerializers;
  protoOf($serializer_55).y4f = typeParametersSerializers;
  protoOf($serializer_56).y4f = typeParametersSerializers;
  protoOf($serializer_57).y4f = typeParametersSerializers;
  protoOf($serializer_58).y4f = typeParametersSerializers;
  protoOf($serializer_59).y4f = typeParametersSerializers;
  protoOf($serializer_60).y4f = typeParametersSerializers;
  protoOf($serializer_61).y4f = typeParametersSerializers;
  protoOf($serializer_62).y4f = typeParametersSerializers;
  protoOf($serializer_63).y4f = typeParametersSerializers;
  protoOf($serializer_64).y4f = typeParametersSerializers;
  protoOf($serializer_65).y4f = typeParametersSerializers;
  protoOf($serializer_66).y4f = typeParametersSerializers;
  protoOf($serializer_67).y4f = typeParametersSerializers;
  protoOf($serializer_68).y4f = typeParametersSerializers;
  protoOf($serializer_69).y4f = typeParametersSerializers;
  protoOf($serializer_70).y4f = typeParametersSerializers;
  protoOf($serializer_71).y4f = typeParametersSerializers;
  protoOf($serializer_72).y4f = typeParametersSerializers;
  protoOf($serializer_73).y4f = typeParametersSerializers;
  protoOf($serializer_74).y4f = typeParametersSerializers;
  protoOf($serializer_75).y4f = typeParametersSerializers;
  protoOf($serializer_76).y4f = typeParametersSerializers;
  protoOf($serializer_77).y4f = typeParametersSerializers;
  protoOf($serializer_78).y4f = typeParametersSerializers;
  protoOf($serializer_79).y4f = typeParametersSerializers;
  protoOf($serializer_80).y4f = typeParametersSerializers;
  protoOf($serializer_81).y4f = typeParametersSerializers;
  protoOf($serializer_82).y4f = typeParametersSerializers;
  protoOf($serializer_83).y4f = typeParametersSerializers;
  protoOf($serializer_84).y4f = typeParametersSerializers;
  protoOf($serializer_85).y4f = typeParametersSerializers;
  protoOf($serializer_86).y4f = typeParametersSerializers;
  protoOf($serializer_87).y4f = typeParametersSerializers;
  protoOf($serializer_88).y4f = typeParametersSerializers;
  protoOf($serializer_89).y4f = typeParametersSerializers;
  protoOf($serializer_90).y4f = typeParametersSerializers;
  protoOf($serializer_91).y4f = typeParametersSerializers;
  protoOf($serializer_92).y4f = typeParametersSerializers;
  protoOf($serializer_93).y4f = typeParametersSerializers;
  protoOf($serializer_94).y4f = typeParametersSerializers;
  protoOf($serializer_95).y4f = typeParametersSerializers;
  protoOf($serializer_96).y4f = typeParametersSerializers;
  protoOf($serializer_97).y4f = typeParametersSerializers;
  protoOf($serializer_98).y4f = typeParametersSerializers;
  protoOf($serializer_99).y4f = typeParametersSerializers;
  protoOf($serializer_100).y4f = typeParametersSerializers;
  protoOf($serializer_101).y4f = typeParametersSerializers;
  protoOf($serializer_102).y4f = typeParametersSerializers;
  protoOf($serializer_103).y4f = typeParametersSerializers;
  protoOf($serializer_104).y4f = typeParametersSerializers;
  protoOf($serializer_105).y4f = typeParametersSerializers;
  protoOf($serializer_106).y4f = typeParametersSerializers;
  protoOf($serializer_107).y4f = typeParametersSerializers;
  protoOf($serializer_108).y4f = typeParametersSerializers;
  protoOf($serializer_109).y4f = typeParametersSerializers;
  protoOf($serializer_110).y4f = typeParametersSerializers;
  protoOf($serializer_111).y4f = typeParametersSerializers;
  protoOf($serializer_112).y4f = typeParametersSerializers;
  protoOf($serializer_113).y4f = typeParametersSerializers;
  protoOf($serializer_114).y4f = typeParametersSerializers;
  protoOf($serializer_115).y4f = typeParametersSerializers;
  protoOf($serializer_116).y4f = typeParametersSerializers;
  protoOf($serializer_117).y4f = typeParametersSerializers;
  protoOf($serializer_118).y4f = typeParametersSerializers;
  protoOf($serializer_119).y4f = typeParametersSerializers;
  protoOf($serializer_120).y4f = typeParametersSerializers;
  protoOf($serializer_121).y4f = typeParametersSerializers;
  protoOf($serializer_122).y4f = typeParametersSerializers;
  protoOf($serializer_123).y4f = typeParametersSerializers;
  //endregion
  //region block: init
  Companion_instance_0 = new Companion();
  UNSET_DISTANT_FUTURE = new Long(-289930240, 1689);
  ClazzAssignmentDaoCommon_instance = new ClazzAssignmentDaoCommon();
  ClazzDaoCommon_instance = new ClazzDaoCommon();
  ClazzEnrolmentDaoCommon_instance = new ClazzEnrolmentDaoCommon();
  ContentEntryDaoCommon_instance = new ContentEntryDaoCommon();
  CourseAssignmentMarkDaoCommon_instance = new CourseAssignmentMarkDaoCommon();
  CourseGroupSetDaoConstants_instance = new CourseGroupSetDaoConstants();
  LanguageDaoCommon_instance = new LanguageDaoCommon();
  PersonDaoCommon_instance = new PersonDaoCommon();
  Companion_instance_1 = new Companion_0();
  Companion_instance_2 = new Companion_1();
  Companion_instance_3 = new Companion_2();
  Companion_instance_4 = new Companion_3();
  Companion_instance_5 = new Companion_4();
  Companion_instance_6 = new Companion_5();
  Companion_instance_7 = new Companion_6();
  Companion_instance_8 = new Companion_7();
  Companion_instance_9 = new Companion_8();
  Companion_instance_10 = new Companion_9();
  Companion_instance_11 = new Companion_10();
  Companion_instance_12 = new Companion_11();
  Companion_instance_13 = new Companion_12();
  Companion_instance_14 = new Companion_13();
  Companion_instance_15 = new Companion_14();
  Companion_instance_16 = new Companion_15();
  Companion_instance_17 = new Companion_16();
  Companion_instance_19 = new Companion_18();
  Companion_instance_20 = new Companion_19();
  Companion_instance_21 = new Companion_20();
  Companion_instance_22 = new Companion_21();
  Companion_instance_23 = new Companion_22();
  Companion_instance_24 = new Companion_23();
  Companion_instance_25 = new Companion_24();
  Companion_instance_26 = new Companion_25();
  Companion_instance_27 = new Companion_26();
  Companion_instance_28 = new Companion_27();
  Companion_instance_29 = new Companion_28();
  Companion_instance_30 = new Companion_29();
  Companion_instance_31 = new Companion_30();
  Companion_instance_32 = new Companion_31();
  Companion_instance_33 = new Companion_32();
  Companion_instance_34 = new Companion_33();
  Companion_instance_37 = new Companion_36();
  Companion_instance_38 = new Companion_37();
  Companion_instance_39 = new Companion_38();
  Companion_instance_41 = new Companion_40();
  Companion_instance_42 = new Companion_41();
  Companion_instance_43 = new Companion_42();
  Companion_instance_45 = new Companion_44();
  Companion_instance_46 = new Companion_45();
  Companion_instance_47 = new Companion_46();
  Companion_instance_48 = new Companion_47();
  Companion_instance_49 = new Companion_48();
  Companion_instance_50 = new Companion_49();
  Companion_instance_51 = new Companion_50();
  Companion_instance_52 = new Companion_51();
  Companion_instance_53 = new Companion_52();
  Companion_instance_54 = new Companion_53();
  Companion_instance_55 = new Companion_54();
  Companion_instance_56 = new Companion_55();
  Companion_instance_57 = new Companion_56();
  Companion_instance_58 = new Companion_57();
  Companion_instance_59 = new Companion_58();
  Companion_instance_60 = new Companion_59();
  Companion_instance_61 = new Companion_60();
  Companion_instance_62 = new Companion_61();
  Companion_instance_63 = new Companion_62();
  Companion_instance_64 = new Companion_63();
  Companion_instance_65 = new Companion_64();
  Companion_instance_66 = new Companion_65();
  Companion_instance_67 = new Companion_66();
  Companion_instance_68 = new Companion_67();
  Companion_instance_70 = new Companion_69();
  Companion_instance_71 = new Companion_70();
  Companion_instance_72 = new Companion_71();
  Companion_instance_73 = new Companion_72();
  Companion_instance_74 = new Companion_73();
  Companion_instance_75 = new Companion_74();
  Companion_instance_77 = new Companion_76();
  Companion_instance_78 = new Companion_77();
  Companion_instance_79 = new Companion_78();
  Companion_instance_80 = new Companion_79();
  Companion_instance_81 = new Companion_80();
  Companion_instance_82 = new Companion_81();
  Companion_instance_83 = new Companion_82();
  Companion_instance_84 = new Companion_83();
  Companion_instance_85 = new Companion_84();
  Companion_instance_86 = new Companion_85();
  Companion_instance_88 = new Companion_87();
  Companion_instance_90 = new Companion_89();
  Companion_instance_91 = new Companion_90();
  Companion_instance_92 = new Companion_91();
  Companion_instance_93 = new Companion_92();
  Companion_instance_94 = new Companion_93();
  Companion_instance_95 = new Companion_94();
  Companion_instance_96 = new Companion_95();
  Companion_instance_97 = new Companion_96();
  Companion_instance_98 = new Companion_97();
  Companion_instance_99 = new Companion_98();
  Companion_instance_100 = new Companion_99();
  Companion_instance_101 = new Companion_100();
  Companion_instance_103 = new Companion_102();
  Companion_instance_105 = new Companion_104();
  Companion_instance_107 = new Companion_106();
  Companion_instance_108 = new Companion_107();
  Companion_instance_109 = new Companion_108();
  Companion_instance_110 = new Companion_109();
  Companion_instance_112 = new Companion_111();
  Companion_instance_113 = new Companion_112();
  Companion_instance_114 = new Companion_113();
  Companion_instance_115 = new Companion_114();
  Companion_instance_116 = new Companion_115();
  Companion_instance_117 = new Companion_116();
  Companion_instance_118 = new Companion_117();
  Companion_instance_119 = new Companion_118();
  Companion_instance_120 = new Companion_119();
  Companion_instance_121 = new Companion_120();
  Companion_instance_122 = new Companion_121();
  Companion_instance_123 = new Companion_122();
  Companion_instance_124 = new Companion_123();
  Companion_instance_125 = new Companion_124();
  Companion_instance_126 = new Companion_125();
  Companion_instance_127 = new Companion_126();
  Companion_instance_128 = new Companion_127();
  Companion_instance_130 = new Companion_129();
  XapiEntityObjectTypeFlags_instance = new XapiEntityObjectTypeFlags();
  Companion_instance_131 = new Companion_130();
  //endregion
  //region block: exports
  _.$_$ = _.$_$ || {};
  _.$_$.a = get_MIGRATION_144_145_CLIENT;
  _.$_$.b = get_MIGRATION_148_149_NO_OFFLINE_ITEMS;
  _.$_$.c = get_MIGRATION_155_156_CLIENT;
  _.$_$.d = get_MIGRATION_161_162_CLIENT;
  _.$_$.e = get_MIGRATION_169_170_CLIENT;
  _.$_$.f = addSyncCallback;
  _.$_$.g = migrationList;
  _.$_$.h = get_UNSET_DISTANT_FUTURE;
  _.$_$.i = UmAppDatabase;
  _.$_$.j = AssignmentPermissionAndActiveUserSubmitterUid;
  _.$_$.k = BlockStatus;
  _.$_$.l = ClazzAndDetailPermissions;
  _.$_$.m = ClazzAndDisplayDetails;
  _.$_$.n = ClazzNameAndTerminology;
  _.$_$.o = CommentsAndName;
  _.$_$.p = ContentEntryAndContentJob;
  _.$_$.q = ContentEntryAndDetail;
  _.$_$.r = ContentEntryAndListDetail;
  _.$_$.s = CourseAssignmentMarkAndMarkerName;
  _.$_$.t = CourseBlockAndAssignment;
  _.$_$.u = CourseBlockAndEditEntities;
  _.$_$.v = CourseBlockAndPicture;
  _.$_$.w = DiscussionPostAndPosterNames;
  _.$_$.x = EditAndViewPermission;
  _.$_$.y = MessageAndOtherPerson;
  _.$_$.z = OfflineItemAndState;
  _.$_$.a1 = PermissionPair;
  _.$_$.b1 = PermissionTriple;
  _.$_$.c1 = PersonAndClazzLogAttendanceRecord;
  _.$_$.d1 = PersonAndListDisplayDetails;
  _.$_$.e1 = PersonAndPicture;
  _.$_$.f1 = PersonNames;
  _.$_$.g1 = SiteTermsAndLangName;
  _.$_$.h1 = StudentAndBlockStatuses;
  _.$_$.i1 = SubmissionAndFiles;
  _.$_$.j1 = shallowCopy_12;
  _.$_$.k1 = shallowCopy_17;
  _.$_$.l1 = shallowCopy_0;
  _.$_$.m1 = shallowCopy_19;
  _.$_$.n1 = shallowCopy_1;
  _.$_$.o1 = shallowCopy_9;
  _.$_$.p1 = shallowCopy_6;
  _.$_$.q1 = shallowCopy_10;
  _.$_$.r1 = shallowCopy_7;
  _.$_$.s1 = shallowCopy_16;
  _.$_$.t1 = shallowCopy_11;
  _.$_$.u1 = shallowCopy_15;
  _.$_$.v1 = shallowCopy_5;
  _.$_$.w1 = shallowCopy_4;
  _.$_$.x1 = shallowCopy_2;
  _.$_$.y1 = shallowCopy_18;
  _.$_$.z1 = shallowCopy;
  _.$_$.a2 = shallowCopy_20;
  _.$_$.b2 = shallowCopy_14;
  _.$_$.c2 = shallowCopy_8;
  _.$_$.d2 = shallowCopy_3;
  _.$_$.e2 = shallowCopy_13;
  _.$_$.f2 = ActivityEntity;
  _.$_$.g2 = ActivityExtensionEntity;
  _.$_$.h2 = ActivityInteractionEntity;
  _.$_$.i2 = ActivityLangMapEntry;
  _.$_$.j2 = ActorEntity;
  _.$_$.k2 = GroupMemberActorJoin;
  _.$_$.l2 = StatementContextActivityJoin;
  _.$_$.m2 = StatementEntityJson;
  _.$_$.n2 = StatementEntity;
  _.$_$.o2 = VerbEntity;
  _.$_$.p2 = VerbLangMapEntry;
  _.$_$.q2 = XapiSessionEntity;
  _.$_$.r2 = AssignmentProgressSummary;
  _.$_$.s2 = AssignmentSubmitterAndAllocations;
  _.$_$.t2 = AssignmentSubmitterSummary;
  _.$_$.u2 = AverageCourseAssignmentMark;
  _.$_$.v2 = ClazzAssignmentCourseBlockAndSubmitterUid;
  _.$_$.w2 = ClazzAssignment;
  _.$_$.x2 = ClazzEnrolmentWithLeavingReason;
  _.$_$.y2 = ClazzLogAttendanceRecord;
  _.$_$.z2 = ClazzLog;
  _.$_$.a3 = ClazzWithHolidayCalendarAndAndTerminology;
  _.$_$.b3 = Clazz;
  _.$_$.c3 = Comments;
  _.$_$.d3 = ContentEntryButtonModel;
  _.$_$.e3 = ContentEntryImportJob;
  _.$_$.f3 = ContentEntryParentChildJoin;
  _.$_$.g3 = ContentEntryPicture2;
  _.$_$.h3 = ContentEntryRelatedEntryJoinWithLanguage;
  _.$_$.i3 = ContentEntryStatementScoreProgress;
  _.$_$.j3 = ContentEntryVersion;
  _.$_$.k3 = ContentEntry;
  _.$_$.l3 = CourseAssignmentMark;
  _.$_$.m3 = CourseAssignmentSubmissionFile;
  _.$_$.n3 = CourseAssignmentSubmission;
  _.$_$.o3 = CourseBlockPicture;
  _.$_$.p3 = CourseBlock;
  _.$_$.q3 = CourseGroupMemberAndName;
  _.$_$.r3 = CourseGroupMember;
  _.$_$.s3 = CourseGroupSet;
  _.$_$.t3 = CoursePermission;
  _.$_$.u3 = CoursePicture;
  _.$_$.v3 = CourseTerminology;
  _.$_$.w3 = DiscussionPost;
  _.$_$.x3 = EnrolmentRequest;
  _.$_$.y3 = ErrorReport;
  _.$_$.z3 = HolidayCalendarWithNumEntries;
  _.$_$.a4 = HolidayCalendar;
  _.$_$.b4 = Holiday;
  _.$_$.c4 = Language;
  _.$_$.d4 = LeavingReason;
  _.$_$.e4 = Message;
  _.$_$.f4 = PeerReviewerAllocation;
  _.$_$.g4 = PersonAndDisplayDetail;
  _.$_$.h4 = PersonAuth2;
  _.$_$.i4 = PersonGroup;
  _.$_$.j4 = PersonParentJoinAndMinorPerson;
  _.$_$.k4 = PersonParentJoin;
  _.$_$.l4 = PersonPicture;
  _.$_$.m4 = Person;
  _.$_$.n4 = Schedule;
  _.$_$.o4 = ScopedGrant;
  _.$_$.p4 = SiteTermsWithLanguage;
  _.$_$.q4 = SiteTerms;
  _.$_$.r4 = Site;
  _.$_$.s4 = SystemPermission;
  _.$_$.t4 = TransferJobItem;
  _.$_$.u4 = TransferJob;
  _.$_$.v4 = UidAndLabel;
  _.$_$.w4 = UmAccount;
  _.$_$.x4 = UserSession;
  _.$_$.y4 = TransferJobItemStatus_COMPLETE_getInstance;
  _.$_$.z4 = TransferJobItemStatus_FAILED_getInstance;
  _.$_$.a5 = TransferJobItemStatus_IN_PROGRESS_getInstance;
  _.$_$.b5 = deactivateByUids_1;
  _.$_$.c5 = deactivateByUids;
  _.$_$.d5 = deactivateByUids_0;
  _.$_$.e5 = ClazzEnrolment_init_$Create$;
  _.$_$.f5 = PersonGroupMember_init_$Create$;
  _.$_$.g5 = ClazzAssignmentDaoCommon_instance;
  _.$_$.h5 = ClazzDaoCommon_instance;
  _.$_$.i5 = ClazzEnrolmentDaoCommon_instance;
  _.$_$.j5 = ContentEntryDaoCommon_instance;
  _.$_$.k5 = CourseAssignmentMarkDaoCommon_instance;
  _.$_$.l5 = CourseGroupSetDaoConstants_instance;
  _.$_$.m5 = LanguageDaoCommon_instance;
  _.$_$.n5 = PersonDaoCommon_instance;
  _.$_$.o5 = PermissionFlags_getInstance;
  _.$_$.p5 = UmAppDatabaseJsImplementations_getInstance;
  _.$_$.q5 = Companion_instance_9;
  _.$_$.r5 = Companion_instance_12;
  _.$_$.s5 = $serializer_getInstance_16;
  _.$_$.t5 = Companion_getInstance_20;
  _.$_$.u5 = Companion_instance_31;
  _.$_$.v5 = Companion_instance_38;
  _.$_$.w5 = Companion_instance_118;
  _.$_$.x5 = Companion_instance_120;
  _.$_$.y5 = Companion_instance_121;
  _.$_$.z5 = Companion_instance_122;
  _.$_$.a6 = Companion_instance_126;
  _.$_$.b6 = Companion_instance_127;
  _.$_$.c6 = XapiEntityObjectTypeFlags_instance;
  _.$_$.d6 = $serializer_getInstance_123;
  _.$_$.e6 = Companion_instance_131;
  _.$_$.f6 = Companion_getInstance_42;
  _.$_$.g6 = Companion_getInstance_46;
  _.$_$.h6 = Companion_instance_45;
  _.$_$.i6 = Companion_instance_47;
  _.$_$.j6 = Companion_instance_48;
  _.$_$.k6 = Companion_instance_49;
  _.$_$.l6 = Companion_instance_50;
  _.$_$.m6 = $serializer_getInstance_47;
  _.$_$.n6 = Companion_instance_51;
  _.$_$.o6 = Companion_instance_56;
  _.$_$.p6 = $serializer_getInstance_54;
  _.$_$.q6 = Companion_instance_58;
  _.$_$.r6 = Companion_instance_59;
  _.$_$.s6 = $serializer_getInstance_57;
  _.$_$.t6 = Companion_instance_61;
  _.$_$.u6 = Companion_instance_65;
  _.$_$.v6 = $serializer_getInstance_62;
  _.$_$.w6 = Companion_getInstance_71;
  _.$_$.x6 = Companion_instance_70;
  _.$_$.y6 = Companion_instance_71;
  _.$_$.z6 = Companion_instance_72;
  _.$_$.a7 = Companion_instance_73;
  _.$_$.b7 = Companion_instance_74;
  _.$_$.c7 = Companion_instance_75;
  _.$_$.d7 = Companion_getInstance_78;
  _.$_$.e7 = Companion_instance_77;
  _.$_$.f7 = $serializer_getInstance_74;
  _.$_$.g7 = Companion_instance_78;
  _.$_$.h7 = Companion_instance_79;
  _.$_$.i7 = Companion_instance_80;
  _.$_$.j7 = Companion_instance_82;
  _.$_$.k7 = Companion_getInstance_91;
  _.$_$.l7 = Companion_instance_92;
  _.$_$.m7 = $serializer_getInstance_89;
  _.$_$.n7 = Companion_instance_93;
  _.$_$.o7 = Companion_instance_96;
  _.$_$.p7 = Companion_instance_97;
  _.$_$.q7 = $serializer_getInstance_94;
  _.$_$.r7 = Companion_instance_99;
  _.$_$.s7 = Companion_instance_100;
  _.$_$.t7 = $serializer_getInstance_96;
  _.$_$.u7 = Companion_instance_101;
  _.$_$.v7 = Companion_instance_103;
  _.$_$.w7 = $serializer_getInstance_99;
  _.$_$.x7 = Companion_instance_105;
  _.$_$.y7 = Companion_instance_107;
  _.$_$.z7 = Companion_instance_108;
  _.$_$.a8 = Companion_getInstance_113;
  _.$_$.b8 = Companion_instance_112;
  _.$_$.c8 = $serializer_getInstance_111;
  _.$_$.d8 = Companion_instance_117;
  //endregion
  return _;
}(module.exports, require('./door-door-runtime.js'), require('./kotlin-kotlin-stdlib.js'), require('./multiplatform-paging-root-paging-common.js'), require('./ktor-ktor-client-core.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./ktor-ktor-http.js'), require('./Napier-napier-js-ir.js')));

//# sourceMappingURL=UstadMobile-lib-database.js.map
