(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.$_$.y1;
  var protoOf = kotlin_kotlin.$_$.wc;
  var classMeta = kotlin_kotlin.$_$.lb;
  var setMetadataFor = kotlin_kotlin.$_$.xc;
  var VOID = kotlin_kotlin.$_$.f;
  var DoorJsImplClasses = kotlin_com_github_UstadMobile_door_door_runtime.$_$.a2;
  var getKClass = kotlin_kotlin.$_$.e;
  var objectMeta = kotlin_kotlin.$_$.vc;
  var listOf = kotlin_kotlin.$_$.k8;
  var ReplicationFieldMetaData = kotlin_com_github_UstadMobile_door_door_runtime.$_$.v1;
  var listOf_0 = kotlin_kotlin.$_$.l8;
  var RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.o2;
  var Order_INSTEAD_OF_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.t2;
  var Event_INSERT_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.p2;
  var On_RECEIVEVIEW_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.r2;
  var Trigger = kotlin_com_github_UstadMobile_door_door_runtime.$_$.a;
  var ReplicationEntityMetaData = kotlin_com_github_UstadMobile_door_door_runtime.$_$.u1;
  var to = kotlin_kotlin.$_$.nj;
  var Order_AFTER_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.s2;
  var On_ENTITY_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.q2;
  var mapOf = kotlin_kotlin.$_$.o8;
  var DoorDatabaseMetadata = kotlin_com_github_UstadMobile_door_door_runtime.$_$.d;
  var LazyThreadSafetyMode_NONE_getInstance = kotlin_kotlin.$_$.h;
  var lazy = kotlin_kotlin.$_$.ej;
  var KProperty1 = kotlin_kotlin.$_$.vd;
  var getPropertyCallableRef = kotlin_kotlin.$_$.ub;
  var lazy_0 = kotlin_kotlin.$_$.fj;
  var NodeEventManagerJs = kotlin_com_github_UstadMobile_door_door_runtime.$_$.l1;
  var DoorDatabaseWrapper = kotlin_com_github_UstadMobile_door_door_runtime.$_$.h2;
  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.$_$.b2;
  var equals = kotlin_kotlin.$_$.ob;
  var doorDatabaseMetadata = kotlin_com_github_UstadMobile_door_door_runtime.$_$.h;
  var DoorPrimaryKeyManager = kotlin_com_github_UstadMobile_door_door_runtime.$_$.i2;
  var getKClassFromExpression = kotlin_kotlin.$_$.d;
  var copyToArray = kotlin_kotlin.$_$.e7;
  var InvalidationTracker = kotlin_com_github_UstadMobile_door_door_runtime.$_$.w1;
  var RoomDatabaseJdbcImplHelper = kotlin_com_github_UstadMobile_door_door_runtime.$_$.x1;
  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.$_$.f2;
  var RoomJdbcImpl = kotlin_com_github_UstadMobile_door_door_runtime.$_$.z1;
  var RepositoryHelper = kotlin_com_github_UstadMobile_door_door_runtime.$_$.l2;
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2;
  var DoorDatabaseRepository = kotlin_com_github_UstadMobile_door_door_runtime.$_$.g2;
  var EntityInsertionAdapter = kotlin_com_github_UstadMobile_door_door_runtime.$_$.j2;
  var THROW_CCE = kotlin_kotlin.$_$.hi;
  var CoroutineImpl = kotlin_kotlin.$_$.va;
  var get_doorPrimaryKeyManager = kotlin_com_github_UstadMobile_door_door_runtime.$_$.k;
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
  var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ha;
  var Long = kotlin_kotlin.$_$.ai;
  var systemTimeInMillis = kotlin_com_github_UstadMobile_door_door_runtime.$_$.d2;
  var mapNextRow = kotlin_com_github_UstadMobile_door_door_runtime.$_$.c1;
  var PreparedStatement = kotlin_com_github_UstadMobile_door_door_runtime.$_$.j1;
  var isInterface = kotlin_kotlin.$_$.gc;
  var executeQueryAsyncKmp = kotlin_com_github_UstadMobile_door_door_runtime.$_$.x2;
  var useResults = kotlin_com_github_UstadMobile_door_door_runtime.$_$.i1;
  var mapRows = kotlin_com_github_UstadMobile_door_door_runtime.$_$.d1;
  var getFloatNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.x;
  var PreparedStatementConfig = kotlin_com_github_UstadMobile_door_door_runtime.$_$.k2;
  var prepareAndUseStatementAsync = kotlin_com_github_UstadMobile_door_door_runtime.$_$.u2;
  var DoorLimitOffsetPagingSource = kotlin_com_github_UstadMobile_door_door_runtime.$_$.n1;
  var createArrayOrProxyArrayOf = kotlin_com_github_UstadMobile_door_door_runtime.$_$.e;
  var executeUpdateAsyncKmp = kotlin_com_github_UstadMobile_door_door_runtime.$_$.y2;
  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.$_$.z2;
  var endOfPaginationReached = kotlin_com_github_UstadMobile_door_door_runtime.$_$.t1;
  var Napier_getInstance = kotlin_io_github_aakira_napier.$_$.g;
  var Companion_instance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.b3;
  var Exception = kotlin_kotlin.$_$.wh;
  var withRepoChangeMonitorAsync = kotlin_com_github_UstadMobile_door_door_runtime.$_$.a3;
  var RepoDaoFlowHelper = kotlin_com_github_UstadMobile_door_door_runtime.$_$.v;
  var DoorRepositoryReplicatePullPagingSource = kotlin_com_github_UstadMobile_door_door_runtime.$_$.q1;
  var prepareAndUseStatementAsync_0 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.v2;
  var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x;
  var bodyAsText = kotlin_io_ktor_ktor_client_core.$_$.a;
  var getStringNonNull = kotlin_com_github_UstadMobile_door_door_runtime.$_$.a1;
  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.$_$.f1;
  var mapNextRow_0 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.b1;
  var OutgoingReplication = kotlin_com_github_UstadMobile_door_door_runtime.$_$.c;
  var SyncNode = kotlin_com_github_UstadMobile_door_door_runtime.$_$.n2;
  var setLongNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.h1;
  var getLongNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.z;
  var setBooleanNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.e1;
  var setIntNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.g1;
  var emptyList = kotlin_kotlin.$_$.i7;
  var DoorMigrationStatementList = kotlin_com_github_UstadMobile_door_door_runtime.$_$.k1;
  var dbType = kotlin_com_github_UstadMobile_door_door_runtime.$_$.g;
  var Companion_getInstance_1 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.d3;
  var numberRangeToNumber = kotlin_kotlin.$_$.oc;
  var Pair = kotlin_kotlin.$_$.ei;
  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.$_$.uc;
  var getBooleanHashCode = kotlin_kotlin.$_$.rb;
  var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
  var getStringHashCode = kotlin_kotlin.$_$.vb;
  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.$_$.tb;
  var hashCode = kotlin_kotlin.$_$.wb;
  var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n2;
  var enumEntries = kotlin_kotlin.$_$.za;
  var Enum = kotlin_kotlin.$_$.uh;
  var throwArrayMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y2;
  var ensureNotNull = kotlin_kotlin.$_$.zi;
  var ByteSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
  var toString = kotlin_kotlin.$_$.mj;
  var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f1;
  var trimIndent = kotlin_kotlin.$_$.gh;
  var SyncNodeIdCallback = kotlin_com_github_UstadMobile_door_door_runtime.$_$.m2;
  //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(ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentInviteUid$slambda, 'ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentInviteUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$44, '$insertAsyncCOROUTINE$44', classMeta, CoroutineImpl);
  setMetadataFor($updateAsyncCOROUTINE$45, '$updateAsyncCOROUTINE$45', classMeta, CoroutineImpl);
  setMetadataFor($updateClazzEnrolmentInviteUidCOROUTINE$47, '$updateClazzEnrolmentInviteUidCOROUTINE$47', 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$updateClazzEnrolmentInviteUid$slambda, 'ClazzEnrolmentDao_Repo$updateClazzEnrolmentInviteUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzEnrolmentDao_Repo$insertAsync$slambda, 'ClazzEnrolmentDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findEnrolmentWithLeavingReasonCOROUTINE$48, '$findEnrolmentWithLeavingReasonCOROUTINE$48', classMeta, CoroutineImpl);
  setMetadataFor($updateAsyncCOROUTINE$49, '$updateAsyncCOROUTINE$49', classMeta, CoroutineImpl);
  setMetadataFor($getAllEnrolmentsAtTimeByClazzAndPersonCOROUTINE$52, '$getAllEnrolmentsAtTimeByClazzAndPersonCOROUTINE$52', classMeta, CoroutineImpl);
  setMetadataFor($getClazzNameAndPersonNameCOROUTINE$61, '$getClazzNameAndPersonNameCOROUTINE$61', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$64, '$insertAsyncCOROUTINE$64', classMeta, CoroutineImpl);
  setMetadataFor(ClazzEnrolmentDao_Repo, 'ClazzEnrolmentDao_Repo', classMeta, ClazzEnrolmentDao, VOID, VOID, VOID, VOID, [1, 3, 4, 9, 2, 10, 5]);
  setMetadataFor(ClazzInviteDao, 'ClazzInviteDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 0, 3]);
  setMetadataFor($insertAsyncCOROUTINE$67, '$insertAsyncCOROUTINE$67', classMeta, CoroutineImpl);
  setMetadataFor(ClazzInviteDao_DoorWrapper, 'ClazzInviteDao_DoorWrapper', classMeta, ClazzInviteDao, VOID, VOID, VOID, VOID, [1, 0, 3]);
  setMetadataFor(ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda$slambda, 'ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$loadRows$slambda, 'ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$countRows$slambda, 'ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzInviteDao_JdbcImpl$_insertAdapterClazzInvite_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzInviteDao_JdbcImpl$_insertAdapterClazzInvite_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzInviteDao_JdbcImpl$_insertAdapterClazzInvite_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteToken$slambda, 'ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteToken$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda, 'ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzInviteDao_JdbcImpl$updateInviteStatus$slambda, 'ClazzInviteDao_JdbcImpl$updateInviteStatus$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(ClazzInviteDao_JdbcImpl$updateClazzInviteToRevokeInvite$slambda, 'ClazzInviteDao_JdbcImpl$updateClazzInviteToRevokeInvite$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$69, '$insertAsyncCOROUTINE$69', classMeta, CoroutineImpl);
  setMetadataFor($updateInviteStatusCOROUTINE$70, '$updateInviteStatusCOROUTINE$70', classMeta, CoroutineImpl);
  setMetadataFor(ClazzInviteDao_JdbcImpl, 'ClazzInviteDao_JdbcImpl', classMeta, ClazzInviteDao, VOID, VOID, VOID, VOID, [1, 0, 3]);
  setMetadataFor(ClazzInviteDao_Repo$findClazzInviteEntityForInviteTokenAsFlow$slambda, 'ClazzInviteDao_Repo$findClazzInviteEntityForInviteTokenAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzInviteDao_Repo$updateInviteStatus$slambda, 'ClazzInviteDao_Repo$updateInviteStatus$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzInviteDao_Repo$findPendingInviteByPersonUid$slambda, 'ClazzInviteDao_Repo$findPendingInviteByPersonUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ClazzInviteDao_Repo$updateClazzInviteToRevokeInvite$slambda, 'ClazzInviteDao_Repo$updateClazzInviteToRevokeInvite$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ClazzInviteDao_Repo$insertAsync$slambda, 'ClazzInviteDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findClazzInviteEntityForInviteTokenCOROUTINE$73, '$findClazzInviteEntityForInviteTokenCOROUTINE$73', classMeta, CoroutineImpl);
  setMetadataFor($updateInviteStatusCOROUTINE$74, '$updateInviteStatusCOROUTINE$74', classMeta, CoroutineImpl);
  setMetadataFor($updateClazzInviteToRevokeInviteCOROUTINE$75, '$updateClazzInviteToRevokeInviteCOROUTINE$75', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$77, '$insertAsyncCOROUTINE$77', classMeta, CoroutineImpl);
  setMetadataFor(ClazzInviteDao_Repo, 'ClazzInviteDao_Repo', classMeta, ClazzInviteDao, VOID, VOID, VOID, VOID, [1, 0, 3]);
  setMetadataFor(ClazzLogAttendanceRecordDao, 'ClazzLogAttendanceRecordDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor($upsertListAsyncCOROUTINE$79, '$upsertListAsyncCOROUTINE$79', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$80, '$insertAsyncCOROUTINE$80', 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$81, '$insertAsyncCOROUTINE$81', 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$83, '$findByClazzAndTimeCOROUTINE$83', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$84, '$insertAsyncCOROUTINE$84', 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$85, '$upsertListAsyncCOROUTINE$85', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$86, '$insertAsyncCOROUTINE$86', 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$87, '$insertAsyncCOROUTINE$87', 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$90, '$findByClazzUidAsyncCOROUTINE$90', classMeta, CoroutineImpl);
  setMetadataFor($findMostRecentClazzLogToEditUidCOROUTINE$93, '$findMostRecentClazzLogToEditUidCOROUTINE$93', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$94, '$insertAsyncCOROUTINE$94', 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$95, '$insertAsyncCOROUTINE$95', 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$96, '$insertAsyncCOROUTINE$96', classMeta, CoroutineImpl);
  setMetadataFor($updateDeletedByCommentUidCOROUTINE$97, '$updateDeletedByCommentUidCOROUTINE$97', 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$98, '$insertAsyncCOROUTINE$98', 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$101, '$insertAsyncCOROUTINE$101', 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$102, '$insertAsyncCOROUTINE$102', 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$103, '$insertAsyncCOROUTINE$103', 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$104, '$insertAsyncCOROUTINE$104', 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$105, '$insertAsyncCOROUTINE$105', 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$106, '$insertAsyncCOROUTINE$106', 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$107, '$insertAsyncCOROUTINE$107', 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$108, '$insertAsyncCOROUTINE$108', 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$109, '$insertAsyncCOROUTINE$109', 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$111, '$upsertAsyncCOROUTINE$111', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$112, '$insertAsyncCOROUTINE$112', 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$findLiveContentEntry$slambda$slambda, 'ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$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(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda, 'ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$113, '$insertAsyncCOROUTINE$113', 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$115, '$findByUidAsyncCOROUTINE$115', classMeta, CoroutineImpl);
  setMetadataFor($findByUidWithEditDetailsCOROUTINE$117, '$findByUidWithEditDetailsCOROUTINE$117', classMeta, CoroutineImpl);
  setMetadataFor($findTitleByUidAsyncCOROUTINE$118, '$findTitleByUidAsyncCOROUTINE$118', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$127, '$insertAsyncCOROUTINE$127', 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$134, '$insertAsyncCOROUTINE$134', 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$135, '$insertAsyncCOROUTINE$135', classMeta, CoroutineImpl);
  setMetadataFor($moveListOfEntriesToNewParentCOROUTINE$136, '$moveListOfEntriesToNewParentCOROUTINE$136', classMeta, CoroutineImpl);
  setMetadataFor($setEntriesDeletedCOROUTINE$137, '$setEntriesDeletedCOROUTINE$137', 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$141, '$insertAsyncCOROUTINE$141', 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$142, '$updateUriCOROUTINE$142', 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$143, '$insertAsyncCOROUTINE$143', 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$144, '$insertAsyncCOROUTINE$144', 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$147, '$insertAsyncCOROUTINE$147', 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$148, '$insertAsyncCOROUTINE$148', 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$149, '$insertAsyncCOROUTINE$149', 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$151, '$insertAsyncCOROUTINE$151', 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$154, '$updateTransferJobItemEtagCOROUTINE$154', 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$155, '$findByUidAsyncCOROUTINE$155', classMeta, CoroutineImpl);
  setMetadataFor($findLatestVersionUidByContentEntryUidEntityCOROUTINE$157, '$findLatestVersionUidByContentEntryUidEntityCOROUTINE$157', 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$159, '$insertAsyncCOROUTINE$159', 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$160, '$insertAsyncCOROUTINE$160', 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$163, '$insertAsyncCOROUTINE$163', 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$165, '$insertAsyncCOROUTINE$165', 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$166, '$insertAsyncCOROUTINE$166', 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$168, '$doesUserHaveSubmissionsCOROUTINE$168', classMeta, CoroutineImpl);
  setMetadataFor($checkNoSubmissionsMadeAsyncCOROUTINE$172, '$checkNoSubmissionsMadeAsyncCOROUTINE$172', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$173, '$insertAsyncCOROUTINE$173', 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$174, '$insertListAsyncCOROUTINE$174', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$175, '$insertAsyncCOROUTINE$175', 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$176, '$insertAsyncCOROUTINE$176', classMeta, CoroutineImpl);
  setMetadataFor($updateUriCOROUTINE$177, '$updateUriCOROUTINE$177', classMeta, CoroutineImpl);
  setMetadataFor($setDeletedCOROUTINE$178, '$setDeletedCOROUTINE$178', 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$179, '$insertAsyncCOROUTINE$179', 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$181, '$upsertListAsyncCOROUTINE$181', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$182, '$insertAsyncCOROUTINE$182', 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$184, '$insertAsyncCOROUTINE$184', classMeta, CoroutineImpl);
  setMetadataFor($updateActiveByUidCOROUTINE$186, '$updateActiveByUidCOROUTINE$186', 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$191, '$findAllCourseBlockByClazzUidAsyncCOROUTINE$191', classMeta, CoroutineImpl);
  setMetadataFor($findCourseBlockAndClazzUidByDiscussionPostUidCOROUTINE$192, '$findCourseBlockAndClazzUidByDiscussionPostUidCOROUTINE$192', classMeta, CoroutineImpl);
  setMetadataFor($findClazzUidByCourseBlockUidCOROUTINE$194, '$findClazzUidByCourseBlockUidCOROUTINE$194', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$198, '$insertAsyncCOROUTINE$198', 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$199, '$updateUriCOROUTINE$199', 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$201, '$upsertListAsyncCOROUTINE$201', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$202, '$insertAsyncCOROUTINE$202', 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$203, '$insertAsyncCOROUTINE$203', 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$206, '$findByCourseGroupSetAndClazzCOROUTINE$206', classMeta, CoroutineImpl);
  setMetadataFor($findByCourseGroupSetAndGroupNumAsyncCOROUTINE$209, '$findByCourseGroupSetAndGroupNumAsyncCOROUTINE$209', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$210, '$insertAsyncCOROUTINE$210', 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$211, '$upsertAsyncCOROUTINE$211', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$212, '$insertAsyncCOROUTINE$212', 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$213, '$insertAsyncCOROUTINE$213', 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$217, '$findByUidAsyncCOROUTINE$217', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$218, '$insertAsyncCOROUTINE$218', 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$219, '$upsertAsyncCOROUTINE$219', 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$220, '$setDeletedCOROUTINE$220', 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$221, '$findByUidAndClazzUidCOROUTINE$221', classMeta, CoroutineImpl);
  setMetadataFor($userHasEnrolmentEditPermissionCOROUTINE$223, '$userHasEnrolmentEditPermissionCOROUTINE$223', classMeta, CoroutineImpl);
  setMetadataFor($personHasPermissionWithClazzPairAsyncCOROUTINE$225, '$personHasPermissionWithClazzPairAsyncCOROUTINE$225', classMeta, CoroutineImpl);
  setMetadataFor($personHasPermissionWithClazzAsync2COROUTINE$226, '$personHasPermissionWithClazzAsync2COROUTINE$226', 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$228, '$upsertAsyncCOROUTINE$228', 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$229, '$updateUriCOROUTINE$229', 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$230, '$upsertAsyncCOROUTINE$230', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$231, '$insertAsyncCOROUTINE$231', 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$232, '$upsertAsyncCOROUTINE$232', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$233, '$insertAsyncCOROUTINE$233', 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$235, '$getTerminologyForClazzCOROUTINE$235', classMeta, CoroutineImpl);
  setMetadataFor($getTerminologyForAssignmentCOROUTINE$236, '$getTerminologyForAssignmentCOROUTINE$236', classMeta, CoroutineImpl);
  setMetadataFor($findByUidAsyncCOROUTINE$237, '$findByUidAsyncCOROUTINE$237', classMeta, CoroutineImpl);
  setMetadataFor($upsertAsyncCOROUTINE$239, '$upsertAsyncCOROUTINE$239', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$240, '$insertAsyncCOROUTINE$240', 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$241, '$insertDeletedItemForContentEntryParentChildJoinCOROUTINE$241', classMeta, CoroutineImpl);
  setMetadataFor($updateStatusByUidsCOROUTINE$242, '$updateStatusByUidsCOROUTINE$242', 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$244, '$upsertAsyncCOROUTINE$244', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$245, '$insertAsyncCOROUTINE$245', 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$246, '$insertAsyncCOROUTINE$246', classMeta, CoroutineImpl);
  setMetadataFor($setDeletedAsyncCOROUTINE$248, '$setDeletedAsyncCOROUTINE$248', 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$252, '$findByUidCOROUTINE$252', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$255, '$insertAsyncCOROUTINE$255', 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$256, '$insertCOROUTINE$256', 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$257, '$updateStatusCOROUTINE$257', 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$259, '$hasPendingRequestsCOROUTINE$259', 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$266, '$insertAsyncCOROUTINE$266', 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$267, '$insertAsyncCOROUTINE$267', 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$272, '$insertAsyncCOROUTINE$272', 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$274, '$insertAsyncCOROUTINE$274', 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$276, '$insertAsyncCOROUTINE$276', 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$278, '$insertAsyncCOROUTINE$278', 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$280, '$insertAsyncCOROUTINE$280', 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$281, '$insertAsyncCOROUTINE$281', 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$287, '$insertAsyncCOROUTINE$287', 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$288, '$insertAsyncCOROUTINE$288', 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$289, '$insertAsyncCOROUTINE$289', 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$290, '$insertAsyncCOROUTINE$290', 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$292, '$insertAsyncCOROUTINE$292', 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$293, '$insertAsyncCOROUTINE$293', 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$296, '$findByUidAsyncCOROUTINE$296', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$300, '$insertAsyncCOROUTINE$300', 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$301, '$insertCOROUTINE$301', 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$307, '$upsertListCOROUTINE$307', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$308, '$insertAsyncCOROUTINE$308', 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$309, '$insertAsyncCOROUTINE$309', classMeta, CoroutineImpl);
  setMetadataFor($updateActiveByUidCOROUTINE$310, '$updateActiveByUidCOROUTINE$310', 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$312, '$getAllPeerReviewerAllocationsByClazzUidCOROUTINE$312', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$313, '$insertAsyncCOROUTINE$313', 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$findByPersonUidFlow$slambda$slambda, 'PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda$slambda', classMeta, CoroutineImpl, 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(PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda, 'PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$314, '$insertAsyncCOROUTINE$314', 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(PersonAuth2Dao_Repo$findByPersonUidFlow$slambda, 'PersonAuth2Dao_Repo$findByPersonUidFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$315, '$insertAsyncCOROUTINE$315', 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$318, '$insertAsyncCOROUTINE$318', 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($insertListAsyncCOROUTINE$320, '$insertListAsyncCOROUTINE$320', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$324, '$insertAsyncCOROUTINE$324', 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$327, '$insertAsyncCOROUTINE$327', classMeta, CoroutineImpl);
  setMetadataFor($updateAsyncCOROUTINE$328, '$updateAsyncCOROUTINE$328', classMeta, CoroutineImpl);
  setMetadataFor(PersonDao_JdbcImpl, 'PersonDao_JdbcImpl', classMeta, PersonDao, VOID, VOID, VOID, VOID, [1, 2, 3]);
  setMetadataFor(PersonDao_Repo$insertListAsync$slambda, 'PersonDao_Repo$insertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  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$329, '$countUsernameCOROUTINE$329', classMeta, CoroutineImpl);
  setMetadataFor($findByUidWithPictureCOROUTINE$334, '$findByUidWithPictureCOROUTINE$334', classMeta, CoroutineImpl);
  setMetadataFor($findByUidAsyncCOROUTINE$335, '$findByUidAsyncCOROUTINE$335', classMeta, CoroutineImpl);
  setMetadataFor($updateAsyncCOROUTINE$336, '$updateAsyncCOROUTINE$336', classMeta, CoroutineImpl);
  setMetadataFor($getNamesByUidAsyncCOROUTINE$339, '$getNamesByUidAsyncCOROUTINE$339', classMeta, CoroutineImpl);
  setMetadataFor($updateUsernameCOROUTINE$341, '$updateUsernameCOROUTINE$341', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$343, '$insertAsyncCOROUTINE$343', 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$344, '$insertAsyncCOROUTINE$344', 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$345, '$insertAsyncCOROUTINE$345', 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$350, '$insertAsyncCOROUTINE$350', 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$351, '$insertAsyncCOROUTINE$351', 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$352, '$insertAsyncCOROUTINE$352', 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$358, '$insertAsyncCOROUTINE$358', 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($insertListAsyncCOROUTINE$359, '$insertListAsyncCOROUTINE$359', classMeta, CoroutineImpl);
  setMetadataFor($upsertAsyncCOROUTINE$360, '$upsertAsyncCOROUTINE$360', classMeta, CoroutineImpl);
  setMetadataFor(PersonParentJoinDao_DoorWrapper, 'PersonParentJoinDao_DoorWrapper', classMeta, PersonParentJoinDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  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$361, '$upsertAsyncCOROUTINE$361', classMeta, CoroutineImpl);
  setMetadataFor($updateAsyncCOROUTINE$362, '$updateAsyncCOROUTINE$362', classMeta, CoroutineImpl);
  setMetadataFor(PersonParentJoinDao_JdbcImpl, 'PersonParentJoinDao_JdbcImpl', classMeta, PersonParentJoinDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(PersonParentJoinDao_Repo$insertListAsync$slambda, 'PersonParentJoinDao_Repo$insertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  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$363, '$upsertAsyncCOROUTINE$363', classMeta, CoroutineImpl);
  setMetadataFor($findByUidWithMinorAsyncCOROUTINE$364, '$findByUidWithMinorAsyncCOROUTINE$364', classMeta, CoroutineImpl);
  setMetadataFor($isMinorApprovedCOROUTINE$369, '$isMinorApprovedCOROUTINE$369', classMeta, CoroutineImpl);
  setMetadataFor(PersonParentJoinDao_Repo, 'PersonParentJoinDao_Repo', classMeta, PersonParentJoinDao, VOID, VOID, VOID, VOID, [1, 2]);
  setMetadataFor(PersonPasskeyDao, 'PersonPasskeyDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 0]);
  setMetadataFor($insertAsyncCOROUTINE$370, '$insertAsyncCOROUTINE$370', classMeta, CoroutineImpl);
  setMetadataFor(PersonPasskeyDao_DoorWrapper, 'PersonPasskeyDao_DoorWrapper', classMeta, PersonPasskeyDao, VOID, VOID, VOID, VOID, [1, 0]);
  setMetadataFor(PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda$slambda, 'PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonPasskeyDao_JdbcImpl$_insertAdapterPersonPasskey_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda, 'PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$371, '$insertAsyncCOROUTINE$371', classMeta, CoroutineImpl);
  setMetadataFor(PersonPasskeyDao_JdbcImpl, 'PersonPasskeyDao_JdbcImpl', classMeta, PersonPasskeyDao, VOID, VOID, VOID, VOID, [1, 0]);
  setMetadataFor(PersonPasskeyDao_Repo$insertAsync$slambda, 'PersonPasskeyDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(PersonPasskeyDao_Repo$getAllActivePasskeys$slambda, 'PersonPasskeyDao_Repo$getAllActivePasskeys$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($insertAsyncCOROUTINE$373, '$insertAsyncCOROUTINE$373', classMeta, CoroutineImpl);
  setMetadataFor(PersonPasskeyDao_Repo, 'PersonPasskeyDao_Repo', classMeta, PersonPasskeyDao, VOID, VOID, VOID, VOID, [1, 0]);
  setMetadataFor(PersonPictureDao, 'PersonPictureDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 4]);
  setMetadataFor($upsertCOROUTINE$376, '$upsertCOROUTINE$376', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$377, '$insertAsyncCOROUTINE$377', 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$378, '$insertAsyncCOROUTINE$378', classMeta, CoroutineImpl);
  setMetadataFor($updateUriCOROUTINE$381, '$updateUriCOROUTINE$381', classMeta, CoroutineImpl);
  setMetadataFor($updateTransferJobItemEtagCOROUTINE$382, '$updateTransferJobItemEtagCOROUTINE$382', 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$383, '$findByPersonUidAsyncCOROUTINE$383', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$384, '$insertAsyncCOROUTINE$384', 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$385, '$insertAsyncCOROUTINE$385', 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$386, '$insertAsyncCOROUTINE$386', 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$390, '$insertAsyncCOROUTINE$390', 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$391, '$upsertListAsyncCOROUTINE$391', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$392, '$insertAsyncCOROUTINE$392', classMeta, CoroutineImpl);
  setMetadataFor(ScheduleDao_DoorWrapper, 'ScheduleDao_DoorWrapper', classMeta, ScheduleDao, VOID, VOID, VOID, VOID, [1, 3]);
  setMetadataFor(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda, 'ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  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$findAllSchedulesByClazzUidAsLiveList$slambda, 'ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda, 'ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($insertAsyncCOROUTINE$393, '$insertAsyncCOROUTINE$393', classMeta, CoroutineImpl);
  setMetadataFor($updateScheduleActivatedCOROUTINE$395, '$updateScheduleActivatedCOROUTINE$395', 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$398, '$findAllSchedulesByClazzUidAsyncCOROUTINE$398', classMeta, CoroutineImpl);
  setMetadataFor($insertAsyncCOROUTINE$399, '$insertAsyncCOROUTINE$399', 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$400, '$insertAsyncCOROUTINE$400', 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$402, '$insertAsyncCOROUTINE$402', 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$403, '$insertAsyncCOROUTINE$403', 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$408, '$updateAsyncCOROUTINE$408', 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$409, '$getSiteAsyncCOROUTINE$409', 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$414, '$upsertListCOROUTINE$414', 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$421, '$findAllTermsCOROUTINE$421', classMeta, CoroutineImpl);
  setMetadataFor($findAvailableSiteTermLanguagesCOROUTINE$423, '$findAvailableSiteTermLanguagesCOROUTINE$423', classMeta, CoroutineImpl);
  setMetadataFor($findLatestByLanguageCOROUTINE$424, '$findLatestByLanguageCOROUTINE$424', 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$428, '$upsertAsyncCOROUTINE$428', 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$431, '$findByPersonUidCOROUTINE$431', classMeta, CoroutineImpl);
  setMetadataFor($personHasSystemPermissionCOROUTINE$432, '$personHasSystemPermissionCOROUTINE$432', classMeta, CoroutineImpl);
  setMetadataFor($personHasSystemPermissionPairCOROUTINE$433, '$personHasSystemPermissionPairCOROUTINE$433', 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$434, '$insertCOROUTINE$434', 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$437, '$insertCOROUTINE$437', classMeta, CoroutineImpl);
  setMetadataFor($updateTransferredProgressCOROUTINE$438, '$updateTransferredProgressCOROUTINE$438', classMeta, CoroutineImpl);
  setMetadataFor($updateStatusCOROUTINE$439, '$updateStatusCOROUTINE$439', classMeta, CoroutineImpl);
  setMetadataFor($insertOutgoingReplicationForTransferJobItemIfDoneCOROUTINE$440, '$insertOutgoingReplicationForTransferJobItemIfDoneCOROUTINE$440', classMeta, CoroutineImpl);
  setMetadataFor($updateStatusIfNotCompleteForAllInJobCOROUTINE$441, '$updateStatusIfNotCompleteForAllInJobCOROUTINE$441', 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$442, '$insertSessionCOROUTINE$442', 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$443, '$insertSessionCOROUTINE$443', classMeta, CoroutineImpl);
  setMetadataFor($endSessionCOROUTINE$444, '$endSessionCOROUTINE$444', 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$446, '$insertSessionCOROUTINE$446', classMeta, CoroutineImpl);
  setMetadataFor($findAllLocalSessionsAsyncCOROUTINE$448, '$findAllLocalSessionsAsyncCOROUTINE$448', classMeta, CoroutineImpl);
  setMetadataFor($countAllLocalSessionsAsyncCOROUTINE$450, '$countAllLocalSessionsAsyncCOROUTINE$450', 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, 6]);
  setMetadataFor(ActivityEntityDao_DoorWrapper, 'ActivityEntityDao_DoorWrapper', classMeta, ActivityEntityDao, VOID, VOID, VOID, VOID, [1, 3, 6]);
  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$454, '$updateIfMoreInfoChangedCOROUTINE$454', classMeta, CoroutineImpl);
  setMetadataFor($updateIfNotYetDefinedCOROUTINE$455, '$updateIfNotYetDefinedCOROUTINE$455', classMeta, CoroutineImpl);
  setMetadataFor(ActivityEntityDao_JdbcImpl, 'ActivityEntityDao_JdbcImpl', classMeta, ActivityEntityDao, VOID, VOID, VOID, VOID, [1, 3, 6]);
  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, 6]);
  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$458, '$findActivityUidsWithInteractionEntitiesAsyncCOROUTINE$458', classMeta, CoroutineImpl);
  setMetadataFor(ActivityInteractionDao_Repo, 'ActivityInteractionDao_Repo', classMeta, ActivityInteractionDao, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(ActivityLangMapEntryDao, 'ActivityLangMapEntryDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 7, 4]);
  setMetadataFor(ActivityLangMapEntryDao_DoorWrapper, 'ActivityLangMapEntryDao_DoorWrapper', classMeta, ActivityLangMapEntryDao, VOID, VOID, VOID, VOID, [1, 7, 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(ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda, 'ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor($upsertIfInteractionEntityExistsCOROUTINE$460, '$upsertIfInteractionEntityExistsCOROUTINE$460', classMeta, CoroutineImpl);
  setMetadataFor($updateIfChangedCOROUTINE$461, '$updateIfChangedCOROUTINE$461', classMeta, CoroutineImpl);
  setMetadataFor(ActivityLangMapEntryDao_JdbcImpl, 'ActivityLangMapEntryDao_JdbcImpl', classMeta, ActivityLangMapEntryDao, VOID, VOID, VOID, VOID, [1, 7, 4]);
  setMetadataFor(ActivityLangMapEntryDao_Repo$upsertList$slambda, 'ActivityLangMapEntryDao_Repo$upsertList$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda, 'ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$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($findAllByActivityUidCOROUTINE$462, '$findAllByActivityUidCOROUTINE$462', classMeta, CoroutineImpl);
  setMetadataFor(ActivityLangMapEntryDao_Repo, 'ActivityLangMapEntryDao_Repo', classMeta, ActivityLangMapEntryDao, VOID, VOID, VOID, VOID, [1, 7, 4]);
  setMetadataFor(ActorDao, 'ActorDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 2]);
  setMetadataFor($insertOrIgnoreListAsyncCOROUTINE$463, '$insertOrIgnoreListAsyncCOROUTINE$463', classMeta, CoroutineImpl);
  setMetadataFor($upsertListAsyncCOROUTINE$464, '$upsertListAsyncCOROUTINE$464', 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$465, '$updateIfNameChangedCOROUTINE$465', 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$468, '$findUidAndEtagByListAsyncCOROUTINE$468', 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$470, '$updateLastModifiedTimeIfNeededAsyncCOROUTINE$470', 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$findPersonsWithAttempts$o$loadRows$slambda, 'StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda, 'StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda, 'StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda, 'StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda, 'StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda, 'StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda, 'StatementDao_JdbcImpl$getUniqueVerbsForSession$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$findPersonsWithAttempts$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(StatementDao_JdbcImpl$findSessionsByPersonAndContent$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(StatementDao_JdbcImpl$findStatementsBySession$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]);
  setMetadataFor(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda, 'StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor(StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda, 'StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  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(StatementDao_Repo$findPersonsWithAttempts$slambda, 'StatementDao_Repo$findPersonsWithAttempts$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StatementDao_Repo$findSessionsByPersonAndContent$slambda, 'StatementDao_Repo$findSessionsByPersonAndContent$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StatementDao_Repo$findStatementsBySession$slambda, 'StatementDao_Repo$findStatementsBySession$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
  setMetadataFor(StatementDao_Repo$getUniqueVerbsForSession$slambda, 'StatementDao_Repo$getUniqueVerbsForSession$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]);
  setMetadataFor($findStatusForStudentsInClazzCOROUTINE$485, '$findStatusForStudentsInClazzCOROUTINE$485', classMeta, CoroutineImpl);
  setMetadataFor($scoreOrProgressDataExistsForContentCOROUTINE$490, '$scoreOrProgressDataExistsForContentCOROUTINE$490', 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$497, '$updateLatestAsCompleteCOROUTINE$497', 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(UmAppDataLayer, 'UmAppDataLayer', classMeta);
  setMetadataFor(ClazzAssignmentDaoCommon, 'ClazzAssignmentDaoCommon', objectMeta);
  setMetadataFor(ClazzDaoCommon, 'ClazzDaoCommon', objectMeta);
  setMetadataFor(ClazzEnrolmentDaoCommon, 'ClazzEnrolmentDaoCommon', objectMeta);
  setMetadataFor(ContentEntryDaoCommon, 'ContentEntryDaoCommon', objectMeta);
  setMetadataFor(CourseAssignmentMarkDaoCommon, 'CourseAssignmentMarkDaoCommon', objectMeta);
  setMetadataFor($deactivateByUidsCOROUTINE$500, '$deactivateByUidsCOROUTINE$500', classMeta, CoroutineImpl);
  setMetadataFor(CourseGroupSetDaoConstants, 'CourseGroupSetDaoConstants', objectMeta);
  setMetadataFor(LanguageDaoCommon, 'LanguageDaoCommon', objectMeta);
  setMetadataFor($deactivateByUidsCOROUTINE$501, '$deactivateByUidsCOROUTINE$501', classMeta, CoroutineImpl);
  setMetadataFor(PersonDaoCommon, 'PersonDaoCommon', objectMeta);
  setMetadataFor($deactivateByUidsCOROUTINE$502, '$deactivateByUidsCOROUTINE$502', 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(ClazzInviteAndClazz, 'ClazzInviteAndClazz', classMeta, VOID, VOID, ClazzInviteAndClazz, VOID, {0: $serializer_getInstance_5});
  setMetadataFor(Companion_7, 'Companion', objectMeta);
  setMetadataFor($serializer_6, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzInviteWithTimeZone, 'ClazzInviteWithTimeZone', classMeta, VOID, VOID, ClazzInviteWithTimeZone, VOID, {0: $serializer_getInstance_6});
  setMetadataFor(Companion_8, 'Companion', objectMeta);
  setMetadataFor($serializer_7, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzNameAndTerminology, 'ClazzNameAndTerminology', classMeta, VOID, VOID, ClazzNameAndTerminology, VOID, {0: $serializer_getInstance_7});
  setMetadataFor(Companion_9, 'Companion', objectMeta);
  setMetadataFor($serializer_8, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CommentsAndName, 'CommentsAndName', classMeta, VOID, VOID, CommentsAndName, VOID, {0: $serializer_getInstance_8});
  setMetadataFor(Companion_10, 'Companion', objectMeta);
  setMetadataFor($serializer_9, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryAndContentJob, 'ContentEntryAndContentJob', classMeta, VOID, VOID, ContentEntryAndContentJob, VOID, {0: $serializer_getInstance_9});
  setMetadataFor(Companion_11, 'Companion', objectMeta);
  setMetadataFor($serializer_10, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryAndDetail, 'ContentEntryAndDetail', classMeta, VOID, VOID, ContentEntryAndDetail, VOID, {0: $serializer_getInstance_10});
  setMetadataFor(ContentEntryAndListDetail, 'ContentEntryAndListDetail', classMeta, VOID, VOID, ContentEntryAndListDetail);
  setMetadataFor(Companion_12, 'Companion', objectMeta);
  setMetadataFor($serializer_11, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryAndPicture, 'ContentEntryAndPicture', classMeta, VOID, VOID, ContentEntryAndPicture, VOID, {0: $serializer_getInstance_11});
  setMetadataFor(Companion_13, 'Companion', objectMeta);
  setMetadataFor($serializer_12, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryImportJobProgress, 'ContentEntryImportJobProgress', classMeta, VOID, VOID, ContentEntryImportJobProgress, VOID, {0: $serializer_getInstance_12});
  setMetadataFor(Companion_14, 'Companion', objectMeta);
  setMetadataFor($serializer_13, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseAssignmentMarkAndMarkerName, 'CourseAssignmentMarkAndMarkerName', classMeta, VOID, VOID, CourseAssignmentMarkAndMarkerName, VOID, {0: $serializer_getInstance_13});
  setMetadataFor(Companion_15, 'Companion', objectMeta);
  setMetadataFor($serializer_14, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseAssignmentSubmissionFileAndTransferJob, 'CourseAssignmentSubmissionFileAndTransferJob', classMeta, VOID, VOID, CourseAssignmentSubmissionFileAndTransferJob, VOID, {0: $serializer_getInstance_14});
  setMetadataFor(Companion_16, 'Companion', objectMeta);
  setMetadataFor($serializer_15, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseBlockAndAssignment, 'CourseBlockAndAssignment', classMeta, VOID, VOID, CourseBlockAndAssignment, VOID, {0: $serializer_getInstance_15});
  setMetadataFor(Companion_17, 'Companion', objectMeta);
  setMetadataFor($serializer_16, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseBlockAndDbEntities, 'CourseBlockAndDbEntities', classMeta, VOID, VOID, CourseBlockAndDbEntities, VOID, {0: $serializer_getInstance_16});
  setMetadataFor(Companion_18, 'Companion', objectMeta);
  setMetadataFor($serializer_17, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseBlockAndDisplayDetails, 'CourseBlockAndDisplayDetails', classMeta, VOID, VOID, CourseBlockAndDisplayDetails, VOID, {0: $serializer_getInstance_17});
  setMetadataFor(Companion_19, 'Companion', objectMeta);
  setMetadataFor($serializer_18, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseBlockAndEditEntities, 'CourseBlockAndEditEntities', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_18});
  setMetadataFor(Companion_20, 'Companion', objectMeta);
  setMetadataFor($serializer_19, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseBlockAndGradebookDisplayDetails, 'CourseBlockAndGradebookDisplayDetails', classMeta, VOID, VOID, CourseBlockAndGradebookDisplayDetails, VOID, {0: $serializer_getInstance_19});
  setMetadataFor(Companion_21, 'Companion', objectMeta);
  setMetadataFor($serializer_20, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseBlockAndPicture, 'CourseBlockAndPicture', classMeta, VOID, VOID, CourseBlockAndPicture, VOID, {0: $serializer_getInstance_20});
  setMetadataFor(Companion_22, 'Companion', objectMeta);
  setMetadataFor($serializer_21, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseBlockUidAndClazzUid, 'CourseBlockUidAndClazzUid', classMeta, VOID, VOID, CourseBlockUidAndClazzUid, VOID, {0: $serializer_getInstance_21});
  setMetadataFor(Companion_23, 'Companion', objectMeta);
  setMetadataFor($serializer_22, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseGroupMemberAndPerson, 'CourseGroupMemberAndPerson', classMeta, VOID, VOID, CourseGroupMemberAndPerson, VOID, {0: $serializer_getInstance_22});
  setMetadataFor(Companion_24, 'Companion', objectMeta);
  setMetadataFor($serializer_23, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseNameAndPersonName, 'CourseNameAndPersonName', classMeta, VOID, VOID, CourseNameAndPersonName, VOID, {0: $serializer_getInstance_23});
  setMetadataFor(CoursePermissionAndListDetail, 'CoursePermissionAndListDetail', classMeta, VOID, VOID, CoursePermissionAndListDetail);
  setMetadataFor(Companion_25, 'Companion', objectMeta);
  setMetadataFor($serializer_24, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(DiscussionPostAndPosterNames, 'DiscussionPostAndPosterNames', classMeta, VOID, VOID, DiscussionPostAndPosterNames, VOID, {0: $serializer_getInstance_24});
  setMetadataFor(Companion_26, 'Companion', objectMeta);
  setMetadataFor($serializer_25, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(EditAndViewPermission, 'EditAndViewPermission', classMeta, VOID, VOID, EditAndViewPermission, VOID, {0: $serializer_getInstance_25});
  setMetadataFor(Companion_27, 'Companion', objectMeta);
  setMetadataFor($serializer_26, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(EnrolmentRequestAndCoursePic, 'EnrolmentRequestAndCoursePic', classMeta, VOID, VOID, EnrolmentRequestAndCoursePic, VOID, {0: $serializer_getInstance_26});
  setMetadataFor(EnrolmentRequestAndPersonDetails, 'EnrolmentRequestAndPersonDetails', classMeta, VOID, VOID, EnrolmentRequestAndPersonDetails);
  setMetadataFor(Companion_28, 'Companion', objectMeta);
  setMetadataFor($serializer_27, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(MessageAndOtherPerson, 'MessageAndOtherPerson', classMeta, VOID, VOID, MessageAndOtherPerson, VOID, {0: $serializer_getInstance_27});
  setMetadataFor(Companion_29, 'Companion', objectMeta);
  setMetadataFor($serializer_28, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(OfflineItemAndState, 'OfflineItemAndState', classMeta, VOID, VOID, OfflineItemAndState, VOID, {0: $serializer_getInstance_28});
  setMetadataFor(Companion_30, 'Companion', objectMeta);
  setMetadataFor($serializer_29, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PermissionPair, 'PermissionPair', classMeta, VOID, VOID, PermissionPair, VOID, {0: $serializer_getInstance_29});
  setMetadataFor(Companion_31, 'Companion', objectMeta);
  setMetadataFor($serializer_30, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PermissionTriple, 'PermissionTriple', classMeta, VOID, VOID, PermissionTriple, VOID, {0: $serializer_getInstance_30});
  setMetadataFor(Companion_32, 'Companion', objectMeta);
  setMetadataFor($serializer_31, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonAndClazzLogAttendanceRecord, 'PersonAndClazzLogAttendanceRecord', classMeta, VOID, VOID, PersonAndClazzLogAttendanceRecord, VOID, {0: $serializer_getInstance_31});
  setMetadataFor(Companion_33, 'Companion', objectMeta);
  setMetadataFor($serializer_32, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonAndClazzMemberListDetails, 'PersonAndClazzMemberListDetails', classMeta, VOID, VOID, PersonAndClazzMemberListDetails, VOID, {0: $serializer_getInstance_32});
  setMetadataFor(PersonAndListDisplayDetails, 'PersonAndListDisplayDetails', classMeta, VOID, VOID, PersonAndListDisplayDetails);
  setMetadataFor(Companion_34, 'Companion', objectMeta);
  setMetadataFor($serializer_33, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonAndPicture, 'PersonAndPicture', classMeta, VOID, VOID, PersonAndPicture, VOID, {0: $serializer_getInstance_33});
  setMetadataFor(Companion_35, 'Companion', objectMeta);
  setMetadataFor($serializer_34, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonAndPictureAndNumAttempts, 'PersonAndPictureAndNumAttempts', classMeta, VOID, VOID, PersonAndPictureAndNumAttempts, VOID, {0: $serializer_getInstance_34});
  setMetadataFor(AttemptsPersonListConst, 'AttemptsPersonListConst', objectMeta);
  setMetadataFor(Companion_36, 'Companion', objectMeta);
  setMetadataFor($serializer_35, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonNames, 'PersonNames', classMeta, VOID, VOID, PersonNames, VOID, {0: $serializer_getInstance_35});
  setMetadataFor(SiteTermsAndLangName, 'SiteTermsAndLangName', classMeta);
  setMetadataFor(Companion_37, 'Companion', objectMeta);
  setMetadataFor($serializer_36, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(StudentAndBlockStatuses, 'StudentAndBlockStatuses', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_36});
  setMetadataFor(Companion_38, 'Companion', objectMeta);
  setMetadataFor($serializer_37, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(SubmissionAndFiles, 'SubmissionAndFiles', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_37});
  setMetadataFor(Companion_39, 'Companion', objectMeta);
  setMetadataFor($serializer_38, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(TransferJobAndTotals, 'TransferJobAndTotals', classMeta, VOID, VOID, TransferJobAndTotals, VOID, {0: $serializer_getInstance_38});
  setMetadataFor(Companion_40, 'Companion', objectMeta);
  setMetadataFor(TransferJobItemStatus, 'TransferJobItemStatus', classMeta, Enum);
  setMetadataFor(Companion_41, 'Companion', objectMeta);
  setMetadataFor($serializer_39, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(SessionTimeAndProgressInfo, 'SessionTimeAndProgressInfo', classMeta, VOID, VOID, SessionTimeAndProgressInfo, VOID, {0: $serializer_getInstance_39});
  setMetadataFor(SessionTimeAndProgressInfoConst, 'SessionTimeAndProgressInfoConst', objectMeta);
  setMetadataFor(Companion_42, 'Companion', objectMeta);
  setMetadataFor($serializer_40, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(StatementEntityAndVerb, 'StatementEntityAndVerb', classMeta, VOID, VOID, StatementEntityAndVerb, VOID, {0: $serializer_getInstance_40});
  setMetadataFor(StatementConst, 'StatementConst', objectMeta);
  setMetadataFor(Companion_43, 'Companion', objectMeta);
  setMetadataFor($serializer_41, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(VerbEntityAndName, 'VerbEntityAndName', classMeta, VOID, VOID, VerbEntityAndName, VOID, {0: $serializer_getInstance_41});
  setMetadataFor(Companion_44, 'Companion', objectMeta);
  setMetadataFor($serializer_42, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(AssignmentProgressSummary, 'AssignmentProgressSummary', classMeta, VOID, VOID, AssignmentProgressSummary, VOID, {0: $serializer_getInstance_42});
  setMetadataFor(Companion_45, 'Companion', objectMeta);
  setMetadataFor($serializer_43, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(AssignmentSubmitterAndAllocations, 'AssignmentSubmitterAndAllocations', classMeta, VOID, VOID, AssignmentSubmitterAndAllocations, VOID, {0: $serializer_getInstance_43});
  setMetadataFor(Companion_46, 'Companion', objectMeta);
  setMetadataFor($serializer_44, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(AssignmentSubmitterSummary, 'AssignmentSubmitterSummary', classMeta, VOID, VOID, AssignmentSubmitterSummary, VOID, {0: $serializer_getInstance_44});
  setMetadataFor(Companion_47, 'Companion', objectMeta);
  setMetadataFor($serializer_45, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(AverageCourseAssignmentMark, 'AverageCourseAssignmentMark', classMeta, VOID, VOID, AverageCourseAssignmentMark, VOID, {0: $serializer_getInstance_45});
  setMetadataFor(Companion_48, 'Companion', objectMeta);
  setMetadataFor(CacheLockJoin, 'CacheLockJoin', classMeta);
  setMetadataFor(Companion_49, 'Companion', objectMeta);
  setMetadataFor($serializer_46, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(Clazz, 'Clazz', classMeta, VOID, VOID, Clazz, VOID, {0: $serializer_getInstance_46});
  setMetadataFor(Companion_50, 'Companion', objectMeta);
  setMetadataFor($serializer_47, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzAssignment, 'ClazzAssignment', classMeta, VOID, VOID, ClazzAssignment, VOID, {0: $serializer_getInstance_47});
  setMetadataFor(Companion_51, 'Companion', objectMeta);
  setMetadataFor($serializer_48, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzAssignmentCourseBlockAndSubmitterUid, 'ClazzAssignmentCourseBlockAndSubmitterUid', classMeta, VOID, VOID, ClazzAssignmentCourseBlockAndSubmitterUid, VOID, {0: $serializer_getInstance_48});
  setMetadataFor(Companion_52, 'Companion', objectMeta);
  setMetadataFor($serializer_49, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzEnrolment, 'ClazzEnrolment', classMeta, VOID, VOID, ClazzEnrolment, VOID, {0: $serializer_getInstance_49});
  setMetadataFor(Companion_53, 'Companion', objectMeta);
  setMetadataFor($serializer_50, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzEnrolmentWithLeavingReason, 'ClazzEnrolmentWithLeavingReason', classMeta, ClazzEnrolment, VOID, ClazzEnrolmentWithLeavingReason, VOID, {0: $serializer_getInstance_50});
  setMetadataFor(Companion_54, 'Companion', objectMeta);
  setMetadataFor($serializer_51, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzInvite, 'ClazzInvite', classMeta, VOID, VOID, ClazzInvite, VOID, {0: $serializer_getInstance_51});
  setMetadataFor(Companion_55, 'Companion', objectMeta);
  setMetadataFor($serializer_52, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzLog, 'ClazzLog', classMeta, VOID, VOID, ClazzLog, VOID, {0: $serializer_getInstance_52});
  setMetadataFor(Companion_56, 'Companion', objectMeta);
  setMetadataFor($serializer_53, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzLogAttendanceRecord, 'ClazzLogAttendanceRecord', classMeta, VOID, VOID, ClazzLogAttendanceRecord, VOID, {0: $serializer_getInstance_53});
  setMetadataFor(Companion_57, 'Companion', objectMeta);
  setMetadataFor($serializer_54, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzWithHolidayCalendarAndAndTerminology, 'ClazzWithHolidayCalendarAndAndTerminology', classMeta, Clazz, VOID, ClazzWithHolidayCalendarAndAndTerminology, VOID, {0: $serializer_getInstance_54});
  setMetadataFor(Companion_58, 'Companion', objectMeta);
  setMetadataFor($serializer_55, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ClazzWithListDisplayDetails, 'ClazzWithListDisplayDetails', classMeta, Clazz, VOID, ClazzWithListDisplayDetails, VOID, {0: $serializer_getInstance_55});
  setMetadataFor(Companion_59, 'Companion', objectMeta);
  setMetadataFor($serializer_56, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(Comments, 'Comments', classMeta, VOID, VOID, Comments, VOID, {0: $serializer_getInstance_56});
  setMetadataFor(Companion_60, 'Companion', objectMeta);
  setMetadataFor($serializer_57, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentCategory, 'ContentCategory', classMeta, VOID, VOID, ContentCategory, VOID, {0: $serializer_getInstance_57});
  setMetadataFor(Companion_61, 'Companion', objectMeta);
  setMetadataFor($serializer_58, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentCategorySchema, 'ContentCategorySchema', classMeta, VOID, VOID, ContentCategorySchema, VOID, {0: $serializer_getInstance_58});
  setMetadataFor(Companion_62, 'Companion', objectMeta);
  setMetadataFor($serializer_59, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntry, 'ContentEntry', classMeta, VOID, VOID, ContentEntry, VOID, {0: $serializer_getInstance_59});
  setMetadataFor(ContentEntryButtonModel, 'ContentEntryButtonModel', classMeta, VOID, VOID, ContentEntryButtonModel);
  setMetadataFor(Companion_63, 'Companion', objectMeta);
  setMetadataFor($serializer_60, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryContentCategoryJoin, 'ContentEntryContentCategoryJoin', classMeta, VOID, VOID, ContentEntryContentCategoryJoin, VOID, {0: $serializer_getInstance_60});
  setMetadataFor(Companion_64, 'Companion', objectMeta);
  setMetadataFor($serializer_61, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryImportJob, 'ContentEntryImportJob', classMeta, VOID, VOID, ContentEntryImportJob, VOID, {0: $serializer_getInstance_61});
  setMetadataFor(Companion_65, 'Companion', objectMeta);
  setMetadataFor($serializer_62, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryParentChildJoin, 'ContentEntryParentChildJoin', classMeta, VOID, VOID, ContentEntryParentChildJoin, VOID, {0: $serializer_getInstance_62});
  setMetadataFor(Companion_66, 'Companion', objectMeta);
  setMetadataFor($serializer_63, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryPicture, 'ContentEntryPicture', classMeta, VOID, VOID, ContentEntryPicture, VOID, {0: $serializer_getInstance_63});
  setMetadataFor(Companion_67, 'Companion', objectMeta);
  setMetadataFor($serializer_64, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryPicture2, 'ContentEntryPicture2', classMeta, VOID, VOID, ContentEntryPicture2, VOID, {0: $serializer_getInstance_64});
  setMetadataFor(Companion_68, 'Companion', objectMeta);
  setMetadataFor($serializer_65, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryRelatedEntryJoin, 'ContentEntryRelatedEntryJoin', classMeta, VOID, VOID, ContentEntryRelatedEntryJoin, VOID, {0: $serializer_getInstance_65});
  setMetadataFor(Companion_69, 'Companion', objectMeta);
  setMetadataFor($serializer_66, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryRelatedEntryJoinWithLanguage, 'ContentEntryRelatedEntryJoinWithLanguage', classMeta, ContentEntryRelatedEntryJoin, VOID, ContentEntryRelatedEntryJoinWithLanguage, VOID, {0: $serializer_getInstance_66});
  setMetadataFor(Companion_70, 'Companion', objectMeta);
  setMetadataFor($serializer_67, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryStatementScoreProgress, 'ContentEntryStatementScoreProgress', classMeta, VOID, VOID, ContentEntryStatementScoreProgress, VOID, {0: $serializer_getInstance_67});
  setMetadataFor(Companion_71, 'Companion', objectMeta);
  setMetadataFor($serializer_68, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryVersion, 'ContentEntryVersion', classMeta, VOID, VOID, ContentEntryVersion, VOID, {0: $serializer_getInstance_68});
  setMetadataFor(Companion_72, 'Companion', objectMeta);
  setMetadataFor($serializer_69, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentEntryWithLanguage, 'ContentEntryWithLanguage', classMeta, ContentEntry, VOID, ContentEntryWithLanguage, VOID, {0: $serializer_getInstance_69});
  setMetadataFor(Companion_73, 'Companion', objectMeta);
  setMetadataFor($serializer_70, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ContentJob, 'ContentJob', classMeta, VOID, VOID, ContentJob, VOID, {0: $serializer_getInstance_70});
  setMetadataFor(Companion_74, 'Companion', objectMeta);
  setMetadataFor($serializer_71, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseAssignmentMark, 'CourseAssignmentMark', classMeta, VOID, VOID, CourseAssignmentMark, VOID, {0: $serializer_getInstance_71});
  setMetadataFor(Companion_75, 'Companion', objectMeta);
  setMetadataFor($serializer_72, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseAssignmentSubmission, 'CourseAssignmentSubmission', classMeta, VOID, VOID, CourseAssignmentSubmission, VOID, {0: $serializer_getInstance_72});
  setMetadataFor(Companion_76, 'Companion', objectMeta);
  setMetadataFor($serializer_73, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseAssignmentSubmissionFile, 'CourseAssignmentSubmissionFile', classMeta, VOID, VOID, CourseAssignmentSubmissionFile, VOID, {0: $serializer_getInstance_73});
  setMetadataFor(Companion_77, 'Companion', objectMeta);
  setMetadataFor($serializer_74, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseBlock, 'CourseBlock', classMeta, VOID, VOID, CourseBlock, VOID, {0: $serializer_getInstance_74});
  setMetadataFor(Companion_78, 'Companion', objectMeta);
  setMetadataFor($serializer_75, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseBlockPicture, 'CourseBlockPicture', classMeta, VOID, VOID, CourseBlockPicture, VOID, {0: $serializer_getInstance_75});
  setMetadataFor(Companion_79, 'Companion', objectMeta);
  setMetadataFor($serializer_76, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseGroupMember, 'CourseGroupMember', classMeta, VOID, VOID, CourseGroupMember, VOID, {0: $serializer_getInstance_76});
  setMetadataFor(Companion_80, 'Companion', objectMeta);
  setMetadataFor($serializer_77, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseGroupMemberAndName, 'CourseGroupMemberAndName', classMeta, VOID, VOID, CourseGroupMemberAndName, VOID, {0: $serializer_getInstance_77});
  setMetadataFor(Companion_81, 'Companion', objectMeta);
  setMetadataFor($serializer_78, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseGroupSet, 'CourseGroupSet', classMeta, VOID, VOID, CourseGroupSet, VOID, {0: $serializer_getInstance_78});
  setMetadataFor(Companion_82, 'Companion', objectMeta);
  setMetadataFor($serializer_79, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CoursePermission, 'CoursePermission', classMeta, VOID, VOID, CoursePermission, VOID, {0: $serializer_getInstance_79});
  setMetadataFor(Companion_83, 'Companion', objectMeta);
  setMetadataFor($serializer_80, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CoursePicture, 'CoursePicture', classMeta, VOID, VOID, CoursePicture, VOID, {0: $serializer_getInstance_80});
  setMetadataFor(Companion_84, 'Companion', objectMeta);
  setMetadataFor($serializer_81, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(CourseTerminology, 'CourseTerminology', classMeta, VOID, VOID, CourseTerminology, VOID, {0: $serializer_getInstance_81});
  setMetadataFor(Companion_85, 'Companion', objectMeta);
  setMetadataFor($serializer_82, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(DeletedItem, 'DeletedItem', classMeta, VOID, VOID, DeletedItem, VOID, {0: $serializer_getInstance_82});
  setMetadataFor(Companion_86, 'Companion', objectMeta);
  setMetadataFor($serializer_83, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(DiscussionPost, 'DiscussionPost', classMeta, VOID, VOID, DiscussionPost, VOID, {0: $serializer_getInstance_83});
  setMetadataFor(Companion_87, 'Companion', objectMeta);
  setMetadataFor($serializer_84, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(DiscussionPostWithDetails, 'DiscussionPostWithDetails', classMeta, DiscussionPost, VOID, DiscussionPostWithDetails, VOID, {0: $serializer_getInstance_84});
  setMetadataFor(Companion_88, 'Companion', objectMeta);
  setMetadataFor($serializer_85, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(EnrolmentRequest, 'EnrolmentRequest', classMeta, VOID, VOID, EnrolmentRequest, VOID, {0: $serializer_getInstance_85});
  setMetadataFor(ErrorReport, 'ErrorReport', classMeta, VOID, VOID, ErrorReport);
  setMetadataFor(Companion_89, 'Companion', objectMeta);
  setMetadataFor($serializer_86, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ExternalAppPermission, 'ExternalAppPermission', classMeta, VOID, VOID, ExternalAppPermission, VOID, {0: $serializer_getInstance_86});
  setMetadataFor(Companion_90, 'Companion', objectMeta);
  setMetadataFor($serializer_87, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(Holiday, 'Holiday', classMeta, VOID, VOID, Holiday, VOID, {0: $serializer_getInstance_87});
  setMetadataFor(Companion_91, 'Companion', objectMeta);
  setMetadataFor($serializer_88, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(HolidayCalendar, 'HolidayCalendar', classMeta, VOID, VOID, HolidayCalendar, VOID, {0: $serializer_getInstance_88});
  setMetadataFor(Companion_92, 'Companion', objectMeta);
  setMetadataFor($serializer_89, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(HolidayCalendarWithNumEntries, 'HolidayCalendarWithNumEntries', classMeta, HolidayCalendar, VOID, HolidayCalendarWithNumEntries, VOID, {0: $serializer_getInstance_89});
  setMetadataFor(Companion_93, 'Companion', objectMeta);
  setMetadataFor($serializer_90, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(Language, 'Language', classMeta, VOID, VOID, Language, VOID, {0: $serializer_getInstance_90});
  setMetadataFor(Companion_94, 'Companion', objectMeta);
  setMetadataFor($serializer_91, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(LanguageVariant, 'LanguageVariant', classMeta, VOID, VOID, LanguageVariant, VOID, {0: $serializer_getInstance_91});
  setMetadataFor(Companion_95, 'Companion', objectMeta);
  setMetadataFor($serializer_92, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(LeavingReason, 'LeavingReason', classMeta, VOID, VOID, LeavingReason, VOID, {0: $serializer_getInstance_92});
  setMetadataFor(Companion_96, 'Companion', objectMeta);
  setMetadataFor($serializer_93, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(Message, 'Message', classMeta, VOID, VOID, Message, VOID, {0: $serializer_getInstance_93});
  setMetadataFor(Companion_97, 'Companion', objectMeta);
  setMetadataFor($serializer_94, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(OfflineItem, 'OfflineItem', classMeta, VOID, VOID, OfflineItem, VOID, {0: $serializer_getInstance_94});
  setMetadataFor(Companion_98, 'Companion', objectMeta);
  setMetadataFor($serializer_95, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PeerReviewerAllocation, 'PeerReviewerAllocation', classMeta, VOID, VOID, PeerReviewerAllocation, VOID, {0: $serializer_getInstance_95});
  setMetadataFor(Companion_99, 'Companion', objectMeta);
  setMetadataFor($serializer_96, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(Person, 'Person', classMeta, VOID, VOID, Person, VOID, {0: $serializer_getInstance_96});
  setMetadataFor(Companion_100, 'Companion', objectMeta);
  setMetadataFor($serializer_97, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonAndDisplayDetail, 'PersonAndDisplayDetail', classMeta, VOID, VOID, PersonAndDisplayDetail, VOID, {0: $serializer_getInstance_97});
  setMetadataFor(Companion_101, 'Companion', objectMeta);
  setMetadataFor($serializer_98, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonAuth, 'PersonAuth', classMeta, VOID, VOID, PersonAuth, VOID, {0: $serializer_getInstance_98});
  setMetadataFor(Companion_102, 'Companion', objectMeta);
  setMetadataFor($serializer_99, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonAuth2, 'PersonAuth2', classMeta, VOID, VOID, PersonAuth2, VOID, {0: $serializer_getInstance_99});
  setMetadataFor(Companion_103, 'Companion', objectMeta);
  setMetadataFor($serializer_100, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonGroup, 'PersonGroup', classMeta, VOID, VOID, PersonGroup, VOID, {0: $serializer_getInstance_100});
  setMetadataFor(Companion_104, 'Companion', objectMeta);
  setMetadataFor($serializer_101, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonGroupMember, 'PersonGroupMember', classMeta, VOID, VOID, PersonGroupMember, VOID, {0: $serializer_getInstance_101});
  setMetadataFor(Companion_105, 'Companion', objectMeta);
  setMetadataFor($serializer_102, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonParentJoin, 'PersonParentJoin', classMeta, VOID, VOID, PersonParentJoin, VOID, {0: $serializer_getInstance_102});
  setMetadataFor(Companion_106, 'Companion', objectMeta);
  setMetadataFor($serializer_103, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonParentJoinAndMinorPerson, 'PersonParentJoinAndMinorPerson', classMeta, VOID, VOID, PersonParentJoinAndMinorPerson, VOID, {0: $serializer_getInstance_103});
  setMetadataFor(Companion_107, 'Companion', objectMeta);
  setMetadataFor($serializer_104, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonPasskey, 'PersonPasskey', classMeta, VOID, VOID, PersonPasskey, VOID, {0: $serializer_getInstance_104});
  setMetadataFor(Companion_108, 'Companion', objectMeta);
  setMetadataFor($serializer_105, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(PersonPicture, 'PersonPicture', classMeta, VOID, VOID, PersonPicture, VOID, {0: $serializer_getInstance_105});
  setMetadataFor(Companion_109, 'Companion', objectMeta);
  setMetadataFor($serializer_106, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(Report, 'Report', classMeta, VOID, VOID, Report, VOID, {0: $serializer_getInstance_106});
  setMetadataFor(Companion_110, 'Companion', objectMeta);
  setMetadataFor($serializer_107, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ReportFilter, 'ReportFilter', classMeta, VOID, VOID, ReportFilter, VOID, {0: $serializer_getInstance_107});
  setMetadataFor(Companion_111, 'Companion', objectMeta);
  setMetadataFor(Companion_112, 'Companion', objectMeta);
  setMetadataFor($serializer_108, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(Schedule, 'Schedule', classMeta, VOID, VOID, Schedule, VOID, {0: $serializer_getInstance_108});
  setMetadataFor(Companion_113, 'Companion', objectMeta);
  setMetadataFor($serializer_109, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ScopedGrant, 'ScopedGrant', classMeta, VOID, VOID, ScopedGrant, VOID, {0: $serializer_getInstance_109});
  setMetadataFor(Companion_114, 'Companion', objectMeta);
  setMetadataFor($serializer_110, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(Site, 'Site', classMeta, VOID, VOID, Site, VOID, {0: $serializer_getInstance_110});
  setMetadataFor(Companion_115, 'Companion', objectMeta);
  setMetadataFor($serializer_111, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(SiteTerms, 'SiteTerms', classMeta, VOID, VOID, SiteTerms, VOID, {0: $serializer_getInstance_111});
  setMetadataFor(Companion_116, 'Companion', objectMeta);
  setMetadataFor($serializer_112, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(SiteTermsWithLanguage, 'SiteTermsWithLanguage', classMeta, SiteTerms, VOID, SiteTermsWithLanguage, VOID, {0: $serializer_getInstance_112});
  setMetadataFor(Companion_117, 'Companion', objectMeta);
  setMetadataFor($serializer_113, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(StudentResult, 'StudentResult', classMeta, VOID, VOID, StudentResult, VOID, {0: $serializer_getInstance_113});
  setMetadataFor(Companion_118, 'Companion', objectMeta);
  setMetadataFor($serializer_114, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(SystemPermission, 'SystemPermission', classMeta, VOID, VOID, SystemPermission, VOID, {0: $serializer_getInstance_114});
  setMetadataFor(Companion_119, 'Companion', objectMeta);
  setMetadataFor($serializer_115, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(TransferJob, 'TransferJob', classMeta, VOID, VOID, TransferJob, VOID, {0: $serializer_getInstance_115});
  setMetadataFor(Companion_120, 'Companion', objectMeta);
  setMetadataFor($serializer_116, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(TransferJobError, 'TransferJobError', classMeta, VOID, VOID, TransferJobError, VOID, {0: $serializer_getInstance_116});
  setMetadataFor(Companion_121, 'Companion', objectMeta);
  setMetadataFor($serializer_117, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(TransferJobItem, 'TransferJobItem', classMeta, VOID, VOID, TransferJobItem, VOID, {0: $serializer_getInstance_117});
  setMetadataFor(Companion_122, 'Companion', objectMeta);
  setMetadataFor($serializer_118, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(UidAndLabel, 'UidAndLabel', classMeta, VOID, VOID, UidAndLabel, VOID, {0: $serializer_getInstance_118});
  setMetadataFor(Companion_123, 'Companion', objectMeta);
  setMetadataFor($serializer_119, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(UmAccount, 'UmAccount', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_119});
  setMetadataFor(Companion_124, 'Companion', objectMeta);
  setMetadataFor($serializer_120, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(UserSession, 'UserSession', classMeta, VOID, VOID, UserSession, VOID, {0: $serializer_getInstance_120});
  setMetadataFor(UserSessionAndPerson, 'UserSessionAndPerson', classMeta, VOID, VOID, UserSessionAndPerson);
  setMetadataFor(Companion_125, 'Companion', objectMeta);
  setMetadataFor($serializer_121, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ActivityEntity, 'ActivityEntity', classMeta, VOID, VOID, ActivityEntity, VOID, {0: $serializer_getInstance_121});
  setMetadataFor(Companion_126, 'Companion', objectMeta);
  setMetadataFor(ActivityExtensionEntity, 'ActivityExtensionEntity', classMeta, VOID, VOID, ActivityExtensionEntity);
  setMetadataFor(Companion_127, 'Companion', objectMeta);
  setMetadataFor($serializer_122, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ActivityInteractionEntity, 'ActivityInteractionEntity', classMeta, VOID, VOID, ActivityInteractionEntity, VOID, {0: $serializer_getInstance_122});
  setMetadataFor(Companion_128, 'Companion', objectMeta);
  setMetadataFor($serializer_123, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ActivityLangMapEntry, 'ActivityLangMapEntry', classMeta, VOID, VOID, ActivityLangMapEntry, VOID, {0: $serializer_getInstance_123});
  setMetadataFor(Companion_129, 'Companion', objectMeta);
  setMetadataFor($serializer_124, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(ActorEntity, 'ActorEntity', classMeta, VOID, VOID, ActorEntity, VOID, {0: $serializer_getInstance_124});
  setMetadataFor(Companion_130, 'Companion', objectMeta);
  setMetadataFor($serializer_125, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(GroupMemberActorJoin, 'GroupMemberActorJoin', classMeta, VOID, VOID, GroupMemberActorJoin, VOID, {0: $serializer_getInstance_125});
  setMetadataFor(Companion_131, 'Companion', objectMeta);
  setMetadataFor($serializer_126, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(StateDeleteCommand, 'StateDeleteCommand', classMeta, VOID, VOID, StateDeleteCommand, VOID, {0: $serializer_getInstance_126});
  setMetadataFor(Companion_132, 'Companion', objectMeta);
  setMetadataFor($serializer_127, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(StateEntity, 'StateEntity', classMeta, VOID, VOID, StateEntity, VOID, {0: $serializer_getInstance_127});
  setMetadataFor(Companion_133, 'Companion', objectMeta);
  setMetadataFor(StatementContextActivityJoin, 'StatementContextActivityJoin', classMeta, VOID, VOID, StatementContextActivityJoin);
  setMetadataFor(Companion_134, 'Companion', objectMeta);
  setMetadataFor($serializer_128, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(StatementEntity, 'StatementEntity', classMeta, VOID, VOID, StatementEntity, VOID, {0: $serializer_getInstance_128});
  setMetadataFor(Companion_135, 'Companion', objectMeta);
  setMetadataFor($serializer_129, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(StatementEntityJson, 'StatementEntityJson', classMeta, VOID, VOID, StatementEntityJson, VOID, {0: $serializer_getInstance_129});
  setMetadataFor(Companion_136, 'Companion', objectMeta);
  setMetadataFor($serializer_130, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(VerbEntity, 'VerbEntity', classMeta, VOID, VOID, VerbEntity, VOID, {0: $serializer_getInstance_130});
  setMetadataFor(Companion_137, 'Companion', objectMeta);
  setMetadataFor($serializer_131, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(VerbLangMapEntry, 'VerbLangMapEntry', classMeta, VOID, VOID, VerbLangMapEntry, VOID, {0: $serializer_getInstance_131});
  setMetadataFor(XapiEntityObjectTypeFlags, 'XapiEntityObjectTypeFlags', objectMeta);
  setMetadataFor(Companion_138, 'Companion', objectMeta);
  setMetadataFor($serializer_132, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
  setMetadataFor(XapiSessionEntity, 'XapiSessionEntity', classMeta, VOID, VOID, XapiSessionEntity, VOID, {0: $serializer_getInstance_132});
  //endregion
  function UmAppDatabase() {
    RoomDatabase.call(this);
  }
  function UmAppDatabaseJsImplementations() {
    UmAppDatabaseJsImplementations_instance = this;
    DoorJsImplClasses.call(this);
    this.f7g_1 = getKClass(UmAppDatabase);
    this.g7g_1 = getKClass(UmAppDatabase_JdbcImpl);
    this.h7g_1 = getKClass(UmAppDatabase_DoorWrapper);
    this.i7g_1 = getKClass(UmAppDatabase_Repo);
    this.j7g_1 = new UmAppDatabase_DoorMetadata();
  }
  protoOf(UmAppDatabaseJsImplementations).b6y = function () {
    return this.f7g_1;
  };
  protoOf(UmAppDatabaseJsImplementations).c6y = function () {
    return this.g7g_1;
  };
  protoOf(UmAppDatabaseJsImplementations).e6y = function () {
    return this.h7g_1;
  };
  protoOf(UmAppDatabaseJsImplementations).d6y = function () {
    return this.i7g_1;
  };
  protoOf(UmAppDatabaseJsImplementations).z70 = function () {
    return this.j7g_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('isPersonalAccount', 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, isPersonalAccount, 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, NEW.isPersonalAccount, 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, isPersonalAccount, 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, NEW.isPersonalAccount, 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, isPersonalAccount = NEW.isPersonalAccount, 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('clazzEnrolmentInviteUid', -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, clazzEnrolmentInviteUid) 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), CAST(NEW.clazzEnrolmentInviteUid 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, clazzEnrolmentInviteUid) 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), CAST(NEW.clazzEnrolmentInviteUid 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, clazzEnrolmentInviteUid = NEW.clazzEnrolmentInviteUid '];
    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('ciUid');
    var tmp_72 = listOf_0([new ReplicationFieldMetaData('ciPersonUid', -5, false), new ReplicationFieldMetaData('ciRoleId', -5, false), new ReplicationFieldMetaData('ciClazzUid', -5, false), new ReplicationFieldMetaData('inviteType', 4, false), new ReplicationFieldMetaData('inviteContact', -1, false), new ReplicationFieldMetaData('inviteToken', -1, false), new ReplicationFieldMetaData('inviteStatus', 4, false), new ReplicationFieldMetaData('inviteExpire', -5, false), new ReplicationFieldMetaData('inviteLct', -5, false), new ReplicationFieldMetaData('ciUid', -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 ClazzInvite (ciUid, ciPersonUid, ciRoleId, ciClazzUid, inviteType, inviteContact, inviteToken, inviteStatus, inviteExpire, inviteLct) VALUES( CAST(NEW.ciUid AS BIGINT), CAST(NEW.ciPersonUid AS BIGINT), CAST(NEW.ciRoleId AS BIGINT), CAST(NEW.ciClazzUid AS BIGINT), NEW.inviteType, NEW.inviteContact, NEW.inviteToken, NEW.inviteStatus, CAST(NEW.inviteExpire AS BIGINT), CAST(NEW.inviteLct 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 ClazzInvite (ciUid, ciPersonUid, ciRoleId, ciClazzUid, inviteType, inviteContact, inviteToken, inviteStatus, inviteExpire, inviteLct) VALUES( CAST(NEW.ciUid AS BIGINT), CAST(NEW.ciPersonUid AS BIGINT), CAST(NEW.ciRoleId AS BIGINT), CAST(NEW.ciClazzUid AS BIGINT), NEW.inviteType, NEW.inviteContact, NEW.inviteToken, NEW.inviteStatus, CAST(NEW.inviteExpire AS BIGINT), CAST(NEW.inviteLct AS BIGINT))  ON CONFLICT(ciUid)  DO UPDATE SET ciPersonUid = NEW.ciPersonUid, ciRoleId = NEW.ciRoleId, ciClazzUid = NEW.ciClazzUid, inviteType = NEW.inviteType, inviteContact = NEW.inviteContact, inviteToken = NEW.inviteToken, inviteStatus = NEW.inviteStatus, inviteExpire = NEW.inviteExpire, inviteLct = NEW.inviteLct '];
    var tmp_78 = to(521, new ReplicationEntityMetaData(521, 'ClazzInvite', 'ClazzInvite_ReceiveView', tmp_71, 'inviteLct', tmp_72, 1000, tmp_73, listOf(new Trigger('clazzinvite_remote_insert', tmp_74, tmp_75, tmp_76, tmp_77, tmp$ret$89, 'SELECT \n                   CAST(NEW.inviteLct AS BIGINT) >\n                       COALESCE((SELECT ClazzInvite_Existing.inviteLct\n                                   FROM ClazzInvite ClazzInvite_Existing\n                                  WHERE ClazzInvite_Existing.ciUid = NEW.ciUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.inviteLct AS BIGINT) >\n                       COALESCE((SELECT ClazzInvite_Existing.inviteLct\n                                   FROM ClazzInvite ClazzInvite_Existing\n                                  WHERE ClazzInvite_Existing.ciUid = NEW.ciUid), 0)\n                   '))));
    var tmp_79 = listOf('contentEntryUid');
    var tmp_80 = 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_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 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$98 = ['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_86 = to(42, new ReplicationEntityMetaData(42, 'ContentEntry', 'ContentEntry_ReceiveView', tmp_79, 'contentEntryLct', tmp_80, 1000, tmp_81, listOf(new Trigger('contententry_remote_insert', tmp_82, tmp_83, tmp_84, tmp_85, tmp$ret$98, '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_87 = listOf('ceccjUid');
    var tmp_88 = 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_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 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$107 = ['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_94 = to(3, new ReplicationEntityMetaData(3, 'ContentEntryContentCategoryJoin', 'ContentEntryContentCategoryJoin_ReceiveView', tmp_87, 'ceccjLct', tmp_88, 1000, tmp_89, listOf(new Trigger('contententrycontentcategoryjoin_remote_insert', tmp_90, tmp_91, tmp_92, tmp_93, tmp$ret$107, '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_95 = listOf('cepcjUid');
    var tmp_96 = 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_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 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$116 = ['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_102 = to(7, new ReplicationEntityMetaData(7, 'ContentEntryParentChildJoin', 'ContentEntryParentChildJoin_ReceiveView', tmp_95, 'cepcjLct', tmp_96, 1000, tmp_97, listOf(new Trigger('contententryparentchildjoin_remote_insert', tmp_98, tmp_99, tmp_100, tmp_101, tmp$ret$116, '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_103 = listOf('cerejUid');
    var tmp_104 = 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_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 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$125 = ['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_110 = to(8, new ReplicationEntityMetaData(8, 'ContentEntryRelatedEntryJoin', 'ContentEntryRelatedEntryJoin_ReceiveView', tmp_103, 'cerejLct', tmp_104, 1000, tmp_105, listOf(new Trigger('contententryrelatedentryjoin_remote_insert', tmp_106, tmp_107, tmp_108, tmp_109, tmp$ret$125, '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_111 = listOf('contentCategorySchemaUid');
    var tmp_112 = 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_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 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$134 = ['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_118 = to(2, new ReplicationEntityMetaData(2, 'ContentCategorySchema', 'ContentCategorySchema_ReceiveView', tmp_111, 'contentCategorySchemaLct', tmp_112, 1000, tmp_113, listOf(new Trigger('contentcategoryschema_remote_insert', tmp_114, tmp_115, tmp_116, tmp_117, tmp$ret$134, '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_119 = listOf('contentCategoryUid');
    var tmp_120 = 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_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 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$143 = ['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_126 = to(1, new ReplicationEntityMetaData(1, 'ContentCategory', 'ContentCategory_ReceiveView', tmp_119, 'contentCategoryLct', tmp_120, 1000, tmp_121, listOf(new Trigger('contentcategory_remote_insert', tmp_122, tmp_123, tmp_124, tmp_125, tmp$ret$143, '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_127 = listOf('langUid');
    var tmp_128 = 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_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 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$152 = ['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_134 = to(13, new ReplicationEntityMetaData(13, 'Language', 'Language_ReceiveView', tmp_127, 'langLct', tmp_128, 1000, tmp_129, listOf(new Trigger('language_remote_insert', tmp_130, tmp_131, tmp_132, tmp_133, tmp$ret$152, '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_135 = listOf('langVariantUid');
    var tmp_136 = 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_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 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$161 = ['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_142 = to(10, new ReplicationEntityMetaData(10, 'LanguageVariant', 'LanguageVariant_ReceiveView', tmp_135, 'langVariantLct', tmp_136, 1000, tmp_137, listOf(new Trigger('languagevariant_remote_insert', tmp_138, tmp_139, tmp_140, tmp_141, tmp$ret$161, '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_143 = listOf('groupUid');
    var tmp_144 = 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_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 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$170 = ['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_150 = to(43, new ReplicationEntityMetaData(43, 'PersonGroup', 'PersonGroup_ReceiveView', tmp_143, 'groupLct', tmp_144, 1000, tmp_145, listOf(new Trigger('persongroup_remote_insert', tmp_146, tmp_147, tmp_148, tmp_149, tmp$ret$170, '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_151 = listOf('groupMemberUid');
    var tmp_152 = 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_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 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$179 = ['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_158 = to(44, new ReplicationEntityMetaData(44, 'PersonGroupMember', 'PersonGroupMember_ReceiveView', tmp_151, 'groupMemberLct', tmp_152, 1000, tmp_153, listOf(new Trigger('persongroupmember_remote_insert', tmp_154, tmp_155, tmp_156, tmp_157, tmp$ret$179, '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_159 = listOf('personPictureUid');
    var tmp_160 = 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_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 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$188 = ['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_166 = to(50, new ReplicationEntityMetaData(50, 'PersonPicture', 'PersonPicture_ReceiveView', tmp_159, 'personPictureLct', tmp_160, 1000, tmp_161, listOf(new Trigger('personpicture_remote_insert', tmp_162, tmp_163, tmp_164, tmp_165, tmp$ret$188, '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_167 = listOf('verbUid');
    var tmp_168 = listOf_0([new ReplicationFieldMetaData('verbUid', -5, false), new ReplicationFieldMetaData('verbUrlId', -1, true), new ReplicationFieldMetaData('verbDeleted', 16, false), new ReplicationFieldMetaData('verbLct', -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 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$197 = ['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_174 = to(62, new ReplicationEntityMetaData(62, 'VerbEntity', 'VerbEntity_ReceiveView', tmp_167, 'verbLct', tmp_168, 1000, tmp_169, listOf(new Trigger('verbentity_remote_insert', tmp_170, tmp_171, tmp_172, tmp_173, tmp$ret$197, '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_175 = listOf('actUid');
    var tmp_176 = 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_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 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$206 = ['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_182 = to(64, new ReplicationEntityMetaData(64, 'ActivityEntity', 'ActivityEntity_ReceiveView', tmp_175, 'actLct', tmp_176, 1000, tmp_177, listOf(new Trigger('activityentity_remote_insert', tmp_178, tmp_179, tmp_180, tmp_181, tmp$ret$206, '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_183 = listOf_0(['statementIdHi', 'statementIdLo']);
    var tmp_184 = 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_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 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$215 = ['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_190 = to(60, new ReplicationEntityMetaData(60, 'StatementEntity', 'StatementEntity_ReceiveView', tmp_183, 'statementLct', tmp_184, 1000, tmp_185, listOf(new Trigger('statemententity_remote_insert', tmp_186, tmp_187, tmp_188, tmp_189, tmp$ret$215, '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_191 = listOf('actorUid');
    var tmp_192 = 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_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 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$224 = ['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_198 = to(68, new ReplicationEntityMetaData(68, 'ActorEntity', 'ActorEntity_ReceiveView', tmp_191, 'actorEtag', tmp_192, 1000, tmp_193, listOf(new Trigger('agententity_remote_insert', tmp_194, tmp_195, tmp_196, tmp_197, tmp$ret$224, '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_199 = listOf('commentsUid');
    var tmp_200 = 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_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 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$233 = ['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_206 = to(208, new ReplicationEntityMetaData(208, 'Comments', 'Comments_ReceiveView', tmp_199, 'commentsLct', tmp_200, 1000, tmp_201, listOf(new Trigger('comments_remote_insert', tmp_202, tmp_203, tmp_204, tmp_205, tmp$ret$233, '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_207 = listOf('reportUid');
    var tmp_208 = 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_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 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$242 = ['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_214 = to(101, new ReplicationEntityMetaData(101, 'Report', 'Report_ReceiveView', tmp_207, 'reportLct', tmp_208, 1000, tmp_209, listOf(new Trigger('report_remote_insert', tmp_210, tmp_211, tmp_212, tmp_213, tmp$ret$242, '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_215 = listOf('siteUid');
    var tmp_216 = 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_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 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$251 = ['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_222 = to(189, new ReplicationEntityMetaData(189, 'Site', 'Site_ReceiveView', tmp_215, 'siteLct', tmp_216, 1000, tmp_217, listOf(new Trigger('site_remote_insert', tmp_218, tmp_219, tmp_220, tmp_221, tmp$ret$251, '\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_223 = listOf('sTermsUid');
    var tmp_224 = 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_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 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$260 = ['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_230 = to(272, new ReplicationEntityMetaData(272, 'SiteTerms', 'SiteTerms_ReceiveView', tmp_223, 'sTermsLct', tmp_224, 1000, tmp_225, listOf(new Trigger('siteterms_remote_insert', tmp_226, tmp_227, tmp_228, tmp_229, tmp$ret$260, '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_231 = listOf('ppjUid');
    var tmp_232 = 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_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 = ['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$269 = ['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_238 = to(512, new ReplicationEntityMetaData(512, 'PersonParentJoin', 'PersonParentJoin_ReceiveView', tmp_231, 'ppjLct', tmp_232, 1000, tmp_233, listOf(new Trigger('personparentjoin_remote_insert', tmp_234, tmp_235, tmp_236, tmp_237, tmp$ret$269, '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_239 = listOf('sgUid');
    var tmp_240 = 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_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 = ['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$278 = ['UPDATE ScopedGrant SET sgLct = 0 WHERE sgUid = 0'];
    var tmp_246 = to(48, new ReplicationEntityMetaData(48, 'ScopedGrant', 'ScopedGrant_ReceiveView', tmp_239, 'sgLct', tmp_240, 1000, tmp_241, listOf(new Trigger('sg_remote_insert', tmp_242, tmp_243, tmp_244, tmp_245, tmp$ret$278, '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_247 = listOf('errUid');
    var tmp_248 = 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_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 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$287 = ['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_254 = to(419, new ReplicationEntityMetaData(419, 'ErrorReport', 'ErrorReport_ReceiveView', tmp_247, 'errLct', tmp_248, 1000, tmp_249, listOf(new Trigger('errorreport_remote_insert', tmp_250, tmp_251, tmp_252, tmp_253, tmp$ret$287, '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_255 = listOf('caUid');
    var tmp_256 = 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_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 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$296 = ['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_262 = to(520, new ReplicationEntityMetaData(520, 'ClazzAssignment', 'ClazzAssignment_ReceiveView', tmp_255, 'caLct', tmp_256, 1000, tmp_257, listOf(new Trigger('clazzassignment_remote_insert', tmp_258, tmp_259, tmp_260, tmp_261, tmp$ret$296, '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_263 = listOf('casUid');
    var tmp_264 = 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_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 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$305 = ['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_270 = to(522, new ReplicationEntityMetaData(522, 'CourseAssignmentSubmission', 'CourseAssignmentSubmission_ReceiveView', tmp_263, 'casTimestamp', tmp_264, 1000, tmp_265, listOf(new Trigger('courseassignmentsubmission_remote_insert', tmp_266, tmp_267, tmp_268, tmp_269, tmp$ret$305, '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_271 = listOf('casaUid');
    var tmp_272 = 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_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 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$314 = ['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_278 = to(90, new ReplicationEntityMetaData(90, 'CourseAssignmentSubmissionFile', 'CourseAssignmentSubmissionFile_ReceiveView', tmp_271, 'casaTimestamp', tmp_272, 1000, tmp_273, listOf(new Trigger('courseassignmentsubmissionattachment_remote_insert', tmp_274, tmp_275, tmp_276, tmp_277, tmp$ret$314, '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_279 = listOf('camUid');
    var tmp_280 = 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_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 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$323 = ['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_286 = to(523, new ReplicationEntityMetaData(523, 'CourseAssignmentMark', 'CourseAssignmentMark_ReceiveView', tmp_279, 'camLct', tmp_280, 1000, tmp_281, listOf(new Trigger('courseassignmentmark_remote_insert', tmp_282, tmp_283, tmp_284, tmp_285, tmp$ret$323, '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_287 = listOf('praUid');
    var tmp_288 = 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_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 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$332 = ['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_294 = to(140, new ReplicationEntityMetaData(140, 'PeerReviewerAllocation', 'PeerReviewerAllocation_ReceiveView', tmp_287, 'praLct', tmp_288, 1000, tmp_289, listOf(new Trigger('peerreviewerallocation_remote_insert', tmp_290, tmp_291, tmp_292, tmp_293, tmp$ret$332, '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_295 = listOf('pauthUid');
    var tmp_296 = 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_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 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$341 = ['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_302 = to(678, new ReplicationEntityMetaData(678, 'PersonAuth2', 'PersonAuth2_ReceiveView', tmp_295, 'pauthLct', tmp_296, 1000, tmp_297, listOf(new Trigger('personauth2_remote_insert', tmp_298, tmp_299, tmp_300, tmp_301, tmp$ret$341, '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_303 = listOf('usUid');
    var tmp_304 = 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_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 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$350 = ['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_310 = to(679, new ReplicationEntityMetaData(679, 'UserSession', 'UserSession_ReceiveView', tmp_303, 'usLct', tmp_304, 1000, tmp_305, listOf(new Trigger('usersession_remote_insert', tmp_306, tmp_307, tmp_308, tmp_309, tmp$ret$350, '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_311 = listOf('cjUid');
    var tmp_312 = 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_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 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$359 = ['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_318 = to(702, new ReplicationEntityMetaData(702, 'ContentJob', 'ContentJob_ReceiveView', tmp_311, 'cjLct', tmp_312, 1000, tmp_313, listOf(new Trigger('contentjob_remote_insert', tmp_314, tmp_315, tmp_316, tmp_317, tmp$ret$359, '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_319 = listOf('cbUid');
    var tmp_320 = 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_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 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$368 = ['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_326 = to(124, new ReplicationEntityMetaData(124, 'CourseBlock', 'CourseBlock_ReceiveView', tmp_319, 'cbLct', tmp_320, 1000, tmp_321, listOf(new Trigger('courseblock_remote_insert', tmp_322, tmp_323, tmp_324, tmp_325, tmp$ret$368, '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_327 = listOf('ctUid');
    var tmp_328 = listOf_0([new ReplicationFieldMetaData('ctTitle', -1, true), new ReplicationFieldMetaData('ctTerminology', -1, true), new ReplicationFieldMetaData('ctLct', -5, false), new ReplicationFieldMetaData('ctUid', -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 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$377 = ['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_334 = to(450, new ReplicationEntityMetaData(450, 'CourseTerminology', 'CourseTerminology_ReceiveView', tmp_327, 'ctLct', tmp_328, 1000, tmp_329, listOf(new Trigger('courseterminology_remote_insert', tmp_330, tmp_331, tmp_332, tmp_333, tmp$ret$377, '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_335 = listOf('cgsUid');
    var tmp_336 = 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_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 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$386 = ['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_342 = to(242, new ReplicationEntityMetaData(242, 'CourseGroupSet', 'CourseGroupSet_ReceiveView', tmp_335, 'cgsLct', tmp_336, 1000, tmp_337, listOf(new Trigger('coursegroupset_remote_insert', tmp_338, tmp_339, tmp_340, tmp_341, tmp$ret$386, '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_343 = listOf('cgmUid');
    var tmp_344 = 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_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 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$395 = ['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_350 = to(243, new ReplicationEntityMetaData(243, 'CourseGroupMember', 'CourseGroupMember_ReceiveView', tmp_343, 'cgmLct', tmp_344, 1000, tmp_345, listOf(new Trigger('coursegroupmember_remote_insert', tmp_346, tmp_347, tmp_348, tmp_349, tmp$ret$395, '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_351 = listOf('cepUid');
    var tmp_352 = 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_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 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$404 = ['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_358 = to(138, new ReplicationEntityMetaData(138, 'ContentEntryPicture', 'ContentEntryPicture_ReceiveView', tmp_351, 'cepTimestamp', tmp_352, 1000, tmp_353, listOf(new Trigger('ceppicture_remote_insert', tmp_354, tmp_355, tmp_356, tmp_357, tmp$ret$404, '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_359 = listOf_0(['aieActivityUid', 'aieHash']);
    var tmp_360 = 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_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 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$413 = ['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_366 = to(6401, new ReplicationEntityMetaData(6401, 'ActivityInteractionEntity', 'ActivityInteractionEntity_ReceiveView', tmp_359, 'aieLastMod', tmp_360, 1000, tmp_361, listOf(new Trigger('activityinteractionentity_remote_insert', tmp_362, tmp_363, tmp_364, tmp_365, tmp$ret$413, '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_367 = listOf('coursePictureUid');
    var tmp_368 = 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_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 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$422 = ['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_374 = to(125, new ReplicationEntityMetaData(125, 'CoursePicture', 'CoursePicture_ReceiveView', tmp_367, 'coursePictureLct', tmp_368, 1000, tmp_369, listOf(new Trigger('coursepicture_remote_insert', tmp_370, tmp_371, tmp_372, tmp_373, tmp$ret$422, '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_375 = listOf('discussionPostUid');
    var tmp_376 = 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_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 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$431 = ['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_382 = to(132, new ReplicationEntityMetaData(132, 'DiscussionPost', 'DiscussionPost_ReceiveView', tmp_375, 'discussionPostLct', tmp_376, 1000, tmp_377, listOf(new Trigger('discussionpost_remote_insert', tmp_378, tmp_379, tmp_380, tmp_381, tmp$ret$431, '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_383 = listOf('messageUid');
    var tmp_384 = 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_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 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$440 = ['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_390 = to(126, new ReplicationEntityMetaData(126, 'Message', 'Message_ReceiveView', tmp_383, 'messageLct', tmp_384, 1000, tmp_385, listOf(new Trigger('message_remote_insert', tmp_386, tmp_387, tmp_388, tmp_389, tmp$ret$440, '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_391 = listOf('srUid');
    var tmp_392 = 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_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 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$449 = ['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_398 = to(471, new ReplicationEntityMetaData(471, 'StudentResult', 'StudentResult_ReceiveView', tmp_391, 'srLastModified', tmp_392, 1000, tmp_393, listOf(new Trigger('studentresult_remote_insert', tmp_394, tmp_395, tmp_396, tmp_397, tmp$ret$449, '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_399 = listOf('cevUid');
    var tmp_400 = 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_401 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_402 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_403 = [Event_INSERT_getInstance()];
    var tmp_404 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_405 = ['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$458 = ['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_406 = new Trigger('content_entry_version_remote_ins', tmp_402, tmp_403, tmp_404, tmp_405, tmp$ret$458, '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_407 = Order_AFTER_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_ENTITY_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_410 = ['\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$467 = ['\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_411 = to(738, new ReplicationEntityMetaData(738, 'ContentEntryVersion', 'ContentEntryVersion_ReceiveView', tmp_399, 'cevLct', tmp_400, 1000, tmp_401, listOf_0([tmp_406, new Trigger('content_entry_version_offline_item', tmp_407, tmp_408, tmp_409, tmp_410, tmp$ret$467, '\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_412 = listOf('oiUid');
    var tmp_413 = 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_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 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$476 = ['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_419 = to(971, new ReplicationEntityMetaData(971, 'OfflineItem', 'OfflineItem_ReceiveView', tmp_412, 'oiLct', tmp_413, 1000, tmp_414, listOf(new Trigger('offline_item_remote_ins', tmp_415, tmp_416, tmp_417, tmp_418, tmp$ret$476, '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_420 = listOf('delItemUid');
    var tmp_421 = 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_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 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$485 = ['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_427 = to(999, new ReplicationEntityMetaData(999, 'DeletedItem', 'DeletedItem_ReceiveView', tmp_420, 'delItemLastModTime', tmp_421, 1000, tmp_422, listOf(new Trigger('deleteditem_remote_insert', tmp_423, tmp_424, tmp_425, tmp_426, tmp$ret$485, '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_428 = listOf('erUid');
    var tmp_429 = 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_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 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$494 = ['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_435 = to(10070, new ReplicationEntityMetaData(10070, 'EnrolmentRequest', 'EnrolmentRequest_ReceiveView', tmp_428, 'erLastModified', tmp_429, 1000, tmp_430, listOf(new Trigger('enrolmentrequest_remote_insert', tmp_431, tmp_432, tmp_433, tmp_434, tmp$ret$494, '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_436 = listOf('cpUid');
    var tmp_437 = 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_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 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$503 = ['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_443 = to(10012, new ReplicationEntityMetaData(10012, 'CoursePermission', 'CoursePermission_ReceiveView', tmp_436, 'cpLastModified', tmp_437, 1000, tmp_438, listOf(new Trigger('coursepermission_remote_insert', tmp_439, tmp_440, tmp_441, tmp_442, tmp$ret$503, '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_444 = listOf('spUid');
    var tmp_445 = 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_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 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$512 = ['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_451 = to(10011, new ReplicationEntityMetaData(10011, 'SystemPermission', 'SystemPermission_ReceiveView', tmp_444, 'spLastModified', tmp_445, 1000, tmp_446, listOf(new Trigger('systempermission_remote_insert', tmp_447, tmp_448, tmp_449, tmp_450, tmp$ret$512, '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_452 = listOf('cbpUid');
    var tmp_453 = listOf_0([new ReplicationFieldMetaData('cbpUid', -5, false), new ReplicationFieldMetaData('cbpLct', -5, false), new ReplicationFieldMetaData('cbpPictureUri', -1, true), new ReplicationFieldMetaData('cbpThumbnailUri', -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 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$521 = ['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_459 = to(6677, new ReplicationEntityMetaData(6677, 'CourseBlockPicture', 'CourseBlockPicture_ReceiveView', tmp_452, 'cbpLct', tmp_453, 1000, tmp_454, listOf(new Trigger('courseblockpicture_remote_insert', tmp_455, tmp_456, tmp_457, tmp_458, tmp$ret$521, '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_460 = listOf('cepUid');
    var tmp_461 = listOf_0([new ReplicationFieldMetaData('cepUid', -5, false), new ReplicationFieldMetaData('cepLct', -5, false), new ReplicationFieldMetaData('cepPictureUri', -1, true), new ReplicationFieldMetaData('cepThumbnailUri', -1, true)]);
    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 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$530 = ['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_467 = to(6678, new ReplicationEntityMetaData(6678, 'ContentEntryPicture2', 'ContentEntryPicture2_ReceiveView', tmp_460, 'cepLct', tmp_461, 1000, tmp_462, listOf(new Trigger('contententrypicture2_remote_insert', tmp_463, tmp_464, tmp_465, tmp_466, tmp$ret$530, '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_468 = listOf_0(['vlmeVerbUid', 'vlmeLangHash']);
    var tmp_469 = 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_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 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$539 = ['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_475 = to(620, new ReplicationEntityMetaData(620, 'VerbLangMapEntry', 'VerbLangMapEntry_ReceiveView', tmp_468, 'vlmeLastModified', tmp_469, 1000, tmp_470, listOf(new Trigger('verblangmapentry_remote_insert', tmp_471, tmp_472, tmp_473, tmp_474, tmp$ret$539, '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_476 = listOf_0(['gmajGroupActorUid', 'gmajMemberActorUid']);
    var tmp_477 = listOf_0([new ReplicationFieldMetaData('gmajGroupActorUid', -5, false), new ReplicationFieldMetaData('gmajMemberActorUid', -5, false), new ReplicationFieldMetaData('gmajLastMod', -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 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$548 = ['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_483 = to(4232, new ReplicationEntityMetaData(4232, 'GroupMemberActorJoin', 'GroupMemberActorJoin_ReceiveView', tmp_476, 'gmajLastMod', tmp_477, 1000, tmp_478, listOf(new Trigger('groupmemberactorjoin_remote_insert', tmp_479, tmp_480, tmp_481, tmp_482, tmp$ret$548, '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_484 = listOf_0(['almeActivityUid', 'almeHash']);
    var tmp_485 = listOf_0([new ReplicationFieldMetaData('almeActivityUid', -5, false), new ReplicationFieldMetaData('almeHash', -5, false), new ReplicationFieldMetaData('almeLangCode', -1, true), new ReplicationFieldMetaData('almePropName', -1, true), new ReplicationFieldMetaData('almeValue', -1, true), new ReplicationFieldMetaData('almeAieHash', -5, false), new ReplicationFieldMetaData('almeLastMod', -5, 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 ActivityLangMapEntry (almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod) VALUES( CAST(NEW.almeActivityUid AS BIGINT), CAST(NEW.almeHash AS BIGINT), NEW.almeLangCode, NEW.almePropName, 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$557 = ['INSERT INTO ActivityLangMapEntry (almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod) VALUES( CAST(NEW.almeActivityUid AS BIGINT), CAST(NEW.almeHash AS BIGINT), NEW.almeLangCode, NEW.almePropName, NEW.almeValue, CAST(NEW.almeAieHash AS BIGINT), CAST(NEW.almeLastMod AS BIGINT))  ON CONFLICT(almeActivityUid, almeHash)  DO UPDATE SET almeLangCode = NEW.almeLangCode, almePropName = NEW.almePropName, almeValue = NEW.almeValue, almeAieHash = NEW.almeAieHash, almeLastMod = NEW.almeLastMod '];
    var tmp_491 = to(6442, new ReplicationEntityMetaData(6442, 'ActivityLangMapEntry', 'ActivityLangMapEntry_ReceiveView', tmp_484, 'almeLastMod', tmp_485, 1000, tmp_486, listOf(new Trigger('activitylangmapentry_remote_insert', tmp_487, tmp_488, tmp_489, tmp_490, tmp$ret$557, '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_492 = listOf_0(['aeeActivityUid', 'aeeKeyHash']);
    var tmp_493 = 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_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 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$566 = ['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_499 = to(6405, new ReplicationEntityMetaData(6405, 'ActivityExtensionEntity', 'ActivityExtensionEntity_ReceiveView', tmp_492, 'aeeLastMod', tmp_493, 1000, tmp_494, listOf(new Trigger('activityextensionentity_remote_insert', tmp_495, tmp_496, tmp_497, tmp_498, tmp$ret$566, '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_500 = listOf_0(['scajFromStatementIdHi', 'scajFromStatementIdLo', 'scajToHash']);
    var tmp_501 = 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_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 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$575 = ['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_507 = to(44044, new ReplicationEntityMetaData(44044, 'StatementContextActivityJoin', 'StatementContextActivityJoin_ReceiveView', tmp_500, 'scajEtag', tmp_501, 1000, tmp_502, listOf(new Trigger('statementcontextactivityjoin_remoteinsert', tmp_503, tmp_504, tmp_505, tmp_506, tmp$ret$575, '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_508 = listOf('xseUid');
    var tmp_509 = 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_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 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$584 = ['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_515 = to(400122, new ReplicationEntityMetaData(400122, 'XapiSessionEntity', 'XapiSessionEntity_ReceiveView', tmp_508, 'xseLastMod', tmp_509, 1000, tmp_510, listOf(new Trigger('xapisessionentity_remote_insert', tmp_511, tmp_512, tmp_513, tmp_514, tmp$ret$584, '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_516 = listOf_0(['stmtJsonIdHi', 'stmtJsonIdLo']);
    var tmp_517 = listOf_0([new ReplicationFieldMetaData('stmtJsonIdHi', -5, false), new ReplicationFieldMetaData('stmtJsonIdLo', -5, false), new ReplicationFieldMetaData('stmtEtag', -5, false), new ReplicationFieldMetaData('fullStatement', -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 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$593 = ['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_523 = to(602, new ReplicationEntityMetaData(602, 'StatementEntityJson', 'StatementEntityJson_ReceiveView', tmp_516, 'stmtEtag', tmp_517, 1000, tmp_518, listOf(new Trigger('statemententityjson_remote_insert', tmp_519, tmp_520, tmp_521, tmp_522, tmp$ret$593, '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_524 = listOf('personPasskeyUid');
    var tmp_525 = listOf_0([new ReplicationFieldMetaData('ppPersonUid', -5, false), new ReplicationFieldMetaData('ppAttestationObj', -1, true), new ReplicationFieldMetaData('ppClientDataJson', -1, true), new ReplicationFieldMetaData('ppOriginString', -1, true), new ReplicationFieldMetaData('ppId', -1, true), new ReplicationFieldMetaData('ppChallengeString', -1, true), new ReplicationFieldMetaData('ppPublicKey', -1, true), new ReplicationFieldMetaData('isRevoked', 4, false), new ReplicationFieldMetaData('ppPasskeyLct', -5, false), new ReplicationFieldMetaData('personPasskeyUid', -5, false)]);
    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 PersonPasskey (personPasskeyUid, ppPersonUid, ppAttestationObj, ppClientDataJson, ppOriginString, ppId, ppChallengeString, ppPublicKey, isRevoked, ppPasskeyLct) VALUES( CAST(NEW.personPasskeyUid AS BIGINT), CAST(NEW.ppPersonUid AS BIGINT), NEW.ppAttestationObj, NEW.ppClientDataJson, NEW.ppOriginString, NEW.ppId, NEW.ppChallengeString, NEW.ppPublicKey, NEW.isRevoked, CAST(NEW.ppPasskeyLct AS BIGINT)) '];
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$602 = ['INSERT INTO PersonPasskey (personPasskeyUid, ppPersonUid, ppAttestationObj, ppClientDataJson, ppOriginString, ppId, ppChallengeString, ppPublicKey, isRevoked, ppPasskeyLct) VALUES( CAST(NEW.personPasskeyUid AS BIGINT), CAST(NEW.ppPersonUid AS BIGINT), NEW.ppAttestationObj, NEW.ppClientDataJson, NEW.ppOriginString, NEW.ppId, NEW.ppChallengeString, NEW.ppPublicKey, NEW.isRevoked, CAST(NEW.ppPasskeyLct AS BIGINT))  ON CONFLICT(personPasskeyUid)  DO UPDATE SET ppPersonUid = NEW.ppPersonUid, ppAttestationObj = NEW.ppAttestationObj, ppClientDataJson = NEW.ppClientDataJson, ppOriginString = NEW.ppOriginString, ppId = NEW.ppId, ppChallengeString = NEW.ppChallengeString, ppPublicKey = NEW.ppPublicKey, isRevoked = NEW.isRevoked, ppPasskeyLct = NEW.ppPasskeyLct '];
    var tmp_531 = to(892, new ReplicationEntityMetaData(892, 'PersonPasskey', 'PersonPasskey_ReceiveView', tmp_524, 'ppPasskeyLct', tmp_525, 1000, tmp_526, listOf(new Trigger('person_passkey_remote_insert', tmp_527, tmp_528, tmp_529, tmp_530, tmp$ret$602, 'SELECT \n                   CAST(NEW.ppPasskeyLct AS BIGINT) >\n                       COALESCE((SELECT PersonPasskey_Existing.ppPasskeyLct\n                                   FROM PersonPasskey PersonPasskey_Existing\n                                  WHERE PersonPasskey_Existing.personPasskeyUid = NEW.personPasskeyUid), 0)\n                   ', 'SELECT \n                   CAST(NEW.ppPasskeyLct AS BIGINT) >\n                       COALESCE((SELECT PersonPasskey_Existing.ppPasskeyLct\n                                   FROM PersonPasskey PersonPasskey_Existing\n                                  WHERE PersonPasskey_Existing.personPasskeyUid = NEW.personPasskeyUid), 0)\n                   '))));
    var tmp_532 = listOf_0(['seActorUid', 'seHash']);
    var tmp_533 = 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_534 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_535 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_536 = [Event_INSERT_getInstance()];
    var tmp_537 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_538 = ['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$611 = ['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_539 = to(3289, new ReplicationEntityMetaData(3289, 'StateEntity', 'StateEntity_ReceiveView', tmp_532, 'seLastMod', tmp_533, 1000, tmp_534, listOf(new Trigger('stateentity_remote_insert', tmp_535, tmp_536, tmp_537, tmp_538, tmp$ret$611, '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_540 = listOf_0(['sdcActorUid', 'sdcHash']);
    var tmp_541 = 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_542 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance();
    var tmp_543 = Order_INSTEAD_OF_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_544 = [Event_INSERT_getInstance()];
    var tmp_545 = On_RECEIVEVIEW_getInstance();
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp_546 = ['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$620 = ['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_398, 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, tmp_531, tmp_539, to(121422, new ReplicationEntityMetaData(121422, 'StateDeleteCommand', 'StateDeleteCommand_ReceiveView', tmp_540, 'sdcLastMod', tmp_541, 1000, tmp_542, listOf(new Trigger('statedeletecommand_remote_insert', tmp_543, tmp_544, tmp_545, tmp_546, tmp$ret$620, '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.k7g_1 = listOf_0(['ClazzLog', 'ClazzLogAttendanceRecord', 'Schedule', 'HolidayCalendar', 'Holiday', 'Person', 'Clazz', 'ClazzEnrolment', 'LeavingReason', 'ClazzInvite', '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', 'PersonPasskey', 'StateEntity', 'StateDeleteCommand', 'OutgoingReplication', 'ReplicationOperation', 'PendingRepositorySession', 'DoorNode']);
    var tmp = this;
    var tmp_0 = LazyThreadSafetyMode_NONE_getInstance();
    tmp.l7g_1 = lazy(tmp_0, UmAppDatabase_DoorMetadata$replicateEntities$delegate$lambda);
  }
  protoOf(UmAppDatabase_DoorMetadata).n65 = function () {
    return this.k7g_1;
  };
  protoOf(UmAppDatabase_DoorMetadata).a65 = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.l7g_1;
    replicateEntities$factory();
    return this_0.t2();
  };
  function replicateEntities$factory() {
    return getPropertyCallableRef('replicateEntities', 1, KProperty1, function (receiver) {
      return receiver.a65();
    }, null);
  }
  function UmAppDatabase_DoorWrapper$_PersonDao$delegate$lambda(this$0) {
    return function () {
      return new PersonDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.n7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ClazzDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.o7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_CourseBlockDao$delegate$lambda(this$0) {
    return function () {
      return new CourseBlockDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.p7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_CourseTerminologyDao$delegate$lambda(this$0) {
    return function () {
      return new CourseTerminologyDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.q7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_CourseGroupSetDao$delegate$lambda(this$0) {
    return function () {
      return new CourseGroupSetDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.r7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_CourseGroupMemberDao$delegate$lambda(this$0) {
    return function () {
      return new CourseGroupMemberDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.s7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ClazzEnrolmentDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzEnrolmentDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.t7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_LeavingReasonDao$delegate$lambda(this$0) {
    return function () {
      return new LeavingReasonDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.u7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ContentEntryDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.v7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ContentEntryContentCategoryJoinDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryContentCategoryJoinDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.w7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ContentEntryParentChildJoinDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryParentChildJoinDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.x7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryRelatedEntryJoinDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.y7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ContentCategorySchemaDao$delegate$lambda(this$0) {
    return function () {
      return new ContentCategorySchemaDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.z7d());
    };
  }
  function UmAppDatabase_DoorWrapper$_ContentCategoryDao$delegate$lambda(this$0) {
    return function () {
      return new ContentCategoryDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.a7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_LanguageDao$delegate$lambda(this$0) {
    return function () {
      return new LanguageDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.b7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_LanguageVariantDao$delegate$lambda(this$0) {
    return function () {
      return new LanguageVariantDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.c7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_PersonGroupDao$delegate$lambda(this$0) {
    return function () {
      return new PersonGroupDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.d7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_PersonGroupMemberDao$delegate$lambda(this$0) {
    return function () {
      return new PersonGroupMemberDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.e7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_PersonPictureDao$delegate$lambda(this$0) {
    return function () {
      return new PersonPictureDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.f7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_VerbDao$delegate$lambda(this$0) {
    return function () {
      return new VerbDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.g7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_ActivityEntityDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityEntityDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.h7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_ReportDao$delegate$lambda(this$0) {
    return function () {
      return new ReportDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.i7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_StatementDao$delegate$lambda(this$0) {
    return function () {
      return new StatementDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.j7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_ActorDao$delegate$lambda(this$0) {
    return function () {
      return new ActorDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.k7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_ClazzLogAttendanceRecordDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzLogAttendanceRecordDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.l7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_ClazzLogDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzLogDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.m7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_ScheduleDao$delegate$lambda(this$0) {
    return function () {
      return new ScheduleDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.n7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_HolidayCalendarDao$delegate$lambda(this$0) {
    return function () {
      return new HolidayCalendarDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.o7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_HolidayDao$delegate$lambda(this$0) {
    return function () {
      return new HolidayDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.p7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_ClazzAssignmentDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzAssignmentDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.q7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_CourseAssignmentSubmissionDao$delegate$lambda(this$0) {
    return function () {
      return new CourseAssignmentSubmissionDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.r7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_CourseAssignmentSubmissionFileDao$delegate$lambda(this$0) {
    return function () {
      return new CourseAssignmentSubmissionFileDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.s7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_CourseAssignmentMarkDao$delegate$lambda(this$0) {
    return function () {
      return new CourseAssignmentMarkDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.t7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_CommentsDao$delegate$lambda(this$0) {
    return function () {
      return new CommentsDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.u7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_SiteDao$delegate$lambda(this$0) {
    return function () {
      return new SiteDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.v7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_SiteTermsDao$delegate$lambda(this$0) {
    return function () {
      return new SiteTermsDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.w7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_PersonParentJoinDao$delegate$lambda(this$0) {
    return function () {
      return new PersonParentJoinDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.x7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_ScopedGrantDao$delegate$lambda(this$0) {
    return function () {
      return new ScopedGrantDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.y7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_ErrorReportDao$delegate$lambda(this$0) {
    return function () {
      return new ErrorReportDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.z7e());
    };
  }
  function UmAppDatabase_DoorWrapper$_PersonAuth2Dao$delegate$lambda(this$0) {
    return function () {
      return new PersonAuth2Dao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.a7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_UserSessionDao$delegate$lambda(this$0) {
    return function () {
      return new UserSessionDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.b7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_CoursePictureDao$delegate$lambda(this$0) {
    return function () {
      return new CoursePictureDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.d7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_ContentEntryPictureDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryPictureDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.e7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_MessageDao$delegate$lambda(this$0) {
    return function () {
      return new MessageDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.f7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_PeerReviewerAllocationDao$delegate$lambda(this$0) {
    return function () {
      return new PeerReviewerAllocationDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.g7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_DiscussionPostDao$delegate$lambda(this$0) {
    return function () {
      return new DiscussionPostDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.h7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_ContentEntryVersionDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryVersionDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.i7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_OfflineItemDao$delegate$lambda(this$0) {
    return function () {
      return new OfflineItemDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.l7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_EnrolmentRequestDao$delegate$lambda(this$0) {
    return function () {
      return new EnrolmentRequestDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.n7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_CoursePermissionDao$delegate$lambda(this$0) {
    return function () {
      return new CoursePermissionDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.o7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_SystemPermissionDao$delegate$lambda(this$0) {
    return function () {
      return new SystemPermissionDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.p7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_CourseBlockPictureDao$delegate$lambda(this$0) {
    return function () {
      return new CourseBlockPictureDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.q7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_ContentEntryPicture2Dao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryPicture2Dao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.r7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_StudentResultDao$delegate$lambda(this$0) {
    return function () {
      return new StudentResultDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.s7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_VerbLangMapEntryDao$delegate$lambda(this$0) {
    return function () {
      return new VerbLangMapEntryDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.t7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_GroupMemberActorJoinDao$delegate$lambda(this$0) {
    return function () {
      return new GroupMemberActorJoinDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.u7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_ActivityLangMapEntryDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityLangMapEntryDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.v7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_ActivityInteractionDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityInteractionDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.w7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_ActivityExtensionDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityExtensionDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.x7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_StatementContextActivityJoinDao$delegate$lambda(this$0) {
    return function () {
      return new StatementContextActivityJoinDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.y7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_XapiSessionEntityDao$delegate$lambda(this$0) {
    return function () {
      return new XapiSessionEntityDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.z7f());
    };
  }
  function UmAppDatabase_DoorWrapper$_StatementEntityJsonDao$delegate$lambda(this$0) {
    return function () {
      return new StatementEntityJsonDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.a7g());
    };
  }
  function UmAppDatabase_DoorWrapper$_PersonPasskeyDao$delegate$lambda(this$0) {
    return function () {
      return new PersonPasskeyDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.b7g());
    };
  }
  function UmAppDatabase_DoorWrapper$_StateEntityDao$delegate$lambda(this$0) {
    return function () {
      return new StateEntityDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.c7g());
    };
  }
  function UmAppDatabase_DoorWrapper$_StateDeleteCommandDao$delegate$lambda(this$0) {
    return function () {
      return new StateDeleteCommandDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.d7g());
    };
  }
  function UmAppDatabase_DoorWrapper$_ClazzInviteDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzInviteDao_DoorWrapper(this$0.m7g_1, this$0.m7g_1.e7g());
    };
  }
  function UmAppDatabase_DoorWrapper(_db, nodeId, messageCallback, logger, dbName) {
    UmAppDatabase.call(this);
    this.m7g_1 = _db;
    this.n7g_1 = nodeId;
    this.o7g_1 = messageCallback;
    var tmp = this;
    tmp.p7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonDao$delegate$lambda(this));
    var tmp_0 = this;
    tmp_0.q7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzDao$delegate$lambda(this));
    var tmp_1 = this;
    tmp_1.r7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseBlockDao$delegate$lambda(this));
    var tmp_2 = this;
    tmp_2.s7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseTerminologyDao$delegate$lambda(this));
    var tmp_3 = this;
    tmp_3.t7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseGroupSetDao$delegate$lambda(this));
    var tmp_4 = this;
    tmp_4.u7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseGroupMemberDao$delegate$lambda(this));
    var tmp_5 = this;
    tmp_5.v7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzEnrolmentDao$delegate$lambda(this));
    var tmp_6 = this;
    tmp_6.w7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_LeavingReasonDao$delegate$lambda(this));
    var tmp_7 = this;
    tmp_7.x7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryDao$delegate$lambda(this));
    var tmp_8 = this;
    tmp_8.y7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryContentCategoryJoinDao$delegate$lambda(this));
    var tmp_9 = this;
    tmp_9.z7g_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryParentChildJoinDao$delegate$lambda(this));
    var tmp_10 = this;
    tmp_10.a7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this));
    var tmp_11 = this;
    tmp_11.b7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentCategorySchemaDao$delegate$lambda(this));
    var tmp_12 = this;
    tmp_12.c7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentCategoryDao$delegate$lambda(this));
    var tmp_13 = this;
    tmp_13.d7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_LanguageDao$delegate$lambda(this));
    var tmp_14 = this;
    tmp_14.e7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_LanguageVariantDao$delegate$lambda(this));
    var tmp_15 = this;
    tmp_15.f7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonGroupDao$delegate$lambda(this));
    var tmp_16 = this;
    tmp_16.g7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonGroupMemberDao$delegate$lambda(this));
    var tmp_17 = this;
    tmp_17.h7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonPictureDao$delegate$lambda(this));
    var tmp_18 = this;
    tmp_18.i7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_VerbDao$delegate$lambda(this));
    var tmp_19 = this;
    tmp_19.j7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActivityEntityDao$delegate$lambda(this));
    var tmp_20 = this;
    tmp_20.k7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_ReportDao$delegate$lambda(this));
    var tmp_21 = this;
    tmp_21.l7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_StatementDao$delegate$lambda(this));
    var tmp_22 = this;
    tmp_22.m7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActorDao$delegate$lambda(this));
    var tmp_23 = this;
    tmp_23.n7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzLogAttendanceRecordDao$delegate$lambda(this));
    var tmp_24 = this;
    tmp_24.o7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzLogDao$delegate$lambda(this));
    var tmp_25 = this;
    tmp_25.p7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_ScheduleDao$delegate$lambda(this));
    var tmp_26 = this;
    tmp_26.q7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_HolidayCalendarDao$delegate$lambda(this));
    var tmp_27 = this;
    tmp_27.r7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_HolidayDao$delegate$lambda(this));
    var tmp_28 = this;
    tmp_28.s7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzAssignmentDao$delegate$lambda(this));
    var tmp_29 = this;
    tmp_29.t7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseAssignmentSubmissionDao$delegate$lambda(this));
    var tmp_30 = this;
    tmp_30.u7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseAssignmentSubmissionFileDao$delegate$lambda(this));
    var tmp_31 = this;
    tmp_31.v7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseAssignmentMarkDao$delegate$lambda(this));
    var tmp_32 = this;
    tmp_32.w7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_CommentsDao$delegate$lambda(this));
    var tmp_33 = this;
    tmp_33.x7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_SiteDao$delegate$lambda(this));
    var tmp_34 = this;
    tmp_34.y7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_SiteTermsDao$delegate$lambda(this));
    var tmp_35 = this;
    tmp_35.z7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonParentJoinDao$delegate$lambda(this));
    var tmp_36 = this;
    tmp_36.a7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ScopedGrantDao$delegate$lambda(this));
    var tmp_37 = this;
    tmp_37.b7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ErrorReportDao$delegate$lambda(this));
    var tmp_38 = this;
    tmp_38.c7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonAuth2Dao$delegate$lambda(this));
    var tmp_39 = this;
    tmp_39.d7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_UserSessionDao$delegate$lambda(this));
    var tmp_40 = this;
    tmp_40.e7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_CoursePictureDao$delegate$lambda(this));
    var tmp_41 = this;
    tmp_41.f7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryPictureDao$delegate$lambda(this));
    var tmp_42 = this;
    tmp_42.g7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_MessageDao$delegate$lambda(this));
    var tmp_43 = this;
    tmp_43.h7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_PeerReviewerAllocationDao$delegate$lambda(this));
    var tmp_44 = this;
    tmp_44.i7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_DiscussionPostDao$delegate$lambda(this));
    var tmp_45 = this;
    tmp_45.j7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryVersionDao$delegate$lambda(this));
    var tmp_46 = this;
    tmp_46.k7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_OfflineItemDao$delegate$lambda(this));
    var tmp_47 = this;
    tmp_47.l7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_EnrolmentRequestDao$delegate$lambda(this));
    var tmp_48 = this;
    tmp_48.m7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_CoursePermissionDao$delegate$lambda(this));
    var tmp_49 = this;
    tmp_49.n7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_SystemPermissionDao$delegate$lambda(this));
    var tmp_50 = this;
    tmp_50.o7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseBlockPictureDao$delegate$lambda(this));
    var tmp_51 = this;
    tmp_51.p7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryPicture2Dao$delegate$lambda(this));
    var tmp_52 = this;
    tmp_52.q7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_StudentResultDao$delegate$lambda(this));
    var tmp_53 = this;
    tmp_53.r7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_VerbLangMapEntryDao$delegate$lambda(this));
    var tmp_54 = this;
    tmp_54.s7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_GroupMemberActorJoinDao$delegate$lambda(this));
    var tmp_55 = this;
    tmp_55.t7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActivityLangMapEntryDao$delegate$lambda(this));
    var tmp_56 = this;
    tmp_56.u7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActivityInteractionDao$delegate$lambda(this));
    var tmp_57 = this;
    tmp_57.v7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActivityExtensionDao$delegate$lambda(this));
    var tmp_58 = this;
    tmp_58.w7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_StatementContextActivityJoinDao$delegate$lambda(this));
    var tmp_59 = this;
    tmp_59.x7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_XapiSessionEntityDao$delegate$lambda(this));
    var tmp_60 = this;
    tmp_60.y7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_StatementEntityJsonDao$delegate$lambda(this));
    var tmp_61 = this;
    tmp_61.z7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonPasskeyDao$delegate$lambda(this));
    var tmp_62 = this;
    tmp_62.a7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_StateEntityDao$delegate$lambda(this));
    var tmp_63 = this;
    tmp_63.b7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_StateDeleteCommandDao$delegate$lambda(this));
    var tmp_64 = this;
    tmp_64.c7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzInviteDao$delegate$lambda(this));
    this.d7j_1 = new NodeEventManagerJs(this.m7g_1, this.o7g_1, logger, dbName);
  }
  protoOf(UmAppDatabase_DoorWrapper).o61 = function () {
    return this.n7g_1;
  };
  protoOf(UmAppDatabase_DoorWrapper).k72 = function () {
    return 207;
  };
  protoOf(UmAppDatabase_DoorWrapper).e7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.p7g_1;
    _PersonDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).f7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.q7g_1;
    _ClazzDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).g7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.r7g_1;
    _CourseBlockDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).h7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.s7g_1;
    _CourseTerminologyDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).i7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.t7g_1;
    _CourseGroupSetDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).j7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.u7g_1;
    _CourseGroupMemberDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).k7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.v7g_1;
    _ClazzEnrolmentDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).l7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.w7g_1;
    _LeavingReasonDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).m7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.x7g_1;
    _ContentEntryDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).n7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.y7g_1;
    _ContentEntryContentCategoryJoinDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).o7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.z7g_1;
    _ContentEntryParentChildJoinDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).p7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.a7h_1;
    _ContentEntryRelatedEntryJoinDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).q7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.b7h_1;
    _ContentCategorySchemaDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).r7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.c7h_1;
    _ContentCategoryDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).s7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.d7h_1;
    _LanguageDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).t7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.e7h_1;
    _LanguageVariantDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).u7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.f7h_1;
    _PersonGroupDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).v7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.g7h_1;
    _PersonGroupMemberDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).w7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.h7h_1;
    _PersonPictureDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).x7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.i7h_1;
    _VerbDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).y7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.j7h_1;
    _ActivityEntityDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).z7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.k7h_1;
    _ReportDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).a7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.l7h_1;
    _StatementDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).b7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.m7h_1;
    _ActorDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).c7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.n7h_1;
    _ClazzLogAttendanceRecordDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).d7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.o7h_1;
    _ClazzLogDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).e7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.p7h_1;
    _ScheduleDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).f7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.q7h_1;
    _HolidayCalendarDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).g7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.r7h_1;
    _HolidayDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).h7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.s7h_1;
    _ClazzAssignmentDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).i7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.t7h_1;
    _CourseAssignmentSubmissionDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).j7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.u7h_1;
    _CourseAssignmentSubmissionFileDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).k7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.v7h_1;
    _CourseAssignmentMarkDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).l7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.w7h_1;
    _CommentsDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).m7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.x7h_1;
    _SiteDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).n7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.y7h_1;
    _SiteTermsDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).o7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.z7h_1;
    _PersonParentJoinDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).p7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.a7i_1;
    _ScopedGrantDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).q7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.b7i_1;
    _ErrorReportDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).r7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.c7i_1;
    _PersonAuth2Dao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).s7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.d7i_1;
    _UserSessionDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).t7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.e7i_1;
    _CoursePictureDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).u7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.f7i_1;
    _ContentEntryPictureDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).v7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.g7i_1;
    _MessageDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).w7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.h7i_1;
    _PeerReviewerAllocationDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).x7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.i7i_1;
    _DiscussionPostDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).y7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.j7i_1;
    _ContentEntryVersionDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).z7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.k7i_1;
    _OfflineItemDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).a7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.l7i_1;
    _EnrolmentRequestDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).b7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.m7i_1;
    _CoursePermissionDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).c7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.n7i_1;
    _SystemPermissionDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).d7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.o7i_1;
    _CourseBlockPictureDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).e7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.p7i_1;
    _ContentEntryPicture2Dao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).f7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.q7i_1;
    _StudentResultDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).g7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.r7i_1;
    _VerbLangMapEntryDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).h7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.s7i_1;
    _GroupMemberActorJoinDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).i7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.t7i_1;
    _ActivityLangMapEntryDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).j7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.u7i_1;
    _ActivityInteractionDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).k7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.v7i_1;
    _ActivityExtensionDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).l7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.w7i_1;
    _StatementContextActivityJoinDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).m7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.x7i_1;
    _XapiSessionEntityDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).n7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.y7i_1;
    _StatementEntityJsonDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).o7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.z7i_1;
    _PersonPasskeyDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).p7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.a7j_1;
    _StateEntityDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).q7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.b7j_1;
    _StateDeleteCommandDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).r7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.c7j_1;
    _ClazzInviteDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_DoorWrapper).w5i = function () {
    return this.m7g_1;
  };
  protoOf(UmAppDatabase_DoorWrapper).n61 = function () {
    return this.d7j_1;
  };
  protoOf(UmAppDatabase_DoorWrapper).w5l = function () {
    return this.m7g_1.w5l();
  };
  protoOf(UmAppDatabase_DoorWrapper).q71 = function () {
    return this.m7g_1.q71();
  };
  protoOf(UmAppDatabase_DoorWrapper).n7d = function () {
    return this.e7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).o7d = function () {
    return this.f7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).p7d = function () {
    return this.g7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).q7d = function () {
    return this.h7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).r7d = function () {
    return this.i7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).s7d = function () {
    return this.j7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).t7d = function () {
    return this.k7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).u7d = function () {
    return this.l7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).v7d = function () {
    return this.m7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).w7d = function () {
    return this.n7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).x7d = function () {
    return this.o7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).y7d = function () {
    return this.p7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).z7d = function () {
    return this.q7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).a7e = function () {
    return this.r7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).b7e = function () {
    return this.s7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).c7e = function () {
    return this.t7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).d7e = function () {
    return this.u7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).e7e = function () {
    return this.v7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).f7e = function () {
    return this.w7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).g7e = function () {
    return this.x7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).h7e = function () {
    return this.y7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).i7e = function () {
    return this.z7j();
  };
  protoOf(UmAppDatabase_DoorWrapper).j7e = function () {
    return this.a7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).k7e = function () {
    return this.b7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).l7e = function () {
    return this.c7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).m7e = function () {
    return this.d7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).n7e = function () {
    return this.e7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).o7e = function () {
    return this.f7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).p7e = function () {
    return this.g7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).q7e = function () {
    return this.h7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).r7e = function () {
    return this.i7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).s7e = function () {
    return this.j7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).t7e = function () {
    return this.k7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).u7e = function () {
    return this.l7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).v7e = function () {
    return this.m7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).w7e = function () {
    return this.n7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).x7e = function () {
    return this.o7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).y7e = function () {
    return this.p7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).z7e = function () {
    return this.q7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).a7f = function () {
    return this.r7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).b7f = function () {
    return this.s7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).c7f = function () {
    return this.m7g_1.c7f();
  };
  protoOf(UmAppDatabase_DoorWrapper).d7f = function () {
    return this.t7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).e7f = function () {
    return this.u7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).f7f = function () {
    return this.v7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).g7f = function () {
    return this.w7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).h7f = function () {
    return this.x7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).i7f = function () {
    return this.y7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).j7f = function () {
    return this.m7g_1.j7f();
  };
  protoOf(UmAppDatabase_DoorWrapper).k7f = function () {
    return this.m7g_1.k7f();
  };
  protoOf(UmAppDatabase_DoorWrapper).l7f = function () {
    return this.z7k();
  };
  protoOf(UmAppDatabase_DoorWrapper).m7f = function () {
    return this.m7g_1.m7f();
  };
  protoOf(UmAppDatabase_DoorWrapper).n7f = function () {
    return this.a7l();
  };
  protoOf(UmAppDatabase_DoorWrapper).o7f = function () {
    return this.b7l();
  };
  protoOf(UmAppDatabase_DoorWrapper).p7f = function () {
    return this.c7l();
  };
  protoOf(UmAppDatabase_DoorWrapper).q7f = function () {
    return this.d7l();
  };
  protoOf(UmAppDatabase_DoorWrapper).r7f = function () {
    return this.e7l();
  };
  protoOf(UmAppDatabase_DoorWrapper).s7f = function () {
    return this.f7l();
  };
  protoOf(UmAppDatabase_DoorWrapper).t7f = function () {
    return this.g7l();
  };
  protoOf(UmAppDatabase_DoorWrapper).u7f = function () {
    return this.h7l();
  };
  protoOf(UmAppDatabase_DoorWrapper).v7f = function () {
    return this.i7l();
  };
  protoOf(UmAppDatabase_DoorWrapper).w7f = function () {
    return this.j7l();
  };
  protoOf(UmAppDatabase_DoorWrapper).x7f = function () {
    return this.k7l();
  };
  protoOf(UmAppDatabase_DoorWrapper).y7f = function () {
    return this.l7l();
  };
  protoOf(UmAppDatabase_DoorWrapper).z7f = function () {
    return this.m7l();
  };
  protoOf(UmAppDatabase_DoorWrapper).a7g = function () {
    return this.n7l();
  };
  protoOf(UmAppDatabase_DoorWrapper).b7g = function () {
    return this.o7l();
  };
  protoOf(UmAppDatabase_DoorWrapper).c7g = function () {
    return this.p7l();
  };
  protoOf(UmAppDatabase_DoorWrapper).d7g = function () {
    return this.q7l();
  };
  protoOf(UmAppDatabase_DoorWrapper).e7g = function () {
    return this.r7l();
  };
  function _PersonDao$factory() {
    return getPropertyCallableRef('_PersonDao', 1, KProperty1, function (receiver) {
      return receiver.e7j();
    }, null);
  }
  function _ClazzDao$factory() {
    return getPropertyCallableRef('_ClazzDao', 1, KProperty1, function (receiver) {
      return receiver.f7j();
    }, null);
  }
  function _CourseBlockDao$factory() {
    return getPropertyCallableRef('_CourseBlockDao', 1, KProperty1, function (receiver) {
      return receiver.g7j();
    }, null);
  }
  function _CourseTerminologyDao$factory() {
    return getPropertyCallableRef('_CourseTerminologyDao', 1, KProperty1, function (receiver) {
      return receiver.h7j();
    }, null);
  }
  function _CourseGroupSetDao$factory() {
    return getPropertyCallableRef('_CourseGroupSetDao', 1, KProperty1, function (receiver) {
      return receiver.i7j();
    }, null);
  }
  function _CourseGroupMemberDao$factory() {
    return getPropertyCallableRef('_CourseGroupMemberDao', 1, KProperty1, function (receiver) {
      return receiver.j7j();
    }, null);
  }
  function _ClazzEnrolmentDao$factory() {
    return getPropertyCallableRef('_ClazzEnrolmentDao', 1, KProperty1, function (receiver) {
      return receiver.k7j();
    }, null);
  }
  function _LeavingReasonDao$factory() {
    return getPropertyCallableRef('_LeavingReasonDao', 1, KProperty1, function (receiver) {
      return receiver.l7j();
    }, null);
  }
  function _ContentEntryDao$factory() {
    return getPropertyCallableRef('_ContentEntryDao', 1, KProperty1, function (receiver) {
      return receiver.m7j();
    }, null);
  }
  function _ContentEntryContentCategoryJoinDao$factory() {
    return getPropertyCallableRef('_ContentEntryContentCategoryJoinDao', 1, KProperty1, function (receiver) {
      return receiver.n7j();
    }, null);
  }
  function _ContentEntryParentChildJoinDao$factory() {
    return getPropertyCallableRef('_ContentEntryParentChildJoinDao', 1, KProperty1, function (receiver) {
      return receiver.o7j();
    }, null);
  }
  function _ContentEntryRelatedEntryJoinDao$factory() {
    return getPropertyCallableRef('_ContentEntryRelatedEntryJoinDao', 1, KProperty1, function (receiver) {
      return receiver.p7j();
    }, null);
  }
  function _ContentCategorySchemaDao$factory() {
    return getPropertyCallableRef('_ContentCategorySchemaDao', 1, KProperty1, function (receiver) {
      return receiver.q7j();
    }, null);
  }
  function _ContentCategoryDao$factory() {
    return getPropertyCallableRef('_ContentCategoryDao', 1, KProperty1, function (receiver) {
      return receiver.r7j();
    }, null);
  }
  function _LanguageDao$factory() {
    return getPropertyCallableRef('_LanguageDao', 1, KProperty1, function (receiver) {
      return receiver.s7j();
    }, null);
  }
  function _LanguageVariantDao$factory() {
    return getPropertyCallableRef('_LanguageVariantDao', 1, KProperty1, function (receiver) {
      return receiver.t7j();
    }, null);
  }
  function _PersonGroupDao$factory() {
    return getPropertyCallableRef('_PersonGroupDao', 1, KProperty1, function (receiver) {
      return receiver.u7j();
    }, null);
  }
  function _PersonGroupMemberDao$factory() {
    return getPropertyCallableRef('_PersonGroupMemberDao', 1, KProperty1, function (receiver) {
      return receiver.v7j();
    }, null);
  }
  function _PersonPictureDao$factory() {
    return getPropertyCallableRef('_PersonPictureDao', 1, KProperty1, function (receiver) {
      return receiver.w7j();
    }, null);
  }
  function _VerbDao$factory() {
    return getPropertyCallableRef('_VerbDao', 1, KProperty1, function (receiver) {
      return receiver.x7j();
    }, null);
  }
  function _ActivityEntityDao$factory() {
    return getPropertyCallableRef('_ActivityEntityDao', 1, KProperty1, function (receiver) {
      return receiver.y7j();
    }, null);
  }
  function _ReportDao$factory() {
    return getPropertyCallableRef('_ReportDao', 1, KProperty1, function (receiver) {
      return receiver.z7j();
    }, null);
  }
  function _StatementDao$factory() {
    return getPropertyCallableRef('_StatementDao', 1, KProperty1, function (receiver) {
      return receiver.a7k();
    }, null);
  }
  function _ActorDao$factory() {
    return getPropertyCallableRef('_ActorDao', 1, KProperty1, function (receiver) {
      return receiver.b7k();
    }, null);
  }
  function _ClazzLogAttendanceRecordDao$factory() {
    return getPropertyCallableRef('_ClazzLogAttendanceRecordDao', 1, KProperty1, function (receiver) {
      return receiver.c7k();
    }, null);
  }
  function _ClazzLogDao$factory() {
    return getPropertyCallableRef('_ClazzLogDao', 1, KProperty1, function (receiver) {
      return receiver.d7k();
    }, null);
  }
  function _ScheduleDao$factory() {
    return getPropertyCallableRef('_ScheduleDao', 1, KProperty1, function (receiver) {
      return receiver.e7k();
    }, null);
  }
  function _HolidayCalendarDao$factory() {
    return getPropertyCallableRef('_HolidayCalendarDao', 1, KProperty1, function (receiver) {
      return receiver.f7k();
    }, null);
  }
  function _HolidayDao$factory() {
    return getPropertyCallableRef('_HolidayDao', 1, KProperty1, function (receiver) {
      return receiver.g7k();
    }, null);
  }
  function _ClazzAssignmentDao$factory() {
    return getPropertyCallableRef('_ClazzAssignmentDao', 1, KProperty1, function (receiver) {
      return receiver.h7k();
    }, null);
  }
  function _CourseAssignmentSubmissionDao$factory() {
    return getPropertyCallableRef('_CourseAssignmentSubmissionDao', 1, KProperty1, function (receiver) {
      return receiver.i7k();
    }, null);
  }
  function _CourseAssignmentSubmissionFileDao$factory() {
    return getPropertyCallableRef('_CourseAssignmentSubmissionFileDao', 1, KProperty1, function (receiver) {
      return receiver.j7k();
    }, null);
  }
  function _CourseAssignmentMarkDao$factory() {
    return getPropertyCallableRef('_CourseAssignmentMarkDao', 1, KProperty1, function (receiver) {
      return receiver.k7k();
    }, null);
  }
  function _CommentsDao$factory() {
    return getPropertyCallableRef('_CommentsDao', 1, KProperty1, function (receiver) {
      return receiver.l7k();
    }, null);
  }
  function _SiteDao$factory() {
    return getPropertyCallableRef('_SiteDao', 1, KProperty1, function (receiver) {
      return receiver.m7k();
    }, null);
  }
  function _SiteTermsDao$factory() {
    return getPropertyCallableRef('_SiteTermsDao', 1, KProperty1, function (receiver) {
      return receiver.n7k();
    }, null);
  }
  function _PersonParentJoinDao$factory() {
    return getPropertyCallableRef('_PersonParentJoinDao', 1, KProperty1, function (receiver) {
      return receiver.o7k();
    }, null);
  }
  function _ScopedGrantDao$factory() {
    return getPropertyCallableRef('_ScopedGrantDao', 1, KProperty1, function (receiver) {
      return receiver.p7k();
    }, null);
  }
  function _ErrorReportDao$factory() {
    return getPropertyCallableRef('_ErrorReportDao', 1, KProperty1, function (receiver) {
      return receiver.q7k();
    }, null);
  }
  function _PersonAuth2Dao$factory() {
    return getPropertyCallableRef('_PersonAuth2Dao', 1, KProperty1, function (receiver) {
      return receiver.r7k();
    }, null);
  }
  function _UserSessionDao$factory() {
    return getPropertyCallableRef('_UserSessionDao', 1, KProperty1, function (receiver) {
      return receiver.s7k();
    }, null);
  }
  function _CoursePictureDao$factory() {
    return getPropertyCallableRef('_CoursePictureDao', 1, KProperty1, function (receiver) {
      return receiver.t7k();
    }, null);
  }
  function _ContentEntryPictureDao$factory() {
    return getPropertyCallableRef('_ContentEntryPictureDao', 1, KProperty1, function (receiver) {
      return receiver.u7k();
    }, null);
  }
  function _MessageDao$factory() {
    return getPropertyCallableRef('_MessageDao', 1, KProperty1, function (receiver) {
      return receiver.v7k();
    }, null);
  }
  function _PeerReviewerAllocationDao$factory() {
    return getPropertyCallableRef('_PeerReviewerAllocationDao', 1, KProperty1, function (receiver) {
      return receiver.w7k();
    }, null);
  }
  function _DiscussionPostDao$factory() {
    return getPropertyCallableRef('_DiscussionPostDao', 1, KProperty1, function (receiver) {
      return receiver.x7k();
    }, null);
  }
  function _ContentEntryVersionDao$factory() {
    return getPropertyCallableRef('_ContentEntryVersionDao', 1, KProperty1, function (receiver) {
      return receiver.y7k();
    }, null);
  }
  function _OfflineItemDao$factory() {
    return getPropertyCallableRef('_OfflineItemDao', 1, KProperty1, function (receiver) {
      return receiver.z7k();
    }, null);
  }
  function _EnrolmentRequestDao$factory() {
    return getPropertyCallableRef('_EnrolmentRequestDao', 1, KProperty1, function (receiver) {
      return receiver.a7l();
    }, null);
  }
  function _CoursePermissionDao$factory() {
    return getPropertyCallableRef('_CoursePermissionDao', 1, KProperty1, function (receiver) {
      return receiver.b7l();
    }, null);
  }
  function _SystemPermissionDao$factory() {
    return getPropertyCallableRef('_SystemPermissionDao', 1, KProperty1, function (receiver) {
      return receiver.c7l();
    }, null);
  }
  function _CourseBlockPictureDao$factory() {
    return getPropertyCallableRef('_CourseBlockPictureDao', 1, KProperty1, function (receiver) {
      return receiver.d7l();
    }, null);
  }
  function _ContentEntryPicture2Dao$factory() {
    return getPropertyCallableRef('_ContentEntryPicture2Dao', 1, KProperty1, function (receiver) {
      return receiver.e7l();
    }, null);
  }
  function _StudentResultDao$factory() {
    return getPropertyCallableRef('_StudentResultDao', 1, KProperty1, function (receiver) {
      return receiver.f7l();
    }, null);
  }
  function _VerbLangMapEntryDao$factory() {
    return getPropertyCallableRef('_VerbLangMapEntryDao', 1, KProperty1, function (receiver) {
      return receiver.g7l();
    }, null);
  }
  function _GroupMemberActorJoinDao$factory() {
    return getPropertyCallableRef('_GroupMemberActorJoinDao', 1, KProperty1, function (receiver) {
      return receiver.h7l();
    }, null);
  }
  function _ActivityLangMapEntryDao$factory() {
    return getPropertyCallableRef('_ActivityLangMapEntryDao', 1, KProperty1, function (receiver) {
      return receiver.i7l();
    }, null);
  }
  function _ActivityInteractionDao$factory() {
    return getPropertyCallableRef('_ActivityInteractionDao', 1, KProperty1, function (receiver) {
      return receiver.j7l();
    }, null);
  }
  function _ActivityExtensionDao$factory() {
    return getPropertyCallableRef('_ActivityExtensionDao', 1, KProperty1, function (receiver) {
      return receiver.k7l();
    }, null);
  }
  function _StatementContextActivityJoinDao$factory() {
    return getPropertyCallableRef('_StatementContextActivityJoinDao', 1, KProperty1, function (receiver) {
      return receiver.l7l();
    }, null);
  }
  function _XapiSessionEntityDao$factory() {
    return getPropertyCallableRef('_XapiSessionEntityDao', 1, KProperty1, function (receiver) {
      return receiver.m7l();
    }, null);
  }
  function _StatementEntityJsonDao$factory() {
    return getPropertyCallableRef('_StatementEntityJsonDao', 1, KProperty1, function (receiver) {
      return receiver.n7l();
    }, null);
  }
  function _PersonPasskeyDao$factory() {
    return getPropertyCallableRef('_PersonPasskeyDao', 1, KProperty1, function (receiver) {
      return receiver.o7l();
    }, null);
  }
  function _StateEntityDao$factory() {
    return getPropertyCallableRef('_StateEntityDao', 1, KProperty1, function (receiver) {
      return receiver.p7l();
    }, null);
  }
  function _StateDeleteCommandDao$factory() {
    return getPropertyCallableRef('_StateDeleteCommandDao', 1, KProperty1, function (receiver) {
      return receiver.q7l();
    }, null);
  }
  function _ClazzInviteDao$factory() {
    return getPropertyCallableRef('_ClazzInviteDao', 1, KProperty1, function (receiver) {
      return receiver.r7l();
    }, 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)).a65().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$_PersonPasskeyDao$delegate$lambda(this$0) {
    return function () {
      return new PersonPasskeyDao_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$_ClazzInviteDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzInviteDao_JdbcImpl(this$0);
    };
  }
  function UmAppDatabase_JdbcImpl(doorJdbcSourceDatabase, dataSource, dbUrl, dbName, jdbcQueryTimeout, jdbcDbType, logger) {
    UmAppDatabase.call(this);
    this.s7l_1 = doorJdbcSourceDatabase;
    this.t7l_1 = dataSource;
    this.u7l_1 = dbName;
    this.v7l_1 = jdbcQueryTimeout;
    var tmp = this;
    var tmp_0 = doorDatabaseMetadata(getKClassFromExpression(this)).n65();
    // Inline function 'kotlin.collections.toTypedArray' call
    var this_0 = doorDatabaseMetadata(getKClassFromExpression(this)).n65();
    var tmp$ret$0 = copyToArray(this_0);
    tmp.w7l_1 = new RoomDatabaseJdbcImplHelper(this.t7l_1, this, dbUrl, this.u7l_1, logger, tmp_0, new InvalidationTracker(tmp$ret$0.slice()), jdbcDbType);
    var tmp_1 = this;
    tmp_1.x7l_1 = lazy_0(UmAppDatabase_JdbcImpl$realNodeIdAuthCache$delegate$lambda(this));
    var tmp_2 = this;
    tmp_2.y7l_1 = lazy_0(UmAppDatabase_JdbcImpl$realPrimaryKeyManager$delegate$lambda);
    var tmp_3 = this;
    tmp_3.z7l_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonDao$delegate$lambda(this));
    var tmp_4 = this;
    tmp_4.a7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzDao$delegate$lambda(this));
    var tmp_5 = this;
    tmp_5.b7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseBlockDao$delegate$lambda(this));
    var tmp_6 = this;
    tmp_6.c7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseTerminologyDao$delegate$lambda(this));
    var tmp_7 = this;
    tmp_7.d7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseGroupSetDao$delegate$lambda(this));
    var tmp_8 = this;
    tmp_8.e7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseGroupMemberDao$delegate$lambda(this));
    var tmp_9 = this;
    tmp_9.f7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzEnrolmentDao$delegate$lambda(this));
    var tmp_10 = this;
    tmp_10.g7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_LeavingReasonDao$delegate$lambda(this));
    var tmp_11 = this;
    tmp_11.h7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryDao$delegate$lambda(this));
    var tmp_12 = this;
    tmp_12.i7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryContentCategoryJoinDao$delegate$lambda(this));
    var tmp_13 = this;
    tmp_13.j7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryParentChildJoinDao$delegate$lambda(this));
    var tmp_14 = this;
    tmp_14.k7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this));
    var tmp_15 = this;
    tmp_15.l7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentCategorySchemaDao$delegate$lambda(this));
    var tmp_16 = this;
    tmp_16.m7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentCategoryDao$delegate$lambda(this));
    var tmp_17 = this;
    tmp_17.n7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_LanguageDao$delegate$lambda(this));
    var tmp_18 = this;
    tmp_18.o7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_LanguageVariantDao$delegate$lambda(this));
    var tmp_19 = this;
    tmp_19.p7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonAuthDao$delegate$lambda(this));
    var tmp_20 = this;
    tmp_20.q7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonGroupDao$delegate$lambda(this));
    var tmp_21 = this;
    tmp_21.r7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonGroupMemberDao$delegate$lambda(this));
    var tmp_22 = this;
    tmp_22.s7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonPictureDao$delegate$lambda(this));
    var tmp_23 = this;
    tmp_23.t7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_VerbDao$delegate$lambda(this));
    var tmp_24 = this;
    tmp_24.u7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActivityEntityDao$delegate$lambda(this));
    var tmp_25 = this;
    tmp_25.v7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ReportDao$delegate$lambda(this));
    var tmp_26 = this;
    tmp_26.w7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_StatementDao$delegate$lambda(this));
    var tmp_27 = this;
    tmp_27.x7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActorDao$delegate$lambda(this));
    var tmp_28 = this;
    tmp_28.y7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzLogAttendanceRecordDao$delegate$lambda(this));
    var tmp_29 = this;
    tmp_29.z7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzLogDao$delegate$lambda(this));
    var tmp_30 = this;
    tmp_30.a7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ScheduleDao$delegate$lambda(this));
    var tmp_31 = this;
    tmp_31.b7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_HolidayCalendarDao$delegate$lambda(this));
    var tmp_32 = this;
    tmp_32.c7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_HolidayDao$delegate$lambda(this));
    var tmp_33 = this;
    tmp_33.d7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzAssignmentDao$delegate$lambda(this));
    var tmp_34 = this;
    tmp_34.e7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseAssignmentSubmissionDao$delegate$lambda(this));
    var tmp_35 = this;
    tmp_35.f7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseAssignmentSubmissionFileDao$delegate$lambda(this));
    var tmp_36 = this;
    tmp_36.g7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseAssignmentMarkDao$delegate$lambda(this));
    var tmp_37 = this;
    tmp_37.h7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_CommentsDao$delegate$lambda(this));
    var tmp_38 = this;
    tmp_38.i7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_SyncNodeDao$delegate$lambda(this));
    var tmp_39 = this;
    tmp_39.j7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_SiteDao$delegate$lambda(this));
    var tmp_40 = this;
    tmp_40.k7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_SiteTermsDao$delegate$lambda(this));
    var tmp_41 = this;
    tmp_41.l7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonParentJoinDao$delegate$lambda(this));
    var tmp_42 = this;
    tmp_42.m7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ScopedGrantDao$delegate$lambda(this));
    var tmp_43 = this;
    tmp_43.n7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ErrorReportDao$delegate$lambda(this));
    var tmp_44 = this;
    tmp_44.o7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonAuth2Dao$delegate$lambda(this));
    var tmp_45 = this;
    tmp_45.p7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_UserSessionDao$delegate$lambda(this));
    var tmp_46 = this;
    tmp_46.q7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryImportJobDao$delegate$lambda(this));
    var tmp_47 = this;
    tmp_47.r7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_CoursePictureDao$delegate$lambda(this));
    var tmp_48 = this;
    tmp_48.s7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryPictureDao$delegate$lambda(this));
    var tmp_49 = this;
    tmp_49.t7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_MessageDao$delegate$lambda(this));
    var tmp_50 = this;
    tmp_50.u7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_PeerReviewerAllocationDao$delegate$lambda(this));
    var tmp_51 = this;
    tmp_51.v7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_DiscussionPostDao$delegate$lambda(this));
    var tmp_52 = this;
    tmp_52.w7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ExternalAppPermissionDao$delegate$lambda(this));
    var tmp_53 = this;
    tmp_53.x7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryVersionDao$delegate$lambda(this));
    var tmp_54 = this;
    tmp_54.y7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_OutgoingReplicationDao$delegate$lambda(this));
    var tmp_55 = this;
    tmp_55.z7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_TransferJobDao$delegate$lambda(this));
    var tmp_56 = this;
    tmp_56.a7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_TransferJobItemDao$delegate$lambda(this));
    var tmp_57 = this;
    tmp_57.b7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_CacheLockJoinDao$delegate$lambda(this));
    var tmp_58 = this;
    tmp_58.c7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_OfflineItemDao$delegate$lambda(this));
    var tmp_59 = this;
    tmp_59.d7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_DeletedItemDao$delegate$lambda(this));
    var tmp_60 = this;
    tmp_60.e7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_EnrolmentRequestDao$delegate$lambda(this));
    var tmp_61 = this;
    tmp_61.f7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_CoursePermissionDao$delegate$lambda(this));
    var tmp_62 = this;
    tmp_62.g7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_SystemPermissionDao$delegate$lambda(this));
    var tmp_63 = this;
    tmp_63.h7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseBlockPictureDao$delegate$lambda(this));
    var tmp_64 = this;
    tmp_64.i7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryPicture2Dao$delegate$lambda(this));
    var tmp_65 = this;
    tmp_65.j7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_TransferJobErrorDao$delegate$lambda(this));
    var tmp_66 = this;
    tmp_66.k7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_StudentResultDao$delegate$lambda(this));
    var tmp_67 = this;
    tmp_67.l7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_VerbLangMapEntryDao$delegate$lambda(this));
    var tmp_68 = this;
    tmp_68.m7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_GroupMemberActorJoinDao$delegate$lambda(this));
    var tmp_69 = this;
    tmp_69.n7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActivityLangMapEntryDao$delegate$lambda(this));
    var tmp_70 = this;
    tmp_70.o7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActivityInteractionDao$delegate$lambda(this));
    var tmp_71 = this;
    tmp_71.p7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActivityExtensionDao$delegate$lambda(this));
    var tmp_72 = this;
    tmp_72.q7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_StatementContextActivityJoinDao$delegate$lambda(this));
    var tmp_73 = this;
    tmp_73.r7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_XapiSessionEntityDao$delegate$lambda(this));
    var tmp_74 = this;
    tmp_74.s7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_StatementEntityJsonDao$delegate$lambda(this));
    var tmp_75 = this;
    tmp_75.t7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonPasskeyDao$delegate$lambda(this));
    var tmp_76 = this;
    tmp_76.u7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_StateEntityDao$delegate$lambda(this));
    var tmp_77 = this;
    tmp_77.v7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_StateDeleteCommandDao$delegate$lambda(this));
    var tmp_78 = this;
    tmp_78.w7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzInviteDao$delegate$lambda(this));
  }
  protoOf(UmAppDatabase_JdbcImpl).c5l = function () {
    return this.v7l_1;
  };
  protoOf(UmAppDatabase_JdbcImpl).k72 = function () {
    return 207;
  };
  protoOf(UmAppDatabase_JdbcImpl).a5k = function () {
    return this.w7l_1;
  };
  protoOf(UmAppDatabase_JdbcImpl).l5j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.x7l_1;
    realNodeIdAuthCache$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).v5i = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.y7l_1;
    realPrimaryKeyManager$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).w5l = function () {
    return this.w7l_1.r5j_1;
  };
  protoOf(UmAppDatabase_JdbcImpl).e7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.z7l_1;
    _PersonDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).f7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.a7m_1;
    _ClazzDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).g7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.b7m_1;
    _CourseBlockDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).h7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.c7m_1;
    _CourseTerminologyDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).i7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.d7m_1;
    _CourseGroupSetDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).j7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.e7m_1;
    _CourseGroupMemberDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).k7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.f7m_1;
    _ClazzEnrolmentDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).l7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.g7m_1;
    _LeavingReasonDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).m7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.h7m_1;
    _ContentEntryDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).n7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.i7m_1;
    _ContentEntryContentCategoryJoinDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).o7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.j7m_1;
    _ContentEntryParentChildJoinDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).p7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.k7m_1;
    _ContentEntryRelatedEntryJoinDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).q7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.l7m_1;
    _ContentCategorySchemaDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).r7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.m7m_1;
    _ContentCategoryDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).s7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.n7m_1;
    _LanguageDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).t7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.o7m_1;
    _LanguageVariantDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).u7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.q7m_1;
    _PersonGroupDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).v7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.r7m_1;
    _PersonGroupMemberDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).w7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.s7m_1;
    _PersonPictureDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).x7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.t7m_1;
    _VerbDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).y7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.u7m_1;
    _ActivityEntityDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).z7j = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.v7m_1;
    _ReportDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).a7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.w7m_1;
    _StatementDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).b7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.x7m_1;
    _ActorDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).c7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.y7m_1;
    _ClazzLogAttendanceRecordDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).d7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.z7m_1;
    _ClazzLogDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).e7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.a7n_1;
    _ScheduleDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).f7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.b7n_1;
    _HolidayCalendarDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).g7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.c7n_1;
    _HolidayDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).h7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.d7n_1;
    _ClazzAssignmentDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).i7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.e7n_1;
    _CourseAssignmentSubmissionDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).j7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.f7n_1;
    _CourseAssignmentSubmissionFileDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).k7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.g7n_1;
    _CourseAssignmentMarkDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).l7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.h7n_1;
    _CommentsDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).m7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.j7n_1;
    _SiteDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).n7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.k7n_1;
    _SiteTermsDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).o7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.l7n_1;
    _PersonParentJoinDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).p7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.m7n_1;
    _ScopedGrantDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).q7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.n7n_1;
    _ErrorReportDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).r7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.o7n_1;
    _PersonAuth2Dao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).s7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.p7n_1;
    _UserSessionDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).x7o = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.q7n_1;
    _ContentEntryImportJobDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).t7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.r7n_1;
    _CoursePictureDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).u7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.s7n_1;
    _ContentEntryPictureDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).v7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.t7n_1;
    _MessageDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).w7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.u7n_1;
    _PeerReviewerAllocationDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).x7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.v7n_1;
    _DiscussionPostDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).y7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.x7n_1;
    _ContentEntryVersionDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).y7o = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.z7n_1;
    _TransferJobDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).z7o = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.a7o_1;
    _TransferJobItemDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).z7k = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.c7o_1;
    _OfflineItemDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).a7p = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.d7o_1;
    _DeletedItemDao$factory();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).a7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.e7o_1;
    _EnrolmentRequestDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).b7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.f7o_1;
    _CoursePermissionDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).c7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.g7o_1;
    _SystemPermissionDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).d7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.h7o_1;
    _CourseBlockPictureDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).e7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.i7o_1;
    _ContentEntryPicture2Dao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).f7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.k7o_1;
    _StudentResultDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).g7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.l7o_1;
    _VerbLangMapEntryDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).h7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.m7o_1;
    _GroupMemberActorJoinDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).i7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.n7o_1;
    _ActivityLangMapEntryDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).j7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.o7o_1;
    _ActivityInteractionDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).k7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.p7o_1;
    _ActivityExtensionDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).l7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.q7o_1;
    _StatementContextActivityJoinDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).m7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.r7o_1;
    _XapiSessionEntityDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).n7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.s7o_1;
    _StatementEntityJsonDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).o7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.t7o_1;
    _PersonPasskeyDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).p7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.u7o_1;
    _StateEntityDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).q7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.v7o_1;
    _StateDeleteCommandDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).r7l = function () {
    // Inline function 'kotlin.getValue' call
    var this_0 = this.w7o_1;
    _ClazzInviteDao$factory_0();
    return this_0.t2();
  };
  protoOf(UmAppDatabase_JdbcImpl).q71 = function () {
    var _stmtList = mutableLinkedListOf([]);
    var tmp0_subject = this.w7l_1.s5j_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 (207, '')";
      _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 , isPersonalAccount  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 , clazzEnrolmentInviteUid  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 ClazzInvite (  ciPersonUid  INTEGER  NOT NULL , ciRoleId  INTEGER  NOT NULL , ciClazzUid  INTEGER  NOT NULL , inviteType  INTEGER  NOT NULL  DEFAULT 1 , inviteContact  TEXT  NOT NULL , inviteToken  TEXT  NOT NULL , inviteStatus  INTEGER  NOT NULL , inviteExpire  INTEGER  NOT NULL , inviteLct  INTEGER  NOT NULL , ciUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_13);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_14 = '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_14);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_15 = '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_15);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_16 = '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_16);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_17 = 'CREATE INDEX parent_child ON ContentEntryParentChildJoin (cepcjChildContentEntryUid, cepcjParentContentEntryUid)';
      _stmtList.i1(element_17);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_18 = '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_18);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_19 = '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_19);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_20 = '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_20);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_21 = '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_21);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_22 = '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_22);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_23 = 'CREATE TABLE IF NOT EXISTS PersonAuth (  passwordHash  TEXT , personAuthStatus  INTEGER  NOT NULL , personAuthUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_23);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_24 = '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_24);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_25 = '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_25);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_26 = '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_26);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_27 = '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_27);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_28 = '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_28);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_29 = '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_29);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_30 = 'CREATE INDEX idx_stmt_actor_person ON StatementEntity (statementActorPersonUid)';
      _stmtList.i1(element_30);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_31 = 'CREATE INDEX idx_statement_clazz_person ON StatementEntity (statementClazzUid, statementActorPersonUid)';
      _stmtList.i1(element_31);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_32 = 'CREATE INDEX idx_statement_cbuid_actor ON StatementEntity (statementCbUid, statementActorUid)';
      _stmtList.i1(element_32);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_33 = '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_33);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_34 = 'CREATE INDEX idx_actorentity_uid_personuid ON ActorEntity (actorPersonUid)';
      _stmtList.i1(element_34);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_35 = 'CREATE INDEX idx_actorentity_actorobjecttype ON ActorEntity (actorObjectType)';
      _stmtList.i1(element_35);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_36 = 'CREATE TABLE IF NOT EXISTS SyncNode (  nodeClientId  INTEGER  NOT NULL , PRIMARY KEY (nodeClientId) )';
      _stmtList.i1(element_36);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_37 = '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_37);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_38 = 'CREATE INDEX idx_comments_entity_submitter ON Comments (commentsEntityUid, commentsForSubmitterUid)';
      _stmtList.i1(element_38);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_39 = '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_39);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_40 = '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_40);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_41 = '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_41);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_42 = '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_42);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_43 = '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_43);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_44 = 'CREATE INDEX idx_group_to_entity ON ScopedGrant (sgGroupUid, sgPermissions, sgTableId, sgEntityUid)';
      _stmtList.i1(element_44);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_45 = 'CREATE INDEX idx_entity_to_group ON ScopedGrant (sgTableId, sgEntityUid, sgPermissions, sgGroupUid)';
      _stmtList.i1(element_45);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_46 = '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_46);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_47 = '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_47);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_48 = '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_48);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_49 = '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_49);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_50 = '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_50);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_51 = '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_51);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_52 = '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_52);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_53 = '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_53);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_54 = 'CREATE INDEX person_status_node_idx ON UserSession (usPersonUid, usStatus, usClientNodeId)';
      _stmtList.i1(element_54);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_55 = 'CREATE INDEX node_status_person_idx ON UserSession (usClientNodeId, usStatus, usPersonUid)';
      _stmtList.i1(element_55);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_56 = '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_56);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_57 = '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_57);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_58 = 'CREATE INDEX index_ContentEntryImportJob_cjiContentEntryUid_cjiFinishTime ON ContentEntryImportJob (cjiContentEntryUid, cjiFinishTime)';
      _stmtList.i1(element_58);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_59 = '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_59);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_60 = 'CREATE INDEX idx_courseblock_cbclazzuid ON CourseBlock (cbClazzUid)';
      _stmtList.i1(element_60);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_61 = 'CREATE TABLE IF NOT EXISTS CourseTerminology (  ctTitle  TEXT , ctTerminology  TEXT , ctLct  INTEGER  NOT NULL , ctUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_61);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_62 = '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_62);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_63 = '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_63);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_64 = '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_64);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_65 = '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_65);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_66 = '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_66);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_67 = '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_67);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_68 = '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_68);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_69 = '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_69);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_70 = 'CREATE INDEX message_idx_send_to_time ON Message (messageSenderPersonUid, messageToPersonUid, messageTimestamp)';
      _stmtList.i1(element_70);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_71 = '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_71);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_72 = '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_72);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_73 = '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_73);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_74 = 'CREATE INDEX TransferJob_idx_tjTableId_EntityUid ON TransferJob (tjTableId, tjEntityUid)';
      _stmtList.i1(element_74);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_75 = '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_75);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_76 = 'CREATE INDEX tji_table_entity_etag ON TransferJobItem (tjiTableId, tjiEntityUid, tjiEntityEtag)';
      _stmtList.i1(element_76);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_77 = 'CREATE INDEX transferjob_tjuid ON TransferJobItem (tjiTjUid)';
      _stmtList.i1(element_77);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_78 = '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_78);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_79 = 'CREATE INDEX idx_clj_table_entity_url ON CacheLockJoin (cljTableId, cljEntityUid, cljUrl)';
      _stmtList.i1(element_79);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_80 = 'CREATE INDEX idx_clj_offline_item_uid ON CacheLockJoin (cljOiUid)';
      _stmtList.i1(element_80);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_81 = '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_81);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_82 = 'CREATE INDEX offline_item_node_content_entry ON OfflineItem (oiNodeId, oiContentEntryUid)';
      _stmtList.i1(element_82);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_83 = '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_83);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_84 = '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_84);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_85 = 'CREATE INDEX delitem_idx_status_time ON DeletedItem (delItemStatus, delItemTimeDeleted)';
      _stmtList.i1(element_85);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_86 = '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_86);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_87 = 'CREATE INDEX idx_enrolmentrequest_by_clazz ON EnrolmentRequest (erClazzUid, erStatus)';
      _stmtList.i1(element_87);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_88 = 'CREATE INDEX idx_enrolmentrequest_by_person ON EnrolmentRequest (erPersonUid, erStatus)';
      _stmtList.i1(element_88);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_89 = '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_89);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_90 = 'CREATE INDEX idx_coursepermission_clazzuid ON CoursePermission (cpClazzUid)';
      _stmtList.i1(element_90);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_91 = '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_91);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_92 = 'CREATE INDEX idx_systempermission_personuid ON SystemPermission (spToPersonUid)';
      _stmtList.i1(element_92);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_93 = 'CREATE TABLE IF NOT EXISTS CourseBlockPicture (  cbpUid  INTEGER  PRIMARY KEY  NOT NULL , cbpLct  INTEGER  NOT NULL , cbpPictureUri  TEXT , cbpThumbnailUri  TEXT )';
      _stmtList.i1(element_93);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_94 = 'CREATE TABLE IF NOT EXISTS ContentEntryPicture2 (  cepUid  INTEGER  PRIMARY KEY  NOT NULL , cepLct  INTEGER  NOT NULL , cepPictureUri  TEXT , cepThumbnailUri  TEXT )';
      _stmtList.i1(element_94);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_95 = '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_95);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_96 = 'CREATE INDEX idx_transferjoberror_tjetjuid ON TransferJobError (tjeTjUid)';
      _stmtList.i1(element_96);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_97 = '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_97);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_98 = '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_98);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_99 = 'CREATE INDEX idx_groupmemberactorjoin_gmajgroupactoruid ON GroupMemberActorJoin (gmajGroupActorUid)';
      _stmtList.i1(element_99);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_100 = 'CREATE INDEX idx_groupmemberactorjoin_gmajmemberactoruid ON GroupMemberActorJoin (gmajMemberActorUid)';
      _stmtList.i1(element_100);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_101 = 'CREATE TABLE IF NOT EXISTS ActivityLangMapEntry (  almeActivityUid  INTEGER  NOT NULL , almeHash  INTEGER  NOT NULL , almeLangCode  TEXT , almePropName  TEXT , almeValue  TEXT , almeAieHash  INTEGER  NOT NULL , almeLastMod  INTEGER  NOT NULL , PRIMARY KEY (almeActivityUid, almeHash) )';
      _stmtList.i1(element_101);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_102 = '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_102);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_103 = '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_103);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_104 = '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_104);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_105 = '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_105);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_106 = 'CREATE TABLE IF NOT EXISTS PersonPasskey (  ppPersonUid  INTEGER  NOT NULL , ppAttestationObj  TEXT , ppClientDataJson  TEXT , ppOriginString  TEXT , ppId  TEXT , ppChallengeString  TEXT , ppPublicKey  TEXT , isRevoked  INTEGER  NOT NULL , ppPasskeyLct  INTEGER  NOT NULL , personPasskeyUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_106);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_107 = '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_107);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_108 = '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_108);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_109 = '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_109);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_110 = '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_110);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_111 = 'CREATE TABLE IF NOT EXISTS PendingRepositorySession (  endpointUrl  TEXT , remoteNodeId  INTEGER  NOT NULL , rsUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )';
      _stmtList.i1(element_111);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_112 = 'CREATE TABLE IF NOT EXISTS DoorNode (  auth  TEXT , nodeId  INTEGER  NOT NULL , rel  INTEGER  NOT NULL  DEFAULT 2 , PRIMARY KEY (nodeId) )';
      _stmtList.i1(element_112);
    } else if (tmp0_subject === 2) {
      // Inline function 'kotlin.collections.plusAssign' call
      var element_113 = 'CREATE TABLE IF NOT EXISTS _doorwayinfo (dbVersion int primary key, dbHash varchar(255))';
      _stmtList.i1(element_113);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_114 = "INSERT INTO _doorwayinfo VALUES (207, '')";
      _stmtList.i1(element_114);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_115 = '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_115);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_116 = '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_116);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_117 = '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_117);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_118 = '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_118);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_119 = '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_119);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_120 = 'CREATE TABLE IF NOT EXISTS Person (  username  TEXT , firstNames  TEXT , lastName  TEXT , emailAddr  TEXT , phoneNum  TEXT , gender  INTEGER  NOT NULL , active  BOOL  NOT NULL , isPersonalAccount  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_120);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_121 = '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_121);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_122 = '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 , clazzEnrolmentInviteUid  BIGINT  NOT NULL , clazzEnrolmentUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_122);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_123 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentPersonUid_clazzEnrolmentClazzUid ON ClazzEnrolment (clazzEnrolmentPersonUid, clazzEnrolmentClazzUid)';
      _stmtList.i1(element_123);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_124 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentClazzUid_clazzEnrolmentPersonUid ON ClazzEnrolment (clazzEnrolmentClazzUid, clazzEnrolmentPersonUid)';
      _stmtList.i1(element_124);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_125 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentClazzUid_clazzEnrolmentRole ON ClazzEnrolment (clazzEnrolmentClazzUid, clazzEnrolmentRole)';
      _stmtList.i1(element_125);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_126 = '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_126);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_127 = 'CREATE TABLE IF NOT EXISTS ClazzInvite (  ciPersonUid  BIGINT  NOT NULL , ciRoleId  BIGINT  NOT NULL , ciClazzUid  BIGINT  NOT NULL , inviteType  INTEGER  NOT NULL  DEFAULT 1 , inviteContact  TEXT  NOT NULL , inviteToken  TEXT  NOT NULL , inviteStatus  INTEGER  NOT NULL , inviteExpire  BIGINT  NOT NULL , inviteLct  BIGINT  NOT NULL , ciUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_127);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_128 = '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_128);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_129 = '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_129);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_130 = '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_130);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_131 = 'CREATE INDEX parent_child ON ContentEntryParentChildJoin (cepcjChildContentEntryUid, cepcjParentContentEntryUid)';
      _stmtList.i1(element_131);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_132 = '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_132);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_133 = '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_133);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_134 = '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_134);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_135 = '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_135);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_136 = '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_136);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_137 = 'CREATE TABLE IF NOT EXISTS PersonAuth (  passwordHash  TEXT , personAuthStatus  INTEGER  NOT NULL , personAuthUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_137);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_138 = '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_138);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_139 = '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_139);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_140 = '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_140);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_141 = '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_141);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_142 = '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_142);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_143 = '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_143);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_144 = 'CREATE INDEX idx_stmt_actor_person ON StatementEntity (statementActorPersonUid)';
      _stmtList.i1(element_144);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_145 = 'CREATE INDEX idx_statement_clazz_person ON StatementEntity (statementClazzUid, statementActorPersonUid)';
      _stmtList.i1(element_145);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_146 = 'CREATE INDEX idx_statement_cbuid_actor ON StatementEntity (statementCbUid, statementActorUid)';
      _stmtList.i1(element_146);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_147 = '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_147);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_148 = 'CREATE INDEX idx_actorentity_uid_personuid ON ActorEntity (actorPersonUid)';
      _stmtList.i1(element_148);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_149 = 'CREATE INDEX idx_actorentity_actorobjecttype ON ActorEntity (actorObjectType)';
      _stmtList.i1(element_149);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_150 = 'CREATE TABLE IF NOT EXISTS SyncNode (  nodeClientId  BIGINT  NOT NULL , PRIMARY KEY (nodeClientId) )';
      _stmtList.i1(element_150);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_151 = '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_151);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_152 = 'CREATE INDEX idx_comments_entity_submitter ON Comments (commentsEntityUid, commentsForSubmitterUid)';
      _stmtList.i1(element_152);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_153 = '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_153);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_154 = '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_154);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_155 = '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_155);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_156 = '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_156);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_157 = '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_157);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_158 = 'CREATE INDEX idx_group_to_entity ON ScopedGrant (sgGroupUid, sgPermissions, sgTableId, sgEntityUid)';
      _stmtList.i1(element_158);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_159 = 'CREATE INDEX idx_entity_to_group ON ScopedGrant (sgTableId, sgEntityUid, sgPermissions, sgGroupUid)';
      _stmtList.i1(element_159);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_160 = '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_160);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_161 = '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_161);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_162 = '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_162);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_163 = '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_163);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_164 = '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_164);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_165 = '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_165);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_166 = '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_166);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_167 = '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_167);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_168 = 'CREATE INDEX person_status_node_idx ON UserSession (usPersonUid, usStatus, usClientNodeId)';
      _stmtList.i1(element_168);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_169 = 'CREATE INDEX node_status_person_idx ON UserSession (usClientNodeId, usStatus, usPersonUid)';
      _stmtList.i1(element_169);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_170 = '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_170);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_171 = '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_171);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_172 = 'CREATE INDEX index_ContentEntryImportJob_cjiContentEntryUid_cjiFinishTime ON ContentEntryImportJob (cjiContentEntryUid, cjiFinishTime)';
      _stmtList.i1(element_172);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_173 = '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_173);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_174 = 'CREATE INDEX idx_courseblock_cbclazzuid ON CourseBlock (cbClazzUid)';
      _stmtList.i1(element_174);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_175 = 'CREATE TABLE IF NOT EXISTS CourseTerminology (  ctTitle  TEXT , ctTerminology  TEXT , ctLct  BIGINT  NOT NULL , ctUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_175);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_176 = '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_176);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_177 = '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_177);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_178 = '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_178);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_179 = '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_179);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_180 = '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_180);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_181 = '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_181);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_182 = '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_182);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_183 = '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_183);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_184 = 'CREATE INDEX message_idx_send_to_time ON Message (messageSenderPersonUid, messageToPersonUid, messageTimestamp)';
      _stmtList.i1(element_184);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_185 = '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_185);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_186 = '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_186);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_187 = '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_187);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_188 = 'CREATE INDEX TransferJob_idx_tjTableId_EntityUid ON TransferJob (tjTableId, tjEntityUid)';
      _stmtList.i1(element_188);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_189 = '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_189);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_190 = 'CREATE INDEX tji_table_entity_etag ON TransferJobItem (tjiTableId, tjiEntityUid, tjiEntityEtag)';
      _stmtList.i1(element_190);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_191 = 'CREATE INDEX transferjob_tjuid ON TransferJobItem (tjiTjUid)';
      _stmtList.i1(element_191);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_192 = '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_192);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_193 = 'CREATE INDEX idx_clj_table_entity_url ON CacheLockJoin (cljTableId, cljEntityUid, cljUrl)';
      _stmtList.i1(element_193);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_194 = 'CREATE INDEX idx_clj_offline_item_uid ON CacheLockJoin (cljOiUid)';
      _stmtList.i1(element_194);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_195 = '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_195);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_196 = 'CREATE INDEX offline_item_node_content_entry ON OfflineItem (oiNodeId, oiContentEntryUid)';
      _stmtList.i1(element_196);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_197 = '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_197);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_198 = '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_198);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_199 = 'CREATE INDEX delitem_idx_status_time ON DeletedItem (delItemStatus, delItemTimeDeleted)';
      _stmtList.i1(element_199);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_200 = '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_200);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_201 = 'CREATE INDEX idx_enrolmentrequest_by_clazz ON EnrolmentRequest (erClazzUid, erStatus)';
      _stmtList.i1(element_201);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_202 = 'CREATE INDEX idx_enrolmentrequest_by_person ON EnrolmentRequest (erPersonUid, erStatus)';
      _stmtList.i1(element_202);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_203 = '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_203);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_204 = 'CREATE INDEX idx_coursepermission_clazzuid ON CoursePermission (cpClazzUid)';
      _stmtList.i1(element_204);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_205 = '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_205);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_206 = 'CREATE INDEX idx_systempermission_personuid ON SystemPermission (spToPersonUid)';
      _stmtList.i1(element_206);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_207 = 'CREATE TABLE IF NOT EXISTS CourseBlockPicture (  cbpUid  BIGINT  PRIMARY KEY  NOT NULL , cbpLct  BIGINT  NOT NULL , cbpPictureUri  TEXT , cbpThumbnailUri  TEXT )';
      _stmtList.i1(element_207);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_208 = 'CREATE TABLE IF NOT EXISTS ContentEntryPicture2 (  cepUid  BIGINT  PRIMARY KEY  NOT NULL , cepLct  BIGINT  NOT NULL , cepPictureUri  TEXT , cepThumbnailUri  TEXT )';
      _stmtList.i1(element_208);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_209 = '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_209);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_210 = 'CREATE INDEX idx_transferjoberror_tjetjuid ON TransferJobError (tjeTjUid)';
      _stmtList.i1(element_210);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_211 = '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_211);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_212 = '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_212);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_213 = 'CREATE INDEX idx_groupmemberactorjoin_gmajgroupactoruid ON GroupMemberActorJoin (gmajGroupActorUid)';
      _stmtList.i1(element_213);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_214 = 'CREATE INDEX idx_groupmemberactorjoin_gmajmemberactoruid ON GroupMemberActorJoin (gmajMemberActorUid)';
      _stmtList.i1(element_214);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_215 = 'CREATE TABLE IF NOT EXISTS ActivityLangMapEntry (  almeActivityUid  BIGINT  NOT NULL , almeHash  BIGINT  NOT NULL , almeLangCode  TEXT , almePropName  TEXT , almeValue  TEXT , almeAieHash  BIGINT  NOT NULL , almeLastMod  BIGINT  NOT NULL , PRIMARY KEY (almeActivityUid, almeHash) )';
      _stmtList.i1(element_215);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_216 = '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_216);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_217 = '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_217);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_218 = '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_218);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_219 = '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_219);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_220 = 'CREATE TABLE IF NOT EXISTS PersonPasskey (  ppPersonUid  BIGINT  NOT NULL , ppAttestationObj  TEXT , ppClientDataJson  TEXT , ppOriginString  TEXT , ppId  TEXT , ppChallengeString  TEXT , ppPublicKey  TEXT , isRevoked  INTEGER  NOT NULL , ppPasskeyLct  BIGINT  NOT NULL , personPasskeyUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_220);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_221 = '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_221);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_222 = '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_222);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_223 = '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_223);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_224 = '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_224);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_225 = 'CREATE TABLE IF NOT EXISTS PendingRepositorySession (  endpointUrl  TEXT , remoteNodeId  BIGINT  NOT NULL , rsUid  BIGSERIAL  PRIMARY KEY  NOT NULL )';
      _stmtList.i1(element_225);
      // Inline function 'kotlin.collections.plusAssign' call
      var element_226 = 'CREATE TABLE IF NOT EXISTS DoorNode (  auth  TEXT , nodeId  BIGINT  NOT NULL , rel  INTEGER  NOT NULL  DEFAULT 2 , PRIMARY KEY (nodeId) )';
      _stmtList.i1(element_226);
    }
    return _stmtList;
  };
  protoOf(UmAppDatabase_JdbcImpl).n7d = function () {
    return this.e7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).o7d = function () {
    return this.f7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).p7d = function () {
    return this.g7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).q7d = function () {
    return this.h7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).r7d = function () {
    return this.i7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).s7d = function () {
    return this.j7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).t7d = function () {
    return this.k7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).u7d = function () {
    return this.l7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).v7d = function () {
    return this.m7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).w7d = function () {
    return this.n7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).x7d = function () {
    return this.o7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).y7d = function () {
    return this.p7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).z7d = function () {
    return this.q7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).a7e = function () {
    return this.r7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).b7e = function () {
    return this.s7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).c7e = function () {
    return this.t7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).d7e = function () {
    return this.u7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).e7e = function () {
    return this.v7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).f7e = function () {
    return this.w7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).g7e = function () {
    return this.x7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).h7e = function () {
    return this.y7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).i7e = function () {
    return this.z7j();
  };
  protoOf(UmAppDatabase_JdbcImpl).j7e = function () {
    return this.a7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).k7e = function () {
    return this.b7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).l7e = function () {
    return this.c7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).m7e = function () {
    return this.d7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).n7e = function () {
    return this.e7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).o7e = function () {
    return this.f7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).p7e = function () {
    return this.g7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).q7e = function () {
    return this.h7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).r7e = function () {
    return this.i7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).s7e = function () {
    return this.j7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).t7e = function () {
    return this.k7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).u7e = function () {
    return this.l7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).v7e = function () {
    return this.m7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).w7e = function () {
    return this.n7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).x7e = function () {
    return this.o7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).y7e = function () {
    return this.p7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).z7e = function () {
    return this.q7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).a7f = function () {
    return this.r7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).b7f = function () {
    return this.s7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).c7f = function () {
    return this.x7o();
  };
  protoOf(UmAppDatabase_JdbcImpl).d7f = function () {
    return this.t7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).e7f = function () {
    return this.u7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).f7f = function () {
    return this.v7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).g7f = function () {
    return this.w7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).h7f = function () {
    return this.x7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).i7f = function () {
    return this.y7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).j7f = function () {
    return this.y7o();
  };
  protoOf(UmAppDatabase_JdbcImpl).k7f = function () {
    return this.z7o();
  };
  protoOf(UmAppDatabase_JdbcImpl).l7f = function () {
    return this.z7k();
  };
  protoOf(UmAppDatabase_JdbcImpl).m7f = function () {
    return this.a7p();
  };
  protoOf(UmAppDatabase_JdbcImpl).n7f = function () {
    return this.a7l();
  };
  protoOf(UmAppDatabase_JdbcImpl).o7f = function () {
    return this.b7l();
  };
  protoOf(UmAppDatabase_JdbcImpl).p7f = function () {
    return this.c7l();
  };
  protoOf(UmAppDatabase_JdbcImpl).q7f = function () {
    return this.d7l();
  };
  protoOf(UmAppDatabase_JdbcImpl).r7f = function () {
    return this.e7l();
  };
  protoOf(UmAppDatabase_JdbcImpl).s7f = function () {
    return this.f7l();
  };
  protoOf(UmAppDatabase_JdbcImpl).t7f = function () {
    return this.g7l();
  };
  protoOf(UmAppDatabase_JdbcImpl).u7f = function () {
    return this.h7l();
  };
  protoOf(UmAppDatabase_JdbcImpl).v7f = function () {
    return this.i7l();
  };
  protoOf(UmAppDatabase_JdbcImpl).w7f = function () {
    return this.j7l();
  };
  protoOf(UmAppDatabase_JdbcImpl).x7f = function () {
    return this.k7l();
  };
  protoOf(UmAppDatabase_JdbcImpl).y7f = function () {
    return this.l7l();
  };
  protoOf(UmAppDatabase_JdbcImpl).z7f = function () {
    return this.m7l();
  };
  protoOf(UmAppDatabase_JdbcImpl).a7g = function () {
    return this.n7l();
  };
  protoOf(UmAppDatabase_JdbcImpl).b7g = function () {
    return this.o7l();
  };
  protoOf(UmAppDatabase_JdbcImpl).c7g = function () {
    return this.p7l();
  };
  protoOf(UmAppDatabase_JdbcImpl).d7g = function () {
    return this.q7l();
  };
  protoOf(UmAppDatabase_JdbcImpl).e7g = function () {
    return this.r7l();
  };
  function realNodeIdAuthCache$factory() {
    return getPropertyCallableRef('realNodeIdAuthCache', 1, KProperty1, function (receiver) {
      return receiver.l5j();
    }, null);
  }
  function realPrimaryKeyManager$factory() {
    return getPropertyCallableRef('realPrimaryKeyManager', 1, KProperty1, function (receiver) {
      return receiver.v5i();
    }, null);
  }
  function _PersonDao$factory_0() {
    return getPropertyCallableRef('_PersonDao', 1, KProperty1, function (receiver) {
      return receiver.e7j();
    }, null);
  }
  function _ClazzDao$factory_0() {
    return getPropertyCallableRef('_ClazzDao', 1, KProperty1, function (receiver) {
      return receiver.f7j();
    }, null);
  }
  function _CourseBlockDao$factory_0() {
    return getPropertyCallableRef('_CourseBlockDao', 1, KProperty1, function (receiver) {
      return receiver.g7j();
    }, null);
  }
  function _CourseTerminologyDao$factory_0() {
    return getPropertyCallableRef('_CourseTerminologyDao', 1, KProperty1, function (receiver) {
      return receiver.h7j();
    }, null);
  }
  function _CourseGroupSetDao$factory_0() {
    return getPropertyCallableRef('_CourseGroupSetDao', 1, KProperty1, function (receiver) {
      return receiver.i7j();
    }, null);
  }
  function _CourseGroupMemberDao$factory_0() {
    return getPropertyCallableRef('_CourseGroupMemberDao', 1, KProperty1, function (receiver) {
      return receiver.j7j();
    }, null);
  }
  function _ClazzEnrolmentDao$factory_0() {
    return getPropertyCallableRef('_ClazzEnrolmentDao', 1, KProperty1, function (receiver) {
      return receiver.k7j();
    }, null);
  }
  function _LeavingReasonDao$factory_0() {
    return getPropertyCallableRef('_LeavingReasonDao', 1, KProperty1, function (receiver) {
      return receiver.l7j();
    }, null);
  }
  function _ContentEntryDao$factory_0() {
    return getPropertyCallableRef('_ContentEntryDao', 1, KProperty1, function (receiver) {
      return receiver.m7j();
    }, null);
  }
  function _ContentEntryContentCategoryJoinDao$factory_0() {
    return getPropertyCallableRef('_ContentEntryContentCategoryJoinDao', 1, KProperty1, function (receiver) {
      return receiver.n7j();
    }, null);
  }
  function _ContentEntryParentChildJoinDao$factory_0() {
    return getPropertyCallableRef('_ContentEntryParentChildJoinDao', 1, KProperty1, function (receiver) {
      return receiver.o7j();
    }, null);
  }
  function _ContentEntryRelatedEntryJoinDao$factory_0() {
    return getPropertyCallableRef('_ContentEntryRelatedEntryJoinDao', 1, KProperty1, function (receiver) {
      return receiver.p7j();
    }, null);
  }
  function _ContentCategorySchemaDao$factory_0() {
    return getPropertyCallableRef('_ContentCategorySchemaDao', 1, KProperty1, function (receiver) {
      return receiver.q7j();
    }, null);
  }
  function _ContentCategoryDao$factory_0() {
    return getPropertyCallableRef('_ContentCategoryDao', 1, KProperty1, function (receiver) {
      return receiver.r7j();
    }, null);
  }
  function _LanguageDao$factory_0() {
    return getPropertyCallableRef('_LanguageDao', 1, KProperty1, function (receiver) {
      return receiver.s7j();
    }, null);
  }
  function _LanguageVariantDao$factory_0() {
    return getPropertyCallableRef('_LanguageVariantDao', 1, KProperty1, function (receiver) {
      return receiver.t7j();
    }, null);
  }
  function _PersonGroupDao$factory_0() {
    return getPropertyCallableRef('_PersonGroupDao', 1, KProperty1, function (receiver) {
      return receiver.u7j();
    }, null);
  }
  function _PersonGroupMemberDao$factory_0() {
    return getPropertyCallableRef('_PersonGroupMemberDao', 1, KProperty1, function (receiver) {
      return receiver.v7j();
    }, null);
  }
  function _PersonPictureDao$factory_0() {
    return getPropertyCallableRef('_PersonPictureDao', 1, KProperty1, function (receiver) {
      return receiver.w7j();
    }, null);
  }
  function _VerbDao$factory_0() {
    return getPropertyCallableRef('_VerbDao', 1, KProperty1, function (receiver) {
      return receiver.x7j();
    }, null);
  }
  function _ActivityEntityDao$factory_0() {
    return getPropertyCallableRef('_ActivityEntityDao', 1, KProperty1, function (receiver) {
      return receiver.y7j();
    }, null);
  }
  function _ReportDao$factory_0() {
    return getPropertyCallableRef('_ReportDao', 1, KProperty1, function (receiver) {
      return receiver.z7j();
    }, null);
  }
  function _StatementDao$factory_0() {
    return getPropertyCallableRef('_StatementDao', 1, KProperty1, function (receiver) {
      return receiver.a7k();
    }, null);
  }
  function _ActorDao$factory_0() {
    return getPropertyCallableRef('_ActorDao', 1, KProperty1, function (receiver) {
      return receiver.b7k();
    }, null);
  }
  function _ClazzLogAttendanceRecordDao$factory_0() {
    return getPropertyCallableRef('_ClazzLogAttendanceRecordDao', 1, KProperty1, function (receiver) {
      return receiver.c7k();
    }, null);
  }
  function _ClazzLogDao$factory_0() {
    return getPropertyCallableRef('_ClazzLogDao', 1, KProperty1, function (receiver) {
      return receiver.d7k();
    }, null);
  }
  function _ScheduleDao$factory_0() {
    return getPropertyCallableRef('_ScheduleDao', 1, KProperty1, function (receiver) {
      return receiver.e7k();
    }, null);
  }
  function _HolidayCalendarDao$factory_0() {
    return getPropertyCallableRef('_HolidayCalendarDao', 1, KProperty1, function (receiver) {
      return receiver.f7k();
    }, null);
  }
  function _HolidayDao$factory_0() {
    return getPropertyCallableRef('_HolidayDao', 1, KProperty1, function (receiver) {
      return receiver.g7k();
    }, null);
  }
  function _ClazzAssignmentDao$factory_0() {
    return getPropertyCallableRef('_ClazzAssignmentDao', 1, KProperty1, function (receiver) {
      return receiver.h7k();
    }, null);
  }
  function _CourseAssignmentSubmissionDao$factory_0() {
    return getPropertyCallableRef('_CourseAssignmentSubmissionDao', 1, KProperty1, function (receiver) {
      return receiver.i7k();
    }, null);
  }
  function _CourseAssignmentSubmissionFileDao$factory_0() {
    return getPropertyCallableRef('_CourseAssignmentSubmissionFileDao', 1, KProperty1, function (receiver) {
      return receiver.j7k();
    }, null);
  }
  function _CourseAssignmentMarkDao$factory_0() {
    return getPropertyCallableRef('_CourseAssignmentMarkDao', 1, KProperty1, function (receiver) {
      return receiver.k7k();
    }, null);
  }
  function _CommentsDao$factory_0() {
    return getPropertyCallableRef('_CommentsDao', 1, KProperty1, function (receiver) {
      return receiver.l7k();
    }, null);
  }
  function _SiteDao$factory_0() {
    return getPropertyCallableRef('_SiteDao', 1, KProperty1, function (receiver) {
      return receiver.m7k();
    }, null);
  }
  function _SiteTermsDao$factory_0() {
    return getPropertyCallableRef('_SiteTermsDao', 1, KProperty1, function (receiver) {
      return receiver.n7k();
    }, null);
  }
  function _PersonParentJoinDao$factory_0() {
    return getPropertyCallableRef('_PersonParentJoinDao', 1, KProperty1, function (receiver) {
      return receiver.o7k();
    }, null);
  }
  function _ScopedGrantDao$factory_0() {
    return getPropertyCallableRef('_ScopedGrantDao', 1, KProperty1, function (receiver) {
      return receiver.p7k();
    }, null);
  }
  function _ErrorReportDao$factory_0() {
    return getPropertyCallableRef('_ErrorReportDao', 1, KProperty1, function (receiver) {
      return receiver.q7k();
    }, null);
  }
  function _PersonAuth2Dao$factory_0() {
    return getPropertyCallableRef('_PersonAuth2Dao', 1, KProperty1, function (receiver) {
      return receiver.r7k();
    }, null);
  }
  function _UserSessionDao$factory_0() {
    return getPropertyCallableRef('_UserSessionDao', 1, KProperty1, function (receiver) {
      return receiver.s7k();
    }, null);
  }
  function _ContentEntryImportJobDao$factory() {
    return getPropertyCallableRef('_ContentEntryImportJobDao', 1, KProperty1, function (receiver) {
      return receiver.x7o();
    }, null);
  }
  function _CoursePictureDao$factory_0() {
    return getPropertyCallableRef('_CoursePictureDao', 1, KProperty1, function (receiver) {
      return receiver.t7k();
    }, null);
  }
  function _ContentEntryPictureDao$factory_0() {
    return getPropertyCallableRef('_ContentEntryPictureDao', 1, KProperty1, function (receiver) {
      return receiver.u7k();
    }, null);
  }
  function _MessageDao$factory_0() {
    return getPropertyCallableRef('_MessageDao', 1, KProperty1, function (receiver) {
      return receiver.v7k();
    }, null);
  }
  function _PeerReviewerAllocationDao$factory_0() {
    return getPropertyCallableRef('_PeerReviewerAllocationDao', 1, KProperty1, function (receiver) {
      return receiver.w7k();
    }, null);
  }
  function _DiscussionPostDao$factory_0() {
    return getPropertyCallableRef('_DiscussionPostDao', 1, KProperty1, function (receiver) {
      return receiver.x7k();
    }, null);
  }
  function _ContentEntryVersionDao$factory_0() {
    return getPropertyCallableRef('_ContentEntryVersionDao', 1, KProperty1, function (receiver) {
      return receiver.y7k();
    }, null);
  }
  function _TransferJobDao$factory() {
    return getPropertyCallableRef('_TransferJobDao', 1, KProperty1, function (receiver) {
      return receiver.y7o();
    }, null);
  }
  function _TransferJobItemDao$factory() {
    return getPropertyCallableRef('_TransferJobItemDao', 1, KProperty1, function (receiver) {
      return receiver.z7o();
    }, null);
  }
  function _OfflineItemDao$factory_0() {
    return getPropertyCallableRef('_OfflineItemDao', 1, KProperty1, function (receiver) {
      return receiver.z7k();
    }, null);
  }
  function _DeletedItemDao$factory() {
    return getPropertyCallableRef('_DeletedItemDao', 1, KProperty1, function (receiver) {
      return receiver.a7p();
    }, null);
  }
  function _EnrolmentRequestDao$factory_0() {
    return getPropertyCallableRef('_EnrolmentRequestDao', 1, KProperty1, function (receiver) {
      return receiver.a7l();
    }, null);
  }
  function _CoursePermissionDao$factory_0() {
    return getPropertyCallableRef('_CoursePermissionDao', 1, KProperty1, function (receiver) {
      return receiver.b7l();
    }, null);
  }
  function _SystemPermissionDao$factory_0() {
    return getPropertyCallableRef('_SystemPermissionDao', 1, KProperty1, function (receiver) {
      return receiver.c7l();
    }, null);
  }
  function _CourseBlockPictureDao$factory_0() {
    return getPropertyCallableRef('_CourseBlockPictureDao', 1, KProperty1, function (receiver) {
      return receiver.d7l();
    }, null);
  }
  function _ContentEntryPicture2Dao$factory_0() {
    return getPropertyCallableRef('_ContentEntryPicture2Dao', 1, KProperty1, function (receiver) {
      return receiver.e7l();
    }, null);
  }
  function _StudentResultDao$factory_0() {
    return getPropertyCallableRef('_StudentResultDao', 1, KProperty1, function (receiver) {
      return receiver.f7l();
    }, null);
  }
  function _VerbLangMapEntryDao$factory_0() {
    return getPropertyCallableRef('_VerbLangMapEntryDao', 1, KProperty1, function (receiver) {
      return receiver.g7l();
    }, null);
  }
  function _GroupMemberActorJoinDao$factory_0() {
    return getPropertyCallableRef('_GroupMemberActorJoinDao', 1, KProperty1, function (receiver) {
      return receiver.h7l();
    }, null);
  }
  function _ActivityLangMapEntryDao$factory_0() {
    return getPropertyCallableRef('_ActivityLangMapEntryDao', 1, KProperty1, function (receiver) {
      return receiver.i7l();
    }, null);
  }
  function _ActivityInteractionDao$factory_0() {
    return getPropertyCallableRef('_ActivityInteractionDao', 1, KProperty1, function (receiver) {
      return receiver.j7l();
    }, null);
  }
  function _ActivityExtensionDao$factory_0() {
    return getPropertyCallableRef('_ActivityExtensionDao', 1, KProperty1, function (receiver) {
      return receiver.k7l();
    }, null);
  }
  function _StatementContextActivityJoinDao$factory_0() {
    return getPropertyCallableRef('_StatementContextActivityJoinDao', 1, KProperty1, function (receiver) {
      return receiver.l7l();
    }, null);
  }
  function _XapiSessionEntityDao$factory_0() {
    return getPropertyCallableRef('_XapiSessionEntityDao', 1, KProperty1, function (receiver) {
      return receiver.m7l();
    }, null);
  }
  function _StatementEntityJsonDao$factory_0() {
    return getPropertyCallableRef('_StatementEntityJsonDao', 1, KProperty1, function (receiver) {
      return receiver.n7l();
    }, null);
  }
  function _PersonPasskeyDao$factory_0() {
    return getPropertyCallableRef('_PersonPasskeyDao', 1, KProperty1, function (receiver) {
      return receiver.o7l();
    }, null);
  }
  function _StateEntityDao$factory_0() {
    return getPropertyCallableRef('_StateEntityDao', 1, KProperty1, function (receiver) {
      return receiver.p7l();
    }, null);
  }
  function _StateDeleteCommandDao$factory_0() {
    return getPropertyCallableRef('_StateDeleteCommandDao', 1, KProperty1, function (receiver) {
      return receiver.q7l();
    }, null);
  }
  function _ClazzInviteDao$factory_0() {
    return getPropertyCallableRef('_ClazzInviteDao', 1, KProperty1, function (receiver) {
      return receiver.r7l();
    }, null);
  }
  function _get__endpoint__5zlgkj($this) {
    return $this.c7p_1.t65_1;
  }
  function _get__PersonDao__uzj2el($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.f7p_1;
    _PersonDao$factory_1();
    return this_0.t2();
  }
  function _get__ClazzDao__9uv608($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.g7p_1;
    _ClazzDao$factory_1();
    return this_0.t2();
  }
  function _get__CourseBlockDao__4pp4mq($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.h7p_1;
    _CourseBlockDao$factory_1();
    return this_0.t2();
  }
  function _get__CourseTerminologyDao__a6bld4($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.i7p_1;
    _CourseTerminologyDao$factory_1();
    return this_0.t2();
  }
  function _get__CourseGroupSetDao__hfsuk6($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.j7p_1;
    _CourseGroupSetDao$factory_1();
    return this_0.t2();
  }
  function _get__CourseGroupMemberDao__l3hcwy($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.k7p_1;
    _CourseGroupMemberDao$factory_1();
    return this_0.t2();
  }
  function _get__ClazzEnrolmentDao__q8nlvo($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.l7p_1;
    _ClazzEnrolmentDao$factory_1();
    return this_0.t2();
  }
  function _get__LeavingReasonDao__m21j14($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.m7p_1;
    _LeavingReasonDao$factory_1();
    return this_0.t2();
  }
  function _get__ContentEntryDao__asrab3($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.n7p_1;
    _ContentEntryDao$factory_1();
    return this_0.t2();
  }
  function _get__ContentEntryContentCategoryJoinDao__c8c5lk($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.o7p_1;
    _ContentEntryContentCategoryJoinDao$factory_1();
    return this_0.t2();
  }
  function _get__ContentEntryParentChildJoinDao__moxer($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.p7p_1;
    _ContentEntryParentChildJoinDao$factory_1();
    return this_0.t2();
  }
  function _get__ContentEntryRelatedEntryJoinDao__wdqzcu($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.q7p_1;
    _ContentEntryRelatedEntryJoinDao$factory_1();
    return this_0.t2();
  }
  function _get__ContentCategorySchemaDao__95pyeg($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.r7p_1;
    _ContentCategorySchemaDao$factory_1();
    return this_0.t2();
  }
  function _get__ContentCategoryDao__tsqjyv($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.s7p_1;
    _ContentCategoryDao$factory_1();
    return this_0.t2();
  }
  function _get__LanguageDao__1z90w($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.t7p_1;
    _LanguageDao$factory_1();
    return this_0.t2();
  }
  function _get__LanguageVariantDao__rxf1fx($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.u7p_1;
    _LanguageVariantDao$factory_1();
    return this_0.t2();
  }
  function _get__PersonGroupDao__hew8d2($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.v7p_1;
    _PersonGroupDao$factory_1();
    return this_0.t2();
  }
  function _get__PersonGroupMemberDao__mvnpb8($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.w7p_1;
    _PersonGroupMemberDao$factory_1();
    return this_0.t2();
  }
  function _get__PersonPictureDao__2gbg89($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.x7p_1;
    _PersonPictureDao$factory_1();
    return this_0.t2();
  }
  function _get__VerbDao__618h8p($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.y7p_1;
    _VerbDao$factory_1();
    return this_0.t2();
  }
  function _get__ActivityEntityDao__cj0phy($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.z7p_1;
    _ActivityEntityDao$factory_1();
    return this_0.t2();
  }
  function _get__ReportDao__jbr9h0($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.a7q_1;
    _ReportDao$factory_1();
    return this_0.t2();
  }
  function _get__StatementDao__fnw41b($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.b7q_1;
    _StatementDao$factory_1();
    return this_0.t2();
  }
  function _get__ActorDao__6yq8sr($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.c7q_1;
    _ActorDao$factory_1();
    return this_0.t2();
  }
  function _get__ClazzLogAttendanceRecordDao__r3qxzy($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.d7q_1;
    _ClazzLogAttendanceRecordDao$factory_1();
    return this_0.t2();
  }
  function _get__ClazzLogDao__xeo15w($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.e7q_1;
    _ClazzLogDao$factory_1();
    return this_0.t2();
  }
  function _get__ScheduleDao__h5s1ch($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.f7q_1;
    _ScheduleDao$factory_1();
    return this_0.t2();
  }
  function _get__HolidayCalendarDao__gbx0p6($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.g7q_1;
    _HolidayCalendarDao$factory_1();
    return this_0.t2();
  }
  function _get__HolidayDao__x92kh4($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.h7q_1;
    _HolidayDao$factory_1();
    return this_0.t2();
  }
  function _get__ClazzAssignmentDao__kc42th($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.i7q_1;
    _ClazzAssignmentDao$factory_1();
    return this_0.t2();
  }
  function _get__CourseAssignmentSubmissionDao__ir2b4c($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.j7q_1;
    _CourseAssignmentSubmissionDao$factory_1();
    return this_0.t2();
  }
  function _get__CourseAssignmentSubmissionFileDao__63r33c($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.k7q_1;
    _CourseAssignmentSubmissionFileDao$factory_1();
    return this_0.t2();
  }
  function _get__CourseAssignmentMarkDao__yi6swd($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.l7q_1;
    _CourseAssignmentMarkDao$factory_1();
    return this_0.t2();
  }
  function _get__CommentsDao__mxkt84($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.m7q_1;
    _CommentsDao$factory_1();
    return this_0.t2();
  }
  function _get__SiteDao__wss4yp($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.n7q_1;
    _SiteDao$factory_1();
    return this_0.t2();
  }
  function _get__SiteTermsDao__f7rqww($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.o7q_1;
    _SiteTermsDao$factory_1();
    return this_0.t2();
  }
  function _get__PersonParentJoinDao__o0iclb($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.p7q_1;
    _PersonParentJoinDao$factory_1();
    return this_0.t2();
  }
  function _get__ScopedGrantDao__9w613o($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.q7q_1;
    _ScopedGrantDao$factory_1();
    return this_0.t2();
  }
  function _get__ErrorReportDao__d8e0x0($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.r7q_1;
    _ErrorReportDao$factory_1();
    return this_0.t2();
  }
  function _get__PersonAuth2Dao__uki6ut($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.s7q_1;
    _PersonAuth2Dao$factory_1();
    return this_0.t2();
  }
  function _get__UserSessionDao__wcreq3($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.t7q_1;
    _UserSessionDao$factory_1();
    return this_0.t2();
  }
  function _get__CoursePictureDao__qr47kz($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.u7q_1;
    _CoursePictureDao$factory_1();
    return this_0.t2();
  }
  function _get__ContentEntryPictureDao__hzeabf($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.v7q_1;
    _ContentEntryPictureDao$factory_1();
    return this_0.t2();
  }
  function _get__MessageDao__u7e9l3($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.w7q_1;
    _MessageDao$factory_1();
    return this_0.t2();
  }
  function _get__PeerReviewerAllocationDao__m08hnj($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.x7q_1;
    _PeerReviewerAllocationDao$factory_1();
    return this_0.t2();
  }
  function _get__DiscussionPostDao__bymsxs($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.y7q_1;
    _DiscussionPostDao$factory_1();
    return this_0.t2();
  }
  function _get__ContentEntryVersionDao__egjvvj($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.z7q_1;
    _ContentEntryVersionDao$factory_1();
    return this_0.t2();
  }
  function _get__OfflineItemDao__4yjkly($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.a7r_1;
    _OfflineItemDao$factory_1();
    return this_0.t2();
  }
  function _get__DeletedItemDao__4i3s1g($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.b7r_1;
    _DeletedItemDao$factory_0();
    return this_0.t2();
  }
  function _get__EnrolmentRequestDao__wkcqzn($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.c7r_1;
    _EnrolmentRequestDao$factory_1();
    return this_0.t2();
  }
  function _get__CoursePermissionDao__hib1jy($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.d7r_1;
    _CoursePermissionDao$factory_1();
    return this_0.t2();
  }
  function _get__SystemPermissionDao__c05myy($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.e7r_1;
    _SystemPermissionDao$factory_1();
    return this_0.t2();
  }
  function _get__CourseBlockPictureDao__hx4ubg($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.f7r_1;
    _CourseBlockPictureDao$factory_1();
    return this_0.t2();
  }
  function _get__ContentEntryPicture2Dao__ah6hid($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.g7r_1;
    _ContentEntryPicture2Dao$factory_1();
    return this_0.t2();
  }
  function _get__StudentResultDao__sr8vqw($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.h7r_1;
    _StudentResultDao$factory_1();
    return this_0.t2();
  }
  function _get__VerbLangMapEntryDao__oda6e3($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.i7r_1;
    _VerbLangMapEntryDao$factory_1();
    return this_0.t2();
  }
  function _get__GroupMemberActorJoinDao__jlmme6($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.j7r_1;
    _GroupMemberActorJoinDao$factory_1();
    return this_0.t2();
  }
  function _get__ActivityLangMapEntryDao__htpiob($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.k7r_1;
    _ActivityLangMapEntryDao$factory_1();
    return this_0.t2();
  }
  function _get__ActivityInteractionDao__x272ir($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.l7r_1;
    _ActivityInteractionDao$factory_1();
    return this_0.t2();
  }
  function _get__ActivityExtensionDao__cpvg5s($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.m7r_1;
    _ActivityExtensionDao$factory_1();
    return this_0.t2();
  }
  function _get__StatementContextActivityJoinDao__t5jinj($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.n7r_1;
    _StatementContextActivityJoinDao$factory_1();
    return this_0.t2();
  }
  function _get__XapiSessionEntityDao__tpjn2v($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.o7r_1;
    _XapiSessionEntityDao$factory_1();
    return this_0.t2();
  }
  function _get__StatementEntityJsonDao__4ym94q($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.p7r_1;
    _StatementEntityJsonDao$factory_1();
    return this_0.t2();
  }
  function _get__PersonPasskeyDao__80ct5l($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.q7r_1;
    _PersonPasskeyDao$factory_1();
    return this_0.t2();
  }
  function _get__StateEntityDao__vtinv8($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.r7r_1;
    _StateEntityDao$factory_1();
    return this_0.t2();
  }
  function _get__StateDeleteCommandDao__s2ay7b($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.s7r_1;
    _StateDeleteCommandDao$factory_1();
    return this_0.t2();
  }
  function _get__ClazzInviteDao__erqe0v($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.t7r_1;
    _ClazzInviteDao$factory_1();
    return this_0.t2();
  }
  function Companion() {
    this.u7r_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.b7p_1, this$0, this$0.b7p_1.n7d(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ClazzDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.o7d(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CourseBlockDao$delegate$lambda(this$0) {
    return function () {
      return new CourseBlockDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.p7d(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CourseTerminologyDao$delegate$lambda(this$0) {
    return function () {
      return new CourseTerminologyDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.q7d(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CourseGroupSetDao$delegate$lambda(this$0) {
    return function () {
      return new CourseGroupSetDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.r7d(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CourseGroupMemberDao$delegate$lambda(this$0) {
    return function () {
      return new CourseGroupMemberDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.s7d(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ClazzEnrolmentDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzEnrolmentDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.t7d(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_LeavingReasonDao$delegate$lambda(this$0) {
    return function () {
      return new LeavingReasonDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.u7d(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ContentEntryDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.v7d(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ContentEntryContentCategoryJoinDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryContentCategoryJoinDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.w7d(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ContentEntryParentChildJoinDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryParentChildJoinDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.x7d(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryRelatedEntryJoinDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.y7d(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ContentCategorySchemaDao$delegate$lambda(this$0) {
    return function () {
      return new ContentCategorySchemaDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.z7d(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ContentCategoryDao$delegate$lambda(this$0) {
    return function () {
      return new ContentCategoryDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.a7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_LanguageDao$delegate$lambda(this$0) {
    return function () {
      return new LanguageDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.b7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_LanguageVariantDao$delegate$lambda(this$0) {
    return function () {
      return new LanguageVariantDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.c7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_PersonGroupDao$delegate$lambda(this$0) {
    return function () {
      return new PersonGroupDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.d7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_PersonGroupMemberDao$delegate$lambda(this$0) {
    return function () {
      return new PersonGroupMemberDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.e7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_PersonPictureDao$delegate$lambda(this$0) {
    return function () {
      return new PersonPictureDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.f7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_VerbDao$delegate$lambda(this$0) {
    return function () {
      return new VerbDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.g7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ActivityEntityDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityEntityDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.h7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ReportDao$delegate$lambda(this$0) {
    return function () {
      return new ReportDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.i7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_StatementDao$delegate$lambda(this$0) {
    return function () {
      return new StatementDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.j7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ActorDao$delegate$lambda(this$0) {
    return function () {
      return new ActorDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.k7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ClazzLogAttendanceRecordDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzLogAttendanceRecordDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.l7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ClazzLogDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzLogDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.m7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ScheduleDao$delegate$lambda(this$0) {
    return function () {
      return new ScheduleDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.n7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_HolidayCalendarDao$delegate$lambda(this$0) {
    return function () {
      return new HolidayCalendarDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.o7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_HolidayDao$delegate$lambda(this$0) {
    return function () {
      return new HolidayDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.p7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ClazzAssignmentDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzAssignmentDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.q7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CourseAssignmentSubmissionDao$delegate$lambda(this$0) {
    return function () {
      return new CourseAssignmentSubmissionDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.r7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CourseAssignmentSubmissionFileDao$delegate$lambda(this$0) {
    return function () {
      return new CourseAssignmentSubmissionFileDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.s7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CourseAssignmentMarkDao$delegate$lambda(this$0) {
    return function () {
      return new CourseAssignmentMarkDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.t7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CommentsDao$delegate$lambda(this$0) {
    return function () {
      return new CommentsDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.u7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_SiteDao$delegate$lambda(this$0) {
    return function () {
      return new SiteDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.v7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_SiteTermsDao$delegate$lambda(this$0) {
    return function () {
      return new SiteTermsDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.w7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_PersonParentJoinDao$delegate$lambda(this$0) {
    return function () {
      return new PersonParentJoinDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.x7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ScopedGrantDao$delegate$lambda(this$0) {
    return function () {
      return new ScopedGrantDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.y7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ErrorReportDao$delegate$lambda(this$0) {
    return function () {
      return new ErrorReportDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.z7e(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_PersonAuth2Dao$delegate$lambda(this$0) {
    return function () {
      return new PersonAuth2Dao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.a7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_UserSessionDao$delegate$lambda(this$0) {
    return function () {
      return new UserSessionDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.b7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CoursePictureDao$delegate$lambda(this$0) {
    return function () {
      return new CoursePictureDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.d7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ContentEntryPictureDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryPictureDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.e7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_MessageDao$delegate$lambda(this$0) {
    return function () {
      return new MessageDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.f7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_PeerReviewerAllocationDao$delegate$lambda(this$0) {
    return function () {
      return new PeerReviewerAllocationDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.g7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_DiscussionPostDao$delegate$lambda(this$0) {
    return function () {
      return new DiscussionPostDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.h7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ContentEntryVersionDao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryVersionDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.i7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_OfflineItemDao$delegate$lambda(this$0) {
    return function () {
      return new OfflineItemDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.l7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_DeletedItemDao$delegate$lambda(this$0) {
    return function () {
      return new DeletedItemDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.m7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_EnrolmentRequestDao$delegate$lambda(this$0) {
    return function () {
      return new EnrolmentRequestDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.n7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CoursePermissionDao$delegate$lambda(this$0) {
    return function () {
      return new CoursePermissionDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.o7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_SystemPermissionDao$delegate$lambda(this$0) {
    return function () {
      return new SystemPermissionDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.p7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_CourseBlockPictureDao$delegate$lambda(this$0) {
    return function () {
      return new CourseBlockPictureDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.q7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ContentEntryPicture2Dao$delegate$lambda(this$0) {
    return function () {
      return new ContentEntryPicture2Dao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.r7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_StudentResultDao$delegate$lambda(this$0) {
    return function () {
      return new StudentResultDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.s7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_VerbLangMapEntryDao$delegate$lambda(this$0) {
    return function () {
      return new VerbLangMapEntryDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.t7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_GroupMemberActorJoinDao$delegate$lambda(this$0) {
    return function () {
      return new GroupMemberActorJoinDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.u7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ActivityLangMapEntryDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityLangMapEntryDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.v7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ActivityInteractionDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityInteractionDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.w7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ActivityExtensionDao$delegate$lambda(this$0) {
    return function () {
      return new ActivityExtensionDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.x7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_StatementContextActivityJoinDao$delegate$lambda(this$0) {
    return function () {
      return new StatementContextActivityJoinDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.y7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_XapiSessionEntityDao$delegate$lambda(this$0) {
    return function () {
      return new XapiSessionEntityDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.z7f(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_StatementEntityJsonDao$delegate$lambda(this$0) {
    return function () {
      return new StatementEntityJsonDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.a7g(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_PersonPasskeyDao$delegate$lambda(this$0) {
    return function () {
      return new PersonPasskeyDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.b7g(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_StateEntityDao$delegate$lambda(this$0) {
    return function () {
      return new StateEntityDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.c7g(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_StateDeleteCommandDao$delegate$lambda(this$0) {
    return function () {
      return new StateDeleteCommandDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.d7g(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo$_ClazzInviteDao$delegate$lambda(this$0) {
    return function () {
      return new ClazzInviteDao_Repo(this$0.b7p_1, this$0, this$0.b7p_1.e7g(), this$0.v7r(), this$0.w7r(), _get__endpoint__5zlgkj(this$0));
    };
  }
  function UmAppDatabase_Repo(db, dbUnwrapped, config) {
    UmAppDatabase.call(this);
    this.b7p_1 = db;
    this.c7p_1 = config;
    this.d7p_1 = dbUnwrapped;
    this.e7p_1 = new RepositoryHelper(this.b7p_1, this.c7p_1);
    var tmp = this;
    tmp.f7p_1 = lazy_0(UmAppDatabase_Repo$_PersonDao$delegate$lambda(this));
    var tmp_0 = this;
    tmp_0.g7p_1 = lazy_0(UmAppDatabase_Repo$_ClazzDao$delegate$lambda(this));
    var tmp_1 = this;
    tmp_1.h7p_1 = lazy_0(UmAppDatabase_Repo$_CourseBlockDao$delegate$lambda(this));
    var tmp_2 = this;
    tmp_2.i7p_1 = lazy_0(UmAppDatabase_Repo$_CourseTerminologyDao$delegate$lambda(this));
    var tmp_3 = this;
    tmp_3.j7p_1 = lazy_0(UmAppDatabase_Repo$_CourseGroupSetDao$delegate$lambda(this));
    var tmp_4 = this;
    tmp_4.k7p_1 = lazy_0(UmAppDatabase_Repo$_CourseGroupMemberDao$delegate$lambda(this));
    var tmp_5 = this;
    tmp_5.l7p_1 = lazy_0(UmAppDatabase_Repo$_ClazzEnrolmentDao$delegate$lambda(this));
    var tmp_6 = this;
    tmp_6.m7p_1 = lazy_0(UmAppDatabase_Repo$_LeavingReasonDao$delegate$lambda(this));
    var tmp_7 = this;
    tmp_7.n7p_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryDao$delegate$lambda(this));
    var tmp_8 = this;
    tmp_8.o7p_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryContentCategoryJoinDao$delegate$lambda(this));
    var tmp_9 = this;
    tmp_9.p7p_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryParentChildJoinDao$delegate$lambda(this));
    var tmp_10 = this;
    tmp_10.q7p_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this));
    var tmp_11 = this;
    tmp_11.r7p_1 = lazy_0(UmAppDatabase_Repo$_ContentCategorySchemaDao$delegate$lambda(this));
    var tmp_12 = this;
    tmp_12.s7p_1 = lazy_0(UmAppDatabase_Repo$_ContentCategoryDao$delegate$lambda(this));
    var tmp_13 = this;
    tmp_13.t7p_1 = lazy_0(UmAppDatabase_Repo$_LanguageDao$delegate$lambda(this));
    var tmp_14 = this;
    tmp_14.u7p_1 = lazy_0(UmAppDatabase_Repo$_LanguageVariantDao$delegate$lambda(this));
    var tmp_15 = this;
    tmp_15.v7p_1 = lazy_0(UmAppDatabase_Repo$_PersonGroupDao$delegate$lambda(this));
    var tmp_16 = this;
    tmp_16.w7p_1 = lazy_0(UmAppDatabase_Repo$_PersonGroupMemberDao$delegate$lambda(this));
    var tmp_17 = this;
    tmp_17.x7p_1 = lazy_0(UmAppDatabase_Repo$_PersonPictureDao$delegate$lambda(this));
    var tmp_18 = this;
    tmp_18.y7p_1 = lazy_0(UmAppDatabase_Repo$_VerbDao$delegate$lambda(this));
    var tmp_19 = this;
    tmp_19.z7p_1 = lazy_0(UmAppDatabase_Repo$_ActivityEntityDao$delegate$lambda(this));
    var tmp_20 = this;
    tmp_20.a7q_1 = lazy_0(UmAppDatabase_Repo$_ReportDao$delegate$lambda(this));
    var tmp_21 = this;
    tmp_21.b7q_1 = lazy_0(UmAppDatabase_Repo$_StatementDao$delegate$lambda(this));
    var tmp_22 = this;
    tmp_22.c7q_1 = lazy_0(UmAppDatabase_Repo$_ActorDao$delegate$lambda(this));
    var tmp_23 = this;
    tmp_23.d7q_1 = lazy_0(UmAppDatabase_Repo$_ClazzLogAttendanceRecordDao$delegate$lambda(this));
    var tmp_24 = this;
    tmp_24.e7q_1 = lazy_0(UmAppDatabase_Repo$_ClazzLogDao$delegate$lambda(this));
    var tmp_25 = this;
    tmp_25.f7q_1 = lazy_0(UmAppDatabase_Repo$_ScheduleDao$delegate$lambda(this));
    var tmp_26 = this;
    tmp_26.g7q_1 = lazy_0(UmAppDatabase_Repo$_HolidayCalendarDao$delegate$lambda(this));
    var tmp_27 = this;
    tmp_27.h7q_1 = lazy_0(UmAppDatabase_Repo$_HolidayDao$delegate$lambda(this));
    var tmp_28 = this;
    tmp_28.i7q_1 = lazy_0(UmAppDatabase_Repo$_ClazzAssignmentDao$delegate$lambda(this));
    var tmp_29 = this;
    tmp_29.j7q_1 = lazy_0(UmAppDatabase_Repo$_CourseAssignmentSubmissionDao$delegate$lambda(this));
    var tmp_30 = this;
    tmp_30.k7q_1 = lazy_0(UmAppDatabase_Repo$_CourseAssignmentSubmissionFileDao$delegate$lambda(this));
    var tmp_31 = this;
    tmp_31.l7q_1 = lazy_0(UmAppDatabase_Repo$_CourseAssignmentMarkDao$delegate$lambda(this));
    var tmp_32 = this;
    tmp_32.m7q_1 = lazy_0(UmAppDatabase_Repo$_CommentsDao$delegate$lambda(this));
    var tmp_33 = this;
    tmp_33.n7q_1 = lazy_0(UmAppDatabase_Repo$_SiteDao$delegate$lambda(this));
    var tmp_34 = this;
    tmp_34.o7q_1 = lazy_0(UmAppDatabase_Repo$_SiteTermsDao$delegate$lambda(this));
    var tmp_35 = this;
    tmp_35.p7q_1 = lazy_0(UmAppDatabase_Repo$_PersonParentJoinDao$delegate$lambda(this));
    var tmp_36 = this;
    tmp_36.q7q_1 = lazy_0(UmAppDatabase_Repo$_ScopedGrantDao$delegate$lambda(this));
    var tmp_37 = this;
    tmp_37.r7q_1 = lazy_0(UmAppDatabase_Repo$_ErrorReportDao$delegate$lambda(this));
    var tmp_38 = this;
    tmp_38.s7q_1 = lazy_0(UmAppDatabase_Repo$_PersonAuth2Dao$delegate$lambda(this));
    var tmp_39 = this;
    tmp_39.t7q_1 = lazy_0(UmAppDatabase_Repo$_UserSessionDao$delegate$lambda(this));
    var tmp_40 = this;
    tmp_40.u7q_1 = lazy_0(UmAppDatabase_Repo$_CoursePictureDao$delegate$lambda(this));
    var tmp_41 = this;
    tmp_41.v7q_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryPictureDao$delegate$lambda(this));
    var tmp_42 = this;
    tmp_42.w7q_1 = lazy_0(UmAppDatabase_Repo$_MessageDao$delegate$lambda(this));
    var tmp_43 = this;
    tmp_43.x7q_1 = lazy_0(UmAppDatabase_Repo$_PeerReviewerAllocationDao$delegate$lambda(this));
    var tmp_44 = this;
    tmp_44.y7q_1 = lazy_0(UmAppDatabase_Repo$_DiscussionPostDao$delegate$lambda(this));
    var tmp_45 = this;
    tmp_45.z7q_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryVersionDao$delegate$lambda(this));
    var tmp_46 = this;
    tmp_46.a7r_1 = lazy_0(UmAppDatabase_Repo$_OfflineItemDao$delegate$lambda(this));
    var tmp_47 = this;
    tmp_47.b7r_1 = lazy_0(UmAppDatabase_Repo$_DeletedItemDao$delegate$lambda(this));
    var tmp_48 = this;
    tmp_48.c7r_1 = lazy_0(UmAppDatabase_Repo$_EnrolmentRequestDao$delegate$lambda(this));
    var tmp_49 = this;
    tmp_49.d7r_1 = lazy_0(UmAppDatabase_Repo$_CoursePermissionDao$delegate$lambda(this));
    var tmp_50 = this;
    tmp_50.e7r_1 = lazy_0(UmAppDatabase_Repo$_SystemPermissionDao$delegate$lambda(this));
    var tmp_51 = this;
    tmp_51.f7r_1 = lazy_0(UmAppDatabase_Repo$_CourseBlockPictureDao$delegate$lambda(this));
    var tmp_52 = this;
    tmp_52.g7r_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryPicture2Dao$delegate$lambda(this));
    var tmp_53 = this;
    tmp_53.h7r_1 = lazy_0(UmAppDatabase_Repo$_StudentResultDao$delegate$lambda(this));
    var tmp_54 = this;
    tmp_54.i7r_1 = lazy_0(UmAppDatabase_Repo$_VerbLangMapEntryDao$delegate$lambda(this));
    var tmp_55 = this;
    tmp_55.j7r_1 = lazy_0(UmAppDatabase_Repo$_GroupMemberActorJoinDao$delegate$lambda(this));
    var tmp_56 = this;
    tmp_56.k7r_1 = lazy_0(UmAppDatabase_Repo$_ActivityLangMapEntryDao$delegate$lambda(this));
    var tmp_57 = this;
    tmp_57.l7r_1 = lazy_0(UmAppDatabase_Repo$_ActivityInteractionDao$delegate$lambda(this));
    var tmp_58 = this;
    tmp_58.m7r_1 = lazy_0(UmAppDatabase_Repo$_ActivityExtensionDao$delegate$lambda(this));
    var tmp_59 = this;
    tmp_59.n7r_1 = lazy_0(UmAppDatabase_Repo$_StatementContextActivityJoinDao$delegate$lambda(this));
    var tmp_60 = this;
    tmp_60.o7r_1 = lazy_0(UmAppDatabase_Repo$_XapiSessionEntityDao$delegate$lambda(this));
    var tmp_61 = this;
    tmp_61.p7r_1 = lazy_0(UmAppDatabase_Repo$_StatementEntityJsonDao$delegate$lambda(this));
    var tmp_62 = this;
    tmp_62.q7r_1 = lazy_0(UmAppDatabase_Repo$_PersonPasskeyDao$delegate$lambda(this));
    var tmp_63 = this;
    tmp_63.r7r_1 = lazy_0(UmAppDatabase_Repo$_StateEntityDao$delegate$lambda(this));
    var tmp_64 = this;
    tmp_64.s7r_1 = lazy_0(UmAppDatabase_Repo$_StateDeleteCommandDao$delegate$lambda(this));
    var tmp_65 = this;
    tmp_65.t7r_1 = lazy_0(UmAppDatabase_Repo$_ClazzInviteDao$delegate$lambda(this));
  }
  protoOf(UmAppDatabase_Repo).x5i = function () {
    return this.b7p_1;
  };
  protoOf(UmAppDatabase_Repo).j39 = function () {
    return this.c7p_1;
  };
  protoOf(UmAppDatabase_Repo).v7r = function () {
    return this.c7p_1.w65_1;
  };
  protoOf(UmAppDatabase_Repo).w7r = function () {
    return this.c7p_1.v65_1;
  };
  protoOf(UmAppDatabase_Repo).w5l = function () {
    return this.d7p_1.w5l();
  };
  protoOf(UmAppDatabase_Repo).k72 = function () {
    return 207;
  };
  protoOf(UmAppDatabase_Repo).m61 = function () {
    return this.e7p_1.m61();
  };
  protoOf(UmAppDatabase_Repo).q71 = function () {
    throw IllegalStateException_init_$Create$('Cannot use a repository to createAllTables!');
  };
  protoOf(UmAppDatabase_Repo).n7d = function () {
    return _get__PersonDao__uzj2el(this);
  };
  protoOf(UmAppDatabase_Repo).o7d = function () {
    return _get__ClazzDao__9uv608(this);
  };
  protoOf(UmAppDatabase_Repo).p7d = function () {
    return _get__CourseBlockDao__4pp4mq(this);
  };
  protoOf(UmAppDatabase_Repo).q7d = function () {
    return _get__CourseTerminologyDao__a6bld4(this);
  };
  protoOf(UmAppDatabase_Repo).r7d = function () {
    return _get__CourseGroupSetDao__hfsuk6(this);
  };
  protoOf(UmAppDatabase_Repo).s7d = function () {
    return _get__CourseGroupMemberDao__l3hcwy(this);
  };
  protoOf(UmAppDatabase_Repo).t7d = function () {
    return _get__ClazzEnrolmentDao__q8nlvo(this);
  };
  protoOf(UmAppDatabase_Repo).u7d = function () {
    return _get__LeavingReasonDao__m21j14(this);
  };
  protoOf(UmAppDatabase_Repo).v7d = function () {
    return _get__ContentEntryDao__asrab3(this);
  };
  protoOf(UmAppDatabase_Repo).w7d = function () {
    return _get__ContentEntryContentCategoryJoinDao__c8c5lk(this);
  };
  protoOf(UmAppDatabase_Repo).x7d = function () {
    return _get__ContentEntryParentChildJoinDao__moxer(this);
  };
  protoOf(UmAppDatabase_Repo).y7d = function () {
    return _get__ContentEntryRelatedEntryJoinDao__wdqzcu(this);
  };
  protoOf(UmAppDatabase_Repo).z7d = function () {
    return _get__ContentCategorySchemaDao__95pyeg(this);
  };
  protoOf(UmAppDatabase_Repo).a7e = function () {
    return _get__ContentCategoryDao__tsqjyv(this);
  };
  protoOf(UmAppDatabase_Repo).b7e = function () {
    return _get__LanguageDao__1z90w(this);
  };
  protoOf(UmAppDatabase_Repo).c7e = function () {
    return _get__LanguageVariantDao__rxf1fx(this);
  };
  protoOf(UmAppDatabase_Repo).d7e = function () {
    return _get__PersonGroupDao__hew8d2(this);
  };
  protoOf(UmAppDatabase_Repo).e7e = function () {
    return _get__PersonGroupMemberDao__mvnpb8(this);
  };
  protoOf(UmAppDatabase_Repo).f7e = function () {
    return _get__PersonPictureDao__2gbg89(this);
  };
  protoOf(UmAppDatabase_Repo).g7e = function () {
    return _get__VerbDao__618h8p(this);
  };
  protoOf(UmAppDatabase_Repo).h7e = function () {
    return _get__ActivityEntityDao__cj0phy(this);
  };
  protoOf(UmAppDatabase_Repo).i7e = function () {
    return _get__ReportDao__jbr9h0(this);
  };
  protoOf(UmAppDatabase_Repo).j7e = function () {
    return _get__StatementDao__fnw41b(this);
  };
  protoOf(UmAppDatabase_Repo).k7e = function () {
    return _get__ActorDao__6yq8sr(this);
  };
  protoOf(UmAppDatabase_Repo).l7e = function () {
    return _get__ClazzLogAttendanceRecordDao__r3qxzy(this);
  };
  protoOf(UmAppDatabase_Repo).m7e = function () {
    return _get__ClazzLogDao__xeo15w(this);
  };
  protoOf(UmAppDatabase_Repo).n7e = function () {
    return _get__ScheduleDao__h5s1ch(this);
  };
  protoOf(UmAppDatabase_Repo).o7e = function () {
    return _get__HolidayCalendarDao__gbx0p6(this);
  };
  protoOf(UmAppDatabase_Repo).p7e = function () {
    return _get__HolidayDao__x92kh4(this);
  };
  protoOf(UmAppDatabase_Repo).q7e = function () {
    return _get__ClazzAssignmentDao__kc42th(this);
  };
  protoOf(UmAppDatabase_Repo).r7e = function () {
    return _get__CourseAssignmentSubmissionDao__ir2b4c(this);
  };
  protoOf(UmAppDatabase_Repo).s7e = function () {
    return _get__CourseAssignmentSubmissionFileDao__63r33c(this);
  };
  protoOf(UmAppDatabase_Repo).t7e = function () {
    return _get__CourseAssignmentMarkDao__yi6swd(this);
  };
  protoOf(UmAppDatabase_Repo).u7e = function () {
    return _get__CommentsDao__mxkt84(this);
  };
  protoOf(UmAppDatabase_Repo).v7e = function () {
    return _get__SiteDao__wss4yp(this);
  };
  protoOf(UmAppDatabase_Repo).w7e = function () {
    return _get__SiteTermsDao__f7rqww(this);
  };
  protoOf(UmAppDatabase_Repo).x7e = function () {
    return _get__PersonParentJoinDao__o0iclb(this);
  };
  protoOf(UmAppDatabase_Repo).y7e = function () {
    return _get__ScopedGrantDao__9w613o(this);
  };
  protoOf(UmAppDatabase_Repo).z7e = function () {
    return _get__ErrorReportDao__d8e0x0(this);
  };
  protoOf(UmAppDatabase_Repo).a7f = function () {
    return _get__PersonAuth2Dao__uki6ut(this);
  };
  protoOf(UmAppDatabase_Repo).b7f = function () {
    return _get__UserSessionDao__wcreq3(this);
  };
  protoOf(UmAppDatabase_Repo).c7f = function () {
    throw IllegalStateException_init_$Create$('ContentEntryImportJobDao is not annotated with @Repository');
  };
  protoOf(UmAppDatabase_Repo).d7f = function () {
    return _get__CoursePictureDao__qr47kz(this);
  };
  protoOf(UmAppDatabase_Repo).e7f = function () {
    return _get__ContentEntryPictureDao__hzeabf(this);
  };
  protoOf(UmAppDatabase_Repo).f7f = function () {
    return _get__MessageDao__u7e9l3(this);
  };
  protoOf(UmAppDatabase_Repo).g7f = function () {
    return _get__PeerReviewerAllocationDao__m08hnj(this);
  };
  protoOf(UmAppDatabase_Repo).h7f = function () {
    return _get__DiscussionPostDao__bymsxs(this);
  };
  protoOf(UmAppDatabase_Repo).i7f = function () {
    return _get__ContentEntryVersionDao__egjvvj(this);
  };
  protoOf(UmAppDatabase_Repo).j7f = function () {
    throw IllegalStateException_init_$Create$('TransferJobDao is not annotated with @Repository');
  };
  protoOf(UmAppDatabase_Repo).k7f = function () {
    throw IllegalStateException_init_$Create$('TransferJobItemDao is not annotated with @Repository');
  };
  protoOf(UmAppDatabase_Repo).l7f = function () {
    return _get__OfflineItemDao__4yjkly(this);
  };
  protoOf(UmAppDatabase_Repo).m7f = function () {
    return _get__DeletedItemDao__4i3s1g(this);
  };
  protoOf(UmAppDatabase_Repo).n7f = function () {
    return _get__EnrolmentRequestDao__wkcqzn(this);
  };
  protoOf(UmAppDatabase_Repo).o7f = function () {
    return _get__CoursePermissionDao__hib1jy(this);
  };
  protoOf(UmAppDatabase_Repo).p7f = function () {
    return _get__SystemPermissionDao__c05myy(this);
  };
  protoOf(UmAppDatabase_Repo).q7f = function () {
    return _get__CourseBlockPictureDao__hx4ubg(this);
  };
  protoOf(UmAppDatabase_Repo).r7f = function () {
    return _get__ContentEntryPicture2Dao__ah6hid(this);
  };
  protoOf(UmAppDatabase_Repo).s7f = function () {
    return _get__StudentResultDao__sr8vqw(this);
  };
  protoOf(UmAppDatabase_Repo).t7f = function () {
    return _get__VerbLangMapEntryDao__oda6e3(this);
  };
  protoOf(UmAppDatabase_Repo).u7f = function () {
    return _get__GroupMemberActorJoinDao__jlmme6(this);
  };
  protoOf(UmAppDatabase_Repo).v7f = function () {
    return _get__ActivityLangMapEntryDao__htpiob(this);
  };
  protoOf(UmAppDatabase_Repo).w7f = function () {
    return _get__ActivityInteractionDao__x272ir(this);
  };
  protoOf(UmAppDatabase_Repo).x7f = function () {
    return _get__ActivityExtensionDao__cpvg5s(this);
  };
  protoOf(UmAppDatabase_Repo).y7f = function () {
    return _get__StatementContextActivityJoinDao__t5jinj(this);
  };
  protoOf(UmAppDatabase_Repo).z7f = function () {
    return _get__XapiSessionEntityDao__tpjn2v(this);
  };
  protoOf(UmAppDatabase_Repo).a7g = function () {
    return _get__StatementEntityJsonDao__4ym94q(this);
  };
  protoOf(UmAppDatabase_Repo).b7g = function () {
    return _get__PersonPasskeyDao__80ct5l(this);
  };
  protoOf(UmAppDatabase_Repo).c7g = function () {
    return _get__StateEntityDao__vtinv8(this);
  };
  protoOf(UmAppDatabase_Repo).d7g = function () {
    return _get__StateDeleteCommandDao__s2ay7b(this);
  };
  protoOf(UmAppDatabase_Repo).e7g = function () {
    return _get__ClazzInviteDao__erqe0v(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 _PersonPasskeyDao$factory_1() {
    return getPropertyCallableRef('_PersonPasskeyDao', 1, KProperty1, function (receiver) {
      return _get__PersonPasskeyDao__80ct5l(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 _ClazzInviteDao$factory_1() {
    return getPropertyCallableRef('_ClazzInviteDao', 1, KProperty1, function (receiver) {
      return _get__ClazzInviteDao__erqe0v(receiver);
    }, null);
  }
  function CacheLockJoinDao() {
  }
  function CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.x7r_1);
  }
  protoOf(CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO CacheLockJoin (cljId, cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType, cljOiUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1).b7s = function (stmt, entity) {
    if (entity.c7s_1 === 0) {
      stmt.a5i(1, null);
    } else {
      stmt.u5h(1, entity.c7s_1);
    }
    stmt.u5h(2, entity.d7s_1);
    stmt.v5h(3, entity.e7s_1);
    stmt.y5h(4, entity.f7s_1);
    stmt.v5h(5, entity.g7s_1);
    stmt.u5h(6, entity.h7s_1);
    stmt.u5h(7, entity.i7s_1);
    stmt.v5h(8, entity.j7s_1);
  };
  protoOf(CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1).p5f = function (stmt, entity) {
    return this.b7s(stmt, entity instanceof CacheLockJoin ? entity : THROW_CCE());
  };
  function CacheLockJoinDao_JdbcImpl(_db) {
    CacheLockJoinDao.call(this);
    this.x7r_1 = _db;
    var tmp = this;
    tmp.y7r_1 = new CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1(this);
  }
  function ClazzAssignmentDao() {
  }
  function $upsertListAsyncCOROUTINE$1(_this__u8e3s4, entities, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.c7t_1 = _this__u8e3s4;
    this.d7t_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.e7t_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.c7t_1.l7t_1));
            var tmp_0 = this;
            tmp_0.f7t_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.g7t_1 = this.d7t_1.w();
            var tmp_2 = this;
            tmp_2.h7t_1 = this.g7t_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.h7t_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.i7t_1 = this.h7t_1.e();
            var tmp_3 = this;
            tmp_3.j7t_1 = this.i7t_1;
            if (this.j7t_1.n7t_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.e7t_1.o62(520, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.k7t_1 = suspendResult;
            this.j7t_1.n7t_1 = this.k7t_1;
            var this_0 = this.f7t_1;
            var element = this.k7t_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.j7t_1.k7u_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.c7t_1.m7t_1.r7s(this.d7t_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.t7u_1 = _this__u8e3s4;
    this.u7u_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.v7u_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.t7u_1.l7t_1));
            if (this.u7u_1.n7t_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.v7u_1.o62(520, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.w7u_1 = suspendResult;
            this.u7u_1.n7t_1 = this.w7u_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.u7u_1.k7u_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.t7u_1.m7t_1.insertAsync(this.u7u_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.u7u_1.n7t_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.l7t_1 = _db;
    this.m7t_1 = _dao;
  }
  protoOf(ClazzAssignmentDao_DoorWrapper).k7s = function (assignmentUid, clazzUid, accountPersonUid, group) {
    return this.m7t_1.k7s(assignmentUid, clazzUid, accountPersonUid, group);
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).l7s = function (assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption) {
    return this.m7t_1.l7s(assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption);
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).m7s = function (clazzUid, groupSetUid, time, $completion) {
    return this.m7t_1.m7s(clazzUid, groupSetUid, time, $completion);
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).n7s = function (clazzUid, groupSetUid, date, groupStr, $completion) {
    return this.m7t_1.n7s(clazzUid, groupSetUid, date, groupStr, $completion);
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).o7s = function (assignmentUid, clazzUid, accountPersonUid, $completion) {
    return this.m7t_1.o7s(assignmentUid, clazzUid, accountPersonUid, $completion);
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).p7s = function (uid, clazzUid) {
    return this.m7t_1.p7s(uid, clazzUid);
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).q7s = function (uid, $completion) {
    return this.m7t_1.q7s(uid, $completion);
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).r7s = 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).s7s = function (uidList, active, changeTime, $completion) {
    return this.m7t_1.s7s(uidList, active, changeTime, $completion);
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).t7s = function (assignmentUid, clazzUid, accountPersonUid) {
    return this.m7t_1.t7s(assignmentUid, clazzUid, accountPersonUid);
  };
  protoOf(ClazzAssignmentDao_DoorWrapper).x7u = 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.x7u(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.x5m('submittedStudents');
      var _tmp_totalStudents = $_result.x5m('totalStudents');
      var _tmp_markedStudents = $_result.x5m('markedStudents');
      var _tmp_activeUserHasViewLearnerRecordsPermission = $_result.j66('activeUserHasViewLearnerRecordsPermission');
      var _tmp_isGroupAssignment = $_result.j66('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.y7u_1 = _tmp_submittedStudents;
      this_0.z7u_1 = _tmp_totalStudents;
      this_0.a7v_1 = _tmp_markedStudents;
      this_0.b7v_1 = _tmp_activeUserHasViewLearnerRecordsPermission;
      this_0.c7v_1 = _tmp_isGroupAssignment;
      return this_0;
    };
  }
  function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation) {
    this.l7v_1 = $clazzUid;
    this.m7v_1 = $accountPersonUid;
    this.n7v_1 = $assignmentUid;
    this.o7v_1 = $group;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda).q7v = function (_stmt, $completion) {
    var tmp = this.m5f(_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.q7v((!(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.p7v_1.v5h(1, this.l7v_1);
            this.p7v_1.v5h(2, this.m7v_1);
            this.p7v_1.v5h(3, this.m7v_1);
            this.p7v_1.v5h(4, this.l7v_1);
            this.p7v_1.v5h(5, this.m7v_1);
            this.p7v_1.v5h(6, this.m7v_1);
            this.p7v_1.v5h(7, this.n7v_1);
            this.p7v_1.v5h(8, this.n7v_1);
            this.p7v_1.v5h(9, this.l7v_1);
            this.p7v_1.v5h(10, this.n7v_1);
            this.p7v_1.v5h(11, this.n7v_1);
            this.p7v_1.v5h(12, this.m7v_1);
            this.p7v_1.y5h(13, this.o7v_1);
            this.p7v_1.v5h(14, this.n7v_1);
            this.p7v_1.v5h(15, this.n7v_1);
            this.p7v_1.v5h(16, this.n7v_1);
            this.p7v_1.v5h(17, this.n7v_1);
            this.p7v_1.v5h(18, this.n7v_1);
            this.p7v_1.v5h(19, this.m7v_1);
            this.p7v_1.v5h(20, this.n7v_1);
            this.p7v_1.v5h(21, this.n7v_1);
            this.p7v_1.v5h(22, this.n7v_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$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).m5f = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda(this.l7v_1, this.m7v_1, this.n7v_1, this.o7v_1, completion);
    i.p7v_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.q7v(_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.y5m('submitterUid');
      var _tmp_name = $_result.rz('name');
      var _tmp_pictureUri = $_result.rz('pictureUri');
      var _tmp_latestPrivateComment = $_result.rz('latestPrivateComment');
      var _tmp_fileSubmissionStatus = $_result.x5m('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.r7v_1 = _tmp_submitterUid;
      this_0.s7v_1 = _tmp_name;
      this_0.t7v_1 = _tmp_pictureUri;
      this_0.u7v_1 = _tmp_latestPrivateComment;
      this_0.v7v_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.m5s(1);
    };
  }
  function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, $_limit, $_offset, resultContinuation) {
    this.e7w_1 = $clazzUid;
    this.f7w_1 = $accountPersonUid;
    this.g7w_1 = $assignmentUid;
    this.h7w_1 = $group;
    this.i7w_1 = $searchText;
    this.j7w_1 = $sortOption;
    this.k7w_1 = $_limit;
    this.l7w_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda).n7w = function (_stmt, $completion) {
    var tmp = this.m5f(_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.n7w((!(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.m7w_1.v5h(1, this.e7w_1);
            this.m7w_1.v5h(2, this.f7w_1);
            this.m7w_1.v5h(3, this.f7w_1);
            this.m7w_1.v5h(4, this.e7w_1);
            this.m7w_1.v5h(5, this.f7w_1);
            this.m7w_1.v5h(6, this.f7w_1);
            this.m7w_1.v5h(7, this.g7w_1);
            this.m7w_1.v5h(8, this.g7w_1);
            this.m7w_1.v5h(9, this.e7w_1);
            this.m7w_1.v5h(10, this.g7w_1);
            this.m7w_1.v5h(11, this.g7w_1);
            this.m7w_1.v5h(12, this.f7w_1);
            this.m7w_1.y5h(13, this.h7w_1);
            this.m7w_1.v5h(14, this.g7w_1);
            this.m7w_1.v5h(15, this.g7w_1);
            this.m7w_1.v5h(16, this.g7w_1);
            this.m7w_1.v5h(17, this.g7w_1);
            this.m7w_1.v5h(18, this.g7w_1);
            this.m7w_1.v5h(19, this.f7w_1);
            this.m7w_1.v5h(20, this.g7w_1);
            this.m7w_1.v5h(21, this.g7w_1);
            this.m7w_1.v5h(22, this.g7w_1);
            this.m7w_1.y5h(23, this.i7w_1);
            this.m7w_1.y5h(24, this.i7w_1);
            this.m7w_1.u5h(25, this.j7w_1);
            this.m7w_1.u5h(26, this.j7w_1);
            this.m7w_1.u5h(27, this.k7w_1);
            this.m7w_1.u5h(28, this.l7w_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.m7w_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).m5f = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda(this.e7w_1, this.f7w_1, this.g7w_1, this.h7w_1, this.i7w_1, this.j7w_1, this.k7w_1, this.l7w_1, completion);
    i.m7w_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.n7w(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, resultContinuation) {
    this.w7w_1 = $clazzUid;
    this.x7w_1 = $accountPersonUid;
    this.y7w_1 = $assignmentUid;
    this.z7w_1 = $group;
    this.a7x_1 = $searchText;
    this.b7x_1 = $sortOption;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.c7x_1.v5h(1, this.w7w_1);
            this.c7x_1.v5h(2, this.x7w_1);
            this.c7x_1.v5h(3, this.x7w_1);
            this.c7x_1.v5h(4, this.w7w_1);
            this.c7x_1.v5h(5, this.x7w_1);
            this.c7x_1.v5h(6, this.x7w_1);
            this.c7x_1.v5h(7, this.y7w_1);
            this.c7x_1.v5h(8, this.y7w_1);
            this.c7x_1.v5h(9, this.w7w_1);
            this.c7x_1.v5h(10, this.y7w_1);
            this.c7x_1.v5h(11, this.y7w_1);
            this.c7x_1.v5h(12, this.x7w_1);
            this.c7x_1.y5h(13, this.z7w_1);
            this.c7x_1.v5h(14, this.y7w_1);
            this.c7x_1.v5h(15, this.y7w_1);
            this.c7x_1.v5h(16, this.y7w_1);
            this.c7x_1.v5h(17, this.y7w_1);
            this.c7x_1.v5h(18, this.y7w_1);
            this.c7x_1.v5h(19, this.x7w_1);
            this.c7x_1.v5h(20, this.y7w_1);
            this.c7x_1.v5h(21, this.y7w_1);
            this.c7x_1.v5h(22, this.y7w_1);
            this.c7x_1.y5h(23, this.a7x_1);
            this.c7x_1.y5h(24, this.a7x_1);
            this.c7x_1.u5h(25, this.b7x_1);
            this.c7x_1.u5h(26, this.b7x_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.c7x_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).m5f = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda(this.w7w_1, this.x7w_1, this.y7w_1, this.z7w_1, this.a7x_1, this.b7x_1, completion);
    i.c7x_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.j6j(_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.z5e(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.y5m('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.d7x_1 = _tmp_name;
      this_0.e7x_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.z5e(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.y5m('caUid');
      var _tmp_caTitle = $_result.rz('caTitle');
      var _tmp_caDescription = $_result.rz('caDescription');
      var _tmp_caGroupUid = $_result.y5m('caGroupUid');
      var _tmp_caActive = $_result.j66('caActive');
      var _tmp_caClassCommentEnabled = $_result.j66('caClassCommentEnabled');
      var _tmp_caPrivateCommentsEnabled = $_result.j66('caPrivateCommentsEnabled');
      var _tmp_caCompletionCriteria = $_result.x5m('caCompletionCriteria');
      var _tmp_caRequireFileSubmission = $_result.j66('caRequireFileSubmission');
      var _tmp_caFileType = $_result.x5m('caFileType');
      var _tmp_caSizeLimit = $_result.x5m('caSizeLimit');
      var _tmp_caNumberOfFiles = $_result.x5m('caNumberOfFiles');
      var _tmp_caSubmissionPolicy = $_result.x5m('caSubmissionPolicy');
      var _tmp_caMarkingType = $_result.x5m('caMarkingType');
      var _tmp_caRequireTextSubmission = $_result.j66('caRequireTextSubmission');
      var _tmp_caTextLimitType = $_result.x5m('caTextLimitType');
      var _tmp_caTextLimit = $_result.x5m('caTextLimit');
      var _tmp_caXObjectUid = $_result.y5m('caXObjectUid');
      var _tmp_caClazzUid = $_result.y5m('caClazzUid');
      var _tmp_caPeerReviewerCount = $_result.x5m('caPeerReviewerCount');
      var _tmp_caLocalChangeSeqNum = $_result.y5m('caLocalChangeSeqNum');
      var _tmp_caMasterChangeSeqNum = $_result.y5m('caMasterChangeSeqNum');
      var _tmp_caLastChangedBy = $_result.x5m('caLastChangedBy');
      var _tmp_caLct = $_result.y5m('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.n7t_1 = _tmp_caUid;
      this_0.o7t_1 = _tmp_caTitle;
      this_0.p7t_1 = _tmp_caDescription;
      this_0.q7t_1 = _tmp_caGroupUid;
      this_0.r7t_1 = _tmp_caActive;
      this_0.s7t_1 = _tmp_caClassCommentEnabled;
      this_0.t7t_1 = _tmp_caPrivateCommentsEnabled;
      this_0.u7t_1 = _tmp_caCompletionCriteria;
      this_0.v7t_1 = _tmp_caRequireFileSubmission;
      this_0.w7t_1 = _tmp_caFileType;
      this_0.x7t_1 = _tmp_caSizeLimit;
      this_0.y7t_1 = _tmp_caNumberOfFiles;
      this_0.z7t_1 = _tmp_caSubmissionPolicy;
      this_0.a7u_1 = _tmp_caMarkingType;
      this_0.b7u_1 = _tmp_caRequireTextSubmission;
      this_0.c7u_1 = _tmp_caTextLimitType;
      this_0.d7u_1 = _tmp_caTextLimit;
      this_0.e7u_1 = _tmp_caXObjectUid;
      this_0.f7u_1 = _tmp_caClazzUid;
      this_0.g7u_1 = _tmp_caPeerReviewerCount;
      this_0.h7u_1 = _tmp_caLocalChangeSeqNum;
      this_0.i7u_1 = _tmp_caMasterChangeSeqNum;
      this_0.j7u_1 = _tmp_caLastChangedBy;
      this_0.k7u_1 = _tmp_caLct;
      return this_0;
    };
  }
  function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda($uid, $clazzUid, resultContinuation) {
    this.n7x_1 = $uid;
    this.o7x_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).q7x = function (_stmt, $completion) {
    var tmp = this.m5f(_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.q7x((!(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.p7x_1.v5h(1, this.n7x_1);
            this.p7x_1.v5h(2, this.o7x_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.p7x_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).m5f = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda(this.n7x_1, this.o7x_1, completion);
    i.p7x_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.q7x(_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.y5m('caUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_caTitle = $_result.rz('caTitle');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_caDescription = $_result.rz('caDescription');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_caGroupUid = $_result.y5m('caGroupUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_caActive = $_result.j66('caActive');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_caClassCommentEnabled = $_result.j66('caClassCommentEnabled');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_caPrivateCommentsEnabled = $_result.j66('caPrivateCommentsEnabled');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_caCompletionCriteria = $_result.x5m('caCompletionCriteria');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_caRequireFileSubmission = $_result.j66('caRequireFileSubmission');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_caFileType = $_result.x5m('caFileType');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_caSizeLimit = $_result.x5m('caSizeLimit');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_caNumberOfFiles = $_result.x5m('caNumberOfFiles');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_caSubmissionPolicy = $_result.x5m('caSubmissionPolicy');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_caMarkingType = $_result.x5m('caMarkingType');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_caRequireTextSubmission = $_result.j66('caRequireTextSubmission');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_caTextLimitType = $_result.x5m('caTextLimitType');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_caTextLimit = $_result.x5m('caTextLimit');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_caXObjectUid = $_result.y5m('caXObjectUid');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_caClazzUid = $_result.y5m('caClazzUid');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_caPeerReviewerCount = $_result.x5m('caPeerReviewerCount');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_caLocalChangeSeqNum = $_result.y5m('caLocalChangeSeqNum');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_caMasterChangeSeqNum = $_result.y5m('caMasterChangeSeqNum');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_caLastChangedBy = $_result.x5m('caLastChangedBy');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_caLct = $_result.y5m('caLct');
      var tmp_22;
      if ($_result.q67()) {
        _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.y5m('cbUid');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_cbType = $_result.x5m('cbType');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_cbIndentLevel = $_result.x5m('cbIndentLevel');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_cbModuleParentBlockUid = $_result.y5m('cbModuleParentBlockUid');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_cbTitle = $_result.rz('cbTitle');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_cbDescription = $_result.rz('cbDescription');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_cbCompletionCriteria = $_result.x5m('cbCompletionCriteria');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_cbHideUntilDate = $_result.y5m('cbHideUntilDate');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_cbDeadlineDate = $_result.y5m('cbDeadlineDate');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_cbLateSubmissionPenalty = $_result.x5m('cbLateSubmissionPenalty');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_cbGracePeriodDate = $_result.y5m('cbGracePeriodDate');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_cbIndex = $_result.x5m('cbIndex');
      var tmp_36;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_cbClazzUid = $_result.y5m('cbClazzUid');
      var tmp_37;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_cbClazzSourcedId = $_result.rz('cbClazzSourcedId');
      var tmp_38;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_cbActive = $_result.j66('cbActive');
      var tmp_39;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_cbHidden = $_result.j66('cbHidden');
      var tmp_40;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_cbEntityUid = $_result.y5m('cbEntityUid');
      var tmp_41;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_cbLct = $_result.y5m('cbLct');
      var tmp_42;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_cbSourcedId = $_result.rz('cbSourcedId');
      var tmp_43;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_cbMetadata = $_result.rz('cbMetadata');
      var tmp_44;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_cbCreatedByAppId = $_result.rz('cbCreatedByAppId');
      var tmp_45;
      if ($_result.q67()) {
        _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.n7t_1 = _tmp_caUid;
        this_1.o7t_1 = _tmp_caTitle;
        this_1.p7t_1 = _tmp_caDescription;
        this_1.q7t_1 = _tmp_caGroupUid;
        this_1.r7t_1 = _tmp_caActive;
        this_1.s7t_1 = _tmp_caClassCommentEnabled;
        this_1.t7t_1 = _tmp_caPrivateCommentsEnabled;
        this_1.u7t_1 = _tmp_caCompletionCriteria;
        this_1.v7t_1 = _tmp_caRequireFileSubmission;
        this_1.w7t_1 = _tmp_caFileType;
        this_1.x7t_1 = _tmp_caSizeLimit;
        this_1.y7t_1 = _tmp_caNumberOfFiles;
        this_1.z7t_1 = _tmp_caSubmissionPolicy;
        this_1.a7u_1 = _tmp_caMarkingType;
        this_1.b7u_1 = _tmp_caRequireTextSubmission;
        this_1.c7u_1 = _tmp_caTextLimitType;
        this_1.d7u_1 = _tmp_caTextLimit;
        this_1.e7u_1 = _tmp_caXObjectUid;
        this_1.f7u_1 = _tmp_caClazzUid;
        this_1.g7u_1 = _tmp_caPeerReviewerCount;
        this_1.h7u_1 = _tmp_caLocalChangeSeqNum;
        this_1.i7u_1 = _tmp_caMasterChangeSeqNum;
        this_1.j7u_1 = _tmp_caLastChangedBy;
        this_1.k7u_1 = _tmp_caLct;
        tmp_46.r7x_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.t7x_1 = _tmp_cbUid;
        this_2.u7x_1 = _tmp_cbType;
        this_2.v7x_1 = _tmp_cbIndentLevel;
        this_2.w7x_1 = _tmp_cbModuleParentBlockUid;
        this_2.x7x_1 = _tmp_cbTitle;
        this_2.y7x_1 = _tmp_cbDescription;
        this_2.z7x_1 = _tmp_cbCompletionCriteria;
        this_2.a7y_1 = _tmp_cbHideUntilDate;
        this_2.b7y_1 = _tmp_cbDeadlineDate;
        this_2.c7y_1 = _tmp_cbLateSubmissionPenalty;
        this_2.d7y_1 = _tmp_cbGracePeriodDate;
        this_2.e7y_1 = _tmp_cbMaxPoints;
        this_2.f7y_1 = _tmp_cbMinPoints;
        this_2.g7y_1 = _tmp_cbIndex;
        this_2.h7y_1 = _tmp_cbClazzUid;
        this_2.i7y_1 = _tmp_cbClazzSourcedId;
        this_2.j7y_1 = _tmp_cbActive;
        this_2.k7y_1 = _tmp_cbHidden;
        this_2.l7y_1 = _tmp_cbEntityUid;
        this_2.m7y_1 = _tmp_cbLct;
        this_2.n7y_1 = _tmp_cbSourcedId;
        this_2.o7y_1 = _tmp_cbMetadata;
        this_2.p7y_1 = _tmp_cbCreatedByAppId;
        tmp_47.s7x_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.y5m('submitterUid');
      var _tmp_hasModeratePermission = $_result.j66('hasModeratePermission');
      var _tmp_ClazzAssignment_nullCount = 0;
      var _tmp_caUid = $_result.y5m('caUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_caTitle = $_result.rz('caTitle');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_caDescription = $_result.rz('caDescription');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_caGroupUid = $_result.y5m('caGroupUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_caActive = $_result.j66('caActive');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_caClassCommentEnabled = $_result.j66('caClassCommentEnabled');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_caPrivateCommentsEnabled = $_result.j66('caPrivateCommentsEnabled');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_caCompletionCriteria = $_result.x5m('caCompletionCriteria');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_caRequireFileSubmission = $_result.j66('caRequireFileSubmission');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_caFileType = $_result.x5m('caFileType');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_caSizeLimit = $_result.x5m('caSizeLimit');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_caNumberOfFiles = $_result.x5m('caNumberOfFiles');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_caSubmissionPolicy = $_result.x5m('caSubmissionPolicy');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_caMarkingType = $_result.x5m('caMarkingType');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_caRequireTextSubmission = $_result.j66('caRequireTextSubmission');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_caTextLimitType = $_result.x5m('caTextLimitType');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_caTextLimit = $_result.x5m('caTextLimit');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_caXObjectUid = $_result.y5m('caXObjectUid');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_caClazzUid = $_result.y5m('caClazzUid');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_caPeerReviewerCount = $_result.x5m('caPeerReviewerCount');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_caLocalChangeSeqNum = $_result.y5m('caLocalChangeSeqNum');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_caMasterChangeSeqNum = $_result.y5m('caMasterChangeSeqNum');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_caLastChangedBy = $_result.x5m('caLastChangedBy');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_caLct = $_result.y5m('caLct');
      var tmp_22;
      if ($_result.q67()) {
        _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.y5m('cbUid');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_cbType = $_result.x5m('cbType');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_cbIndentLevel = $_result.x5m('cbIndentLevel');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_cbModuleParentBlockUid = $_result.y5m('cbModuleParentBlockUid');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_cbTitle = $_result.rz('cbTitle');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_cbDescription = $_result.rz('cbDescription');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_cbCompletionCriteria = $_result.x5m('cbCompletionCriteria');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_cbHideUntilDate = $_result.y5m('cbHideUntilDate');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_cbDeadlineDate = $_result.y5m('cbDeadlineDate');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_cbLateSubmissionPenalty = $_result.x5m('cbLateSubmissionPenalty');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_cbGracePeriodDate = $_result.y5m('cbGracePeriodDate');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_cbIndex = $_result.x5m('cbIndex');
      var tmp_36;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_cbClazzUid = $_result.y5m('cbClazzUid');
      var tmp_37;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_cbClazzSourcedId = $_result.rz('cbClazzSourcedId');
      var tmp_38;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_cbActive = $_result.j66('cbActive');
      var tmp_39;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_cbHidden = $_result.j66('cbHidden');
      var tmp_40;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_cbEntityUid = $_result.y5m('cbEntityUid');
      var tmp_41;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_cbLct = $_result.y5m('cbLct');
      var tmp_42;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_cbSourcedId = $_result.rz('cbSourcedId');
      var tmp_43;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_cbMetadata = $_result.rz('cbMetadata');
      var tmp_44;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_cbCreatedByAppId = $_result.rz('cbCreatedByAppId');
      var tmp_45;
      if ($_result.q67()) {
        _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.y5m('cbpUid');
      var tmp_46;
      if ($_result.q67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_46 = Unit_instance;
      }
      var _tmp_cbpLct = $_result.y5m('cbpLct');
      var tmp_47;
      if ($_result.q67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_47 = Unit_instance;
      }
      var _tmp_cbpPictureUri = $_result.rz('cbpPictureUri');
      var tmp_48;
      if ($_result.q67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_48 = Unit_instance;
      }
      var _tmp_cbpThumbnailUri = $_result.rz('cbpThumbnailUri');
      var tmp_49;
      if ($_result.q67()) {
        _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.y5m('cgsUid');
      var tmp_50;
      if ($_result.q67()) {
        _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0;
        tmp_50 = Unit_instance;
      }
      var _tmp_cgsName = $_result.rz('cgsName');
      var tmp_51;
      if ($_result.q67()) {
        _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0;
        tmp_51 = Unit_instance;
      }
      var _tmp_cgsTotalGroups = $_result.x5m('cgsTotalGroups');
      var tmp_52;
      if ($_result.q67()) {
        _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0;
        tmp_52 = Unit_instance;
      }
      var _tmp_cgsActive = $_result.j66('cgsActive');
      var tmp_53;
      if ($_result.q67()) {
        _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0;
        tmp_53 = Unit_instance;
      }
      var _tmp_cgsClazzUid = $_result.y5m('cgsClazzUid');
      var tmp_54;
      if ($_result.q67()) {
        _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0;
        tmp_54 = Unit_instance;
      }
      var _tmp_cgsLct = $_result.y5m('cgsLct');
      var tmp_55;
      if ($_result.q67()) {
        _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.u7y_1 = _tmp_submitterUid;
      this_0.v7y_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.n7t_1 = _tmp_caUid;
        this_1.o7t_1 = _tmp_caTitle;
        this_1.p7t_1 = _tmp_caDescription;
        this_1.q7t_1 = _tmp_caGroupUid;
        this_1.r7t_1 = _tmp_caActive;
        this_1.s7t_1 = _tmp_caClassCommentEnabled;
        this_1.t7t_1 = _tmp_caPrivateCommentsEnabled;
        this_1.u7t_1 = _tmp_caCompletionCriteria;
        this_1.v7t_1 = _tmp_caRequireFileSubmission;
        this_1.w7t_1 = _tmp_caFileType;
        this_1.x7t_1 = _tmp_caSizeLimit;
        this_1.y7t_1 = _tmp_caNumberOfFiles;
        this_1.z7t_1 = _tmp_caSubmissionPolicy;
        this_1.a7u_1 = _tmp_caMarkingType;
        this_1.b7u_1 = _tmp_caRequireTextSubmission;
        this_1.c7u_1 = _tmp_caTextLimitType;
        this_1.d7u_1 = _tmp_caTextLimit;
        this_1.e7u_1 = _tmp_caXObjectUid;
        this_1.f7u_1 = _tmp_caClazzUid;
        this_1.g7u_1 = _tmp_caPeerReviewerCount;
        this_1.h7u_1 = _tmp_caLocalChangeSeqNum;
        this_1.i7u_1 = _tmp_caMasterChangeSeqNum;
        this_1.j7u_1 = _tmp_caLastChangedBy;
        this_1.k7u_1 = _tmp_caLct;
        tmp_56.q7y_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.t7x_1 = _tmp_cbUid;
        this_2.u7x_1 = _tmp_cbType;
        this_2.v7x_1 = _tmp_cbIndentLevel;
        this_2.w7x_1 = _tmp_cbModuleParentBlockUid;
        this_2.x7x_1 = _tmp_cbTitle;
        this_2.y7x_1 = _tmp_cbDescription;
        this_2.z7x_1 = _tmp_cbCompletionCriteria;
        this_2.a7y_1 = _tmp_cbHideUntilDate;
        this_2.b7y_1 = _tmp_cbDeadlineDate;
        this_2.c7y_1 = _tmp_cbLateSubmissionPenalty;
        this_2.d7y_1 = _tmp_cbGracePeriodDate;
        this_2.e7y_1 = _tmp_cbMaxPoints;
        this_2.f7y_1 = _tmp_cbMinPoints;
        this_2.g7y_1 = _tmp_cbIndex;
        this_2.h7y_1 = _tmp_cbClazzUid;
        this_2.i7y_1 = _tmp_cbClazzSourcedId;
        this_2.j7y_1 = _tmp_cbActive;
        this_2.k7y_1 = _tmp_cbHidden;
        this_2.l7y_1 = _tmp_cbEntityUid;
        this_2.m7y_1 = _tmp_cbLct;
        this_2.n7y_1 = _tmp_cbSourcedId;
        this_2.o7y_1 = _tmp_cbMetadata;
        this_2.p7y_1 = _tmp_cbCreatedByAppId;
        tmp_57.r7y_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.w7y_1 = _tmp_cbpUid;
        this_3.x7y_1 = _tmp_cbpLct;
        this_3.y7y_1 = _tmp_cbpPictureUri;
        this_3.z7y_1 = _tmp_cbpThumbnailUri;
        tmp_58.s7y_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.a7z_1 = _tmp_cgsUid;
        this_4.b7z_1 = _tmp_cgsName;
        this_4.c7z_1 = _tmp_cgsTotalGroups;
        this_4.d7z_1 = _tmp_cgsActive;
        this_4.e7z_1 = _tmp_cgsClazzUid;
        this_4.f7z_1 = _tmp_cgsLct;
        tmp_59.t7y_1 = this_4;
      }
      return this_0;
    };
  }
  function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda($accountPersonUid, $clazzUid, $assignmentUid, resultContinuation) {
    this.o7z_1 = $accountPersonUid;
    this.p7z_1 = $clazzUid;
    this.q7z_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda).s7z = function (_stmt, $completion) {
    var tmp = this.m5f(_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.s7z((!(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.r7z_1.v5h(1, this.o7z_1);
            this.r7z_1.v5h(2, this.p7z_1);
            this.r7z_1.v5h(3, this.q7z_1);
            this.r7z_1.v5h(4, this.o7z_1);
            this.r7z_1.v5h(5, this.q7z_1);
            this.r7z_1.v5h(6, this.q7z_1);
            this.r7z_1.v5h(7, this.o7z_1);
            this.r7z_1.v5h(8, this.q7z_1);
            this.r7z_1.v5h(9, this.o7z_1);
            this.r7z_1.v5h(10, this.q7z_1);
            this.r7z_1.v5h(11, this.q7z_1);
            this.r7z_1.v5h(12, this.o7z_1);
            this.r7z_1.v5h(13, this.p7z_1);
            this.r7z_1.v5h(14, this.o7z_1);
            this.r7z_1.v5h(15, this.o7z_1);
            this.r7z_1.v5h(16, this.p7z_1);
            this.r7z_1.v5h(17, this.o7z_1);
            this.r7z_1.v5h(18, this.o7z_1);
            this.r7z_1.v5h(19, this.q7z_1);
            this.r7z_1.v5h(20, this.p7z_1);
            this.r7z_1.v5h(21, this.p7z_1);
            this.r7z_1.v5h(22, this.o7z_1);
            this.r7z_1.v5h(23, this.o7z_1);
            this.r7z_1.v5h(24, this.p7z_1);
            this.r7z_1.v5h(25, this.o7z_1);
            this.r7z_1.v5h(26, this.o7z_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.r7z_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).m5f = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda(this.o7z_1, this.p7z_1, this.q7z_1, completion);
    i.r7z_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.s7z(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.t7z_1);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1).u5g = 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).y7z = function (stmt, entity) {
    if (entity.n7t_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.n7t_1);
    }
    stmt.y5h(2, entity.o7t_1);
    stmt.y5h(3, entity.p7t_1);
    stmt.v5h(4, entity.q7t_1);
    stmt.i5h(5, entity.r7t_1);
    stmt.i5h(6, entity.s7t_1);
    stmt.i5h(7, entity.t7t_1);
    stmt.u5h(8, entity.u7t_1);
    stmt.i5h(9, entity.v7t_1);
    stmt.u5h(10, entity.w7t_1);
    stmt.u5h(11, entity.x7t_1);
    stmt.u5h(12, entity.y7t_1);
    stmt.u5h(13, entity.z7t_1);
    stmt.u5h(14, entity.a7u_1);
    stmt.i5h(15, entity.b7u_1);
    stmt.u5h(16, entity.c7u_1);
    stmt.u5h(17, entity.d7u_1);
    stmt.v5h(18, entity.e7u_1);
    stmt.v5h(19, entity.f7u_1);
    stmt.u5h(20, entity.g7u_1);
    stmt.v5h(21, entity.h7u_1);
    stmt.v5h(22, entity.i7u_1);
    stmt.u5h(23, entity.j7u_1);
    stmt.v5h(24, entity.k7u_1);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1).p5f = function (stmt, entity) {
    return this.y7z(stmt, entity instanceof ClazzAssignment ? entity : THROW_CCE());
  };
  function ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.t7z_1);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1).u5g = 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).y7z = function (stmt, entity) {
    if (entity.n7t_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.n7t_1);
    }
    stmt.y5h(2, entity.o7t_1);
    stmt.y5h(3, entity.p7t_1);
    stmt.v5h(4, entity.q7t_1);
    stmt.i5h(5, entity.r7t_1);
    stmt.i5h(6, entity.s7t_1);
    stmt.i5h(7, entity.t7t_1);
    stmt.u5h(8, entity.u7t_1);
    stmt.i5h(9, entity.v7t_1);
    stmt.u5h(10, entity.w7t_1);
    stmt.u5h(11, entity.x7t_1);
    stmt.u5h(12, entity.y7t_1);
    stmt.u5h(13, entity.z7t_1);
    stmt.u5h(14, entity.a7u_1);
    stmt.i5h(15, entity.b7u_1);
    stmt.u5h(16, entity.c7u_1);
    stmt.u5h(17, entity.d7u_1);
    stmt.v5h(18, entity.e7u_1);
    stmt.v5h(19, entity.f7u_1);
    stmt.u5h(20, entity.g7u_1);
    stmt.v5h(21, entity.h7u_1);
    stmt.v5h(22, entity.i7u_1);
    stmt.u5h(23, entity.j7u_1);
    stmt.v5h(24, entity.k7u_1);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1).p5f = function (stmt, entity) {
    return this.y7z(stmt, entity instanceof ClazzAssignment ? entity : THROW_CCE());
  };
  function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda(this$0, $clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation) {
    this.j80_1 = this$0;
    this.k80_1 = $clazzUid;
    this.l80_1 = $accountPersonUid;
    this.m80_1 = $assignmentUid;
    this.n80_1 = $group;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda).o80 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda).m78 = function ($completion) {
    return this.o80($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.j80_1.t7z_1, tmp_0, ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda_0(this.k80_1, this.l80_1, this.m80_1, this.n80_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).l78 = function (completion) {
    return new ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda(this.j80_1, this.k80_1, this.l80_1, this.m80_1, this.n80_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.o80($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1(this$0, $clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption) {
    this.v80_1 = this$0;
    this.w80_1 = $clazzUid;
    this.x80_1 = $accountPersonUid;
    this.y80_1 = $assignmentUid;
    this.z80_1 = $group;
    this.a81_1 = $searchText;
    this.b81_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.t7z_1, tmp$ret$2);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1).c81 = 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.v80_1.t7z_1, tmp, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda_0(this.w80_1, this.x80_1, this.y80_1, this.z80_1, this.a81_1, this.b81_1, _limit, _offset, null), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1).w5p = function (_limit, _offset, $completion) {
    return this.c81(_limit, _offset, $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1).q5r = 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.v80_1.t7z_1, tmp, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda_0(this.w80_1, this.x80_1, this.y80_1, this.z80_1, this.a81_1, this.b81_1, null), $completion);
  };
  function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda($groupSetUid, $clazzUid, $time, resultContinuation) {
    this.l81_1 = $groupSetUid;
    this.m81_1 = $clazzUid;
    this.n81_1 = $time;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda).p81 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.p81((!(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.o81_1.v5h(1, this.l81_1);
            this.o81_1.v5h(2, this.m81_1);
            this.o81_1.v5h(3, this.n81_1);
            this.o81_1.v5h(4, this.l81_1);
            this.o81_1.v5h(5, this.l81_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.o81_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).m5f = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda(this.l81_1, this.m81_1, this.n81_1, completion);
    i.o81_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.p81(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda($groupSetUid, $clazzUid, $date, $groupStr, resultContinuation) {
    this.y81_1 = $groupSetUid;
    this.z81_1 = $clazzUid;
    this.a82_1 = $date;
    this.b82_1 = $groupStr;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda).d82 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.d82((!(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.c82_1.v5h(1, this.y81_1);
            this.c82_1.v5h(2, this.z81_1);
            this.c82_1.v5h(3, this.a82_1);
            this.c82_1.v5h(4, this.y81_1);
            this.c82_1.v5h(5, this.y81_1);
            this.c82_1.v5h(6, this.y81_1);
            this.c82_1.y5h(7, this.b82_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.c82_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).m5f = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda(this.y81_1, this.z81_1, this.a82_1, this.b82_1, completion);
    i.c82_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.d82(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda($clazzUid, $assignmentUid, $accountPersonUid, resultContinuation) {
    this.m82_1 = $clazzUid;
    this.n82_1 = $assignmentUid;
    this.o82_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda).b5g = function (_stmt, $completion) {
    var tmp = this.m5f(_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.b5g((!(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.p82_1.v5h(1, this.m82_1);
            this.p82_1.v5h(2, this.n82_1);
            this.p82_1.v5h(3, this.o82_1);
            this.p82_1.v5h(4, this.n82_1);
            this.p82_1.v5h(5, this.n82_1);
            this.p82_1.v5h(6, this.o82_1);
            this.p82_1.v5h(7, this.n82_1);
            this.p82_1.v5h(8, this.o82_1);
            this.p82_1.v5h(9, this.n82_1);
            this.p82_1.v5h(10, this.n82_1);
            this.p82_1.v5h(11, this.o82_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.p82_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).m5f = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda(this.m82_1, this.n82_1, this.o82_1, completion);
    i.p82_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.b5g(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation) {
    this.y82_1 = this$0;
    this.z82_1 = $uid;
    this.a83_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).b83 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).m78 = function ($completion) {
    return this.b83($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.y82_1.t7z_1, tmp_0, ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda_0(this.z82_1, this.a83_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).l78 = function (completion) {
    return new ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this.y82_1, this.z82_1, this.a83_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.b83($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda($uid, resultContinuation) {
    this.k83_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda).m83 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.m83((!(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.l83_1.v5h(1, this.k83_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.l83_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).m5f = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda(this.k83_1, completion);
    i.l83_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.m83(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda($active, $changeTime, $uidList, resultContinuation) {
    this.v83_1 = $active;
    this.w83_1 = $changeTime;
    this.x83_1 = $uidList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.y83_1.i5h(1, this.v83_1);
            this.y83_1.v5h(2, this.w83_1);
            var tmp_0 = this.y83_1.r5g();
            var this_0 = this.x83_1;
            this.y83_1.z5h(3, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.y83_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).m5f = function (_stmt, completion) {
    var i = new ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda(this.v83_1, this.w83_1, this.x83_1, completion);
    i.y83_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $assignmentUid, resultContinuation) {
    this.h84_1 = this$0;
    this.i84_1 = $accountPersonUid;
    this.j84_1 = $clazzUid;
    this.k84_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).l84 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).m78 = function ($completion) {
    return this.l84($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.h84_1.t7z_1, tmp_0, ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda_0(this.i84_1, this.j84_1, this.k84_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).l78 = function (completion) {
    return new ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this.h84_1, this.i84_1, this.j84_1, this.k84_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.l84($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$4(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.u84_1 = _this__u8e3s4;
    this.v84_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.u84_1.v7z_1.w5g(this.v84_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.e85_1 = _this__u8e3s4;
    this.f85_1 = uidList;
    this.g85_1 = active;
    this.h85_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.e85_1.t7z_1, tmp_0, ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda_0(this.g85_1, this.h85_1, this.f85_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.t7z_1 = _db;
    var tmp = this;
    tmp.u7z_1 = new ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1(this);
    var tmp_0 = this;
    tmp_0.v7z_1 = new ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1(this);
  }
  protoOf(ClazzAssignmentDao_JdbcImpl).r7s = function (entities, $completion) {
    return this.u7z_1.z5g(entities, $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).x7u = 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.x7u(entity instanceof ClazzAssignment ? entity : THROW_CCE(), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).k7s = 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.t7z_1, tmp, ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda_0(this, clazzUid, accountPersonUid, assignmentUid, group, null));
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).l7s = function (assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption) {
    return new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1(this, clazzUid, accountPersonUid, assignmentUid, group, searchText, sortOption);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).m7s = 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.t7z_1, tmp, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda_0(groupSetUid, clazzUid, time, null), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).n7s = 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.t7z_1, tmp, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda_0(groupSetUid, clazzUid, date, groupStr, null), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).o7s = 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.t7z_1, tmp, ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda_0(clazzUid, assignmentUid, accountPersonUid, null), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).p7s = 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.t7z_1, tmp, ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda_0(this, uid, clazzUid, null));
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).q7s = 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.t7z_1, tmp, ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda_0(uid, null), $completion);
  };
  protoOf(ClazzAssignmentDao_JdbcImpl).s7s = 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).t7s = 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.t7z_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.q85_1 = this$0;
    this.r85_1 = $assignmentUid;
    this.s85_1 = $clazzUid;
    this.t85_1 = $accountPersonUid;
    this.u85_1 = $group;
    this.v85_1 = $searchText;
    this.w85_1 = $sortOption;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_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.h86(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.z85_1 = this.q85_1.k86_1;
            var tmp_1 = this;
            tmp_1.a86_1 = 'ClazzAssignmentDao/getAssignmentSubmitterSummaryListForAssignment';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.b86_1 = this.q85_1.m86_1;
            var tmp_3 = this;
            tmp_3.c86_1 = this.b86_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.q85_1.k86_1.j39(), 'ClazzAssignmentDao/getAssignmentSubmitterSummaryListForAssignment');
            doorNodeIdHeader(this_0, this.q85_1.k86_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'assignmentUid', this.q85_1.k86_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.r85_1));
            parameter(this_0, 'clazzUid', this.q85_1.k86_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.s85_1));
            parameter(this_0, 'accountPersonUid', this.q85_1.k86_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.t85_1));
            parameter(this_0, 'group', this.q85_1.k86_1.j39().x65_1.r45(serializer_0(StringCompanionObject_instance), this.u85_1));
            parameter(this_0, 'searchText', this.q85_1.k86_1.j39().x65_1.r45(serializer_0(StringCompanionObject_instance), this.v85_1));
            parameter(this_0, 'sortOption', this.q85_1.k86_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.w85_1));
            pagingSourceLoadParameters(this_0, this.q85_1.k86_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.x85_1);
            tmp_4.d86_1 = this_0;
            this.d86_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.e86_1 = this.c86_1;
            var tmp_6 = this;
            tmp_6.f86_1 = this.d86_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.f86_1, this.e86_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.g86_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.q85_1.j86_1, this.g86_1, this.q85_1.k86_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.y85_1 = endOfPaginationReached(this.g86_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().d5e(e, 'DoorLog', ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda$lambda(this.z85_1, this.a86_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.y85_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).i86 = function (_pagingParams, completion) {
    var i = new ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda(this.q85_1, this.r85_1, this.s85_1, this.t85_1, this.u85_1, this.v85_1, this.w85_1, completion);
    i.x85_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.h86(_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.y86_1 = this$0;
    this.z86_1 = $uid;
    this.a87_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.b87_1 = this.y86_1.k86_1;
            var tmp_1 = this;
            tmp_1.c87_1 = 'ClazzAssignmentDao/findByUidAndClazzUidAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.d87_1 = this.y86_1.m86_1;
            var tmp_3 = this;
            tmp_3.e87_1 = this.d87_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.y86_1.k86_1.j39(), 'ClazzAssignmentDao/findByUidAndClazzUidAsFlow');
            doorNodeIdHeader(this_0, this.y86_1.k86_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.y86_1.k86_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.z86_1));
            parameter(this_0, 'clazzUid', this.y86_1.k86_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.a87_1));
            tmp_4.f87_1 = this_0;
            this.f87_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.g87_1 = this.e87_1;
            var tmp_6 = this;
            tmp_6.h87_1 = this.f87_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.h87_1, this.g87_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.i87_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.y86_1.j86_1, this.i87_1, this.y86_1.k86_1.j39().x65_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().d5e(e, 'DoorLog', ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda$lambda(this.b87_1, this.c87_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).l78 = function (completion) {
    return new ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda(this.y86_1, this.z86_1, this.a87_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.j87($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.s87_1 = this$0;
    this.t87_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_Repo$upsertListAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_Repo$upsertListAsync$slambda).m78 = function ($completion) {
    return this.j87($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.s87_1.l86_1.r7s(this.t87_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).l78 = function (completion) {
    return new ClazzAssignmentDao_Repo$upsertListAsync$slambda(this.s87_1, this.t87_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzAssignmentDao_Repo$updateActiveByList$slambda(this$0, $uidList, $active, $changeTime, resultContinuation) {
    this.c88_1 = this$0;
    this.d88_1 = $uidList;
    this.e88_1 = $active;
    this.f88_1 = $changeTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_Repo$updateActiveByList$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_Repo$updateActiveByList$slambda).m78 = function ($completion) {
    return this.j87($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.c88_1.l86_1.s7s(this.d88_1, this.e88_1, this.f88_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).l78 = function (completion) {
    return new ClazzAssignmentDao_Repo$updateActiveByList$slambda(this.c88_1, this.d88_1, this.e88_1, this.f88_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this$0, $assignmentUid, $clazzUid, $accountPersonUid, resultContinuation) {
    this.o88_1 = this$0;
    this.p88_1 = $assignmentUid;
    this.q88_1 = $clazzUid;
    this.r88_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.s88_1 = this.o88_1.k86_1;
            var tmp_1 = this;
            tmp_1.t88_1 = 'ClazzAssignmentDao/findAssignmentCourseBlockAndSubmitterUidAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.u88_1 = this.o88_1.m86_1;
            var tmp_3 = this;
            tmp_3.v88_1 = this.u88_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.o88_1.k86_1.j39(), 'ClazzAssignmentDao/findAssignmentCourseBlockAndSubmitterUidAsFlow');
            doorNodeIdHeader(this_0, this.o88_1.k86_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'assignmentUid', this.o88_1.k86_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.p88_1));
            parameter(this_0, 'clazzUid', this.o88_1.k86_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.q88_1));
            parameter(this_0, 'accountPersonUid', this.o88_1.k86_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.r88_1));
            tmp_4.w88_1 = this_0;
            this.w88_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.x88_1 = this.v88_1;
            var tmp_6 = this;
            tmp_6.y88_1 = this.w88_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.y88_1, this.x88_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.z88_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.o88_1.j86_1, this.z88_1, this.o88_1.k86_1.j39().x65_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().d5e(e, 'DoorLog', ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$lambda(this.s88_1, this.t88_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).l78 = function (completion) {
    return new ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this.o88_1, this.p88_1, this.q88_1, this.r88_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzAssignmentDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.i89_1 = this$0;
    this.j89_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzAssignmentDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzAssignmentDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.i89_1.l86_1.insertAsync(this.j89_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).l78 = function (completion) {
    return new ClazzAssignmentDao_Repo$insertAsync$slambda(this.i89_1, this.j89_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $getSubmitterUidsByClazzOrGroupSetUidCOROUTINE$14(_this__u8e3s4, clazzUid, groupSetUid, time, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.t89_1 = _this__u8e3s4;
    this.u89_1 = clazzUid;
    this.v89_1 = groupSetUid;
    this.w89_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.t89_1.l86_1.m7s(this.u89_1, this.v89_1, this.w89_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.f8a_1 = _this__u8e3s4;
    this.g8a_1 = clazzUid;
    this.h8a_1 = groupSetUid;
    this.i8a_1 = date;
    this.j8a_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.k8a_1 = this.f8a_1.k86_1;
            var tmp_1 = this;
            tmp_1.l8a_1 = 'ClazzAssignmentDao/getSubmitterUidsAndNameByClazzOrGroupSetUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.m8a_1 = this.f8a_1.m86_1;
            var tmp_3 = this;
            tmp_3.n8a_1 = this.m8a_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.f8a_1.k86_1.j39(), 'ClazzAssignmentDao/getSubmitterUidsAndNameByClazzOrGroupSetUid');
            doorNodeIdHeader(this_0, this.f8a_1.k86_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.f8a_1.k86_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.g8a_1));
            parameter(this_0, 'groupSetUid', this.f8a_1.k86_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.h8a_1));
            parameter(this_0, 'date', this.f8a_1.k86_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.i8a_1));
            parameter(this_0, 'groupStr', this.f8a_1.k86_1.j39().x65_1.r45(serializer_0(StringCompanionObject_instance), this.j8a_1));
            tmp_4.o8a_1 = this_0;
            this.o8a_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.p8a_1 = this.n8a_1;
            var tmp_6 = this;
            tmp_6.q8a_1 = this.o8a_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.q8a_1, this.p8a_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.r8a_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.f8a_1.j86_1, this.r8a_1, this.f8a_1.k86_1.j39().x65_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.s8a_1 = this.kd_1;
              Napier_getInstance().d5e(this.s8a_1, 'DoorLog', ClazzAssignmentDao_Repo$getSubmitterUidsAndNameByClazzOrGroupSetUid$lambda(this.k8a_1, this.l8a_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.f8a_1.l86_1.n7s(this.g8a_1, this.h8a_1, this.i8a_1, this.j8a_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.b8b_1 = _this__u8e3s4;
    this.c8b_1 = assignmentUid;
    this.d8b_1 = clazzUid;
    this.e8b_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.f8b_1 = this.b8b_1.k86_1;
            var tmp_1 = this;
            tmp_1.g8b_1 = 'ClazzAssignmentDao/getSubmitterUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.h8b_1 = this.b8b_1.m86_1;
            var tmp_3 = this;
            tmp_3.i8b_1 = this.h8b_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.b8b_1.k86_1.j39(), 'ClazzAssignmentDao/getSubmitterUid');
            doorNodeIdHeader(this_0, this.b8b_1.k86_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'assignmentUid', this.b8b_1.k86_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.c8b_1));
            parameter(this_0, 'clazzUid', this.b8b_1.k86_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.d8b_1));
            parameter(this_0, 'accountPersonUid', this.b8b_1.k86_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.e8b_1));
            tmp_4.j8b_1 = this_0;
            this.j8b_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.k8b_1 = this.i8b_1;
            var tmp_6 = this;
            tmp_6.l8b_1 = this.j8b_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.l8b_1, this.k8b_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.m8b_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.b8b_1.j86_1, this.m8b_1, this.b8b_1.k86_1.j39().x65_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.n8b_1 = this.kd_1;
              Napier_getInstance().d5e(this.n8b_1, 'DoorLog', ClazzAssignmentDao_Repo$getSubmitterUid$lambda(this.f8b_1, this.g8b_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.b8b_1.l86_1.o7s(this.c8b_1, this.d8b_1, this.e8b_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.w8b_1 = _this__u8e3s4;
    this.x8b_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.y8b_1 = this.w8b_1.k86_1;
            var tmp_1 = this;
            tmp_1.z8b_1 = 'ClazzAssignmentDao/findByUidWithBlockAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.a8c_1 = this.w8b_1.m86_1;
            var tmp_3 = this;
            tmp_3.b8c_1 = this.a8c_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.w8b_1.k86_1.j39(), 'ClazzAssignmentDao/findByUidWithBlockAsync');
            doorNodeIdHeader(this_0, this.w8b_1.k86_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.w8b_1.k86_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.x8b_1));
            tmp_4.c8c_1 = this_0;
            this.c8c_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.d8c_1 = this.b8c_1;
            var tmp_6 = this;
            tmp_6.e8c_1 = this.c8c_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.e8c_1, this.d8c_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.f8c_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.w8b_1.j86_1, this.f8c_1, this.w8b_1.k86_1.j39().x65_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.g8c_1 = this.kd_1;
              Napier_getInstance().d5e(this.g8c_1, 'DoorLog', ClazzAssignmentDao_Repo$findByUidWithBlockAsync$lambda(this.y8b_1, this.z8b_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.w8b_1.l86_1.q7s(this.x8b_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.p8c_1 = _this__u8e3s4;
    this.q8c_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.p8c_1.k86_1, 'ClazzAssignment', ClazzAssignmentDao_Repo$insertAsync$slambda_0(this.p8c_1, this.q8c_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.j86_1 = _db;
    this.k86_1 = _repo;
    this.l86_1 = _dao;
    this.m86_1 = _httpClient;
    this.n86_1 = _clientId;
    this.o86_1 = _endpoint;
    this.p86_1 = new RepoDaoFlowHelper(this.k86_1);
  }
  protoOf(ClazzAssignmentDao_Repo).k7s = function (assignmentUid, clazzUid, accountPersonUid, group) {
    var _result = this.l86_1.k7s(assignmentUid, clazzUid, accountPersonUid, group);
    return _result;
  };
  protoOf(ClazzAssignmentDao_Repo).l7s = function (assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption) {
    var tmp = this.l86_1.l7s(assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption);
    return new DoorRepositoryReplicatePullPagingSource(this.k86_1, 'ClazzAssignmentDao/getAssignmentSubmitterSummaryListForAssignment', tmp, ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda_0(this, assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption, null));
  };
  protoOf(ClazzAssignmentDao_Repo).m7s = 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).n7s = 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).o7s = 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).p7s = function (uid, clazzUid) {
    var tmp = this.l86_1.p7s(uid, clazzUid);
    return this.p86_1.o67(tmp, ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda_0(this, uid, clazzUid, null));
  };
  protoOf(ClazzAssignmentDao_Repo).q7s = 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).r7s = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.k86_1, 'ClazzAssignment', ClazzAssignmentDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(ClazzAssignmentDao_Repo).s7s = function (uidList, active, changeTime, $completion) {
    return withRepoChangeMonitorAsync(this.k86_1, 'ClazzAssignment', ClazzAssignmentDao_Repo$updateActiveByList$slambda_0(this, uidList, active, changeTime, null), $completion);
  };
  protoOf(ClazzAssignmentDao_Repo).t7s = function (assignmentUid, clazzUid, accountPersonUid) {
    var tmp = this.l86_1.t7s(assignmentUid, clazzUid, accountPersonUid);
    return this.p86_1.o67(tmp, ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda_0(this, assignmentUid, clazzUid, accountPersonUid, null));
  };
  protoOf(ClazzAssignmentDao_Repo).x7u = 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.x7u(entity instanceof ClazzAssignment ? entity : THROW_CCE(), $completion);
  };
  function ClazzDao() {
  }
  function $insertAsyncCOROUTINE$28(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.l8d_1 = _this__u8e3s4;
    this.m8d_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.n8d_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.l8d_1.p8d_1));
            if (this.m8d_1.r8d_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.n8d_1.o62(6, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.o8d_1 = suspendResult;
            this.m8d_1.r8d_1 = this.o8d_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.m8d_1.i8e_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.l8d_1.q8d_1.insertAsync(this.m8d_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.m8d_1.r8d_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.p8d_1 = _db;
    this.q8d_1 = _dao;
  }
  protoOf(ClazzDao_DoorWrapper).r8c = function (code, $completion) {
    return this.q8d_1.r8c(code, $completion);
  };
  protoOf(ClazzDao_DoorWrapper).s8c = function (clazzUid, $completion) {
    return this.q8d_1.s8c(clazzUid, $completion);
  };
  protoOf(ClazzDao_DoorWrapper).t8c = function (uid) {
    return this.q8d_1.t8c(uid);
  };
  protoOf(ClazzDao_DoorWrapper).u8c = function (uid, $completion) {
    return this.q8d_1.u8c(uid, $completion);
  };
  protoOf(ClazzDao_DoorWrapper).v8c = function (entity, $completion) {
    entity.i8e_1 = systemTimeInMillis();
    return this.q8d_1.v8c(entity, $completion);
  };
  protoOf(ClazzDao_DoorWrapper).w8c = function (searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission) {
    return this.q8d_1.w8c(searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission);
  };
  protoOf(ClazzDao_DoorWrapper).x8c = function (accountPersonUid, clazzUid) {
    return this.q8d_1.x8c(accountPersonUid, clazzUid);
  };
  protoOf(ClazzDao_DoorWrapper).y8c = function (clazzUid, currentTime, accountPersonUid) {
    return this.q8d_1.y8c(clazzUid, currentTime, accountPersonUid);
  };
  protoOf(ClazzDao_DoorWrapper).z8c = function (clazzUid) {
    return this.q8d_1.z8c(clazzUid);
  };
  protoOf(ClazzDao_DoorWrapper).a8d = function (clazzUid) {
    return this.q8d_1.a8d(clazzUid);
  };
  protoOf(ClazzDao_DoorWrapper).b8d = function (clazzUid) {
    return this.q8d_1.b8d(clazzUid);
  };
  protoOf(ClazzDao_DoorWrapper).c8d = function (clazzUid, $completion) {
    return this.q8d_1.c8d(clazzUid, $completion);
  };
  protoOf(ClazzDao_DoorWrapper).q8e = 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.q8e(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.y5m('clazzUid');
      var _tmp_clazzName = $_result.rz('clazzName');
      var _tmp_clazzDesc = $_result.rz('clazzDesc');
      var _tmp_attendanceAverage = $_result.l66('attendanceAverage');
      var _tmp_clazzHolidayUMCalendarUid = $_result.y5m('clazzHolidayUMCalendarUid');
      var _tmp_clazzScheuleUMCalendarUid = $_result.y5m('clazzScheuleUMCalendarUid');
      var _tmp_isClazzActive = $_result.j66('isClazzActive');
      var _tmp_clazzLocationUid = $_result.y5m('clazzLocationUid');
      var _tmp_clazzStartTime = $_result.y5m('clazzStartTime');
      var _tmp_clazzEndTime = $_result.y5m('clazzEndTime');
      var _tmp_clazzFeatures = $_result.y5m('clazzFeatures');
      var _tmp_clazzSchoolUid = $_result.y5m('clazzSchoolUid');
      var _tmp_clazzEnrolmentPolicy = $_result.x5m('clazzEnrolmentPolicy');
      var _tmp_clazzTerminologyUid = $_result.y5m('clazzTerminologyUid');
      var _tmp_clazzMasterChangeSeqNum = $_result.y5m('clazzMasterChangeSeqNum');
      var _tmp_clazzLocalChangeSeqNum = $_result.y5m('clazzLocalChangeSeqNum');
      var _tmp_clazzLastChangedBy = $_result.x5m('clazzLastChangedBy');
      var _tmp_clazzLct = $_result.y5m('clazzLct');
      var _tmp_clazzTimeZone = $_result.rz('clazzTimeZone');
      var _tmp_clazzStudentsPersonGroupUid = $_result.y5m('clazzStudentsPersonGroupUid');
      var _tmp_clazzTeachersPersonGroupUid = $_result.y5m('clazzTeachersPersonGroupUid');
      var _tmp_clazzPendingStudentsPersonGroupUid = $_result.y5m('clazzPendingStudentsPersonGroupUid');
      var _tmp_clazzParentsPersonGroupUid = $_result.y5m('clazzParentsPersonGroupUid');
      var _tmp_clazzCode = $_result.rz('clazzCode');
      var _tmp_clazzOwnerPersonUid = $_result.y5m('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.r8d_1 = _tmp_clazzUid;
      this_0.s8d_1 = _tmp_clazzName;
      this_0.t8d_1 = _tmp_clazzDesc;
      this_0.u8d_1 = _tmp_attendanceAverage;
      this_0.v8d_1 = _tmp_clazzHolidayUMCalendarUid;
      this_0.w8d_1 = _tmp_clazzScheuleUMCalendarUid;
      this_0.x8d_1 = _tmp_isClazzActive;
      this_0.y8d_1 = _tmp_clazzLocationUid;
      this_0.z8d_1 = _tmp_clazzStartTime;
      this_0.a8e_1 = _tmp_clazzEndTime;
      this_0.b8e_1 = _tmp_clazzFeatures;
      this_0.c8e_1 = _tmp_clazzSchoolUid;
      this_0.d8e_1 = _tmp_clazzEnrolmentPolicy;
      this_0.e8e_1 = _tmp_clazzTerminologyUid;
      this_0.f8e_1 = _tmp_clazzMasterChangeSeqNum;
      this_0.g8e_1 = _tmp_clazzLocalChangeSeqNum;
      this_0.h8e_1 = _tmp_clazzLastChangedBy;
      this_0.i8e_1 = _tmp_clazzLct;
      this_0.j8e_1 = _tmp_clazzTimeZone;
      this_0.k8e_1 = _tmp_clazzStudentsPersonGroupUid;
      this_0.l8e_1 = _tmp_clazzTeachersPersonGroupUid;
      this_0.m8e_1 = _tmp_clazzPendingStudentsPersonGroupUid;
      this_0.n8e_1 = _tmp_clazzParentsPersonGroupUid;
      this_0.o8e_1 = _tmp_clazzCode;
      this_0.p8e_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.y5m('clazzUid');
      var _tmp_clazzName = $_result.rz('clazzName');
      var _tmp_clazzDesc = $_result.rz('clazzDesc');
      var _tmp_attendanceAverage = $_result.l66('attendanceAverage');
      var _tmp_clazzHolidayUMCalendarUid = $_result.y5m('clazzHolidayUMCalendarUid');
      var _tmp_clazzScheuleUMCalendarUid = $_result.y5m('clazzScheuleUMCalendarUid');
      var _tmp_isClazzActive = $_result.j66('isClazzActive');
      var _tmp_clazzLocationUid = $_result.y5m('clazzLocationUid');
      var _tmp_clazzStartTime = $_result.y5m('clazzStartTime');
      var _tmp_clazzEndTime = $_result.y5m('clazzEndTime');
      var _tmp_clazzFeatures = $_result.y5m('clazzFeatures');
      var _tmp_clazzSchoolUid = $_result.y5m('clazzSchoolUid');
      var _tmp_clazzEnrolmentPolicy = $_result.x5m('clazzEnrolmentPolicy');
      var _tmp_clazzTerminologyUid = $_result.y5m('clazzTerminologyUid');
      var _tmp_clazzMasterChangeSeqNum = $_result.y5m('clazzMasterChangeSeqNum');
      var _tmp_clazzLocalChangeSeqNum = $_result.y5m('clazzLocalChangeSeqNum');
      var _tmp_clazzLastChangedBy = $_result.x5m('clazzLastChangedBy');
      var _tmp_clazzLct = $_result.y5m('clazzLct');
      var _tmp_clazzTimeZone = $_result.rz('clazzTimeZone');
      var _tmp_clazzStudentsPersonGroupUid = $_result.y5m('clazzStudentsPersonGroupUid');
      var _tmp_clazzTeachersPersonGroupUid = $_result.y5m('clazzTeachersPersonGroupUid');
      var _tmp_clazzPendingStudentsPersonGroupUid = $_result.y5m('clazzPendingStudentsPersonGroupUid');
      var _tmp_clazzParentsPersonGroupUid = $_result.y5m('clazzParentsPersonGroupUid');
      var _tmp_clazzCode = $_result.rz('clazzCode');
      var _tmp_clazzOwnerPersonUid = $_result.y5m('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.r8d_1 = _tmp_clazzUid;
      this_0.s8d_1 = _tmp_clazzName;
      this_0.t8d_1 = _tmp_clazzDesc;
      this_0.u8d_1 = _tmp_attendanceAverage;
      this_0.v8d_1 = _tmp_clazzHolidayUMCalendarUid;
      this_0.w8d_1 = _tmp_clazzScheuleUMCalendarUid;
      this_0.x8d_1 = _tmp_isClazzActive;
      this_0.y8d_1 = _tmp_clazzLocationUid;
      this_0.z8d_1 = _tmp_clazzStartTime;
      this_0.a8e_1 = _tmp_clazzEndTime;
      this_0.b8e_1 = _tmp_clazzFeatures;
      this_0.c8e_1 = _tmp_clazzSchoolUid;
      this_0.d8e_1 = _tmp_clazzEnrolmentPolicy;
      this_0.e8e_1 = _tmp_clazzTerminologyUid;
      this_0.f8e_1 = _tmp_clazzMasterChangeSeqNum;
      this_0.g8e_1 = _tmp_clazzLocalChangeSeqNum;
      this_0.h8e_1 = _tmp_clazzLastChangedBy;
      this_0.i8e_1 = _tmp_clazzLct;
      this_0.j8e_1 = _tmp_clazzTimeZone;
      this_0.k8e_1 = _tmp_clazzStudentsPersonGroupUid;
      this_0.l8e_1 = _tmp_clazzTeachersPersonGroupUid;
      this_0.m8e_1 = _tmp_clazzPendingStudentsPersonGroupUid;
      this_0.n8e_1 = _tmp_clazzParentsPersonGroupUid;
      this_0.o8e_1 = _tmp_clazzCode;
      this_0.p8e_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.y5m('clazzUid');
      var _tmp_clazzName = $_result.rz('clazzName');
      var _tmp_clazzDesc = $_result.rz('clazzDesc');
      var _tmp_attendanceAverage = $_result.l66('attendanceAverage');
      var _tmp_clazzHolidayUMCalendarUid = $_result.y5m('clazzHolidayUMCalendarUid');
      var _tmp_clazzScheuleUMCalendarUid = $_result.y5m('clazzScheuleUMCalendarUid');
      var _tmp_isClazzActive = $_result.j66('isClazzActive');
      var _tmp_clazzLocationUid = $_result.y5m('clazzLocationUid');
      var _tmp_clazzStartTime = $_result.y5m('clazzStartTime');
      var _tmp_clazzEndTime = $_result.y5m('clazzEndTime');
      var _tmp_clazzFeatures = $_result.y5m('clazzFeatures');
      var _tmp_clazzSchoolUid = $_result.y5m('clazzSchoolUid');
      var _tmp_clazzEnrolmentPolicy = $_result.x5m('clazzEnrolmentPolicy');
      var _tmp_clazzTerminologyUid = $_result.y5m('clazzTerminologyUid');
      var _tmp_clazzMasterChangeSeqNum = $_result.y5m('clazzMasterChangeSeqNum');
      var _tmp_clazzLocalChangeSeqNum = $_result.y5m('clazzLocalChangeSeqNum');
      var _tmp_clazzLastChangedBy = $_result.x5m('clazzLastChangedBy');
      var _tmp_clazzLct = $_result.y5m('clazzLct');
      var _tmp_clazzTimeZone = $_result.rz('clazzTimeZone');
      var _tmp_clazzStudentsPersonGroupUid = $_result.y5m('clazzStudentsPersonGroupUid');
      var _tmp_clazzTeachersPersonGroupUid = $_result.y5m('clazzTeachersPersonGroupUid');
      var _tmp_clazzPendingStudentsPersonGroupUid = $_result.y5m('clazzPendingStudentsPersonGroupUid');
      var _tmp_clazzParentsPersonGroupUid = $_result.y5m('clazzParentsPersonGroupUid');
      var _tmp_clazzCode = $_result.rz('clazzCode');
      var _tmp_clazzOwnerPersonUid = $_result.y5m('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.r8d_1 = _tmp_clazzUid;
      this_0.s8d_1 = _tmp_clazzName;
      this_0.t8d_1 = _tmp_clazzDesc;
      this_0.u8d_1 = _tmp_attendanceAverage;
      this_0.v8d_1 = _tmp_clazzHolidayUMCalendarUid;
      this_0.w8d_1 = _tmp_clazzScheuleUMCalendarUid;
      this_0.x8d_1 = _tmp_isClazzActive;
      this_0.y8d_1 = _tmp_clazzLocationUid;
      this_0.z8d_1 = _tmp_clazzStartTime;
      this_0.a8e_1 = _tmp_clazzEndTime;
      this_0.b8e_1 = _tmp_clazzFeatures;
      this_0.c8e_1 = _tmp_clazzSchoolUid;
      this_0.d8e_1 = _tmp_clazzEnrolmentPolicy;
      this_0.e8e_1 = _tmp_clazzTerminologyUid;
      this_0.f8e_1 = _tmp_clazzMasterChangeSeqNum;
      this_0.g8e_1 = _tmp_clazzLocalChangeSeqNum;
      this_0.h8e_1 = _tmp_clazzLastChangedBy;
      this_0.i8e_1 = _tmp_clazzLct;
      this_0.j8e_1 = _tmp_clazzTimeZone;
      this_0.k8e_1 = _tmp_clazzStudentsPersonGroupUid;
      this_0.l8e_1 = _tmp_clazzTeachersPersonGroupUid;
      this_0.m8e_1 = _tmp_clazzPendingStudentsPersonGroupUid;
      this_0.n8e_1 = _tmp_clazzParentsPersonGroupUid;
      this_0.o8e_1 = _tmp_clazzCode;
      this_0.p8e_1 = _tmp_clazzOwnerPersonUid;
      return this_0;
    };
  }
  function ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda($uid, resultContinuation) {
    this.z8e_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda).b8f = function (_stmt, $completion) {
    var tmp = this.m5f(_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.b8f((!(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.a8f_1.v5h(1, this.z8e_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.a8f_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).m5f = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda(this.z8e_1, completion);
    i.a8f_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.b8f(_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.y5m('clazzUid');
      var _tmp_clazzName = $_result.rz('clazzName');
      var _tmp_clazzDesc = $_result.rz('clazzDesc');
      var _tmp_attendanceAverage = $_result.l66('attendanceAverage');
      var _tmp_clazzHolidayUMCalendarUid = $_result.y5m('clazzHolidayUMCalendarUid');
      var _tmp_clazzScheuleUMCalendarUid = $_result.y5m('clazzScheuleUMCalendarUid');
      var _tmp_isClazzActive = $_result.j66('isClazzActive');
      var _tmp_clazzLocationUid = $_result.y5m('clazzLocationUid');
      var _tmp_clazzStartTime = $_result.y5m('clazzStartTime');
      var _tmp_clazzEndTime = $_result.y5m('clazzEndTime');
      var _tmp_clazzFeatures = $_result.y5m('clazzFeatures');
      var _tmp_clazzSchoolUid = $_result.y5m('clazzSchoolUid');
      var _tmp_clazzEnrolmentPolicy = $_result.x5m('clazzEnrolmentPolicy');
      var _tmp_clazzTerminologyUid = $_result.y5m('clazzTerminologyUid');
      var _tmp_clazzMasterChangeSeqNum = $_result.y5m('clazzMasterChangeSeqNum');
      var _tmp_clazzLocalChangeSeqNum = $_result.y5m('clazzLocalChangeSeqNum');
      var _tmp_clazzLastChangedBy = $_result.x5m('clazzLastChangedBy');
      var _tmp_clazzLct = $_result.y5m('clazzLct');
      var _tmp_clazzTimeZone = $_result.rz('clazzTimeZone');
      var _tmp_clazzStudentsPersonGroupUid = $_result.y5m('clazzStudentsPersonGroupUid');
      var _tmp_clazzTeachersPersonGroupUid = $_result.y5m('clazzTeachersPersonGroupUid');
      var _tmp_clazzPendingStudentsPersonGroupUid = $_result.y5m('clazzPendingStudentsPersonGroupUid');
      var _tmp_clazzParentsPersonGroupUid = $_result.y5m('clazzParentsPersonGroupUid');
      var _tmp_clazzCode = $_result.rz('clazzCode');
      var _tmp_clazzOwnerPersonUid = $_result.y5m('clazzOwnerPersonUid');
      var _tmp_HolidayCalendar_nullCount = 0;
      var _tmp_umCalendarUid = $_result.y5m('umCalendarUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_umCalendarName = $_result.rz('umCalendarName');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_umCalendarCategory = $_result.x5m('umCalendarCategory');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_umCalendarActive = $_result.j66('umCalendarActive');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_umCalendarMasterChangeSeqNum = $_result.y5m('umCalendarMasterChangeSeqNum');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_umCalendarLocalChangeSeqNum = $_result.y5m('umCalendarLocalChangeSeqNum');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_umCalendarLastChangedBy = $_result.x5m('umCalendarLastChangedBy');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_umCalendarLct = $_result.y5m('umCalendarLct');
      var tmp_6;
      if ($_result.q67()) {
        _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.y5m('ctUid');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_ctTitle = $_result.rz('ctTitle');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_ctTerminology = $_result.rz('ctTerminology');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_ctLct = $_result.y5m('ctLct');
      var tmp_10;
      if ($_result.q67()) {
        _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.y5m('coursePictureUid');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_coursePictureLct = $_result.y5m('coursePictureLct');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_coursePictureUri = $_result.rz('coursePictureUri');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_coursePictureThumbnailUri = $_result.rz('coursePictureThumbnailUri');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_coursePictureActive = $_result.j66('coursePictureActive');
      var tmp_15;
      if ($_result.q67()) {
        _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.r8d_1 = _tmp_clazzUid;
      this_0.s8d_1 = _tmp_clazzName;
      this_0.t8d_1 = _tmp_clazzDesc;
      this_0.u8d_1 = _tmp_attendanceAverage;
      this_0.v8d_1 = _tmp_clazzHolidayUMCalendarUid;
      this_0.w8d_1 = _tmp_clazzScheuleUMCalendarUid;
      this_0.x8d_1 = _tmp_isClazzActive;
      this_0.y8d_1 = _tmp_clazzLocationUid;
      this_0.z8d_1 = _tmp_clazzStartTime;
      this_0.a8e_1 = _tmp_clazzEndTime;
      this_0.b8e_1 = _tmp_clazzFeatures;
      this_0.c8e_1 = _tmp_clazzSchoolUid;
      this_0.d8e_1 = _tmp_clazzEnrolmentPolicy;
      this_0.e8e_1 = _tmp_clazzTerminologyUid;
      this_0.f8e_1 = _tmp_clazzMasterChangeSeqNum;
      this_0.g8e_1 = _tmp_clazzLocalChangeSeqNum;
      this_0.h8e_1 = _tmp_clazzLastChangedBy;
      this_0.i8e_1 = _tmp_clazzLct;
      this_0.j8e_1 = _tmp_clazzTimeZone;
      this_0.k8e_1 = _tmp_clazzStudentsPersonGroupUid;
      this_0.l8e_1 = _tmp_clazzTeachersPersonGroupUid;
      this_0.m8e_1 = _tmp_clazzPendingStudentsPersonGroupUid;
      this_0.n8e_1 = _tmp_clazzParentsPersonGroupUid;
      this_0.o8e_1 = _tmp_clazzCode;
      this_0.p8e_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.c8f_1 = _tmp_umCalendarUid;
        this_1.d8f_1 = _tmp_umCalendarName;
        this_1.e8f_1 = _tmp_umCalendarCategory;
        this_1.f8f_1 = _tmp_umCalendarActive;
        this_1.g8f_1 = _tmp_umCalendarMasterChangeSeqNum;
        this_1.h8f_1 = _tmp_umCalendarLocalChangeSeqNum;
        this_1.i8f_1 = _tmp_umCalendarLastChangedBy;
        this_1.j8f_1 = _tmp_umCalendarLct;
        tmp_16.j8g_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.m8g_1 = _tmp_ctUid;
        this_2.n8g_1 = _tmp_ctTitle;
        this_2.o8g_1 = _tmp_ctTerminology;
        this_2.p8g_1 = _tmp_ctLct;
        tmp_17.k8g_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.q8g_1 = _tmp_coursePictureUid;
        this_3.r8g_1 = _tmp_coursePictureLct;
        this_3.s8g_1 = _tmp_coursePictureUri;
        this_3.t8g_1 = _tmp_coursePictureThumbnailUri;
        this_3.u8g_1 = _tmp_coursePictureActive;
        tmp_18.l8g_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.x5m('numStudents');
      var _tmp_numTeachers = $_result.x5m('numTeachers');
      var _tmp_teacherNames = $_result.rz('teacherNames');
      var _tmp_lastRecorded = $_result.y5m('lastRecorded');
      var _tmp_clazzUid = $_result.y5m('clazzUid');
      var _tmp_clazzName = $_result.rz('clazzName');
      var _tmp_clazzDesc = $_result.rz('clazzDesc');
      var _tmp_attendanceAverage = $_result.l66('attendanceAverage');
      var _tmp_clazzHolidayUMCalendarUid = $_result.y5m('clazzHolidayUMCalendarUid');
      var _tmp_clazzScheuleUMCalendarUid = $_result.y5m('clazzScheuleUMCalendarUid');
      var _tmp_isClazzActive = $_result.j66('isClazzActive');
      var _tmp_clazzLocationUid = $_result.y5m('clazzLocationUid');
      var _tmp_clazzStartTime = $_result.y5m('clazzStartTime');
      var _tmp_clazzEndTime = $_result.y5m('clazzEndTime');
      var _tmp_clazzFeatures = $_result.y5m('clazzFeatures');
      var _tmp_clazzSchoolUid = $_result.y5m('clazzSchoolUid');
      var _tmp_clazzEnrolmentPolicy = $_result.x5m('clazzEnrolmentPolicy');
      var _tmp_clazzTerminologyUid = $_result.y5m('clazzTerminologyUid');
      var _tmp_clazzMasterChangeSeqNum = $_result.y5m('clazzMasterChangeSeqNum');
      var _tmp_clazzLocalChangeSeqNum = $_result.y5m('clazzLocalChangeSeqNum');
      var _tmp_clazzLastChangedBy = $_result.x5m('clazzLastChangedBy');
      var _tmp_clazzLct = $_result.y5m('clazzLct');
      var _tmp_clazzTimeZone = $_result.rz('clazzTimeZone');
      var _tmp_clazzStudentsPersonGroupUid = $_result.y5m('clazzStudentsPersonGroupUid');
      var _tmp_clazzTeachersPersonGroupUid = $_result.y5m('clazzTeachersPersonGroupUid');
      var _tmp_clazzPendingStudentsPersonGroupUid = $_result.y5m('clazzPendingStudentsPersonGroupUid');
      var _tmp_clazzParentsPersonGroupUid = $_result.y5m('clazzParentsPersonGroupUid');
      var _tmp_clazzCode = $_result.rz('clazzCode');
      var _tmp_clazzOwnerPersonUid = $_result.y5m('clazzOwnerPersonUid');
      var _tmp_ClazzEnrolment_nullCount = 0;
      var _tmp_clazzEnrolmentUid = $_result.y5m('clazzEnrolmentUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_clazzEnrolmentPersonUid = $_result.y5m('clazzEnrolmentPersonUid');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_clazzEnrolmentClazzUid = $_result.y5m('clazzEnrolmentClazzUid');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_clazzEnrolmentDateJoined = $_result.y5m('clazzEnrolmentDateJoined');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_clazzEnrolmentDateLeft = $_result.y5m('clazzEnrolmentDateLeft');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_clazzEnrolmentRole = $_result.x5m('clazzEnrolmentRole');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_clazzEnrolmentAttendancePercentage = $_result.l66('clazzEnrolmentAttendancePercentage');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_clazzEnrolmentActive = $_result.j66('clazzEnrolmentActive');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_clazzEnrolmentLeavingReasonUid = $_result.y5m('clazzEnrolmentLeavingReasonUid');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_clazzEnrolmentOutcome = $_result.x5m('clazzEnrolmentOutcome');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.y5m('clazzEnrolmentLocalChangeSeqNum');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.y5m('clazzEnrolmentMasterChangeSeqNum');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_clazzEnrolmentLastChangedBy = $_result.x5m('clazzEnrolmentLastChangedBy');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_clazzEnrolmentLct = $_result.y5m('clazzEnrolmentLct');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_clazzEnrolmentInviteUid = $_result.y5m('clazzEnrolmentInviteUid');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_ClazzEnrolment_isAllNull = _tmp_ClazzEnrolment_nullCount === 15;
      var _tmp_CourseTerminology_nullCount = 0;
      var _tmp_ctUid = $_result.y5m('ctUid');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_ctTitle = $_result.rz('ctTitle');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_ctTerminology = $_result.rz('ctTerminology');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_ctLct = $_result.y5m('ctLct');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_CourseTerminology_isAllNull = _tmp_CourseTerminology_nullCount === 4;
      var _tmp_CoursePicture_nullCount = 0;
      var _tmp_coursePictureUid = $_result.y5m('coursePictureUid');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_coursePictureLct = $_result.y5m('coursePictureLct');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_coursePictureUri = $_result.rz('coursePictureUri');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_coursePictureThumbnailUri = $_result.rz('coursePictureThumbnailUri');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_coursePictureActive = $_result.j66('coursePictureActive');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_22 = 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.u8h_1 = _tmp_numStudents;
      this_0.v8h_1 = _tmp_numTeachers;
      this_0.w8h_1 = _tmp_teacherNames;
      this_0.x8h_1 = _tmp_lastRecorded;
      this_0.r8d_1 = _tmp_clazzUid;
      this_0.s8d_1 = _tmp_clazzName;
      this_0.t8d_1 = _tmp_clazzDesc;
      this_0.u8d_1 = _tmp_attendanceAverage;
      this_0.v8d_1 = _tmp_clazzHolidayUMCalendarUid;
      this_0.w8d_1 = _tmp_clazzScheuleUMCalendarUid;
      this_0.x8d_1 = _tmp_isClazzActive;
      this_0.y8d_1 = _tmp_clazzLocationUid;
      this_0.z8d_1 = _tmp_clazzStartTime;
      this_0.a8e_1 = _tmp_clazzEndTime;
      this_0.b8e_1 = _tmp_clazzFeatures;
      this_0.c8e_1 = _tmp_clazzSchoolUid;
      this_0.d8e_1 = _tmp_clazzEnrolmentPolicy;
      this_0.e8e_1 = _tmp_clazzTerminologyUid;
      this_0.f8e_1 = _tmp_clazzMasterChangeSeqNum;
      this_0.g8e_1 = _tmp_clazzLocalChangeSeqNum;
      this_0.h8e_1 = _tmp_clazzLastChangedBy;
      this_0.i8e_1 = _tmp_clazzLct;
      this_0.j8e_1 = _tmp_clazzTimeZone;
      this_0.k8e_1 = _tmp_clazzStudentsPersonGroupUid;
      this_0.l8e_1 = _tmp_clazzTeachersPersonGroupUid;
      this_0.m8e_1 = _tmp_clazzPendingStudentsPersonGroupUid;
      this_0.n8e_1 = _tmp_clazzParentsPersonGroupUid;
      this_0.o8e_1 = _tmp_clazzCode;
      this_0.p8e_1 = _tmp_clazzOwnerPersonUid;
      if (!_tmp_ClazzEnrolment_isAllNull) {
        var tmp_23 = 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.b8i_1 = _tmp_clazzEnrolmentUid;
        this_1.c8i_1 = _tmp_clazzEnrolmentPersonUid;
        this_1.d8i_1 = _tmp_clazzEnrolmentClazzUid;
        this_1.e8i_1 = _tmp_clazzEnrolmentDateJoined;
        this_1.f8i_1 = _tmp_clazzEnrolmentDateLeft;
        this_1.g8i_1 = _tmp_clazzEnrolmentRole;
        this_1.h8i_1 = _tmp_clazzEnrolmentAttendancePercentage;
        this_1.i8i_1 = _tmp_clazzEnrolmentActive;
        this_1.j8i_1 = _tmp_clazzEnrolmentLeavingReasonUid;
        this_1.k8i_1 = _tmp_clazzEnrolmentOutcome;
        this_1.l8i_1 = _tmp_clazzEnrolmentLocalChangeSeqNum;
        this_1.m8i_1 = _tmp_clazzEnrolmentMasterChangeSeqNum;
        this_1.n8i_1 = _tmp_clazzEnrolmentLastChangedBy;
        this_1.o8i_1 = _tmp_clazzEnrolmentLct;
        this_1.p8i_1 = _tmp_clazzEnrolmentInviteUid;
        tmp_23.y8h_1 = this_1;
      }
      if (!_tmp_CourseTerminology_isAllNull) {
        var tmp_24 = 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.m8g_1 = _tmp_ctUid;
        this_2.n8g_1 = _tmp_ctTitle;
        this_2.o8g_1 = _tmp_ctTerminology;
        this_2.p8g_1 = _tmp_ctLct;
        tmp_24.z8h_1 = this_2;
      }
      if (!_tmp_CoursePicture_isAllNull) {
        var tmp_25 = 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.q8g_1 = _tmp_coursePictureUid;
        this_3.r8g_1 = _tmp_coursePictureLct;
        this_3.s8g_1 = _tmp_coursePictureUri;
        this_3.t8g_1 = _tmp_coursePictureThumbnailUri;
        this_3.u8g_1 = _tmp_coursePictureActive;
        tmp_25.a8i_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.m5s(1);
    };
  }
  function ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, $_limit, $_offset, resultContinuation) {
    this.y8i_1 = $currentTime;
    this.z8i_1 = $accountPersonUid;
    this.a8j_1 = $permission;
    this.b8j_1 = $searchQuery;
    this.c8j_1 = $excludeSelectedClazzList;
    this.d8j_1 = $filter;
    this.e8j_1 = $sortOrder;
    this.f8j_1 = $_limit;
    this.g8j_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda).i8j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.i8j((!(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.h8j_1.v5h(1, this.y8i_1);
            this.h8j_1.v5h(2, this.y8i_1);
            this.h8j_1.v5h(3, this.z8i_1);
            this.h8j_1.v5h(4, this.z8i_1);
            this.h8j_1.v5h(5, this.z8i_1);
            this.h8j_1.v5h(6, this.z8i_1);
            this.h8j_1.v5h(7, this.a8j_1);
            this.h8j_1.v5h(8, this.z8i_1);
            this.h8j_1.v5h(9, this.z8i_1);
            this.h8j_1.v5h(10, this.a8j_1);
            this.h8j_1.y5h(11, this.b8j_1);
            var tmp_0 = this.h8j_1.r5g();
            var this_0 = this.c8j_1;
            this.h8j_1.z5h(12, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.h8j_1.u5h(13, this.d8j_1);
            this.h8j_1.u5h(14, this.d8j_1);
            this.h8j_1.v5h(15, this.y8i_1);
            this.h8j_1.v5h(16, this.y8i_1);
            this.h8j_1.u5h(17, this.e8j_1);
            this.h8j_1.u5h(18, this.e8j_1);
            this.h8j_1.u5h(19, this.e8j_1);
            this.h8j_1.u5h(20, this.e8j_1);
            this.h8j_1.u5h(21, this.f8j_1);
            this.h8j_1.u5h(22, this.g8j_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.h8j_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).m5f = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda(this.y8i_1, this.z8i_1, this.a8j_1, this.b8j_1, this.c8j_1, this.d8j_1, this.e8j_1, this.f8j_1, this.g8j_1, completion);
    i.h8j_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.i8j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, resultContinuation) {
    this.r8j_1 = $currentTime;
    this.s8j_1 = $accountPersonUid;
    this.t8j_1 = $permission;
    this.u8j_1 = $searchQuery;
    this.v8j_1 = $excludeSelectedClazzList;
    this.w8j_1 = $filter;
    this.x8j_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.y8j_1.v5h(1, this.r8j_1);
            this.y8j_1.v5h(2, this.r8j_1);
            this.y8j_1.v5h(3, this.s8j_1);
            this.y8j_1.v5h(4, this.s8j_1);
            this.y8j_1.v5h(5, this.s8j_1);
            this.y8j_1.v5h(6, this.s8j_1);
            this.y8j_1.v5h(7, this.t8j_1);
            this.y8j_1.v5h(8, this.s8j_1);
            this.y8j_1.v5h(9, this.s8j_1);
            this.y8j_1.v5h(10, this.t8j_1);
            this.y8j_1.y5h(11, this.u8j_1);
            var tmp_0 = this.y8j_1.r5g();
            var this_0 = this.v8j_1;
            this.y8j_1.z5h(12, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.y8j_1.u5h(13, this.w8j_1);
            this.y8j_1.u5h(14, this.w8j_1);
            this.y8j_1.v5h(15, this.r8j_1);
            this.y8j_1.v5h(16, this.r8j_1);
            this.y8j_1.u5h(17, this.x8j_1);
            this.y8j_1.u5h(18, this.x8j_1);
            this.y8j_1.u5h(19, this.x8j_1);
            this.y8j_1.u5h(20, this.x8j_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.y8j_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).m5f = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda(this.r8j_1, this.s8j_1, this.t8j_1, this.u8j_1, this.v8j_1, this.w8j_1, this.x8j_1, completion);
    i.y8j_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.j6j(_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.j66('hasAttendancePermission');
      var _tmp_hasViewMembersPermission = $_result.j66('hasViewMembersPermission');
      var _tmp_hasLearningRecordPermission = $_result.j66('hasLearningRecordPermission');
      var _tmp_Clazz_nullCount = 0;
      var _tmp_clazzUid = $_result.y5m('clazzUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_clazzName = $_result.rz('clazzName');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_clazzDesc = $_result.rz('clazzDesc');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_attendanceAverage = $_result.l66('attendanceAverage');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_clazzHolidayUMCalendarUid = $_result.y5m('clazzHolidayUMCalendarUid');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_clazzScheuleUMCalendarUid = $_result.y5m('clazzScheuleUMCalendarUid');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_isClazzActive = $_result.j66('isClazzActive');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_clazzLocationUid = $_result.y5m('clazzLocationUid');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_clazzStartTime = $_result.y5m('clazzStartTime');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_clazzEndTime = $_result.y5m('clazzEndTime');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_clazzFeatures = $_result.y5m('clazzFeatures');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_clazzSchoolUid = $_result.y5m('clazzSchoolUid');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_clazzEnrolmentPolicy = $_result.x5m('clazzEnrolmentPolicy');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_clazzTerminologyUid = $_result.y5m('clazzTerminologyUid');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_clazzMasterChangeSeqNum = $_result.y5m('clazzMasterChangeSeqNum');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_clazzLocalChangeSeqNum = $_result.y5m('clazzLocalChangeSeqNum');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_clazzLastChangedBy = $_result.x5m('clazzLastChangedBy');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_clazzLct = $_result.y5m('clazzLct');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_clazzTimeZone = $_result.rz('clazzTimeZone');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_clazzStudentsPersonGroupUid = $_result.y5m('clazzStudentsPersonGroupUid');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_clazzTeachersPersonGroupUid = $_result.y5m('clazzTeachersPersonGroupUid');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_clazzPendingStudentsPersonGroupUid = $_result.y5m('clazzPendingStudentsPersonGroupUid');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_clazzParentsPersonGroupUid = $_result.y5m('clazzParentsPersonGroupUid');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_clazzCode = $_result.rz('clazzCode');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_clazzOwnerPersonUid = $_result.y5m('clazzOwnerPersonUid');
      var tmp_23;
      if ($_result.q67()) {
        _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.a8k_1 = _tmp_hasAttendancePermission;
      this_0.b8k_1 = _tmp_hasViewMembersPermission;
      this_0.c8k_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.r8d_1 = _tmp_clazzUid;
        this_1.s8d_1 = _tmp_clazzName;
        this_1.t8d_1 = _tmp_clazzDesc;
        this_1.u8d_1 = _tmp_attendanceAverage;
        this_1.v8d_1 = _tmp_clazzHolidayUMCalendarUid;
        this_1.w8d_1 = _tmp_clazzScheuleUMCalendarUid;
        this_1.x8d_1 = _tmp_isClazzActive;
        this_1.y8d_1 = _tmp_clazzLocationUid;
        this_1.z8d_1 = _tmp_clazzStartTime;
        this_1.a8e_1 = _tmp_clazzEndTime;
        this_1.b8e_1 = _tmp_clazzFeatures;
        this_1.c8e_1 = _tmp_clazzSchoolUid;
        this_1.d8e_1 = _tmp_clazzEnrolmentPolicy;
        this_1.e8e_1 = _tmp_clazzTerminologyUid;
        this_1.f8e_1 = _tmp_clazzMasterChangeSeqNum;
        this_1.g8e_1 = _tmp_clazzLocalChangeSeqNum;
        this_1.h8e_1 = _tmp_clazzLastChangedBy;
        this_1.i8e_1 = _tmp_clazzLct;
        this_1.j8e_1 = _tmp_clazzTimeZone;
        this_1.k8e_1 = _tmp_clazzStudentsPersonGroupUid;
        this_1.l8e_1 = _tmp_clazzTeachersPersonGroupUid;
        this_1.m8e_1 = _tmp_clazzPendingStudentsPersonGroupUid;
        this_1.n8e_1 = _tmp_clazzParentsPersonGroupUid;
        this_1.o8e_1 = _tmp_clazzCode;
        this_1.p8e_1 = _tmp_clazzOwnerPersonUid;
        tmp_24.z8j_1 = this_1;
      }
      return this_0;
    };
  }
  function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda($clazzUid, $accountPersonUid, resultContinuation) {
    this.l8k_1 = $clazzUid;
    this.m8k_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda).o8k = function (_stmt, $completion) {
    var tmp = this.m5f(_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.o8k((!(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.n8k_1.v5h(1, this.l8k_1);
            this.n8k_1.v5h(2, this.m8k_1);
            this.n8k_1.v5h(3, this.m8k_1);
            this.n8k_1.v5h(4, this.l8k_1);
            this.n8k_1.v5h(5, this.m8k_1);
            this.n8k_1.v5h(6, this.m8k_1);
            this.n8k_1.v5h(7, this.l8k_1);
            this.n8k_1.v5h(8, this.m8k_1);
            this.n8k_1.v5h(9, this.m8k_1);
            this.n8k_1.v5h(10, this.l8k_1);
            this.n8k_1.v5h(11, this.m8k_1);
            this.n8k_1.v5h(12, this.m8k_1);
            this.n8k_1.v5h(13, this.l8k_1);
            this.n8k_1.v5h(14, this.m8k_1);
            this.n8k_1.v5h(15, this.m8k_1);
            this.n8k_1.v5h(16, this.l8k_1);
            this.n8k_1.v5h(17, this.m8k_1);
            this.n8k_1.v5h(18, this.m8k_1);
            this.n8k_1.v5h(19, this.l8k_1);
            this.n8k_1.v5h(20, this.l8k_1);
            this.n8k_1.v5h(21, this.m8k_1);
            this.n8k_1.v5h(22, this.m8k_1);
            this.n8k_1.v5h(23, this.l8k_1);
            this.n8k_1.v5h(24, this.m8k_1);
            this.n8k_1.v5h(25, this.m8k_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.n8k_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).m5f = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda(this.l8k_1, this.m8k_1, completion);
    i.n8k_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.o8k(_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.x5m('numStudents');
      var _tmp_numTeachers = $_result.x5m('numTeachers');
      var _tmp_activeUserIsStudent = $_result.j66('activeUserIsStudent');
      var _tmp_Clazz_nullCount = 0;
      var _tmp_clazzUid = $_result.y5m('clazzUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_clazzName = $_result.rz('clazzName');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_clazzDesc = $_result.rz('clazzDesc');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_attendanceAverage = $_result.l66('attendanceAverage');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_clazzHolidayUMCalendarUid = $_result.y5m('clazzHolidayUMCalendarUid');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_clazzScheuleUMCalendarUid = $_result.y5m('clazzScheuleUMCalendarUid');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_isClazzActive = $_result.j66('isClazzActive');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_clazzLocationUid = $_result.y5m('clazzLocationUid');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_clazzStartTime = $_result.y5m('clazzStartTime');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_clazzEndTime = $_result.y5m('clazzEndTime');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_clazzFeatures = $_result.y5m('clazzFeatures');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_clazzSchoolUid = $_result.y5m('clazzSchoolUid');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_clazzEnrolmentPolicy = $_result.x5m('clazzEnrolmentPolicy');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_clazzTerminologyUid = $_result.y5m('clazzTerminologyUid');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_clazzMasterChangeSeqNum = $_result.y5m('clazzMasterChangeSeqNum');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_clazzLocalChangeSeqNum = $_result.y5m('clazzLocalChangeSeqNum');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_clazzLastChangedBy = $_result.x5m('clazzLastChangedBy');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_clazzLct = $_result.y5m('clazzLct');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_clazzTimeZone = $_result.rz('clazzTimeZone');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_clazzStudentsPersonGroupUid = $_result.y5m('clazzStudentsPersonGroupUid');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_clazzTeachersPersonGroupUid = $_result.y5m('clazzTeachersPersonGroupUid');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_clazzPendingStudentsPersonGroupUid = $_result.y5m('clazzPendingStudentsPersonGroupUid');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_clazzParentsPersonGroupUid = $_result.y5m('clazzParentsPersonGroupUid');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_clazzCode = $_result.rz('clazzCode');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_clazzOwnerPersonUid = $_result.y5m('clazzOwnerPersonUid');
      var tmp_23;
      if ($_result.q67()) {
        _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.y5m('ctUid');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_ctTitle = $_result.rz('ctTitle');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_ctTerminology = $_result.rz('ctTerminology');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_ctLct = $_result.y5m('ctLct');
      var tmp_27;
      if ($_result.q67()) {
        _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.y5m('coursePictureUid');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_coursePictureLct = $_result.y5m('coursePictureLct');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_coursePictureUri = $_result.rz('coursePictureUri');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_coursePictureThumbnailUri = $_result.rz('coursePictureThumbnailUri');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_coursePictureActive = $_result.j66('coursePictureActive');
      var tmp_32;
      if ($_result.q67()) {
        _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.s8k_1 = _tmp_numStudents;
      this_0.t8k_1 = _tmp_numTeachers;
      this_0.u8k_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.r8d_1 = _tmp_clazzUid;
        this_1.s8d_1 = _tmp_clazzName;
        this_1.t8d_1 = _tmp_clazzDesc;
        this_1.u8d_1 = _tmp_attendanceAverage;
        this_1.v8d_1 = _tmp_clazzHolidayUMCalendarUid;
        this_1.w8d_1 = _tmp_clazzScheuleUMCalendarUid;
        this_1.x8d_1 = _tmp_isClazzActive;
        this_1.y8d_1 = _tmp_clazzLocationUid;
        this_1.z8d_1 = _tmp_clazzStartTime;
        this_1.a8e_1 = _tmp_clazzEndTime;
        this_1.b8e_1 = _tmp_clazzFeatures;
        this_1.c8e_1 = _tmp_clazzSchoolUid;
        this_1.d8e_1 = _tmp_clazzEnrolmentPolicy;
        this_1.e8e_1 = _tmp_clazzTerminologyUid;
        this_1.f8e_1 = _tmp_clazzMasterChangeSeqNum;
        this_1.g8e_1 = _tmp_clazzLocalChangeSeqNum;
        this_1.h8e_1 = _tmp_clazzLastChangedBy;
        this_1.i8e_1 = _tmp_clazzLct;
        this_1.j8e_1 = _tmp_clazzTimeZone;
        this_1.k8e_1 = _tmp_clazzStudentsPersonGroupUid;
        this_1.l8e_1 = _tmp_clazzTeachersPersonGroupUid;
        this_1.m8e_1 = _tmp_clazzPendingStudentsPersonGroupUid;
        this_1.n8e_1 = _tmp_clazzParentsPersonGroupUid;
        this_1.o8e_1 = _tmp_clazzCode;
        this_1.p8e_1 = _tmp_clazzOwnerPersonUid;
        tmp_33.p8k_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.m8g_1 = _tmp_ctUid;
        this_2.n8g_1 = _tmp_ctTitle;
        this_2.o8g_1 = _tmp_ctTerminology;
        this_2.p8g_1 = _tmp_ctLct;
        tmp_34.q8k_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.q8g_1 = _tmp_coursePictureUid;
        this_3.r8g_1 = _tmp_coursePictureLct;
        this_3.s8g_1 = _tmp_coursePictureUri;
        this_3.t8g_1 = _tmp_coursePictureThumbnailUri;
        this_3.u8g_1 = _tmp_coursePictureActive;
        tmp_35.r8k_1 = this_3;
      }
      return this_0;
    };
  }
  function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda($currentTime, $clazzUid, $accountPersonUid, resultContinuation) {
    this.d8l_1 = $currentTime;
    this.e8l_1 = $clazzUid;
    this.f8l_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda).h8l = function (_stmt, $completion) {
    var tmp = this.m5f(_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.h8l((!(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.g8l_1.v5h(1, this.d8l_1);
            this.g8l_1.v5h(2, this.d8l_1);
            this.g8l_1.v5h(3, this.e8l_1);
            this.g8l_1.v5h(4, this.f8l_1);
            this.g8l_1.v5h(5, this.e8l_1);
            this.g8l_1.v5h(6, this.e8l_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$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).m5f = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda(this.d8l_1, this.e8l_1, this.f8l_1, completion);
    i.g8l_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.h8l(_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.x60(1);
    };
  }
  function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda($clazzUid, resultContinuation) {
    this.q8l_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).s8l = function (_stmt, $completion) {
    var tmp = this.m5f(_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.s8l((!(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.r8l_1.v5h(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$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).m5f = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda(this.q8l_1, completion);
    i.r8l_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.s8l(_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.y5m('ctUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_ctTitle = $_result.rz('ctTitle');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_ctTerminology = $_result.rz('ctTerminology');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_ctLct = $_result.y5m('ctLct');
      var tmp_2;
      if ($_result.q67()) {
        _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.t8l_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.m8g_1 = _tmp_ctUid;
        this_1.n8g_1 = _tmp_ctTitle;
        this_1.o8g_1 = _tmp_ctTerminology;
        this_1.p8g_1 = _tmp_ctLct;
        tmp_3.u8l_1 = this_1;
      }
      return this_0;
    };
  }
  function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda($clazzUid, resultContinuation) {
    this.d8m_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda).f8m = function (_stmt, $completion) {
    var tmp = this.m5f(_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.f8m((!(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.e8m_1.v5h(1, this.d8m_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.e8m_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).m5f = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda(this.d8m_1, completion);
    i.e8m_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.f8m(_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.x60(1);
    };
  }
  function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda($clazzUid, resultContinuation) {
    this.o8m_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda).s8l = function (_stmt, $completion) {
    var tmp = this.m5f(_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.s8l((!(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.p8m_1.v5h(1, this.o8m_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.p8m_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).m5f = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda(this.o8m_1, completion);
    i.p8m_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.s8l(_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.x60(1);
    };
  }
  function ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.q8m_1);
  }
  protoOf(ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1).u5g = 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).u8m = function (stmt, entity) {
    if (entity.r8d_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.r8d_1);
    }
    stmt.y5h(2, entity.s8d_1);
    stmt.y5h(3, entity.t8d_1);
    stmt.w5h(4, entity.u8d_1);
    stmt.v5h(5, entity.v8d_1);
    stmt.v5h(6, entity.w8d_1);
    stmt.i5h(7, entity.x8d_1);
    stmt.v5h(8, entity.y8d_1);
    stmt.v5h(9, entity.z8d_1);
    stmt.v5h(10, entity.a8e_1);
    stmt.v5h(11, entity.b8e_1);
    stmt.v5h(12, entity.c8e_1);
    stmt.u5h(13, entity.d8e_1);
    stmt.v5h(14, entity.e8e_1);
    stmt.v5h(15, entity.f8e_1);
    stmt.v5h(16, entity.g8e_1);
    stmt.u5h(17, entity.h8e_1);
    stmt.v5h(18, entity.i8e_1);
    stmt.y5h(19, entity.j8e_1);
    stmt.v5h(20, entity.k8e_1);
    stmt.v5h(21, entity.l8e_1);
    stmt.v5h(22, entity.m8e_1);
    stmt.v5h(23, entity.n8e_1);
    stmt.y5h(24, entity.o8e_1);
    stmt.v5h(25, entity.p8e_1);
  };
  protoOf(ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1).p5f = function (stmt, entity) {
    return this.u8m(stmt, entity instanceof Clazz ? entity : THROW_CCE());
  };
  function ClazzDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) {
    this.d8n_1 = $entity;
    this.e8n_1 = $_result;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$updateAsync$slambda).l5f = function (_stmt, $completion) {
    var tmp = this.m5f(_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.l5f((!(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.f8n_1.y5h(1, this.d8n_1.s8d_1);
            this.f8n_1.y5h(2, this.d8n_1.t8d_1);
            this.f8n_1.w5h(3, this.d8n_1.u8d_1);
            this.f8n_1.v5h(4, this.d8n_1.v8d_1);
            this.f8n_1.v5h(5, this.d8n_1.w8d_1);
            this.f8n_1.i5h(6, this.d8n_1.x8d_1);
            this.f8n_1.v5h(7, this.d8n_1.y8d_1);
            this.f8n_1.v5h(8, this.d8n_1.z8d_1);
            this.f8n_1.v5h(9, this.d8n_1.a8e_1);
            this.f8n_1.v5h(10, this.d8n_1.b8e_1);
            this.f8n_1.v5h(11, this.d8n_1.c8e_1);
            this.f8n_1.u5h(12, this.d8n_1.d8e_1);
            this.f8n_1.v5h(13, this.d8n_1.e8e_1);
            this.f8n_1.v5h(14, this.d8n_1.f8e_1);
            this.f8n_1.v5h(15, this.d8n_1.g8e_1);
            this.f8n_1.u5h(16, this.d8n_1.h8e_1);
            this.f8n_1.v5h(17, this.d8n_1.i8e_1);
            this.f8n_1.y5h(18, this.d8n_1.j8e_1);
            this.f8n_1.v5h(19, this.d8n_1.k8e_1);
            this.f8n_1.v5h(20, this.d8n_1.l8e_1);
            this.f8n_1.v5h(21, this.d8n_1.m8e_1);
            this.f8n_1.v5h(22, this.d8n_1.n8e_1);
            this.f8n_1.y5h(23, this.d8n_1.o8e_1);
            this.f8n_1.v5h(24, this.d8n_1.p8e_1);
            this.f8n_1.v5h(25, this.d8n_1.r8d_1);
            this.g8n_1 = this.e8n_1._v;
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.f8n_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            var ARGUMENT_0 = this.g8n_1 + ARGUMENT | 0;
            this.e8n_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).m5f = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$updateAsync$slambda(this.d8n_1, this.e8n_1, completion);
    i.f8n_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.l5f(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzDao_JdbcImpl$findByClazzCode$slambda($code, resultContinuation) {
    this.p8n_1 = $code;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$findByClazzCode$slambda).b8f = function (_stmt, $completion) {
    var tmp = this.m5f(_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.b8f((!(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.q8n_1.y5h(1, this.p8n_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.q8n_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).m5f = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$findByClazzCode$slambda(this.p8n_1, completion);
    i.q8n_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.b8f(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzDao_JdbcImpl$findByUidAsync$slambda($clazzUid, resultContinuation) {
    this.z8n_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$findByUidAsync$slambda).b8f = function (_stmt, $completion) {
    var tmp = this.m5f(_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.b8f((!(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.a8o_1.v5h(1, this.z8n_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.a8o_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).m5f = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$findByUidAsync$slambda(this.z8n_1, completion);
    i.a8o_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.b8f(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $uid, resultContinuation) {
    this.j8o_1 = this$0;
    this.k8o_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda).l8o = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda).m78 = function ($completion) {
    return this.l8o($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.j8o_1.q8m_1, tmp_0, ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0(this.k8o_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).l78 = function (completion) {
    return new ClazzDao_JdbcImpl$findByUidAsFlow$slambda(this.j8o_1, this.k8o_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.l8o($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda($uid, resultContinuation) {
    this.u8o_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda).w8o = function (_stmt, $completion) {
    var tmp = this.m5f(_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.w8o((!(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.v8o_1.v5h(1, this.u8o_1);
            this.v8o_1.v5h(2, this.u8o_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.v8o_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).m5f = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda(this.u8o_1, completion);
    i.v8o_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.w8o(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzDao_JdbcImpl$findClazzesWithPermission$1(this$0, $currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder) {
    this.d8p_1 = this$0;
    this.e8p_1 = $currentTime;
    this.f8p_1 = $accountPersonUid;
    this.g8p_1 = $permission;
    this.h8p_1 = $searchQuery;
    this.i8p_1 = $excludeSelectedClazzList;
    this.j8p_1 = $filter;
    this.k8p_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.q8m_1, tmp$ret$2);
  }
  protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$1).l8p = 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.d8p_1.q8m_1, tmp, ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda_0(this.e8p_1, this.f8p_1, this.g8p_1, this.h8p_1, this.i8p_1, this.j8p_1, this.k8p_1, _limit, _offset, null), $completion);
  };
  protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$1).w5p = function (_limit, _offset, $completion) {
    return this.l8p(_limit, _offset, $completion);
  };
  protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$1).q5r = 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.d8p_1.q8m_1, tmp, ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda_0(this.e8p_1, this.f8p_1, this.g8p_1, this.h8p_1, this.i8p_1, this.j8p_1, this.k8p_1, null), $completion);
  };
  function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, resultContinuation) {
    this.u8p_1 = this$0;
    this.v8p_1 = $clazzUid;
    this.w8p_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda).x8p = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda).m78 = function ($completion) {
    return this.x8p($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.u8p_1.q8m_1, tmp_0, ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda_0(this.v8p_1, 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$clazzAndDetailPermissionsAsFlow$slambda).l78 = function (completion) {
    return new ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda(this.u8p_1, this.v8p_1, this.w8p_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.x8p($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda(this$0, $currentTime, $clazzUid, $accountPersonUid, resultContinuation) {
    this.g8q_1 = this$0;
    this.h8q_1 = $currentTime;
    this.i8q_1 = $clazzUid;
    this.j8q_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda).k8q = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda).m78 = function ($completion) {
    return this.k8q($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.g8q_1.q8m_1, tmp_0, ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda_0(this.h8q_1, this.i8q_1, this.j8q_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).l78 = function (completion) {
    return new ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda(this.g8q_1, this.h8q_1, this.i8q_1, this.j8q_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.k8q($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda(this$0, $clazzUid, resultContinuation) {
    this.t8q_1 = this$0;
    this.u8q_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda).v8q = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda).m78 = function ($completion) {
    return this.v8q($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.t8q_1.q8m_1, tmp_0, ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda_0(this.u8q_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).l78 = function (completion) {
    return new ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda(this.t8q_1, this.u8q_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.v8q($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda(this$0, $clazzUid, resultContinuation) {
    this.e8r_1 = this$0;
    this.f8r_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda).g8r = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda).m78 = function ($completion) {
    return this.g8r($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.e8r_1.q8m_1, tmp_0, ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda_0(this.f8r_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).l78 = function (completion) {
    return new ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda(this.e8r_1, this.f8r_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.g8r($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda(this$0, $clazzUid, resultContinuation) {
    this.p8r_1 = this$0;
    this.q8r_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda).v8q = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda).m78 = function ($completion) {
    return this.v8q($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.p8r_1.q8m_1, tmp_0, ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda_0(this.q8r_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).l78 = function (completion) {
    return new ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda(this.p8r_1, this.q8r_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.v8q($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda($clazzUid, resultContinuation) {
    this.z8r_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda).s8l = function (_stmt, $completion) {
    var tmp = this.m5f(_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.s8l((!(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.a8s_1.v5h(1, this.z8r_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.a8s_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).m5f = function (_stmt, completion) {
    var i = new ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda(this.z8r_1, completion);
    i.a8s_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.s8l(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$29(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.j8s_1 = _this__u8e3s4;
    this.k8s_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.j8s_1.r8m_1.w5g(this.k8s_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.t8s_1 = _this__u8e3s4;
    this.u8s_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.v8s_1 = {_v: 0};
            this.w8s_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.t8s_1.q8m_1, this.w8s_1, VOID, ClazzDao_JdbcImpl$updateAsync$slambda_0(this.u8s_1, this.v8s_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return this.v8s_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.q8m_1 = _db;
    var tmp = this;
    tmp.r8m_1 = new ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1(this);
  }
  protoOf(ClazzDao_JdbcImpl).q8e = 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.q8e(entity instanceof Clazz ? entity : THROW_CCE(), $completion);
  };
  protoOf(ClazzDao_JdbcImpl).v8c = 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).r8c = function (code, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM Clazz WHERE clazzCode = ?', VOID, VOID, VOID, VOID, true);
    return prepareAndUseStatementAsync(this.q8m_1, tmp, ClazzDao_JdbcImpl$findByClazzCode$slambda_0(code, null), $completion);
  };
  protoOf(ClazzDao_JdbcImpl).s8c = 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.q8m_1, tmp, ClazzDao_JdbcImpl$findByUidAsync$slambda_0(clazzUid, null), $completion);
  };
  protoOf(ClazzDao_JdbcImpl).t8c = 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.q8m_1, tmp, ClazzDao_JdbcImpl$findByUidAsFlow$slambda_0(this, uid, null));
  };
  protoOf(ClazzDao_JdbcImpl).u8c = 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.q8m_1, tmp, ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda_0(uid, null), $completion);
  };
  protoOf(ClazzDao_JdbcImpl).w8c = 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).x8c = 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.q8m_1, tmp, ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda_0(this, clazzUid, accountPersonUid, null));
  };
  protoOf(ClazzDao_JdbcImpl).y8c = 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.q8m_1, tmp, ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda_0(this, currentTime, clazzUid, accountPersonUid, null));
  };
  protoOf(ClazzDao_JdbcImpl).z8c = 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.q8m_1, tmp, ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda_0(this, clazzUid, null));
  };
  protoOf(ClazzDao_JdbcImpl).a8d = 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.q8m_1, tmp, ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda_0(this, clazzUid, null));
  };
  protoOf(ClazzDao_JdbcImpl).b8d = 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.q8m_1, tmp, ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda_0(this, clazzUid, null));
  };
  protoOf(ClazzDao_JdbcImpl).c8d = 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.q8m_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.f8t_1 = this$0;
    this.g8t_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_Repo$findByUidAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo$findByUidAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.h8t_1 = this.f8t_1.q8t_1;
            var tmp_1 = this;
            tmp_1.i8t_1 = 'ClazzDao/findByUidAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.j8t_1 = this.f8t_1.s8t_1;
            var tmp_3 = this;
            tmp_3.k8t_1 = this.j8t_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.f8t_1.q8t_1.j39(), 'ClazzDao/findByUidAsFlow');
            doorNodeIdHeader(this_0, this.f8t_1.q8t_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.f8t_1.q8t_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.g8t_1));
            tmp_4.l8t_1 = this_0;
            this.l8t_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.m8t_1 = this.k8t_1;
            var tmp_6 = this;
            tmp_6.n8t_1 = this.l8t_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.n8t_1, this.m8t_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.o8t_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.f8t_1.p8t_1, this.o8t_1, this.f8t_1.q8t_1.j39().x65_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().d5e(e, 'DoorLog', ClazzDao_Repo$findByUidAsFlow$slambda$lambda(this.h8t_1, this.i8t_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).l78 = function (completion) {
    return new ClazzDao_Repo$findByUidAsFlow$slambda(this.f8t_1, this.g8t_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.j87($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.e8u_1 = this$0;
    this.f8u_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_Repo$updateAsync$slambda).g8u = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo$updateAsync$slambda).m78 = function ($completion) {
    return this.g8u($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.e8u_1.r8t_1.v8c(this.f8u_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).l78 = function (completion) {
    return new ClazzDao_Repo$updateAsync$slambda(this.e8u_1, this.f8u_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.g8u($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_Repo$findClazzesWithPermission$slambda(this$0, $searchQuery, $accountPersonUid, $excludeSelectedClazzList, $sortOrder, $filter, $currentTime, $permission, resultContinuation) {
    this.p8u_1 = this$0;
    this.q8u_1 = $searchQuery;
    this.r8u_1 = $accountPersonUid;
    this.s8u_1 = $excludeSelectedClazzList;
    this.t8u_1 = $sortOrder;
    this.u8u_1 = $filter;
    this.v8u_1 = $currentTime;
    this.w8u_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_Repo$findClazzesWithPermission$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_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.h86(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.z8u_1 = this.p8u_1.q8t_1;
            var tmp_1 = this;
            tmp_1.a8v_1 = 'ClazzDao/findClazzesWithPermission';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.b8v_1 = this.p8u_1.s8t_1;
            var tmp_3 = this;
            tmp_3.c8v_1 = this.b8v_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.p8u_1.q8t_1.j39(), 'ClazzDao/findClazzesWithPermission');
            doorNodeIdHeader(this_0, this.p8u_1.q8t_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'searchQuery', this.p8u_1.q8t_1.j39().x65_1.r45(serializer_0(StringCompanionObject_instance), this.q8u_1));
            parameter(this_0, 'accountPersonUid', this.p8u_1.q8t_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.r8u_1));
            parameter(this_0, 'excludeSelectedClazzList', this.p8u_1.q8t_1.j39().x65_1.r45(ListSerializer(serializer(Companion_getInstance())), this.s8u_1));
            parameter(this_0, 'sortOrder', this.p8u_1.q8t_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.t8u_1));
            parameter(this_0, 'filter', this.p8u_1.q8t_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.u8u_1));
            parameter(this_0, 'currentTime', this.p8u_1.q8t_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.v8u_1));
            parameter(this_0, 'permission', this.p8u_1.q8t_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.w8u_1));
            pagingSourceLoadParameters(this_0, this.p8u_1.q8t_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.x8u_1);
            tmp_4.d8v_1 = this_0;
            this.d8v_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.e8v_1 = this.c8v_1;
            var tmp_6 = this;
            tmp_6.f8v_1 = this.d8v_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.f8v_1, this.e8v_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.g8v_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.p8u_1.p8t_1, this.g8v_1, this.p8u_1.q8t_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.y8u_1 = endOfPaginationReached(this.g8v_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().d5e(e, 'DoorLog', ClazzDao_Repo$findClazzesWithPermission$slambda$lambda(this.z8u_1, this.a8v_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.y8u_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).i86 = function (_pagingParams, completion) {
    var i = new ClazzDao_Repo$findClazzesWithPermission$slambda(this.p8u_1, this.q8u_1, this.r8u_1, this.s8u_1, this.t8u_1, this.u8u_1, this.v8u_1, this.w8u_1, completion);
    i.x8u_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.h86(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, resultContinuation) {
    this.p8v_1 = this$0;
    this.q8v_1 = $accountPersonUid;
    this.r8v_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.s8v_1 = this.p8v_1.q8t_1;
            var tmp_1 = this;
            tmp_1.t8v_1 = 'ClazzDao/clazzAndDetailPermissionsAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.u8v_1 = this.p8v_1.s8t_1;
            var tmp_3 = this;
            tmp_3.v8v_1 = this.u8v_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.p8v_1.q8t_1.j39(), 'ClazzDao/clazzAndDetailPermissionsAsFlow');
            doorNodeIdHeader(this_0, this.p8v_1.q8t_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.p8v_1.q8t_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.q8v_1));
            parameter(this_0, 'clazzUid', this.p8v_1.q8t_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.r8v_1));
            tmp_4.w8v_1 = this_0;
            this.w8v_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.x8v_1 = this.v8v_1;
            var tmp_6 = this;
            tmp_6.y8v_1 = this.w8v_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.y8v_1, this.x8v_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.z8v_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.p8v_1.p8t_1, this.z8v_1, this.p8v_1.q8t_1.j39().x65_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().d5e(e, 'DoorLog', ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda$lambda(this.s8v_1, this.t8v_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).l78 = function (completion) {
    return new ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda(this.p8v_1, this.q8v_1, this.r8v_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_Repo$getClazzWithDisplayDetails$slambda(this$0, $clazzUid, $currentTime, $accountPersonUid, resultContinuation) {
    this.i8w_1 = this$0;
    this.j8w_1 = $clazzUid;
    this.k8w_1 = $currentTime;
    this.l8w_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_Repo$getClazzWithDisplayDetails$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo$getClazzWithDisplayDetails$slambda).m78 = function ($completion) {
    return this.j87($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.m8w_1 = this.i8w_1.q8t_1;
            var tmp_1 = this;
            tmp_1.n8w_1 = 'ClazzDao/getClazzWithDisplayDetails';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.o8w_1 = this.i8w_1.s8t_1;
            var tmp_3 = this;
            tmp_3.p8w_1 = this.o8w_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.i8w_1.q8t_1.j39(), 'ClazzDao/getClazzWithDisplayDetails');
            doorNodeIdHeader(this_0, this.i8w_1.q8t_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.i8w_1.q8t_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.j8w_1));
            parameter(this_0, 'currentTime', this.i8w_1.q8t_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.k8w_1));
            parameter(this_0, 'accountPersonUid', this.i8w_1.q8t_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.l8w_1));
            tmp_4.q8w_1 = this_0;
            this.q8w_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.r8w_1 = this.p8w_1;
            var tmp_6 = this;
            tmp_6.s8w_1 = this.q8w_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.s8w_1, this.r8w_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.t8w_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.i8w_1.p8t_1, this.t8w_1, this.i8w_1.q8t_1.j39().x65_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().d5e(e, 'DoorLog', ClazzDao_Repo$getClazzWithDisplayDetails$slambda$lambda(this.m8w_1, this.n8w_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).l78 = function (completion) {
    return new ClazzDao_Repo$getClazzWithDisplayDetails$slambda(this.i8w_1, this.j8w_1, this.k8w_1, this.l8w_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_Repo$getTitleByUidAsFlow$slambda(this$0, $clazzUid, resultContinuation) {
    this.c8x_1 = this$0;
    this.d8x_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_Repo$getTitleByUidAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo$getTitleByUidAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.e8x_1 = this.c8x_1.q8t_1;
            var tmp_1 = this;
            tmp_1.f8x_1 = 'ClazzDao/getTitleByUidAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.g8x_1 = this.c8x_1.s8t_1;
            var tmp_3 = this;
            tmp_3.h8x_1 = this.g8x_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.c8x_1.q8t_1.j39(), 'ClazzDao/getTitleByUidAsFlow');
            doorNodeIdHeader(this_0, this.c8x_1.q8t_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.c8x_1.q8t_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.d8x_1));
            tmp_4.i8x_1 = this_0;
            this.i8x_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.j8x_1 = this.h8x_1;
            var tmp_6 = this;
            tmp_6.k8x_1 = this.i8x_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.k8x_1, this.j8x_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.l8x_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.c8x_1.p8t_1, this.l8x_1, this.c8x_1.q8t_1.j39().x65_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().d5e(e, 'DoorLog', ClazzDao_Repo$getTitleByUidAsFlow$slambda$lambda(this.e8x_1, this.f8x_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).l78 = function (completion) {
    return new ClazzDao_Repo$getTitleByUidAsFlow$slambda(this.c8x_1, this.d8x_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda(this$0, $clazzUid, resultContinuation) {
    this.u8x_1 = this$0;
    this.v8x_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.w8x_1 = this.u8x_1.q8t_1;
            var tmp_1 = this;
            tmp_1.x8x_1 = 'ClazzDao/getClazzNameAndTerminologyAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.y8x_1 = this.u8x_1.s8t_1;
            var tmp_3 = this;
            tmp_3.z8x_1 = this.y8x_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.u8x_1.q8t_1.j39(), 'ClazzDao/getClazzNameAndTerminologyAsFlow');
            doorNodeIdHeader(this_0, this.u8x_1.q8t_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.u8x_1.q8t_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.v8x_1));
            tmp_4.a8y_1 = this_0;
            this.a8y_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.b8y_1 = this.z8x_1;
            var tmp_6 = this;
            tmp_6.c8y_1 = this.a8y_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.c8y_1, this.b8y_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.d8y_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.u8x_1.p8t_1, this.d8y_1, this.u8x_1.q8t_1.j39().x65_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().d5e(e, 'DoorLog', ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda$lambda(this.w8x_1, this.x8x_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).l78 = function (completion) {
    return new ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda(this.u8x_1, this.v8x_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzDao_Repo$getClazzNameAsFlow$slambda(this$0, $clazzUid, resultContinuation) {
    this.m8y_1 = this$0;
    this.n8y_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_Repo$getClazzNameAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo$getClazzNameAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.o8y_1 = this.m8y_1.q8t_1;
            var tmp_1 = this;
            tmp_1.p8y_1 = 'ClazzDao/getClazzNameAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.q8y_1 = this.m8y_1.s8t_1;
            var tmp_3 = this;
            tmp_3.r8y_1 = this.q8y_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.m8y_1.q8t_1.j39(), 'ClazzDao/getClazzNameAsFlow');
            doorNodeIdHeader(this_0, this.m8y_1.q8t_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.m8y_1.q8t_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.n8y_1));
            tmp_4.s8y_1 = this_0;
            this.s8y_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.t8y_1 = this.r8y_1;
            var tmp_6 = this;
            tmp_6.u8y_1 = this.s8y_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.u8y_1, this.t8y_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.v8y_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.m8y_1.p8t_1, this.v8y_1, this.m8y_1.q8t_1.j39().x65_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().d5e(e, 'DoorLog', ClazzDao_Repo$getClazzNameAsFlow$slambda$lambda(this.o8y_1, this.p8y_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).l78 = function (completion) {
    return new ClazzDao_Repo$getClazzNameAsFlow$slambda(this.m8y_1, this.n8y_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.j87($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.e8z_1 = this$0;
    this.f8z_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.e8z_1.r8t_1.insertAsync(this.f8z_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).l78 = function (completion) {
    return new ClazzDao_Repo$insertAsync$slambda(this.e8z_1, this.f8z_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByClazzCodeCOROUTINE$32(_this__u8e3s4, code, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.o8z_1 = _this__u8e3s4;
    this.p8z_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.q8z_1 = this.o8z_1.q8t_1;
            var tmp_1 = this;
            tmp_1.r8z_1 = 'ClazzDao/findByClazzCode';
            this.id_1 = 3;
            this.t8z_1 = this.o8z_1.q8t_1.j39().x65_1;
            this.u8z_1 = get_nullable(Companion_getInstance_52().n4r());
            var tmp_2 = this;
            tmp_2.v8z_1 = this.o8z_1.q8t_1.j39().w65_1;
            var tmp_3 = this;
            tmp_3.w8z_1 = this.v8z_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.o8z_1.q8t_1.j39(), 'ClazzDao/findByClazzCode');
            doorNodeIdHeader(this_0, this.o8z_1.q8t_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'code', this.o8z_1.q8t_1.j39().x65_1.r45(serializer_0(StringCompanionObject_instance), this.p8z_1));
            tmp_4.x8z_1 = this_0;
            this.x8z_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.y8z_1 = this.w8z_1;
            var tmp_6 = this;
            tmp_6.z8z_1 = this.x8z_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.z8z_1, this.y8z_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

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

            continue $sm;
          case 2:
            this.b90_1 = suspendResult;
            this.s8z_1 = this.t8z_1.s45(this.u8z_1, this.b90_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.c90_1 = this.kd_1;
              Napier_getInstance().d5e(this.c90_1, 'DoorLog', ClazzDao_Repo$findByClazzCode$lambda(this.q8z_1, this.r8z_1));
              this.hd_1 = 4;
              suspendResult = this.o8z_1.r8t_1.r8c(this.p8z_1, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.s8z_1 = suspendResult;
            this.hd_1 = 5;
            continue $sm;
          case 5:
            this.id_1 = 6;
            return this.s8z_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.s90_1 = _this__u8e3s4;
    this.t90_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.s90_1.r8t_1.s8c(this.t90_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.c91_1 = _this__u8e3s4;
    this.d91_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.e91_1 = this.c91_1.q8t_1;
            var tmp_1 = this;
            tmp_1.f91_1 = 'ClazzDao/findByUidWithHolidayCalendarAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.g91_1 = this.c91_1.s8t_1;
            var tmp_3 = this;
            tmp_3.h91_1 = this.g91_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.c91_1.q8t_1.j39(), 'ClazzDao/findByUidWithHolidayCalendarAsync');
            doorNodeIdHeader(this_0, this.c91_1.q8t_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.c91_1.q8t_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.d91_1));
            tmp_4.i91_1 = this_0;
            this.i91_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.j91_1 = this.h91_1;
            var tmp_6 = this;
            tmp_6.k91_1 = this.i91_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.k91_1, this.j91_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.l91_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.c91_1.p8t_1, this.l91_1, this.c91_1.q8t_1.j39().x65_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.m91_1 = this.kd_1;
              Napier_getInstance().d5e(this.m91_1, 'DoorLog', ClazzDao_Repo$findByUidWithHolidayCalendarAsync$lambda(this.e91_1, this.f91_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.c91_1.r8t_1.u8c(this.d91_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.v91_1 = _this__u8e3s4;
    this.w91_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.v91_1.q8t_1, 'Clazz', ClazzDao_Repo$updateAsync$slambda_0(this.v91_1, this.w91_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.f92_1 = _this__u8e3s4;
    this.g92_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.h92_1 = this.f92_1.q8t_1;
            var tmp_1 = this;
            tmp_1.i92_1 = 'ClazzDao/getClazzTimeZoneByClazzUidAsync';
            this.id_1 = 3;
            this.k92_1 = this.f92_1.q8t_1.j39().x65_1;
            this.l92_1 = get_nullable(serializer_0(StringCompanionObject_instance));
            var tmp_2 = this;
            tmp_2.m92_1 = this.f92_1.q8t_1.j39().w65_1;
            var tmp_3 = this;
            tmp_3.n92_1 = this.m92_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.f92_1.q8t_1.j39(), 'ClazzDao/getClazzTimeZoneByClazzUidAsync');
            doorNodeIdHeader(this_0, this.f92_1.q8t_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.f92_1.q8t_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.g92_1));
            tmp_4.o92_1 = this_0;
            this.o92_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.p92_1 = this.n92_1;
            var tmp_6 = this;
            tmp_6.q92_1 = this.o92_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.q92_1, this.p92_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

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

            continue $sm;
          case 2:
            this.s92_1 = suspendResult;
            this.j92_1 = this.k92_1.s45(this.l92_1, this.s92_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.t92_1 = this.kd_1;
              Napier_getInstance().d5e(this.t92_1, 'DoorLog', ClazzDao_Repo$getClazzTimeZoneByClazzUidAsync$lambda(this.h92_1, this.i92_1));
              this.hd_1 = 4;
              suspendResult = this.f92_1.r8t_1.c8d(this.g92_1, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.j92_1 = suspendResult;
            this.hd_1 = 5;
            continue $sm;
          case 5:
            this.id_1 = 6;
            return this.j92_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.c93_1 = _this__u8e3s4;
    this.d93_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.c93_1.q8t_1, 'Clazz', ClazzDao_Repo$insertAsync$slambda_0(this.c93_1, this.d93_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.p8t_1 = _db;
    this.q8t_1 = _repo;
    this.r8t_1 = _dao;
    this.s8t_1 = _httpClient;
    this.t8t_1 = _clientId;
    this.u8t_1 = _endpoint;
    this.v8t_1 = new RepoDaoFlowHelper(this.q8t_1);
  }
  protoOf(ClazzDao_Repo).r8c = 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).s8c = 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).t8c = function (uid) {
    var tmp = this.r8t_1.t8c(uid);
    return this.v8t_1.o67(tmp, ClazzDao_Repo$findByUidAsFlow$slambda_0(this, uid, null));
  };
  protoOf(ClazzDao_Repo).u8c = 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).v8c = 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).w8c = function (searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission) {
    var tmp = this.r8t_1.w8c(searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission);
    return new DoorRepositoryReplicatePullPagingSource(this.q8t_1, 'ClazzDao/findClazzesWithPermission', tmp, ClazzDao_Repo$findClazzesWithPermission$slambda_0(this, searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission, null));
  };
  protoOf(ClazzDao_Repo).x8c = function (accountPersonUid, clazzUid) {
    var tmp = this.r8t_1.x8c(accountPersonUid, clazzUid);
    return this.v8t_1.o67(tmp, ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda_0(this, accountPersonUid, clazzUid, null));
  };
  protoOf(ClazzDao_Repo).y8c = function (clazzUid, currentTime, accountPersonUid) {
    var tmp = this.r8t_1.y8c(clazzUid, currentTime, accountPersonUid);
    return this.v8t_1.o67(tmp, ClazzDao_Repo$getClazzWithDisplayDetails$slambda_0(this, clazzUid, currentTime, accountPersonUid, null));
  };
  protoOf(ClazzDao_Repo).z8c = function (clazzUid) {
    var tmp = this.r8t_1.z8c(clazzUid);
    return this.v8t_1.o67(tmp, ClazzDao_Repo$getTitleByUidAsFlow$slambda_0(this, clazzUid, null));
  };
  protoOf(ClazzDao_Repo).a8d = function (clazzUid) {
    var tmp = this.r8t_1.a8d(clazzUid);
    return this.v8t_1.o67(tmp, ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda_0(this, clazzUid, null));
  };
  protoOf(ClazzDao_Repo).b8d = function (clazzUid) {
    var tmp = this.r8t_1.b8d(clazzUid);
    return this.v8t_1.o67(tmp, ClazzDao_Repo$getClazzNameAsFlow$slambda_0(this, clazzUid, null));
  };
  protoOf(ClazzDao_Repo).c8d = 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).q8e = 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.q8e(entity instanceof Clazz ? entity : THROW_CCE(), $completion);
  };
  function ClazzEnrolmentDao() {
  }
  function $insertAsyncCOROUTINE$43(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.v93_1 = _this__u8e3s4;
    this.w93_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.x93_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.v93_1.z93_1));
            if (this.w93_1.b8i_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.x93_1.o62(65, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.y93_1 = suspendResult;
            this.w93_1.b8i_1 = this.y93_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.w93_1.o8i_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.v93_1.a94_1.insertAsync(this.w93_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.w93_1.b8i_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.z93_1 = _db;
    this.a94_1 = _dao;
  }
  protoOf(ClazzEnrolmentDao_DoorWrapper).e93 = function (personUid, clazzUid) {
    return this.a94_1.e93(personUid, clazzUid);
  };
  protoOf(ClazzEnrolmentDao_DoorWrapper).f93 = function (enrolmentUid, $completion) {
    return this.a94_1.f93(enrolmentUid, $completion);
  };
  protoOf(ClazzEnrolmentDao_DoorWrapper).g93 = function (entity, $completion) {
    entity.o8i_1 = systemTimeInMillis();
    return this.a94_1.g93(entity, $completion);
  };
  protoOf(ClazzEnrolmentDao_DoorWrapper).h93 = function (accountPersonUid, otherPersonUid) {
    return this.a94_1.h93(accountPersonUid, otherPersonUid);
  };
  protoOf(ClazzEnrolmentDao_DoorWrapper).i93 = function (clazzUid, accountPersonUid, time, $completion) {
    return this.a94_1.i93(clazzUid, accountPersonUid, time, $completion);
  };
  protoOf(ClazzEnrolmentDao_DoorWrapper).j93 = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission) {
    return this.a94_1.j93(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission);
  };
  protoOf(ClazzEnrolmentDao_DoorWrapper).k93 = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime) {
    return this.a94_1.k93(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime);
  };
  protoOf(ClazzEnrolmentDao_DoorWrapper).l93 = function (personUid, clazzUid, $completion) {
    return this.a94_1.l93(personUid, clazzUid, $completion);
  };
  protoOf(ClazzEnrolmentDao_DoorWrapper).m93 = function (clazzEnrolmentInviteUid, clazzEnrolmentUid, updateTime, $completion) {
    return this.a94_1.m93(clazzEnrolmentInviteUid, clazzEnrolmentUid, updateTime, $completion);
  };
  protoOf(ClazzEnrolmentDao_DoorWrapper).b94 = 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.b94(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.y5m('clazzEnrolmentUid');
      var _tmp_clazzEnrolmentPersonUid = $_result.y5m('clazzEnrolmentPersonUid');
      var _tmp_clazzEnrolmentClazzUid = $_result.y5m('clazzEnrolmentClazzUid');
      var _tmp_clazzEnrolmentDateJoined = $_result.y5m('clazzEnrolmentDateJoined');
      var _tmp_clazzEnrolmentDateLeft = $_result.y5m('clazzEnrolmentDateLeft');
      var _tmp_clazzEnrolmentRole = $_result.x5m('clazzEnrolmentRole');
      var _tmp_clazzEnrolmentAttendancePercentage = $_result.l66('clazzEnrolmentAttendancePercentage');
      var _tmp_clazzEnrolmentActive = $_result.j66('clazzEnrolmentActive');
      var _tmp_clazzEnrolmentLeavingReasonUid = $_result.y5m('clazzEnrolmentLeavingReasonUid');
      var _tmp_clazzEnrolmentOutcome = $_result.x5m('clazzEnrolmentOutcome');
      var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.y5m('clazzEnrolmentLocalChangeSeqNum');
      var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.y5m('clazzEnrolmentMasterChangeSeqNum');
      var _tmp_clazzEnrolmentLastChangedBy = $_result.x5m('clazzEnrolmentLastChangedBy');
      var _tmp_clazzEnrolmentLct = $_result.y5m('clazzEnrolmentLct');
      var _tmp_clazzEnrolmentInviteUid = $_result.y5m('clazzEnrolmentInviteUid');
      var _tmp_LeavingReason_nullCount = 0;
      var _tmp_leavingReasonUid = $_result.y5m('leavingReasonUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_leavingReasonTitle = $_result.rz('leavingReasonTitle');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_leavingReasonMCSN = $_result.y5m('leavingReasonMCSN');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_leavingReasonCSN = $_result.y5m('leavingReasonCSN');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_leavingReasonLCB = $_result.x5m('leavingReasonLCB');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_leavingReasonLct = $_result.y5m('leavingReasonLct');
      var tmp_4;
      if ($_result.q67()) {
        _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.s94_1 = _tmp_timeZone;
      this_0.b8i_1 = _tmp_clazzEnrolmentUid;
      this_0.c8i_1 = _tmp_clazzEnrolmentPersonUid;
      this_0.d8i_1 = _tmp_clazzEnrolmentClazzUid;
      this_0.e8i_1 = _tmp_clazzEnrolmentDateJoined;
      this_0.f8i_1 = _tmp_clazzEnrolmentDateLeft;
      this_0.g8i_1 = _tmp_clazzEnrolmentRole;
      this_0.h8i_1 = _tmp_clazzEnrolmentAttendancePercentage;
      this_0.i8i_1 = _tmp_clazzEnrolmentActive;
      this_0.j8i_1 = _tmp_clazzEnrolmentLeavingReasonUid;
      this_0.k8i_1 = _tmp_clazzEnrolmentOutcome;
      this_0.l8i_1 = _tmp_clazzEnrolmentLocalChangeSeqNum;
      this_0.m8i_1 = _tmp_clazzEnrolmentMasterChangeSeqNum;
      this_0.n8i_1 = _tmp_clazzEnrolmentLastChangedBy;
      this_0.o8i_1 = _tmp_clazzEnrolmentLct;
      this_0.p8i_1 = _tmp_clazzEnrolmentInviteUid;
      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.t94_1 = _tmp_leavingReasonUid;
        this_1.u94_1 = _tmp_leavingReasonTitle;
        this_1.v94_1 = _tmp_leavingReasonMCSN;
        this_1.w94_1 = _tmp_leavingReasonCSN;
        this_1.x94_1 = _tmp_leavingReasonLCB;
        this_1.y94_1 = _tmp_leavingReasonLct;
        tmp_5.r94_1 = this_1;
      }
      return this_0;
    };
  }
  function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda($personUid, $clazzUid, resultContinuation) {
    this.h95_1 = $personUid;
    this.i95_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda).k95 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.k95((!(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.j95_1.v5h(1, this.h95_1);
            this.j95_1.v5h(2, this.i95_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.j95_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).m5f = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda(this.h95_1, this.i95_1, completion);
    i.j95_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.k95(_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.y5m('clazzEnrolmentUid');
      var _tmp_clazzEnrolmentPersonUid = $_result.y5m('clazzEnrolmentPersonUid');
      var _tmp_clazzEnrolmentClazzUid = $_result.y5m('clazzEnrolmentClazzUid');
      var _tmp_clazzEnrolmentDateJoined = $_result.y5m('clazzEnrolmentDateJoined');
      var _tmp_clazzEnrolmentDateLeft = $_result.y5m('clazzEnrolmentDateLeft');
      var _tmp_clazzEnrolmentRole = $_result.x5m('clazzEnrolmentRole');
      var _tmp_clazzEnrolmentAttendancePercentage = $_result.l66('clazzEnrolmentAttendancePercentage');
      var _tmp_clazzEnrolmentActive = $_result.j66('clazzEnrolmentActive');
      var _tmp_clazzEnrolmentLeavingReasonUid = $_result.y5m('clazzEnrolmentLeavingReasonUid');
      var _tmp_clazzEnrolmentOutcome = $_result.x5m('clazzEnrolmentOutcome');
      var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.y5m('clazzEnrolmentLocalChangeSeqNum');
      var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.y5m('clazzEnrolmentMasterChangeSeqNum');
      var _tmp_clazzEnrolmentLastChangedBy = $_result.x5m('clazzEnrolmentLastChangedBy');
      var _tmp_clazzEnrolmentLct = $_result.y5m('clazzEnrolmentLct');
      var _tmp_clazzEnrolmentInviteUid = $_result.y5m('clazzEnrolmentInviteUid');
      var _tmp_LeavingReason_nullCount = 0;
      var _tmp_leavingReasonUid = $_result.y5m('leavingReasonUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_leavingReasonTitle = $_result.rz('leavingReasonTitle');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_leavingReasonMCSN = $_result.y5m('leavingReasonMCSN');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_leavingReasonCSN = $_result.y5m('leavingReasonCSN');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_leavingReasonLCB = $_result.x5m('leavingReasonLCB');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_leavingReasonLct = $_result.y5m('leavingReasonLct');
      var tmp_4;
      if ($_result.q67()) {
        _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.s94_1 = _tmp_timeZone;
      this_0.b8i_1 = _tmp_clazzEnrolmentUid;
      this_0.c8i_1 = _tmp_clazzEnrolmentPersonUid;
      this_0.d8i_1 = _tmp_clazzEnrolmentClazzUid;
      this_0.e8i_1 = _tmp_clazzEnrolmentDateJoined;
      this_0.f8i_1 = _tmp_clazzEnrolmentDateLeft;
      this_0.g8i_1 = _tmp_clazzEnrolmentRole;
      this_0.h8i_1 = _tmp_clazzEnrolmentAttendancePercentage;
      this_0.i8i_1 = _tmp_clazzEnrolmentActive;
      this_0.j8i_1 = _tmp_clazzEnrolmentLeavingReasonUid;
      this_0.k8i_1 = _tmp_clazzEnrolmentOutcome;
      this_0.l8i_1 = _tmp_clazzEnrolmentLocalChangeSeqNum;
      this_0.m8i_1 = _tmp_clazzEnrolmentMasterChangeSeqNum;
      this_0.n8i_1 = _tmp_clazzEnrolmentLastChangedBy;
      this_0.o8i_1 = _tmp_clazzEnrolmentLct;
      this_0.p8i_1 = _tmp_clazzEnrolmentInviteUid;
      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.t94_1 = _tmp_leavingReasonUid;
        this_1.u94_1 = _tmp_leavingReasonTitle;
        this_1.v94_1 = _tmp_leavingReasonMCSN;
        this_1.w94_1 = _tmp_leavingReasonCSN;
        this_1.x94_1 = _tmp_leavingReasonLCB;
        this_1.y94_1 = _tmp_leavingReasonLct;
        tmp_5.r94_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.y5m('clazzEnrolmentUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_clazzEnrolmentPersonUid = $_result.y5m('clazzEnrolmentPersonUid');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_clazzEnrolmentClazzUid = $_result.y5m('clazzEnrolmentClazzUid');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_clazzEnrolmentDateJoined = $_result.y5m('clazzEnrolmentDateJoined');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_clazzEnrolmentDateLeft = $_result.y5m('clazzEnrolmentDateLeft');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_clazzEnrolmentRole = $_result.x5m('clazzEnrolmentRole');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_clazzEnrolmentAttendancePercentage = $_result.l66('clazzEnrolmentAttendancePercentage');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_clazzEnrolmentActive = $_result.j66('clazzEnrolmentActive');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_clazzEnrolmentLeavingReasonUid = $_result.y5m('clazzEnrolmentLeavingReasonUid');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_clazzEnrolmentOutcome = $_result.x5m('clazzEnrolmentOutcome');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.y5m('clazzEnrolmentLocalChangeSeqNum');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.y5m('clazzEnrolmentMasterChangeSeqNum');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_clazzEnrolmentLastChangedBy = $_result.x5m('clazzEnrolmentLastChangedBy');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_clazzEnrolmentLct = $_result.y5m('clazzEnrolmentLct');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_clazzEnrolmentInviteUid = $_result.y5m('clazzEnrolmentInviteUid');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_ClazzEnrolment_isAllNull = _tmp_ClazzEnrolment_nullCount === 15;
      var _tmp_Clazz_nullCount = 0;
      var _tmp_clazzUid = $_result.y5m('clazzUid');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_clazzName = $_result.rz('clazzName');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_clazzDesc = $_result.rz('clazzDesc');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_attendanceAverage = $_result.l66('attendanceAverage');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_clazzHolidayUMCalendarUid = $_result.y5m('clazzHolidayUMCalendarUid');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_clazzScheuleUMCalendarUid = $_result.y5m('clazzScheuleUMCalendarUid');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_isClazzActive = $_result.j66('isClazzActive');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_clazzLocationUid = $_result.y5m('clazzLocationUid');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_clazzStartTime = $_result.y5m('clazzStartTime');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_clazzEndTime = $_result.y5m('clazzEndTime');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_clazzFeatures = $_result.y5m('clazzFeatures');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_clazzSchoolUid = $_result.y5m('clazzSchoolUid');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_clazzEnrolmentPolicy = $_result.x5m('clazzEnrolmentPolicy');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_clazzTerminologyUid = $_result.y5m('clazzTerminologyUid');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_clazzMasterChangeSeqNum = $_result.y5m('clazzMasterChangeSeqNum');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_clazzLocalChangeSeqNum = $_result.y5m('clazzLocalChangeSeqNum');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_clazzLastChangedBy = $_result.x5m('clazzLastChangedBy');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_clazzLct = $_result.y5m('clazzLct');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_clazzTimeZone = $_result.rz('clazzTimeZone');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_clazzStudentsPersonGroupUid = $_result.y5m('clazzStudentsPersonGroupUid');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_clazzTeachersPersonGroupUid = $_result.y5m('clazzTeachersPersonGroupUid');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_clazzPendingStudentsPersonGroupUid = $_result.y5m('clazzPendingStudentsPersonGroupUid');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_clazzParentsPersonGroupUid = $_result.y5m('clazzParentsPersonGroupUid');
      var tmp_36;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_clazzCode = $_result.rz('clazzCode');
      var tmp_37;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_clazzOwnerPersonUid = $_result.y5m('clazzOwnerPersonUid');
      var tmp_38;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_Clazz_isAllNull = _tmp_Clazz_nullCount === 25;
      var _tmp_CourseTerminology_nullCount = 0;
      var _tmp_ctUid = $_result.y5m('ctUid');
      var tmp_39;
      if ($_result.q67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_ctTitle = $_result.rz('ctTitle');
      var tmp_40;
      if ($_result.q67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_ctTerminology = $_result.rz('ctTerminology');
      var tmp_41;
      if ($_result.q67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_ctLct = $_result.y5m('ctLct');
      var tmp_42;
      if ($_result.q67()) {
        _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0;
        tmp_42 = 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_43 = 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.b8i_1 = _tmp_clazzEnrolmentUid;
        this_1.c8i_1 = _tmp_clazzEnrolmentPersonUid;
        this_1.d8i_1 = _tmp_clazzEnrolmentClazzUid;
        this_1.e8i_1 = _tmp_clazzEnrolmentDateJoined;
        this_1.f8i_1 = _tmp_clazzEnrolmentDateLeft;
        this_1.g8i_1 = _tmp_clazzEnrolmentRole;
        this_1.h8i_1 = _tmp_clazzEnrolmentAttendancePercentage;
        this_1.i8i_1 = _tmp_clazzEnrolmentActive;
        this_1.j8i_1 = _tmp_clazzEnrolmentLeavingReasonUid;
        this_1.k8i_1 = _tmp_clazzEnrolmentOutcome;
        this_1.l8i_1 = _tmp_clazzEnrolmentLocalChangeSeqNum;
        this_1.m8i_1 = _tmp_clazzEnrolmentMasterChangeSeqNum;
        this_1.n8i_1 = _tmp_clazzEnrolmentLastChangedBy;
        this_1.o8i_1 = _tmp_clazzEnrolmentLct;
        this_1.p8i_1 = _tmp_clazzEnrolmentInviteUid;
        tmp_43.l95_1 = this_1;
      }
      if (!_tmp_Clazz_isAllNull) {
        var tmp_44 = 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.r8d_1 = _tmp_clazzUid;
        this_2.s8d_1 = _tmp_clazzName;
        this_2.t8d_1 = _tmp_clazzDesc;
        this_2.u8d_1 = _tmp_attendanceAverage;
        this_2.v8d_1 = _tmp_clazzHolidayUMCalendarUid;
        this_2.w8d_1 = _tmp_clazzScheuleUMCalendarUid;
        this_2.x8d_1 = _tmp_isClazzActive;
        this_2.y8d_1 = _tmp_clazzLocationUid;
        this_2.z8d_1 = _tmp_clazzStartTime;
        this_2.a8e_1 = _tmp_clazzEndTime;
        this_2.b8e_1 = _tmp_clazzFeatures;
        this_2.c8e_1 = _tmp_clazzSchoolUid;
        this_2.d8e_1 = _tmp_clazzEnrolmentPolicy;
        this_2.e8e_1 = _tmp_clazzTerminologyUid;
        this_2.f8e_1 = _tmp_clazzMasterChangeSeqNum;
        this_2.g8e_1 = _tmp_clazzLocalChangeSeqNum;
        this_2.h8e_1 = _tmp_clazzLastChangedBy;
        this_2.i8e_1 = _tmp_clazzLct;
        this_2.j8e_1 = _tmp_clazzTimeZone;
        this_2.k8e_1 = _tmp_clazzStudentsPersonGroupUid;
        this_2.l8e_1 = _tmp_clazzTeachersPersonGroupUid;
        this_2.m8e_1 = _tmp_clazzPendingStudentsPersonGroupUid;
        this_2.n8e_1 = _tmp_clazzParentsPersonGroupUid;
        this_2.o8e_1 = _tmp_clazzCode;
        this_2.p8e_1 = _tmp_clazzOwnerPersonUid;
        tmp_44.m95_1 = this_2;
      }
      if (!_tmp_CourseTerminology_isAllNull) {
        var tmp_45 = 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.m8g_1 = _tmp_ctUid;
        this_3.n8g_1 = _tmp_ctTitle;
        this_3.o8g_1 = _tmp_ctTerminology;
        this_3.p8g_1 = _tmp_ctLct;
        tmp_45.n95_1 = this_3;
      }
      return this_0;
    };
  }
  function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda($accountPersonUid, $otherPersonUid, resultContinuation) {
    this.w95_1 = $accountPersonUid;
    this.x95_1 = $otherPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda).z95 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.z95((!(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.y95_1.v5h(1, this.w95_1);
            this.y95_1.v5h(2, this.w95_1);
            this.y95_1.v5h(3, this.x95_1);
            this.y95_1.v5h(4, this.w95_1);
            this.y95_1.v5h(5, this.x95_1);
            this.y95_1.v5h(6, this.x95_1);
            this.y95_1.v5h(7, this.w95_1);
            this.y95_1.v5h(8, this.x95_1);
            this.y95_1.v5h(9, this.w95_1);
            this.y95_1.v5h(10, this.w95_1);
            this.y95_1.v5h(11, this.x95_1);
            this.y95_1.v5h(12, this.w95_1);
            this.y95_1.v5h(13, this.x95_1);
            this.y95_1.v5h(14, this.w95_1);
            this.y95_1.v5h(15, this.w95_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.y95_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).m5f = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda(this.w95_1, this.x95_1, completion);
    i.y95_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.z95(_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.y5m('clazzEnrolmentUid');
      var _tmp_clazzEnrolmentPersonUid = $_result.y5m('clazzEnrolmentPersonUid');
      var _tmp_clazzEnrolmentClazzUid = $_result.y5m('clazzEnrolmentClazzUid');
      var _tmp_clazzEnrolmentDateJoined = $_result.y5m('clazzEnrolmentDateJoined');
      var _tmp_clazzEnrolmentDateLeft = $_result.y5m('clazzEnrolmentDateLeft');
      var _tmp_clazzEnrolmentRole = $_result.x5m('clazzEnrolmentRole');
      var _tmp_clazzEnrolmentAttendancePercentage = $_result.l66('clazzEnrolmentAttendancePercentage');
      var _tmp_clazzEnrolmentActive = $_result.j66('clazzEnrolmentActive');
      var _tmp_clazzEnrolmentLeavingReasonUid = $_result.y5m('clazzEnrolmentLeavingReasonUid');
      var _tmp_clazzEnrolmentOutcome = $_result.x5m('clazzEnrolmentOutcome');
      var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.y5m('clazzEnrolmentLocalChangeSeqNum');
      var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.y5m('clazzEnrolmentMasterChangeSeqNum');
      var _tmp_clazzEnrolmentLastChangedBy = $_result.x5m('clazzEnrolmentLastChangedBy');
      var _tmp_clazzEnrolmentLct = $_result.y5m('clazzEnrolmentLct');
      var _tmp_clazzEnrolmentInviteUid = $_result.y5m('clazzEnrolmentInviteUid');
      // 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.b8i_1 = _tmp_clazzEnrolmentUid;
      this_0.c8i_1 = _tmp_clazzEnrolmentPersonUid;
      this_0.d8i_1 = _tmp_clazzEnrolmentClazzUid;
      this_0.e8i_1 = _tmp_clazzEnrolmentDateJoined;
      this_0.f8i_1 = _tmp_clazzEnrolmentDateLeft;
      this_0.g8i_1 = _tmp_clazzEnrolmentRole;
      this_0.h8i_1 = _tmp_clazzEnrolmentAttendancePercentage;
      this_0.i8i_1 = _tmp_clazzEnrolmentActive;
      this_0.j8i_1 = _tmp_clazzEnrolmentLeavingReasonUid;
      this_0.k8i_1 = _tmp_clazzEnrolmentOutcome;
      this_0.l8i_1 = _tmp_clazzEnrolmentLocalChangeSeqNum;
      this_0.m8i_1 = _tmp_clazzEnrolmentMasterChangeSeqNum;
      this_0.n8i_1 = _tmp_clazzEnrolmentLastChangedBy;
      this_0.o8i_1 = _tmp_clazzEnrolmentLct;
      this_0.p8i_1 = _tmp_clazzEnrolmentInviteUid;
      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.y5m('earliestJoinDate');
      var _tmp_latestDateLeft = $_result.y5m('latestDateLeft');
      var _tmp_enrolmentRole = $_result.x5m('enrolmentRole');
      var _tmp_Person_nullCount = 0;
      var _tmp_personUid = $_result.y5m('personUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_gender = $_result.x5m('gender');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_active = $_result.j66('active');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_isPersonalAccount = $_result.j66('isPersonalAccount');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.y5m('dateOfBirth');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.y5m('personGroupUid');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_personLct = $_result.y5m('personLct');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personType = $_result.x5m('personType');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.y5m('personMasterChangeSeqNum');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.y5m('personLocalChangeSeqNum');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.x5m('personLastChangedBy');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_admin = $_result.j66('admin');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 25;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.y5m('personPictureUid');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.y5m('personPictureLct');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_fileSize = $_result.x5m('fileSize');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.j66('personPictureActive');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_29 = 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.c96_1 = _tmp_earliestJoinDate;
      this_0.d96_1 = _tmp_latestDateLeft;
      this_0.e96_1 = _tmp_enrolmentRole;
      if (!_tmp_Person_isAllNull) {
        var tmp_30 = 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.f96_1 = _tmp_personUid;
        this_1.g96_1 = _tmp_username;
        this_1.h96_1 = _tmp_firstNames;
        this_1.i96_1 = _tmp_lastName;
        this_1.j96_1 = _tmp_emailAddr;
        this_1.k96_1 = _tmp_phoneNum;
        this_1.l96_1 = _tmp_gender;
        this_1.m96_1 = _tmp_active;
        this_1.n96_1 = _tmp_isPersonalAccount;
        this_1.o96_1 = _tmp_dateOfBirth;
        this_1.p96_1 = _tmp_personAddress;
        this_1.q96_1 = _tmp_personOrgId;
        this_1.r96_1 = _tmp_personGroupUid;
        this_1.s96_1 = _tmp_personLct;
        this_1.t96_1 = _tmp_personCountry;
        this_1.u96_1 = _tmp_personType;
        this_1.v96_1 = _tmp_personMasterChangeSeqNum;
        this_1.w96_1 = _tmp_personLocalChangeSeqNum;
        this_1.x96_1 = _tmp_personLastChangedBy;
        this_1.y96_1 = _tmp_admin;
        this_1.z96_1 = _tmp_personNotes;
        this_1.a97_1 = _tmp_fatherName;
        this_1.b97_1 = _tmp_fatherNumber;
        this_1.c97_1 = _tmp_motherName;
        this_1.d97_1 = _tmp_motherNum;
        tmp_30.a96_1 = this_1;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_31 = 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.e97_1 = _tmp_personPictureUid;
        this_2.f97_1 = _tmp_personPictureLct;
        this_2.g97_1 = _tmp_personPictureUri;
        this_2.h97_1 = _tmp_personPictureThumbnailUri;
        this_2.i97_1 = _tmp_fileSize;
        this_2.j97_1 = _tmp_personPictureActive;
        tmp_31.b96_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.m5s(1);
    };
  }
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) {
    this.s97_1 = $clazzUid;
    this.t97_1 = $roleId;
    this.u97_1 = $filter;
    this.v97_1 = $currentTime;
    this.w97_1 = $accountPersonUid;
    this.x97_1 = $permission;
    this.y97_1 = $searchText;
    this.z97_1 = $sortOrder;
    this.a98_1 = $_limit;
    this.b98_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda).d98 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.d98((!(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.c98_1.v5h(1, this.s97_1);
            this.c98_1.v5h(2, this.s97_1);
            this.c98_1.u5h(3, this.t97_1);
            this.c98_1.u5h(4, this.u97_1);
            this.c98_1.v5h(5, this.v97_1);
            this.c98_1.v5h(6, this.s97_1);
            this.c98_1.v5h(7, this.w97_1);
            this.c98_1.v5h(8, this.w97_1);
            this.c98_1.v5h(9, this.s97_1);
            this.c98_1.v5h(10, this.w97_1);
            this.c98_1.v5h(11, this.x97_1);
            this.c98_1.v5h(12, this.w97_1);
            this.c98_1.v5h(13, this.x97_1);
            this.c98_1.v5h(14, this.w97_1);
            this.c98_1.y5h(15, this.y97_1);
            this.c98_1.u5h(16, this.z97_1);
            this.c98_1.u5h(17, this.z97_1);
            this.c98_1.u5h(18, this.z97_1);
            this.c98_1.u5h(19, this.z97_1);
            this.c98_1.u5h(20, this.a98_1);
            this.c98_1.u5h(21, this.b98_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.c98_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).m5f = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda(this.s97_1, this.t97_1, this.u97_1, this.v97_1, this.w97_1, this.x97_1, this.y97_1, this.z97_1, this.a98_1, this.b98_1, completion);
    i.c98_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.d98(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, resultContinuation) {
    this.m98_1 = $clazzUid;
    this.n98_1 = $roleId;
    this.o98_1 = $filter;
    this.p98_1 = $currentTime;
    this.q98_1 = $accountPersonUid;
    this.r98_1 = $permission;
    this.s98_1 = $searchText;
    this.t98_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.u98_1.v5h(1, this.m98_1);
            this.u98_1.v5h(2, this.m98_1);
            this.u98_1.u5h(3, this.n98_1);
            this.u98_1.u5h(4, this.o98_1);
            this.u98_1.v5h(5, this.p98_1);
            this.u98_1.v5h(6, this.m98_1);
            this.u98_1.v5h(7, this.q98_1);
            this.u98_1.v5h(8, this.q98_1);
            this.u98_1.v5h(9, this.m98_1);
            this.u98_1.v5h(10, this.q98_1);
            this.u98_1.v5h(11, this.r98_1);
            this.u98_1.v5h(12, this.q98_1);
            this.u98_1.v5h(13, this.r98_1);
            this.u98_1.v5h(14, this.q98_1);
            this.u98_1.y5h(15, this.s98_1);
            this.u98_1.u5h(16, this.t98_1);
            this.u98_1.u5h(17, this.t98_1);
            this.u98_1.u5h(18, this.t98_1);
            this.u98_1.u5h(19, this.t98_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.u98_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).m5f = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda(this.m98_1, this.n98_1, this.o98_1, this.p98_1, this.q98_1, this.r98_1, this.s98_1, this.t98_1, completion);
    i.u98_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.j6j(_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.y5m('earliestJoinDate');
      var _tmp_latestDateLeft = $_result.y5m('latestDateLeft');
      var _tmp_enrolmentRole = $_result.x5m('enrolmentRole');
      var _tmp_Person_nullCount = 0;
      var _tmp_personUid = $_result.y5m('personUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_gender = $_result.x5m('gender');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_active = $_result.j66('active');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_isPersonalAccount = $_result.j66('isPersonalAccount');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.y5m('dateOfBirth');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.y5m('personGroupUid');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_personLct = $_result.y5m('personLct');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personType = $_result.x5m('personType');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.y5m('personMasterChangeSeqNum');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.y5m('personLocalChangeSeqNum');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.x5m('personLastChangedBy');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_admin = $_result.j66('admin');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 25;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.y5m('personPictureUid');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.y5m('personPictureLct');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_fileSize = $_result.x5m('fileSize');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.j66('personPictureActive');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_29 = 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.c96_1 = _tmp_earliestJoinDate;
      this_0.d96_1 = _tmp_latestDateLeft;
      this_0.e96_1 = _tmp_enrolmentRole;
      if (!_tmp_Person_isAllNull) {
        var tmp_30 = 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.f96_1 = _tmp_personUid;
        this_1.g96_1 = _tmp_username;
        this_1.h96_1 = _tmp_firstNames;
        this_1.i96_1 = _tmp_lastName;
        this_1.j96_1 = _tmp_emailAddr;
        this_1.k96_1 = _tmp_phoneNum;
        this_1.l96_1 = _tmp_gender;
        this_1.m96_1 = _tmp_active;
        this_1.n96_1 = _tmp_isPersonalAccount;
        this_1.o96_1 = _tmp_dateOfBirth;
        this_1.p96_1 = _tmp_personAddress;
        this_1.q96_1 = _tmp_personOrgId;
        this_1.r96_1 = _tmp_personGroupUid;
        this_1.s96_1 = _tmp_personLct;
        this_1.t96_1 = _tmp_personCountry;
        this_1.u96_1 = _tmp_personType;
        this_1.v96_1 = _tmp_personMasterChangeSeqNum;
        this_1.w96_1 = _tmp_personLocalChangeSeqNum;
        this_1.x96_1 = _tmp_personLastChangedBy;
        this_1.y96_1 = _tmp_admin;
        this_1.z96_1 = _tmp_personNotes;
        this_1.a97_1 = _tmp_fatherName;
        this_1.b97_1 = _tmp_fatherNumber;
        this_1.c97_1 = _tmp_motherName;
        this_1.d97_1 = _tmp_motherNum;
        tmp_30.a96_1 = this_1;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_31 = 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.e97_1 = _tmp_personPictureUid;
        this_2.f97_1 = _tmp_personPictureLct;
        this_2.g97_1 = _tmp_personPictureUri;
        this_2.h97_1 = _tmp_personPictureThumbnailUri;
        this_2.i97_1 = _tmp_fileSize;
        this_2.j97_1 = _tmp_personPictureActive;
        tmp_31.b96_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.m5s(1);
    };
  }
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) {
    this.d99_1 = $clazzUid;
    this.e99_1 = $roleId;
    this.f99_1 = $filter;
    this.g99_1 = $currentTime;
    this.h99_1 = $accountPersonUid;
    this.i99_1 = $searchText;
    this.j99_1 = $sortOrder;
    this.k99_1 = $_limit;
    this.l99_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda).d98 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.d98((!(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.m99_1.v5h(1, this.d99_1);
            this.m99_1.v5h(2, this.d99_1);
            this.m99_1.u5h(3, this.e99_1);
            this.m99_1.u5h(4, this.f99_1);
            this.m99_1.v5h(5, this.g99_1);
            this.m99_1.v5h(6, this.d99_1);
            this.m99_1.v5h(7, this.h99_1);
            this.m99_1.v5h(8, this.h99_1);
            this.m99_1.v5h(9, this.d99_1);
            this.m99_1.v5h(10, this.h99_1);
            this.m99_1.v5h(11, this.h99_1);
            this.m99_1.v5h(12, this.h99_1);
            this.m99_1.y5h(13, this.i99_1);
            this.m99_1.u5h(14, this.j99_1);
            this.m99_1.u5h(15, this.j99_1);
            this.m99_1.u5h(16, this.j99_1);
            this.m99_1.u5h(17, this.j99_1);
            this.m99_1.u5h(18, this.k99_1);
            this.m99_1.u5h(19, this.l99_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.m99_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).m5f = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda(this.d99_1, this.e99_1, this.f99_1, this.g99_1, this.h99_1, this.i99_1, this.j99_1, this.k99_1, this.l99_1, completion);
    i.m99_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.d98(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, resultContinuation) {
    this.v99_1 = $clazzUid;
    this.w99_1 = $roleId;
    this.x99_1 = $filter;
    this.y99_1 = $currentTime;
    this.z99_1 = $accountPersonUid;
    this.a9a_1 = $searchText;
    this.b9a_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.c9a_1.v5h(1, this.v99_1);
            this.c9a_1.v5h(2, this.v99_1);
            this.c9a_1.u5h(3, this.w99_1);
            this.c9a_1.u5h(4, this.x99_1);
            this.c9a_1.v5h(5, this.y99_1);
            this.c9a_1.v5h(6, this.v99_1);
            this.c9a_1.v5h(7, this.z99_1);
            this.c9a_1.v5h(8, this.z99_1);
            this.c9a_1.v5h(9, this.v99_1);
            this.c9a_1.v5h(10, this.z99_1);
            this.c9a_1.v5h(11, this.z99_1);
            this.c9a_1.v5h(12, this.z99_1);
            this.c9a_1.y5h(13, this.a9a_1);
            this.c9a_1.u5h(14, this.b9a_1);
            this.c9a_1.u5h(15, this.b9a_1);
            this.c9a_1.u5h(16, this.b9a_1);
            this.c9a_1.u5h(17, this.b9a_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.c9a_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).m5f = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda(this.v99_1, this.w99_1, this.x99_1, this.y99_1, this.z99_1, this.a9a_1, this.b9a_1, completion);
    i.c9a_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.j6j(_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.d9a_1 = _tmp_clazzName;
      this_0.e9a_1 = _tmp_firstNames;
      this_0.f9a_1 = _tmp_lastName;
      return this_0;
    };
  }
  function ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.g9a_1);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO ClazzEnrolment (clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, clazzEnrolmentInviteUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1).k9a = function (stmt, entity) {
    if (entity.b8i_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.b8i_1);
    }
    stmt.v5h(2, entity.c8i_1);
    stmt.v5h(3, entity.d8i_1);
    stmt.v5h(4, entity.e8i_1);
    stmt.v5h(5, entity.f8i_1);
    stmt.u5h(6, entity.g8i_1);
    stmt.w5h(7, entity.h8i_1);
    stmt.i5h(8, entity.i8i_1);
    stmt.v5h(9, entity.j8i_1);
    stmt.u5h(10, entity.k8i_1);
    stmt.v5h(11, entity.l8i_1);
    stmt.v5h(12, entity.m8i_1);
    stmt.u5h(13, entity.n8i_1);
    stmt.v5h(14, entity.o8i_1);
    stmt.v5h(15, entity.p8i_1);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1).p5f = function (stmt, entity) {
    return this.k9a(stmt, entity instanceof ClazzEnrolment ? entity : THROW_CCE());
  };
  function ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) {
    this.t9a_1 = $entity;
    this.u9a_1 = $_result;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda).l5f = function (_stmt, $completion) {
    var tmp = this.m5f(_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.l5f((!(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.v9a_1.v5h(1, this.t9a_1.c8i_1);
            this.v9a_1.v5h(2, this.t9a_1.d8i_1);
            this.v9a_1.v5h(3, this.t9a_1.e8i_1);
            this.v9a_1.v5h(4, this.t9a_1.f8i_1);
            this.v9a_1.u5h(5, this.t9a_1.g8i_1);
            this.v9a_1.w5h(6, this.t9a_1.h8i_1);
            this.v9a_1.i5h(7, this.t9a_1.i8i_1);
            this.v9a_1.v5h(8, this.t9a_1.j8i_1);
            this.v9a_1.u5h(9, this.t9a_1.k8i_1);
            this.v9a_1.v5h(10, this.t9a_1.l8i_1);
            this.v9a_1.v5h(11, this.t9a_1.m8i_1);
            this.v9a_1.u5h(12, this.t9a_1.n8i_1);
            this.v9a_1.v5h(13, this.t9a_1.o8i_1);
            this.v9a_1.v5h(14, this.t9a_1.p8i_1);
            this.v9a_1.v5h(15, this.t9a_1.b8i_1);
            this.w9a_1 = this.u9a_1._v;
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.v9a_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            var ARGUMENT_0 = this.w9a_1 + ARGUMENT | 0;
            this.u9a_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).m5f = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda(this.t9a_1, this.u9a_1, completion);
    i.v9a_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.l5f(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda(this$0, $personUid, $clazzUid, resultContinuation) {
    this.f9b_1 = this$0;
    this.g9b_1 = $personUid;
    this.h9b_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda).i9b = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda).m78 = function ($completion) {
    return this.i9b($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.f9b_1.g9a_1, tmp_0, ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda_0(this.g9b_1, this.h9b_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).l78 = function (completion) {
    return new ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda(this.f9b_1, this.g9b_1, this.h9b_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.i9b($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda($enrolmentUid, resultContinuation) {
    this.r9b_1 = $enrolmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda).t9b = function (_stmt, $completion) {
    var tmp = this.m5f(_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.t9b((!(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.s9b_1.v5h(1, this.r9b_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.s9b_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).m5f = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda(this.r9b_1, completion);
    i.s9b_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.t9b(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda(this$0, $accountPersonUid, $otherPersonUid, resultContinuation) {
    this.c9c_1 = this$0;
    this.d9c_1 = $accountPersonUid;
    this.e9c_1 = $otherPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda).f9c = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda).m78 = function ($completion) {
    return this.f9c($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.c9c_1.g9a_1, tmp_0, ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda_0(this.d9c_1, this.e9c_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).l78 = function (completion) {
    return new ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda(this.c9c_1, this.d9c_1, this.e9c_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.f9c($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda($clazzUid, $accountPersonUid, $time, resultContinuation) {
    this.o9c_1 = $clazzUid;
    this.p9c_1 = $accountPersonUid;
    this.q9c_1 = $time;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda).s9c = function (_stmt, $completion) {
    var tmp = this.m5f(_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.s9c((!(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.r9c_1.v5h(1, this.o9c_1);
            this.r9c_1.v5h(2, this.p9c_1);
            this.r9c_1.v5h(3, this.q9c_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.r9c_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).m5f = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda(this.o9c_1, this.p9c_1, this.q9c_1, completion);
    i.r9c_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.s9c(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1(this$0, $clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder) {
    this.z9c_1 = this$0;
    this.a9d_1 = $clazzUid;
    this.b9d_1 = $roleId;
    this.c9d_1 = $filter;
    this.d9d_1 = $currentTime;
    this.e9d_1 = $accountPersonUid;
    this.f9d_1 = $permission;
    this.g9d_1 = $searchText;
    this.h9d_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.g9a_1, tmp$ret$2);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1).i9d = 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.z9c_1.g9a_1, tmp, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda_0(this.a9d_1, this.b9d_1, this.c9d_1, this.d9d_1, this.e9d_1, this.f9d_1, this.g9d_1, this.h9d_1, _limit, _offset, null), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1).w5p = function (_limit, _offset, $completion) {
    return this.i9d(_limit, _offset, $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1).q5r = 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.z9c_1.g9a_1, tmp, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda_0(this.a9d_1, this.b9d_1, this.c9d_1, this.d9d_1, this.e9d_1, this.f9d_1, this.g9d_1, this.h9d_1, null), $completion);
  };
  function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1(this$0, $clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder) {
    this.p9d_1 = this$0;
    this.q9d_1 = $clazzUid;
    this.r9d_1 = $roleId;
    this.s9d_1 = $filter;
    this.t9d_1 = $currentTime;
    this.u9d_1 = $accountPersonUid;
    this.v9d_1 = $searchText;
    this.w9d_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.g9a_1, tmp$ret$2);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1).i9d = 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.p9d_1.g9a_1, tmp, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda_0(this.q9d_1, this.r9d_1, this.s9d_1, this.t9d_1, this.u9d_1, this.v9d_1, this.w9d_1, _limit, _offset, null), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1).w5p = function (_limit, _offset, $completion) {
    return this.i9d(_limit, _offset, $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1).q5r = 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.p9d_1.g9a_1, tmp, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda_0(this.q9d_1, this.r9d_1, this.s9d_1, this.t9d_1, this.u9d_1, this.v9d_1, this.w9d_1, null), $completion);
  };
  function ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda($clazzUid, $personUid, resultContinuation) {
    this.f9e_1 = $clazzUid;
    this.g9e_1 = $personUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda).i9e = function (_stmt, $completion) {
    var tmp = this.m5f(_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.i9e((!(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.h9e_1.v5h(1, this.f9e_1);
            this.h9e_1.v5h(2, this.g9e_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.h9e_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).m5f = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda(this.f9e_1, this.g9e_1, completion);
    i.h9e_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.i9e(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentInviteUid$slambda($clazzEnrolmentInviteUid, $updateTime, $clazzEnrolmentUid, resultContinuation) {
    this.r9e_1 = $clazzEnrolmentInviteUid;
    this.s9e_1 = $updateTime;
    this.t9e_1 = $clazzEnrolmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentInviteUid$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentInviteUid$slambda).he = function (p1, $completion) {
    return this.j6j((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentInviteUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.u9e_1.v5h(1, this.r9e_1);
            this.u9e_1.v5h(2, this.s9e_1);
            this.u9e_1.v5h(3, this.t9e_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.u9e_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_JdbcImpl$updateClazzEnrolmentInviteUid$slambda).m5f = function (_stmt, completion) {
    var i = new ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentInviteUid$slambda(this.r9e_1, this.s9e_1, this.t9e_1, completion);
    i.u9e_1 = _stmt;
    return i;
  };
  function ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentInviteUid$slambda_0($clazzEnrolmentInviteUid, $updateTime, $clazzEnrolmentUid, resultContinuation) {
    var i = new ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentInviteUid$slambda($clazzEnrolmentInviteUid, $updateTime, $clazzEnrolmentUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$44(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.d9f_1 = _this__u8e3s4;
    this.e9f_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.d9f_1.h9a_1.w5g(this.e9f_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.n9f_1 = _this__u8e3s4;
    this.o9f_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.p9f_1 = {_v: 0};
            this.q9f_1 = 'UPDATE ClazzEnrolment SET clazzEnrolmentPersonUid = ?, clazzEnrolmentClazzUid = ?, clazzEnrolmentDateJoined = ?, clazzEnrolmentDateLeft = ?, clazzEnrolmentRole = ?, clazzEnrolmentAttendancePercentage = ?, clazzEnrolmentActive = ?, clazzEnrolmentLeavingReasonUid = ?, clazzEnrolmentOutcome = ?, clazzEnrolmentLocalChangeSeqNum = ?, clazzEnrolmentMasterChangeSeqNum = ?, clazzEnrolmentLastChangedBy = ?, clazzEnrolmentLct = ?, clazzEnrolmentInviteUid = ? WHERE clazzEnrolmentUid = ?';
            this.hd_1 = 1;
            suspendResult = prepareAndUseStatementAsync_0(this.n9f_1.g9a_1, this.q9f_1, VOID, ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda_0(this.o9f_1, this.p9f_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return this.p9f_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 $updateClazzEnrolmentInviteUidCOROUTINE$47(_this__u8e3s4, clazzEnrolmentInviteUid, clazzEnrolmentUid, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.z9f_1 = _this__u8e3s4;
    this.a9g_1 = clazzEnrolmentInviteUid;
    this.b9g_1 = clazzEnrolmentUid;
    this.c9g_1 = updateTime;
  }
  protoOf($updateClazzEnrolmentInviteUidCOROUTINE$47).ud = function () {
    var 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 ClazzEnrolment \n          SET clazzEnrolmentInviteUid = CAST(? AS BIGINT),\n              clazzEnrolmentLct = CAST(? AS BIGINT)\n        WHERE clazzEnrolmentUid = CAST(? AS BIGINT)\n    ', VOID, VOID, VOID, '\n       UPDATE ClazzEnrolment \n          SET clazzEnrolmentInviteUid = ?,\n              clazzEnrolmentLct = ?\n        WHERE clazzEnrolmentUid = ?\n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.z9f_1.g9a_1, tmp_0, ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentInviteUid$slambda_0(this.a9g_1, this.c9g_1, this.b9g_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 ClazzEnrolmentDao_JdbcImpl(_db) {
    ClazzEnrolmentDao.call(this);
    this.g9a_1 = _db;
    var tmp = this;
    tmp.h9a_1 = new ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1(this);
  }
  protoOf(ClazzEnrolmentDao_JdbcImpl).b94 = 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.b94(entity instanceof ClazzEnrolment ? entity : THROW_CCE(), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl).g93 = 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).e93 = 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.g9a_1, tmp, ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda_0(this, personUid, clazzUid, null));
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl).f93 = 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.g9a_1, tmp, ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda_0(enrolmentUid, null), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl).h93 = 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.g9a_1, tmp, ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda_0(this, accountPersonUid, otherPersonUid, null));
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl).i93 = 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.g9a_1, tmp, ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda_0(clazzUid, accountPersonUid, time, null), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl).j93 = 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).k93 = 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).l93 = 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.g9a_1, tmp, ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda_0(clazzUid, personUid, null), $completion);
  };
  protoOf(ClazzEnrolmentDao_JdbcImpl).m93 = function (clazzEnrolmentInviteUid, clazzEnrolmentUid, updateTime, $completion) {
    var tmp = new $updateClazzEnrolmentInviteUidCOROUTINE$47(this, clazzEnrolmentInviteUid, clazzEnrolmentUid, updateTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  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.l9g_1 = this$0;
    this.m9g_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_Repo$updateAsync$slambda).g8u = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_Repo$updateAsync$slambda).m78 = function ($completion) {
    return this.g8u($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.l9g_1.p9g_1.g93(this.m9g_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).l78 = function (completion) {
    return new ClazzEnrolmentDao_Repo$updateAsync$slambda(this.l9g_1, this.m9g_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.g8u($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.b9h_1 = this$0;
    this.c9h_1 = $clazzUid;
    this.d9h_1 = $roleId;
    this.e9h_1 = $sortOrder;
    this.f9h_1 = $searchText;
    this.g9h_1 = $filter;
    this.h9h_1 = $accountPersonUid;
    this.i9h_1 = $currentTime;
    this.j9h_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_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.h86(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.m9h_1 = this.b9h_1.o9g_1;
            var tmp_1 = this;
            tmp_1.n9h_1 = 'ClazzEnrolmentDao/findByClazzUidAndRole';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.o9h_1 = this.b9h_1.q9g_1;
            var tmp_3 = this;
            tmp_3.p9h_1 = this.o9h_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.b9h_1.o9g_1.j39(), 'ClazzEnrolmentDao/findByClazzUidAndRole');
            doorNodeIdHeader(this_0, this.b9h_1.o9g_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.b9h_1.o9g_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.c9h_1));
            parameter(this_0, 'roleId', this.b9h_1.o9g_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.d9h_1));
            parameter(this_0, 'sortOrder', this.b9h_1.o9g_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.e9h_1));
            parameter(this_0, 'searchText', this.b9h_1.o9g_1.j39().x65_1.r45(get_nullable(serializer_0(StringCompanionObject_instance)), this.f9h_1));
            parameter(this_0, 'filter', this.b9h_1.o9g_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.g9h_1));
            parameter(this_0, 'accountPersonUid', this.b9h_1.o9g_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.h9h_1));
            parameter(this_0, 'currentTime', this.b9h_1.o9g_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.i9h_1));
            parameter(this_0, 'permission', this.b9h_1.o9g_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.j9h_1));
            pagingSourceLoadParameters(this_0, this.b9h_1.o9g_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.k9h_1);
            tmp_4.q9h_1 = this_0;
            this.q9h_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.r9h_1 = this.p9h_1;
            var tmp_6 = this;
            tmp_6.s9h_1 = this.q9h_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.s9h_1, this.r9h_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.t9h_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.b9h_1.n9g_1, this.t9h_1, this.b9h_1.o9g_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.l9h_1 = endOfPaginationReached(this.t9h_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().d5e(e, 'DoorLog', ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda$lambda(this.m9h_1, this.n9h_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.l9h_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).i86 = function (_pagingParams, completion) {
    var i = new ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda(this.b9h_1, this.c9h_1, this.d9h_1, this.e9h_1, this.f9h_1, this.g9h_1, this.h9h_1, this.i9h_1, this.j9h_1, completion);
    i.k9h_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.h86(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda(this$0, $clazzUid, $roleId, $sortOrder, $searchText, $filter, $accountPersonUid, $currentTime, resultContinuation) {
    this.c9i_1 = this$0;
    this.d9i_1 = $clazzUid;
    this.e9i_1 = $roleId;
    this.f9i_1 = $sortOrder;
    this.g9i_1 = $searchText;
    this.h9i_1 = $filter;
    this.i9i_1 = $accountPersonUid;
    this.j9i_1 = $currentTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_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.h86(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.m9i_1 = this.c9i_1.o9g_1;
            var tmp_1 = this;
            tmp_1.n9i_1 = 'ClazzEnrolmentDao/findByClazzUidAndRoleForGradebook';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.o9i_1 = this.c9i_1.q9g_1;
            var tmp_3 = this;
            tmp_3.p9i_1 = this.o9i_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.c9i_1.o9g_1.j39(), 'ClazzEnrolmentDao/findByClazzUidAndRoleForGradebook');
            doorNodeIdHeader(this_0, this.c9i_1.o9g_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.c9i_1.o9g_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.d9i_1));
            parameter(this_0, 'roleId', this.c9i_1.o9g_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.e9i_1));
            parameter(this_0, 'sortOrder', this.c9i_1.o9g_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.f9i_1));
            parameter(this_0, 'searchText', this.c9i_1.o9g_1.j39().x65_1.r45(get_nullable(serializer_0(StringCompanionObject_instance)), this.g9i_1));
            parameter(this_0, 'filter', this.c9i_1.o9g_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.h9i_1));
            parameter(this_0, 'accountPersonUid', this.c9i_1.o9g_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.i9i_1));
            parameter(this_0, 'currentTime', this.c9i_1.o9g_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.j9i_1));
            pagingSourceLoadParameters(this_0, this.c9i_1.o9g_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.k9i_1);
            tmp_4.q9i_1 = this_0;
            this.q9i_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.r9i_1 = this.p9i_1;
            var tmp_6 = this;
            tmp_6.s9i_1 = this.q9i_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.s9i_1, this.r9i_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.t9i_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.c9i_1.n9g_1, this.t9i_1, this.c9i_1.o9g_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.l9i_1 = endOfPaginationReached(this.t9i_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().d5e(e, 'DoorLog', ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda$lambda(this.m9i_1, this.n9i_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.l9i_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).i86 = function (_pagingParams, completion) {
    var i = new ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda(this.c9i_1, this.d9i_1, this.e9i_1, this.f9i_1, this.g9i_1, this.h9i_1, this.i9i_1, this.j9i_1, completion);
    i.k9i_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.h86(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzEnrolmentDao_Repo$updateClazzEnrolmentInviteUid$slambda(this$0, $clazzEnrolmentInviteUid, $clazzEnrolmentUid, $updateTime, resultContinuation) {
    this.c9j_1 = this$0;
    this.d9j_1 = $clazzEnrolmentInviteUid;
    this.e9j_1 = $clazzEnrolmentUid;
    this.f9j_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_Repo$updateClazzEnrolmentInviteUid$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_Repo$updateClazzEnrolmentInviteUid$slambda).m78 = function ($completion) {
    return this.j87($completion);
  };
  protoOf(ClazzEnrolmentDao_Repo$updateClazzEnrolmentInviteUid$slambda).ud = function () {
    var 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.c9j_1.p9g_1.m93(this.d9j_1, this.e9j_1, this.f9j_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(ClazzEnrolmentDao_Repo$updateClazzEnrolmentInviteUid$slambda).l78 = function (completion) {
    return new ClazzEnrolmentDao_Repo$updateClazzEnrolmentInviteUid$slambda(this.c9j_1, this.d9j_1, this.e9j_1, this.f9j_1, completion);
  };
  function ClazzEnrolmentDao_Repo$updateClazzEnrolmentInviteUid$slambda_0(this$0, $clazzEnrolmentInviteUid, $clazzEnrolmentUid, $updateTime, resultContinuation) {
    var i = new ClazzEnrolmentDao_Repo$updateClazzEnrolmentInviteUid$slambda(this$0, $clazzEnrolmentInviteUid, $clazzEnrolmentUid, $updateTime, resultContinuation);
    var l = function ($completion) {
      return i.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzEnrolmentDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.o9j_1 = this$0;
    this.p9j_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzEnrolmentDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.o9j_1.p9g_1.insertAsync(this.p9j_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).l78 = function (completion) {
    return new ClazzEnrolmentDao_Repo$insertAsync$slambda(this.o9j_1, this.p9j_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findEnrolmentWithLeavingReasonCOROUTINE$48(_this__u8e3s4, enrolmentUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.y9j_1 = _this__u8e3s4;
    this.z9j_1 = enrolmentUid;
  }
  protoOf($findEnrolmentWithLeavingReasonCOROUTINE$48).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.a9k_1 = this.y9j_1.o9g_1;
            var tmp_1 = this;
            tmp_1.b9k_1 = 'ClazzEnrolmentDao/findEnrolmentWithLeavingReason';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.c9k_1 = this.y9j_1.q9g_1;
            var tmp_3 = this;
            tmp_3.d9k_1 = this.c9k_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.y9j_1.o9g_1.j39(), 'ClazzEnrolmentDao/findEnrolmentWithLeavingReason');
            doorNodeIdHeader(this_0, this.y9j_1.o9g_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'enrolmentUid', this.y9j_1.o9g_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.z9j_1));
            tmp_4.e9k_1 = this_0;
            this.e9k_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.f9k_1 = this.d9k_1;
            var tmp_6 = this;
            tmp_6.g9k_1 = this.e9k_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.g9k_1, this.f9k_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.h9k_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.y9j_1.n9g_1, this.h9k_1, this.y9j_1.o9g_1.j39().x65_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.i9k_1 = this.kd_1;
              Napier_getInstance().d5e(this.i9k_1, 'DoorLog', ClazzEnrolmentDao_Repo$findEnrolmentWithLeavingReason$lambda(this.a9k_1, this.b9k_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.y9j_1.p9g_1.f93(this.z9j_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$49(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.r9k_1 = _this__u8e3s4;
    this.s9k_1 = entity;
  }
  protoOf($updateAsyncCOROUTINE$49).ud = function () {
    var 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.r9k_1.o9g_1, 'ClazzEnrolment', ClazzEnrolmentDao_Repo$updateAsync$slambda_0(this.r9k_1, this.s9k_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$52(_this__u8e3s4, clazzUid, accountPersonUid, time, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.b9l_1 = _this__u8e3s4;
    this.c9l_1 = clazzUid;
    this.d9l_1 = accountPersonUid;
    this.e9l_1 = time;
  }
  protoOf($getAllEnrolmentsAtTimeByClazzAndPersonCOROUTINE$52).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.f9l_1 = this.b9l_1.o9g_1;
            var tmp_1 = this;
            tmp_1.g9l_1 = 'ClazzEnrolmentDao/getAllEnrolmentsAtTimeByClazzAndPerson';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.h9l_1 = this.b9l_1.q9g_1;
            var tmp_3 = this;
            tmp_3.i9l_1 = this.h9l_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.b9l_1.o9g_1.j39(), 'ClazzEnrolmentDao/getAllEnrolmentsAtTimeByClazzAndPerson');
            doorNodeIdHeader(this_0, this.b9l_1.o9g_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.b9l_1.o9g_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.c9l_1));
            parameter(this_0, 'accountPersonUid', this.b9l_1.o9g_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.d9l_1));
            parameter(this_0, 'time', this.b9l_1.o9g_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.e9l_1));
            tmp_4.j9l_1 = this_0;
            this.j9l_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.k9l_1 = this.i9l_1;
            var tmp_6 = this;
            tmp_6.l9l_1 = this.j9l_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.l9l_1, this.k9l_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.m9l_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.b9l_1.n9g_1, this.m9l_1, this.b9l_1.o9g_1.j39().x65_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.n9l_1 = this.kd_1;
              Napier_getInstance().d5e(this.n9l_1, 'DoorLog', ClazzEnrolmentDao_Repo$getAllEnrolmentsAtTimeByClazzAndPerson$lambda(this.f9l_1, this.g9l_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.b9l_1.p9g_1.i93(this.c9l_1, this.d9l_1, this.e9l_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$61(_this__u8e3s4, personUid, clazzUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.w9l_1 = _this__u8e3s4;
    this.x9l_1 = personUid;
    this.y9l_1 = clazzUid;
  }
  protoOf($getClazzNameAndPersonNameCOROUTINE$61).ud = function () {
    var 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.w9l_1.p9g_1.l93(this.x9l_1, this.y9l_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$64(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.h9m_1 = _this__u8e3s4;
    this.i9m_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$64).ud = function () {
    var 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.h9m_1.o9g_1, 'ClazzEnrolment', ClazzEnrolmentDao_Repo$insertAsync$slambda_0(this.h9m_1, this.i9m_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.n9g_1 = _db;
    this.o9g_1 = _repo;
    this.p9g_1 = _dao;
    this.q9g_1 = _httpClient;
    this.r9g_1 = _clientId;
    this.s9g_1 = _endpoint;
  }
  protoOf(ClazzEnrolmentDao_Repo).e93 = function (personUid, clazzUid) {
    var _result = this.p9g_1.e93(personUid, clazzUid);
    return _result;
  };
  protoOf(ClazzEnrolmentDao_Repo).f93 = function (enrolmentUid, $completion) {
    var tmp = new $findEnrolmentWithLeavingReasonCOROUTINE$48(this, enrolmentUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_Repo).g93 = function (entity, $completion) {
    var tmp = new $updateAsyncCOROUTINE$49(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_Repo).h93 = function (accountPersonUid, otherPersonUid) {
    var _result = this.p9g_1.h93(accountPersonUid, otherPersonUid);
    return _result;
  };
  protoOf(ClazzEnrolmentDao_Repo).i93 = function (clazzUid, accountPersonUid, time, $completion) {
    var tmp = new $getAllEnrolmentsAtTimeByClazzAndPersonCOROUTINE$52(this, clazzUid, accountPersonUid, time, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_Repo).j93 = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission) {
    var tmp = this.p9g_1.j93(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission);
    return new DoorRepositoryReplicatePullPagingSource(this.o9g_1, 'ClazzEnrolmentDao/findByClazzUidAndRole', tmp, ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda_0(this, clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission, null));
  };
  protoOf(ClazzEnrolmentDao_Repo).k93 = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime) {
    var tmp = this.p9g_1.k93(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime);
    return new DoorRepositoryReplicatePullPagingSource(this.o9g_1, 'ClazzEnrolmentDao/findByClazzUidAndRoleForGradebook', tmp, ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda_0(this, clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, null));
  };
  protoOf(ClazzEnrolmentDao_Repo).l93 = function (personUid, clazzUid, $completion) {
    var tmp = new $getClazzNameAndPersonNameCOROUTINE$61(this, personUid, clazzUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_Repo).m93 = function (clazzEnrolmentInviteUid, clazzEnrolmentUid, updateTime, $completion) {
    return withRepoChangeMonitorAsync(this.o9g_1, 'ClazzEnrolment', ClazzEnrolmentDao_Repo$updateClazzEnrolmentInviteUid$slambda_0(this, clazzEnrolmentInviteUid, clazzEnrolmentUid, updateTime, null), $completion);
  };
  protoOf(ClazzEnrolmentDao_Repo).b94 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$64(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzEnrolmentDao_Repo).insertAsync = function (entity, $completion) {
    return this.b94(entity instanceof ClazzEnrolment ? entity : THROW_CCE(), $completion);
  };
  function ClazzInviteDao() {
  }
  function $insertAsyncCOROUTINE$67(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.w9m_1 = _this__u8e3s4;
    this.x9m_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$67).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.y9m_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.w9m_1.a9n_1));
            if (this.x9m_1.c9n_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.y9m_1.o62(521, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.z9m_1 = suspendResult;
            this.x9m_1.c9n_1 = this.z9m_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.x9m_1.l9n_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.w9m_1.b9n_1.insertAsync(this.x9m_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.x9m_1.c9n_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 ClazzInviteDao_DoorWrapper(_db, _dao) {
    ClazzInviteDao.call(this);
    this.a9n_1 = _db;
    this.b9n_1 = _dao;
  }
  protoOf(ClazzInviteDao_DoorWrapper).j9m = function (inviteTokenUid, $completion) {
    return this.b9n_1.j9m(inviteTokenUid, $completion);
  };
  protoOf(ClazzInviteDao_DoorWrapper).k9m = function (inviteTokenUid) {
    return this.b9n_1.k9m(inviteTokenUid);
  };
  protoOf(ClazzInviteDao_DoorWrapper).l9m = function (status, ciUid, updateTime, $completion) {
    return this.b9n_1.l9m(status, ciUid, updateTime, $completion);
  };
  protoOf(ClazzInviteDao_DoorWrapper).m9m = function (ciPersonUid, clazzUid, currentTime) {
    return this.b9n_1.m9m(ciPersonUid, clazzUid, currentTime);
  };
  protoOf(ClazzInviteDao_DoorWrapper).n9m = function (inviteContact, $completion) {
    return this.b9n_1.n9m(inviteContact, $completion);
  };
  protoOf(ClazzInviteDao_DoorWrapper).m9n = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$67(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzInviteDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.m9n(entity instanceof ClazzInvite ? entity : THROW_CCE(), $completion);
  };
  function ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteToken$slambda$lambda(_result) {
    return mapNextRow(_result, null, ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteToken$slambda$lambda$lambda(_result));
  }
  function ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteToken$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_timeZone = $_result.rz('timeZone');
      var _tmp_ClazzInvite_nullCount = 0;
      var _tmp_ciUid = $_result.y5m('ciUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_ciPersonUid = $_result.y5m('ciPersonUid');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_ciRoleId = $_result.y5m('ciRoleId');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_ciClazzUid = $_result.y5m('ciClazzUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_inviteType = $_result.x5m('inviteType');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_inviteContact = getStringNonNull($_result, 'inviteContact');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_inviteToken = getStringNonNull($_result, 'inviteToken');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_inviteStatus = $_result.x5m('inviteStatus');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_inviteExpire = $_result.y5m('inviteExpire');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_inviteLct = $_result.y5m('inviteLct');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_ClazzInvite_isAllNull = _tmp_ClazzInvite_nullCount === 10;
      // Inline function 'kotlin.apply' call
      var this_0 = new ClazzInviteWithTimeZone();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzInviteDao_JdbcImpl.findClazzInviteEntityForInviteToken.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.o9n_1 = _tmp_timeZone;
      if (!_tmp_ClazzInvite_isAllNull) {
        var tmp_9 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new ClazzInvite();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzInviteDao_JdbcImpl.findClazzInviteEntityForInviteToken.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.c9n_1 = _tmp_ciUid;
        this_1.d9n_1 = _tmp_ciPersonUid;
        this_1.e9n_1 = _tmp_ciRoleId;
        this_1.f9n_1 = _tmp_ciClazzUid;
        this_1.g9n_1 = _tmp_inviteType;
        this_1.h9n_1 = _tmp_inviteContact;
        this_1.i9n_1 = _tmp_inviteToken;
        this_1.j9n_1 = _tmp_inviteStatus;
        this_1.k9n_1 = _tmp_inviteExpire;
        this_1.l9n_1 = _tmp_inviteLct;
        tmp_9.n9n_1 = this_1;
      }
      return this_0;
    };
  }
  function ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda$slambda$lambda$lambda(_result));
  }
  function ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_ClazzInvite_nullCount = 0;
      var _tmp_ciUid = $_result.y5m('ciUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_ciPersonUid = $_result.y5m('ciPersonUid');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_ciRoleId = $_result.y5m('ciRoleId');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_ciClazzUid = $_result.y5m('ciClazzUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_inviteType = $_result.x5m('inviteType');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_inviteContact = getStringNonNull($_result, 'inviteContact');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_inviteToken = getStringNonNull($_result, 'inviteToken');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_inviteStatus = $_result.x5m('inviteStatus');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_inviteExpire = $_result.y5m('inviteExpire');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_inviteLct = $_result.y5m('inviteLct');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_ClazzInvite_nullCount = _tmp_ClazzInvite_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_ClazzInvite_isAllNull = _tmp_ClazzInvite_nullCount === 10;
      var _tmp_Clazz_nullCount = 0;
      var _tmp_clazzUid = $_result.y5m('clazzUid');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_clazzName = $_result.rz('clazzName');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_clazzDesc = $_result.rz('clazzDesc');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_attendanceAverage = $_result.l66('attendanceAverage');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_clazzHolidayUMCalendarUid = $_result.y5m('clazzHolidayUMCalendarUid');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_clazzScheuleUMCalendarUid = $_result.y5m('clazzScheuleUMCalendarUid');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_isClazzActive = $_result.j66('isClazzActive');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_clazzLocationUid = $_result.y5m('clazzLocationUid');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_clazzStartTime = $_result.y5m('clazzStartTime');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_clazzEndTime = $_result.y5m('clazzEndTime');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_clazzFeatures = $_result.y5m('clazzFeatures');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_clazzSchoolUid = $_result.y5m('clazzSchoolUid');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_clazzEnrolmentPolicy = $_result.x5m('clazzEnrolmentPolicy');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_clazzTerminologyUid = $_result.y5m('clazzTerminologyUid');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_clazzMasterChangeSeqNum = $_result.y5m('clazzMasterChangeSeqNum');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_clazzLocalChangeSeqNum = $_result.y5m('clazzLocalChangeSeqNum');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_clazzLastChangedBy = $_result.x5m('clazzLastChangedBy');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_clazzLct = $_result.y5m('clazzLct');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_clazzTimeZone = $_result.rz('clazzTimeZone');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_clazzStudentsPersonGroupUid = $_result.y5m('clazzStudentsPersonGroupUid');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_clazzTeachersPersonGroupUid = $_result.y5m('clazzTeachersPersonGroupUid');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_clazzPendingStudentsPersonGroupUid = $_result.y5m('clazzPendingStudentsPersonGroupUid');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_clazzParentsPersonGroupUid = $_result.y5m('clazzParentsPersonGroupUid');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_clazzCode = $_result.rz('clazzCode');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_clazzOwnerPersonUid = $_result.y5m('clazzOwnerPersonUid');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_Clazz_isAllNull = _tmp_Clazz_nullCount === 25;
      // Inline function 'kotlin.apply' call
      var this_0 = new ClazzInviteAndClazz();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.ClazzInviteDao_JdbcImpl.findClazzInviteEntityForInviteTokenAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_ClazzInvite_isAllNull) {
        var tmp_34 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new ClazzInvite();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.ClazzInviteDao_JdbcImpl.findClazzInviteEntityForInviteTokenAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.c9n_1 = _tmp_ciUid;
        this_1.d9n_1 = _tmp_ciPersonUid;
        this_1.e9n_1 = _tmp_ciRoleId;
        this_1.f9n_1 = _tmp_ciClazzUid;
        this_1.g9n_1 = _tmp_inviteType;
        this_1.h9n_1 = _tmp_inviteContact;
        this_1.i9n_1 = _tmp_inviteToken;
        this_1.j9n_1 = _tmp_inviteStatus;
        this_1.k9n_1 = _tmp_inviteExpire;
        this_1.l9n_1 = _tmp_inviteLct;
        tmp_34.p9n_1 = this_1;
      }
      if (!_tmp_Clazz_isAllNull) {
        var tmp_35 = 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.ClazzInviteDao_JdbcImpl.findClazzInviteEntityForInviteTokenAsFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.r8d_1 = _tmp_clazzUid;
        this_2.s8d_1 = _tmp_clazzName;
        this_2.t8d_1 = _tmp_clazzDesc;
        this_2.u8d_1 = _tmp_attendanceAverage;
        this_2.v8d_1 = _tmp_clazzHolidayUMCalendarUid;
        this_2.w8d_1 = _tmp_clazzScheuleUMCalendarUid;
        this_2.x8d_1 = _tmp_isClazzActive;
        this_2.y8d_1 = _tmp_clazzLocationUid;
        this_2.z8d_1 = _tmp_clazzStartTime;
        this_2.a8e_1 = _tmp_clazzEndTime;
        this_2.b8e_1 = _tmp_clazzFeatures;
        this_2.c8e_1 = _tmp_clazzSchoolUid;
        this_2.d8e_1 = _tmp_clazzEnrolmentPolicy;
        this_2.e8e_1 = _tmp_clazzTerminologyUid;
        this_2.f8e_1 = _tmp_clazzMasterChangeSeqNum;
        this_2.g8e_1 = _tmp_clazzLocalChangeSeqNum;
        this_2.h8e_1 = _tmp_clazzLastChangedBy;
        this_2.i8e_1 = _tmp_clazzLct;
        this_2.j8e_1 = _tmp_clazzTimeZone;
        this_2.k8e_1 = _tmp_clazzStudentsPersonGroupUid;
        this_2.l8e_1 = _tmp_clazzTeachersPersonGroupUid;
        this_2.m8e_1 = _tmp_clazzPendingStudentsPersonGroupUid;
        this_2.n8e_1 = _tmp_clazzParentsPersonGroupUid;
        this_2.o8e_1 = _tmp_clazzCode;
        this_2.p8e_1 = _tmp_clazzOwnerPersonUid;
        tmp_35.q9n_1 = this_2;
      }
      return this_0;
    };
  }
  function ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda$slambda($inviteTokenUid, resultContinuation) {
    this.z9n_1 = $inviteTokenUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda$slambda).b9o = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda$slambda).he = function (p1, $completion) {
    return this.b9o((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$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.a9o_1.y5h(1, this.z9n_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.a9o_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$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(ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda$slambda).m5f = function (_stmt, completion) {
    var i = new ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda$slambda(this.z9n_1, completion);
    i.a9o_1 = _stmt;
    return i;
  };
  function ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda$slambda_0($inviteTokenUid, resultContinuation) {
    var i = new ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda$slambda($inviteTokenUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.b9o(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$loadRows$slambda$lambda$lambda(_result));
  }
  function ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_ciUid = $_result.y5m('ciUid');
      var _tmp_ciPersonUid = $_result.y5m('ciPersonUid');
      var _tmp_ciRoleId = $_result.y5m('ciRoleId');
      var _tmp_ciClazzUid = $_result.y5m('ciClazzUid');
      var _tmp_inviteType = $_result.x5m('inviteType');
      var _tmp_inviteContact = getStringNonNull($_result, 'inviteContact');
      var _tmp_inviteToken = getStringNonNull($_result, 'inviteToken');
      var _tmp_inviteStatus = $_result.x5m('inviteStatus');
      var _tmp_inviteExpire = $_result.y5m('inviteExpire');
      var _tmp_inviteLct = $_result.y5m('inviteLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new ClazzInvite();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.c9n_1 = _tmp_ciUid;
      this_0.d9n_1 = _tmp_ciPersonUid;
      this_0.e9n_1 = _tmp_ciRoleId;
      this_0.f9n_1 = _tmp_ciClazzUid;
      this_0.g9n_1 = _tmp_inviteType;
      this_0.h9n_1 = _tmp_inviteContact;
      this_0.i9n_1 = _tmp_inviteToken;
      this_0.j9n_1 = _tmp_inviteStatus;
      this_0.k9n_1 = _tmp_inviteExpire;
      this_0.l9n_1 = _tmp_inviteLct;
      return this_0;
    };
  }
  function ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$countRows$slambda$lambda$lambda(_result));
  }
  function ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.m5s(1);
    };
  }
  function ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$loadRows$slambda($ciPersonUid, $clazzUid, $currentTime, $_limit, $_offset, resultContinuation) {
    this.k9o_1 = $ciPersonUid;
    this.l9o_1 = $clazzUid;
    this.m9o_1 = $currentTime;
    this.n9o_1 = $_limit;
    this.o9o_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$loadRows$slambda).q9o = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$loadRows$slambda).he = function (p1, $completion) {
    return this.q9o((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$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.p9o_1.v5h(1, this.k9o_1);
            this.p9o_1.v5h(2, this.l9o_1);
            this.p9o_1.v5h(3, this.m9o_1);
            this.p9o_1.u5h(4, this.n9o_1);
            this.p9o_1.u5h(5, this.o9o_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.p9o_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$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(ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$loadRows$slambda).m5f = function (_stmt, completion) {
    var i = new ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$loadRows$slambda(this.k9o_1, this.l9o_1, this.m9o_1, this.n9o_1, this.o9o_1, completion);
    i.p9o_1 = _stmt;
    return i;
  };
  function ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$loadRows$slambda_0($ciPersonUid, $clazzUid, $currentTime, $_limit, $_offset, resultContinuation) {
    var i = new ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$loadRows$slambda($ciPersonUid, $clazzUid, $currentTime, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.q9o(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$countRows$slambda($ciPersonUid, $clazzUid, $currentTime, resultContinuation) {
    this.z9o_1 = $ciPersonUid;
    this.a9p_1 = $clazzUid;
    this.b9p_1 = $currentTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$countRows$slambda).he = function (p1, $completion) {
    return this.j6j((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$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.c9p_1.v5h(1, this.z9o_1);
            this.c9p_1.v5h(2, this.a9p_1);
            this.c9p_1.v5h(3, this.b9p_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.c9p_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$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(ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$countRows$slambda).m5f = function (_stmt, completion) {
    var i = new ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$countRows$slambda(this.z9o_1, this.a9p_1, this.b9p_1, completion);
    i.c9p_1 = _stmt;
    return i;
  };
  function ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$countRows$slambda_0($ciPersonUid, $clazzUid, $currentTime, resultContinuation) {
    var i = new ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$countRows$slambda($ciPersonUid, $clazzUid, $currentTime, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzInviteDao_JdbcImpl$_insertAdapterClazzInvite_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.d9p_1);
  }
  protoOf(ClazzInviteDao_JdbcImpl$_insertAdapterClazzInvite_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO ClazzInvite (ciUid, ciPersonUid, ciRoleId, ciClazzUid, inviteType, inviteContact, inviteToken, inviteStatus, inviteExpire, inviteLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ClazzInviteDao_JdbcImpl$_insertAdapterClazzInvite_upsert$1).j9p = function (stmt, entity) {
    if (entity.c9n_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.c9n_1);
    }
    stmt.v5h(2, entity.d9n_1);
    stmt.v5h(3, entity.e9n_1);
    stmt.v5h(4, entity.f9n_1);
    stmt.u5h(5, entity.g9n_1);
    stmt.y5h(6, entity.h9n_1);
    stmt.y5h(7, entity.i9n_1);
    stmt.u5h(8, entity.j9n_1);
    stmt.v5h(9, entity.k9n_1);
    stmt.v5h(10, entity.l9n_1);
  };
  protoOf(ClazzInviteDao_JdbcImpl$_insertAdapterClazzInvite_upsert$1).p5f = function (stmt, entity) {
    return this.j9p(stmt, entity instanceof ClazzInvite ? entity : THROW_CCE());
  };
  function ClazzInviteDao_JdbcImpl$_insertAdapterClazzInvite_ignore$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.d9p_1);
  }
  protoOf(ClazzInviteDao_JdbcImpl$_insertAdapterClazzInvite_ignore$1).u5g = function (returnsId) {
    return 'INSERT  OR IGNORE INTO ClazzInvite (ciUid, ciPersonUid, ciRoleId, ciClazzUid, inviteType, inviteContact, inviteToken, inviteStatus, inviteExpire, inviteLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ClazzInviteDao_JdbcImpl$_insertAdapterClazzInvite_ignore$1).j9p = function (stmt, entity) {
    if (entity.c9n_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.c9n_1);
    }
    stmt.v5h(2, entity.d9n_1);
    stmt.v5h(3, entity.e9n_1);
    stmt.v5h(4, entity.f9n_1);
    stmt.u5h(5, entity.g9n_1);
    stmt.y5h(6, entity.h9n_1);
    stmt.y5h(7, entity.i9n_1);
    stmt.u5h(8, entity.j9n_1);
    stmt.v5h(9, entity.k9n_1);
    stmt.v5h(10, entity.l9n_1);
  };
  protoOf(ClazzInviteDao_JdbcImpl$_insertAdapterClazzInvite_ignore$1).p5f = function (stmt, entity) {
    return this.j9p(stmt, entity instanceof ClazzInvite ? entity : THROW_CCE());
  };
  function ClazzInviteDao_JdbcImpl$_insertAdapterClazzInvite_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.d9p_1);
  }
  protoOf(ClazzInviteDao_JdbcImpl$_insertAdapterClazzInvite_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO ClazzInvite (ciUid, ciPersonUid, ciRoleId, ciClazzUid, inviteType, inviteContact, inviteToken, inviteStatus, inviteExpire, inviteLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ClazzInviteDao_JdbcImpl$_insertAdapterClazzInvite_abort$1).j9p = function (stmt, entity) {
    if (entity.c9n_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.c9n_1);
    }
    stmt.v5h(2, entity.d9n_1);
    stmt.v5h(3, entity.e9n_1);
    stmt.v5h(4, entity.f9n_1);
    stmt.u5h(5, entity.g9n_1);
    stmt.y5h(6, entity.h9n_1);
    stmt.y5h(7, entity.i9n_1);
    stmt.u5h(8, entity.j9n_1);
    stmt.v5h(9, entity.k9n_1);
    stmt.v5h(10, entity.l9n_1);
  };
  protoOf(ClazzInviteDao_JdbcImpl$_insertAdapterClazzInvite_abort$1).p5f = function (stmt, entity) {
    return this.j9p(stmt, entity instanceof ClazzInvite ? entity : THROW_CCE());
  };
  function ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteToken$slambda($inviteTokenUid, resultContinuation) {
    this.w9p_1 = $inviteTokenUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteToken$slambda).y9p = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteToken$slambda).he = function (p1, $completion) {
    return this.y9p((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteToken$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.x9p_1.y5h(1, this.w9p_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.x9p_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteToken$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(ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteToken$slambda).m5f = function (_stmt, completion) {
    var i = new ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteToken$slambda(this.w9p_1, completion);
    i.x9p_1 = _stmt;
    return i;
  };
  function ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteToken$slambda_0($inviteTokenUid, resultContinuation) {
    var i = new ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteToken$slambda($inviteTokenUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.y9p(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda(this$0, $inviteTokenUid, resultContinuation) {
    this.h9q_1 = this$0;
    this.i9q_1 = $inviteTokenUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda).j9q = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda).m78 = function ($completion) {
    return this.j9q($completion);
  };
  protoOf(ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda).ud = function () {
    var 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 ClazzInvite.*, Clazz.*\n      FROM ClazzInvite\n           JOIN Clazz \n                ON Clazz.clazzUid = ClazzInvite.ciClazzUid\n     WHERE ClazzInvite.inviteToken = ?\n    ', VOID, VOID, VOID, VOID, true);
            suspendResult = prepareAndUseStatementAsync(this.h9q_1.d9p_1, tmp_0, ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda$slambda_0(this.i9q_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(ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda).l78 = function (completion) {
    return new ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda(this.h9q_1, this.i9q_1, completion);
  };
  function ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda_0(this$0, $inviteTokenUid, resultContinuation) {
    var i = new ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda(this$0, $inviteTokenUid, resultContinuation);
    var l = function ($completion) {
      return i.j9q($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzInviteDao_JdbcImpl$updateInviteStatus$slambda($status, $updateTime, $ciUid, resultContinuation) {
    this.s9q_1 = $status;
    this.t9q_1 = $updateTime;
    this.u9q_1 = $ciUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzInviteDao_JdbcImpl$updateInviteStatus$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzInviteDao_JdbcImpl$updateInviteStatus$slambda).he = function (p1, $completion) {
    return this.j6j((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzInviteDao_JdbcImpl$updateInviteStatus$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.v9q_1.u5h(1, this.s9q_1);
            this.v9q_1.v5h(2, this.t9q_1);
            this.v9q_1.v5h(3, this.u9q_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.v9q_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(ClazzInviteDao_JdbcImpl$updateInviteStatus$slambda).m5f = function (_stmt, completion) {
    var i = new ClazzInviteDao_JdbcImpl$updateInviteStatus$slambda(this.s9q_1, this.t9q_1, this.u9q_1, completion);
    i.v9q_1 = _stmt;
    return i;
  };
  function ClazzInviteDao_JdbcImpl$updateInviteStatus$slambda_0($status, $updateTime, $ciUid, resultContinuation) {
    var i = new ClazzInviteDao_JdbcImpl$updateInviteStatus$slambda($status, $updateTime, $ciUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$1(this$0, $ciPersonUid, $clazzUid, $currentTime) {
    this.c9r_1 = this$0;
    this.d9r_1 = $ciPersonUid;
    this.e9r_1 = $clazzUid;
    this.f9r_1 = $currentTime;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['ClazzInvite'];
    DoorLimitOffsetPagingSource.call(this, this$0.d9p_1, tmp$ret$2);
  }
  protoOf(ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$1).g9r = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM (SELECT * FROM ClazzInvite \n                 WHERE ciPersonUid = CAST(? AS BIGINT) AND ciClazzUid = CAST(? AS BIGINT) \n              AND inviteExpire > CAST(? AS BIGINT) AND inviteStatus = 0) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (SELECT * FROM ClazzInvite \n                 WHERE ciPersonUid = ? AND ciClazzUid = ? \n              AND inviteExpire > ? AND inviteStatus = 0) AS _PagingData LIMIT ? OFFSET ?\n', true);
    return prepareAndUseStatementAsync(this.c9r_1.d9p_1, tmp, ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$loadRows$slambda_0(this.d9r_1, this.e9r_1, this.f9r_1, _limit, _offset, null), $completion);
  };
  protoOf(ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$1).w5p = function (_limit, _offset, $completion) {
    return this.g9r(_limit, _offset, $completion);
  };
  protoOf(ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$1).q5r = function ($completion) {
    var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (SELECT * FROM ClazzInvite \n                 WHERE ciPersonUid = CAST(? AS BIGINT) AND ciClazzUid = CAST(? AS BIGINT) \n              AND inviteExpire > CAST(? AS BIGINT) AND inviteStatus = 0) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (SELECT * FROM ClazzInvite \n                 WHERE ciPersonUid = ? AND ciClazzUid = ? \n              AND inviteExpire > ? AND inviteStatus = 0) AS _PagingCount\n', true);
    return prepareAndUseStatementAsync(this.c9r_1.d9p_1, tmp, ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$o$countRows$slambda_0(this.d9r_1, this.e9r_1, this.f9r_1, null), $completion);
  };
  function ClazzInviteDao_JdbcImpl$updateClazzInviteToRevokeInvite$slambda($inviteContact, resultContinuation) {
    this.p9r_1 = $inviteContact;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzInviteDao_JdbcImpl$updateClazzInviteToRevokeInvite$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzInviteDao_JdbcImpl$updateClazzInviteToRevokeInvite$slambda).he = function (p1, $completion) {
    return this.j6j((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzInviteDao_JdbcImpl$updateClazzInviteToRevokeInvite$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.q9r_1.y5h(1, this.p9r_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.q9r_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(ClazzInviteDao_JdbcImpl$updateClazzInviteToRevokeInvite$slambda).m5f = function (_stmt, completion) {
    var i = new ClazzInviteDao_JdbcImpl$updateClazzInviteToRevokeInvite$slambda(this.p9r_1, completion);
    i.q9r_1 = _stmt;
    return i;
  };
  function ClazzInviteDao_JdbcImpl$updateClazzInviteToRevokeInvite$slambda_0($inviteContact, resultContinuation) {
    var i = new ClazzInviteDao_JdbcImpl$updateClazzInviteToRevokeInvite$slambda($inviteContact, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$69(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.z9r_1 = _this__u8e3s4;
    this.a9s_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 = this.z9r_1.g9p_1.w5g(this.a9s_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 $updateInviteStatusCOROUTINE$70(_this__u8e3s4, status, ciUid, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.j9s_1 = _this__u8e3s4;
    this.k9s_1 = status;
    this.l9s_1 = ciUid;
    this.m9s_1 = updateTime;
  }
  protoOf($updateInviteStatusCOROUTINE$70).ud = function () {
    var 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 ClazzInvite \n           SET inviteStatus = ?,\n               inviteLct = CAST(? AS BIGINT)\n         WHERE ClazzInvite.ciUid =CAST(? AS BIGINT)\n    ', VOID, VOID, VOID, '\n        UPDATE ClazzInvite \n           SET inviteStatus = ?,\n               inviteLct = ?\n         WHERE ClazzInvite.ciUid =?\n    \n', false);
            suspendResult = prepareAndUseStatementAsync(this.j9s_1.d9p_1, tmp_0, ClazzInviteDao_JdbcImpl$updateInviteStatus$slambda_0(this.k9s_1, this.m9s_1, this.l9s_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 ClazzInviteDao_JdbcImpl(_db) {
    ClazzInviteDao.call(this);
    this.d9p_1 = _db;
    var tmp = this;
    tmp.e9p_1 = new ClazzInviteDao_JdbcImpl$_insertAdapterClazzInvite_upsert$1(this);
    var tmp_0 = this;
    tmp_0.f9p_1 = new ClazzInviteDao_JdbcImpl$_insertAdapterClazzInvite_ignore$1(this);
    var tmp_1 = this;
    tmp_1.g9p_1 = new ClazzInviteDao_JdbcImpl$_insertAdapterClazzInvite_abort$1(this);
  }
  protoOf(ClazzInviteDao_JdbcImpl).m9n = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$69(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzInviteDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.m9n(entity instanceof ClazzInvite ? entity : THROW_CCE(), $completion);
  };
  protoOf(ClazzInviteDao_JdbcImpl).j9m = function (inviteTokenUid, $completion) {
    var tmp = new PreparedStatementConfig("\n    SELECT ClazzInvite.*, \n           COALESCE(Clazz.clazzTimeZone, 'UTC') AS timeZone\n      FROM ClazzInvite\n           LEFT JOIN Clazz \n                     ON Clazz.clazzUid = ClazzInvite.ciClazzUid\n     WHERE ClazzInvite.inviteToken = ?\n", VOID, VOID, VOID, VOID, true);
    return prepareAndUseStatementAsync(this.d9p_1, tmp, ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteToken$slambda_0(inviteTokenUid, null), $completion);
  };
  protoOf(ClazzInviteDao_JdbcImpl).k9m = function (inviteTokenUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['ClazzInvite', 'Clazz'];
    return doorFlow(this.d9p_1, tmp, ClazzInviteDao_JdbcImpl$findClazzInviteEntityForInviteTokenAsFlow$slambda_0(this, inviteTokenUid, null));
  };
  protoOf(ClazzInviteDao_JdbcImpl).l9m = function (status, ciUid, updateTime, $completion) {
    var tmp = new $updateInviteStatusCOROUTINE$70(this, status, ciUid, updateTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzInviteDao_JdbcImpl).m9m = function (ciPersonUid, clazzUid, currentTime) {
    return new ClazzInviteDao_JdbcImpl$findPendingInviteByPersonUid$1(this, ciPersonUid, clazzUid, currentTime);
  };
  protoOf(ClazzInviteDao_JdbcImpl).n9m = function (inviteContact, $completion) {
    var tmp = new PreparedStatementConfig('\n        UPDATE ClazzInvite \n          SET inviteStatus = 3\n        WHERE inviteContact = ?', VOID, VOID, VOID, VOID, false);
    return prepareAndUseStatementAsync(this.d9p_1, tmp, ClazzInviteDao_JdbcImpl$updateClazzInviteToRevokeInvite$slambda_0(inviteContact, null), $completion);
  };
  function ClazzInviteDao_Repo$findClazzInviteEntityForInviteTokenAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzInviteDao_Repo$findPendingInviteByPersonUid$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzInviteDao_Repo$findClazzInviteEntityForInviteToken$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzInviteDao_Repo$findClazzInviteEntityForInviteTokenAsFlow$slambda(this$0, $inviteTokenUid, resultContinuation) {
    this.v9s_1 = this$0;
    this.w9s_1 = $inviteTokenUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzInviteDao_Repo$findClazzInviteEntityForInviteTokenAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzInviteDao_Repo$findClazzInviteEntityForInviteTokenAsFlow$slambda).m78 = function ($completion) {
    return this.j87($completion);
  };
  protoOf(ClazzInviteDao_Repo$findClazzInviteEntityForInviteTokenAsFlow$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.x9s_1 = this.v9s_1.g9t_1;
            var tmp_1 = this;
            tmp_1.y9s_1 = 'ClazzInviteDao/findClazzInviteEntityForInviteTokenAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.z9s_1 = this.v9s_1.i9t_1;
            var tmp_3 = this;
            tmp_3.a9t_1 = this.z9s_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.v9s_1.g9t_1.j39(), 'ClazzInviteDao/findClazzInviteEntityForInviteTokenAsFlow');
            doorNodeIdHeader(this_0, this.v9s_1.g9t_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'inviteTokenUid', this.v9s_1.g9t_1.j39().x65_1.r45(serializer_0(StringCompanionObject_instance), this.w9s_1));
            tmp_4.b9t_1 = this_0;
            this.b9t_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.c9t_1 = this.a9t_1;
            var tmp_6 = this;
            tmp_6.d9t_1 = this.b9t_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.d9t_1, this.c9t_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.e9t_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.v9s_1.f9t_1, this.e9t_1, this.v9s_1.g9t_1.j39().x65_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().d5e(e, 'DoorLog', ClazzInviteDao_Repo$findClazzInviteEntityForInviteTokenAsFlow$slambda$lambda(this.x9s_1, this.y9s_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(ClazzInviteDao_Repo$findClazzInviteEntityForInviteTokenAsFlow$slambda).l78 = function (completion) {
    return new ClazzInviteDao_Repo$findClazzInviteEntityForInviteTokenAsFlow$slambda(this.v9s_1, this.w9s_1, completion);
  };
  function ClazzInviteDao_Repo$findClazzInviteEntityForInviteTokenAsFlow$slambda_0(this$0, $inviteTokenUid, resultContinuation) {
    var i = new ClazzInviteDao_Repo$findClazzInviteEntityForInviteTokenAsFlow$slambda(this$0, $inviteTokenUid, resultContinuation);
    var l = function ($completion) {
      return i.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzInviteDao_Repo$updateInviteStatus$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzInviteDao_Repo$updateInviteStatus$slambda(this$0, $status, $ciUid, $updateTime, resultContinuation) {
    this.u9t_1 = this$0;
    this.v9t_1 = $status;
    this.w9t_1 = $ciUid;
    this.x9t_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzInviteDao_Repo$updateInviteStatus$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzInviteDao_Repo$updateInviteStatus$slambda).m78 = function ($completion) {
    return this.j87($completion);
  };
  protoOf(ClazzInviteDao_Repo$updateInviteStatus$slambda).ud = function () {
    var 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.u9t_1.h9t_1.l9m(this.v9t_1, this.w9t_1, this.x9t_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(ClazzInviteDao_Repo$updateInviteStatus$slambda).l78 = function (completion) {
    return new ClazzInviteDao_Repo$updateInviteStatus$slambda(this.u9t_1, this.v9t_1, this.w9t_1, this.x9t_1, completion);
  };
  function ClazzInviteDao_Repo$updateInviteStatus$slambda_0(this$0, $status, $ciUid, $updateTime, resultContinuation) {
    var i = new ClazzInviteDao_Repo$updateInviteStatus$slambda(this$0, $status, $ciUid, $updateTime, resultContinuation);
    var l = function ($completion) {
      return i.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzInviteDao_Repo$findPendingInviteByPersonUid$slambda(this$0, $ciPersonUid, $clazzUid, $currentTime, resultContinuation) {
    this.g9u_1 = this$0;
    this.h9u_1 = $ciPersonUid;
    this.i9u_1 = $clazzUid;
    this.j9u_1 = $currentTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzInviteDao_Repo$findPendingInviteByPersonUid$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzInviteDao_Repo$findPendingInviteByPersonUid$slambda).he = function (p1, $completion) {
    return this.h86(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ClazzInviteDao_Repo$findPendingInviteByPersonUid$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.m9u_1 = this.g9u_1.g9t_1;
            var tmp_1 = this;
            tmp_1.n9u_1 = 'ClazzInviteDao/findPendingInviteByPersonUid';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.o9u_1 = this.g9u_1.i9t_1;
            var tmp_3 = this;
            tmp_3.p9u_1 = this.o9u_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.g9u_1.g9t_1.j39(), 'ClazzInviteDao/findPendingInviteByPersonUid');
            doorNodeIdHeader(this_0, this.g9u_1.g9t_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'ciPersonUid', this.g9u_1.g9t_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.h9u_1));
            parameter(this_0, 'clazzUid', this.g9u_1.g9t_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.i9u_1));
            parameter(this_0, 'currentTime', this.g9u_1.g9t_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.j9u_1));
            pagingSourceLoadParameters(this_0, this.g9u_1.g9t_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.k9u_1);
            tmp_4.q9u_1 = this_0;
            this.q9u_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.r9u_1 = this.p9u_1;
            var tmp_6 = this;
            tmp_6.s9u_1 = this.q9u_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.s9u_1, this.r9u_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.t9u_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.g9u_1.f9t_1, this.t9u_1, this.g9u_1.g9t_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.l9u_1 = endOfPaginationReached(this.t9u_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().d5e(e, 'DoorLog', ClazzInviteDao_Repo$findPendingInviteByPersonUid$slambda$lambda(this.m9u_1, this.n9u_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.l9u_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(ClazzInviteDao_Repo$findPendingInviteByPersonUid$slambda).i86 = function (_pagingParams, completion) {
    var i = new ClazzInviteDao_Repo$findPendingInviteByPersonUid$slambda(this.g9u_1, this.h9u_1, this.i9u_1, this.j9u_1, completion);
    i.k9u_1 = _pagingParams;
    return i;
  };
  function ClazzInviteDao_Repo$findPendingInviteByPersonUid$slambda_0(this$0, $ciPersonUid, $clazzUid, $currentTime, resultContinuation) {
    var i = new ClazzInviteDao_Repo$findPendingInviteByPersonUid$slambda(this$0, $ciPersonUid, $clazzUid, $currentTime, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.h86(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzInviteDao_Repo$updateClazzInviteToRevokeInvite$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function ClazzInviteDao_Repo$updateClazzInviteToRevokeInvite$slambda(this$0, $inviteContact, resultContinuation) {
    this.c9v_1 = this$0;
    this.d9v_1 = $inviteContact;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzInviteDao_Repo$updateClazzInviteToRevokeInvite$slambda).g8u = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzInviteDao_Repo$updateClazzInviteToRevokeInvite$slambda).m78 = function ($completion) {
    return this.g8u($completion);
  };
  protoOf(ClazzInviteDao_Repo$updateClazzInviteToRevokeInvite$slambda).ud = function () {
    var 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.c9v_1.h9t_1.n9m(this.d9v_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(ClazzInviteDao_Repo$updateClazzInviteToRevokeInvite$slambda).l78 = function (completion) {
    return new ClazzInviteDao_Repo$updateClazzInviteToRevokeInvite$slambda(this.c9v_1, this.d9v_1, completion);
  };
  function ClazzInviteDao_Repo$updateClazzInviteToRevokeInvite$slambda_0(this$0, $inviteContact, resultContinuation) {
    var i = new ClazzInviteDao_Repo$updateClazzInviteToRevokeInvite$slambda(this$0, $inviteContact, resultContinuation);
    var l = function ($completion) {
      return i.g8u($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzInviteDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.m9v_1 = this$0;
    this.n9v_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzInviteDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzInviteDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($completion);
  };
  protoOf(ClazzInviteDao_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.m9v_1.h9t_1.insertAsync(this.n9v_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(ClazzInviteDao_Repo$insertAsync$slambda).l78 = function (completion) {
    return new ClazzInviteDao_Repo$insertAsync$slambda(this.m9v_1, this.n9v_1, completion);
  };
  function ClazzInviteDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) {
    var i = new ClazzInviteDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation);
    var l = function ($completion) {
      return i.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findClazzInviteEntityForInviteTokenCOROUTINE$73(_this__u8e3s4, inviteTokenUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.w9v_1 = _this__u8e3s4;
    this.x9v_1 = inviteTokenUid;
  }
  protoOf($findClazzInviteEntityForInviteTokenCOROUTINE$73).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.y9v_1 = this.w9v_1.g9t_1;
            var tmp_1 = this;
            tmp_1.z9v_1 = 'ClazzInviteDao/findClazzInviteEntityForInviteToken';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.a9w_1 = this.w9v_1.i9t_1;
            var tmp_3 = this;
            tmp_3.b9w_1 = this.a9w_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.w9v_1.g9t_1.j39(), 'ClazzInviteDao/findClazzInviteEntityForInviteToken');
            doorNodeIdHeader(this_0, this.w9v_1.g9t_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'inviteTokenUid', this.w9v_1.g9t_1.j39().x65_1.r45(serializer_0(StringCompanionObject_instance), this.x9v_1));
            tmp_4.c9w_1 = this_0;
            this.c9w_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.d9w_1 = this.b9w_1;
            var tmp_6 = this;
            tmp_6.e9w_1 = this.c9w_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.e9w_1, this.d9w_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.f9w_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.w9v_1.f9t_1, this.f9w_1, this.w9v_1.g9t_1.j39().x65_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.g9w_1 = this.kd_1;
              Napier_getInstance().d5e(this.g9w_1, 'DoorLog', ClazzInviteDao_Repo$findClazzInviteEntityForInviteToken$lambda(this.y9v_1, this.z9v_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.w9v_1.h9t_1.j9m(this.x9v_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 $updateInviteStatusCOROUTINE$74(_this__u8e3s4, status, ciUid, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.p9w_1 = _this__u8e3s4;
    this.q9w_1 = status;
    this.r9w_1 = ciUid;
    this.s9w_1 = updateTime;
  }
  protoOf($updateInviteStatusCOROUTINE$74).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.t9w_1 = this.p9w_1.g9t_1;
            var tmp_1 = this;
            tmp_1.u9w_1 = 'ClazzInviteDao/updateInviteStatus';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.v9w_1 = this.p9w_1.i9t_1;
            var tmp_3 = this;
            tmp_3.w9w_1 = this.v9w_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.p9w_1.g9t_1.j39(), 'ClazzInviteDao/updateInviteStatus');
            doorNodeIdHeader(this_0, this.p9w_1.g9t_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'status', this.p9w_1.g9t_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.q9w_1));
            parameter(this_0, 'ciUid', this.p9w_1.g9t_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.r9w_1));
            parameter(this_0, 'updateTime', this.p9w_1.g9t_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.s9w_1));
            tmp_4.x9w_1 = this_0;
            this.x9w_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.y9w_1 = this.w9w_1;
            var tmp_6 = this;
            tmp_6.z9w_1 = this.x9w_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.z9w_1, this.y9w_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.a9x_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.p9w_1.f9t_1, this.a9x_1, this.p9w_1.g9t_1.j39().x65_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.b9x_1 = this.kd_1;
              Napier_getInstance().d5e(this.b9x_1, 'DoorLog', ClazzInviteDao_Repo$updateInviteStatus$lambda(this.t9w_1, this.u9w_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = withRepoChangeMonitorAsync(this.p9w_1.g9t_1, 'ClazzInvite', ClazzInviteDao_Repo$updateInviteStatus$slambda_0(this.p9w_1, this.q9w_1, this.r9w_1, this.s9w_1, null), 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 $updateClazzInviteToRevokeInviteCOROUTINE$75(_this__u8e3s4, inviteContact, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.k9x_1 = _this__u8e3s4;
    this.l9x_1 = inviteContact;
  }
  protoOf($updateClazzInviteToRevokeInviteCOROUTINE$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.m9x_1 = this.k9x_1.g9t_1;
            var tmp_1 = this;
            tmp_1.n9x_1 = 'ClazzInviteDao/updateClazzInviteToRevokeInvite';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.o9x_1 = this.k9x_1.i9t_1;
            var tmp_3 = this;
            tmp_3.p9x_1 = this.o9x_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.k9x_1.g9t_1.j39(), 'ClazzInviteDao/updateClazzInviteToRevokeInvite');
            doorNodeIdHeader(this_0, this.k9x_1.g9t_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'inviteContact', this.k9x_1.g9t_1.j39().x65_1.r45(serializer_0(StringCompanionObject_instance), this.l9x_1));
            tmp_4.q9x_1 = this_0;
            this.q9x_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.r9x_1 = this.p9x_1;
            var tmp_6 = this;
            tmp_6.s9x_1 = this.q9x_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.s9x_1, this.r9x_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.t9x_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.k9x_1.f9t_1, this.t9x_1, this.k9x_1.g9t_1.j39().x65_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.u9x_1 = this.kd_1;
              Napier_getInstance().d5e(this.u9x_1, 'DoorLog', ClazzInviteDao_Repo$updateClazzInviteToRevokeInvite$lambda(this.m9x_1, this.n9x_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = withRepoChangeMonitorAsync(this.k9x_1.g9t_1, 'ClazzInvite', ClazzInviteDao_Repo$updateClazzInviteToRevokeInvite$slambda_0(this.k9x_1, this.l9x_1, null), 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$77(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.d9y_1 = _this__u8e3s4;
    this.e9y_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$77).ud = function () {
    var 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.g9t_1, 'ClazzInvite', ClazzInviteDao_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 ClazzInviteDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ClazzInviteDao.call(this);
    this.f9t_1 = _db;
    this.g9t_1 = _repo;
    this.h9t_1 = _dao;
    this.i9t_1 = _httpClient;
    this.j9t_1 = _clientId;
    this.k9t_1 = _endpoint;
    this.l9t_1 = new RepoDaoFlowHelper(this.g9t_1);
  }
  protoOf(ClazzInviteDao_Repo).j9m = function (inviteTokenUid, $completion) {
    var tmp = new $findClazzInviteEntityForInviteTokenCOROUTINE$73(this, inviteTokenUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzInviteDao_Repo).k9m = function (inviteTokenUid) {
    var tmp = this.h9t_1.k9m(inviteTokenUid);
    return this.l9t_1.o67(tmp, ClazzInviteDao_Repo$findClazzInviteEntityForInviteTokenAsFlow$slambda_0(this, inviteTokenUid, null));
  };
  protoOf(ClazzInviteDao_Repo).l9m = function (status, ciUid, updateTime, $completion) {
    var tmp = new $updateInviteStatusCOROUTINE$74(this, status, ciUid, updateTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzInviteDao_Repo).m9m = function (ciPersonUid, clazzUid, currentTime) {
    var tmp = this.h9t_1.m9m(ciPersonUid, clazzUid, currentTime);
    return new DoorRepositoryReplicatePullPagingSource(this.g9t_1, 'ClazzInviteDao/findPendingInviteByPersonUid', tmp, ClazzInviteDao_Repo$findPendingInviteByPersonUid$slambda_0(this, ciPersonUid, clazzUid, currentTime, null));
  };
  protoOf(ClazzInviteDao_Repo).n9m = function (inviteContact, $completion) {
    var tmp = new $updateClazzInviteToRevokeInviteCOROUTINE$75(this, inviteContact, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzInviteDao_Repo).m9n = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$77(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzInviteDao_Repo).insertAsync = function (entity, $completion) {
    return this.m9n(entity instanceof ClazzInvite ? entity : THROW_CCE(), $completion);
  };
  function ClazzLogAttendanceRecordDao() {
  }
  function $upsertListAsyncCOROUTINE$79(_this__u8e3s4, entityList, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.p9y_1 = _this__u8e3s4;
    this.q9y_1 = entityList;
  }
  protoOf($upsertListAsyncCOROUTINE$79).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.r9y_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.p9y_1.y9y_1));
            var tmp_0 = this;
            tmp_0.s9y_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.t9y_1 = this.q9y_1.w();
            var tmp_2 = this;
            tmp_2.u9y_1 = this.t9y_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.u9y_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.v9y_1 = this.u9y_1.e();
            var tmp_3 = this;
            tmp_3.w9y_1 = this.v9y_1;
            if (this.w9y_1.a9z_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.r9y_1.o62(15, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.x9y_1 = suspendResult;
            this.w9y_1.a9z_1 = this.x9y_1;
            var this_0 = this.s9y_1;
            var element = this.x9y_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.w9y_1.h9z_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.p9y_1.z9y_1.g9y(this.q9y_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$80(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.q9z_1 = _this__u8e3s4;
    this.r9z_1 = entity;
  }
  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.s9z_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.q9z_1.y9y_1));
            if (this.r9z_1.a9z_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.s9z_1.o62(15, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.t9z_1 = suspendResult;
            this.r9z_1.a9z_1 = this.t9z_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.r9z_1.h9z_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.q9z_1.z9y_1.insertAsync(this.r9z_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.r9z_1.a9z_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.y9y_1 = _db;
    this.z9y_1 = _dao;
  }
  protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).f9y = function (clazzUid, clazzLogUid, time, $completion) {
    return this.z9y_1.f9y(clazzUid, clazzLogUid, time, $completion);
  };
  protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).g9y = function (entityList, $completion) {
    var tmp = new $upsertListAsyncCOROUTINE$79(this, entityList, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).u9z = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$80(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.u9z(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.y5m('personUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_gender = $_result.x5m('gender');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_active = $_result.j66('active');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_isPersonalAccount = $_result.j66('isPersonalAccount');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.y5m('dateOfBirth');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.y5m('personGroupUid');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_personLct = $_result.y5m('personLct');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personType = $_result.x5m('personType');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.y5m('personMasterChangeSeqNum');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.y5m('personLocalChangeSeqNum');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.x5m('personLastChangedBy');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_admin = $_result.j66('admin');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 25;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.y5m('personPictureUid');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.y5m('personPictureLct');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_fileSize = $_result.x5m('fileSize');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.j66('personPictureActive');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6;
      var _tmp_ClazzLogAttendanceRecord_nullCount = 0;
      var _tmp_clazzLogAttendanceRecordUid = $_result.y5m('clazzLogAttendanceRecordUid');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_clazzLogAttendanceRecordClazzLogUid = $_result.y5m('clazzLogAttendanceRecordClazzLogUid');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_clazzLogAttendanceRecordPersonUid = $_result.y5m('clazzLogAttendanceRecordPersonUid');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_attendanceStatus = $_result.x5m('attendanceStatus');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_clazzLogAttendanceRecordMasterChangeSeqNum = $_result.y5m('clazzLogAttendanceRecordMasterChangeSeqNum');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_clazzLogAttendanceRecordLocalChangeSeqNum = $_result.y5m('clazzLogAttendanceRecordLocalChangeSeqNum');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_clazzLogAttendanceRecordLastChangedBy = $_result.x5m('clazzLogAttendanceRecordLastChangedBy');
      var tmp_36;
      if ($_result.q67()) {
        _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_clazzLogAttendanceRecordLastChangedTime = $_result.y5m('clazzLogAttendanceRecordLastChangedTime');
      var tmp_37;
      if ($_result.q67()) {
        _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0;
        tmp_37 = 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_38 = 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.f96_1 = _tmp_personUid;
        this_1.g96_1 = _tmp_username;
        this_1.h96_1 = _tmp_firstNames;
        this_1.i96_1 = _tmp_lastName;
        this_1.j96_1 = _tmp_emailAddr;
        this_1.k96_1 = _tmp_phoneNum;
        this_1.l96_1 = _tmp_gender;
        this_1.m96_1 = _tmp_active;
        this_1.n96_1 = _tmp_isPersonalAccount;
        this_1.o96_1 = _tmp_dateOfBirth;
        this_1.p96_1 = _tmp_personAddress;
        this_1.q96_1 = _tmp_personOrgId;
        this_1.r96_1 = _tmp_personGroupUid;
        this_1.s96_1 = _tmp_personLct;
        this_1.t96_1 = _tmp_personCountry;
        this_1.u96_1 = _tmp_personType;
        this_1.v96_1 = _tmp_personMasterChangeSeqNum;
        this_1.w96_1 = _tmp_personLocalChangeSeqNum;
        this_1.x96_1 = _tmp_personLastChangedBy;
        this_1.y96_1 = _tmp_admin;
        this_1.z96_1 = _tmp_personNotes;
        this_1.a97_1 = _tmp_fatherName;
        this_1.b97_1 = _tmp_fatherNumber;
        this_1.c97_1 = _tmp_motherName;
        this_1.d97_1 = _tmp_motherNum;
        tmp_38.v9z_1 = this_1;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_39 = 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.e97_1 = _tmp_personPictureUid;
        this_2.f97_1 = _tmp_personPictureLct;
        this_2.g97_1 = _tmp_personPictureUri;
        this_2.h97_1 = _tmp_personPictureThumbnailUri;
        this_2.i97_1 = _tmp_fileSize;
        this_2.j97_1 = _tmp_personPictureActive;
        tmp_39.w9z_1 = this_2;
      }
      if (!_tmp_ClazzLogAttendanceRecord_isAllNull) {
        var tmp_40 = 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.a9z_1 = _tmp_clazzLogAttendanceRecordUid;
        this_3.b9z_1 = _tmp_clazzLogAttendanceRecordClazzLogUid;
        this_3.c9z_1 = _tmp_clazzLogAttendanceRecordPersonUid;
        this_3.d9z_1 = _tmp_attendanceStatus;
        this_3.e9z_1 = _tmp_clazzLogAttendanceRecordMasterChangeSeqNum;
        this_3.f9z_1 = _tmp_clazzLogAttendanceRecordLocalChangeSeqNum;
        this_3.g9z_1 = _tmp_clazzLogAttendanceRecordLastChangedBy;
        this_3.h9z_1 = _tmp_clazzLogAttendanceRecordLastChangedTime;
        tmp_40.x9z_1 = this_3;
      }
      return this_0;
    };
  }
  function ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.y9z_1);
  }
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO ClazzLogAttendanceRecord (clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1).da0 = function (stmt, entity) {
    if (entity.a9z_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.a9z_1);
    }
    stmt.v5h(2, entity.b9z_1);
    stmt.v5h(3, entity.c9z_1);
    stmt.u5h(4, entity.d9z_1);
    stmt.v5h(5, entity.e9z_1);
    stmt.v5h(6, entity.f9z_1);
    stmt.u5h(7, entity.g9z_1);
    stmt.v5h(8, entity.h9z_1);
  };
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1).p5f = function (stmt, entity) {
    return this.da0(stmt, entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE());
  };
  function ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.y9z_1);
  }
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO ClazzLogAttendanceRecord (clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1).da0 = function (stmt, entity) {
    if (entity.a9z_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.a9z_1);
    }
    stmt.v5h(2, entity.b9z_1);
    stmt.v5h(3, entity.c9z_1);
    stmt.u5h(4, entity.d9z_1);
    stmt.v5h(5, entity.e9z_1);
    stmt.v5h(6, entity.f9z_1);
    stmt.u5h(7, entity.g9z_1);
    stmt.v5h(8, entity.h9z_1);
  };
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1).p5f = function (stmt, entity) {
    return this.da0(stmt, entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE());
  };
  function ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda($clazzUid, $time, $clazzLogUid, resultContinuation) {
    this.oa0_1 = $clazzUid;
    this.pa0_1 = $time;
    this.qa0_1 = $clazzLogUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda).sa0 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.sa0((!(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.ra0_1.v5h(1, this.oa0_1);
            this.ra0_1.v5h(2, this.pa0_1);
            this.ra0_1.v5h(3, this.qa0_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ra0_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).m5f = function (_stmt, completion) {
    var i = new ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda(this.oa0_1, this.pa0_1, this.qa0_1, completion);
    i.ra0_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.sa0(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$81(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ba1_1 = _this__u8e3s4;
    this.ca1_1 = entity;
  }
  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.ba1_1.z9z_1.w5g(this.ca1_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.y9z_1 = _db;
    var tmp = this;
    tmp.z9z_1 = new ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1(this);
    var tmp_0 = this;
    tmp_0.aa0_1 = new ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1(this);
  }
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).g9y = function (entityList, $completion) {
    return this.aa0_1.z5g(entityList, $completion);
  };
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).u9z = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$81(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.u9z(entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE(), $completion);
  };
  protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).f9y = 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.y9z_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.la1_1 = this$0;
    this.ma1_1 = $entityList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda).m78 = function ($completion) {
    return this.j87($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.la1_1.pa1_1.g9y(this.ma1_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).l78 = function (completion) {
    return new ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda(this.la1_1, this.ma1_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.ba2_1 = this$0;
    this.ca2_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.ba2_1.pa1_1.insertAsync(this.ca2_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).l78 = function (completion) {
    return new ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda(this.ba2_1, this.ca2_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByClazzAndTimeCOROUTINE$83(_this__u8e3s4, clazzUid, clazzLogUid, time, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.la2_1 = _this__u8e3s4;
    this.ma2_1 = clazzUid;
    this.na2_1 = clazzLogUid;
    this.oa2_1 = time;
  }
  protoOf($findByClazzAndTimeCOROUTINE$83).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.pa2_1 = this.la2_1.oa1_1;
            var tmp_1 = this;
            tmp_1.qa2_1 = 'ClazzLogAttendanceRecordDao/findByClazzAndTime';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ra2_1 = this.la2_1.qa1_1;
            var tmp_3 = this;
            tmp_3.sa2_1 = this.ra2_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.la2_1.oa1_1.j39(), 'ClazzLogAttendanceRecordDao/findByClazzAndTime');
            doorNodeIdHeader(this_0, this.la2_1.oa1_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.la2_1.oa1_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ma2_1));
            parameter(this_0, 'clazzLogUid', this.la2_1.oa1_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.na2_1));
            parameter(this_0, 'time', this.la2_1.oa1_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.oa2_1));
            tmp_4.ta2_1 = this_0;
            this.ta2_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.ua2_1 = this.sa2_1;
            var tmp_6 = this;
            tmp_6.va2_1 = this.ta2_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.va2_1, this.ua2_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.wa2_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.la2_1.na1_1, this.wa2_1, this.la2_1.oa1_1.j39().x65_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.xa2_1 = this.kd_1;
              Napier_getInstance().d5e(this.xa2_1, 'DoorLog', ClazzLogAttendanceRecordDao_Repo$findByClazzAndTime$lambda(this.pa2_1, this.qa2_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.la2_1.pa1_1.f9y(this.ma2_1, this.na2_1, this.oa2_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$84(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ga3_1 = _this__u8e3s4;
    this.ha3_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$84).ud = function () {
    var 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.ga3_1.oa1_1, 'ClazzLogAttendanceRecord', ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda_0(this.ga3_1, this.ha3_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.na1_1 = _db;
    this.oa1_1 = _repo;
    this.pa1_1 = _dao;
    this.qa1_1 = _httpClient;
    this.ra1_1 = _clientId;
    this.sa1_1 = _endpoint;
  }
  protoOf(ClazzLogAttendanceRecordDao_Repo).f9y = function (clazzUid, clazzLogUid, time, $completion) {
    var tmp = new $findByClazzAndTimeCOROUTINE$83(this, clazzUid, clazzLogUid, time, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogAttendanceRecordDao_Repo).g9y = function (entityList, $completion) {
    return withRepoChangeMonitorAsync(this.oa1_1, 'ClazzLogAttendanceRecord', ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda_0(this, entityList, null), $completion);
  };
  protoOf(ClazzLogAttendanceRecordDao_Repo).u9z = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$84(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogAttendanceRecordDao_Repo).insertAsync = function (entity, $completion) {
    return this.u9z(entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE(), $completion);
  };
  function ClazzLogDao() {
  }
  function $upsertListAsyncCOROUTINE$85(_this__u8e3s4, entityList, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.va3_1 = _this__u8e3s4;
    this.wa3_1 = entityList;
  }
  protoOf($upsertListAsyncCOROUTINE$85).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.xa3_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.va3_1.ea4_1));
            var tmp_0 = this;
            tmp_0.ya3_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.za3_1 = this.wa3_1.w();
            var tmp_2 = this;
            tmp_2.aa4_1 = this.za3_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.aa4_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.ba4_1 = this.aa4_1.e();
            var tmp_3 = this;
            tmp_3.ca4_1 = this.ba4_1;
            if (this.ca4_1.ga4_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.xa3_1.o62(14, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.da4_1 = suspendResult;
            this.ca4_1.ga4_1 = this.da4_1;
            var this_0 = this.ya3_1;
            var element = this.da4_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.ca4_1.va4_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.va3_1.fa4_1.ma3(this.wa3_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$86(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ea5_1 = _this__u8e3s4;
    this.fa5_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.ga5_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.ea5_1.ea4_1));
            if (this.fa5_1.ga4_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.ga5_1.o62(14, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.ha5_1 = suspendResult;
            this.fa5_1.ga4_1 = this.ha5_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.fa5_1.va4_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.ea5_1.fa4_1.insertAsync(this.fa5_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.fa5_1.ga4_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.ea4_1 = _db;
    this.fa4_1 = _dao;
  }
  protoOf(ClazzLogDao_DoorWrapper).ia3 = function (clazzUid, excludeStatus) {
    return this.fa4_1.ia3(clazzUid, excludeStatus);
  };
  protoOf(ClazzLogDao_DoorWrapper).ja3 = function (clazzUid, excludeStatus, $completion) {
    return this.fa4_1.ja3(clazzUid, excludeStatus, $completion);
  };
  protoOf(ClazzLogDao_DoorWrapper).ka3 = function (clazzUid, excludeStatusFilter) {
    return this.fa4_1.ka3(clazzUid, excludeStatusFilter);
  };
  protoOf(ClazzLogDao_DoorWrapper).la3 = function (clazzUid, $completion) {
    return this.fa4_1.la3(clazzUid, $completion);
  };
  protoOf(ClazzLogDao_DoorWrapper).ma3 = function (entityList, $completion) {
    var tmp = new $upsertListAsyncCOROUTINE$85(this, entityList, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_DoorWrapper).ia5 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$86(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.ia5(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.y5m('clazzLogUid');
      var _tmp_clazzLogClazzUid = $_result.y5m('clazzLogClazzUid');
      var _tmp_logDate = $_result.y5m('logDate');
      var _tmp_timeRecorded = $_result.y5m('timeRecorded');
      var _tmp_clazzLogDone = $_result.j66('clazzLogDone');
      var _tmp_cancellationNote = $_result.rz('cancellationNote');
      var _tmp_clazzLogCancelled = $_result.j66('clazzLogCancelled');
      var _tmp_clazzLogNumPresent = $_result.x5m('clazzLogNumPresent');
      var _tmp_clazzLogNumAbsent = $_result.x5m('clazzLogNumAbsent');
      var _tmp_clazzLogNumPartial = $_result.x5m('clazzLogNumPartial');
      var _tmp_clazzLogScheduleUid = $_result.y5m('clazzLogScheduleUid');
      var _tmp_clazzLogStatusFlag = $_result.x5m('clazzLogStatusFlag');
      var _tmp_clazzLogMSQN = $_result.y5m('clazzLogMSQN');
      var _tmp_clazzLogLCSN = $_result.y5m('clazzLogLCSN');
      var _tmp_clazzLogLCB = $_result.x5m('clazzLogLCB');
      var _tmp_clazzLogLastChangedTime = $_result.y5m('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.ga4_1 = _tmp_clazzLogUid;
      this_0.ha4_1 = _tmp_clazzLogClazzUid;
      this_0.ia4_1 = _tmp_logDate;
      this_0.ja4_1 = _tmp_timeRecorded;
      this_0.ka4_1 = _tmp_clazzLogDone;
      this_0.la4_1 = _tmp_cancellationNote;
      this_0.ma4_1 = _tmp_clazzLogCancelled;
      this_0.na4_1 = _tmp_clazzLogNumPresent;
      this_0.oa4_1 = _tmp_clazzLogNumAbsent;
      this_0.pa4_1 = _tmp_clazzLogNumPartial;
      this_0.qa4_1 = _tmp_clazzLogScheduleUid;
      this_0.ra4_1 = _tmp_clazzLogStatusFlag;
      this_0.sa4_1 = _tmp_clazzLogMSQN;
      this_0.ta4_1 = _tmp_clazzLogLCSN;
      this_0.ua4_1 = _tmp_clazzLogLCB;
      this_0.va4_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.m5s(1);
    };
  }
  function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda($clazzUid, $excludeStatus, $_limit, $_offset, resultContinuation) {
    this.ra5_1 = $clazzUid;
    this.sa5_1 = $excludeStatus;
    this.ta5_1 = $_limit;
    this.ua5_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda).wa5 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.wa5((!(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.va5_1.v5h(1, this.ra5_1);
            this.va5_1.u5h(2, this.sa5_1);
            this.va5_1.u5h(3, this.ta5_1);
            this.va5_1.u5h(4, this.ua5_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.va5_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).m5f = function (_stmt, completion) {
    var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda(this.ra5_1, this.sa5_1, this.ta5_1, this.ua5_1, completion);
    i.va5_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.wa5(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda($clazzUid, $excludeStatus, resultContinuation) {
    this.fa6_1 = $clazzUid;
    this.ga6_1 = $excludeStatus;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.ha6_1.v5h(1, this.fa6_1);
            this.ha6_1.u5h(2, this.ga6_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ha6_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).m5f = function (_stmt, completion) {
    var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda(this.fa6_1, this.ga6_1, completion);
    i.ha6_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.j6j(_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.y5m('clazzLogUid');
      var _tmp_clazzLogClazzUid = $_result.y5m('clazzLogClazzUid');
      var _tmp_logDate = $_result.y5m('logDate');
      var _tmp_timeRecorded = $_result.y5m('timeRecorded');
      var _tmp_clazzLogDone = $_result.j66('clazzLogDone');
      var _tmp_cancellationNote = $_result.rz('cancellationNote');
      var _tmp_clazzLogCancelled = $_result.j66('clazzLogCancelled');
      var _tmp_clazzLogNumPresent = $_result.x5m('clazzLogNumPresent');
      var _tmp_clazzLogNumAbsent = $_result.x5m('clazzLogNumAbsent');
      var _tmp_clazzLogNumPartial = $_result.x5m('clazzLogNumPartial');
      var _tmp_clazzLogScheduleUid = $_result.y5m('clazzLogScheduleUid');
      var _tmp_clazzLogStatusFlag = $_result.x5m('clazzLogStatusFlag');
      var _tmp_clazzLogMSQN = $_result.y5m('clazzLogMSQN');
      var _tmp_clazzLogLCSN = $_result.y5m('clazzLogLCSN');
      var _tmp_clazzLogLCB = $_result.x5m('clazzLogLCB');
      var _tmp_clazzLogLastChangedTime = $_result.y5m('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.ga4_1 = _tmp_clazzLogUid;
      this_0.ha4_1 = _tmp_clazzLogClazzUid;
      this_0.ia4_1 = _tmp_logDate;
      this_0.ja4_1 = _tmp_timeRecorded;
      this_0.ka4_1 = _tmp_clazzLogDone;
      this_0.la4_1 = _tmp_cancellationNote;
      this_0.ma4_1 = _tmp_clazzLogCancelled;
      this_0.na4_1 = _tmp_clazzLogNumPresent;
      this_0.oa4_1 = _tmp_clazzLogNumAbsent;
      this_0.pa4_1 = _tmp_clazzLogNumPartial;
      this_0.qa4_1 = _tmp_clazzLogScheduleUid;
      this_0.ra4_1 = _tmp_clazzLogStatusFlag;
      this_0.sa4_1 = _tmp_clazzLogMSQN;
      this_0.ta4_1 = _tmp_clazzLogLCSN;
      this_0.ua4_1 = _tmp_clazzLogLCB;
      this_0.va4_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.n74(1);
    };
  }
  function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda($clazzUid, $excludeStatusFilter, resultContinuation) {
    this.qa6_1 = $clazzUid;
    this.ra6_1 = $excludeStatusFilter;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda).ta6 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ta6((!(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.sa6_1.v5h(1, this.qa6_1);
            this.sa6_1.u5h(2, this.ra6_1);
            this.sa6_1.u5h(3, this.ra6_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.sa6_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).m5f = function (_stmt, completion) {
    var i = new ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda(this.qa6_1, this.ra6_1, completion);
    i.sa6_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.ta6(_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.z5e(1);
    };
  }
  function ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ua6_1);
  }
  protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1).u5g = 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).za6 = function (stmt, entity) {
    if (entity.ga4_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.ga4_1);
    }
    stmt.v5h(2, entity.ha4_1);
    stmt.v5h(3, entity.ia4_1);
    stmt.v5h(4, entity.ja4_1);
    stmt.i5h(5, entity.ka4_1);
    stmt.y5h(6, entity.la4_1);
    stmt.i5h(7, entity.ma4_1);
    stmt.u5h(8, entity.na4_1);
    stmt.u5h(9, entity.oa4_1);
    stmt.u5h(10, entity.pa4_1);
    stmt.v5h(11, entity.qa4_1);
    stmt.u5h(12, entity.ra4_1);
    stmt.v5h(13, entity.sa4_1);
    stmt.v5h(14, entity.ta4_1);
    stmt.u5h(15, entity.ua4_1);
    stmt.v5h(16, entity.va4_1);
  };
  protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1).p5f = function (stmt, entity) {
    return this.za6(stmt, entity instanceof ClazzLog ? entity : THROW_CCE());
  };
  function ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ua6_1);
  }
  protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1).u5g = 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).za6 = function (stmt, entity) {
    if (entity.ga4_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.ga4_1);
    }
    stmt.v5h(2, entity.ha4_1);
    stmt.v5h(3, entity.ia4_1);
    stmt.v5h(4, entity.ja4_1);
    stmt.i5h(5, entity.ka4_1);
    stmt.y5h(6, entity.la4_1);
    stmt.i5h(7, entity.ma4_1);
    stmt.u5h(8, entity.na4_1);
    stmt.u5h(9, entity.oa4_1);
    stmt.u5h(10, entity.pa4_1);
    stmt.v5h(11, entity.qa4_1);
    stmt.u5h(12, entity.ra4_1);
    stmt.v5h(13, entity.sa4_1);
    stmt.v5h(14, entity.ta4_1);
    stmt.u5h(15, entity.ua4_1);
    stmt.v5h(16, entity.va4_1);
  };
  protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1).p5f = function (stmt, entity) {
    return this.za6(stmt, entity instanceof ClazzLog ? entity : THROW_CCE());
  };
  function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1(this$0, $clazzUid, $excludeStatus) {
    this.ia7_1 = this$0;
    this.ja7_1 = $clazzUid;
    this.ka7_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.ua6_1, tmp$ret$2);
  }
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1).la7 = 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.ia7_1.ua6_1, tmp, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda_0(this.ja7_1, this.ka7_1, _limit, _offset, null), $completion);
  };
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1).w5p = function (_limit, _offset, $completion) {
    return this.la7(_limit, _offset, $completion);
  };
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1).q5r = 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.ia7_1.ua6_1, tmp, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda_0(this.ja7_1, this.ka7_1, null), $completion);
  };
  function ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda($clazzUid, $excludeStatus, resultContinuation) {
    this.ua7_1 = $clazzUid;
    this.va7_1 = $excludeStatus;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda).wa5 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.wa5((!(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.wa7_1.v5h(1, this.ua7_1);
            this.wa7_1.u5h(2, this.va7_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.wa7_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).m5f = function (_stmt, completion) {
    var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda(this.ua7_1, this.va7_1, completion);
    i.wa7_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.wa5(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda(this$0, $clazzUid, $excludeStatusFilter, resultContinuation) {
    this.fa8_1 = this$0;
    this.ga8_1 = $clazzUid;
    this.ha8_1 = $excludeStatusFilter;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda).ia8 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda).m78 = function ($completion) {
    return this.ia8($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.fa8_1.ua6_1, tmp_0, ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda_0(this.ga8_1, this.ha8_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).l78 = function (completion) {
    return new ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda(this.fa8_1, this.ga8_1, this.ha8_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.ia8($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda($clazzUid, resultContinuation) {
    this.ra8_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda).b5g = function (_stmt, $completion) {
    var tmp = this.m5f(_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.b5g((!(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.sa8_1.v5h(1, this.ra8_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.sa8_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).m5f = function (_stmt, completion) {
    var i = new ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda(this.ra8_1, completion);
    i.sa8_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.b5g(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$87(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ba9_1 = _this__u8e3s4;
    this.ca9_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.ba9_1.wa6_1.w5g(this.ca9_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.ua6_1 = _db;
    var tmp = this;
    tmp.va6_1 = new ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1(this);
    var tmp_0 = this;
    tmp_0.wa6_1 = new ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1(this);
  }
  protoOf(ClazzLogDao_JdbcImpl).ma3 = function (entityList, $completion) {
    return this.va6_1.z5g(entityList, $completion);
  };
  protoOf(ClazzLogDao_JdbcImpl).ia5 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$87(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.ia5(entity instanceof ClazzLog ? entity : THROW_CCE(), $completion);
  };
  protoOf(ClazzLogDao_JdbcImpl).ia3 = function (clazzUid, excludeStatus) {
    return new ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1(this, clazzUid, excludeStatus);
  };
  protoOf(ClazzLogDao_JdbcImpl).ja3 = 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.ua6_1, tmp, ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda_0(clazzUid, excludeStatus, null), $completion);
  };
  protoOf(ClazzLogDao_JdbcImpl).ka3 = 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.ua6_1, tmp, ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda_0(this, clazzUid, excludeStatusFilter, null));
  };
  protoOf(ClazzLogDao_JdbcImpl).la3 = 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.ua6_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.la9_1 = this$0;
    this.ma9_1 = $clazzUid;
    this.na9_1 = $excludeStatus;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogDao_Repo$findByClazzUidAsFactory$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_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.h86(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.qa9_1 = this.la9_1.za9_1;
            var tmp_1 = this;
            tmp_1.ra9_1 = 'ClazzLogDao/findByClazzUidAsFactory';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.sa9_1 = this.la9_1.baa_1;
            var tmp_3 = this;
            tmp_3.ta9_1 = this.sa9_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.la9_1.za9_1.j39(), 'ClazzLogDao/findByClazzUidAsFactory');
            doorNodeIdHeader(this_0, this.la9_1.za9_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.la9_1.za9_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ma9_1));
            parameter(this_0, 'excludeStatus', this.la9_1.za9_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.na9_1));
            pagingSourceLoadParameters(this_0, this.la9_1.za9_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.oa9_1);
            tmp_4.ua9_1 = this_0;
            this.ua9_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.va9_1 = this.ta9_1;
            var tmp_6 = this;
            tmp_6.wa9_1 = this.ua9_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.wa9_1, this.va9_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.xa9_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.la9_1.ya9_1, this.xa9_1, this.la9_1.za9_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.pa9_1 = endOfPaginationReached(this.xa9_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().d5e(e, 'DoorLog', ClazzLogDao_Repo$findByClazzUidAsFactory$slambda$lambda(this.qa9_1, this.ra9_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.pa9_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).i86 = function (_pagingParams, completion) {
    var i = new ClazzLogDao_Repo$findByClazzUidAsFactory$slambda(this.la9_1, this.ma9_1, this.na9_1, completion);
    i.oa9_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.h86(_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.maa_1 = this$0;
    this.naa_1 = $entityList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogDao_Repo$upsertListAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_Repo$upsertListAsync$slambda).m78 = function ($completion) {
    return this.j87($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.maa_1.aaa_1.ma3(this.naa_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).l78 = function (completion) {
    return new ClazzLogDao_Repo$upsertListAsync$slambda(this.maa_1, this.naa_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ClazzLogDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.waa_1 = this$0;
    this.xaa_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ClazzLogDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.waa_1.aaa_1.insertAsync(this.xaa_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).l78 = function (completion) {
    return new ClazzLogDao_Repo$insertAsync$slambda(this.waa_1, this.xaa_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByClazzUidAsyncCOROUTINE$90(_this__u8e3s4, clazzUid, excludeStatus, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.gab_1 = _this__u8e3s4;
    this.hab_1 = clazzUid;
    this.iab_1 = excludeStatus;
  }
  protoOf($findByClazzUidAsyncCOROUTINE$90).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.jab_1 = this.gab_1.za9_1;
            var tmp_1 = this;
            tmp_1.kab_1 = 'ClazzLogDao/findByClazzUidAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.lab_1 = this.gab_1.baa_1;
            var tmp_3 = this;
            tmp_3.mab_1 = this.lab_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.gab_1.za9_1.j39(), 'ClazzLogDao/findByClazzUidAsync');
            doorNodeIdHeader(this_0, this.gab_1.za9_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.gab_1.za9_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.hab_1));
            parameter(this_0, 'excludeStatus', this.gab_1.za9_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.iab_1));
            tmp_4.nab_1 = this_0;
            this.nab_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.oab_1 = this.mab_1;
            var tmp_6 = this;
            tmp_6.pab_1 = this.nab_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.pab_1, this.oab_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.qab_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.gab_1.ya9_1, this.qab_1, this.gab_1.za9_1.j39().x65_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.rab_1 = this.kd_1;
              Napier_getInstance().d5e(this.rab_1, 'DoorLog', ClazzLogDao_Repo$findByClazzUidAsync$lambda(this.jab_1, this.kab_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.gab_1.aaa_1.ja3(this.hab_1, this.iab_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$93(_this__u8e3s4, clazzUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.aac_1 = _this__u8e3s4;
    this.bac_1 = clazzUid;
  }
  protoOf($findMostRecentClazzLogToEditUidCOROUTINE$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.aac_1.aaa_1.la3(this.bac_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$94(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.kac_1 = _this__u8e3s4;
    this.lac_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.kac_1.za9_1, 'ClazzLog', ClazzLogDao_Repo$insertAsync$slambda_0(this.kac_1, this.lac_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.ya9_1 = _db;
    this.za9_1 = _repo;
    this.aaa_1 = _dao;
    this.baa_1 = _httpClient;
    this.caa_1 = _clientId;
    this.daa_1 = _endpoint;
  }
  protoOf(ClazzLogDao_Repo).ia3 = function (clazzUid, excludeStatus) {
    var tmp = this.aaa_1.ia3(clazzUid, excludeStatus);
    return new DoorRepositoryReplicatePullPagingSource(this.za9_1, 'ClazzLogDao/findByClazzUidAsFactory', tmp, ClazzLogDao_Repo$findByClazzUidAsFactory$slambda_0(this, clazzUid, excludeStatus, null));
  };
  protoOf(ClazzLogDao_Repo).ja3 = function (clazzUid, excludeStatus, $completion) {
    var tmp = new $findByClazzUidAsyncCOROUTINE$90(this, clazzUid, excludeStatus, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_Repo).ka3 = function (clazzUid, excludeStatusFilter) {
    var _result = this.aaa_1.ka3(clazzUid, excludeStatusFilter);
    return _result;
  };
  protoOf(ClazzLogDao_Repo).la3 = function (clazzUid, $completion) {
    var tmp = new $findMostRecentClazzLogToEditUidCOROUTINE$93(this, clazzUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_Repo).ma3 = function (entityList, $completion) {
    return withRepoChangeMonitorAsync(this.za9_1, 'ClazzLog', ClazzLogDao_Repo$upsertListAsync$slambda_0(this, entityList, null), $completion);
  };
  protoOf(ClazzLogDao_Repo).ia5 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$94(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ClazzLogDao_Repo).insertAsync = function (entity, $completion) {
    return this.ia5(entity instanceof ClazzLog ? entity : THROW_CCE(), $completion);
  };
  function CommentsDao() {
  }
  function $insertAsyncCOROUTINE$95(_this__u8e3s4, comments, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zac_1 = _this__u8e3s4;
    this.aad_1 = comments;
  }
  protoOf($insertAsyncCOROUTINE$95).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.bad_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.zac_1.dad_1));
            if (this.aad_1.fad_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.bad_1.o62(208, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.cad_1 = suspendResult;
            this.aad_1.fad_1 = this.cad_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.aad_1.pad_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.zac_1.ead_1.mac(this.aad_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.aad_1.fad_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.dad_1 = _db;
    this.ead_1 = _dao;
  }
  protoOf(CommentsDao_DoorWrapper).mac = function (comments, $completion) {
    var tmp = new $insertAsyncCOROUTINE$95(this, comments, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_DoorWrapper).nac = function (uid, deleted, changeTime, $completion) {
    return this.ead_1.nac(uid, deleted, changeTime, $completion);
  };
  protoOf(CommentsDao_DoorWrapper).oac = function (accountPersonUid, assignmentUid, includeDeleted) {
    return this.ead_1.oac(accountPersonUid, assignmentUid, includeDeleted);
  };
  protoOf(CommentsDao_DoorWrapper).pac = function (submitterUid, assignmentUid, includeDeleted) {
    return this.ead_1.pac(submitterUid, assignmentUid, includeDeleted);
  };
  protoOf(CommentsDao_DoorWrapper).qac = function (assignmentUid, includeDeleted) {
    return this.ead_1.qac(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.y5m('commentsUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_commentsText = $_result.rz('commentsText');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_commentsEntityUid = $_result.y5m('commentsEntityUid');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_commentsStatus = $_result.x5m('commentsStatus');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_commentsFromPersonUid = $_result.y5m('commentsFromPersonUid');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_commentsForSubmitterUid = $_result.y5m('commentsForSubmitterUid');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_commentsFromSubmitterUid = $_result.y5m('commentsFromSubmitterUid');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_commentsFlagged = $_result.j66('commentsFlagged');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_commentsDeleted = $_result.j66('commentsDeleted');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_commentsDateTimeAdded = $_result.y5m('commentsDateTimeAdded');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_commentsLct = $_result.y5m('commentsLct');
      var tmp_9;
      if ($_result.q67()) {
        _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.rad_1 = _tmp_firstNames;
      this_0.sad_1 = _tmp_lastName;
      this_0.tad_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.fad_1 = _tmp_commentsUid;
        this_1.gad_1 = _tmp_commentsText;
        this_1.had_1 = _tmp_commentsEntityUid;
        this_1.iad_1 = _tmp_commentsStatus;
        this_1.jad_1 = _tmp_commentsFromPersonUid;
        this_1.kad_1 = _tmp_commentsForSubmitterUid;
        this_1.lad_1 = _tmp_commentsFromSubmitterUid;
        this_1.mad_1 = _tmp_commentsFlagged;
        this_1.nad_1 = _tmp_commentsDeleted;
        this_1.oad_1 = _tmp_commentsDateTimeAdded;
        this_1.pad_1 = _tmp_commentsLct;
        tmp_10.qad_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.m5s(1);
    };
  }
  function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda($assignmentUid, $accountPersonUid, $includeDeleted, $_limit, $_offset, resultContinuation) {
    this.cae_1 = $assignmentUid;
    this.dae_1 = $accountPersonUid;
    this.eae_1 = $includeDeleted;
    this.fae_1 = $_limit;
    this.gae_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda).iae = function (_stmt, $completion) {
    var tmp = this.m5f(_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.iae((!(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.hae_1.v5h(1, this.cae_1);
            this.hae_1.v5h(2, this.dae_1);
            this.hae_1.v5h(3, this.cae_1);
            this.hae_1.v5h(4, this.cae_1);
            this.hae_1.v5h(5, this.dae_1);
            this.hae_1.v5h(6, this.cae_1);
            this.hae_1.v5h(7, this.dae_1);
            this.hae_1.v5h(8, this.cae_1);
            this.hae_1.v5h(9, this.cae_1);
            this.hae_1.v5h(10, this.dae_1);
            this.hae_1.v5h(11, this.cae_1);
            this.hae_1.i5h(12, this.eae_1);
            this.hae_1.u5h(13, this.fae_1);
            this.hae_1.u5h(14, this.gae_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.hae_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).m5f = function (_stmt, completion) {
    var i = new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda(this.cae_1, this.dae_1, this.eae_1, this.fae_1, this.gae_1, completion);
    i.hae_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.iae(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda($assignmentUid, $accountPersonUid, $includeDeleted, resultContinuation) {
    this.rae_1 = $assignmentUid;
    this.sae_1 = $accountPersonUid;
    this.tae_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.uae_1.v5h(1, this.rae_1);
            this.uae_1.v5h(2, this.sae_1);
            this.uae_1.v5h(3, this.rae_1);
            this.uae_1.v5h(4, this.rae_1);
            this.uae_1.v5h(5, this.sae_1);
            this.uae_1.v5h(6, this.rae_1);
            this.uae_1.v5h(7, this.sae_1);
            this.uae_1.v5h(8, this.rae_1);
            this.uae_1.v5h(9, this.rae_1);
            this.uae_1.v5h(10, this.sae_1);
            this.uae_1.v5h(11, this.rae_1);
            this.uae_1.i5h(12, this.tae_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.uae_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).m5f = function (_stmt, completion) {
    var i = new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda(this.rae_1, this.sae_1, this.tae_1, completion);
    i.uae_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.j6j(_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.y5m('commentsUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_commentsText = $_result.rz('commentsText');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_commentsEntityUid = $_result.y5m('commentsEntityUid');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_commentsStatus = $_result.x5m('commentsStatus');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_commentsFromPersonUid = $_result.y5m('commentsFromPersonUid');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_commentsForSubmitterUid = $_result.y5m('commentsForSubmitterUid');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_commentsFromSubmitterUid = $_result.y5m('commentsFromSubmitterUid');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_commentsFlagged = $_result.j66('commentsFlagged');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_commentsDeleted = $_result.j66('commentsDeleted');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_commentsDateTimeAdded = $_result.y5m('commentsDateTimeAdded');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_commentsLct = $_result.y5m('commentsLct');
      var tmp_9;
      if ($_result.q67()) {
        _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.rad_1 = _tmp_firstNames;
      this_0.sad_1 = _tmp_lastName;
      this_0.tad_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.fad_1 = _tmp_commentsUid;
        this_1.gad_1 = _tmp_commentsText;
        this_1.had_1 = _tmp_commentsEntityUid;
        this_1.iad_1 = _tmp_commentsStatus;
        this_1.jad_1 = _tmp_commentsFromPersonUid;
        this_1.kad_1 = _tmp_commentsForSubmitterUid;
        this_1.lad_1 = _tmp_commentsFromSubmitterUid;
        this_1.mad_1 = _tmp_commentsFlagged;
        this_1.nad_1 = _tmp_commentsDeleted;
        this_1.oad_1 = _tmp_commentsDateTimeAdded;
        this_1.pad_1 = _tmp_commentsLct;
        tmp_10.qad_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.m5s(1);
    };
  }
  function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda($submitterUid, $assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation) {
    this.daf_1 = $submitterUid;
    this.eaf_1 = $assignmentUid;
    this.faf_1 = $includeDeleted;
    this.gaf_1 = $_limit;
    this.haf_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda).iae = function (_stmt, $completion) {
    var tmp = this.m5f(_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.iae((!(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.iaf_1.v5h(1, this.daf_1);
            this.iaf_1.v5h(2, this.eaf_1);
            this.iaf_1.i5h(3, this.faf_1);
            this.iaf_1.u5h(4, this.gaf_1);
            this.iaf_1.u5h(5, this.haf_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.iaf_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).m5f = function (_stmt, completion) {
    var i = new CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda(this.daf_1, this.eaf_1, this.faf_1, this.gaf_1, this.haf_1, completion);
    i.iaf_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.iae(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda($submitterUid, $assignmentUid, $includeDeleted, resultContinuation) {
    this.raf_1 = $submitterUid;
    this.saf_1 = $assignmentUid;
    this.taf_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.uaf_1.v5h(1, this.raf_1);
            this.uaf_1.v5h(2, this.saf_1);
            this.uaf_1.i5h(3, this.taf_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.uaf_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).m5f = function (_stmt, completion) {
    var i = new CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda(this.raf_1, this.saf_1, this.taf_1, completion);
    i.uaf_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.j6j(_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.y5m('commentsUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_commentsText = $_result.rz('commentsText');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_commentsEntityUid = $_result.y5m('commentsEntityUid');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_commentsStatus = $_result.x5m('commentsStatus');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_commentsFromPersonUid = $_result.y5m('commentsFromPersonUid');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_commentsForSubmitterUid = $_result.y5m('commentsForSubmitterUid');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_commentsFromSubmitterUid = $_result.y5m('commentsFromSubmitterUid');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_commentsFlagged = $_result.j66('commentsFlagged');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_commentsDeleted = $_result.j66('commentsDeleted');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_commentsDateTimeAdded = $_result.y5m('commentsDateTimeAdded');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_commentsLct = $_result.y5m('commentsLct');
      var tmp_9;
      if ($_result.q67()) {
        _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.rad_1 = _tmp_firstNames;
      this_0.sad_1 = _tmp_lastName;
      this_0.tad_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.fad_1 = _tmp_commentsUid;
        this_1.gad_1 = _tmp_commentsText;
        this_1.had_1 = _tmp_commentsEntityUid;
        this_1.iad_1 = _tmp_commentsStatus;
        this_1.jad_1 = _tmp_commentsFromPersonUid;
        this_1.kad_1 = _tmp_commentsForSubmitterUid;
        this_1.lad_1 = _tmp_commentsFromSubmitterUid;
        this_1.mad_1 = _tmp_commentsFlagged;
        this_1.nad_1 = _tmp_commentsDeleted;
        this_1.oad_1 = _tmp_commentsDateTimeAdded;
        this_1.pad_1 = _tmp_commentsLct;
        tmp_10.qad_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.m5s(1);
    };
  }
  function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda($assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation) {
    this.dag_1 = $assignmentUid;
    this.eag_1 = $includeDeleted;
    this.fag_1 = $_limit;
    this.gag_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda).iae = function (_stmt, $completion) {
    var tmp = this.m5f(_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.iae((!(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.hag_1.v5h(1, this.dag_1);
            this.hag_1.i5h(2, this.eag_1);
            this.hag_1.u5h(3, this.fag_1);
            this.hag_1.u5h(4, this.gag_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.hag_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).m5f = function (_stmt, completion) {
    var i = new CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda(this.dag_1, this.eag_1, this.fag_1, this.gag_1, completion);
    i.hag_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.iae(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda($assignmentUid, $includeDeleted, resultContinuation) {
    this.qag_1 = $assignmentUid;
    this.rag_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.sag_1.v5h(1, this.qag_1);
            this.sag_1.i5h(2, this.rag_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.sag_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).m5f = function (_stmt, completion) {
    var i = new CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda(this.qag_1, this.rag_1, completion);
    i.sag_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CommentsDao_JdbcImpl$_insertAdapterComments_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.tag_1);
  }
  protoOf(CommentsDao_JdbcImpl$_insertAdapterComments_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO Comments (commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(CommentsDao_JdbcImpl$_insertAdapterComments_abort$1).xag = function (stmt, entity) {
    if (entity.fad_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.fad_1);
    }
    stmt.y5h(2, entity.gad_1);
    stmt.v5h(3, entity.had_1);
    stmt.u5h(4, entity.iad_1);
    stmt.v5h(5, entity.jad_1);
    stmt.v5h(6, entity.kad_1);
    stmt.v5h(7, entity.lad_1);
    stmt.i5h(8, entity.mad_1);
    stmt.i5h(9, entity.nad_1);
    stmt.v5h(10, entity.oad_1);
    stmt.v5h(11, entity.pad_1);
  };
  protoOf(CommentsDao_JdbcImpl$_insertAdapterComments_abort$1).p5f = function (stmt, entity) {
    return this.xag(stmt, entity instanceof Comments ? entity : THROW_CCE());
  };
  function CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda($deleted, $changeTime, $uid, resultContinuation) {
    this.gah_1 = $deleted;
    this.hah_1 = $changeTime;
    this.iah_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.jah_1.i5h(1, this.gah_1);
            this.jah_1.v5h(2, this.hah_1);
            this.jah_1.v5h(3, this.iah_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.jah_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).m5f = function (_stmt, completion) {
    var i = new CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda(this.gah_1, this.hah_1, this.iah_1, completion);
    i.jah_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1(this$0, $assignmentUid, $accountPersonUid, $includeDeleted) {
    this.qah_1 = this$0;
    this.rah_1 = $assignmentUid;
    this.sah_1 = $accountPersonUid;
    this.tah_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.tag_1, tmp$ret$2);
  }
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1).uah = 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.qah_1.tag_1, tmp, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda_0(this.rah_1, this.sah_1, this.tah_1, _limit, _offset, null), $completion);
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1).w5p = function (_limit, _offset, $completion) {
    return this.uah(_limit, _offset, $completion);
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1).q5r = 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.qah_1.tag_1, tmp, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda_0(this.rah_1, this.sah_1, this.tah_1, null), $completion);
  };
  function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1(this$0, $submitterUid, $assignmentUid, $includeDeleted) {
    this.bai_1 = this$0;
    this.cai_1 = $submitterUid;
    this.dai_1 = $assignmentUid;
    this.eai_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.tag_1, tmp$ret$2);
  }
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1).uah = 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.bai_1.tag_1, tmp, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda_0(this.cai_1, this.dai_1, this.eai_1, _limit, _offset, null), $completion);
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1).w5p = function (_limit, _offset, $completion) {
    return this.uah(_limit, _offset, $completion);
  };
  protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1).q5r = 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.bai_1.tag_1, tmp, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda_0(this.cai_1, this.dai_1, this.eai_1, null), $completion);
  };
  function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1(this$0, $assignmentUid, $includeDeleted) {
    this.lai_1 = this$0;
    this.mai_1 = $assignmentUid;
    this.nai_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.tag_1, tmp$ret$2);
  }
  protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1).uah = 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.lai_1.tag_1, tmp, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda_0(this.mai_1, this.nai_1, _limit, _offset, null), $completion);
  };
  protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1).w5p = function (_limit, _offset, $completion) {
    return this.uah(_limit, _offset, $completion);
  };
  protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1).q5r = 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.lai_1.tag_1, tmp, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda_0(this.mai_1, this.nai_1, null), $completion);
  };
  function $insertAsyncCOROUTINE$96(_this__u8e3s4, comments, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.wai_1 = _this__u8e3s4;
    this.xai_1 = comments;
  }
  protoOf($insertAsyncCOROUTINE$96).ud = function () {
    var 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.wai_1.uag_1.w5g(this.xai_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$97(_this__u8e3s4, uid, deleted, changeTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.gaj_1 = _this__u8e3s4;
    this.haj_1 = uid;
    this.iaj_1 = deleted;
    this.jaj_1 = changeTime;
  }
  protoOf($updateDeletedByCommentUidCOROUTINE$97).ud = function () {
    var 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.gaj_1.tag_1, tmp_0, CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda_0(this.iaj_1, this.jaj_1, this.haj_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.tag_1 = _db;
    var tmp = this;
    tmp.uag_1 = new CommentsDao_JdbcImpl$_insertAdapterComments_abort$1(this);
  }
  protoOf(CommentsDao_JdbcImpl).mac = function (comments, $completion) {
    var tmp = new $insertAsyncCOROUTINE$96(this, comments, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_JdbcImpl).nac = function (uid, deleted, changeTime, $completion) {
    var tmp = new $updateDeletedByCommentUidCOROUTINE$97(this, uid, deleted, changeTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_JdbcImpl).oac = function (accountPersonUid, assignmentUid, includeDeleted) {
    return new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1(this, assignmentUid, accountPersonUid, includeDeleted);
  };
  protoOf(CommentsDao_JdbcImpl).pac = function (submitterUid, assignmentUid, includeDeleted) {
    return new CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1(this, submitterUid, assignmentUid, includeDeleted);
  };
  protoOf(CommentsDao_JdbcImpl).qac = 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.saj_1 = this$0;
    this.taj_1 = $comments;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.saj_1.waj_1.mac(this.taj_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).l78 = function (completion) {
    return new CommentsDao_Repo$insertAsync$slambda(this.saj_1, this.taj_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CommentsDao_Repo$updateDeletedByCommentUid$slambda(this$0, $uid, $deleted, $changeTime, resultContinuation) {
    this.iak_1 = this$0;
    this.jak_1 = $uid;
    this.kak_1 = $deleted;
    this.lak_1 = $changeTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_Repo$updateDeletedByCommentUid$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_Repo$updateDeletedByCommentUid$slambda).m78 = function ($completion) {
    return this.j87($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.iak_1.waj_1.nac(this.jak_1, this.kak_1, this.lak_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).l78 = function (completion) {
    return new CommentsDao_Repo$updateDeletedByCommentUid$slambda(this.iak_1, this.jak_1, this.kak_1, this.lak_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda(this$0, $accountPersonUid, $assignmentUid, $includeDeleted, resultContinuation) {
    this.uak_1 = this$0;
    this.vak_1 = $accountPersonUid;
    this.wak_1 = $assignmentUid;
    this.xak_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_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.h86(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.aal_1 = this.uak_1.vaj_1;
            var tmp_1 = this;
            tmp_1.bal_1 = 'CommentsDao/findPrivateCommentsForUserByAssignmentUid';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.cal_1 = this.uak_1.xaj_1;
            var tmp_3 = this;
            tmp_3.dal_1 = this.cal_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.uak_1.vaj_1.j39(), 'CommentsDao/findPrivateCommentsForUserByAssignmentUid');
            doorNodeIdHeader(this_0, this.uak_1.vaj_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.uak_1.vaj_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.vak_1));
            parameter(this_0, 'assignmentUid', this.uak_1.vaj_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.wak_1));
            parameter(this_0, 'includeDeleted', this.uak_1.vaj_1.j39().x65_1.r45(serializer_2(BooleanCompanionObject_instance), this.xak_1));
            pagingSourceLoadParameters(this_0, this.uak_1.vaj_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.yak_1);
            tmp_4.eal_1 = this_0;
            this.eal_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.fal_1 = this.dal_1;
            var tmp_6 = this;
            tmp_6.gal_1 = this.eal_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.gal_1, this.fal_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.hal_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.uak_1.uaj_1, this.hal_1, this.uak_1.vaj_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.zak_1 = endOfPaginationReached(this.hal_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().d5e(e, 'DoorLog', CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda$lambda(this.aal_1, this.bal_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.zak_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).i86 = function (_pagingParams, completion) {
    var i = new CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda(this.uak_1, this.vak_1, this.wak_1, this.xak_1, completion);
    i.yak_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.h86(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda(this$0, $submitterUid, $assignmentUid, $includeDeleted, resultContinuation) {
    this.qal_1 = this$0;
    this.ral_1 = $submitterUid;
    this.sal_1 = $assignmentUid;
    this.tal_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_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.h86(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.wal_1 = this.qal_1.vaj_1;
            var tmp_1 = this;
            tmp_1.xal_1 = 'CommentsDao/findPrivateCommentsForSubmitterByAssignmentUid';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.yal_1 = this.qal_1.xaj_1;
            var tmp_3 = this;
            tmp_3.zal_1 = this.yal_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.qal_1.vaj_1.j39(), 'CommentsDao/findPrivateCommentsForSubmitterByAssignmentUid');
            doorNodeIdHeader(this_0, this.qal_1.vaj_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'submitterUid', this.qal_1.vaj_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ral_1));
            parameter(this_0, 'assignmentUid', this.qal_1.vaj_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.sal_1));
            parameter(this_0, 'includeDeleted', this.qal_1.vaj_1.j39().x65_1.r45(serializer_2(BooleanCompanionObject_instance), this.tal_1));
            pagingSourceLoadParameters(this_0, this.qal_1.vaj_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.ual_1);
            tmp_4.aam_1 = this_0;
            this.aam_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.bam_1 = this.zal_1;
            var tmp_6 = this;
            tmp_6.cam_1 = this.aam_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.cam_1, this.bam_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.dam_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.qal_1.uaj_1, this.dam_1, this.qal_1.vaj_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.val_1 = endOfPaginationReached(this.dam_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().d5e(e, 'DoorLog', CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda$lambda(this.wal_1, this.xal_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.val_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).i86 = function (_pagingParams, completion) {
    var i = new CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda(this.qal_1, this.ral_1, this.sal_1, this.tal_1, completion);
    i.ual_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.h86(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda(this$0, $assignmentUid, $includeDeleted, resultContinuation) {
    this.mam_1 = this$0;
    this.nam_1 = $assignmentUid;
    this.oam_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_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.h86(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.ram_1 = this.mam_1.vaj_1;
            var tmp_1 = this;
            tmp_1.sam_1 = 'CommentsDao/findCourseCommentsByAssignmentUid';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.tam_1 = this.mam_1.xaj_1;
            var tmp_3 = this;
            tmp_3.uam_1 = this.tam_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.mam_1.vaj_1.j39(), 'CommentsDao/findCourseCommentsByAssignmentUid');
            doorNodeIdHeader(this_0, this.mam_1.vaj_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'assignmentUid', this.mam_1.vaj_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.nam_1));
            parameter(this_0, 'includeDeleted', this.mam_1.vaj_1.j39().x65_1.r45(serializer_2(BooleanCompanionObject_instance), this.oam_1));
            pagingSourceLoadParameters(this_0, this.mam_1.vaj_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.pam_1);
            tmp_4.vam_1 = this_0;
            this.vam_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.wam_1 = this.uam_1;
            var tmp_6 = this;
            tmp_6.xam_1 = this.vam_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.xam_1, this.wam_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.yam_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.mam_1.uaj_1, this.yam_1, this.mam_1.vaj_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.qam_1 = endOfPaginationReached(this.yam_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().d5e(e, 'DoorLog', CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda$lambda(this.ram_1, this.sam_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.qam_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).i86 = function (_pagingParams, completion) {
    var i = new CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda(this.mam_1, this.nam_1, this.oam_1, completion);
    i.pam_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.h86(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$98(_this__u8e3s4, comments, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.han_1 = _this__u8e3s4;
    this.ian_1 = comments;
  }
  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 = withRepoChangeMonitorAsync(this.han_1.vaj_1, 'Comments', CommentsDao_Repo$insertAsync$slambda_0(this.han_1, this.ian_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.uaj_1 = _db;
    this.vaj_1 = _repo;
    this.waj_1 = _dao;
    this.xaj_1 = _httpClient;
    this.yaj_1 = _clientId;
    this.zaj_1 = _endpoint;
  }
  protoOf(CommentsDao_Repo).mac = function (comments, $completion) {
    var tmp = new $insertAsyncCOROUTINE$98(this, comments, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CommentsDao_Repo).nac = function (uid, deleted, changeTime, $completion) {
    return withRepoChangeMonitorAsync(this.vaj_1, 'Comments', CommentsDao_Repo$updateDeletedByCommentUid$slambda_0(this, uid, deleted, changeTime, null), $completion);
  };
  protoOf(CommentsDao_Repo).oac = function (accountPersonUid, assignmentUid, includeDeleted) {
    var tmp = this.waj_1.oac(accountPersonUid, assignmentUid, includeDeleted);
    return new DoorRepositoryReplicatePullPagingSource(this.vaj_1, 'CommentsDao/findPrivateCommentsForUserByAssignmentUid', tmp, CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda_0(this, accountPersonUid, assignmentUid, includeDeleted, null));
  };
  protoOf(CommentsDao_Repo).pac = function (submitterUid, assignmentUid, includeDeleted) {
    var tmp = this.waj_1.pac(submitterUid, assignmentUid, includeDeleted);
    return new DoorRepositoryReplicatePullPagingSource(this.vaj_1, 'CommentsDao/findPrivateCommentsForSubmitterByAssignmentUid', tmp, CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda_0(this, submitterUid, assignmentUid, includeDeleted, null));
  };
  protoOf(CommentsDao_Repo).qac = function (assignmentUid, includeDeleted) {
    var tmp = this.waj_1.qac(assignmentUid, includeDeleted);
    return new DoorRepositoryReplicatePullPagingSource(this.vaj_1, 'CommentsDao/findCourseCommentsByAssignmentUid', tmp, CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda_0(this, assignmentUid, includeDeleted, null));
  };
  function ContentCategoryDao() {
  }
  function $insertAsyncCOROUTINE$101(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ran_1 = _this__u8e3s4;
    this.san_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$101).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.tan_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.ran_1.van_1));
            if (this.san_1.xan_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.tan_1.o62(1, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.uan_1 = suspendResult;
            this.san_1.xan_1 = this.uan_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.san_1.dao_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.ran_1.wan_1.insertAsync(this.san_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.san_1.xan_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.van_1 = _db;
    this.wan_1 = _dao;
  }
  protoOf(ContentCategoryDao_DoorWrapper).eao = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$101(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentCategoryDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.eao(entity instanceof ContentCategory ? entity : THROW_CCE(), $completion);
  };
  function ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.fao_1);
  }
  protoOf(ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO ContentCategory (contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1).jao = function (stmt, entity) {
    if (entity.xan_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.xan_1);
    }
    stmt.v5h(2, entity.yan_1);
    stmt.y5h(3, entity.zan_1);
    stmt.v5h(4, entity.aao_1);
    stmt.v5h(5, entity.bao_1);
    stmt.u5h(6, entity.cao_1);
    stmt.v5h(7, entity.dao_1);
  };
  protoOf(ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1).p5f = function (stmt, entity) {
    return this.jao(stmt, entity instanceof ContentCategory ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$102(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.sao_1 = _this__u8e3s4;
    this.tao_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$102).ud = function () {
    var 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.sao_1.gao_1.w5g(this.tao_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.fao_1 = _db;
    var tmp = this;
    tmp.gao_1 = new ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1(this);
  }
  protoOf(ContentCategoryDao_JdbcImpl).eao = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$102(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentCategoryDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.eao(entity instanceof ContentCategory ? entity : THROW_CCE(), $completion);
  };
  function ContentCategoryDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.cap_1 = this$0;
    this.dap_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentCategoryDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentCategoryDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.cap_1.gap_1.insertAsync(this.dap_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).l78 = function (completion) {
    return new ContentCategoryDao_Repo$insertAsync$slambda(this.cap_1, this.dap_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$103(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.sap_1 = _this__u8e3s4;
    this.tap_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$103).ud = function () {
    var 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.sap_1.fap_1, 'ContentCategory', ContentCategoryDao_Repo$insertAsync$slambda_0(this.sap_1, this.tap_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.eap_1 = _db;
    this.fap_1 = _repo;
    this.gap_1 = _dao;
    this.hap_1 = _httpClient;
    this.iap_1 = _clientId;
    this.jap_1 = _endpoint;
  }
  protoOf(ContentCategoryDao_Repo).eao = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$103(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentCategoryDao_Repo).insertAsync = function (entity, $completion) {
    return this.eao(entity instanceof ContentCategory ? entity : THROW_CCE(), $completion);
  };
  function ContentCategorySchemaDao() {
  }
  function $insertAsyncCOROUTINE$104(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.caq_1 = _this__u8e3s4;
    this.daq_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$104).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.eaq_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.caq_1.gaq_1));
            if (this.daq_1.iaq_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.eaq_1.o62(2, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.faq_1 = suspendResult;
            this.daq_1.iaq_1 = this.faq_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.daq_1.oaq_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.caq_1.haq_1.insertAsync(this.daq_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.daq_1.iaq_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.gaq_1 = _db;
    this.haq_1 = _dao;
  }
  protoOf(ContentCategorySchemaDao_DoorWrapper).paq = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$104(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentCategorySchemaDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.paq(entity instanceof ContentCategorySchema ? entity : THROW_CCE(), $completion);
  };
  function ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.qaq_1);
  }
  protoOf(ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO ContentCategorySchema (contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1).uaq = function (stmt, entity) {
    if (entity.iaq_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.iaq_1);
    }
    stmt.y5h(2, entity.jaq_1);
    stmt.y5h(3, entity.kaq_1);
    stmt.v5h(4, entity.laq_1);
    stmt.v5h(5, entity.maq_1);
    stmt.u5h(6, entity.naq_1);
    stmt.v5h(7, entity.oaq_1);
  };
  protoOf(ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1).p5f = function (stmt, entity) {
    return this.uaq(stmt, entity instanceof ContentCategorySchema ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$105(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.dar_1 = _this__u8e3s4;
    this.ear_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$105).ud = function () {
    var 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.dar_1.raq_1.w5g(this.ear_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.qaq_1 = _db;
    var tmp = this;
    tmp.raq_1 = new ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1(this);
  }
  protoOf(ContentCategorySchemaDao_JdbcImpl).paq = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$105(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentCategorySchemaDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.paq(entity instanceof ContentCategorySchema ? entity : THROW_CCE(), $completion);
  };
  function ContentCategorySchemaDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.nar_1 = this$0;
    this.oar_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentCategorySchemaDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentCategorySchemaDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.nar_1.rar_1.insertAsync(this.oar_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).l78 = function (completion) {
    return new ContentCategorySchemaDao_Repo$insertAsync$slambda(this.nar_1, this.oar_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$106(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.das_1 = _this__u8e3s4;
    this.eas_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$106).ud = function () {
    var 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.das_1.qar_1, 'ContentCategorySchema', ContentCategorySchemaDao_Repo$insertAsync$slambda_0(this.das_1, this.eas_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.par_1 = _db;
    this.qar_1 = _repo;
    this.rar_1 = _dao;
    this.sar_1 = _httpClient;
    this.tar_1 = _clientId;
    this.uar_1 = _endpoint;
  }
  protoOf(ContentCategorySchemaDao_Repo).paq = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$106(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentCategorySchemaDao_Repo).insertAsync = function (entity, $completion) {
    return this.paq(entity instanceof ContentCategorySchema ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryContentCategoryJoinDao() {
  }
  function $insertAsyncCOROUTINE$107(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.nas_1 = _this__u8e3s4;
    this.oas_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$107).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.pas_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.nas_1.ras_1));
            if (this.oas_1.tas_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.pas_1.o62(3, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.qas_1 = suspendResult;
            this.oas_1.tas_1 = this.qas_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.oas_1.zas_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.nas_1.sas_1.insertAsync(this.oas_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.oas_1.tas_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.ras_1 = _db;
    this.sas_1 = _dao;
  }
  protoOf(ContentEntryContentCategoryJoinDao_DoorWrapper).aat = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$107(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryContentCategoryJoinDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.aat(entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.bat_1);
  }
  protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO ContentEntryContentCategoryJoin (ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1).fat = function (stmt, entity) {
    if (entity.tas_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.tas_1);
    }
    stmt.v5h(2, entity.uas_1);
    stmt.v5h(3, entity.vas_1);
    stmt.v5h(4, entity.was_1);
    stmt.v5h(5, entity.xas_1);
    stmt.u5h(6, entity.yas_1);
    stmt.v5h(7, entity.zas_1);
  };
  protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1).p5f = function (stmt, entity) {
    return this.fat(stmt, entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$108(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.oat_1 = _this__u8e3s4;
    this.pat_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$108).ud = function () {
    var 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.oat_1.cat_1.w5g(this.pat_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.bat_1 = _db;
    var tmp = this;
    tmp.cat_1 = new ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1(this);
  }
  protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl).aat = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$108(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.aat(entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.yat_1 = this$0;
    this.zat_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.yat_1.cau_1.insertAsync(this.zat_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).l78 = function (completion) {
    return new ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda(this.yat_1, this.zat_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$109(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.oau_1 = _this__u8e3s4;
    this.pau_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$109).ud = function () {
    var 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.oau_1.bau_1, 'ContentEntryContentCategoryJoin', ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda_0(this.oau_1, this.pau_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.aau_1 = _db;
    this.bau_1 = _repo;
    this.cau_1 = _dao;
    this.dau_1 = _httpClient;
    this.eau_1 = _clientId;
    this.fau_1 = _endpoint;
  }
  protoOf(ContentEntryContentCategoryJoinDao_Repo).aat = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$109(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryContentCategoryJoinDao_Repo).insertAsync = function (entity, $completion) {
    return this.aat(entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryDao() {
  }
  function $upsertAsyncCOROUTINE$111(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.hav_1 = _this__u8e3s4;
    this.iav_1 = entity;
  }
  protoOf($upsertAsyncCOROUTINE$111).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.jav_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.hav_1.lav_1));
            if (this.iav_1.nav_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.jav_1.o62(42, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.kav_1 = suspendResult;
            this.iav_1.nav_1 = this.kav_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.iav_1.naw_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.hav_1.mav_1.qau(this.iav_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$112(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.waw_1 = _this__u8e3s4;
    this.xaw_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 = 4;
            this.yaw_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.waw_1.lav_1));
            if (this.xaw_1.nav_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.yaw_1.o62(42, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.zaw_1 = suspendResult;
            this.xaw_1.nav_1 = this.zaw_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.xaw_1.naw_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.waw_1.mav_1.insertAsync(this.xaw_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.xaw_1.nav_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.lav_1 = _db;
    this.mav_1 = _dao;
  }
  protoOf(ContentEntryDao_DoorWrapper).qau = function (entity, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$111(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_DoorWrapper).rau = function (entryUid, $completion) {
    return this.mav_1.rau(entryUid, $completion);
  };
  protoOf(ContentEntryDao_DoorWrapper).sau = function (uid, $completion) {
    return this.mav_1.sau(uid, $completion);
  };
  protoOf(ContentEntryDao_DoorWrapper).tau = function (contentEntryUid, clazzUid, courseBlockUid, accountPersonUid) {
    return this.mav_1.tau(contentEntryUid, clazzUid, courseBlockUid, accountPersonUid);
  };
  protoOf(ContentEntryDao_DoorWrapper).uau = function (entryUid, $completion) {
    return this.mav_1.uau(entryUid, $completion);
  };
  protoOf(ContentEntryDao_DoorWrapper).vau = function (accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted) {
    return this.mav_1.vau(accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted);
  };
  protoOf(ContentEntryDao_DoorWrapper).wau = function (accountPersonUid) {
    return this.mav_1.wau(accountPersonUid);
  };
  protoOf(ContentEntryDao_DoorWrapper).xau = function (accountPersonUid) {
    return this.mav_1.xau(accountPersonUid);
  };
  protoOf(ContentEntryDao_DoorWrapper).yau = function (parentUid) {
    return this.mav_1.yau(parentUid);
  };
  protoOf(ContentEntryDao_DoorWrapper).aax = 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_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.aax(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.y5m('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.x5m('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.y5m('lastModified');
      var _tmp_primaryLanguageUid = $_result.y5m('primaryLanguageUid');
      var _tmp_languageVariantUid = $_result.y5m('languageVariantUid');
      var _tmp_contentFlags = $_result.x5m('contentFlags');
      var _tmp_leaf = $_result.j66('leaf');
      var _tmp_publik = $_result.j66('publik');
      var _tmp_ceInactive = $_result.j66('ceInactive');
      var _tmp_completionCriteria = $_result.x5m('completionCriteria');
      var _tmp_minScore = $_result.x5m('minScore');
      var _tmp_contentTypeFlag = $_result.x5m('contentTypeFlag');
      var _tmp_contentOwner = $_result.y5m('contentOwner');
      var _tmp_contentOwnerType = $_result.x5m('contentOwnerType');
      var _tmp_contentEntryLocalChangeSeqNum = $_result.y5m('contentEntryLocalChangeSeqNum');
      var _tmp_contentEntryMasterChangeSeqNum = $_result.y5m('contentEntryMasterChangeSeqNum');
      var _tmp_contentEntryLastChangedBy = $_result.x5m('contentEntryLastChangedBy');
      var _tmp_contentEntryLct = $_result.y5m('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.nav_1 = _tmp_contentEntryUid;
      this_0.oav_1 = _tmp_title;
      this_0.pav_1 = _tmp_description;
      this_0.qav_1 = _tmp_entryId;
      this_0.rav_1 = _tmp_author;
      this_0.sav_1 = _tmp_publisher;
      this_0.tav_1 = _tmp_licenseType;
      this_0.uav_1 = _tmp_licenseName;
      this_0.vav_1 = _tmp_licenseUrl;
      this_0.wav_1 = _tmp_sourceUrl;
      this_0.xav_1 = _tmp_thumbnailUrl;
      this_0.yav_1 = _tmp_lastModified;
      this_0.zav_1 = _tmp_primaryLanguageUid;
      this_0.aaw_1 = _tmp_languageVariantUid;
      this_0.baw_1 = _tmp_contentFlags;
      this_0.caw_1 = _tmp_leaf;
      this_0.daw_1 = _tmp_publik;
      this_0.eaw_1 = _tmp_ceInactive;
      this_0.faw_1 = _tmp_completionCriteria;
      this_0.gaw_1 = _tmp_minScore;
      this_0.haw_1 = _tmp_contentTypeFlag;
      this_0.iaw_1 = _tmp_contentOwner;
      this_0.jaw_1 = _tmp_contentOwnerType;
      this_0.kaw_1 = _tmp_contentEntryLocalChangeSeqNum;
      this_0.law_1 = _tmp_contentEntryMasterChangeSeqNum;
      this_0.maw_1 = _tmp_contentEntryLastChangedBy;
      this_0.naw_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.y5m('contentEntryUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_title = $_result.rz('title');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_description = $_result.rz('description');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_entryId = $_result.rz('entryId');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_author = $_result.rz('author');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_publisher = $_result.rz('publisher');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_licenseType = $_result.x5m('licenseType');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_licenseName = $_result.rz('licenseName');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_licenseUrl = $_result.rz('licenseUrl');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_sourceUrl = $_result.rz('sourceUrl');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_thumbnailUrl = $_result.rz('thumbnailUrl');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_lastModified = $_result.y5m('lastModified');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_primaryLanguageUid = $_result.y5m('primaryLanguageUid');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_languageVariantUid = $_result.y5m('languageVariantUid');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_contentFlags = $_result.x5m('contentFlags');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_leaf = $_result.j66('leaf');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_publik = $_result.j66('publik');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_ceInactive = $_result.j66('ceInactive');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_completionCriteria = $_result.x5m('completionCriteria');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_minScore = $_result.x5m('minScore');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_contentTypeFlag = $_result.x5m('contentTypeFlag');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_contentOwner = $_result.y5m('contentOwner');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_contentOwnerType = $_result.x5m('contentOwnerType');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_contentEntryLocalChangeSeqNum = $_result.y5m('contentEntryLocalChangeSeqNum');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_contentEntryMasterChangeSeqNum = $_result.y5m('contentEntryMasterChangeSeqNum');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_contentEntryLastChangedBy = $_result.x5m('contentEntryLastChangedBy');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_contentEntryLct = $_result.y5m('contentEntryLct');
      var tmp_25;
      if ($_result.q67()) {
        _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.y5m('cepUid');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_cepLct = $_result.y5m('cepLct');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_cepPictureUri = $_result.rz('cepPictureUri');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_cepThumbnailUri = $_result.rz('cepThumbnailUri');
      var tmp_29;
      if ($_result.q67()) {
        _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.nav_1 = _tmp_contentEntryUid;
        this_1.oav_1 = _tmp_title;
        this_1.pav_1 = _tmp_description;
        this_1.qav_1 = _tmp_entryId;
        this_1.rav_1 = _tmp_author;
        this_1.sav_1 = _tmp_publisher;
        this_1.tav_1 = _tmp_licenseType;
        this_1.uav_1 = _tmp_licenseName;
        this_1.vav_1 = _tmp_licenseUrl;
        this_1.wav_1 = _tmp_sourceUrl;
        this_1.xav_1 = _tmp_thumbnailUrl;
        this_1.yav_1 = _tmp_lastModified;
        this_1.zav_1 = _tmp_primaryLanguageUid;
        this_1.aaw_1 = _tmp_languageVariantUid;
        this_1.baw_1 = _tmp_contentFlags;
        this_1.caw_1 = _tmp_leaf;
        this_1.daw_1 = _tmp_publik;
        this_1.eaw_1 = _tmp_ceInactive;
        this_1.faw_1 = _tmp_completionCriteria;
        this_1.gaw_1 = _tmp_minScore;
        this_1.haw_1 = _tmp_contentTypeFlag;
        this_1.iaw_1 = _tmp_contentOwner;
        this_1.jaw_1 = _tmp_contentOwnerType;
        this_1.kaw_1 = _tmp_contentEntryLocalChangeSeqNum;
        this_1.law_1 = _tmp_contentEntryMasterChangeSeqNum;
        this_1.maw_1 = _tmp_contentEntryLastChangedBy;
        this_1.naw_1 = _tmp_contentEntryLct;
        tmp_30.bax_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.dax_1 = _tmp_cepUid;
        this_2.eax_1 = _tmp_cepLct;
        this_2.fax_1 = _tmp_cepPictureUri;
        this_2.gax_1 = _tmp_cepThumbnailUri;
        tmp_31.cax_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.y5m('contentEntryUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_title = $_result.rz('title');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_description = $_result.rz('description');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_entryId = $_result.rz('entryId');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_author = $_result.rz('author');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_publisher = $_result.rz('publisher');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_licenseType = $_result.x5m('licenseType');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_licenseName = $_result.rz('licenseName');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_licenseUrl = $_result.rz('licenseUrl');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_sourceUrl = $_result.rz('sourceUrl');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_thumbnailUrl = $_result.rz('thumbnailUrl');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_lastModified = $_result.y5m('lastModified');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_primaryLanguageUid = $_result.y5m('primaryLanguageUid');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_languageVariantUid = $_result.y5m('languageVariantUid');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_contentFlags = $_result.x5m('contentFlags');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_leaf = $_result.j66('leaf');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_publik = $_result.j66('publik');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_ceInactive = $_result.j66('ceInactive');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_completionCriteria = $_result.x5m('completionCriteria');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_minScore = $_result.x5m('minScore');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_contentTypeFlag = $_result.x5m('contentTypeFlag');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_contentOwner = $_result.y5m('contentOwner');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_contentOwnerType = $_result.x5m('contentOwnerType');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_contentEntryLocalChangeSeqNum = $_result.y5m('contentEntryLocalChangeSeqNum');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_contentEntryMasterChangeSeqNum = $_result.y5m('contentEntryMasterChangeSeqNum');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_contentEntryLastChangedBy = $_result.x5m('contentEntryLastChangedBy');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_contentEntryLct = $_result.y5m('contentEntryLct');
      var tmp_25;
      if ($_result.q67()) {
        _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.y5m('cevUid');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_cevContentEntryUid = $_result.y5m('cevContentEntryUid');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_cevOpenUri = $_result.rz('cevOpenUri');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_cevContentType = $_result.rz('cevContentType');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_cevManifestUrl = $_result.rz('cevManifestUrl');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_cevSize = $_result.y5m('cevSize');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_cevInActive = $_result.j66('cevInActive');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_cevLastModified = $_result.y5m('cevLastModified');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_cevLct = $_result.y5m('cevLct');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_cevStorageSize = $_result.y5m('cevStorageSize');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_cevOriginalSize = $_result.y5m('cevOriginalSize');
      var tmp_36;
      if ($_result.q67()) {
        _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.y5m('cepUid');
      var tmp_37;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_cepLct = $_result.y5m('cepLct');
      var tmp_38;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_cepPictureUri = $_result.rz('cepPictureUri');
      var tmp_39;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_cepThumbnailUri = $_result.rz('cepThumbnailUri');
      var tmp_40;
      if ($_result.q67()) {
        _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.y5m('sPersonUid');
      var tmp_41;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_sCbUid = $_result.y5m('sCbUid');
      var tmp_42;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_sProgress = getIntNullable($_result, 'sProgress');
      var tmp_43;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_sIsCompleted = $_result.j66('sIsCompleted');
      var tmp_44;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess');
      var tmp_45;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_45 = Unit_instance;
      }
      var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled');
      var tmp_46;
      if ($_result.q67()) {
        _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.nav_1 = _tmp_contentEntryUid;
        this_1.oav_1 = _tmp_title;
        this_1.pav_1 = _tmp_description;
        this_1.qav_1 = _tmp_entryId;
        this_1.rav_1 = _tmp_author;
        this_1.sav_1 = _tmp_publisher;
        this_1.tav_1 = _tmp_licenseType;
        this_1.uav_1 = _tmp_licenseName;
        this_1.vav_1 = _tmp_licenseUrl;
        this_1.wav_1 = _tmp_sourceUrl;
        this_1.xav_1 = _tmp_thumbnailUrl;
        this_1.yav_1 = _tmp_lastModified;
        this_1.zav_1 = _tmp_primaryLanguageUid;
        this_1.aaw_1 = _tmp_languageVariantUid;
        this_1.baw_1 = _tmp_contentFlags;
        this_1.caw_1 = _tmp_leaf;
        this_1.daw_1 = _tmp_publik;
        this_1.eaw_1 = _tmp_ceInactive;
        this_1.faw_1 = _tmp_completionCriteria;
        this_1.gaw_1 = _tmp_minScore;
        this_1.haw_1 = _tmp_contentTypeFlag;
        this_1.iaw_1 = _tmp_contentOwner;
        this_1.jaw_1 = _tmp_contentOwnerType;
        this_1.kaw_1 = _tmp_contentEntryLocalChangeSeqNum;
        this_1.law_1 = _tmp_contentEntryMasterChangeSeqNum;
        this_1.maw_1 = _tmp_contentEntryLastChangedBy;
        this_1.naw_1 = _tmp_contentEntryLct;
        tmp_47.hax_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.lax_1 = _tmp_cevUid;
        this_2.max_1 = _tmp_cevContentEntryUid;
        this_2.nax_1 = _tmp_cevOpenUri;
        this_2.oax_1 = _tmp_cevContentType;
        this_2.pax_1 = _tmp_cevManifestUrl;
        this_2.qax_1 = _tmp_cevSize;
        this_2.rax_1 = _tmp_cevInActive;
        this_2.sax_1 = _tmp_cevLastModified;
        this_2.tax_1 = _tmp_cevLct;
        this_2.uax_1 = _tmp_cevStorageSize;
        this_2.vax_1 = _tmp_cevOriginalSize;
        tmp_48.iax_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.dax_1 = _tmp_cepUid;
        this_3.eax_1 = _tmp_cepLct;
        this_3.fax_1 = _tmp_cepPictureUri;
        this_3.gax_1 = _tmp_cepThumbnailUri;
        tmp_49.jax_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.wax_1 = _tmp_sPersonUid;
        this_4.xax_1 = _tmp_sCbUid;
        this_4.yax_1 = _tmp_sProgress;
        this_4.zax_1 = _tmp_sIsCompleted;
        this_4.aay_1 = _tmp_sIsSuccess;
        this_4.bay_1 = _tmp_sScoreScaled;
        tmp_50.kax_1 = this_4;
      }
      return this_0;
    };
  }
  function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation) {
    this.kay_1 = $clazzUid;
    this.lay_1 = $accountPersonUid;
    this.may_1 = $courseBlockUid;
    this.nay_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda).pay = function (_stmt, $completion) {
    var tmp = this.m5f(_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.pay((!(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.oay_1.v5h(1, this.kay_1);
            this.oay_1.v5h(2, this.kay_1);
            this.oay_1.v5h(3, this.lay_1);
            this.oay_1.v5h(4, this.lay_1);
            this.oay_1.v5h(5, this.may_1);
            this.oay_1.v5h(6, this.lay_1);
            this.oay_1.v5h(7, this.lay_1);
            this.oay_1.v5h(8, this.lay_1);
            this.oay_1.v5h(9, this.lay_1);
            this.oay_1.v5h(10, this.lay_1);
            this.oay_1.v5h(11, this.nay_1);
            this.oay_1.v5h(12, this.nay_1);
            this.oay_1.v5h(13, this.nay_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.oay_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).m5f = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda(this.kay_1, this.lay_1, this.may_1, this.nay_1, completion);
    i.oay_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.pay(_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.x60(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.y5m('contentEntryUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_title = $_result.rz('title');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_description = $_result.rz('description');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_entryId = $_result.rz('entryId');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_author = $_result.rz('author');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_publisher = $_result.rz('publisher');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_licenseType = $_result.x5m('licenseType');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_licenseName = $_result.rz('licenseName');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_licenseUrl = $_result.rz('licenseUrl');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_sourceUrl = $_result.rz('sourceUrl');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_thumbnailUrl = $_result.rz('thumbnailUrl');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_lastModified = $_result.y5m('lastModified');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_primaryLanguageUid = $_result.y5m('primaryLanguageUid');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_languageVariantUid = $_result.y5m('languageVariantUid');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_contentFlags = $_result.x5m('contentFlags');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_leaf = $_result.j66('leaf');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_publik = $_result.j66('publik');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_ceInactive = $_result.j66('ceInactive');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_completionCriteria = $_result.x5m('completionCriteria');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_minScore = $_result.x5m('minScore');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_contentTypeFlag = $_result.x5m('contentTypeFlag');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_contentOwner = $_result.y5m('contentOwner');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_contentOwnerType = $_result.x5m('contentOwnerType');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_contentEntryLocalChangeSeqNum = $_result.y5m('contentEntryLocalChangeSeqNum');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_contentEntryMasterChangeSeqNum = $_result.y5m('contentEntryMasterChangeSeqNum');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_contentEntryLastChangedBy = $_result.x5m('contentEntryLastChangedBy');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_contentEntryLct = $_result.y5m('contentEntryLct');
      var tmp_25;
      if ($_result.q67()) {
        _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.y5m('cepUid');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_cepLct = $_result.y5m('cepLct');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_cepPictureUri = $_result.rz('cepPictureUri');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_cepThumbnailUri = $_result.rz('cepThumbnailUri');
      var tmp_29;
      if ($_result.q67()) {
        _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.y5m('cepcjUid');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_cepcjLocalChangeSeqNum = $_result.y5m('cepcjLocalChangeSeqNum');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_cepcjMasterChangeSeqNum = $_result.y5m('cepcjMasterChangeSeqNum');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_cepcjLastChangedBy = $_result.x5m('cepcjLastChangedBy');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_cepcjLct = $_result.y5m('cepcjLct');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_cepcjDeleted = $_result.j66('cepcjDeleted');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_cepcjParentContentEntryUid = $_result.y5m('cepcjParentContentEntryUid');
      var tmp_36;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_cepcjChildContentEntryUid = $_result.y5m('cepcjChildContentEntryUid');
      var tmp_37;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_childIndex = $_result.x5m('childIndex');
      var tmp_38;
      if ($_result.q67()) {
        _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.y5m('sPersonUid');
      var tmp_39;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_sCbUid = $_result.y5m('sCbUid');
      var tmp_40;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_sProgress = getIntNullable($_result, 'sProgress');
      var tmp_41;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_sIsCompleted = $_result.j66('sIsCompleted');
      var tmp_42;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess');
      var tmp_43;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled');
      var tmp_44;
      if ($_result.q67()) {
        _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.nav_1 = _tmp_contentEntryUid;
        this_1.oav_1 = _tmp_title;
        this_1.pav_1 = _tmp_description;
        this_1.qav_1 = _tmp_entryId;
        this_1.rav_1 = _tmp_author;
        this_1.sav_1 = _tmp_publisher;
        this_1.tav_1 = _tmp_licenseType;
        this_1.uav_1 = _tmp_licenseName;
        this_1.vav_1 = _tmp_licenseUrl;
        this_1.wav_1 = _tmp_sourceUrl;
        this_1.xav_1 = _tmp_thumbnailUrl;
        this_1.yav_1 = _tmp_lastModified;
        this_1.zav_1 = _tmp_primaryLanguageUid;
        this_1.aaw_1 = _tmp_languageVariantUid;
        this_1.baw_1 = _tmp_contentFlags;
        this_1.caw_1 = _tmp_leaf;
        this_1.daw_1 = _tmp_publik;
        this_1.eaw_1 = _tmp_ceInactive;
        this_1.faw_1 = _tmp_completionCriteria;
        this_1.gaw_1 = _tmp_minScore;
        this_1.haw_1 = _tmp_contentTypeFlag;
        this_1.iaw_1 = _tmp_contentOwner;
        this_1.jaw_1 = _tmp_contentOwnerType;
        this_1.kaw_1 = _tmp_contentEntryLocalChangeSeqNum;
        this_1.law_1 = _tmp_contentEntryMasterChangeSeqNum;
        this_1.maw_1 = _tmp_contentEntryLastChangedBy;
        this_1.naw_1 = _tmp_contentEntryLct;
        tmp_45.qay_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.dax_1 = _tmp_cepUid;
        this_2.eax_1 = _tmp_cepLct;
        this_2.fax_1 = _tmp_cepPictureUri;
        this_2.gax_1 = _tmp_cepThumbnailUri;
        tmp_46.ray_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.xay_1 = _tmp_cepcjUid;
        this_3.yay_1 = _tmp_cepcjLocalChangeSeqNum;
        this_3.zay_1 = _tmp_cepcjMasterChangeSeqNum;
        this_3.aaz_1 = _tmp_cepcjLastChangedBy;
        this_3.baz_1 = _tmp_cepcjLct;
        this_3.caz_1 = _tmp_cepcjDeleted;
        this_3.uay_1 = _tmp_cepcjParentContentEntryUid;
        this_3.vay_1 = _tmp_cepcjChildContentEntryUid;
        this_3.way_1 = _tmp_childIndex;
        tmp_47.say_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.wax_1 = _tmp_sPersonUid;
        this_4.xax_1 = _tmp_sCbUid;
        this_4.yax_1 = _tmp_sProgress;
        this_4.zax_1 = _tmp_sIsCompleted;
        this_4.aay_1 = _tmp_sIsSuccess;
        this_4.bay_1 = _tmp_sScoreScaled;
        tmp_48.tay_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.m5s(1);
    };
  }
  function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, $_limit, $_offset, resultContinuation) {
    this.laz_1 = $accountPersonUid;
    this.maz_1 = $parentUid;
    this.naz_1 = $langParam;
    this.oaz_1 = $categoryParam0;
    this.paz_1 = $includeDeleted;
    this.qaz_1 = $sortOrder;
    this.raz_1 = $_limit;
    this.saz_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda).uaz = function (_stmt, $completion) {
    var tmp = this.m5f(_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.uaz((!(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.taz_1.v5h(1, this.laz_1);
            this.taz_1.v5h(2, this.laz_1);
            this.taz_1.v5h(3, this.laz_1);
            this.taz_1.v5h(4, this.laz_1);
            this.taz_1.v5h(5, this.laz_1);
            this.taz_1.v5h(6, this.laz_1);
            this.taz_1.v5h(7, this.maz_1);
            this.taz_1.v5h(8, this.naz_1);
            this.taz_1.v5h(9, this.naz_1);
            this.taz_1.v5h(10, this.oaz_1);
            this.taz_1.v5h(11, this.oaz_1);
            this.taz_1.i5h(12, this.paz_1);
            this.taz_1.u5h(13, this.qaz_1);
            this.taz_1.u5h(14, this.qaz_1);
            this.taz_1.u5h(15, this.raz_1);
            this.taz_1.u5h(16, this.saz_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.taz_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).m5f = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda(this.laz_1, this.maz_1, this.naz_1, this.oaz_1, this.paz_1, this.qaz_1, this.raz_1, this.saz_1, completion);
    i.taz_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.uaz(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, resultContinuation) {
    this.db0_1 = $accountPersonUid;
    this.eb0_1 = $parentUid;
    this.fb0_1 = $langParam;
    this.gb0_1 = $categoryParam0;
    this.hb0_1 = $includeDeleted;
    this.ib0_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.jb0_1.v5h(1, this.db0_1);
            this.jb0_1.v5h(2, this.db0_1);
            this.jb0_1.v5h(3, this.db0_1);
            this.jb0_1.v5h(4, this.db0_1);
            this.jb0_1.v5h(5, this.db0_1);
            this.jb0_1.v5h(6, this.db0_1);
            this.jb0_1.v5h(7, this.eb0_1);
            this.jb0_1.v5h(8, this.fb0_1);
            this.jb0_1.v5h(9, this.fb0_1);
            this.jb0_1.v5h(10, this.gb0_1);
            this.jb0_1.v5h(11, this.gb0_1);
            this.jb0_1.i5h(12, this.hb0_1);
            this.jb0_1.u5h(13, this.ib0_1);
            this.jb0_1.u5h(14, this.ib0_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.jb0_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).m5f = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda(this.db0_1, this.eb0_1, this.fb0_1, this.gb0_1, this.hb0_1, this.ib0_1, completion);
    i.jb0_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.j6j(_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.y5m('contentEntryUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_title = $_result.rz('title');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_description = $_result.rz('description');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_entryId = $_result.rz('entryId');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_author = $_result.rz('author');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_publisher = $_result.rz('publisher');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_licenseType = $_result.x5m('licenseType');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_licenseName = $_result.rz('licenseName');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_licenseUrl = $_result.rz('licenseUrl');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_sourceUrl = $_result.rz('sourceUrl');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_thumbnailUrl = $_result.rz('thumbnailUrl');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_lastModified = $_result.y5m('lastModified');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_primaryLanguageUid = $_result.y5m('primaryLanguageUid');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_languageVariantUid = $_result.y5m('languageVariantUid');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_contentFlags = $_result.x5m('contentFlags');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_leaf = $_result.j66('leaf');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_publik = $_result.j66('publik');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_ceInactive = $_result.j66('ceInactive');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_completionCriteria = $_result.x5m('completionCriteria');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_minScore = $_result.x5m('minScore');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_contentTypeFlag = $_result.x5m('contentTypeFlag');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_contentOwner = $_result.y5m('contentOwner');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_contentOwnerType = $_result.x5m('contentOwnerType');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_contentEntryLocalChangeSeqNum = $_result.y5m('contentEntryLocalChangeSeqNum');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_contentEntryMasterChangeSeqNum = $_result.y5m('contentEntryMasterChangeSeqNum');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_contentEntryLastChangedBy = $_result.x5m('contentEntryLastChangedBy');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_contentEntryLct = $_result.y5m('contentEntryLct');
      var tmp_25;
      if ($_result.q67()) {
        _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.y5m('cepUid');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_cepLct = $_result.y5m('cepLct');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_cepPictureUri = $_result.rz('cepPictureUri');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_cepThumbnailUri = $_result.rz('cepThumbnailUri');
      var tmp_29;
      if ($_result.q67()) {
        _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.y5m('cepcjUid');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_cepcjLocalChangeSeqNum = $_result.y5m('cepcjLocalChangeSeqNum');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_cepcjMasterChangeSeqNum = $_result.y5m('cepcjMasterChangeSeqNum');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_cepcjLastChangedBy = $_result.x5m('cepcjLastChangedBy');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_cepcjLct = $_result.y5m('cepcjLct');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_cepcjDeleted = $_result.j66('cepcjDeleted');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_cepcjParentContentEntryUid = $_result.y5m('cepcjParentContentEntryUid');
      var tmp_36;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_cepcjChildContentEntryUid = $_result.y5m('cepcjChildContentEntryUid');
      var tmp_37;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_childIndex = $_result.x5m('childIndex');
      var tmp_38;
      if ($_result.q67()) {
        _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.y5m('sPersonUid');
      var tmp_39;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_sCbUid = $_result.y5m('sCbUid');
      var tmp_40;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_sProgress = getIntNullable($_result, 'sProgress');
      var tmp_41;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_sIsCompleted = $_result.j66('sIsCompleted');
      var tmp_42;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess');
      var tmp_43;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled');
      var tmp_44;
      if ($_result.q67()) {
        _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.nav_1 = _tmp_contentEntryUid;
        this_1.oav_1 = _tmp_title;
        this_1.pav_1 = _tmp_description;
        this_1.qav_1 = _tmp_entryId;
        this_1.rav_1 = _tmp_author;
        this_1.sav_1 = _tmp_publisher;
        this_1.tav_1 = _tmp_licenseType;
        this_1.uav_1 = _tmp_licenseName;
        this_1.vav_1 = _tmp_licenseUrl;
        this_1.wav_1 = _tmp_sourceUrl;
        this_1.xav_1 = _tmp_thumbnailUrl;
        this_1.yav_1 = _tmp_lastModified;
        this_1.zav_1 = _tmp_primaryLanguageUid;
        this_1.aaw_1 = _tmp_languageVariantUid;
        this_1.baw_1 = _tmp_contentFlags;
        this_1.caw_1 = _tmp_leaf;
        this_1.daw_1 = _tmp_publik;
        this_1.eaw_1 = _tmp_ceInactive;
        this_1.faw_1 = _tmp_completionCriteria;
        this_1.gaw_1 = _tmp_minScore;
        this_1.haw_1 = _tmp_contentTypeFlag;
        this_1.iaw_1 = _tmp_contentOwner;
        this_1.jaw_1 = _tmp_contentOwnerType;
        this_1.kaw_1 = _tmp_contentEntryLocalChangeSeqNum;
        this_1.law_1 = _tmp_contentEntryMasterChangeSeqNum;
        this_1.maw_1 = _tmp_contentEntryLastChangedBy;
        this_1.naw_1 = _tmp_contentEntryLct;
        tmp_45.qay_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.dax_1 = _tmp_cepUid;
        this_2.eax_1 = _tmp_cepLct;
        this_2.fax_1 = _tmp_cepPictureUri;
        this_2.gax_1 = _tmp_cepThumbnailUri;
        tmp_46.ray_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.xay_1 = _tmp_cepcjUid;
        this_3.yay_1 = _tmp_cepcjLocalChangeSeqNum;
        this_3.zay_1 = _tmp_cepcjMasterChangeSeqNum;
        this_3.aaz_1 = _tmp_cepcjLastChangedBy;
        this_3.baz_1 = _tmp_cepcjLct;
        this_3.caz_1 = _tmp_cepcjDeleted;
        this_3.uay_1 = _tmp_cepcjParentContentEntryUid;
        this_3.vay_1 = _tmp_cepcjChildContentEntryUid;
        this_3.way_1 = _tmp_childIndex;
        tmp_47.say_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.wax_1 = _tmp_sPersonUid;
        this_4.xax_1 = _tmp_sCbUid;
        this_4.yax_1 = _tmp_sProgress;
        this_4.zax_1 = _tmp_sIsCompleted;
        this_4.aay_1 = _tmp_sIsSuccess;
        this_4.bay_1 = _tmp_sScoreScaled;
        tmp_48.tay_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.m5s(1);
    };
  }
  function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda($accountPersonUid, $_limit, $_offset, resultContinuation) {
    this.sb0_1 = $accountPersonUid;
    this.tb0_1 = $_limit;
    this.ub0_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda).uaz = function (_stmt, $completion) {
    var tmp = this.m5f(_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.uaz((!(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.vb0_1.v5h(1, this.sb0_1);
            this.vb0_1.v5h(2, this.sb0_1);
            this.vb0_1.v5h(3, this.sb0_1);
            this.vb0_1.v5h(4, this.sb0_1);
            this.vb0_1.v5h(5, this.sb0_1);
            this.vb0_1.v5h(6, this.sb0_1);
            this.vb0_1.v5h(7, this.sb0_1);
            this.vb0_1.u5h(8, this.tb0_1);
            this.vb0_1.u5h(9, this.ub0_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.vb0_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).m5f = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda(this.sb0_1, this.tb0_1, this.ub0_1, completion);
    i.vb0_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.uaz(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda($accountPersonUid, resultContinuation) {
    this.eb1_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.fb1_1.v5h(1, this.eb1_1);
            this.fb1_1.v5h(2, this.eb1_1);
            this.fb1_1.v5h(3, this.eb1_1);
            this.fb1_1.v5h(4, this.eb1_1);
            this.fb1_1.v5h(5, this.eb1_1);
            this.fb1_1.v5h(6, this.eb1_1);
            this.fb1_1.v5h(7, this.eb1_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.fb1_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).m5f = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda(this.eb1_1, completion);
    i.fb1_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.j6j(_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.y5m('contentEntryUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_title = $_result.rz('title');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_description = $_result.rz('description');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_entryId = $_result.rz('entryId');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_author = $_result.rz('author');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_publisher = $_result.rz('publisher');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_licenseType = $_result.x5m('licenseType');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_licenseName = $_result.rz('licenseName');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_licenseUrl = $_result.rz('licenseUrl');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_sourceUrl = $_result.rz('sourceUrl');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_thumbnailUrl = $_result.rz('thumbnailUrl');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_lastModified = $_result.y5m('lastModified');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_primaryLanguageUid = $_result.y5m('primaryLanguageUid');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_languageVariantUid = $_result.y5m('languageVariantUid');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_contentFlags = $_result.x5m('contentFlags');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_leaf = $_result.j66('leaf');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_publik = $_result.j66('publik');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_ceInactive = $_result.j66('ceInactive');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_completionCriteria = $_result.x5m('completionCriteria');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_minScore = $_result.x5m('minScore');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_contentTypeFlag = $_result.x5m('contentTypeFlag');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_contentOwner = $_result.y5m('contentOwner');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_contentOwnerType = $_result.x5m('contentOwnerType');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_contentEntryLocalChangeSeqNum = $_result.y5m('contentEntryLocalChangeSeqNum');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_contentEntryMasterChangeSeqNum = $_result.y5m('contentEntryMasterChangeSeqNum');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_contentEntryLastChangedBy = $_result.x5m('contentEntryLastChangedBy');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_contentEntryLct = $_result.y5m('contentEntryLct');
      var tmp_25;
      if ($_result.q67()) {
        _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.y5m('cepUid');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_cepLct = $_result.y5m('cepLct');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_cepPictureUri = $_result.rz('cepPictureUri');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_cepThumbnailUri = $_result.rz('cepThumbnailUri');
      var tmp_29;
      if ($_result.q67()) {
        _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.y5m('cepcjUid');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_cepcjLocalChangeSeqNum = $_result.y5m('cepcjLocalChangeSeqNum');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_cepcjMasterChangeSeqNum = $_result.y5m('cepcjMasterChangeSeqNum');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_cepcjLastChangedBy = $_result.x5m('cepcjLastChangedBy');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_cepcjLct = $_result.y5m('cepcjLct');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_cepcjDeleted = $_result.j66('cepcjDeleted');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_cepcjParentContentEntryUid = $_result.y5m('cepcjParentContentEntryUid');
      var tmp_36;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_cepcjChildContentEntryUid = $_result.y5m('cepcjChildContentEntryUid');
      var tmp_37;
      if ($_result.q67()) {
        _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_childIndex = $_result.x5m('childIndex');
      var tmp_38;
      if ($_result.q67()) {
        _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.y5m('sPersonUid');
      var tmp_39;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_sCbUid = $_result.y5m('sCbUid');
      var tmp_40;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_sProgress = getIntNullable($_result, 'sProgress');
      var tmp_41;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_sIsCompleted = $_result.j66('sIsCompleted');
      var tmp_42;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess');
      var tmp_43;
      if ($_result.q67()) {
        _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled');
      var tmp_44;
      if ($_result.q67()) {
        _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.nav_1 = _tmp_contentEntryUid;
        this_1.oav_1 = _tmp_title;
        this_1.pav_1 = _tmp_description;
        this_1.qav_1 = _tmp_entryId;
        this_1.rav_1 = _tmp_author;
        this_1.sav_1 = _tmp_publisher;
        this_1.tav_1 = _tmp_licenseType;
        this_1.uav_1 = _tmp_licenseName;
        this_1.vav_1 = _tmp_licenseUrl;
        this_1.wav_1 = _tmp_sourceUrl;
        this_1.xav_1 = _tmp_thumbnailUrl;
        this_1.yav_1 = _tmp_lastModified;
        this_1.zav_1 = _tmp_primaryLanguageUid;
        this_1.aaw_1 = _tmp_languageVariantUid;
        this_1.baw_1 = _tmp_contentFlags;
        this_1.caw_1 = _tmp_leaf;
        this_1.daw_1 = _tmp_publik;
        this_1.eaw_1 = _tmp_ceInactive;
        this_1.faw_1 = _tmp_completionCriteria;
        this_1.gaw_1 = _tmp_minScore;
        this_1.haw_1 = _tmp_contentTypeFlag;
        this_1.iaw_1 = _tmp_contentOwner;
        this_1.jaw_1 = _tmp_contentOwnerType;
        this_1.kaw_1 = _tmp_contentEntryLocalChangeSeqNum;
        this_1.law_1 = _tmp_contentEntryMasterChangeSeqNum;
        this_1.maw_1 = _tmp_contentEntryLastChangedBy;
        this_1.naw_1 = _tmp_contentEntryLct;
        tmp_45.qay_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.dax_1 = _tmp_cepUid;
        this_2.eax_1 = _tmp_cepLct;
        this_2.fax_1 = _tmp_cepPictureUri;
        this_2.gax_1 = _tmp_cepThumbnailUri;
        tmp_46.ray_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.xay_1 = _tmp_cepcjUid;
        this_3.yay_1 = _tmp_cepcjLocalChangeSeqNum;
        this_3.zay_1 = _tmp_cepcjMasterChangeSeqNum;
        this_3.aaz_1 = _tmp_cepcjLastChangedBy;
        this_3.baz_1 = _tmp_cepcjLct;
        this_3.caz_1 = _tmp_cepcjDeleted;
        this_3.uay_1 = _tmp_cepcjParentContentEntryUid;
        this_3.vay_1 = _tmp_cepcjChildContentEntryUid;
        this_3.way_1 = _tmp_childIndex;
        tmp_47.say_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.wax_1 = _tmp_sPersonUid;
        this_4.xax_1 = _tmp_sCbUid;
        this_4.yax_1 = _tmp_sProgress;
        this_4.zax_1 = _tmp_sIsCompleted;
        this_4.aay_1 = _tmp_sIsSuccess;
        this_4.bay_1 = _tmp_sScoreScaled;
        tmp_48.tay_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.m5s(1);
    };
  }
  function ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda($accountPersonUid, $_limit, $_offset, resultContinuation) {
    this.ob1_1 = $accountPersonUid;
    this.pb1_1 = $_limit;
    this.qb1_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda).uaz = function (_stmt, $completion) {
    var tmp = this.m5f(_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.uaz((!(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.rb1_1.v5h(1, this.ob1_1);
            this.rb1_1.v5h(2, this.ob1_1);
            this.rb1_1.v5h(3, this.ob1_1);
            this.rb1_1.v5h(4, this.ob1_1);
            this.rb1_1.v5h(5, this.ob1_1);
            this.rb1_1.v5h(6, this.ob1_1);
            this.rb1_1.v5h(7, this.ob1_1);
            this.rb1_1.u5h(8, this.pb1_1);
            this.rb1_1.u5h(9, this.qb1_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.rb1_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).m5f = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda(this.ob1_1, this.pb1_1, this.qb1_1, completion);
    i.rb1_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.uaz(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda($accountPersonUid, resultContinuation) {
    this.ab2_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.bb2_1.v5h(1, this.ab2_1);
            this.bb2_1.v5h(2, this.ab2_1);
            this.bb2_1.v5h(3, this.ab2_1);
            this.bb2_1.v5h(4, this.ab2_1);
            this.bb2_1.v5h(5, this.ab2_1);
            this.bb2_1.v5h(6, this.ab2_1);
            this.bb2_1.v5h(7, this.ab2_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.bb2_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).m5f = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda(this.ab2_1, completion);
    i.bb2_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda$lambda$lambda(_result));
  }
  function ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_contentEntryUid = $_result.y5m('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.x5m('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.y5m('lastModified');
      var _tmp_primaryLanguageUid = $_result.y5m('primaryLanguageUid');
      var _tmp_languageVariantUid = $_result.y5m('languageVariantUid');
      var _tmp_contentFlags = $_result.x5m('contentFlags');
      var _tmp_leaf = $_result.j66('leaf');
      var _tmp_publik = $_result.j66('publik');
      var _tmp_ceInactive = $_result.j66('ceInactive');
      var _tmp_completionCriteria = $_result.x5m('completionCriteria');
      var _tmp_minScore = $_result.x5m('minScore');
      var _tmp_contentTypeFlag = $_result.x5m('contentTypeFlag');
      var _tmp_contentOwner = $_result.y5m('contentOwner');
      var _tmp_contentOwnerType = $_result.x5m('contentOwnerType');
      var _tmp_contentEntryLocalChangeSeqNum = $_result.y5m('contentEntryLocalChangeSeqNum');
      var _tmp_contentEntryMasterChangeSeqNum = $_result.y5m('contentEntryMasterChangeSeqNum');
      var _tmp_contentEntryLastChangedBy = $_result.x5m('contentEntryLastChangedBy');
      var _tmp_contentEntryLct = $_result.y5m('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.findLiveContentEntry.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.nav_1 = _tmp_contentEntryUid;
      this_0.oav_1 = _tmp_title;
      this_0.pav_1 = _tmp_description;
      this_0.qav_1 = _tmp_entryId;
      this_0.rav_1 = _tmp_author;
      this_0.sav_1 = _tmp_publisher;
      this_0.tav_1 = _tmp_licenseType;
      this_0.uav_1 = _tmp_licenseName;
      this_0.vav_1 = _tmp_licenseUrl;
      this_0.wav_1 = _tmp_sourceUrl;
      this_0.xav_1 = _tmp_thumbnailUrl;
      this_0.yav_1 = _tmp_lastModified;
      this_0.zav_1 = _tmp_primaryLanguageUid;
      this_0.aaw_1 = _tmp_languageVariantUid;
      this_0.baw_1 = _tmp_contentFlags;
      this_0.caw_1 = _tmp_leaf;
      this_0.daw_1 = _tmp_publik;
      this_0.eaw_1 = _tmp_ceInactive;
      this_0.faw_1 = _tmp_completionCriteria;
      this_0.gaw_1 = _tmp_minScore;
      this_0.haw_1 = _tmp_contentTypeFlag;
      this_0.iaw_1 = _tmp_contentOwner;
      this_0.jaw_1 = _tmp_contentOwnerType;
      this_0.kaw_1 = _tmp_contentEntryLocalChangeSeqNum;
      this_0.law_1 = _tmp_contentEntryMasterChangeSeqNum;
      this_0.maw_1 = _tmp_contentEntryLastChangedBy;
      this_0.naw_1 = _tmp_contentEntryLct;
      return this_0;
    };
  }
  function ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda($parentUid, resultContinuation) {
    this.kb2_1 = $parentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda).mb2 = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda).he = function (p1, $completion) {
    return this.mb2((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$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.lb2_1.v5h(1, this.kb2_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.lb2_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findLiveContentEntry$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$findLiveContentEntry$slambda$slambda).m5f = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda(this.kb2_1, completion);
    i.lb2_1 = _stmt;
    return i;
  };
  function ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda_0($parentUid, resultContinuation) {
    var i = new ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda($parentUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.mb2(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.nb2_1);
  }
  protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1).u5g = 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).sb2 = function (stmt, entity) {
    if (entity.nav_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.nav_1);
    }
    stmt.y5h(2, entity.oav_1);
    stmt.y5h(3, entity.pav_1);
    stmt.y5h(4, entity.qav_1);
    stmt.y5h(5, entity.rav_1);
    stmt.y5h(6, entity.sav_1);
    stmt.u5h(7, entity.tav_1);
    stmt.y5h(8, entity.uav_1);
    stmt.y5h(9, entity.vav_1);
    stmt.y5h(10, entity.wav_1);
    stmt.y5h(11, entity.xav_1);
    stmt.v5h(12, entity.yav_1);
    stmt.v5h(13, entity.zav_1);
    stmt.v5h(14, entity.aaw_1);
    stmt.u5h(15, entity.baw_1);
    stmt.i5h(16, entity.caw_1);
    stmt.i5h(17, entity.daw_1);
    stmt.i5h(18, entity.eaw_1);
    stmt.u5h(19, entity.faw_1);
    stmt.u5h(20, entity.gaw_1);
    stmt.u5h(21, entity.haw_1);
    stmt.v5h(22, entity.iaw_1);
    stmt.u5h(23, entity.jaw_1);
    stmt.v5h(24, entity.kaw_1);
    stmt.v5h(25, entity.law_1);
    stmt.u5h(26, entity.maw_1);
    stmt.v5h(27, entity.naw_1);
  };
  protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1).p5f = function (stmt, entity) {
    return this.sb2(stmt, entity instanceof ContentEntry ? entity : THROW_CCE());
  };
  function ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.nb2_1);
  }
  protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1).u5g = 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).sb2 = function (stmt, entity) {
    if (entity.nav_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.nav_1);
    }
    stmt.y5h(2, entity.oav_1);
    stmt.y5h(3, entity.pav_1);
    stmt.y5h(4, entity.qav_1);
    stmt.y5h(5, entity.rav_1);
    stmt.y5h(6, entity.sav_1);
    stmt.u5h(7, entity.tav_1);
    stmt.y5h(8, entity.uav_1);
    stmt.y5h(9, entity.vav_1);
    stmt.y5h(10, entity.wav_1);
    stmt.y5h(11, entity.xav_1);
    stmt.v5h(12, entity.yav_1);
    stmt.v5h(13, entity.zav_1);
    stmt.v5h(14, entity.aaw_1);
    stmt.u5h(15, entity.baw_1);
    stmt.i5h(16, entity.caw_1);
    stmt.i5h(17, entity.daw_1);
    stmt.i5h(18, entity.eaw_1);
    stmt.u5h(19, entity.faw_1);
    stmt.u5h(20, entity.gaw_1);
    stmt.u5h(21, entity.haw_1);
    stmt.v5h(22, entity.iaw_1);
    stmt.u5h(23, entity.jaw_1);
    stmt.v5h(24, entity.kaw_1);
    stmt.v5h(25, entity.law_1);
    stmt.u5h(26, entity.maw_1);
    stmt.v5h(27, entity.naw_1);
  };
  protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1).p5f = function (stmt, entity) {
    return this.sb2(stmt, entity instanceof ContentEntry ? entity : THROW_CCE());
  };
  function ContentEntryDao_JdbcImpl$findByUidAsync$slambda($entryUid, resultContinuation) {
    this.db3_1 = $entryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$findByUidAsync$slambda).mb2 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.mb2((!(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.eb3_1.v5h(1, this.db3_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.eb3_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).m5f = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$findByUidAsync$slambda(this.db3_1, completion);
    i.eb3_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.mb2(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda($uid, resultContinuation) {
    this.nb3_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda).pb3 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.pb3((!(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.ob3_1.v5h(1, this.nb3_1);
            this.ob3_1.v5h(2, this.nb3_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ob3_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).m5f = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda(this.nb3_1, completion);
    i.ob3_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.pb3(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation) {
    this.yb3_1 = this$0;
    this.zb3_1 = $clazzUid;
    this.ab4_1 = $accountPersonUid;
    this.bb4_1 = $courseBlockUid;
    this.cb4_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda).db4 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda).m78 = function ($completion) {
    return this.db4($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.yb3_1.nb2_1, tmp_0, ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda_0(this.zb3_1, this.ab4_1, this.bb4_1, this.cb4_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).l78 = function (completion) {
    return new ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda(this.yb3_1, this.zb3_1, this.ab4_1, this.bb4_1, this.cb4_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.db4($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda($entryUid, resultContinuation) {
    this.mb4_1 = $entryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda).s8l = function (_stmt, $completion) {
    var tmp = this.m5f(_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.s8l((!(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.nb4_1.v5h(1, this.mb4_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.nb4_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).m5f = function (_stmt, completion) {
    var i = new ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda(this.mb4_1, completion);
    i.nb4_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.s8l(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1(this$0, $accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder) {
    this.ub4_1 = this$0;
    this.vb4_1 = $accountPersonUid;
    this.wb4_1 = $parentUid;
    this.xb4_1 = $langParam;
    this.yb4_1 = $categoryParam0;
    this.zb4_1 = $includeDeleted;
    this.ab5_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.nb2_1, tmp$ret$2);
  }
  protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1).bb5 = 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.ub4_1.nb2_1, tmp, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda_0(this.vb4_1, this.wb4_1, this.xb4_1, this.yb4_1, this.zb4_1, this.ab5_1, _limit, _offset, null), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1).w5p = function (_limit, _offset, $completion) {
    return this.bb5(_limit, _offset, $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1).q5r = 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.ub4_1.nb2_1, tmp, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda_0(this.vb4_1, this.wb4_1, this.xb4_1, this.yb4_1, this.zb4_1, this.ab5_1, null), $completion);
  };
  function ContentEntryDao_JdbcImpl$getContentFromMyCourses$1(this$0, $accountPersonUid) {
    this.ib5_1 = this$0;
    this.jb5_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.nb2_1, tmp$ret$2);
  }
  protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$1).bb5 = 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.ib5_1.nb2_1, tmp, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda_0(this.jb5_1, _limit, _offset, null), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$1).w5p = function (_limit, _offset, $completion) {
    return this.bb5(_limit, _offset, $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$1).q5r = 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.ib5_1.nb2_1, tmp, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda_0(this.jb5_1, null), $completion);
  };
  function ContentEntryDao_JdbcImpl$getContentByOwner$1(this$0, $accountPersonUid) {
    this.qb5_1 = this$0;
    this.rb5_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.nb2_1, tmp$ret$2);
  }
  protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$1).bb5 = 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.qb5_1.nb2_1, tmp, ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda_0(this.rb5_1, _limit, _offset, null), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$1).w5p = function (_limit, _offset, $completion) {
    return this.bb5(_limit, _offset, $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$1).q5r = 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.qb5_1.nb2_1, tmp, ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda_0(this.rb5_1, null), $completion);
  };
  function ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda(this$0, $parentUid, resultContinuation) {
    this.ab6_1 = this$0;
    this.bb6_1 = $parentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda).cb6 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda).m78 = function ($completion) {
    return this.cb6($completion);
  };
  protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda).ud = function () {
    var 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 ContentEntry where contentEntryUid = CAST(? AS BIGINT) LIMIT 1', VOID, VOID, VOID, 'SELECT * FROM ContentEntry where contentEntryUid = ? LIMIT 1\n', true);
            suspendResult = prepareAndUseStatementAsync(this.ab6_1.nb2_1, tmp_0, ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda_0(this.bb6_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$findLiveContentEntry$slambda).l78 = function (completion) {
    return new ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda(this.ab6_1, this.bb6_1, completion);
  };
  function ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda_0(this$0, $parentUid, resultContinuation) {
    var i = new ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda(this$0, $parentUid, resultContinuation);
    var l = function ($completion) {
      return i.cb6($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$113(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.lb6_1 = _this__u8e3s4;
    this.mb6_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$113).ud = function () {
    var 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.lb6_1.ob2_1.w5g(this.mb6_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.nb2_1 = _db;
    var tmp = this;
    tmp.ob2_1 = new ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1(this);
    var tmp_0 = this;
    tmp_0.pb2_1 = new ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1(this);
  }
  protoOf(ContentEntryDao_JdbcImpl).qau = function (entity, $completion) {
    return this.pb2_1.v5g(entity, $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl).aax = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$113(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.aax(entity instanceof ContentEntry ? entity : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl).rau = 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.nb2_1, tmp, ContentEntryDao_JdbcImpl$findByUidAsync$slambda_0(entryUid, null), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl).sau = 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.nb2_1, tmp, ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda_0(uid, null), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl).tau = 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.nb2_1, tmp, ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda_0(this, clazzUid, accountPersonUid, courseBlockUid, contentEntryUid, null));
  };
  protoOf(ContentEntryDao_JdbcImpl).uau = 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.nb2_1, tmp, ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda_0(entryUid, null), $completion);
  };
  protoOf(ContentEntryDao_JdbcImpl).vau = function (accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted) {
    return new ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1(this, accountPersonUid, parentUid, langParam, categoryParam0, includeDeleted, sortOrder);
  };
  protoOf(ContentEntryDao_JdbcImpl).wau = function (accountPersonUid) {
    return new ContentEntryDao_JdbcImpl$getContentFromMyCourses$1(this, accountPersonUid);
  };
  protoOf(ContentEntryDao_JdbcImpl).xau = function (accountPersonUid) {
    return new ContentEntryDao_JdbcImpl$getContentByOwner$1(this, accountPersonUid);
  };
  protoOf(ContentEntryDao_JdbcImpl).yau = function (parentUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['ContentEntry'];
    return doorFlow(this.nb2_1, tmp, ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda_0(this, parentUid, null));
  };
  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.vb6_1 = this$0;
    this.wb6_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_Repo$upsertAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_Repo$upsertAsync$slambda).m78 = function ($completion) {
    return this.j87($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.vb6_1.zb6_1.qau(this.wb6_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).l78 = function (completion) {
    return new ContentEntryDao_Repo$upsertAsync$slambda(this.vb6_1, this.wb6_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.j87($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.mb7_1 = this$0;
    this.nb7_1 = $contentEntryUid;
    this.ob7_1 = $clazzUid;
    this.pb7_1 = $courseBlockUid;
    this.qb7_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.rb7_1 = this.mb7_1.yb6_1;
            var tmp_1 = this;
            tmp_1.sb7_1 = 'ContentEntryDao/findByContentEntryUidWithDetailsAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.tb7_1 = this.mb7_1.ab7_1;
            var tmp_3 = this;
            tmp_3.ub7_1 = this.tb7_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.mb7_1.yb6_1.j39(), 'ContentEntryDao/findByContentEntryUidWithDetailsAsFlow');
            doorNodeIdHeader(this_0, this.mb7_1.yb6_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'contentEntryUid', this.mb7_1.yb6_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.nb7_1));
            parameter(this_0, 'clazzUid', this.mb7_1.yb6_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ob7_1));
            parameter(this_0, 'courseBlockUid', this.mb7_1.yb6_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.pb7_1));
            parameter(this_0, 'accountPersonUid', this.mb7_1.yb6_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.qb7_1));
            tmp_4.vb7_1 = this_0;
            this.vb7_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.wb7_1 = this.ub7_1;
            var tmp_6 = this;
            tmp_6.xb7_1 = this.vb7_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.xb7_1, this.wb7_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.yb7_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.mb7_1.xb6_1, this.yb7_1, this.mb7_1.yb6_1.j39().x65_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().d5e(e, 'DoorLog', ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda$lambda(this.rb7_1, this.sb7_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).l78 = function (completion) {
    return new ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda(this.mb7_1, this.nb7_1, this.ob7_1, this.pb7_1, this.qb7_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.j87($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.hb8_1 = this$0;
    this.ib8_1 = $accountPersonUid;
    this.jb8_1 = $parentUid;
    this.kb8_1 = $langParam;
    this.lb8_1 = $categoryParam0;
    this.mb8_1 = $sortOrder;
    this.nb8_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_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.h86(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.qb8_1 = this.hb8_1.yb6_1;
            var tmp_1 = this;
            tmp_1.rb8_1 = 'ContentEntryDao/getChildrenByParentUidWithCategoryFilterOrderByName';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.sb8_1 = this.hb8_1.ab7_1;
            var tmp_3 = this;
            tmp_3.tb8_1 = this.sb8_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.hb8_1.yb6_1.j39(), 'ContentEntryDao/getChildrenByParentUidWithCategoryFilterOrderByName');
            doorNodeIdHeader(this_0, this.hb8_1.yb6_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.hb8_1.yb6_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ib8_1));
            parameter(this_0, 'parentUid', this.hb8_1.yb6_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.jb8_1));
            parameter(this_0, 'langParam', this.hb8_1.yb6_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.kb8_1));
            parameter(this_0, 'categoryParam0', this.hb8_1.yb6_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.lb8_1));
            parameter(this_0, 'sortOrder', this.hb8_1.yb6_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.mb8_1));
            parameter(this_0, 'includeDeleted', this.hb8_1.yb6_1.j39().x65_1.r45(serializer_2(BooleanCompanionObject_instance), this.nb8_1));
            pagingSourceLoadParameters(this_0, this.hb8_1.yb6_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.ob8_1);
            tmp_4.ub8_1 = this_0;
            this.ub8_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.vb8_1 = this.tb8_1;
            var tmp_6 = this;
            tmp_6.wb8_1 = this.ub8_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.wb8_1, this.vb8_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.xb8_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.hb8_1.xb6_1, this.xb8_1, this.hb8_1.yb6_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.pb8_1 = endOfPaginationReached(this.xb8_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().d5e(e, 'DoorLog', ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda$lambda(this.qb8_1, this.rb8_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.pb8_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).i86 = function (_pagingParams, completion) {
    var i = new ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda(this.hb8_1, this.ib8_1, this.jb8_1, this.kb8_1, this.lb8_1, this.mb8_1, this.nb8_1, completion);
    i.ob8_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.h86(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.gb9_1 = this$0;
    this.hb9_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.gb9_1.zb6_1.insertAsync(this.hb9_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).l78 = function (completion) {
    return new ContentEntryDao_Repo$insertAsync$slambda(this.gb9_1, this.hb9_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByUidAsyncCOROUTINE$115(_this__u8e3s4, entryUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.qb9_1 = _this__u8e3s4;
    this.rb9_1 = entryUid;
  }
  protoOf($findByUidAsyncCOROUTINE$115).ud = function () {
    var 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.qb9_1.zb6_1.rau(this.rb9_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$117(_this__u8e3s4, uid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.aba_1 = _this__u8e3s4;
    this.bba_1 = uid;
  }
  protoOf($findByUidWithEditDetailsCOROUTINE$117).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.cba_1 = this.aba_1.yb6_1;
            var tmp_1 = this;
            tmp_1.dba_1 = 'ContentEntryDao/findByUidWithEditDetails';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.eba_1 = this.aba_1.ab7_1;
            var tmp_3 = this;
            tmp_3.fba_1 = this.eba_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.aba_1.yb6_1.j39(), 'ContentEntryDao/findByUidWithEditDetails');
            doorNodeIdHeader(this_0, this.aba_1.yb6_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.aba_1.yb6_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.bba_1));
            tmp_4.gba_1 = this_0;
            this.gba_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.hba_1 = this.fba_1;
            var tmp_6 = this;
            tmp_6.iba_1 = this.gba_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.iba_1, this.hba_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.jba_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.aba_1.xb6_1, this.jba_1, this.aba_1.yb6_1.j39().x65_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.kba_1 = this.kd_1;
              Napier_getInstance().d5e(this.kba_1, 'DoorLog', ContentEntryDao_Repo$findByUidWithEditDetails$lambda(this.cba_1, this.dba_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.aba_1.zb6_1.sau(this.bba_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$118(_this__u8e3s4, entryUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.tba_1 = _this__u8e3s4;
    this.uba_1 = entryUid;
  }
  protoOf($findTitleByUidAsyncCOROUTINE$118).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.vba_1 = this.tba_1.yb6_1;
            var tmp_1 = this;
            tmp_1.wba_1 = 'ContentEntryDao/findTitleByUidAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.xba_1 = this.tba_1.ab7_1;
            var tmp_3 = this;
            tmp_3.yba_1 = this.xba_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.tba_1.yb6_1.j39(), 'ContentEntryDao/findTitleByUidAsync');
            doorNodeIdHeader(this_0, this.tba_1.yb6_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'entryUid', this.tba_1.yb6_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.uba_1));
            tmp_4.zba_1 = this_0;
            this.zba_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.abb_1 = this.yba_1;
            var tmp_6 = this;
            tmp_6.bbb_1 = this.zba_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.bbb_1, this.abb_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.cbb_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.tba_1.xb6_1, this.cbb_1, this.tba_1.yb6_1.j39().x65_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.dbb_1 = this.kd_1;
              Napier_getInstance().d5e(this.dbb_1, 'DoorLog', ContentEntryDao_Repo$findTitleByUidAsync$lambda(this.vba_1, this.wba_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.tba_1.zb6_1.uau(this.uba_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$127(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.mbb_1 = _this__u8e3s4;
    this.nbb_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$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;
            suspendResult = withRepoChangeMonitorAsync(this.mbb_1.yb6_1, 'ContentEntry', ContentEntryDao_Repo$insertAsync$slambda_0(this.mbb_1, this.nbb_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.xb6_1 = _db;
    this.yb6_1 = _repo;
    this.zb6_1 = _dao;
    this.ab7_1 = _httpClient;
    this.bb7_1 = _clientId;
    this.cb7_1 = _endpoint;
    this.db7_1 = new RepoDaoFlowHelper(this.yb6_1);
  }
  protoOf(ContentEntryDao_Repo).qau = function (entity, $completion) {
    return withRepoChangeMonitorAsync(this.yb6_1, 'ContentEntry', ContentEntryDao_Repo$upsertAsync$slambda_0(this, entity, null), $completion);
  };
  protoOf(ContentEntryDao_Repo).rau = function (entryUid, $completion) {
    var tmp = new $findByUidAsyncCOROUTINE$115(this, entryUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_Repo).sau = function (uid, $completion) {
    var tmp = new $findByUidWithEditDetailsCOROUTINE$117(this, uid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_Repo).tau = function (contentEntryUid, clazzUid, courseBlockUid, accountPersonUid) {
    var tmp = this.zb6_1.tau(contentEntryUid, clazzUid, courseBlockUid, accountPersonUid);
    return this.db7_1.o67(tmp, ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda_0(this, contentEntryUid, clazzUid, courseBlockUid, accountPersonUid, null));
  };
  protoOf(ContentEntryDao_Repo).uau = function (entryUid, $completion) {
    var tmp = new $findTitleByUidAsyncCOROUTINE$118(this, entryUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_Repo).vau = function (accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted) {
    var tmp = this.zb6_1.vau(accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted);
    return new DoorRepositoryReplicatePullPagingSource(this.yb6_1, 'ContentEntryDao/getChildrenByParentUidWithCategoryFilterOrderByName', tmp, ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda_0(this, accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted, null));
  };
  protoOf(ContentEntryDao_Repo).wau = function (accountPersonUid) {
    var _result = this.zb6_1.wau(accountPersonUid);
    return _result;
  };
  protoOf(ContentEntryDao_Repo).xau = function (accountPersonUid) {
    var _result = this.zb6_1.xau(accountPersonUid);
    return _result;
  };
  protoOf(ContentEntryDao_Repo).yau = function (parentUid) {
    var _result = this.zb6_1.yau(parentUid);
    return _result;
  };
  protoOf(ContentEntryDao_Repo).aax = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$127(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryDao_Repo).insertAsync = function (entity, $completion) {
    return this.aax(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.y5m('cjiUid');
      var _tmp_cjiItemProgress = $_result.y5m('cjiItemProgress');
      var _tmp_cjiItemTotal = $_result.y5m('cjiItemTotal');
      var _tmp_cjiStatus = $_result.x5m('cjiStatus');
      var _tmp_cjiError = $_result.rz('cjiError');
      var _tmp_cjiOwnerPersonUid = $_result.y5m('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.pbb_1 = _tmp_cjiUid;
      this_0.qbb_1 = _tmp_cjiItemProgress;
      this_0.rbb_1 = _tmp_cjiItemTotal;
      this_0.sbb_1 = _tmp_cjiStatus;
      this_0.tbb_1 = _tmp_cjiError;
      this_0.ubb_1 = _tmp_cjiOwnerPersonUid;
      return this_0;
    };
  }
  function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda($contentEntryUid, resultContinuation) {
    this.dbc_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda).fbc = function (_stmt, $completion) {
    var tmp = this.m5f(_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.fbc((!(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.ebc_1.v5h(1, this.dbc_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ebc_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).m5f = function (_stmt, completion) {
    var i = new ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda(this.dbc_1, completion);
    i.ebc_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.fbc(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.gbc_1);
  }
  protoOf(ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1).u5g = 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).kbc = function (stmt, entity) {
    if (entity.lbc_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.lbc_1);
    }
    stmt.y5h(2, entity.mbc_1);
    stmt.y5h(3, entity.nbc_1);
    stmt.v5h(4, entity.obc_1);
    stmt.v5h(5, entity.pbc_1);
    stmt.v5h(6, entity.qbc_1);
    stmt.v5h(7, entity.rbc_1);
    stmt.v5h(8, entity.sbc_1);
    stmt.u5h(9, entity.tbc_1);
    stmt.u5h(10, entity.ubc_1);
    stmt.u5h(11, entity.vbc_1);
    stmt.v5h(12, entity.wbc_1);
    stmt.v5h(13, entity.xbc_1);
    stmt.v5h(14, entity.ybc_1);
    stmt.i5h(15, entity.zbc_1);
    stmt.u5h(16, entity.abd_1);
    stmt.y5h(17, entity.bbd_1);
    stmt.i5h(18, entity.cbd_1);
    stmt.v5h(19, entity.dbd_1);
    stmt.y5h(20, entity.ebd_1);
  };
  protoOf(ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1).p5f = function (stmt, entity) {
    return this.kbc(stmt, entity instanceof ContentEntryImportJob ? entity : THROW_CCE());
  };
  function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda(this$0, $contentEntryUid, resultContinuation) {
    this.nbd_1 = this$0;
    this.obd_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda).pbd = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda).m78 = function ($completion) {
    return this.pbd($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.nbd_1.gbc_1, tmp_0, ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda_0(this.obd_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).l78 = function (completion) {
    return new ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda(this.nbd_1, this.obd_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.pbd($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ContentEntryImportJobDao_JdbcImpl(_db) {
    ContentEntryImportJobDao.call(this);
    this.gbc_1 = _db;
    var tmp = this;
    tmp.hbc_1 = new ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1(this);
  }
  protoOf(ContentEntryImportJobDao_JdbcImpl).obb = 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.gbc_1, tmp, ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda_0(this, contentEntryUid, null));
  };
  function ContentEntryParentChildJoinDao() {
  }
  function $insertAsyncCOROUTINE$134(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.abe_1 = _this__u8e3s4;
    this.bbe_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 = 4;
            this.cbe_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.abe_1.ebe_1));
            if (this.bbe_1.xay_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.cbe_1.o62(7, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.dbe_1 = suspendResult;
            this.bbe_1.xay_1 = this.dbe_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.bbe_1.baz_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.abe_1.fbe_1.insertAsync(this.bbe_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.bbe_1.xay_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.ebe_1 = _db;
    this.fbe_1 = _dao;
  }
  protoOf(ContentEntryParentChildJoinDao_DoorWrapper).qbd = function (contentEntryUid, selectedItems, updateTime, $completion) {
    return this.fbe_1.qbd(contentEntryUid, selectedItems, updateTime, $completion);
  };
  protoOf(ContentEntryParentChildJoinDao_DoorWrapper).rbd = function (selectedUids, isDeleted, updateTime, $completion) {
    return this.fbe_1.rbd(selectedUids, isDeleted, updateTime, $completion);
  };
  protoOf(ContentEntryParentChildJoinDao_DoorWrapper).gbe = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$134(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryParentChildJoinDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.gbe(entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.hbe_1);
  }
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO ContentEntryParentChildJoin (cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1).mbe = function (stmt, entity) {
    if (entity.xay_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.xay_1);
    }
    stmt.v5h(2, entity.yay_1);
    stmt.v5h(3, entity.zay_1);
    stmt.u5h(4, entity.aaz_1);
    stmt.v5h(5, entity.baz_1);
    stmt.i5h(6, entity.caz_1);
    stmt.v5h(7, entity.uay_1);
    stmt.v5h(8, entity.vay_1);
    stmt.u5h(9, entity.way_1);
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1).p5f = function (stmt, entity) {
    return this.mbe(stmt, entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE());
  };
  function ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.hbe_1);
  }
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO ContentEntryParentChildJoin (cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1).mbe = function (stmt, entity) {
    if (entity.xay_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.xay_1);
    }
    stmt.v5h(2, entity.yay_1);
    stmt.v5h(3, entity.zay_1);
    stmt.u5h(4, entity.aaz_1);
    stmt.v5h(5, entity.baz_1);
    stmt.i5h(6, entity.caz_1);
    stmt.v5h(7, entity.uay_1);
    stmt.v5h(8, entity.vay_1);
    stmt.u5h(9, entity.way_1);
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1).p5f = function (stmt, entity) {
    return this.mbe(stmt, entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE());
  };
  function ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda($contentEntryUid, $updateTime, $selectedItems, resultContinuation) {
    this.xbe_1 = $contentEntryUid;
    this.ybe_1 = $updateTime;
    this.zbe_1 = $selectedItems;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.abf_1.v5h(1, this.xbe_1);
            this.abf_1.v5h(2, this.ybe_1);
            var tmp_0 = this.abf_1.r5g();
            var this_0 = this.zbe_1;
            this.abf_1.z5h(3, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.abf_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).m5f = function (_stmt, completion) {
    var i = new ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda(this.xbe_1, this.ybe_1, this.zbe_1, completion);
    i.abf_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda($isDeleted, $updateTime, $selectedUids, resultContinuation) {
    this.jbf_1 = $isDeleted;
    this.kbf_1 = $updateTime;
    this.lbf_1 = $selectedUids;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.mbf_1.i5h(1, this.jbf_1);
            this.mbf_1.v5h(2, this.kbf_1);
            var tmp_0 = this.mbf_1.r5g();
            var this_0 = this.lbf_1;
            this.mbf_1.z5h(3, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.mbf_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).m5f = function (_stmt, completion) {
    var i = new ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda(this.jbf_1, this.kbf_1, this.lbf_1, completion);
    i.mbf_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$135(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vbf_1 = _this__u8e3s4;
    this.wbf_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$135).ud = function () {
    var 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.vbf_1.ibe_1.w5g(this.wbf_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$136(_this__u8e3s4, contentEntryUid, selectedItems, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.fbg_1 = _this__u8e3s4;
    this.gbg_1 = contentEntryUid;
    this.hbg_1 = selectedItems;
    this.ibg_1 = updateTime;
  }
  protoOf($moveListOfEntriesToNewParentCOROUTINE$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;
            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.fbg_1.hbe_1, tmp_0, ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda_0(this.gbg_1, this.ibg_1, this.hbg_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$137(_this__u8e3s4, selectedUids, isDeleted, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.rbg_1 = _this__u8e3s4;
    this.sbg_1 = selectedUids;
    this.tbg_1 = isDeleted;
    this.ubg_1 = updateTime;
  }
  protoOf($setEntriesDeletedCOROUTINE$137).ud = function () {
    var 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.rbg_1.hbe_1, tmp_0, ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda_0(this.tbg_1, this.ubg_1, this.sbg_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.hbe_1 = _db;
    var tmp = this;
    tmp.ibe_1 = new ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1(this);
    var tmp_0 = this;
    tmp_0.jbe_1 = new ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1(this);
  }
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl).gbe = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$135(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.gbe(entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE(), $completion);
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl).qbd = function (contentEntryUid, selectedItems, updateTime, $completion) {
    var tmp = new $moveListOfEntriesToNewParentCOROUTINE$136(this, contentEntryUid, selectedItems, updateTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryParentChildJoinDao_JdbcImpl).rbd = function (selectedUids, isDeleted, updateTime, $completion) {
    var tmp = new $setEntriesDeletedCOROUTINE$137(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.dbh_1 = this$0;
    this.ebh_1 = $contentEntryUid;
    this.fbh_1 = $selectedItems;
    this.gbh_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda).m78 = function ($completion) {
    return this.j87($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.dbh_1.jbh_1.qbd(this.ebh_1, this.fbh_1, this.gbh_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).l78 = function (completion) {
    return new ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda(this.dbh_1, this.ebh_1, this.fbh_1, this.gbh_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda(this$0, $selectedUids, $isDeleted, $updateTime, resultContinuation) {
    this.vbh_1 = this$0;
    this.wbh_1 = $selectedUids;
    this.xbh_1 = $isDeleted;
    this.ybh_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda).m78 = function ($completion) {
    return this.j87($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.vbh_1.jbh_1.rbd(this.wbh_1, this.xbh_1, this.ybh_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).l78 = function (completion) {
    return new ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda(this.vbh_1, this.wbh_1, this.xbh_1, this.ybh_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ContentEntryParentChildJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.hbi_1 = this$0;
    this.ibi_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryParentChildJoinDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryParentChildJoinDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.hbi_1.jbh_1.insertAsync(this.ibi_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).l78 = function (completion) {
    return new ContentEntryParentChildJoinDao_Repo$insertAsync$slambda(this.hbi_1, this.ibi_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$141(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.rbi_1 = _this__u8e3s4;
    this.sbi_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$141).ud = function () {
    var 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.rbi_1.ibh_1, 'ContentEntryParentChildJoin', ContentEntryParentChildJoinDao_Repo$insertAsync$slambda_0(this.rbi_1, this.sbi_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.hbh_1 = _db;
    this.ibh_1 = _repo;
    this.jbh_1 = _dao;
    this.kbh_1 = _httpClient;
    this.lbh_1 = _clientId;
    this.mbh_1 = _endpoint;
  }
  protoOf(ContentEntryParentChildJoinDao_Repo).qbd = function (contentEntryUid, selectedItems, updateTime, $completion) {
    return withRepoChangeMonitorAsync(this.ibh_1, 'ContentEntryParentChildJoin', ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda_0(this, contentEntryUid, selectedItems, updateTime, null), $completion);
  };
  protoOf(ContentEntryParentChildJoinDao_Repo).rbd = function (selectedUids, isDeleted, updateTime, $completion) {
    return withRepoChangeMonitorAsync(this.ibh_1, 'ContentEntryParentChildJoin', ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda_0(this, selectedUids, isDeleted, updateTime, null), $completion);
  };
  protoOf(ContentEntryParentChildJoinDao_Repo).gbe = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$141(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryParentChildJoinDao_Repo).insertAsync = function (entity, $completion) {
    return this.gbe(entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryPicture2Dao() {
  }
  function ContentEntryPicture2Dao_DoorWrapper(_db, _dao) {
    ContentEntryPicture2Dao.call(this);
    this.vbi_1 = _db;
    this.wbi_1 = _dao;
  }
  protoOf(ContentEntryPicture2Dao_DoorWrapper).tbi = 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.eax_1 = systemTimeInMillis();
    }
    return this.wbi_1.tbi(entities, $completion);
  };
  protoOf(ContentEntryPicture2Dao_DoorWrapper).ubi = function (uid, uri, thumbnailUri, time, $completion) {
    return this.wbi_1.ubi(uid, uri, thumbnailUri, time, $completion);
  };
  function ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.xbi_1);
  }
  protoOf(ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO ContentEntryPicture2 (cepUid, cepLct, cepPictureUri, cepThumbnailUri) VALUES(?, ?, ?, ?)';
  };
  protoOf(ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1).bbj = function (stmt, entity) {
    stmt.v5h(1, entity.dax_1);
    stmt.v5h(2, entity.eax_1);
    stmt.y5h(3, entity.fax_1);
    stmt.y5h(4, entity.gax_1);
  };
  protoOf(ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1).p5f = function (stmt, entity) {
    return this.bbj(stmt, entity instanceof ContentEntryPicture2 ? entity : THROW_CCE());
  };
  function ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation) {
    this.kbj_1 = $uri;
    this.lbj_1 = $thumbnailUri;
    this.mbj_1 = $time;
    this.nbj_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.obj_1.y5h(1, this.kbj_1);
            this.obj_1.y5h(2, this.lbj_1);
            this.obj_1.v5h(3, this.mbj_1);
            this.obj_1.v5h(4, this.nbj_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.obj_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).m5f = function (_stmt, completion) {
    var i = new ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda(this.kbj_1, this.lbj_1, this.mbj_1, this.nbj_1, completion);
    i.obj_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $updateUriCOROUTINE$142(_this__u8e3s4, uid, uri, thumbnailUri, time, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.xbj_1 = _this__u8e3s4;
    this.ybj_1 = uid;
    this.zbj_1 = uri;
    this.abk_1 = thumbnailUri;
    this.bbk_1 = time;
  }
  protoOf($updateUriCOROUTINE$142).ud = function () {
    var 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.xbj_1.xbi_1, tmp_0, ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda_0(this.zbj_1, this.abk_1, this.bbk_1, this.ybj_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.xbi_1 = _db;
    var tmp = this;
    tmp.ybi_1 = new ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1(this);
  }
  protoOf(ContentEntryPicture2Dao_JdbcImpl).tbi = function (entities, $completion) {
    return this.ybi_1.z5g(entities, $completion);
  };
  protoOf(ContentEntryPicture2Dao_JdbcImpl).ubi = function (uid, uri, thumbnailUri, time, $completion) {
    var tmp = new $updateUriCOROUTINE$142(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.kbk_1 = this$0;
    this.lbk_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryPicture2Dao_Repo$upsertListAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryPicture2Dao_Repo$upsertListAsync$slambda).m78 = function ($completion) {
    return this.j87($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.kbk_1.obk_1.tbi(this.lbk_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).l78 = function (completion) {
    return new ContentEntryPicture2Dao_Repo$upsertListAsync$slambda(this.kbk_1, this.lbk_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ContentEntryPicture2Dao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) {
    this.abl_1 = this$0;
    this.bbl_1 = $uid;
    this.cbl_1 = $uri;
    this.dbl_1 = $thumbnailUri;
    this.ebl_1 = $time;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryPicture2Dao_Repo$updateUri$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryPicture2Dao_Repo$updateUri$slambda).m78 = function ($completion) {
    return this.j87($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.abl_1.obk_1.ubi(this.bbl_1, this.cbl_1, this.dbl_1, this.ebl_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).l78 = function (completion) {
    return new ContentEntryPicture2Dao_Repo$updateUri$slambda(this.abl_1, this.bbl_1, this.cbl_1, this.dbl_1, this.ebl_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ContentEntryPicture2Dao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ContentEntryPicture2Dao.call(this);
    this.mbk_1 = _db;
    this.nbk_1 = _repo;
    this.obk_1 = _dao;
    this.pbk_1 = _httpClient;
    this.qbk_1 = _clientId;
    this.rbk_1 = _endpoint;
  }
  protoOf(ContentEntryPicture2Dao_Repo).tbi = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.nbk_1, 'ContentEntryPicture2', ContentEntryPicture2Dao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(ContentEntryPicture2Dao_Repo).ubi = function (uid, uri, thumbnailUri, time, $completion) {
    return withRepoChangeMonitorAsync(this.nbk_1, 'ContentEntryPicture2', ContentEntryPicture2Dao_Repo$updateUri$slambda_0(this, uid, uri, thumbnailUri, time, null), $completion);
  };
  function ContentEntryPictureDao() {
  }
  function $insertAsyncCOROUTINE$143(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.nbl_1 = _this__u8e3s4;
    this.obl_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$143).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.pbl_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.nbl_1.rbl_1));
            if (this.obl_1.tbl_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.pbl_1.o62(138, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.qbl_1 = suspendResult;
            this.obl_1.tbl_1 = this.qbl_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.obl_1.ybl_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.nbl_1.sbl_1.insertAsync(this.obl_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.obl_1.tbl_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.rbl_1 = _db;
    this.sbl_1 = _dao;
  }
  protoOf(ContentEntryPictureDao_DoorWrapper).bbm = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$143(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryPictureDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.bbm(entity instanceof ContentEntryPicture ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.cbm_1);
  }
  protoOf(ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO ContentEntryPicture (cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1).gbm = function (stmt, entity) {
    if (entity.tbl_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.tbl_1);
    }
    stmt.v5h(2, entity.ubl_1);
    stmt.y5h(3, entity.vbl_1);
    stmt.y5h(4, entity.wbl_1);
    stmt.u5h(5, entity.xbl_1);
    stmt.v5h(6, entity.ybl_1);
    stmt.y5h(7, entity.zbl_1);
    stmt.i5h(8, entity.abm_1);
  };
  protoOf(ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1).p5f = function (stmt, entity) {
    return this.gbm(stmt, entity instanceof ContentEntryPicture ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$144(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.pbm_1 = _this__u8e3s4;
    this.qbm_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 = 2;
            this.hd_1 = 1;
            suspendResult = this.pbm_1.dbm_1.w5g(this.qbm_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.cbm_1 = _db;
    var tmp = this;
    tmp.dbm_1 = new ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1(this);
  }
  protoOf(ContentEntryPictureDao_JdbcImpl).bbm = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$144(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryPictureDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.bbm(entity instanceof ContentEntryPicture ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryPictureDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.zbm_1 = this$0;
    this.abn_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryPictureDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryPictureDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.zbm_1.dbn_1.insertAsync(this.abn_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).l78 = function (completion) {
    return new ContentEntryPictureDao_Repo$insertAsync$slambda(this.zbm_1, this.abn_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$147(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.pbn_1 = _this__u8e3s4;
    this.qbn_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$147).ud = function () {
    var 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.pbn_1.cbn_1, 'ContentEntryPicture', ContentEntryPictureDao_Repo$insertAsync$slambda_0(this.pbn_1, this.qbn_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.bbn_1 = _db;
    this.cbn_1 = _repo;
    this.dbn_1 = _dao;
    this.ebn_1 = _httpClient;
    this.fbn_1 = _clientId;
    this.gbn_1 = _endpoint;
  }
  protoOf(ContentEntryPictureDao_Repo).bbm = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$147(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryPictureDao_Repo).insertAsync = function (entity, $completion) {
    return this.bbm(entity instanceof ContentEntryPicture ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryRelatedEntryJoinDao() {
  }
  function $insertAsyncCOROUTINE$148(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zbn_1 = _this__u8e3s4;
    this.abo_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 = 4;
            this.bbo_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.zbn_1.dbo_1));
            if (this.abo_1.fbo_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.bbo_1.o62(8, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.cbo_1 = suspendResult;
            this.abo_1.fbo_1 = this.cbo_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.abo_1.obo_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.zbn_1.ebo_1.insertAsync(this.abo_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.abo_1.fbo_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.dbo_1 = _db;
    this.ebo_1 = _dao;
  }
  protoOf(ContentEntryRelatedEntryJoinDao_DoorWrapper).pbo = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$148(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryRelatedEntryJoinDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.pbo(entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.qbo_1);
  }
  protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO ContentEntryRelatedEntryJoin (cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1).ubo = function (stmt, entity) {
    if (entity.fbo_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.fbo_1);
    }
    stmt.v5h(2, entity.gbo_1);
    stmt.v5h(3, entity.hbo_1);
    stmt.u5h(4, entity.ibo_1);
    stmt.u5h(5, entity.jbo_1);
    stmt.y5h(6, entity.kbo_1);
    stmt.v5h(7, entity.lbo_1);
    stmt.v5h(8, entity.mbo_1);
    stmt.v5h(9, entity.nbo_1);
    stmt.v5h(10, entity.obo_1);
  };
  protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1).p5f = function (stmt, entity) {
    return this.ubo(stmt, entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$149(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.dbp_1 = _this__u8e3s4;
    this.ebp_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$149).ud = function () {
    var 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.dbp_1.rbo_1.w5g(this.ebp_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.qbo_1 = _db;
    var tmp = this;
    tmp.rbo_1 = new ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1(this);
  }
  protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).pbo = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$149(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.pbo(entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.nbp_1 = this$0;
    this.obp_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.nbp_1.rbp_1.insertAsync(this.obp_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).l78 = function (completion) {
    return new ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda(this.nbp_1, this.obp_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$151(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.dbq_1 = _this__u8e3s4;
    this.ebq_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 = withRepoChangeMonitorAsync(this.dbq_1.qbp_1, 'ContentEntryRelatedEntryJoin', ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda_0(this.dbq_1, this.ebq_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.pbp_1 = _db;
    this.qbp_1 = _repo;
    this.rbp_1 = _dao;
    this.sbp_1 = _httpClient;
    this.tbp_1 = _clientId;
    this.ubp_1 = _endpoint;
  }
  protoOf(ContentEntryRelatedEntryJoinDao_Repo).pbo = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$151(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryRelatedEntryJoinDao_Repo).insertAsync = function (entity, $completion) {
    return this.pbo(entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE(), $completion);
  };
  function ContentEntryVersionDao() {
  }
  function ContentEntryVersionDao_DoorWrapper(_db, _dao) {
    ContentEntryVersionDao.call(this);
    this.jbq_1 = _db;
    this.kbq_1 = _dao;
  }
  protoOf(ContentEntryVersionDao_DoorWrapper).fbq = function (cevUid, $completion) {
    return this.kbq_1.fbq(cevUid, $completion);
  };
  protoOf(ContentEntryVersionDao_DoorWrapper).gbq = function (contentEntryUid, $completion) {
    return this.kbq_1.gbq(contentEntryUid, $completion);
  };
  protoOf(ContentEntryVersionDao_DoorWrapper).hbq = function (contentEntryUid) {
    return this.kbq_1.hbq(contentEntryUid);
  };
  protoOf(ContentEntryVersionDao_DoorWrapper).ibq = function (entityUid, transferJobItemUid, $completion) {
    return this.kbq_1.ibq(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.y5m('cevUid');
      var _tmp_cevContentEntryUid = $_result.y5m('cevContentEntryUid');
      var _tmp_cevOpenUri = $_result.rz('cevOpenUri');
      var _tmp_cevContentType = $_result.rz('cevContentType');
      var _tmp_cevManifestUrl = $_result.rz('cevManifestUrl');
      var _tmp_cevSize = $_result.y5m('cevSize');
      var _tmp_cevInActive = $_result.j66('cevInActive');
      var _tmp_cevLastModified = $_result.y5m('cevLastModified');
      var _tmp_cevLct = $_result.y5m('cevLct');
      var _tmp_cevStorageSize = $_result.y5m('cevStorageSize');
      var _tmp_cevOriginalSize = $_result.y5m('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.lax_1 = _tmp_cevUid;
      this_0.max_1 = _tmp_cevContentEntryUid;
      this_0.nax_1 = _tmp_cevOpenUri;
      this_0.oax_1 = _tmp_cevContentType;
      this_0.pax_1 = _tmp_cevManifestUrl;
      this_0.qax_1 = _tmp_cevSize;
      this_0.rax_1 = _tmp_cevInActive;
      this_0.sax_1 = _tmp_cevLastModified;
      this_0.tax_1 = _tmp_cevLct;
      this_0.uax_1 = _tmp_cevStorageSize;
      this_0.vax_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.y5m('cevUid');
      var _tmp_cevContentEntryUid = $_result.y5m('cevContentEntryUid');
      var _tmp_cevOpenUri = $_result.rz('cevOpenUri');
      var _tmp_cevContentType = $_result.rz('cevContentType');
      var _tmp_cevManifestUrl = $_result.rz('cevManifestUrl');
      var _tmp_cevSize = $_result.y5m('cevSize');
      var _tmp_cevInActive = $_result.j66('cevInActive');
      var _tmp_cevLastModified = $_result.y5m('cevLastModified');
      var _tmp_cevLct = $_result.y5m('cevLct');
      var _tmp_cevStorageSize = $_result.y5m('cevStorageSize');
      var _tmp_cevOriginalSize = $_result.y5m('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.lax_1 = _tmp_cevUid;
      this_0.max_1 = _tmp_cevContentEntryUid;
      this_0.nax_1 = _tmp_cevOpenUri;
      this_0.oax_1 = _tmp_cevContentType;
      this_0.pax_1 = _tmp_cevManifestUrl;
      this_0.qax_1 = _tmp_cevSize;
      this_0.rax_1 = _tmp_cevInActive;
      this_0.sax_1 = _tmp_cevLastModified;
      this_0.tax_1 = _tmp_cevLct;
      this_0.uax_1 = _tmp_cevStorageSize;
      this_0.vax_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.y5m('cevUid');
      var _tmp_cevContentEntryUid = $_result.y5m('cevContentEntryUid');
      var _tmp_cevOpenUri = $_result.rz('cevOpenUri');
      var _tmp_cevContentType = $_result.rz('cevContentType');
      var _tmp_cevManifestUrl = $_result.rz('cevManifestUrl');
      var _tmp_cevSize = $_result.y5m('cevSize');
      var _tmp_cevInActive = $_result.j66('cevInActive');
      var _tmp_cevLastModified = $_result.y5m('cevLastModified');
      var _tmp_cevLct = $_result.y5m('cevLct');
      var _tmp_cevStorageSize = $_result.y5m('cevStorageSize');
      var _tmp_cevOriginalSize = $_result.y5m('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.lax_1 = _tmp_cevUid;
      this_0.max_1 = _tmp_cevContentEntryUid;
      this_0.nax_1 = _tmp_cevOpenUri;
      this_0.oax_1 = _tmp_cevContentType;
      this_0.pax_1 = _tmp_cevManifestUrl;
      this_0.qax_1 = _tmp_cevSize;
      this_0.rax_1 = _tmp_cevInActive;
      this_0.sax_1 = _tmp_cevLastModified;
      this_0.tax_1 = _tmp_cevLct;
      this_0.uax_1 = _tmp_cevStorageSize;
      this_0.vax_1 = _tmp_cevOriginalSize;
      return this_0;
    };
  }
  function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda($contentEntryUid, resultContinuation) {
    this.tbq_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda).vbq = function (_stmt, $completion) {
    var tmp = this.m5f(_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.vbq((!(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.ubq_1.v5h(1, this.tbq_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ubq_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).m5f = function (_stmt, completion) {
    var i = new ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda(this.tbq_1, completion);
    i.ubq_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.vbq(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.wbq_1);
  }
  protoOf(ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO ContentEntryVersion (cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1).abr = function (stmt, entity) {
    if (entity.lax_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.lax_1);
    }
    stmt.v5h(2, entity.max_1);
    stmt.y5h(3, entity.nax_1);
    stmt.y5h(4, entity.oax_1);
    stmt.y5h(5, entity.pax_1);
    stmt.v5h(6, entity.qax_1);
    stmt.i5h(7, entity.rax_1);
    stmt.v5h(8, entity.sax_1);
    stmt.v5h(9, entity.tax_1);
    stmt.v5h(10, entity.uax_1);
    stmt.v5h(11, entity.vax_1);
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1).p5f = function (stmt, entity) {
    return this.abr(stmt, entity instanceof ContentEntryVersion ? entity : THROW_CCE());
  };
  function ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda($cevUid, resultContinuation) {
    this.jbr_1 = $cevUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda).vbq = function (_stmt, $completion) {
    var tmp = this.m5f(_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.vbq((!(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.kbr_1.v5h(1, this.jbr_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.kbr_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).m5f = function (_stmt, completion) {
    var i = new ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda(this.jbr_1, completion);
    i.kbr_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.vbq(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda($contentEntryUid, resultContinuation) {
    this.tbr_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda).vbq = function (_stmt, $completion) {
    var tmp = this.m5f(_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.vbq((!(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.ubr_1.v5h(1, this.tbr_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ubr_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).m5f = function (_stmt, completion) {
    var i = new ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda(this.tbr_1, completion);
    i.ubr_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.vbq(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda(this$0, $contentEntryUid, resultContinuation) {
    this.dbs_1 = this$0;
    this.ebs_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda).fbs = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda).m78 = function ($completion) {
    return this.fbs($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.dbs_1.wbq_1, tmp_0, ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda_0(this.ebs_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).l78 = function (completion) {
    return new ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda(this.dbs_1, this.ebs_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.fbs($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda($entityUid, $transferJobItemUid, resultContinuation) {
    this.obs_1 = $entityUid;
    this.pbs_1 = $transferJobItemUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.qbs_1.v5h(1, this.obs_1);
            this.qbs_1.u5h(2, this.pbs_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.qbs_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).m5f = function (_stmt, completion) {
    var i = new ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda(this.obs_1, this.pbs_1, completion);
    i.qbs_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $updateTransferJobItemEtagCOROUTINE$154(_this__u8e3s4, entityUid, transferJobItemUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zbs_1 = _this__u8e3s4;
    this.abt_1 = entityUid;
    this.bbt_1 = transferJobItemUid;
  }
  protoOf($updateTransferJobItemEtagCOROUTINE$154).ud = function () {
    var 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.zbs_1.wbq_1, tmp_0, ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda_0(this.abt_1, this.bbt_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.wbq_1 = _db;
    var tmp = this;
    tmp.xbq_1 = new ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1(this);
  }
  protoOf(ContentEntryVersionDao_JdbcImpl).fbq = 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.wbq_1, tmp, ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda_0(cevUid, null), $completion);
  };
  protoOf(ContentEntryVersionDao_JdbcImpl).gbq = 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.wbq_1, tmp, ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda_0(contentEntryUid, null), $completion);
  };
  protoOf(ContentEntryVersionDao_JdbcImpl).hbq = 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.wbq_1, tmp, ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda_0(this, contentEntryUid, null));
  };
  protoOf(ContentEntryVersionDao_JdbcImpl).ibq = function (entityUid, transferJobItemUid, $completion) {
    var tmp = new $updateTransferJobItemEtagCOROUTINE$154(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.kbt_1 = this$0;
    this.lbt_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.mbt_1 = this.kbt_1.vbt_1;
            var tmp_1 = this;
            tmp_1.nbt_1 = 'ContentEntryVersionDao/findLatestByContentEntryUidAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.obt_1 = this.kbt_1.xbt_1;
            var tmp_3 = this;
            tmp_3.pbt_1 = this.obt_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.kbt_1.vbt_1.j39(), 'ContentEntryVersionDao/findLatestByContentEntryUidAsFlow');
            doorNodeIdHeader(this_0, this.kbt_1.vbt_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'contentEntryUid', this.kbt_1.vbt_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.lbt_1));
            tmp_4.qbt_1 = this_0;
            this.qbt_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.rbt_1 = this.pbt_1;
            var tmp_6 = this;
            tmp_6.sbt_1 = this.qbt_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.sbt_1, this.rbt_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.tbt_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.kbt_1.ubt_1, this.tbt_1, this.kbt_1.vbt_1.j39().x65_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().d5e(e, 'DoorLog', ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda$lambda(this.mbt_1, this.nbt_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).l78 = function (completion) {
    return new ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda(this.kbt_1, this.lbt_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda(this$0, $entityUid, $transferJobItemUid, resultContinuation) {
    this.jbu_1 = this$0;
    this.kbu_1 = $entityUid;
    this.lbu_1 = $transferJobItemUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda).m78 = function ($completion) {
    return this.j87($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.jbu_1.wbt_1.ibq(this.kbu_1, this.lbu_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).l78 = function (completion) {
    return new ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda(this.jbu_1, this.kbu_1, this.lbu_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByUidAsyncCOROUTINE$155(_this__u8e3s4, cevUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ubu_1 = _this__u8e3s4;
    this.vbu_1 = cevUid;
  }
  protoOf($findByUidAsyncCOROUTINE$155).ud = function () {
    var 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.ubu_1.wbt_1.fbq(this.vbu_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$157(_this__u8e3s4, contentEntryUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ebv_1 = _this__u8e3s4;
    this.fbv_1 = contentEntryUid;
  }
  protoOf($findLatestVersionUidByContentEntryUidEntityCOROUTINE$157).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.gbv_1 = this.ebv_1.vbt_1;
            var tmp_1 = this;
            tmp_1.hbv_1 = 'ContentEntryVersionDao/findLatestVersionUidByContentEntryUidEntity';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ibv_1 = this.ebv_1.xbt_1;
            var tmp_3 = this;
            tmp_3.jbv_1 = this.ibv_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ebv_1.vbt_1.j39(), 'ContentEntryVersionDao/findLatestVersionUidByContentEntryUidEntity');
            doorNodeIdHeader(this_0, this.ebv_1.vbt_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'contentEntryUid', this.ebv_1.vbt_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.fbv_1));
            tmp_4.kbv_1 = this_0;
            this.kbv_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.lbv_1 = this.jbv_1;
            var tmp_6 = this;
            tmp_6.mbv_1 = this.kbv_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.mbv_1, this.lbv_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.nbv_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ebv_1.ubt_1, this.nbv_1, this.ebv_1.vbt_1.j39().x65_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.obv_1 = this.kd_1;
              Napier_getInstance().d5e(this.obv_1, 'DoorLog', ContentEntryVersionDao_Repo$findLatestVersionUidByContentEntryUidEntity$lambda(this.gbv_1, this.hbv_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.ebv_1.wbt_1.gbq(this.fbv_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.ubt_1 = _db;
    this.vbt_1 = _repo;
    this.wbt_1 = _dao;
    this.xbt_1 = _httpClient;
    this.ybt_1 = _clientId;
    this.zbt_1 = _endpoint;
    this.abu_1 = new RepoDaoFlowHelper(this.vbt_1);
  }
  protoOf(ContentEntryVersionDao_Repo).fbq = function (cevUid, $completion) {
    var tmp = new $findByUidAsyncCOROUTINE$155(this, cevUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryVersionDao_Repo).gbq = function (contentEntryUid, $completion) {
    var tmp = new $findLatestVersionUidByContentEntryUidEntityCOROUTINE$157(this, contentEntryUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ContentEntryVersionDao_Repo).hbq = function (contentEntryUid) {
    var tmp = this.wbt_1.hbq(contentEntryUid);
    return this.abu_1.o67(tmp, ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda_0(this, contentEntryUid, null));
  };
  protoOf(ContentEntryVersionDao_Repo).ibq = function (entityUid, transferJobItemUid, $completion) {
    return withRepoChangeMonitorAsync(this.vbt_1, 'TransferJobItem', ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda_0(this, entityUid, transferJobItemUid, null), $completion);
  };
  function CourseAssignmentMarkDao() {
  }
  function $insertAsyncCOROUTINE$159(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zbv_1 = _this__u8e3s4;
    this.abw_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$159).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.bbw_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.zbv_1.dbw_1));
            if (this.abw_1.fbw_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.bbw_1.o62(523, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.cbw_1 = suspendResult;
            this.abw_1.fbw_1 = this.cbw_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.abw_1.obw_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.zbv_1.ebw_1.insertAsync(this.abw_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.abw_1.fbw_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.dbw_1 = _db;
    this.ebw_1 = _dao;
  }
  protoOf(CourseAssignmentMarkDao_DoorWrapper).pbv = function (accountPersonUid, assignmentUid) {
    return this.ebw_1.pbv(accountPersonUid, assignmentUid);
  };
  protoOf(CourseAssignmentMarkDao_DoorWrapper).qbv = function (submitterUid, assignmentUid) {
    return this.ebw_1.qbv(submitterUid, assignmentUid);
  };
  protoOf(CourseAssignmentMarkDao_DoorWrapper).qbw = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$159(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentMarkDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.qbw(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.y5m('camUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_camAssignmentUid = $_result.y5m('camAssignmentUid');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_camSubmitterUid = $_result.y5m('camSubmitterUid');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_camMarkerSubmitterUid = $_result.y5m('camMarkerSubmitterUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_camMarkerPersonUid = $_result.y5m('camMarkerPersonUid');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_camMarkerComment = $_result.rz('camMarkerComment');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_camMark = $_result.l66('camMark');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_camMaxMark = $_result.l66('camMaxMark');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_camPenalty = $_result.l66('camPenalty');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_camLct = $_result.y5m('camLct');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_camClazzUid = $_result.y5m('camClazzUid');
      var tmp_9;
      if ($_result.q67()) {
        _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.sbw_1 = _tmp_markerFirstNames;
      this_0.tbw_1 = _tmp_markerLastName;
      this_0.ubw_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.fbw_1 = _tmp_camUid;
        this_1.gbw_1 = _tmp_camAssignmentUid;
        this_1.hbw_1 = _tmp_camSubmitterUid;
        this_1.ibw_1 = _tmp_camMarkerSubmitterUid;
        this_1.jbw_1 = _tmp_camMarkerPersonUid;
        this_1.kbw_1 = _tmp_camMarkerComment;
        this_1.lbw_1 = _tmp_camMark;
        this_1.mbw_1 = _tmp_camMaxMark;
        this_1.nbw_1 = _tmp_camPenalty;
        this_1.obw_1 = _tmp_camLct;
        this_1.pbw_1 = _tmp_camClazzUid;
        tmp_10.rbw_1 = this_1;
      }
      return this_0;
    };
  }
  function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation) {
    this.dbx_1 = $assignmentUid;
    this.ebx_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda).gbx = function (_stmt, $completion) {
    var tmp = this.m5f(_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.gbx((!(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.fbx_1.v5h(1, this.dbx_1);
            this.fbx_1.v5h(2, this.ebx_1);
            this.fbx_1.v5h(3, this.dbx_1);
            this.fbx_1.v5h(4, this.dbx_1);
            this.fbx_1.v5h(5, this.ebx_1);
            this.fbx_1.v5h(6, this.dbx_1);
            this.fbx_1.v5h(7, this.ebx_1);
            this.fbx_1.v5h(8, this.dbx_1);
            this.fbx_1.v5h(9, this.dbx_1);
            this.fbx_1.v5h(10, this.ebx_1);
            this.fbx_1.v5h(11, this.dbx_1);
            this.fbx_1.v5h(12, this.dbx_1);
            this.fbx_1.v5h(13, this.ebx_1);
            this.fbx_1.v5h(14, this.dbx_1);
            this.fbx_1.v5h(15, this.dbx_1);
            this.fbx_1.v5h(16, this.ebx_1);
            this.fbx_1.v5h(17, this.dbx_1);
            this.fbx_1.v5h(18, this.ebx_1);
            this.fbx_1.v5h(19, this.dbx_1);
            this.fbx_1.v5h(20, this.dbx_1);
            this.fbx_1.v5h(21, this.ebx_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.fbx_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).m5f = function (_stmt, completion) {
    var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda(this.dbx_1, this.ebx_1, completion);
    i.fbx_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.gbx(_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.y5m('camUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_camAssignmentUid = $_result.y5m('camAssignmentUid');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_camSubmitterUid = $_result.y5m('camSubmitterUid');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_camMarkerSubmitterUid = $_result.y5m('camMarkerSubmitterUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_camMarkerPersonUid = $_result.y5m('camMarkerPersonUid');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_camMarkerComment = $_result.rz('camMarkerComment');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_camMark = $_result.l66('camMark');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_camMaxMark = $_result.l66('camMaxMark');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_camPenalty = $_result.l66('camPenalty');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_camLct = $_result.y5m('camLct');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_camClazzUid = $_result.y5m('camClazzUid');
      var tmp_9;
      if ($_result.q67()) {
        _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.sbw_1 = _tmp_markerFirstNames;
      this_0.tbw_1 = _tmp_markerLastName;
      this_0.ubw_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.fbw_1 = _tmp_camUid;
        this_1.gbw_1 = _tmp_camAssignmentUid;
        this_1.hbw_1 = _tmp_camSubmitterUid;
        this_1.ibw_1 = _tmp_camMarkerSubmitterUid;
        this_1.jbw_1 = _tmp_camMarkerPersonUid;
        this_1.kbw_1 = _tmp_camMarkerComment;
        this_1.lbw_1 = _tmp_camMark;
        this_1.mbw_1 = _tmp_camMaxMark;
        this_1.nbw_1 = _tmp_camPenalty;
        this_1.obw_1 = _tmp_camLct;
        this_1.pbw_1 = _tmp_camClazzUid;
        tmp_10.rbw_1 = this_1;
      }
      return this_0;
    };
  }
  function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda($assignmentUid, $submitterUid, resultContinuation) {
    this.pbx_1 = $assignmentUid;
    this.qbx_1 = $submitterUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda).gbx = function (_stmt, $completion) {
    var tmp = this.m5f(_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.gbx((!(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.rbx_1.v5h(1, this.pbx_1);
            this.rbx_1.v5h(2, this.qbx_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.rbx_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).m5f = function (_stmt, completion) {
    var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda(this.pbx_1, this.qbx_1, completion);
    i.rbx_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.gbx(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.sbx_1);
  }
  protoOf(CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO CourseAssignmentMark (camUid, camAssignmentUid, camSubmitterUid, camMarkerSubmitterUid, camMarkerPersonUid, camMarkerComment, camMark, camMaxMark, camPenalty, camLct, camClazzUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1).wbx = function (stmt, entity) {
    if (entity.fbw_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.fbw_1);
    }
    stmt.v5h(2, entity.gbw_1);
    stmt.v5h(3, entity.hbw_1);
    stmt.v5h(4, entity.ibw_1);
    stmt.v5h(5, entity.jbw_1);
    stmt.y5h(6, entity.kbw_1);
    stmt.w5h(7, entity.lbw_1);
    stmt.w5h(8, entity.mbw_1);
    stmt.w5h(9, entity.nbw_1);
    stmt.v5h(10, entity.obw_1);
    stmt.v5h(11, entity.pbw_1);
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1).p5f = function (stmt, entity) {
    return this.wbx(stmt, entity instanceof CourseAssignmentMark ? entity : THROW_CCE());
  };
  function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation) {
    this.fby_1 = this$0;
    this.gby_1 = $assignmentUid;
    this.hby_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda).iby = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda).m78 = function ($completion) {
    return this.iby($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.fby_1.sbx_1, tmp_0, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda_0(this.gby_1, this.hby_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).l78 = function (completion) {
    return new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda(this.fby_1, this.gby_1, this.hby_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.iby($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda(this$0, $assignmentUid, $submitterUid, resultContinuation) {
    this.rby_1 = this$0;
    this.sby_1 = $assignmentUid;
    this.tby_1 = $submitterUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda).iby = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda).m78 = function ($completion) {
    return this.iby($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.rby_1.sbx_1, tmp_0, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda_0(this.sby_1, this.tby_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).l78 = function (completion) {
    return new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda(this.rby_1, this.sby_1, this.tby_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.iby($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$160(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.cbz_1 = _this__u8e3s4;
    this.dbz_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 = 2;
            this.hd_1 = 1;
            suspendResult = this.cbz_1.tbx_1.w5g(this.dbz_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.sbx_1 = _db;
    var tmp = this;
    tmp.tbx_1 = new CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1(this);
  }
  protoOf(CourseAssignmentMarkDao_JdbcImpl).qbw = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$160(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.qbw(entity instanceof CourseAssignmentMark ? entity : THROW_CCE(), $completion);
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl).pbv = 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.sbx_1, tmp, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda_0(this, assignmentUid, accountPersonUid, null));
  };
  protoOf(CourseAssignmentMarkDao_JdbcImpl).qbv = 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.sbx_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.mbz_1 = this$0;
    this.nbz_1 = $accountPersonUid;
    this.obz_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.pbz_1 = this.mbz_1.ybz_1;
            var tmp_1 = this;
            tmp_1.qbz_1 = 'CourseAssignmentMarkDao/getAllMarksForUserAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.rbz_1 = this.mbz_1.ac0_1;
            var tmp_3 = this;
            tmp_3.sbz_1 = this.rbz_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.mbz_1.ybz_1.j39(), 'CourseAssignmentMarkDao/getAllMarksForUserAsFlow');
            doorNodeIdHeader(this_0, this.mbz_1.ybz_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.mbz_1.ybz_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.nbz_1));
            parameter(this_0, 'assignmentUid', this.mbz_1.ybz_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.obz_1));
            tmp_4.tbz_1 = this_0;
            this.tbz_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.ubz_1 = this.sbz_1;
            var tmp_6 = this;
            tmp_6.vbz_1 = this.tbz_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.vbz_1, this.ubz_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.wbz_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.mbz_1.xbz_1, this.wbz_1, this.mbz_1.ybz_1.j39().x65_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().d5e(e, 'DoorLog', CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda$lambda(this.pbz_1, this.qbz_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).l78 = function (completion) {
    return new CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda(this.mbz_1, this.nbz_1, this.obz_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation) {
    this.mc0_1 = this$0;
    this.nc0_1 = $submitterUid;
    this.oc0_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.pc0_1 = this.mc0_1.ybz_1;
            var tmp_1 = this;
            tmp_1.qc0_1 = 'CourseAssignmentMarkDao/getAllMarksForSubmitterAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.rc0_1 = this.mc0_1.ac0_1;
            var tmp_3 = this;
            tmp_3.sc0_1 = this.rc0_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.mc0_1.ybz_1.j39(), 'CourseAssignmentMarkDao/getAllMarksForSubmitterAsFlow');
            doorNodeIdHeader(this_0, this.mc0_1.ybz_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'submitterUid', this.mc0_1.ybz_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.nc0_1));
            parameter(this_0, 'assignmentUid', this.mc0_1.ybz_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.oc0_1));
            tmp_4.tc0_1 = this_0;
            this.tc0_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.uc0_1 = this.sc0_1;
            var tmp_6 = this;
            tmp_6.vc0_1 = this.tc0_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.vc0_1, this.uc0_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.wc0_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.mc0_1.xbz_1, this.wc0_1, this.mc0_1.ybz_1.j39().x65_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().d5e(e, 'DoorLog', CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda$lambda(this.pc0_1, this.qc0_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).l78 = function (completion) {
    return new CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda(this.mc0_1, this.nc0_1, this.oc0_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentMarkDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.fc1_1 = this$0;
    this.gc1_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentMarkDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentMarkDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.fc1_1.zbz_1.insertAsync(this.gc1_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).l78 = function (completion) {
    return new CourseAssignmentMarkDao_Repo$insertAsync$slambda(this.fc1_1, this.gc1_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$163(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.pc1_1 = _this__u8e3s4;
    this.qc1_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$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;
            suspendResult = withRepoChangeMonitorAsync(this.pc1_1.ybz_1, 'CourseAssignmentMark', CourseAssignmentMarkDao_Repo$insertAsync$slambda_0(this.pc1_1, this.qc1_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.xbz_1 = _db;
    this.ybz_1 = _repo;
    this.zbz_1 = _dao;
    this.ac0_1 = _httpClient;
    this.bc0_1 = _clientId;
    this.cc0_1 = _endpoint;
    this.dc0_1 = new RepoDaoFlowHelper(this.ybz_1);
  }
  protoOf(CourseAssignmentMarkDao_Repo).pbv = function (accountPersonUid, assignmentUid) {
    var tmp = this.zbz_1.pbv(accountPersonUid, assignmentUid);
    return this.dc0_1.o67(tmp, CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda_0(this, accountPersonUid, assignmentUid, null));
  };
  protoOf(CourseAssignmentMarkDao_Repo).qbv = function (submitterUid, assignmentUid) {
    var tmp = this.zbz_1.qbv(submitterUid, assignmentUid);
    return this.dc0_1.o67(tmp, CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda_0(this, submitterUid, assignmentUid, null));
  };
  protoOf(CourseAssignmentMarkDao_Repo).qbw = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$163(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentMarkDao_Repo).insertAsync = function (entity, $completion) {
    return this.qbw(entity instanceof CourseAssignmentMark ? entity : THROW_CCE(), $completion);
  };
  function CourseAssignmentSubmissionDao() {
  }
  function $insertAsyncCOROUTINE$165(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ec2_1 = _this__u8e3s4;
    this.fc2_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$165).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.gc2_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.ec2_1.ic2_1));
            if (this.fc2_1.kc2_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.gc2_1.o62(522, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.hc2_1 = suspendResult;
            this.fc2_1.kc2_1 = this.hc2_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.fc2_1.qc2_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.ec2_1.jc2_1.insertAsync(this.fc2_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.fc2_1.kc2_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.ic2_1 = _db;
    this.jc2_1 = _dao;
  }
  protoOf(CourseAssignmentSubmissionDao_DoorWrapper).rc1 = function (submitterUid, assignmentUid) {
    return this.jc2_1.rc1(submitterUid, assignmentUid);
  };
  protoOf(CourseAssignmentSubmissionDao_DoorWrapper).sc1 = function (accountPersonUid, assignmentUid, $completion) {
    return this.jc2_1.sc1(accountPersonUid, assignmentUid, $completion);
  };
  protoOf(CourseAssignmentSubmissionDao_DoorWrapper).tc1 = function (assignmentUid, $completion) {
    return this.jc2_1.tc1(assignmentUid, $completion);
  };
  protoOf(CourseAssignmentSubmissionDao_DoorWrapper).uc1 = function (assignmentUid) {
    return this.jc2_1.uc1(assignmentUid);
  };
  protoOf(CourseAssignmentSubmissionDao_DoorWrapper).vc1 = function (accountPersonUid, assignmentUid) {
    return this.jc2_1.vc1(accountPersonUid, assignmentUid);
  };
  protoOf(CourseAssignmentSubmissionDao_DoorWrapper).sc2 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$165(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.sc2(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.y5m('casUid');
      var _tmp_casAssignmentUid = $_result.y5m('casAssignmentUid');
      var _tmp_casSubmitterUid = $_result.y5m('casSubmitterUid');
      var _tmp_casSubmitterPersonUid = $_result.y5m('casSubmitterPersonUid');
      var _tmp_casText = $_result.rz('casText');
      var _tmp_casType = $_result.x5m('casType');
      var _tmp_casTimestamp = $_result.y5m('casTimestamp');
      var _tmp_casClazzUid = $_result.y5m('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.kc2_1 = _tmp_casUid;
      this_0.lc2_1 = _tmp_casAssignmentUid;
      this_0.mc2_1 = _tmp_casSubmitterUid;
      this_0.nc2_1 = _tmp_casSubmitterPersonUid;
      this_0.oc2_1 = _tmp_casText;
      this_0.pc2_1 = _tmp_casType;
      this_0.qc2_1 = _tmp_casTimestamp;
      this_0.rc2_1 = _tmp_casClazzUid;
      return this_0;
    };
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda($assignmentUid, $submitterUid, resultContinuation) {
    this.bc3_1 = $assignmentUid;
    this.cc3_1 = $submitterUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda).ec3 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ec3((!(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.dc3_1.v5h(1, this.bc3_1);
            this.dc3_1.v5h(2, this.cc3_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.dc3_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).m5f = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda(this.bc3_1, this.cc3_1, completion);
    i.dc3_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.ec3(_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.n74(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.n74(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.n74(1);
    };
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda($assignmentUid, resultContinuation) {
    this.nc3_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda).ta6 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ta6((!(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.oc3_1.v5h(1, this.nc3_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.oc3_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).m5f = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda(this.nc3_1, completion);
    i.oc3_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.ta6(_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.y5m('casUid');
      var _tmp_casAssignmentUid = $_result.y5m('casAssignmentUid');
      var _tmp_casSubmitterUid = $_result.y5m('casSubmitterUid');
      var _tmp_casSubmitterPersonUid = $_result.y5m('casSubmitterPersonUid');
      var _tmp_casText = $_result.rz('casText');
      var _tmp_casType = $_result.x5m('casType');
      var _tmp_casTimestamp = $_result.y5m('casTimestamp');
      var _tmp_casClazzUid = $_result.y5m('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.kc2_1 = _tmp_casUid;
      this_0.lc2_1 = _tmp_casAssignmentUid;
      this_0.mc2_1 = _tmp_casSubmitterUid;
      this_0.nc2_1 = _tmp_casSubmitterPersonUid;
      this_0.oc2_1 = _tmp_casText;
      this_0.pc2_1 = _tmp_casType;
      this_0.qc2_1 = _tmp_casTimestamp;
      this_0.rc2_1 = _tmp_casClazzUid;
      return this_0;
    };
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation) {
    this.xc3_1 = $assignmentUid;
    this.yc3_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda).ec3 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ec3((!(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.zc3_1.v5h(1, this.xc3_1);
            this.zc3_1.v5h(2, this.xc3_1);
            this.zc3_1.v5h(3, this.yc3_1);
            this.zc3_1.v5h(4, this.xc3_1);
            this.zc3_1.v5h(5, this.xc3_1);
            this.zc3_1.v5h(6, this.yc3_1);
            this.zc3_1.v5h(7, this.xc3_1);
            this.zc3_1.v5h(8, this.yc3_1);
            this.zc3_1.v5h(9, this.xc3_1);
            this.zc3_1.v5h(10, this.xc3_1);
            this.zc3_1.v5h(11, this.yc3_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.zc3_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).m5f = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda(this.xc3_1, this.yc3_1, completion);
    i.zc3_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.ec3(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ac4_1);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO CourseAssignmentSubmission (casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1).ec4 = function (stmt, entity) {
    if (entity.kc2_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.kc2_1);
    }
    stmt.v5h(2, entity.lc2_1);
    stmt.v5h(3, entity.mc2_1);
    stmt.v5h(4, entity.nc2_1);
    stmt.y5h(5, entity.oc2_1);
    stmt.u5h(6, entity.pc2_1);
    stmt.v5h(7, entity.qc2_1);
    stmt.v5h(8, entity.rc2_1);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1).p5f = function (stmt, entity) {
    return this.ec4(stmt, entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE());
  };
  function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda(this$0, $assignmentUid, $submitterUid, resultContinuation) {
    this.nc4_1 = this$0;
    this.oc4_1 = $assignmentUid;
    this.pc4_1 = $submitterUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda).qc4 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda).m78 = function ($completion) {
    return this.qc4($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.nc4_1.ac4_1, tmp_0, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda_0(this.oc4_1, this.pc4_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).l78 = function (completion) {
    return new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda(this.nc4_1, this.oc4_1, this.pc4_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.qc4($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda($assignmentUid, $accountPersonUid, resultContinuation) {
    this.zc4_1 = $assignmentUid;
    this.ac5_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda).ta6 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ta6((!(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.bc5_1.v5h(1, this.zc4_1);
            this.bc5_1.v5h(2, this.ac5_1);
            this.bc5_1.v5h(3, this.zc4_1);
            this.bc5_1.v5h(4, this.zc4_1);
            this.bc5_1.v5h(5, this.ac5_1);
            this.bc5_1.v5h(6, this.zc4_1);
            this.bc5_1.v5h(7, this.ac5_1);
            this.bc5_1.v5h(8, this.zc4_1);
            this.bc5_1.v5h(9, this.zc4_1);
            this.bc5_1.v5h(10, this.ac5_1);
            this.bc5_1.v5h(11, this.zc4_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.bc5_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).m5f = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda(this.zc4_1, this.ac5_1, completion);
    i.bc5_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.ta6(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda($assignmentUid, resultContinuation) {
    this.kc5_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda).ta6 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ta6((!(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.lc5_1.v5h(1, this.kc5_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.lc5_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).m5f = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda(this.kc5_1, completion);
    i.lc5_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.ta6(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda(this$0, $assignmentUid, resultContinuation) {
    this.uc5_1 = this$0;
    this.vc5_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda).ia8 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda).m78 = function ($completion) {
    return this.ia8($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.uc5_1.ac4_1, tmp_0, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda_0(this.vc5_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).l78 = function (completion) {
    return new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda(this.uc5_1, this.vc5_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.ia8($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation) {
    this.ec6_1 = this$0;
    this.fc6_1 = $assignmentUid;
    this.gc6_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda).qc4 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda).m78 = function ($completion) {
    return this.qc4($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.ec6_1.ac4_1, tmp_0, CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda_0(this.fc6_1, this.gc6_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).l78 = function (completion) {
    return new CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda(this.ec6_1, this.fc6_1, this.gc6_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.qc4($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$166(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.pc6_1 = _this__u8e3s4;
    this.qc6_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$166).ud = function () {
    var 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.pc6_1.bc4_1.w5g(this.qc6_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.ac4_1 = _db;
    var tmp = this;
    tmp.bc4_1 = new CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1(this);
  }
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl).sc2 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$166(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.sc2(entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE(), $completion);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl).rc1 = 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.ac4_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda_0(this, assignmentUid, submitterUid, null));
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl).sc1 = 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.ac4_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda_0(assignmentUid, accountPersonUid, null), $completion);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl).tc1 = 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.ac4_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda_0(assignmentUid, null), $completion);
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl).uc1 = 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.ac4_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda_0(this, assignmentUid, null));
  };
  protoOf(CourseAssignmentSubmissionDao_JdbcImpl).vc1 = 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.ac4_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.zc6_1 = this$0;
    this.ac7_1 = $submitterUid;
    this.bc7_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.cc7_1 = this.zc6_1.lc7_1;
            var tmp_1 = this;
            tmp_1.dc7_1 = 'CourseAssignmentSubmissionDao/getAllSubmissionsFromSubmitterAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ec7_1 = this.zc6_1.nc7_1;
            var tmp_3 = this;
            tmp_3.fc7_1 = this.ec7_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.zc6_1.lc7_1.j39(), 'CourseAssignmentSubmissionDao/getAllSubmissionsFromSubmitterAsFlow');
            doorNodeIdHeader(this_0, this.zc6_1.lc7_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'submitterUid', this.zc6_1.lc7_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ac7_1));
            parameter(this_0, 'assignmentUid', this.zc6_1.lc7_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.bc7_1));
            tmp_4.gc7_1 = this_0;
            this.gc7_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.hc7_1 = this.fc7_1;
            var tmp_6 = this;
            tmp_6.ic7_1 = this.gc7_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.ic7_1, this.hc7_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.jc7_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.zc6_1.kc7_1, this.jc7_1, this.zc6_1.lc7_1.j39().x65_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().d5e(e, 'DoorLog', CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda$lambda(this.cc7_1, this.dc7_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).l78 = function (completion) {
    return new CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda(this.zc6_1, this.ac7_1, this.bc7_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation) {
    this.zc7_1 = this$0;
    this.ac8_1 = $accountPersonUid;
    this.bc8_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda).m78 = function ($completion) {
    return this.j87($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.cc8_1 = this.zc7_1.lc7_1;
            var tmp_1 = this;
            tmp_1.dc8_1 = 'CourseAssignmentSubmissionDao/findByAssignmentUidAndAccountPersonUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ec8_1 = this.zc7_1.nc7_1;
            var tmp_3 = this;
            tmp_3.fc8_1 = this.ec8_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.zc7_1.lc7_1.j39(), 'CourseAssignmentSubmissionDao/findByAssignmentUidAndAccountPersonUid');
            doorNodeIdHeader(this_0, this.zc7_1.lc7_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.zc7_1.lc7_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ac8_1));
            parameter(this_0, 'assignmentUid', this.zc7_1.lc7_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.bc8_1));
            tmp_4.gc8_1 = this_0;
            this.gc8_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.hc8_1 = this.fc8_1;
            var tmp_6 = this;
            tmp_6.ic8_1 = this.gc8_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.ic8_1, this.hc8_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.jc8_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.zc7_1.kc7_1, this.jc8_1, this.zc7_1.lc7_1.j39().x65_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().d5e(e, 'DoorLog', CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda$lambda(this.cc8_1, this.dc8_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).l78 = function (completion) {
    return new CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda(this.zc7_1, this.ac8_1, this.bc8_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.sc8_1 = this$0;
    this.tc8_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.sc8_1.mc7_1.insertAsync(this.tc8_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).l78 = function (completion) {
    return new CourseAssignmentSubmissionDao_Repo$insertAsync$slambda(this.sc8_1, this.tc8_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $doesUserHaveSubmissionsCOROUTINE$168(_this__u8e3s4, accountPersonUid, assignmentUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.cc9_1 = _this__u8e3s4;
    this.dc9_1 = accountPersonUid;
    this.ec9_1 = assignmentUid;
  }
  protoOf($doesUserHaveSubmissionsCOROUTINE$168).ud = function () {
    var 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.cc9_1.mc7_1.sc1(this.dc9_1, this.ec9_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$172(_this__u8e3s4, assignmentUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.nc9_1 = _this__u8e3s4;
    this.oc9_1 = assignmentUid;
  }
  protoOf($checkNoSubmissionsMadeAsyncCOROUTINE$172).ud = function () {
    var 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.nc9_1.mc7_1.tc1(this.oc9_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$173(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.xc9_1 = _this__u8e3s4;
    this.yc9_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$173).ud = function () {
    var 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.xc9_1.lc7_1, 'CourseAssignmentSubmission', CourseAssignmentSubmissionDao_Repo$insertAsync$slambda_0(this.xc9_1, this.yc9_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.kc7_1 = _db;
    this.lc7_1 = _repo;
    this.mc7_1 = _dao;
    this.nc7_1 = _httpClient;
    this.oc7_1 = _clientId;
    this.pc7_1 = _endpoint;
    this.qc7_1 = new RepoDaoFlowHelper(this.lc7_1);
  }
  protoOf(CourseAssignmentSubmissionDao_Repo).rc1 = function (submitterUid, assignmentUid) {
    var tmp = this.mc7_1.rc1(submitterUid, assignmentUid);
    return this.qc7_1.o67(tmp, CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda_0(this, submitterUid, assignmentUid, null));
  };
  protoOf(CourseAssignmentSubmissionDao_Repo).sc1 = function (accountPersonUid, assignmentUid, $completion) {
    var tmp = new $doesUserHaveSubmissionsCOROUTINE$168(this, accountPersonUid, assignmentUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_Repo).tc1 = function (assignmentUid, $completion) {
    var tmp = new $checkNoSubmissionsMadeAsyncCOROUTINE$172(this, assignmentUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_Repo).uc1 = function (assignmentUid) {
    var _result = this.mc7_1.uc1(assignmentUid);
    return _result;
  };
  protoOf(CourseAssignmentSubmissionDao_Repo).vc1 = function (accountPersonUid, assignmentUid) {
    var tmp = this.mc7_1.vc1(accountPersonUid, assignmentUid);
    return this.qc7_1.o67(tmp, CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda_0(this, accountPersonUid, assignmentUid, null));
  };
  protoOf(CourseAssignmentSubmissionDao_Repo).sc2 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$173(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionDao_Repo).insertAsync = function (entity, $completion) {
    return this.sc2(entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE(), $completion);
  };
  function CourseAssignmentSubmissionFileDao() {
  }
  function $insertListAsyncCOROUTINE$174(_this__u8e3s4, entityList, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.nca_1 = _this__u8e3s4;
    this.oca_1 = entityList;
  }
  protoOf($insertListAsyncCOROUTINE$174).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.pca_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.nca_1.wca_1));
            var tmp_0 = this;
            tmp_0.qca_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.rca_1 = this.oca_1.w();
            var tmp_2 = this;
            tmp_2.sca_1 = this.rca_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.sca_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.tca_1 = this.sca_1.e();
            var tmp_3 = this;
            tmp_3.uca_1 = this.tca_1;
            if (this.uca_1.yca_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.pca_1.o62(90, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.vca_1 = suspendResult;
            this.uca_1.yca_1 = this.vca_1;
            var this_0 = this.qca_1;
            var element = this.vca_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.uca_1.hcb_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.nca_1.xca_1.zc9(this.oca_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$175(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.rcb_1 = _this__u8e3s4;
    this.scb_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$175).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.tcb_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.rcb_1.wca_1));
            if (this.scb_1.yca_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.tcb_1.o62(90, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.ucb_1 = suspendResult;
            this.scb_1.yca_1 = this.ucb_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.scb_1.hcb_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.rcb_1.xca_1.insertAsync(this.scb_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.scb_1.yca_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.wca_1 = _db;
    this.xca_1 = _dao;
  }
  protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).zc9 = function (entityList, $completion) {
    var tmp = new $insertListAsyncCOROUTINE$174(this, entityList, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).aca = function (submissionUid) {
    return this.xca_1.aca(submissionUid);
  };
  protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).bca = function (accountPersonUid, assignmentUid) {
    return this.xca_1.bca(accountPersonUid, assignmentUid);
  };
  protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).cca = function (submitterUid, assignmentUid) {
    return this.xca_1.cca(submitterUid, assignmentUid);
  };
  protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).dca = function (casaUid, uri, updateTime, $completion) {
    return this.xca_1.dca(casaUid, uri, updateTime, $completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).eca = function (casaUid, deleted, updateTime, $completion) {
    return this.xca_1.eca(casaUid, deleted, updateTime, $completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).vcb = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$175(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.vcb(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.y5m('casaUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_casaSubmissionUid = $_result.y5m('casaSubmissionUid');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_casaSubmitterUid = $_result.y5m('casaSubmitterUid');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_casaCaUid = $_result.y5m('casaCaUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_casaClazzUid = $_result.y5m('casaClazzUid');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_casaMimeType = $_result.rz('casaMimeType');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_casaFileName = $_result.rz('casaFileName');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_casaUri = $_result.rz('casaUri');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_casaSize = $_result.x5m('casaSize');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_casaTimestamp = $_result.y5m('casaTimestamp');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_casaDeleted = $_result.j66('casaDeleted');
      var tmp_9;
      if ($_result.q67()) {
        _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.x5m('tjiUid');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_tjiTjUid = $_result.x5m('tjiTjUid');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_tjTotalSize = $_result.y5m('tjTotalSize');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_tjTransferred = $_result.y5m('tjTransferred');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_tjAttemptCount = $_result.x5m('tjAttemptCount');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_tjiSrc = $_result.rz('tjiSrc');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_tjiDest = $_result.rz('tjiDest');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_tjiType = $_result.x5m('tjiType');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_tjiStatus = $_result.x5m('tjiStatus');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_tjiTableId = $_result.x5m('tjiTableId');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_tjiEntityUid = $_result.y5m('tjiEntityUid');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_tjiEntityEtag = $_result.y5m('tjiEntityEtag');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_tjiLockIdToRelease = $_result.y5m('tjiLockIdToRelease');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_tjiPartialTmpFile = $_result.rz('tjiPartialTmpFile');
      var tmp_23;
      if ($_result.q67()) {
        _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.yca_1 = _tmp_casaUid;
        this_1.zca_1 = _tmp_casaSubmissionUid;
        this_1.acb_1 = _tmp_casaSubmitterUid;
        this_1.bcb_1 = _tmp_casaCaUid;
        this_1.ccb_1 = _tmp_casaClazzUid;
        this_1.dcb_1 = _tmp_casaMimeType;
        this_1.ecb_1 = _tmp_casaFileName;
        this_1.fcb_1 = _tmp_casaUri;
        this_1.gcb_1 = _tmp_casaSize;
        this_1.hcb_1 = _tmp_casaTimestamp;
        this_1.icb_1 = _tmp_casaDeleted;
        tmp_24.wcb_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.ycb_1 = _tmp_tjiUid;
        this_2.zcb_1 = _tmp_tjiTjUid;
        this_2.acc_1 = _tmp_tjTotalSize;
        this_2.bcc_1 = _tmp_tjTransferred;
        this_2.ccc_1 = _tmp_tjAttemptCount;
        this_2.dcc_1 = _tmp_tjiSrc;
        this_2.ecc_1 = _tmp_tjiDest;
        this_2.fcc_1 = _tmp_tjiType;
        this_2.gcc_1 = _tmp_tjiStatus;
        this_2.hcc_1 = _tmp_tjiTableId;
        this_2.icc_1 = _tmp_tjiEntityUid;
        this_2.jcc_1 = _tmp_tjiEntityEtag;
        this_2.kcc_1 = _tmp_tjiLockIdToRelease;
        this_2.lcc_1 = _tmp_tjiPartialTmpFile;
        tmp_25.xcb_1 = this_2;
      }
      return this_0;
    };
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda($submissionUid, resultContinuation) {
    this.ucc_1 = $submissionUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda).wcc = function (_stmt, $completion) {
    var tmp = this.m5f(_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.wcc((!(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.vcc_1.v5h(1, this.ucc_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.vcc_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).m5f = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda(this.ucc_1, completion);
    i.vcc_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.wcc(_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.y5m('casaUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_casaSubmissionUid = $_result.y5m('casaSubmissionUid');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_casaSubmitterUid = $_result.y5m('casaSubmitterUid');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_casaCaUid = $_result.y5m('casaCaUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_casaClazzUid = $_result.y5m('casaClazzUid');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_casaMimeType = $_result.rz('casaMimeType');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_casaFileName = $_result.rz('casaFileName');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_casaUri = $_result.rz('casaUri');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_casaSize = $_result.x5m('casaSize');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_casaTimestamp = $_result.y5m('casaTimestamp');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_casaDeleted = $_result.j66('casaDeleted');
      var tmp_9;
      if ($_result.q67()) {
        _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.x5m('tjiUid');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_tjiTjUid = $_result.x5m('tjiTjUid');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_tjTotalSize = $_result.y5m('tjTotalSize');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_tjTransferred = $_result.y5m('tjTransferred');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_tjAttemptCount = $_result.x5m('tjAttemptCount');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_tjiSrc = $_result.rz('tjiSrc');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_tjiDest = $_result.rz('tjiDest');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_tjiType = $_result.x5m('tjiType');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_tjiStatus = $_result.x5m('tjiStatus');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_tjiTableId = $_result.x5m('tjiTableId');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_tjiEntityUid = $_result.y5m('tjiEntityUid');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_tjiEntityEtag = $_result.y5m('tjiEntityEtag');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_tjiLockIdToRelease = $_result.y5m('tjiLockIdToRelease');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_tjiPartialTmpFile = $_result.rz('tjiPartialTmpFile');
      var tmp_23;
      if ($_result.q67()) {
        _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.yca_1 = _tmp_casaUid;
        this_1.zca_1 = _tmp_casaSubmissionUid;
        this_1.acb_1 = _tmp_casaSubmitterUid;
        this_1.bcb_1 = _tmp_casaCaUid;
        this_1.ccb_1 = _tmp_casaClazzUid;
        this_1.dcb_1 = _tmp_casaMimeType;
        this_1.ecb_1 = _tmp_casaFileName;
        this_1.fcb_1 = _tmp_casaUri;
        this_1.gcb_1 = _tmp_casaSize;
        this_1.hcb_1 = _tmp_casaTimestamp;
        this_1.icb_1 = _tmp_casaDeleted;
        tmp_24.wcb_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.ycb_1 = _tmp_tjiUid;
        this_2.zcb_1 = _tmp_tjiTjUid;
        this_2.acc_1 = _tmp_tjTotalSize;
        this_2.bcc_1 = _tmp_tjTransferred;
        this_2.ccc_1 = _tmp_tjAttemptCount;
        this_2.dcc_1 = _tmp_tjiSrc;
        this_2.ecc_1 = _tmp_tjiDest;
        this_2.fcc_1 = _tmp_tjiType;
        this_2.gcc_1 = _tmp_tjiStatus;
        this_2.hcc_1 = _tmp_tjiTableId;
        this_2.icc_1 = _tmp_tjiEntityUid;
        this_2.jcc_1 = _tmp_tjiEntityEtag;
        this_2.kcc_1 = _tmp_tjiLockIdToRelease;
        this_2.lcc_1 = _tmp_tjiPartialTmpFile;
        tmp_25.xcb_1 = this_2;
      }
      return this_0;
    };
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation) {
    this.fcd_1 = $assignmentUid;
    this.gcd_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda).wcc = function (_stmt, $completion) {
    var tmp = this.m5f(_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.wcc((!(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.hcd_1.v5h(1, this.fcd_1);
            this.hcd_1.v5h(2, this.fcd_1);
            this.hcd_1.v5h(3, this.gcd_1);
            this.hcd_1.v5h(4, this.fcd_1);
            this.hcd_1.v5h(5, this.fcd_1);
            this.hcd_1.v5h(6, this.gcd_1);
            this.hcd_1.v5h(7, this.fcd_1);
            this.hcd_1.v5h(8, this.gcd_1);
            this.hcd_1.v5h(9, this.fcd_1);
            this.hcd_1.v5h(10, this.fcd_1);
            this.hcd_1.v5h(11, this.gcd_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.hcd_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).m5f = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda(this.fcd_1, this.gcd_1, completion);
    i.hcd_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.wcc(_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.y5m('casaUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_casaSubmissionUid = $_result.y5m('casaSubmissionUid');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_casaSubmitterUid = $_result.y5m('casaSubmitterUid');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_casaCaUid = $_result.y5m('casaCaUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_casaClazzUid = $_result.y5m('casaClazzUid');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_casaMimeType = $_result.rz('casaMimeType');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_casaFileName = $_result.rz('casaFileName');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_casaUri = $_result.rz('casaUri');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_casaSize = $_result.x5m('casaSize');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_casaTimestamp = $_result.y5m('casaTimestamp');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_casaDeleted = $_result.j66('casaDeleted');
      var tmp_9;
      if ($_result.q67()) {
        _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.x5m('tjiUid');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_tjiTjUid = $_result.x5m('tjiTjUid');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_tjTotalSize = $_result.y5m('tjTotalSize');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_tjTransferred = $_result.y5m('tjTransferred');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_tjAttemptCount = $_result.x5m('tjAttemptCount');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_tjiSrc = $_result.rz('tjiSrc');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_tjiDest = $_result.rz('tjiDest');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_tjiType = $_result.x5m('tjiType');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_tjiStatus = $_result.x5m('tjiStatus');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_tjiTableId = $_result.x5m('tjiTableId');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_tjiEntityUid = $_result.y5m('tjiEntityUid');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_tjiEntityEtag = $_result.y5m('tjiEntityEtag');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_tjiLockIdToRelease = $_result.y5m('tjiLockIdToRelease');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_tjiPartialTmpFile = $_result.rz('tjiPartialTmpFile');
      var tmp_23;
      if ($_result.q67()) {
        _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.yca_1 = _tmp_casaUid;
        this_1.zca_1 = _tmp_casaSubmissionUid;
        this_1.acb_1 = _tmp_casaSubmitterUid;
        this_1.bcb_1 = _tmp_casaCaUid;
        this_1.ccb_1 = _tmp_casaClazzUid;
        this_1.dcb_1 = _tmp_casaMimeType;
        this_1.ecb_1 = _tmp_casaFileName;
        this_1.fcb_1 = _tmp_casaUri;
        this_1.gcb_1 = _tmp_casaSize;
        this_1.hcb_1 = _tmp_casaTimestamp;
        this_1.icb_1 = _tmp_casaDeleted;
        tmp_24.wcb_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.ycb_1 = _tmp_tjiUid;
        this_2.zcb_1 = _tmp_tjiTjUid;
        this_2.acc_1 = _tmp_tjTotalSize;
        this_2.bcc_1 = _tmp_tjTransferred;
        this_2.ccc_1 = _tmp_tjAttemptCount;
        this_2.dcc_1 = _tmp_tjiSrc;
        this_2.ecc_1 = _tmp_tjiDest;
        this_2.fcc_1 = _tmp_tjiType;
        this_2.gcc_1 = _tmp_tjiStatus;
        this_2.hcc_1 = _tmp_tjiTableId;
        this_2.icc_1 = _tmp_tjiEntityUid;
        this_2.jcc_1 = _tmp_tjiEntityEtag;
        this_2.kcc_1 = _tmp_tjiLockIdToRelease;
        this_2.lcc_1 = _tmp_tjiPartialTmpFile;
        tmp_25.xcb_1 = this_2;
      }
      return this_0;
    };
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda($submitterUid, $assignmentUid, resultContinuation) {
    this.qcd_1 = $submitterUid;
    this.rcd_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda).wcc = function (_stmt, $completion) {
    var tmp = this.m5f(_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.wcc((!(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.scd_1.v5h(1, this.qcd_1);
            this.scd_1.v5h(2, this.rcd_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.scd_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).m5f = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda(this.qcd_1, this.rcd_1, completion);
    i.scd_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.wcc(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.tcd_1);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO CourseAssignmentSubmissionFile (casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1).xcd = function (stmt, entity) {
    if (entity.yca_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.yca_1);
    }
    stmt.v5h(2, entity.zca_1);
    stmt.v5h(3, entity.acb_1);
    stmt.v5h(4, entity.bcb_1);
    stmt.v5h(5, entity.ccb_1);
    stmt.y5h(6, entity.dcb_1);
    stmt.y5h(7, entity.ecb_1);
    stmt.y5h(8, entity.fcb_1);
    stmt.u5h(9, entity.gcb_1);
    stmt.v5h(10, entity.hcb_1);
    stmt.i5h(11, entity.icb_1);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1).p5f = function (stmt, entity) {
    return this.xcd(stmt, entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE());
  };
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda(this$0, $submissionUid, resultContinuation) {
    this.gce_1 = this$0;
    this.hce_1 = $submissionUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda).ice = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda).m78 = function ($completion) {
    return this.ice($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.gce_1.tcd_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda_0(this.hce_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).l78 = function (completion) {
    return new CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda(this.gce_1, this.hce_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.ice($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation) {
    this.rce_1 = this$0;
    this.sce_1 = $assignmentUid;
    this.tce_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda).ice = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda).m78 = function ($completion) {
    return this.ice($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.rce_1.tcd_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda_0(this.sce_1, this.tce_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).l78 = function (completion) {
    return new CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda(this.rce_1, this.sce_1, this.tce_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.ice($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation) {
    this.ccf_1 = this$0;
    this.dcf_1 = $submitterUid;
    this.ecf_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda).ice = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda).m78 = function ($completion) {
    return this.ice($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.ccf_1.tcd_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda_0(this.dcf_1, this.ecf_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).l78 = function (completion) {
    return new CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this.ccf_1, this.dcf_1, this.ecf_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.ice($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda($uri, $updateTime, $casaUid, resultContinuation) {
    this.ncf_1 = $uri;
    this.ocf_1 = $updateTime;
    this.pcf_1 = $casaUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.qcf_1.y5h(1, this.ncf_1);
            this.qcf_1.v5h(2, this.ocf_1);
            this.qcf_1.v5h(3, this.pcf_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.qcf_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).m5f = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda(this.ncf_1, this.ocf_1, this.pcf_1, completion);
    i.qcf_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda($deleted, $updateTime, $casaUid, resultContinuation) {
    this.zcf_1 = $deleted;
    this.acg_1 = $updateTime;
    this.bcg_1 = $casaUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.ccg_1.i5h(1, this.zcf_1);
            this.ccg_1.v5h(2, this.acg_1);
            this.ccg_1.v5h(3, this.bcg_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.ccg_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).m5f = function (_stmt, completion) {
    var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda(this.zcf_1, this.acg_1, this.bcg_1, completion);
    i.ccg_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$176(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.lcg_1 = _this__u8e3s4;
    this.mcg_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$176).ud = function () {
    var 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.lcg_1.ucd_1.w5g(this.mcg_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$177(_this__u8e3s4, casaUid, uri, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vcg_1 = _this__u8e3s4;
    this.wcg_1 = casaUid;
    this.xcg_1 = uri;
    this.ycg_1 = updateTime;
  }
  protoOf($updateUriCOROUTINE$177).ud = function () {
    var 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.vcg_1.tcd_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda_0(this.xcg_1, this.ycg_1, this.wcg_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$178(_this__u8e3s4, casaUid, deleted, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.hch_1 = _this__u8e3s4;
    this.ich_1 = casaUid;
    this.jch_1 = deleted;
    this.kch_1 = updateTime;
  }
  protoOf($setDeletedCOROUTINE$178).ud = function () {
    var 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.hch_1.tcd_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda_0(this.jch_1, this.kch_1, this.ich_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.tcd_1 = _db;
    var tmp = this;
    tmp.ucd_1 = new CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1(this);
  }
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).zc9 = function (entityList, $completion) {
    return this.ucd_1.z5g(entityList, $completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).vcb = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$176(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.vcb(entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE(), $completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).aca = 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.tcd_1, tmp, CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda_0(this, submissionUid, null));
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).bca = 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.tcd_1, tmp, CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda_0(this, assignmentUid, accountPersonUid, null));
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).cca = 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.tcd_1, tmp, CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda_0(this, submitterUid, assignmentUid, null));
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).dca = function (casaUid, uri, updateTime, $completion) {
    var tmp = new $updateUriCOROUTINE$177(this, casaUid, uri, updateTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).eca = function (casaUid, deleted, updateTime, $completion) {
    var tmp = new $setDeletedCOROUTINE$178(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.tch_1 = this$0;
    this.uch_1 = $entityList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda).m78 = function ($completion) {
    return this.j87($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.tch_1.xch_1.zc9(this.uch_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).l78 = function (completion) {
    return new CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda(this.tch_1, this.uch_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation) {
    this.kci_1 = this$0;
    this.lci_1 = $accountPersonUid;
    this.mci_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda).m78 = function ($completion) {
    return this.j87($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.nci_1 = this.kci_1.wch_1;
            var tmp_1 = this;
            tmp_1.oci_1 = 'CourseAssignmentSubmissionFileDao/getByAssignmentUidAndPersonUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.pci_1 = this.kci_1.ych_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.kci_1.wch_1.j39(), 'CourseAssignmentSubmissionFileDao/getByAssignmentUidAndPersonUid');
            doorNodeIdHeader(this_0, this.kci_1.wch_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.kci_1.wch_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.lci_1));
            parameter(this_0, 'assignmentUid', this.kci_1.wch_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.mci_1));
            tmp_4.rci_1 = this_0;
            this.rci_1.w38_1 = Companion_getInstance_0().l2x_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)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.uci_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.kci_1.vch_1, this.uci_1, this.kci_1.wch_1.j39().x65_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().d5e(e, 'DoorLog', CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$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(CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda).l78 = function (completion) {
    return new CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda(this.kci_1, this.lci_1, this.mci_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation) {
    this.dcj_1 = this$0;
    this.ecj_1 = $submitterUid;
    this.fcj_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.gcj_1 = this.dcj_1.wch_1;
            var tmp_1 = this;
            tmp_1.hcj_1 = 'CourseAssignmentSubmissionFileDao/getAllSubmissionFilesFromSubmitterAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.icj_1 = this.dcj_1.ych_1;
            var tmp_3 = this;
            tmp_3.jcj_1 = this.icj_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.dcj_1.wch_1.j39(), 'CourseAssignmentSubmissionFileDao/getAllSubmissionFilesFromSubmitterAsFlow');
            doorNodeIdHeader(this_0, this.dcj_1.wch_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'submitterUid', this.dcj_1.wch_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ecj_1));
            parameter(this_0, 'assignmentUid', this.dcj_1.wch_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.fcj_1));
            tmp_4.kcj_1 = this_0;
            this.kcj_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.lcj_1 = this.jcj_1;
            var tmp_6 = this;
            tmp_6.mcj_1 = this.kcj_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.mcj_1, this.lcj_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.ncj_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.dcj_1.vch_1, this.ncj_1, this.dcj_1.wch_1.j39().x65_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().d5e(e, 'DoorLog', CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda$lambda(this.gcj_1, this.hcj_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).l78 = function (completion) {
    return new CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this.dcj_1, this.ecj_1, this.fcj_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda(this$0, $casaUid, $uri, $updateTime, resultContinuation) {
    this.wcj_1 = this$0;
    this.xcj_1 = $casaUid;
    this.ycj_1 = $uri;
    this.zcj_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda).m78 = function ($completion) {
    return this.j87($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.wcj_1.xch_1.dca(this.xcj_1, this.ycj_1, this.zcj_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).l78 = function (completion) {
    return new CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda(this.wcj_1, this.xcj_1, this.ycj_1, this.zcj_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda(this$0, $casaUid, $deleted, $updateTime, resultContinuation) {
    this.ick_1 = this$0;
    this.jck_1 = $casaUid;
    this.kck_1 = $deleted;
    this.lck_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda).m78 = function ($completion) {
    return this.j87($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.ick_1.xch_1.eca(this.jck_1, this.kck_1, this.lck_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).l78 = function (completion) {
    return new CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda(this.ick_1, this.jck_1, this.kck_1, this.lck_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.uck_1 = this$0;
    this.vck_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.uck_1.xch_1.insertAsync(this.vck_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).l78 = function (completion) {
    return new CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda(this.uck_1, this.vck_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$179(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ecl_1 = _this__u8e3s4;
    this.fcl_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$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 = withRepoChangeMonitorAsync(this.ecl_1.wch_1, 'CourseAssignmentSubmissionFile', CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda_0(this.ecl_1, this.fcl_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.vch_1 = _db;
    this.wch_1 = _repo;
    this.xch_1 = _dao;
    this.ych_1 = _httpClient;
    this.zch_1 = _clientId;
    this.aci_1 = _endpoint;
    this.bci_1 = new RepoDaoFlowHelper(this.wch_1);
  }
  protoOf(CourseAssignmentSubmissionFileDao_Repo).zc9 = function (entityList, $completion) {
    return withRepoChangeMonitorAsync(this.wch_1, 'CourseAssignmentSubmissionFile', CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda_0(this, entityList, null), $completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo).aca = function (submissionUid) {
    var _result = this.xch_1.aca(submissionUid);
    return _result;
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo).bca = function (accountPersonUid, assignmentUid) {
    var tmp = this.xch_1.bca(accountPersonUid, assignmentUid);
    return this.bci_1.o67(tmp, CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda_0(this, accountPersonUid, assignmentUid, null));
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo).cca = function (submitterUid, assignmentUid) {
    var tmp = this.xch_1.cca(submitterUid, assignmentUid);
    return this.bci_1.o67(tmp, CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda_0(this, submitterUid, assignmentUid, null));
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo).dca = function (casaUid, uri, updateTime, $completion) {
    return withRepoChangeMonitorAsync(this.wch_1, 'CourseAssignmentSubmissionFile', CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda_0(this, casaUid, uri, updateTime, null), $completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo).eca = function (casaUid, deleted, updateTime, $completion) {
    return withRepoChangeMonitorAsync(this.wch_1, 'CourseAssignmentSubmissionFile', CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda_0(this, casaUid, deleted, updateTime, null), $completion);
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo).vcb = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$179(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseAssignmentSubmissionFileDao_Repo).insertAsync = function (entity, $completion) {
    return this.vcb(entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE(), $completion);
  };
  function CourseBlockDao() {
  }
  function $upsertListAsyncCOROUTINE$181(_this__u8e3s4, entities, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.xcl_1 = _this__u8e3s4;
    this.ycl_1 = entities;
  }
  protoOf($upsertListAsyncCOROUTINE$181).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.zcl_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.xcl_1.gcm_1));
            var tmp_0 = this;
            tmp_0.acm_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.bcm_1 = this.ycl_1.w();
            var tmp_2 = this;
            tmp_2.ccm_1 = this.bcm_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.ccm_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.dcm_1 = this.ccm_1.e();
            var tmp_3 = this;
            tmp_3.ecm_1 = this.dcm_1;
            if (this.ecm_1.t7x_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.zcl_1.o62(124, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.fcm_1 = suspendResult;
            this.ecm_1.t7x_1 = this.fcm_1;
            var this_0 = this.acm_1;
            var element = this.fcm_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.ecm_1.m7y_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.xcl_1.hcm_1.kcl(this.ycl_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$182(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.qcm_1 = _this__u8e3s4;
    this.rcm_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$182).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.scm_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.qcm_1.gcm_1));
            if (this.rcm_1.t7x_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.scm_1.o62(124, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.tcm_1 = suspendResult;
            this.rcm_1.t7x_1 = this.tcm_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.rcm_1.m7y_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.qcm_1.hcm_1.insertAsync(this.rcm_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.rcm_1.t7x_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.gcm_1 = _db;
    this.hcm_1 = _dao;
  }
  protoOf(CourseBlockDao_DoorWrapper).gcl = function (uid) {
    return this.hcm_1.gcl(uid);
  };
  protoOf(CourseBlockDao_DoorWrapper).hcl = function (clazzUid, includeInactive, $completion) {
    return this.hcm_1.hcl(clazzUid, includeInactive, $completion);
  };
  protoOf(CourseBlockDao_DoorWrapper).icl = function (clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid) {
    return this.hcm_1.icl(clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid);
  };
  protoOf(CourseBlockDao_DoorWrapper).jcl = function (cbUid, active, changeTime, $completion) {
    return this.hcm_1.jcl(cbUid, active, changeTime, $completion);
  };
  protoOf(CourseBlockDao_DoorWrapper).kcl = function (entities, $completion) {
    var tmp = new $upsertListAsyncCOROUTINE$181(this, entities, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_DoorWrapper).lcl = function (postUid, $completion) {
    return this.hcm_1.lcl(postUid, $completion);
  };
  protoOf(CourseBlockDao_DoorWrapper).mcl = function (courseBlockUid, $completion) {
    return this.hcm_1.mcl(courseBlockUid, $completion);
  };
  protoOf(CourseBlockDao_DoorWrapper).ncl = function (assignmentUid) {
    return this.hcm_1.ncl(assignmentUid);
  };
  protoOf(CourseBlockDao_DoorWrapper).ocl = function (clazzUid) {
    return this.hcm_1.ocl(clazzUid);
  };
  protoOf(CourseBlockDao_DoorWrapper).ucm = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$182(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.ucm(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.y5m('cbUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_cbType = $_result.x5m('cbType');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_cbIndentLevel = $_result.x5m('cbIndentLevel');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_cbModuleParentBlockUid = $_result.y5m('cbModuleParentBlockUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_cbTitle = $_result.rz('cbTitle');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_cbDescription = $_result.rz('cbDescription');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_cbCompletionCriteria = $_result.x5m('cbCompletionCriteria');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_cbHideUntilDate = $_result.y5m('cbHideUntilDate');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_cbDeadlineDate = $_result.y5m('cbDeadlineDate');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_cbLateSubmissionPenalty = $_result.x5m('cbLateSubmissionPenalty');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_cbGracePeriodDate = $_result.y5m('cbGracePeriodDate');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_cbIndex = $_result.x5m('cbIndex');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_cbClazzUid = $_result.y5m('cbClazzUid');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_cbClazzSourcedId = $_result.rz('cbClazzSourcedId');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_cbActive = $_result.j66('cbActive');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_cbHidden = $_result.j66('cbHidden');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_cbEntityUid = $_result.y5m('cbEntityUid');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_cbLct = $_result.y5m('cbLct');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_cbSourcedId = $_result.rz('cbSourcedId');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_cbMetadata = $_result.rz('cbMetadata');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_cbCreatedByAppId = $_result.rz('cbCreatedByAppId');
      var tmp_21;
      if ($_result.q67()) {
        _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.y5m('cbpUid');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_cbpLct = $_result.y5m('cbpLct');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_cbpPictureUri = $_result.rz('cbpPictureUri');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_cbpThumbnailUri = $_result.rz('cbpThumbnailUri');
      var tmp_25;
      if ($_result.q67()) {
        _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.t7x_1 = _tmp_cbUid;
        this_1.u7x_1 = _tmp_cbType;
        this_1.v7x_1 = _tmp_cbIndentLevel;
        this_1.w7x_1 = _tmp_cbModuleParentBlockUid;
        this_1.x7x_1 = _tmp_cbTitle;
        this_1.y7x_1 = _tmp_cbDescription;
        this_1.z7x_1 = _tmp_cbCompletionCriteria;
        this_1.a7y_1 = _tmp_cbHideUntilDate;
        this_1.b7y_1 = _tmp_cbDeadlineDate;
        this_1.c7y_1 = _tmp_cbLateSubmissionPenalty;
        this_1.d7y_1 = _tmp_cbGracePeriodDate;
        this_1.e7y_1 = _tmp_cbMaxPoints;
        this_1.f7y_1 = _tmp_cbMinPoints;
        this_1.g7y_1 = _tmp_cbIndex;
        this_1.h7y_1 = _tmp_cbClazzUid;
        this_1.i7y_1 = _tmp_cbClazzSourcedId;
        this_1.j7y_1 = _tmp_cbActive;
        this_1.k7y_1 = _tmp_cbHidden;
        this_1.l7y_1 = _tmp_cbEntityUid;
        this_1.m7y_1 = _tmp_cbLct;
        this_1.n7y_1 = _tmp_cbSourcedId;
        this_1.o7y_1 = _tmp_cbMetadata;
        this_1.p7y_1 = _tmp_cbCreatedByAppId;
        tmp_26.vcm_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.w7y_1 = _tmp_cbpUid;
        this_2.x7y_1 = _tmp_cbpLct;
        this_2.y7y_1 = _tmp_cbpPictureUri;
        this_2.z7y_1 = _tmp_cbpThumbnailUri;
        tmp_27.wcm_1 = this_2;
      }
      return this_0;
    };
  }
  function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda($uid, resultContinuation) {
    this.fcn_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).hcn = function (_stmt, $completion) {
    var tmp = this.m5f(_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.hcn((!(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.gcn_1.v5h(1, this.fcn_1);
            this.gcn_1.v5h(2, this.fcn_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.gcn_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).m5f = function (_stmt, completion) {
    var i = new CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda(this.fcn_1, completion);
    i.gcn_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.hcn(_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.y5m('cbUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_cbType = $_result.x5m('cbType');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_cbIndentLevel = $_result.x5m('cbIndentLevel');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_cbModuleParentBlockUid = $_result.y5m('cbModuleParentBlockUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_cbTitle = $_result.rz('cbTitle');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_cbDescription = $_result.rz('cbDescription');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_cbCompletionCriteria = $_result.x5m('cbCompletionCriteria');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_cbHideUntilDate = $_result.y5m('cbHideUntilDate');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_cbDeadlineDate = $_result.y5m('cbDeadlineDate');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_cbLateSubmissionPenalty = $_result.x5m('cbLateSubmissionPenalty');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_cbGracePeriodDate = $_result.y5m('cbGracePeriodDate');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_cbIndex = $_result.x5m('cbIndex');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_cbClazzUid = $_result.y5m('cbClazzUid');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_cbClazzSourcedId = $_result.rz('cbClazzSourcedId');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_cbActive = $_result.j66('cbActive');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_cbHidden = $_result.j66('cbHidden');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_cbEntityUid = $_result.y5m('cbEntityUid');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_cbLct = $_result.y5m('cbLct');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_cbSourcedId = $_result.rz('cbSourcedId');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_cbMetadata = $_result.rz('cbMetadata');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_cbCreatedByAppId = $_result.rz('cbCreatedByAppId');
      var tmp_21;
      if ($_result.q67()) {
        _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.y5m('cbpUid');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_cbpLct = $_result.y5m('cbpLct');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_cbpPictureUri = $_result.rz('cbpPictureUri');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_cbpThumbnailUri = $_result.rz('cbpThumbnailUri');
      var tmp_25;
      if ($_result.q67()) {
        _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.y5m('contentEntryUid');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_title = $_result.rz('title');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_description = $_result.rz('description');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_entryId = $_result.rz('entryId');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_author = $_result.rz('author');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_publisher = $_result.rz('publisher');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_licenseType = $_result.x5m('licenseType');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_licenseName = $_result.rz('licenseName');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_licenseUrl = $_result.rz('licenseUrl');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_sourceUrl = $_result.rz('sourceUrl');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_thumbnailUrl = $_result.rz('thumbnailUrl');
      var tmp_36;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_lastModified = $_result.y5m('lastModified');
      var tmp_37;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_primaryLanguageUid = $_result.y5m('primaryLanguageUid');
      var tmp_38;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_languageVariantUid = $_result.y5m('languageVariantUid');
      var tmp_39;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_contentFlags = $_result.x5m('contentFlags');
      var tmp_40;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_leaf = $_result.j66('leaf');
      var tmp_41;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_publik = $_result.j66('publik');
      var tmp_42;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_ceInactive = $_result.j66('ceInactive');
      var tmp_43;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_completionCriteria = $_result.x5m('completionCriteria');
      var tmp_44;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_minScore = $_result.x5m('minScore');
      var tmp_45;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_45 = Unit_instance;
      }
      var _tmp_contentTypeFlag = $_result.x5m('contentTypeFlag');
      var tmp_46;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_46 = Unit_instance;
      }
      var _tmp_contentOwner = $_result.y5m('contentOwner');
      var tmp_47;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_47 = Unit_instance;
      }
      var _tmp_contentOwnerType = $_result.x5m('contentOwnerType');
      var tmp_48;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_48 = Unit_instance;
      }
      var _tmp_contentEntryLocalChangeSeqNum = $_result.y5m('contentEntryLocalChangeSeqNum');
      var tmp_49;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_49 = Unit_instance;
      }
      var _tmp_contentEntryMasterChangeSeqNum = $_result.y5m('contentEntryMasterChangeSeqNum');
      var tmp_50;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_50 = Unit_instance;
      }
      var _tmp_contentEntryLastChangedBy = $_result.x5m('contentEntryLastChangedBy');
      var tmp_51;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_51 = Unit_instance;
      }
      var _tmp_contentEntryLct = $_result.y5m('contentEntryLct');
      var tmp_52;
      if ($_result.q67()) {
        _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.y5m('langUid');
      var tmp_53;
      if ($_result.q67()) {
        _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0;
        tmp_53 = Unit_instance;
      }
      var _tmp_name = $_result.rz('name');
      var tmp_54;
      if ($_result.q67()) {
        _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.q67()) {
        _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.q67()) {
        _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.q67()) {
        _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.q67()) {
        _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0;
        tmp_58 = Unit_instance;
      }
      var _tmp_languageActive = $_result.j66('languageActive');
      var tmp_59;
      if ($_result.q67()) {
        _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0;
        tmp_59 = Unit_instance;
      }
      var _tmp_langLocalChangeSeqNum = $_result.y5m('langLocalChangeSeqNum');
      var tmp_60;
      if ($_result.q67()) {
        _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0;
        tmp_60 = Unit_instance;
      }
      var _tmp_langMasterChangeSeqNum = $_result.y5m('langMasterChangeSeqNum');
      var tmp_61;
      if ($_result.q67()) {
        _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0;
        tmp_61 = Unit_instance;
      }
      var _tmp_langLastChangedBy = $_result.x5m('langLastChangedBy');
      var tmp_62;
      if ($_result.q67()) {
        _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0;
        tmp_62 = Unit_instance;
      }
      var _tmp_langLct = $_result.y5m('langLct');
      var tmp_63;
      if ($_result.q67()) {
        _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.y5m('caUid');
      var tmp_64;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_64 = Unit_instance;
      }
      var _tmp_caTitle = $_result.rz('caTitle');
      var tmp_65;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_65 = Unit_instance;
      }
      var _tmp_caDescription = $_result.rz('caDescription');
      var tmp_66;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_66 = Unit_instance;
      }
      var _tmp_caGroupUid = $_result.y5m('caGroupUid');
      var tmp_67;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_67 = Unit_instance;
      }
      var _tmp_caActive = $_result.j66('caActive');
      var tmp_68;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_68 = Unit_instance;
      }
      var _tmp_caClassCommentEnabled = $_result.j66('caClassCommentEnabled');
      var tmp_69;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_69 = Unit_instance;
      }
      var _tmp_caPrivateCommentsEnabled = $_result.j66('caPrivateCommentsEnabled');
      var tmp_70;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_70 = Unit_instance;
      }
      var _tmp_caCompletionCriteria = $_result.x5m('caCompletionCriteria');
      var tmp_71;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_71 = Unit_instance;
      }
      var _tmp_caRequireFileSubmission = $_result.j66('caRequireFileSubmission');
      var tmp_72;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_72 = Unit_instance;
      }
      var _tmp_caFileType = $_result.x5m('caFileType');
      var tmp_73;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_73 = Unit_instance;
      }
      var _tmp_caSizeLimit = $_result.x5m('caSizeLimit');
      var tmp_74;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_74 = Unit_instance;
      }
      var _tmp_caNumberOfFiles = $_result.x5m('caNumberOfFiles');
      var tmp_75;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_75 = Unit_instance;
      }
      var _tmp_caSubmissionPolicy = $_result.x5m('caSubmissionPolicy');
      var tmp_76;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_76 = Unit_instance;
      }
      var _tmp_caMarkingType = $_result.x5m('caMarkingType');
      var tmp_77;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_77 = Unit_instance;
      }
      var _tmp_caRequireTextSubmission = $_result.j66('caRequireTextSubmission');
      var tmp_78;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_78 = Unit_instance;
      }
      var _tmp_caTextLimitType = $_result.x5m('caTextLimitType');
      var tmp_79;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_79 = Unit_instance;
      }
      var _tmp_caTextLimit = $_result.x5m('caTextLimit');
      var tmp_80;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_80 = Unit_instance;
      }
      var _tmp_caXObjectUid = $_result.y5m('caXObjectUid');
      var tmp_81;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_81 = Unit_instance;
      }
      var _tmp_caClazzUid = $_result.y5m('caClazzUid');
      var tmp_82;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_82 = Unit_instance;
      }
      var _tmp_caPeerReviewerCount = $_result.x5m('caPeerReviewerCount');
      var tmp_83;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_83 = Unit_instance;
      }
      var _tmp_caLocalChangeSeqNum = $_result.y5m('caLocalChangeSeqNum');
      var tmp_84;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_84 = Unit_instance;
      }
      var _tmp_caMasterChangeSeqNum = $_result.y5m('caMasterChangeSeqNum');
      var tmp_85;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_85 = Unit_instance;
      }
      var _tmp_caLastChangedBy = $_result.x5m('caLastChangedBy');
      var tmp_86;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_86 = Unit_instance;
      }
      var _tmp_caLct = $_result.y5m('caLct');
      var tmp_87;
      if ($_result.q67()) {
        _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.ncn_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.t7x_1 = _tmp_cbUid;
        this_1.u7x_1 = _tmp_cbType;
        this_1.v7x_1 = _tmp_cbIndentLevel;
        this_1.w7x_1 = _tmp_cbModuleParentBlockUid;
        this_1.x7x_1 = _tmp_cbTitle;
        this_1.y7x_1 = _tmp_cbDescription;
        this_1.z7x_1 = _tmp_cbCompletionCriteria;
        this_1.a7y_1 = _tmp_cbHideUntilDate;
        this_1.b7y_1 = _tmp_cbDeadlineDate;
        this_1.c7y_1 = _tmp_cbLateSubmissionPenalty;
        this_1.d7y_1 = _tmp_cbGracePeriodDate;
        this_1.e7y_1 = _tmp_cbMaxPoints;
        this_1.f7y_1 = _tmp_cbMinPoints;
        this_1.g7y_1 = _tmp_cbIndex;
        this_1.h7y_1 = _tmp_cbClazzUid;
        this_1.i7y_1 = _tmp_cbClazzSourcedId;
        this_1.j7y_1 = _tmp_cbActive;
        this_1.k7y_1 = _tmp_cbHidden;
        this_1.l7y_1 = _tmp_cbEntityUid;
        this_1.m7y_1 = _tmp_cbLct;
        this_1.n7y_1 = _tmp_cbSourcedId;
        this_1.o7y_1 = _tmp_cbMetadata;
        this_1.p7y_1 = _tmp_cbCreatedByAppId;
        tmp_88.icn_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.w7y_1 = _tmp_cbpUid;
        this_2.x7y_1 = _tmp_cbpLct;
        this_2.y7y_1 = _tmp_cbpPictureUri;
        this_2.z7y_1 = _tmp_cbpThumbnailUri;
        tmp_89.jcn_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.nav_1 = _tmp_contentEntryUid;
        this_3.oav_1 = _tmp_title;
        this_3.pav_1 = _tmp_description;
        this_3.qav_1 = _tmp_entryId;
        this_3.rav_1 = _tmp_author;
        this_3.sav_1 = _tmp_publisher;
        this_3.tav_1 = _tmp_licenseType;
        this_3.uav_1 = _tmp_licenseName;
        this_3.vav_1 = _tmp_licenseUrl;
        this_3.wav_1 = _tmp_sourceUrl;
        this_3.xav_1 = _tmp_thumbnailUrl;
        this_3.yav_1 = _tmp_lastModified;
        this_3.zav_1 = _tmp_primaryLanguageUid;
        this_3.aaw_1 = _tmp_languageVariantUid;
        this_3.baw_1 = _tmp_contentFlags;
        this_3.caw_1 = _tmp_leaf;
        this_3.daw_1 = _tmp_publik;
        this_3.eaw_1 = _tmp_ceInactive;
        this_3.faw_1 = _tmp_completionCriteria;
        this_3.gaw_1 = _tmp_minScore;
        this_3.haw_1 = _tmp_contentTypeFlag;
        this_3.iaw_1 = _tmp_contentOwner;
        this_3.jaw_1 = _tmp_contentOwnerType;
        this_3.kaw_1 = _tmp_contentEntryLocalChangeSeqNum;
        this_3.law_1 = _tmp_contentEntryMasterChangeSeqNum;
        this_3.maw_1 = _tmp_contentEntryLastChangedBy;
        this_3.naw_1 = _tmp_contentEntryLct;
        tmp_90.kcn_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.ocn_1 = _tmp_langUid;
        this_4.pcn_1 = _tmp_name;
        this_4.qcn_1 = _tmp_iso_639_1_standard;
        this_4.rcn_1 = _tmp_iso_639_2_standard;
        this_4.scn_1 = _tmp_iso_639_3_standard;
        this_4.tcn_1 = _tmp_Language_Type;
        this_4.ucn_1 = _tmp_languageActive;
        this_4.vcn_1 = _tmp_langLocalChangeSeqNum;
        this_4.wcn_1 = _tmp_langMasterChangeSeqNum;
        this_4.xcn_1 = _tmp_langLastChangedBy;
        this_4.ycn_1 = _tmp_langLct;
        tmp_91.lcn_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.n7t_1 = _tmp_caUid;
        this_5.o7t_1 = _tmp_caTitle;
        this_5.p7t_1 = _tmp_caDescription;
        this_5.q7t_1 = _tmp_caGroupUid;
        this_5.r7t_1 = _tmp_caActive;
        this_5.s7t_1 = _tmp_caClassCommentEnabled;
        this_5.t7t_1 = _tmp_caPrivateCommentsEnabled;
        this_5.u7t_1 = _tmp_caCompletionCriteria;
        this_5.v7t_1 = _tmp_caRequireFileSubmission;
        this_5.w7t_1 = _tmp_caFileType;
        this_5.x7t_1 = _tmp_caSizeLimit;
        this_5.y7t_1 = _tmp_caNumberOfFiles;
        this_5.z7t_1 = _tmp_caSubmissionPolicy;
        this_5.a7u_1 = _tmp_caMarkingType;
        this_5.b7u_1 = _tmp_caRequireTextSubmission;
        this_5.c7u_1 = _tmp_caTextLimitType;
        this_5.d7u_1 = _tmp_caTextLimit;
        this_5.e7u_1 = _tmp_caXObjectUid;
        this_5.f7u_1 = _tmp_caClazzUid;
        this_5.g7u_1 = _tmp_caPeerReviewerCount;
        this_5.h7u_1 = _tmp_caLocalChangeSeqNum;
        this_5.i7u_1 = _tmp_caMasterChangeSeqNum;
        this_5.j7u_1 = _tmp_caLastChangedBy;
        this_5.k7u_1 = _tmp_caLct;
        tmp_92.mcn_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.y5m('cbUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_cbType = $_result.x5m('cbType');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_cbIndentLevel = $_result.x5m('cbIndentLevel');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_cbModuleParentBlockUid = $_result.y5m('cbModuleParentBlockUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_cbTitle = $_result.rz('cbTitle');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_cbDescription = $_result.rz('cbDescription');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_cbCompletionCriteria = $_result.x5m('cbCompletionCriteria');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_cbHideUntilDate = $_result.y5m('cbHideUntilDate');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_cbDeadlineDate = $_result.y5m('cbDeadlineDate');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_cbLateSubmissionPenalty = $_result.x5m('cbLateSubmissionPenalty');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_cbGracePeriodDate = $_result.y5m('cbGracePeriodDate');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_cbIndex = $_result.x5m('cbIndex');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_cbClazzUid = $_result.y5m('cbClazzUid');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_cbClazzSourcedId = $_result.rz('cbClazzSourcedId');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_cbActive = $_result.j66('cbActive');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_cbHidden = $_result.j66('cbHidden');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_cbEntityUid = $_result.y5m('cbEntityUid');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_cbLct = $_result.y5m('cbLct');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_cbSourcedId = $_result.rz('cbSourcedId');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_cbMetadata = $_result.rz('cbMetadata');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_cbCreatedByAppId = $_result.rz('cbCreatedByAppId');
      var tmp_21;
      if ($_result.q67()) {
        _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.y5m('cbpUid');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_cbpLct = $_result.y5m('cbpLct');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_cbpPictureUri = $_result.rz('cbpPictureUri');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_cbpThumbnailUri = $_result.rz('cbpThumbnailUri');
      var tmp_25;
      if ($_result.q67()) {
        _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.y5m('contentEntryUid');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_title = $_result.rz('title');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_description = $_result.rz('description');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_entryId = $_result.rz('entryId');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_author = $_result.rz('author');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_publisher = $_result.rz('publisher');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_licenseType = $_result.x5m('licenseType');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_licenseName = $_result.rz('licenseName');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_licenseUrl = $_result.rz('licenseUrl');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_sourceUrl = $_result.rz('sourceUrl');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_thumbnailUrl = $_result.rz('thumbnailUrl');
      var tmp_36;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_lastModified = $_result.y5m('lastModified');
      var tmp_37;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_primaryLanguageUid = $_result.y5m('primaryLanguageUid');
      var tmp_38;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_languageVariantUid = $_result.y5m('languageVariantUid');
      var tmp_39;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_contentFlags = $_result.x5m('contentFlags');
      var tmp_40;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_leaf = $_result.j66('leaf');
      var tmp_41;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_publik = $_result.j66('publik');
      var tmp_42;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_ceInactive = $_result.j66('ceInactive');
      var tmp_43;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_completionCriteria = $_result.x5m('completionCriteria');
      var tmp_44;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_minScore = $_result.x5m('minScore');
      var tmp_45;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_45 = Unit_instance;
      }
      var _tmp_contentTypeFlag = $_result.x5m('contentTypeFlag');
      var tmp_46;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_46 = Unit_instance;
      }
      var _tmp_contentOwner = $_result.y5m('contentOwner');
      var tmp_47;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_47 = Unit_instance;
      }
      var _tmp_contentOwnerType = $_result.x5m('contentOwnerType');
      var tmp_48;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_48 = Unit_instance;
      }
      var _tmp_contentEntryLocalChangeSeqNum = $_result.y5m('contentEntryLocalChangeSeqNum');
      var tmp_49;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_49 = Unit_instance;
      }
      var _tmp_contentEntryMasterChangeSeqNum = $_result.y5m('contentEntryMasterChangeSeqNum');
      var tmp_50;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_50 = Unit_instance;
      }
      var _tmp_contentEntryLastChangedBy = $_result.x5m('contentEntryLastChangedBy');
      var tmp_51;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_51 = Unit_instance;
      }
      var _tmp_contentEntryLct = $_result.y5m('contentEntryLct');
      var tmp_52;
      if ($_result.q67()) {
        _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.y5m('cepUid');
      var tmp_53;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_53 = Unit_instance;
      }
      var _tmp_cepLct = $_result.y5m('cepLct');
      var tmp_54;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_54 = Unit_instance;
      }
      var _tmp_cepPictureUri = $_result.rz('cepPictureUri');
      var tmp_55;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_55 = Unit_instance;
      }
      var _tmp_cepThumbnailUri = $_result.rz('cepThumbnailUri');
      var tmp_56;
      if ($_result.q67()) {
        _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.t7x_1 = _tmp_cbUid;
        this_1.u7x_1 = _tmp_cbType;
        this_1.v7x_1 = _tmp_cbIndentLevel;
        this_1.w7x_1 = _tmp_cbModuleParentBlockUid;
        this_1.x7x_1 = _tmp_cbTitle;
        this_1.y7x_1 = _tmp_cbDescription;
        this_1.z7x_1 = _tmp_cbCompletionCriteria;
        this_1.a7y_1 = _tmp_cbHideUntilDate;
        this_1.b7y_1 = _tmp_cbDeadlineDate;
        this_1.c7y_1 = _tmp_cbLateSubmissionPenalty;
        this_1.d7y_1 = _tmp_cbGracePeriodDate;
        this_1.e7y_1 = _tmp_cbMaxPoints;
        this_1.f7y_1 = _tmp_cbMinPoints;
        this_1.g7y_1 = _tmp_cbIndex;
        this_1.h7y_1 = _tmp_cbClazzUid;
        this_1.i7y_1 = _tmp_cbClazzSourcedId;
        this_1.j7y_1 = _tmp_cbActive;
        this_1.k7y_1 = _tmp_cbHidden;
        this_1.l7y_1 = _tmp_cbEntityUid;
        this_1.m7y_1 = _tmp_cbLct;
        this_1.n7y_1 = _tmp_cbSourcedId;
        this_1.o7y_1 = _tmp_cbMetadata;
        this_1.p7y_1 = _tmp_cbCreatedByAppId;
        tmp_57.zcn_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.w7y_1 = _tmp_cbpUid;
        this_2.x7y_1 = _tmp_cbpLct;
        this_2.y7y_1 = _tmp_cbpPictureUri;
        this_2.z7y_1 = _tmp_cbpThumbnailUri;
        tmp_58.aco_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.nav_1 = _tmp_contentEntryUid;
        this_3.oav_1 = _tmp_title;
        this_3.pav_1 = _tmp_description;
        this_3.qav_1 = _tmp_entryId;
        this_3.rav_1 = _tmp_author;
        this_3.sav_1 = _tmp_publisher;
        this_3.tav_1 = _tmp_licenseType;
        this_3.uav_1 = _tmp_licenseName;
        this_3.vav_1 = _tmp_licenseUrl;
        this_3.wav_1 = _tmp_sourceUrl;
        this_3.xav_1 = _tmp_thumbnailUrl;
        this_3.yav_1 = _tmp_lastModified;
        this_3.zav_1 = _tmp_primaryLanguageUid;
        this_3.aaw_1 = _tmp_languageVariantUid;
        this_3.baw_1 = _tmp_contentFlags;
        this_3.caw_1 = _tmp_leaf;
        this_3.daw_1 = _tmp_publik;
        this_3.eaw_1 = _tmp_ceInactive;
        this_3.faw_1 = _tmp_completionCriteria;
        this_3.gaw_1 = _tmp_minScore;
        this_3.haw_1 = _tmp_contentTypeFlag;
        this_3.iaw_1 = _tmp_contentOwner;
        this_3.jaw_1 = _tmp_contentOwnerType;
        this_3.kaw_1 = _tmp_contentEntryLocalChangeSeqNum;
        this_3.law_1 = _tmp_contentEntryMasterChangeSeqNum;
        this_3.maw_1 = _tmp_contentEntryLastChangedBy;
        this_3.naw_1 = _tmp_contentEntryLct;
        tmp_59.bco_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.dax_1 = _tmp_cepUid;
        this_4.eax_1 = _tmp_cepLct;
        this_4.fax_1 = _tmp_cepPictureUri;
        this_4.gax_1 = _tmp_cepThumbnailUri;
        tmp_60.cco_1 = this_4;
      }
      return this_0;
    };
  }
  function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda($clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) {
    this.lco_1 = $clazzUid;
    this.mco_1 = $includeInactive;
    this.nco_1 = $includeHidden;
    this.oco_1 = $hideUntilFilterTime;
    this.pco_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda).rco = function (_stmt, $completion) {
    var tmp = this.m5f(_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.rco((!(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.qco_1.v5h(1, this.lco_1);
            this.qco_1.i5h(2, this.mco_1);
            this.qco_1.i5h(3, this.nco_1);
            this.qco_1.v5h(4, this.oco_1);
            this.qco_1.v5h(5, this.oco_1);
            this.qco_1.v5h(6, this.pco_1);
            this.qco_1.v5h(7, this.pco_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.qco_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).m5f = function (_stmt, completion) {
    var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda(this.lco_1, this.mco_1, this.nco_1, this.oco_1, this.pco_1, completion);
    i.qco_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.rco(_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.y5m('clazzUid');
      var _tmp_courseBlockUid = $_result.y5m('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.sco_1 = _tmp_clazzUid;
      this_0.tco_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.z5e(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.y5m('cbUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_cbType = $_result.x5m('cbType');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_cbIndentLevel = $_result.x5m('cbIndentLevel');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_cbModuleParentBlockUid = $_result.y5m('cbModuleParentBlockUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_cbTitle = $_result.rz('cbTitle');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_cbDescription = $_result.rz('cbDescription');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_cbCompletionCriteria = $_result.x5m('cbCompletionCriteria');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_cbHideUntilDate = $_result.y5m('cbHideUntilDate');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_cbDeadlineDate = $_result.y5m('cbDeadlineDate');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_cbLateSubmissionPenalty = $_result.x5m('cbLateSubmissionPenalty');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_cbGracePeriodDate = $_result.y5m('cbGracePeriodDate');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_cbIndex = $_result.x5m('cbIndex');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_cbClazzUid = $_result.y5m('cbClazzUid');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_cbClazzSourcedId = $_result.rz('cbClazzSourcedId');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_cbActive = $_result.j66('cbActive');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_cbHidden = $_result.j66('cbHidden');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_cbEntityUid = $_result.y5m('cbEntityUid');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_cbLct = $_result.y5m('cbLct');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_cbSourcedId = $_result.rz('cbSourcedId');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_cbMetadata = $_result.rz('cbMetadata');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_cbCreatedByAppId = $_result.rz('cbCreatedByAppId');
      var tmp_21;
      if ($_result.q67()) {
        _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.y5m('caUid');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_caTitle = $_result.rz('caTitle');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_caDescription = $_result.rz('caDescription');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_caGroupUid = $_result.y5m('caGroupUid');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_caActive = $_result.j66('caActive');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_caClassCommentEnabled = $_result.j66('caClassCommentEnabled');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_caPrivateCommentsEnabled = $_result.j66('caPrivateCommentsEnabled');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_caCompletionCriteria = $_result.x5m('caCompletionCriteria');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_caRequireFileSubmission = $_result.j66('caRequireFileSubmission');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_caFileType = $_result.x5m('caFileType');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_caSizeLimit = $_result.x5m('caSizeLimit');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_caNumberOfFiles = $_result.x5m('caNumberOfFiles');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_caSubmissionPolicy = $_result.x5m('caSubmissionPolicy');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_caMarkingType = $_result.x5m('caMarkingType');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_caRequireTextSubmission = $_result.j66('caRequireTextSubmission');
      var tmp_36;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_caTextLimitType = $_result.x5m('caTextLimitType');
      var tmp_37;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_caTextLimit = $_result.x5m('caTextLimit');
      var tmp_38;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_caXObjectUid = $_result.y5m('caXObjectUid');
      var tmp_39;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_caClazzUid = $_result.y5m('caClazzUid');
      var tmp_40;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_caPeerReviewerCount = $_result.x5m('caPeerReviewerCount');
      var tmp_41;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_caLocalChangeSeqNum = $_result.y5m('caLocalChangeSeqNum');
      var tmp_42;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_caMasterChangeSeqNum = $_result.y5m('caMasterChangeSeqNum');
      var tmp_43;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_caLastChangedBy = $_result.x5m('caLastChangedBy');
      var tmp_44;
      if ($_result.q67()) {
        _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_caLct = $_result.y5m('caLct');
      var tmp_45;
      if ($_result.q67()) {
        _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.t7x_1 = _tmp_cbUid;
        this_1.u7x_1 = _tmp_cbType;
        this_1.v7x_1 = _tmp_cbIndentLevel;
        this_1.w7x_1 = _tmp_cbModuleParentBlockUid;
        this_1.x7x_1 = _tmp_cbTitle;
        this_1.y7x_1 = _tmp_cbDescription;
        this_1.z7x_1 = _tmp_cbCompletionCriteria;
        this_1.a7y_1 = _tmp_cbHideUntilDate;
        this_1.b7y_1 = _tmp_cbDeadlineDate;
        this_1.c7y_1 = _tmp_cbLateSubmissionPenalty;
        this_1.d7y_1 = _tmp_cbGracePeriodDate;
        this_1.e7y_1 = _tmp_cbMaxPoints;
        this_1.f7y_1 = _tmp_cbMinPoints;
        this_1.g7y_1 = _tmp_cbIndex;
        this_1.h7y_1 = _tmp_cbClazzUid;
        this_1.i7y_1 = _tmp_cbClazzSourcedId;
        this_1.j7y_1 = _tmp_cbActive;
        this_1.k7y_1 = _tmp_cbHidden;
        this_1.l7y_1 = _tmp_cbEntityUid;
        this_1.m7y_1 = _tmp_cbLct;
        this_1.n7y_1 = _tmp_cbSourcedId;
        this_1.o7y_1 = _tmp_cbMetadata;
        this_1.p7y_1 = _tmp_cbCreatedByAppId;
        tmp_46.uco_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.n7t_1 = _tmp_caUid;
        this_2.o7t_1 = _tmp_caTitle;
        this_2.p7t_1 = _tmp_caDescription;
        this_2.q7t_1 = _tmp_caGroupUid;
        this_2.r7t_1 = _tmp_caActive;
        this_2.s7t_1 = _tmp_caClassCommentEnabled;
        this_2.t7t_1 = _tmp_caPrivateCommentsEnabled;
        this_2.u7t_1 = _tmp_caCompletionCriteria;
        this_2.v7t_1 = _tmp_caRequireFileSubmission;
        this_2.w7t_1 = _tmp_caFileType;
        this_2.x7t_1 = _tmp_caSizeLimit;
        this_2.y7t_1 = _tmp_caNumberOfFiles;
        this_2.z7t_1 = _tmp_caSubmissionPolicy;
        this_2.a7u_1 = _tmp_caMarkingType;
        this_2.b7u_1 = _tmp_caRequireTextSubmission;
        this_2.c7u_1 = _tmp_caTextLimitType;
        this_2.d7u_1 = _tmp_caTextLimit;
        this_2.e7u_1 = _tmp_caXObjectUid;
        this_2.f7u_1 = _tmp_caClazzUid;
        this_2.g7u_1 = _tmp_caPeerReviewerCount;
        this_2.h7u_1 = _tmp_caLocalChangeSeqNum;
        this_2.i7u_1 = _tmp_caMasterChangeSeqNum;
        this_2.j7u_1 = _tmp_caLastChangedBy;
        this_2.k7u_1 = _tmp_caLct;
        tmp_47.vco_1 = this_2;
      }
      return this_0;
    };
  }
  function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda($assignmentUid, resultContinuation) {
    this.ecp_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda).gcp = function (_stmt, $completion) {
    var tmp = this.m5f(_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.gcp((!(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.fcp_1.v5h(1, this.ecp_1);
            this.fcp_1.v5h(2, this.ecp_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.fcp_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).m5f = function (_stmt, completion) {
    var i = new CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda(this.ecp_1, completion);
    i.fcp_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.gcp(_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.y5m('cbUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_cbType = $_result.x5m('cbType');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_cbIndentLevel = $_result.x5m('cbIndentLevel');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_cbModuleParentBlockUid = $_result.y5m('cbModuleParentBlockUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_cbTitle = $_result.rz('cbTitle');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_cbDescription = $_result.rz('cbDescription');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_cbCompletionCriteria = $_result.x5m('cbCompletionCriteria');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_cbHideUntilDate = $_result.y5m('cbHideUntilDate');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_cbDeadlineDate = $_result.y5m('cbDeadlineDate');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_cbLateSubmissionPenalty = $_result.x5m('cbLateSubmissionPenalty');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_cbGracePeriodDate = $_result.y5m('cbGracePeriodDate');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_cbIndex = $_result.x5m('cbIndex');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_cbClazzUid = $_result.y5m('cbClazzUid');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_cbClazzSourcedId = $_result.rz('cbClazzSourcedId');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_cbActive = $_result.j66('cbActive');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_cbHidden = $_result.j66('cbHidden');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_cbEntityUid = $_result.y5m('cbEntityUid');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_cbLct = $_result.y5m('cbLct');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_cbSourcedId = $_result.rz('cbSourcedId');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_cbMetadata = $_result.rz('cbMetadata');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_cbCreatedByAppId = $_result.rz('cbCreatedByAppId');
      var tmp_21;
      if ($_result.q67()) {
        _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.y5m('cbpUid');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_cbpLct = $_result.y5m('cbpLct');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_cbpPictureUri = $_result.rz('cbpPictureUri');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_cbpThumbnailUri = $_result.rz('cbpThumbnailUri');
      var tmp_25;
      if ($_result.q67()) {
        _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.y5m('contentEntryUid');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_title = $_result.rz('title');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_description = $_result.rz('description');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_entryId = $_result.rz('entryId');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_author = $_result.rz('author');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_publisher = $_result.rz('publisher');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_licenseType = $_result.x5m('licenseType');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_licenseName = $_result.rz('licenseName');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_licenseUrl = $_result.rz('licenseUrl');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_sourceUrl = $_result.rz('sourceUrl');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_thumbnailUrl = $_result.rz('thumbnailUrl');
      var tmp_36;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_lastModified = $_result.y5m('lastModified');
      var tmp_37;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_primaryLanguageUid = $_result.y5m('primaryLanguageUid');
      var tmp_38;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_languageVariantUid = $_result.y5m('languageVariantUid');
      var tmp_39;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_contentFlags = $_result.x5m('contentFlags');
      var tmp_40;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_leaf = $_result.j66('leaf');
      var tmp_41;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_publik = $_result.j66('publik');
      var tmp_42;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_ceInactive = $_result.j66('ceInactive');
      var tmp_43;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_completionCriteria = $_result.x5m('completionCriteria');
      var tmp_44;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_minScore = $_result.x5m('minScore');
      var tmp_45;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_45 = Unit_instance;
      }
      var _tmp_contentTypeFlag = $_result.x5m('contentTypeFlag');
      var tmp_46;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_46 = Unit_instance;
      }
      var _tmp_contentOwner = $_result.y5m('contentOwner');
      var tmp_47;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_47 = Unit_instance;
      }
      var _tmp_contentOwnerType = $_result.x5m('contentOwnerType');
      var tmp_48;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_48 = Unit_instance;
      }
      var _tmp_contentEntryLocalChangeSeqNum = $_result.y5m('contentEntryLocalChangeSeqNum');
      var tmp_49;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_49 = Unit_instance;
      }
      var _tmp_contentEntryMasterChangeSeqNum = $_result.y5m('contentEntryMasterChangeSeqNum');
      var tmp_50;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_50 = Unit_instance;
      }
      var _tmp_contentEntryLastChangedBy = $_result.x5m('contentEntryLastChangedBy');
      var tmp_51;
      if ($_result.q67()) {
        _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0;
        tmp_51 = Unit_instance;
      }
      var _tmp_contentEntryLct = $_result.y5m('contentEntryLct');
      var tmp_52;
      if ($_result.q67()) {
        _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.y5m('cepUid');
      var tmp_53;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_53 = Unit_instance;
      }
      var _tmp_cepLct = $_result.y5m('cepLct');
      var tmp_54;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_54 = Unit_instance;
      }
      var _tmp_cepPictureUri = $_result.rz('cepPictureUri');
      var tmp_55;
      if ($_result.q67()) {
        _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0;
        tmp_55 = Unit_instance;
      }
      var _tmp_cepThumbnailUri = $_result.rz('cepThumbnailUri');
      var tmp_56;
      if ($_result.q67()) {
        _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.t7x_1 = _tmp_cbUid;
        this_1.u7x_1 = _tmp_cbType;
        this_1.v7x_1 = _tmp_cbIndentLevel;
        this_1.w7x_1 = _tmp_cbModuleParentBlockUid;
        this_1.x7x_1 = _tmp_cbTitle;
        this_1.y7x_1 = _tmp_cbDescription;
        this_1.z7x_1 = _tmp_cbCompletionCriteria;
        this_1.a7y_1 = _tmp_cbHideUntilDate;
        this_1.b7y_1 = _tmp_cbDeadlineDate;
        this_1.c7y_1 = _tmp_cbLateSubmissionPenalty;
        this_1.d7y_1 = _tmp_cbGracePeriodDate;
        this_1.e7y_1 = _tmp_cbMaxPoints;
        this_1.f7y_1 = _tmp_cbMinPoints;
        this_1.g7y_1 = _tmp_cbIndex;
        this_1.h7y_1 = _tmp_cbClazzUid;
        this_1.i7y_1 = _tmp_cbClazzSourcedId;
        this_1.j7y_1 = _tmp_cbActive;
        this_1.k7y_1 = _tmp_cbHidden;
        this_1.l7y_1 = _tmp_cbEntityUid;
        this_1.m7y_1 = _tmp_cbLct;
        this_1.n7y_1 = _tmp_cbSourcedId;
        this_1.o7y_1 = _tmp_cbMetadata;
        this_1.p7y_1 = _tmp_cbCreatedByAppId;
        tmp_57.hcp_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.w7y_1 = _tmp_cbpUid;
        this_2.x7y_1 = _tmp_cbpLct;
        this_2.y7y_1 = _tmp_cbpPictureUri;
        this_2.z7y_1 = _tmp_cbpThumbnailUri;
        tmp_58.icp_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.nav_1 = _tmp_contentEntryUid;
        this_3.oav_1 = _tmp_title;
        this_3.pav_1 = _tmp_description;
        this_3.qav_1 = _tmp_entryId;
        this_3.rav_1 = _tmp_author;
        this_3.sav_1 = _tmp_publisher;
        this_3.tav_1 = _tmp_licenseType;
        this_3.uav_1 = _tmp_licenseName;
        this_3.vav_1 = _tmp_licenseUrl;
        this_3.wav_1 = _tmp_sourceUrl;
        this_3.xav_1 = _tmp_thumbnailUrl;
        this_3.yav_1 = _tmp_lastModified;
        this_3.zav_1 = _tmp_primaryLanguageUid;
        this_3.aaw_1 = _tmp_languageVariantUid;
        this_3.baw_1 = _tmp_contentFlags;
        this_3.caw_1 = _tmp_leaf;
        this_3.daw_1 = _tmp_publik;
        this_3.eaw_1 = _tmp_ceInactive;
        this_3.faw_1 = _tmp_completionCriteria;
        this_3.gaw_1 = _tmp_minScore;
        this_3.haw_1 = _tmp_contentTypeFlag;
        this_3.iaw_1 = _tmp_contentOwner;
        this_3.jaw_1 = _tmp_contentOwnerType;
        this_3.kaw_1 = _tmp_contentEntryLocalChangeSeqNum;
        this_3.law_1 = _tmp_contentEntryMasterChangeSeqNum;
        this_3.maw_1 = _tmp_contentEntryLastChangedBy;
        this_3.naw_1 = _tmp_contentEntryLct;
        tmp_59.jcp_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.dax_1 = _tmp_cepUid;
        this_4.eax_1 = _tmp_cepLct;
        this_4.fax_1 = _tmp_cepPictureUri;
        this_4.gax_1 = _tmp_cepThumbnailUri;
        tmp_60.kcp_1 = this_4;
      }
      return this_0;
    };
  }
  function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda($clazzUid, resultContinuation) {
    this.tcp_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda).vcp = function (_stmt, $completion) {
    var tmp = this.m5f(_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.vcp((!(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.ucp_1.v5h(1, this.tcp_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ucp_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).m5f = function (_stmt, completion) {
    var i = new CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda(this.tcp_1, completion);
    i.ucp_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.vcp(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.wcp_1);
  }
  protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1).u5g = 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).bcq = function (stmt, entity) {
    if (entity.t7x_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.t7x_1);
    }
    stmt.u5h(2, entity.u7x_1);
    stmt.u5h(3, entity.v7x_1);
    stmt.v5h(4, entity.w7x_1);
    stmt.y5h(5, entity.x7x_1);
    stmt.y5h(6, entity.y7x_1);
    stmt.u5h(7, entity.z7x_1);
    stmt.v5h(8, entity.a7y_1);
    stmt.v5h(9, entity.b7y_1);
    stmt.u5h(10, entity.c7y_1);
    stmt.v5h(11, entity.d7y_1);
    setFloatNullable(stmt, 12, entity.e7y_1);
    setFloatNullable(stmt, 13, entity.f7y_1);
    stmt.u5h(14, entity.g7y_1);
    stmt.v5h(15, entity.h7y_1);
    stmt.y5h(16, entity.i7y_1);
    stmt.i5h(17, entity.j7y_1);
    stmt.i5h(18, entity.k7y_1);
    stmt.v5h(19, entity.l7y_1);
    stmt.v5h(20, entity.m7y_1);
    stmt.y5h(21, entity.n7y_1);
    stmt.y5h(22, entity.o7y_1);
    stmt.y5h(23, entity.p7y_1);
  };
  protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1).p5f = function (stmt, entity) {
    return this.bcq(stmt, entity instanceof CourseBlock ? entity : THROW_CCE());
  };
  function CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.wcp_1);
  }
  protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1).u5g = 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).bcq = function (stmt, entity) {
    if (entity.t7x_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.t7x_1);
    }
    stmt.u5h(2, entity.u7x_1);
    stmt.u5h(3, entity.v7x_1);
    stmt.v5h(4, entity.w7x_1);
    stmt.y5h(5, entity.x7x_1);
    stmt.y5h(6, entity.y7x_1);
    stmt.u5h(7, entity.z7x_1);
    stmt.v5h(8, entity.a7y_1);
    stmt.v5h(9, entity.b7y_1);
    stmt.u5h(10, entity.c7y_1);
    stmt.v5h(11, entity.d7y_1);
    setFloatNullable(stmt, 12, entity.e7y_1);
    setFloatNullable(stmt, 13, entity.f7y_1);
    stmt.u5h(14, entity.g7y_1);
    stmt.v5h(15, entity.h7y_1);
    stmt.y5h(16, entity.i7y_1);
    stmt.i5h(17, entity.j7y_1);
    stmt.i5h(18, entity.k7y_1);
    stmt.v5h(19, entity.l7y_1);
    stmt.v5h(20, entity.m7y_1);
    stmt.y5h(21, entity.n7y_1);
    stmt.y5h(22, entity.o7y_1);
    stmt.y5h(23, entity.p7y_1);
  };
  protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1).p5f = function (stmt, entity) {
    return this.bcq(stmt, entity instanceof CourseBlock ? entity : THROW_CCE());
  };
  function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation) {
    this.mcq_1 = this$0;
    this.ncq_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).ocq = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).m78 = function ($completion) {
    return this.ocq($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.mcq_1.wcp_1, tmp_0, CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda_0(this.ncq_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).l78 = function (completion) {
    return new CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this.mcq_1, this.ncq_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.ocq($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda($clazzUid, $includeInactive, resultContinuation) {
    this.xcq_1 = $clazzUid;
    this.ycq_1 = $includeInactive;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda).acr = function (_stmt, $completion) {
    var tmp = this.m5f(_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.acr((!(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.zcq_1.v5h(1, this.xcq_1);
            this.zcq_1.i5h(2, this.ycq_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.zcq_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).m5f = function (_stmt, completion) {
    var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda(this.xcq_1, this.ycq_1, completion);
    i.zcq_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.acr(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda(this$0, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) {
    this.jcr_1 = this$0;
    this.kcr_1 = $clazzUid;
    this.lcr_1 = $includeInactive;
    this.mcr_1 = $includeHidden;
    this.ncr_1 = $hideUntilFilterTime;
    this.ocr_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda).pcr = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda).m78 = function ($completion) {
    return this.pcr($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.jcr_1.wcp_1, tmp_0, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda_0(this.kcr_1, this.lcr_1, this.mcr_1, this.ncr_1, this.ocr_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).l78 = function (completion) {
    return new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda(this.jcr_1, this.kcr_1, this.lcr_1, this.mcr_1, this.ncr_1, this.ocr_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.pcr($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockDao_JdbcImpl$updateActiveByUid$slambda($active, $changeTime, $cbUid, resultContinuation) {
    this.ycr_1 = $active;
    this.zcr_1 = $changeTime;
    this.acs_1 = $cbUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$updateActiveByUid$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.bcs_1.i5h(1, this.ycr_1);
            this.bcs_1.v5h(2, this.zcr_1);
            this.bcs_1.v5h(3, this.acs_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.bcs_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).m5f = function (_stmt, completion) {
    var i = new CourseBlockDao_JdbcImpl$updateActiveByUid$slambda(this.ycr_1, this.zcr_1, this.acs_1, completion);
    i.bcs_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda($postUid, resultContinuation) {
    this.kcs_1 = $postUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda).mcs = function (_stmt, $completion) {
    var tmp = this.m5f(_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.mcs((!(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.lcs_1.v5h(1, this.kcs_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.lcs_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).m5f = function (_stmt, completion) {
    var i = new CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda(this.kcs_1, completion);
    i.lcs_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.mcs(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda($courseBlockUid, resultContinuation) {
    this.vcs_1 = $courseBlockUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda).b5g = function (_stmt, $completion) {
    var tmp = this.m5f(_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.b5g((!(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.wcs_1.v5h(1, this.vcs_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.wcs_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).m5f = function (_stmt, completion) {
    var i = new CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda(this.vcs_1, completion);
    i.wcs_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.b5g(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda(this$0, $assignmentUid, resultContinuation) {
    this.fct_1 = this$0;
    this.gct_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda).hct = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda).m78 = function ($completion) {
    return this.hct($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.fct_1.wcp_1, tmp_0, CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda_0(this.gct_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).l78 = function (completion) {
    return new CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda(this.fct_1, this.gct_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.hct($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda(this$0, $clazzUid, resultContinuation) {
    this.qct_1 = this$0;
    this.rct_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda).sct = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda).m78 = function ($completion) {
    return this.sct($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.qct_1.wcp_1, tmp_0, CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda_0(this.rct_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).l78 = function (completion) {
    return new CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda(this.qct_1, this.rct_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.sct($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$184(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.bcu_1 = _this__u8e3s4;
    this.ccu_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$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;
            suspendResult = this.bcu_1.ycp_1.w5g(this.ccu_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$186(_this__u8e3s4, cbUid, active, changeTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.lcu_1 = _this__u8e3s4;
    this.mcu_1 = cbUid;
    this.ncu_1 = active;
    this.ocu_1 = changeTime;
  }
  protoOf($updateActiveByUidCOROUTINE$186).ud = function () {
    var 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.lcu_1.wcp_1, tmp_0, CourseBlockDao_JdbcImpl$updateActiveByUid$slambda_0(this.ncu_1, this.ocu_1, this.mcu_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.wcp_1 = _db;
    var tmp = this;
    tmp.xcp_1 = new CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1(this);
    var tmp_0 = this;
    tmp_0.ycp_1 = new CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1(this);
  }
  protoOf(CourseBlockDao_JdbcImpl).kcl = function (entities, $completion) {
    return this.xcp_1.z5g(entities, $completion);
  };
  protoOf(CourseBlockDao_JdbcImpl).ucm = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$184(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.ucm(entity instanceof CourseBlock ? entity : THROW_CCE(), $completion);
  };
  protoOf(CourseBlockDao_JdbcImpl).gcl = 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.wcp_1, tmp, CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda_0(this, uid, null));
  };
  protoOf(CourseBlockDao_JdbcImpl).hcl = 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.wcp_1, tmp, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda_0(clazzUid, includeInactive, null), $completion);
  };
  protoOf(CourseBlockDao_JdbcImpl).icl = 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.wcp_1, tmp, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda_0(this, clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid, null));
  };
  protoOf(CourseBlockDao_JdbcImpl).jcl = function (cbUid, active, changeTime, $completion) {
    var tmp = new $updateActiveByUidCOROUTINE$186(this, cbUid, active, changeTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_JdbcImpl).lcl = 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.wcp_1, tmp, CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda_0(postUid, null), $completion);
  };
  protoOf(CourseBlockDao_JdbcImpl).mcl = 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.wcp_1, tmp, CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda_0(courseBlockUid, null), $completion);
  };
  protoOf(CourseBlockDao_JdbcImpl).ncl = 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.wcp_1, tmp, CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda_0(this, assignmentUid, null));
  };
  protoOf(CourseBlockDao_JdbcImpl).ocl = 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.wcp_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.xcu_1 = this$0;
    this.ycu_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.zcu_1 = this.xcu_1.icv_1;
            var tmp_1 = this;
            tmp_1.acv_1 = 'CourseBlockDao/findByUidWithPictureAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.bcv_1 = this.xcu_1.kcv_1;
            var tmp_3 = this;
            tmp_3.ccv_1 = this.bcv_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.xcu_1.icv_1.j39(), 'CourseBlockDao/findByUidWithPictureAsFlow');
            doorNodeIdHeader(this_0, this.xcu_1.icv_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.xcu_1.icv_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ycu_1));
            tmp_4.dcv_1 = this_0;
            this.dcv_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.ecv_1 = this.ccv_1;
            var tmp_6 = this;
            tmp_6.fcv_1 = this.dcv_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.fcv_1, this.ecv_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.gcv_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.xcu_1.hcv_1, this.gcv_1, this.xcu_1.icv_1.j39().x65_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().d5e(e, 'DoorLog', CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda$lambda(this.zcu_1, this.acv_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).l78 = function (completion) {
    return new CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda(this.xcu_1, this.ycu_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.j87($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.wcv_1 = this$0;
    this.xcv_1 = $clazzUid;
    this.ycv_1 = $includeInactive;
    this.zcv_1 = $includeHidden;
    this.acw_1 = $hideUntilFilterTime;
    this.bcw_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.ccw_1 = this.wcv_1.icv_1;
            var tmp_1 = this;
            tmp_1.dcw_1 = 'CourseBlockDao/findAllCourseBlockByClazzUidAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ecw_1 = this.wcv_1.kcv_1;
            var tmp_3 = this;
            tmp_3.fcw_1 = this.ecw_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.wcv_1.icv_1.j39(), 'CourseBlockDao/findAllCourseBlockByClazzUidAsFlow');
            doorNodeIdHeader(this_0, this.wcv_1.icv_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.wcv_1.icv_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.xcv_1));
            parameter(this_0, 'includeInactive', this.wcv_1.icv_1.j39().x65_1.r45(serializer_2(BooleanCompanionObject_instance), this.ycv_1));
            parameter(this_0, 'includeHidden', this.wcv_1.icv_1.j39().x65_1.r45(serializer_2(BooleanCompanionObject_instance), this.zcv_1));
            parameter(this_0, 'hideUntilFilterTime', this.wcv_1.icv_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.acw_1));
            parameter(this_0, 'accountPersonUid', this.wcv_1.icv_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.bcw_1));
            tmp_4.gcw_1 = this_0;
            this.gcw_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.hcw_1 = this.fcw_1;
            var tmp_6 = this;
            tmp_6.icw_1 = this.gcw_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.icw_1, this.hcw_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.jcw_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.wcv_1.hcv_1, this.jcw_1, this.wcv_1.icv_1.j39().x65_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().d5e(e, 'DoorLog', CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda$lambda(this.ccw_1, this.dcw_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).l78 = function (completion) {
    return new CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda(this.wcv_1, this.xcv_1, this.ycv_1, this.zcv_1, this.acw_1, this.bcw_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockDao_Repo$updateActiveByUid$slambda(this$0, $cbUid, $active, $changeTime, resultContinuation) {
    this.scw_1 = this$0;
    this.tcw_1 = $cbUid;
    this.ucw_1 = $active;
    this.vcw_1 = $changeTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_Repo$updateActiveByUid$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo$updateActiveByUid$slambda).m78 = function ($completion) {
    return this.j87($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.scw_1.jcv_1.jcl(this.tcw_1, this.ucw_1, this.vcw_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).l78 = function (completion) {
    return new CourseBlockDao_Repo$updateActiveByUid$slambda(this.scw_1, this.tcw_1, this.ucw_1, this.vcw_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) {
    this.ecx_1 = this$0;
    this.fcx_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_Repo$upsertListAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo$upsertListAsync$slambda).m78 = function ($completion) {
    return this.j87($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.ecx_1.jcv_1.kcl(this.fcx_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).l78 = function (completion) {
    return new CourseBlockDao_Repo$upsertListAsync$slambda(this.ecx_1, this.fcx_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.j87($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.ocx_1 = this$0;
    this.pcx_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda).m78 = function ($completion) {
    return this.j87($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.qcx_1 = this.ocx_1.icv_1;
            var tmp_1 = this;
            tmp_1.rcx_1 = 'CourseBlockDao/findCourseBlockByAssignmentUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.scx_1 = this.ocx_1.kcv_1;
            var tmp_3 = this;
            tmp_3.tcx_1 = this.scx_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ocx_1.icv_1.j39(), 'CourseBlockDao/findCourseBlockByAssignmentUid');
            doorNodeIdHeader(this_0, this.ocx_1.icv_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'assignmentUid', this.ocx_1.icv_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.pcx_1));
            tmp_4.ucx_1 = this_0;
            this.ucx_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.vcx_1 = this.tcx_1;
            var tmp_6 = this;
            tmp_6.wcx_1 = this.ucx_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.wcx_1, this.vcx_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.xcx_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ocx_1.hcv_1, this.xcx_1, this.ocx_1.icv_1.j39().x65_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().d5e(e, 'DoorLog', CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda$lambda(this.qcx_1, this.rcx_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).l78 = function (completion) {
    return new CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda(this.ocx_1, this.pcx_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockDao_Repo$findByClazzUidAsFlow$slambda(this$0, $clazzUid, resultContinuation) {
    this.gcy_1 = this$0;
    this.hcy_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_Repo$findByClazzUidAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo$findByClazzUidAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.icy_1 = this.gcy_1.icv_1;
            var tmp_1 = this;
            tmp_1.jcy_1 = 'CourseBlockDao/findByClazzUidAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.kcy_1 = this.gcy_1.kcv_1;
            var tmp_3 = this;
            tmp_3.lcy_1 = this.kcy_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.gcy_1.icv_1.j39(), 'CourseBlockDao/findByClazzUidAsFlow');
            doorNodeIdHeader(this_0, this.gcy_1.icv_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.gcy_1.icv_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.hcy_1));
            tmp_4.mcy_1 = this_0;
            this.mcy_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.ncy_1 = this.lcy_1;
            var tmp_6 = this;
            tmp_6.ocy_1 = this.mcy_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.ocy_1, this.ncy_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.pcy_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.gcy_1.hcv_1, this.pcy_1, this.gcy_1.icv_1.j39().x65_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().d5e(e, 'DoorLog', CourseBlockDao_Repo$findByClazzUidAsFlow$slambda$lambda(this.icy_1, this.jcy_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).l78 = function (completion) {
    return new CourseBlockDao_Repo$findByClazzUidAsFlow$slambda(this.gcy_1, this.hcy_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.ycy_1 = this$0;
    this.zcy_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.ycy_1.jcv_1.insertAsync(this.zcy_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).l78 = function (completion) {
    return new CourseBlockDao_Repo$insertAsync$slambda(this.ycy_1, this.zcy_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findAllCourseBlockByClazzUidAsyncCOROUTINE$191(_this__u8e3s4, clazzUid, includeInactive, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.icz_1 = _this__u8e3s4;
    this.jcz_1 = clazzUid;
    this.kcz_1 = includeInactive;
  }
  protoOf($findAllCourseBlockByClazzUidAsyncCOROUTINE$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.lcz_1 = this.icz_1.icv_1;
            var tmp_1 = this;
            tmp_1.mcz_1 = 'CourseBlockDao/findAllCourseBlockByClazzUidAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ncz_1 = this.icz_1.kcv_1;
            var tmp_3 = this;
            tmp_3.ocz_1 = this.ncz_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.icz_1.icv_1.j39(), 'CourseBlockDao/findAllCourseBlockByClazzUidAsync');
            doorNodeIdHeader(this_0, this.icz_1.icv_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.icz_1.icv_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.jcz_1));
            parameter(this_0, 'includeInactive', this.icz_1.icv_1.j39().x65_1.r45(serializer_2(BooleanCompanionObject_instance), this.kcz_1));
            tmp_4.pcz_1 = this_0;
            this.pcz_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.qcz_1 = this.ocz_1;
            var tmp_6 = this;
            tmp_6.rcz_1 = this.pcz_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.rcz_1, this.qcz_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.scz_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.icz_1.hcv_1, this.scz_1, this.icz_1.icv_1.j39().x65_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.tcz_1 = this.kd_1;
              Napier_getInstance().d5e(this.tcz_1, 'DoorLog', CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsync$lambda(this.lcz_1, this.mcz_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.icz_1.jcv_1.hcl(this.jcz_1, this.kcz_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$192(_this__u8e3s4, postUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.cd0_1 = _this__u8e3s4;
    this.dd0_1 = postUid;
  }
  protoOf($findCourseBlockAndClazzUidByDiscussionPostUidCOROUTINE$192).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.ed0_1 = this.cd0_1.icv_1;
            var tmp_1 = this;
            tmp_1.fd0_1 = 'CourseBlockDao/findCourseBlockAndClazzUidByDiscussionPostUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.gd0_1 = this.cd0_1.kcv_1;
            var tmp_3 = this;
            tmp_3.hd0_1 = this.gd0_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.cd0_1.icv_1.j39(), 'CourseBlockDao/findCourseBlockAndClazzUidByDiscussionPostUid');
            doorNodeIdHeader(this_0, this.cd0_1.icv_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'postUid', this.cd0_1.icv_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.dd0_1));
            tmp_4.id0_1 = this_0;
            this.id0_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.jd0_1 = this.hd0_1;
            var tmp_6 = this;
            tmp_6.kd0_1 = this.id0_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.kd0_1, this.jd0_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.ld0_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.cd0_1.hcv_1, this.ld0_1, this.cd0_1.icv_1.j39().x65_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.md0_1 = this.kd_1;
              Napier_getInstance().d5e(this.md0_1, 'DoorLog', CourseBlockDao_Repo$findCourseBlockAndClazzUidByDiscussionPostUid$lambda(this.ed0_1, this.fd0_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.cd0_1.jcv_1.lcl(this.dd0_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$194(_this__u8e3s4, courseBlockUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vd0_1 = _this__u8e3s4;
    this.wd0_1 = courseBlockUid;
  }
  protoOf($findClazzUidByCourseBlockUidCOROUTINE$194).ud = function () {
    var 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.vd0_1.jcv_1.mcl(this.wd0_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$198(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.fd1_1 = _this__u8e3s4;
    this.gd1_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 = withRepoChangeMonitorAsync(this.fd1_1.icv_1, 'CourseBlock', CourseBlockDao_Repo$insertAsync$slambda_0(this.fd1_1, this.gd1_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.hcv_1 = _db;
    this.icv_1 = _repo;
    this.jcv_1 = _dao;
    this.kcv_1 = _httpClient;
    this.lcv_1 = _clientId;
    this.mcv_1 = _endpoint;
    this.ncv_1 = new RepoDaoFlowHelper(this.icv_1);
  }
  protoOf(CourseBlockDao_Repo).gcl = function (uid) {
    var tmp = this.jcv_1.gcl(uid);
    return this.ncv_1.o67(tmp, CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda_0(this, uid, null));
  };
  protoOf(CourseBlockDao_Repo).hcl = function (clazzUid, includeInactive, $completion) {
    var tmp = new $findAllCourseBlockByClazzUidAsyncCOROUTINE$191(this, clazzUid, includeInactive, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo).icl = function (clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid) {
    var tmp = this.jcv_1.icl(clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid);
    return this.ncv_1.o67(tmp, CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda_0(this, clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid, null));
  };
  protoOf(CourseBlockDao_Repo).jcl = function (cbUid, active, changeTime, $completion) {
    return withRepoChangeMonitorAsync(this.icv_1, 'CourseBlock', CourseBlockDao_Repo$updateActiveByUid$slambda_0(this, cbUid, active, changeTime, null), $completion);
  };
  protoOf(CourseBlockDao_Repo).kcl = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.icv_1, 'CourseBlock', CourseBlockDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(CourseBlockDao_Repo).lcl = function (postUid, $completion) {
    var tmp = new $findCourseBlockAndClazzUidByDiscussionPostUidCOROUTINE$192(this, postUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo).mcl = function (courseBlockUid, $completion) {
    var tmp = new $findClazzUidByCourseBlockUidCOROUTINE$194(this, courseBlockUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo).ncl = function (assignmentUid) {
    var tmp = this.jcv_1.ncl(assignmentUid);
    return this.ncv_1.o67(tmp, CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda_0(this, assignmentUid, null));
  };
  protoOf(CourseBlockDao_Repo).ocl = function (clazzUid) {
    var tmp = this.jcv_1.ocl(clazzUid);
    return this.ncv_1.o67(tmp, CourseBlockDao_Repo$findByClazzUidAsFlow$slambda_0(this, clazzUid, null));
  };
  protoOf(CourseBlockDao_Repo).ucm = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$198(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockDao_Repo).insertAsync = function (entity, $completion) {
    return this.ucm(entity instanceof CourseBlock ? entity : THROW_CCE(), $completion);
  };
  function CourseBlockPictureDao() {
  }
  protoOf(CourseBlockPictureDao).ubi = function (uid, uri, thumbnailUri, time, $completion) {
    return Unit_instance;
  };
  function CourseBlockPictureDao_DoorWrapper(_db, _dao) {
    CourseBlockPictureDao.call(this);
    this.id1_1 = _db;
    this.jd1_1 = _dao;
  }
  protoOf(CourseBlockPictureDao_DoorWrapper).hd1 = 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.x7y_1 = systemTimeInMillis();
    }
    return this.jd1_1.hd1(entities, $completion);
  };
  protoOf(CourseBlockPictureDao_DoorWrapper).ubi = function (uid, uri, thumbnailUri, time, $completion) {
    return this.jd1_1.ubi(uid, uri, thumbnailUri, time, $completion);
  };
  function CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.kd1_1);
  }
  protoOf(CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO CourseBlockPicture (cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) VALUES(?, ?, ?, ?)';
  };
  protoOf(CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1).od1 = function (stmt, entity) {
    stmt.v5h(1, entity.w7y_1);
    stmt.v5h(2, entity.x7y_1);
    stmt.y5h(3, entity.y7y_1);
    stmt.y5h(4, entity.z7y_1);
  };
  protoOf(CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1).p5f = function (stmt, entity) {
    return this.od1(stmt, entity instanceof CourseBlockPicture ? entity : THROW_CCE());
  };
  function CourseBlockPictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation) {
    this.xd1_1 = $uri;
    this.yd1_1 = $thumbnailUri;
    this.zd1_1 = $time;
    this.ad2_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockPictureDao_JdbcImpl$updateUri$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.bd2_1.y5h(1, this.xd1_1);
            this.bd2_1.y5h(2, this.yd1_1);
            this.bd2_1.v5h(3, this.zd1_1);
            this.bd2_1.v5h(4, this.ad2_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.bd2_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).m5f = function (_stmt, completion) {
    var i = new CourseBlockPictureDao_JdbcImpl$updateUri$slambda(this.xd1_1, this.yd1_1, this.zd1_1, this.ad2_1, completion);
    i.bd2_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $updateUriCOROUTINE$199(_this__u8e3s4, uid, uri, thumbnailUri, time, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.kd2_1 = _this__u8e3s4;
    this.ld2_1 = uid;
    this.md2_1 = uri;
    this.nd2_1 = thumbnailUri;
    this.od2_1 = time;
  }
  protoOf($updateUriCOROUTINE$199).ud = function () {
    var 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.kd2_1.kd1_1, tmp_0, CourseBlockPictureDao_JdbcImpl$updateUri$slambda_0(this.md2_1, this.nd2_1, this.od2_1, this.ld2_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.kd1_1 = _db;
    var tmp = this;
    tmp.ld1_1 = new CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1(this);
  }
  protoOf(CourseBlockPictureDao_JdbcImpl).hd1 = function (entities, $completion) {
    return this.ld1_1.z5g(entities, $completion);
  };
  protoOf(CourseBlockPictureDao_JdbcImpl).ubi = function (uid, uri, thumbnailUri, time, $completion) {
    var tmp = new $updateUriCOROUTINE$199(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.xd2_1 = this$0;
    this.yd2_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockPictureDao_Repo$upsertListAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockPictureDao_Repo$upsertListAsync$slambda).m78 = function ($completion) {
    return this.j87($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.xd2_1.bd3_1.hd1(this.yd2_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).l78 = function (completion) {
    return new CourseBlockPictureDao_Repo$upsertListAsync$slambda(this.xd2_1, this.yd2_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockPictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) {
    this.nd3_1 = this$0;
    this.od3_1 = $uid;
    this.pd3_1 = $uri;
    this.qd3_1 = $thumbnailUri;
    this.rd3_1 = $time;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseBlockPictureDao_Repo$updateUri$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseBlockPictureDao_Repo$updateUri$slambda).m78 = function ($completion) {
    return this.j87($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.nd3_1.bd3_1.ubi(this.od3_1, this.pd3_1, this.qd3_1, this.rd3_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).l78 = function (completion) {
    return new CourseBlockPictureDao_Repo$updateUri$slambda(this.nd3_1, this.od3_1, this.pd3_1, this.qd3_1, this.rd3_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseBlockPictureDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    CourseBlockPictureDao.call(this);
    this.zd2_1 = _db;
    this.ad3_1 = _repo;
    this.bd3_1 = _dao;
    this.cd3_1 = _httpClient;
    this.dd3_1 = _clientId;
    this.ed3_1 = _endpoint;
  }
  protoOf(CourseBlockPictureDao_Repo).hd1 = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.ad3_1, 'CourseBlockPicture', CourseBlockPictureDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(CourseBlockPictureDao_Repo).ubi = function (uid, uri, thumbnailUri, time, $completion) {
    return withRepoChangeMonitorAsync(this.ad3_1, 'CourseBlockPicture', CourseBlockPictureDao_Repo$updateUri$slambda_0(this, uid, uri, thumbnailUri, time, null), $completion);
  };
  function CourseGroupMemberDao() {
  }
  function $upsertListAsyncCOROUTINE$201(_this__u8e3s4, list, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ed4_1 = _this__u8e3s4;
    this.fd4_1 = list;
  }
  protoOf($upsertListAsyncCOROUTINE$201).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.gd4_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.ed4_1.nd4_1));
            var tmp_0 = this;
            tmp_0.hd4_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.id4_1 = this.fd4_1.w();
            var tmp_2 = this;
            tmp_2.jd4_1 = this.id4_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.jd4_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.kd4_1 = this.jd4_1.e();
            var tmp_3 = this;
            tmp_3.ld4_1 = this.kd4_1;
            if (this.ld4_1.pd4_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.gd4_1.o62(243, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.md4_1 = suspendResult;
            this.ld4_1.pd4_1 = this.md4_1;
            var this_0 = this.hd4_1;
            var element = this.md4_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.ld4_1.td4_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.ed4_1.od4_1.ud3(this.fd4_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$202(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.cd5_1 = _this__u8e3s4;
    this.dd5_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$202).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.ed5_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.cd5_1.nd4_1));
            if (this.dd5_1.pd4_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.ed5_1.o62(243, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.fd5_1 = suspendResult;
            this.dd5_1.pd4_1 = this.fd5_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.dd5_1.td4_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.cd5_1.od4_1.insertAsync(this.dd5_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.dd5_1.pd4_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.nd4_1 = _db;
    this.od4_1 = _dao;
  }
  protoOf(CourseGroupMemberDao_DoorWrapper).sd3 = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid, $completion) {
    return this.od4_1.sd3(cgsUid, clazzUid, time, activeFilter, accountPersonUid, $completion);
  };
  protoOf(CourseGroupMemberDao_DoorWrapper).td3 = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid) {
    return this.od4_1.td3(cgsUid, clazzUid, time, activeFilter, accountPersonUid);
  };
  protoOf(CourseGroupMemberDao_DoorWrapper).ud3 = function (list, $completion) {
    var tmp = new $upsertListAsyncCOROUTINE$201(this, list, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_DoorWrapper).vd3 = function (courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion) {
    return this.od4_1.vd3(courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion);
  };
  protoOf(CourseGroupMemberDao_DoorWrapper).gd5 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$202(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.gd5(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.y5m('personUid');
      var _tmp_enrolmentIsActive = $_result.j66('enrolmentIsActive');
      var _tmp_pictureUri = $_result.rz('pictureUri');
      var _tmp_CourseGroupMember_nullCount = 0;
      var _tmp_cgmUid = $_result.y5m('cgmUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_cgmSetUid = $_result.y5m('cgmSetUid');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_cgmGroupNumber = $_result.x5m('cgmGroupNumber');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_cgmPersonUid = $_result.y5m('cgmPersonUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_cgmLct = $_result.y5m('cgmLct');
      var tmp_3;
      if ($_result.q67()) {
        _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.id5_1 = _tmp_name;
      this_0.jd5_1 = _tmp_personUid;
      this_0.kd5_1 = _tmp_enrolmentIsActive;
      this_0.ld5_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.pd4_1 = _tmp_cgmUid;
        this_1.qd4_1 = _tmp_cgmSetUid;
        this_1.rd4_1 = _tmp_cgmGroupNumber;
        this_1.sd4_1 = _tmp_cgmPersonUid;
        this_1.td4_1 = _tmp_cgmLct;
        tmp_4.hd5_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.y5m('personUid');
      var _tmp_enrolmentIsActive = $_result.j66('enrolmentIsActive');
      var _tmp_pictureUri = $_result.rz('pictureUri');
      var _tmp_CourseGroupMember_nullCount = 0;
      var _tmp_cgmUid = $_result.y5m('cgmUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_cgmSetUid = $_result.y5m('cgmSetUid');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_cgmGroupNumber = $_result.x5m('cgmGroupNumber');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_cgmPersonUid = $_result.y5m('cgmPersonUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_cgmLct = $_result.y5m('cgmLct');
      var tmp_3;
      if ($_result.q67()) {
        _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.id5_1 = _tmp_name;
      this_0.jd5_1 = _tmp_personUid;
      this_0.kd5_1 = _tmp_enrolmentIsActive;
      this_0.ld5_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.pd4_1 = _tmp_cgmUid;
        this_1.qd4_1 = _tmp_cgmSetUid;
        this_1.rd4_1 = _tmp_cgmGroupNumber;
        this_1.sd4_1 = _tmp_cgmPersonUid;
        this_1.td4_1 = _tmp_cgmLct;
        tmp_4.hd5_1 = this_1;
      }
      return this_0;
    };
  }
  function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) {
    this.ud5_1 = $time;
    this.vd5_1 = $clazzUid;
    this.wd5_1 = $cgsUid;
    this.xd5_1 = $activeFilter;
    this.yd5_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda).ad6 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ad6((!(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.zd5_1.v5h(1, this.ud5_1);
            this.zd5_1.v5h(2, this.vd5_1);
            this.zd5_1.v5h(3, this.wd5_1);
            this.zd5_1.v5h(4, this.vd5_1);
            this.zd5_1.v5h(5, this.wd5_1);
            this.zd5_1.u5h(6, this.xd5_1);
            this.zd5_1.u5h(7, this.xd5_1);
            this.zd5_1.v5h(8, this.vd5_1);
            this.zd5_1.v5h(9, this.yd5_1);
            this.zd5_1.v5h(10, this.yd5_1);
            this.zd5_1.v5h(11, this.vd5_1);
            this.zd5_1.v5h(12, this.yd5_1);
            this.zd5_1.v5h(13, this.yd5_1);
            this.zd5_1.v5h(14, this.yd5_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.zd5_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).m5f = function (_stmt, completion) {
    var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda(this.ud5_1, this.vd5_1, this.wd5_1, this.xd5_1, this.yd5_1, completion);
    i.zd5_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.ad6(_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.y5m('cgmUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_cgmSetUid = $_result.y5m('cgmSetUid');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_cgmGroupNumber = $_result.x5m('cgmGroupNumber');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_cgmPersonUid = $_result.y5m('cgmPersonUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_cgmLct = $_result.y5m('cgmLct');
      var tmp_3;
      if ($_result.q67()) {
        _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.y5m('personUid');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_gender = $_result.x5m('gender');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_active = $_result.j66('active');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_isPersonalAccount = $_result.j66('isPersonalAccount');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.y5m('dateOfBirth');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.y5m('personGroupUid');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_personLct = $_result.y5m('personLct');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_personType = $_result.x5m('personType');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.y5m('personMasterChangeSeqNum');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.y5m('personLocalChangeSeqNum');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.x5m('personLastChangedBy');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_admin = $_result.j66('admin');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 25;
      // 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_29 = 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.pd4_1 = _tmp_cgmUid;
        this_1.qd4_1 = _tmp_cgmSetUid;
        this_1.rd4_1 = _tmp_cgmGroupNumber;
        this_1.sd4_1 = _tmp_cgmPersonUid;
        this_1.td4_1 = _tmp_cgmLct;
        tmp_29.bd6_1 = this_1;
      }
      if (!_tmp_Person_isAllNull) {
        var tmp_30 = 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.f96_1 = _tmp_personUid;
        this_2.g96_1 = _tmp_username;
        this_2.h96_1 = _tmp_firstNames;
        this_2.i96_1 = _tmp_lastName;
        this_2.j96_1 = _tmp_emailAddr;
        this_2.k96_1 = _tmp_phoneNum;
        this_2.l96_1 = _tmp_gender;
        this_2.m96_1 = _tmp_active;
        this_2.n96_1 = _tmp_isPersonalAccount;
        this_2.o96_1 = _tmp_dateOfBirth;
        this_2.p96_1 = _tmp_personAddress;
        this_2.q96_1 = _tmp_personOrgId;
        this_2.r96_1 = _tmp_personGroupUid;
        this_2.s96_1 = _tmp_personLct;
        this_2.t96_1 = _tmp_personCountry;
        this_2.u96_1 = _tmp_personType;
        this_2.v96_1 = _tmp_personMasterChangeSeqNum;
        this_2.w96_1 = _tmp_personLocalChangeSeqNum;
        this_2.x96_1 = _tmp_personLastChangedBy;
        this_2.y96_1 = _tmp_admin;
        this_2.z96_1 = _tmp_personNotes;
        this_2.a97_1 = _tmp_fatherName;
        this_2.b97_1 = _tmp_fatherNumber;
        this_2.c97_1 = _tmp_motherName;
        this_2.d97_1 = _tmp_motherNum;
        tmp_30.cd6_1 = this_2;
      }
      return this_0;
    };
  }
  function CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.dd6_1);
  }
  protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO CourseGroupMember (cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) VALUES(?, ?, ?, ?, ?)';
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1).id6 = function (stmt, entity) {
    if (entity.pd4_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.pd4_1);
    }
    stmt.v5h(2, entity.qd4_1);
    stmt.u5h(3, entity.rd4_1);
    stmt.v5h(4, entity.sd4_1);
    stmt.v5h(5, entity.td4_1);
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1).p5f = function (stmt, entity) {
    return this.id6(stmt, entity instanceof CourseGroupMember ? entity : THROW_CCE());
  };
  function CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.dd6_1);
  }
  protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO CourseGroupMember (cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) VALUES(?, ?, ?, ?, ?)';
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1).id6 = function (stmt, entity) {
    if (entity.pd4_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.pd4_1);
    }
    stmt.v5h(2, entity.qd4_1);
    stmt.u5h(3, entity.rd4_1);
    stmt.v5h(4, entity.sd4_1);
    stmt.v5h(5, entity.td4_1);
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1).p5f = function (stmt, entity) {
    return this.id6(stmt, entity instanceof CourseGroupMember ? entity : THROW_CCE());
  };
  function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) {
    this.td6_1 = $time;
    this.ud6_1 = $clazzUid;
    this.vd6_1 = $cgsUid;
    this.wd6_1 = $activeFilter;
    this.xd6_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda).ad6 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ad6((!(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.yd6_1.v5h(1, this.td6_1);
            this.yd6_1.v5h(2, this.ud6_1);
            this.yd6_1.v5h(3, this.vd6_1);
            this.yd6_1.v5h(4, this.ud6_1);
            this.yd6_1.v5h(5, this.vd6_1);
            this.yd6_1.u5h(6, this.wd6_1);
            this.yd6_1.u5h(7, this.wd6_1);
            this.yd6_1.v5h(8, this.ud6_1);
            this.yd6_1.v5h(9, this.xd6_1);
            this.yd6_1.v5h(10, this.xd6_1);
            this.yd6_1.v5h(11, this.ud6_1);
            this.yd6_1.v5h(12, this.xd6_1);
            this.yd6_1.v5h(13, this.xd6_1);
            this.yd6_1.v5h(14, this.xd6_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.yd6_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).m5f = function (_stmt, completion) {
    var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda(this.td6_1, this.ud6_1, this.vd6_1, this.wd6_1, this.xd6_1, completion);
    i.yd6_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.ad6(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda(this$0, $time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) {
    this.hd7_1 = this$0;
    this.id7_1 = $time;
    this.jd7_1 = $clazzUid;
    this.kd7_1 = $cgsUid;
    this.ld7_1 = $activeFilter;
    this.md7_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda).nd7 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda).m78 = function ($completion) {
    return this.nd7($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.hd7_1.dd6_1, tmp_0, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda_0(this.id7_1, this.jd7_1, this.kd7_1, this.ld7_1, this.md7_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).l78 = function (completion) {
    return new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda(this.hd7_1, this.id7_1, this.jd7_1, this.kd7_1, this.ld7_1, this.md7_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.nd7($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda($courseGroupSetUid, $groupNum, $accountPersonUid, $assignmentUid, $clazzUid, resultContinuation) {
    this.wd7_1 = $courseGroupSetUid;
    this.xd7_1 = $groupNum;
    this.yd7_1 = $accountPersonUid;
    this.zd7_1 = $assignmentUid;
    this.ad8_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda).cd8 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.cd8((!(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.bd8_1.v5h(1, this.wd7_1);
            this.bd8_1.u5h(2, this.xd7_1);
            this.bd8_1.v5h(3, this.wd7_1);
            this.bd8_1.v5h(4, this.yd7_1);
            this.bd8_1.v5h(5, this.zd7_1);
            this.bd8_1.u5h(6, this.xd7_1);
            this.bd8_1.v5h(7, this.yd7_1);
            this.bd8_1.v5h(8, this.ad8_1);
            this.bd8_1.v5h(9, this.yd7_1);
            this.bd8_1.v5h(10, this.yd7_1);
            this.bd8_1.v5h(11, this.ad8_1);
            this.bd8_1.v5h(12, this.yd7_1);
            this.bd8_1.v5h(13, this.yd7_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.bd8_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).m5f = function (_stmt, completion) {
    var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda(this.wd7_1, this.xd7_1, this.yd7_1, this.zd7_1, this.ad8_1, completion);
    i.bd8_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.cd8(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$203(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ld8_1 = _this__u8e3s4;
    this.md8_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 = this.ld8_1.ed6_1.w5g(this.md8_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.dd6_1 = _db;
    var tmp = this;
    tmp.ed6_1 = new CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1(this);
    var tmp_0 = this;
    tmp_0.fd6_1 = new CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1(this);
  }
  protoOf(CourseGroupMemberDao_JdbcImpl).ud3 = function (list, $completion) {
    return this.fd6_1.z5g(list, $completion);
  };
  protoOf(CourseGroupMemberDao_JdbcImpl).gd5 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$203(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.gd5(entity instanceof CourseGroupMember ? entity : THROW_CCE(), $completion);
  };
  protoOf(CourseGroupMemberDao_JdbcImpl).sd3 = 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.dd6_1, tmp, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda_0(time, clazzUid, cgsUid, activeFilter, accountPersonUid, null), $completion);
  };
  protoOf(CourseGroupMemberDao_JdbcImpl).td3 = 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.dd6_1, tmp, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda_0(this, time, clazzUid, cgsUid, activeFilter, accountPersonUid, null));
  };
  protoOf(CourseGroupMemberDao_JdbcImpl).vd3 = 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.dd6_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.vd8_1 = this$0;
    this.wd8_1 = $cgsUid;
    this.xd8_1 = $clazzUid;
    this.yd8_1 = $time;
    this.zd8_1 = $activeFilter;
    this.ad9_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.bd9_1 = this.vd8_1.kd9_1;
            var tmp_1 = this;
            tmp_1.cd9_1 = 'CourseGroupMemberDao/findByCourseGroupSetAndClazzAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.dd9_1 = this.vd8_1.md9_1;
            var tmp_3 = this;
            tmp_3.ed9_1 = this.dd9_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.vd8_1.kd9_1.j39(), 'CourseGroupMemberDao/findByCourseGroupSetAndClazzAsFlow');
            doorNodeIdHeader(this_0, this.vd8_1.kd9_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'cgsUid', this.vd8_1.kd9_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.wd8_1));
            parameter(this_0, 'clazzUid', this.vd8_1.kd9_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.xd8_1));
            parameter(this_0, 'time', this.vd8_1.kd9_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.yd8_1));
            parameter(this_0, 'activeFilter', this.vd8_1.kd9_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.zd8_1));
            parameter(this_0, 'accountPersonUid', this.vd8_1.kd9_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ad9_1));
            tmp_4.fd9_1 = this_0;
            this.fd9_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.gd9_1 = this.ed9_1;
            var tmp_6 = this;
            tmp_6.hd9_1 = this.fd9_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.hd9_1, this.gd9_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.id9_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.vd8_1.jd9_1, this.id9_1, this.vd8_1.kd9_1.j39().x65_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().d5e(e, 'DoorLog', CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda$lambda(this.bd9_1, this.cd9_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).l78 = function (completion) {
    return new CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda(this.vd8_1, this.wd8_1, this.xd8_1, this.yd8_1, this.zd8_1, this.ad9_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseGroupMemberDao_Repo$upsertListAsync$slambda(this$0, $list, resultContinuation) {
    this.yd9_1 = this$0;
    this.zd9_1 = $list;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupMemberDao_Repo$upsertListAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_Repo$upsertListAsync$slambda).m78 = function ($completion) {
    return this.j87($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.yd9_1.ld9_1.ud3(this.zd9_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).l78 = function (completion) {
    return new CourseGroupMemberDao_Repo$upsertListAsync$slambda(this.yd9_1, this.zd9_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.j87($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.ida_1 = this$0;
    this.jda_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupMemberDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.ida_1.ld9_1.insertAsync(this.jda_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).l78 = function (completion) {
    return new CourseGroupMemberDao_Repo$insertAsync$slambda(this.ida_1, this.jda_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByCourseGroupSetAndClazzCOROUTINE$206(_this__u8e3s4, cgsUid, clazzUid, time, activeFilter, accountPersonUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.sda_1 = _this__u8e3s4;
    this.tda_1 = cgsUid;
    this.uda_1 = clazzUid;
    this.vda_1 = time;
    this.wda_1 = activeFilter;
    this.xda_1 = accountPersonUid;
  }
  protoOf($findByCourseGroupSetAndClazzCOROUTINE$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.yda_1 = this.sda_1.kd9_1;
            var tmp_1 = this;
            tmp_1.zda_1 = 'CourseGroupMemberDao/findByCourseGroupSetAndClazz';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.adb_1 = this.sda_1.md9_1;
            var tmp_3 = this;
            tmp_3.bdb_1 = this.adb_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.sda_1.kd9_1.j39(), 'CourseGroupMemberDao/findByCourseGroupSetAndClazz');
            doorNodeIdHeader(this_0, this.sda_1.kd9_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'cgsUid', this.sda_1.kd9_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.tda_1));
            parameter(this_0, 'clazzUid', this.sda_1.kd9_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.uda_1));
            parameter(this_0, 'time', this.sda_1.kd9_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.vda_1));
            parameter(this_0, 'activeFilter', this.sda_1.kd9_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.wda_1));
            parameter(this_0, 'accountPersonUid', this.sda_1.kd9_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.xda_1));
            tmp_4.cdb_1 = this_0;
            this.cdb_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.ddb_1 = this.bdb_1;
            var tmp_6 = this;
            tmp_6.edb_1 = this.cdb_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.edb_1, this.ddb_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.fdb_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.sda_1.jd9_1, this.fdb_1, this.sda_1.kd9_1.j39().x65_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.gdb_1 = this.kd_1;
              Napier_getInstance().d5e(this.gdb_1, 'DoorLog', CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazz$lambda(this.yda_1, this.zda_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.sda_1.ld9_1.sd3(this.tda_1, this.uda_1, this.vda_1, this.wda_1, this.xda_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$209(_this__u8e3s4, courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.pdb_1 = _this__u8e3s4;
    this.qdb_1 = courseGroupSetUid;
    this.rdb_1 = groupNum;
    this.sdb_1 = clazzUid;
    this.tdb_1 = assignmentUid;
    this.udb_1 = accountPersonUid;
  }
  protoOf($findByCourseGroupSetAndGroupNumAsyncCOROUTINE$209).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.vdb_1 = this.pdb_1.kd9_1;
            var tmp_1 = this;
            tmp_1.wdb_1 = 'CourseGroupMemberDao/findByCourseGroupSetAndGroupNumAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.xdb_1 = this.pdb_1.md9_1;
            var tmp_3 = this;
            tmp_3.ydb_1 = this.xdb_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.pdb_1.kd9_1.j39(), 'CourseGroupMemberDao/findByCourseGroupSetAndGroupNumAsync');
            doorNodeIdHeader(this_0, this.pdb_1.kd9_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'courseGroupSetUid', this.pdb_1.kd9_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.qdb_1));
            parameter(this_0, 'groupNum', this.pdb_1.kd9_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.rdb_1));
            parameter(this_0, 'clazzUid', this.pdb_1.kd9_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.sdb_1));
            parameter(this_0, 'assignmentUid', this.pdb_1.kd9_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.tdb_1));
            parameter(this_0, 'accountPersonUid', this.pdb_1.kd9_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.udb_1));
            tmp_4.zdb_1 = this_0;
            this.zdb_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.adc_1 = this.ydb_1;
            var tmp_6 = this;
            tmp_6.bdc_1 = this.zdb_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.bdc_1, this.adc_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.cdc_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.pdb_1.jd9_1, this.cdc_1, this.pdb_1.kd9_1.j39().x65_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.ddc_1 = this.kd_1;
              Napier_getInstance().d5e(this.ddc_1, 'DoorLog', CourseGroupMemberDao_Repo$findByCourseGroupSetAndGroupNumAsync$lambda(this.vdb_1, this.wdb_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.pdb_1.ld9_1.vd3(this.qdb_1, this.rdb_1, this.sdb_1, this.tdb_1, this.udb_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$210(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.mdc_1 = _this__u8e3s4;
    this.ndc_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$210).ud = function () {
    var 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.mdc_1.kd9_1, 'CourseGroupMember', CourseGroupMemberDao_Repo$insertAsync$slambda_0(this.mdc_1, this.ndc_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.jd9_1 = _db;
    this.kd9_1 = _repo;
    this.ld9_1 = _dao;
    this.md9_1 = _httpClient;
    this.nd9_1 = _clientId;
    this.od9_1 = _endpoint;
    this.pd9_1 = new RepoDaoFlowHelper(this.kd9_1);
  }
  protoOf(CourseGroupMemberDao_Repo).sd3 = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid, $completion) {
    var tmp = new $findByCourseGroupSetAndClazzCOROUTINE$206(this, cgsUid, clazzUid, time, activeFilter, accountPersonUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_Repo).td3 = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid) {
    var tmp = this.ld9_1.td3(cgsUid, clazzUid, time, activeFilter, accountPersonUid);
    return this.pd9_1.o67(tmp, CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda_0(this, cgsUid, clazzUid, time, activeFilter, accountPersonUid, null));
  };
  protoOf(CourseGroupMemberDao_Repo).ud3 = function (list, $completion) {
    return withRepoChangeMonitorAsync(this.kd9_1, 'CourseGroupMember', CourseGroupMemberDao_Repo$upsertListAsync$slambda_0(this, list, null), $completion);
  };
  protoOf(CourseGroupMemberDao_Repo).vd3 = function (courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion) {
    var tmp = new $findByCourseGroupSetAndGroupNumAsyncCOROUTINE$209(this, courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_Repo).gd5 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$210(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupMemberDao_Repo).insertAsync = function (entity, $completion) {
    return this.gd5(entity instanceof CourseGroupMember ? entity : THROW_CCE(), $completion);
  };
  function CourseGroupSetDao() {
  }
  function $upsertAsyncCOROUTINE$211(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zdc_1 = _this__u8e3s4;
    this.add_1 = entity;
  }
  protoOf($upsertAsyncCOROUTINE$211).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.bdd_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.zdc_1.ddd_1));
            if (this.add_1.a7z_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.bdd_1.o62(242, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.cdd_1 = suspendResult;
            this.add_1.a7z_1 = this.cdd_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.add_1.f7z_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.zdc_1.edd_1.qdc(this.add_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$212(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ndd_1 = _this__u8e3s4;
    this.odd_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$212).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.pdd_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.ndd_1.ddd_1));
            if (this.odd_1.a7z_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.pdd_1.o62(242, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.qdd_1 = suspendResult;
            this.odd_1.a7z_1 = this.qdd_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.odd_1.f7z_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.ndd_1.edd_1.insertAsync(this.odd_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.odd_1.a7z_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.ddd_1 = _db;
    this.edd_1 = _dao;
  }
  protoOf(CourseGroupSetDao_DoorWrapper).odc = function (clazzUid, searchText, sortOrder) {
    return this.edd_1.odc(clazzUid, searchText, sortOrder);
  };
  protoOf(CourseGroupSetDao_DoorWrapper).pdc = function (uid, $completion) {
    return this.edd_1.pdc(uid, $completion);
  };
  protoOf(CourseGroupSetDao_DoorWrapper).t8c = function (uid) {
    return this.edd_1.t8c(uid);
  };
  protoOf(CourseGroupSetDao_DoorWrapper).qdc = function (entity, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$211(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_DoorWrapper).rdd = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$212(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.rdd(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.y5m('cgsUid');
      var _tmp_cgsName = $_result.rz('cgsName');
      var _tmp_cgsTotalGroups = $_result.x5m('cgsTotalGroups');
      var _tmp_cgsActive = $_result.j66('cgsActive');
      var _tmp_cgsClazzUid = $_result.y5m('cgsClazzUid');
      var _tmp_cgsLct = $_result.y5m('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.a7z_1 = _tmp_cgsUid;
      this_0.b7z_1 = _tmp_cgsName;
      this_0.c7z_1 = _tmp_cgsTotalGroups;
      this_0.d7z_1 = _tmp_cgsActive;
      this_0.e7z_1 = _tmp_cgsClazzUid;
      this_0.f7z_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.m5s(1);
    };
  }
  function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda($clazzUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) {
    this.ade_1 = $clazzUid;
    this.bde_1 = $searchText;
    this.cde_1 = $sortOrder;
    this.dde_1 = $_limit;
    this.ede_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda).gde = function (_stmt, $completion) {
    var tmp = this.m5f(_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.gde((!(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.fde_1.v5h(1, this.ade_1);
            this.fde_1.y5h(2, this.bde_1);
            this.fde_1.y5h(3, this.bde_1);
            this.fde_1.u5h(4, this.cde_1);
            this.fde_1.u5h(5, this.cde_1);
            this.fde_1.u5h(6, this.dde_1);
            this.fde_1.u5h(7, this.ede_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.fde_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).m5f = function (_stmt, completion) {
    var i = new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda(this.ade_1, this.bde_1, this.cde_1, this.dde_1, this.ede_1, completion);
    i.fde_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.gde(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda($clazzUid, $searchText, $sortOrder, resultContinuation) {
    this.pde_1 = $clazzUid;
    this.qde_1 = $searchText;
    this.rde_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.sde_1.v5h(1, this.pde_1);
            this.sde_1.y5h(2, this.qde_1);
            this.sde_1.y5h(3, this.qde_1);
            this.sde_1.u5h(4, this.rde_1);
            this.sde_1.u5h(5, this.rde_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.sde_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).m5f = function (_stmt, completion) {
    var i = new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda(this.pde_1, this.qde_1, this.rde_1, completion);
    i.sde_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.j6j(_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.y5m('cgsUid');
      var _tmp_cgsName = $_result.rz('cgsName');
      var _tmp_cgsTotalGroups = $_result.x5m('cgsTotalGroups');
      var _tmp_cgsActive = $_result.j66('cgsActive');
      var _tmp_cgsClazzUid = $_result.y5m('cgsClazzUid');
      var _tmp_cgsLct = $_result.y5m('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.a7z_1 = _tmp_cgsUid;
      this_0.b7z_1 = _tmp_cgsName;
      this_0.c7z_1 = _tmp_cgsTotalGroups;
      this_0.d7z_1 = _tmp_cgsActive;
      this_0.e7z_1 = _tmp_cgsClazzUid;
      this_0.f7z_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.y5m('cgsUid');
      var _tmp_cgsName = $_result.rz('cgsName');
      var _tmp_cgsTotalGroups = $_result.x5m('cgsTotalGroups');
      var _tmp_cgsActive = $_result.j66('cgsActive');
      var _tmp_cgsClazzUid = $_result.y5m('cgsClazzUid');
      var _tmp_cgsLct = $_result.y5m('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.a7z_1 = _tmp_cgsUid;
      this_0.b7z_1 = _tmp_cgsName;
      this_0.c7z_1 = _tmp_cgsTotalGroups;
      this_0.d7z_1 = _tmp_cgsActive;
      this_0.e7z_1 = _tmp_cgsClazzUid;
      this_0.f7z_1 = _tmp_cgsLct;
      return this_0;
    };
  }
  function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda($uid, resultContinuation) {
    this.bdf_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda).ddf = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ddf((!(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.cdf_1.v5h(1, this.bdf_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.cdf_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).m5f = function (_stmt, completion) {
    var i = new CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda(this.bdf_1, completion);
    i.cdf_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.ddf(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.edf_1);
  }
  protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO CourseGroupSet (cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1).jdf = function (stmt, entity) {
    if (entity.a7z_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.a7z_1);
    }
    stmt.y5h(2, entity.b7z_1);
    stmt.u5h(3, entity.c7z_1);
    stmt.i5h(4, entity.d7z_1);
    stmt.v5h(5, entity.e7z_1);
    stmt.v5h(6, entity.f7z_1);
  };
  protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1).p5f = function (stmt, entity) {
    return this.jdf(stmt, entity instanceof CourseGroupSet ? entity : THROW_CCE());
  };
  function CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.edf_1);
  }
  protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO CourseGroupSet (cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1).jdf = function (stmt, entity) {
    if (entity.a7z_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.a7z_1);
    }
    stmt.y5h(2, entity.b7z_1);
    stmt.u5h(3, entity.c7z_1);
    stmt.i5h(4, entity.d7z_1);
    stmt.v5h(5, entity.e7z_1);
    stmt.v5h(6, entity.f7z_1);
  };
  protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1).p5f = function (stmt, entity) {
    return this.jdf(stmt, entity instanceof CourseGroupSet ? entity : THROW_CCE());
  };
  function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1(this$0, $clazzUid, $searchText, $sortOrder) {
    this.sdf_1 = this$0;
    this.tdf_1 = $clazzUid;
    this.udf_1 = $searchText;
    this.vdf_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.edf_1, tmp$ret$2);
  }
  protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1).wdf = 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.sdf_1.edf_1, tmp, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda_0(this.tdf_1, this.udf_1, this.vdf_1, _limit, _offset, null), $completion);
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1).w5p = function (_limit, _offset, $completion) {
    return this.wdf(_limit, _offset, $completion);
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1).q5r = 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.sdf_1.edf_1, tmp, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda_0(this.tdf_1, this.udf_1, this.vdf_1, null), $completion);
  };
  function CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) {
    this.fdg_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda).ddf = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ddf((!(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.gdg_1.v5h(1, this.fdg_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.gdg_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).m5f = function (_stmt, completion) {
    var i = new CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda(this.fdg_1, completion);
    i.gdg_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.ddf(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $uid, resultContinuation) {
    this.pdg_1 = this$0;
    this.qdg_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda).rdg = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda).m78 = function ($completion) {
    return this.rdg($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.pdg_1.edf_1, tmp_0, CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0(this.qdg_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).l78 = function (completion) {
    return new CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda(this.pdg_1, this.qdg_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.rdg($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$213(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.adh_1 = _this__u8e3s4;
    this.bdh_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$213).ud = function () {
    var 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.adh_1.gdf_1.w5g(this.bdh_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.edf_1 = _db;
    var tmp = this;
    tmp.fdf_1 = new CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1(this);
    var tmp_0 = this;
    tmp_0.gdf_1 = new CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1(this);
  }
  protoOf(CourseGroupSetDao_JdbcImpl).qdc = function (entity, $completion) {
    return this.fdf_1.v5g(entity, $completion);
  };
  protoOf(CourseGroupSetDao_JdbcImpl).rdd = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$213(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.rdd(entity instanceof CourseGroupSet ? entity : THROW_CCE(), $completion);
  };
  protoOf(CourseGroupSetDao_JdbcImpl).odc = function (clazzUid, searchText, sortOrder) {
    return new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1(this, clazzUid, searchText, sortOrder);
  };
  protoOf(CourseGroupSetDao_JdbcImpl).pdc = 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.edf_1, tmp, CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion);
  };
  protoOf(CourseGroupSetDao_JdbcImpl).t8c = 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.edf_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.kdh_1 = this$0;
    this.ldh_1 = $clazzUid;
    this.mdh_1 = $searchText;
    this.ndh_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_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.h86(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.qdh_1 = this.kdh_1.zdh_1;
            var tmp_1 = this;
            tmp_1.rdh_1 = 'CourseGroupSetDao/findAllCourseGroupSetForClazz';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.sdh_1 = this.kdh_1.bdi_1;
            var tmp_3 = this;
            tmp_3.tdh_1 = this.sdh_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.kdh_1.zdh_1.j39(), 'CourseGroupSetDao/findAllCourseGroupSetForClazz');
            doorNodeIdHeader(this_0, this.kdh_1.zdh_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.kdh_1.zdh_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ldh_1));
            parameter(this_0, 'searchText', this.kdh_1.zdh_1.j39().x65_1.r45(serializer_0(StringCompanionObject_instance), this.mdh_1));
            parameter(this_0, 'sortOrder', this.kdh_1.zdh_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.ndh_1));
            pagingSourceLoadParameters(this_0, this.kdh_1.zdh_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.odh_1);
            tmp_4.udh_1 = this_0;
            this.udh_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.vdh_1 = this.tdh_1;
            var tmp_6 = this;
            tmp_6.wdh_1 = this.udh_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.wdh_1, this.vdh_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.xdh_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.kdh_1.ydh_1, this.xdh_1, this.kdh_1.zdh_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.pdh_1 = endOfPaginationReached(this.xdh_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().d5e(e, 'DoorLog', CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda$lambda(this.qdh_1, this.rdh_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.pdh_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).i86 = function (_pagingParams, completion) {
    var i = new CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda(this.kdh_1, this.ldh_1, this.mdh_1, this.ndh_1, completion);
    i.odh_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.h86(_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.mdi_1 = this$0;
    this.ndi_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupSetDao_Repo$upsertAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_Repo$upsertAsync$slambda).m78 = function ($completion) {
    return this.j87($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.mdi_1.adi_1.qdc(this.ndi_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).l78 = function (completion) {
    return new CourseGroupSetDao_Repo$upsertAsync$slambda(this.mdi_1, this.ndi_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseGroupSetDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.wdi_1 = this$0;
    this.xdi_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseGroupSetDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.wdi_1.adi_1.insertAsync(this.xdi_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).l78 = function (completion) {
    return new CourseGroupSetDao_Repo$insertAsync$slambda(this.wdi_1, this.xdi_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByUidAsyncCOROUTINE$217(_this__u8e3s4, uid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.gdj_1 = _this__u8e3s4;
    this.hdj_1 = uid;
  }
  protoOf($findByUidAsyncCOROUTINE$217).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.idj_1 = this.gdj_1.zdh_1;
            var tmp_1 = this;
            tmp_1.jdj_1 = 'CourseGroupSetDao/findByUidAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.kdj_1 = this.gdj_1.bdi_1;
            var tmp_3 = this;
            tmp_3.ldj_1 = this.kdj_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.gdj_1.zdh_1.j39(), 'CourseGroupSetDao/findByUidAsync');
            doorNodeIdHeader(this_0, this.gdj_1.zdh_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.gdj_1.zdh_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.hdj_1));
            tmp_4.mdj_1 = this_0;
            this.mdj_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.ndj_1 = this.ldj_1;
            var tmp_6 = this;
            tmp_6.odj_1 = this.mdj_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.odj_1, this.ndj_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.pdj_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.gdj_1.ydh_1, this.pdj_1, this.gdj_1.zdh_1.j39().x65_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.qdj_1 = this.kd_1;
              Napier_getInstance().d5e(this.qdj_1, 'DoorLog', CourseGroupSetDao_Repo$findByUidAsync$lambda(this.idj_1, this.jdj_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.gdj_1.adi_1.pdc(this.hdj_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$218(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zdj_1 = _this__u8e3s4;
    this.adk_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 = withRepoChangeMonitorAsync(this.zdj_1.zdh_1, 'CourseGroupSet', CourseGroupSetDao_Repo$insertAsync$slambda_0(this.zdj_1, this.adk_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.ydh_1 = _db;
    this.zdh_1 = _repo;
    this.adi_1 = _dao;
    this.bdi_1 = _httpClient;
    this.cdi_1 = _clientId;
    this.ddi_1 = _endpoint;
  }
  protoOf(CourseGroupSetDao_Repo).odc = function (clazzUid, searchText, sortOrder) {
    var tmp = this.adi_1.odc(clazzUid, searchText, sortOrder);
    return new DoorRepositoryReplicatePullPagingSource(this.zdh_1, 'CourseGroupSetDao/findAllCourseGroupSetForClazz', tmp, CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda_0(this, clazzUid, searchText, sortOrder, null));
  };
  protoOf(CourseGroupSetDao_Repo).pdc = function (uid, $completion) {
    var tmp = new $findByUidAsyncCOROUTINE$217(this, uid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_Repo).t8c = function (uid) {
    var _result = this.adi_1.t8c(uid);
    return _result;
  };
  protoOf(CourseGroupSetDao_Repo).qdc = function (entity, $completion) {
    return withRepoChangeMonitorAsync(this.zdh_1, 'CourseGroupSet', CourseGroupSetDao_Repo$upsertAsync$slambda_0(this, entity, null), $completion);
  };
  protoOf(CourseGroupSetDao_Repo).rdd = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$218(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseGroupSetDao_Repo).insertAsync = function (entity, $completion) {
    return this.rdd(entity instanceof CourseGroupSet ? entity : THROW_CCE(), $completion);
  };
  function CoursePermissionDao() {
  }
  function $upsertAsyncCOROUTINE$219(_this__u8e3s4, coursePermission, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.tdk_1 = _this__u8e3s4;
    this.udk_1 = coursePermission;
  }
  protoOf($upsertAsyncCOROUTINE$219).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.vdk_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.tdk_1.xdk_1));
            if (this.udk_1.zdk_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.vdk_1.o62(10012, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.wdk_1 = suspendResult;
            this.udk_1.zdk_1 = this.wdk_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.udk_1.adl_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.tdk_1.ydk_1.ddk(this.udk_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.xdk_1 = _db;
    this.ydk_1 = _dao;
  }
  protoOf(CoursePermissionDao_DoorWrapper).bdk = function (clazzUid, includeDeleted) {
    return this.ydk_1.bdk(clazzUid, includeDeleted);
  };
  protoOf(CoursePermissionDao_DoorWrapper).cdk = function (uid, clazzUid, $completion) {
    return this.ydk_1.cdk(uid, clazzUid, $completion);
  };
  protoOf(CoursePermissionDao_DoorWrapper).p7s = function (uid, clazzUid) {
    return this.ydk_1.p7s(uid, clazzUid);
  };
  protoOf(CoursePermissionDao_DoorWrapper).ddk = function (coursePermission, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$219(this, coursePermission, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_DoorWrapper).eca = function (cpUid, isDeleted, updateTime, $completion) {
    return this.ydk_1.eca(cpUid, isDeleted, updateTime, $completion);
  };
  protoOf(CoursePermissionDao_DoorWrapper).edk = function (accountPersonUid, clazzEnrolmentUid, $completion) {
    return this.ydk_1.edk(accountPersonUid, clazzEnrolmentUid, $completion);
  };
  protoOf(CoursePermissionDao_DoorWrapper).fdk = function (accountPersonUid, clazzUid, permission) {
    return this.ydk_1.fdk(accountPersonUid, clazzUid, permission);
  };
  protoOf(CoursePermissionDao_DoorWrapper).gdk = function (accountPersonUid, clazzUid, firstPermission, secondPermission) {
    return this.ydk_1.gdk(accountPersonUid, clazzUid, firstPermission, secondPermission);
  };
  protoOf(CoursePermissionDao_DoorWrapper).hdk = function (accountPersonUid, clazzUid, firstPermission, secondPermission, $completion) {
    return this.ydk_1.hdk(accountPersonUid, clazzUid, firstPermission, secondPermission, $completion);
  };
  protoOf(CoursePermissionDao_DoorWrapper).idk = function (accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission) {
    return this.ydk_1.idk(accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission);
  };
  protoOf(CoursePermissionDao_DoorWrapper).jdk = function (accountPersonUid, clazzUid, permission, $completion) {
    return this.ydk_1.jdk(accountPersonUid, clazzUid, permission, $completion);
  };
  protoOf(CoursePermissionDao_DoorWrapper).kdk = function (accountPersonUid, assignmentUid, clazzUid, submitterUid) {
    return this.ydk_1.kdk(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.y5m('cpUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_cpLastModified = $_result.y5m('cpLastModified');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_cpClazzUid = $_result.y5m('cpClazzUid');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_cpToEnrolmentRole = $_result.x5m('cpToEnrolmentRole');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_cpToPersonUid = $_result.y5m('cpToPersonUid');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_cpToGroupUid = $_result.y5m('cpToGroupUid');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_cpPermissionsFlag = $_result.y5m('cpPermissionsFlag');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_cpIsDeleted = $_result.j66('cpIsDeleted');
      var tmp_6;
      if ($_result.q67()) {
        _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.y5m('personUid');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_gender = $_result.x5m('gender');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_active = $_result.j66('active');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_isPersonalAccount = $_result.j66('isPersonalAccount');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.y5m('dateOfBirth');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.y5m('personGroupUid');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_personLct = $_result.y5m('personLct');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_personType = $_result.x5m('personType');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.y5m('personMasterChangeSeqNum');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.y5m('personLocalChangeSeqNum');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.x5m('personLastChangedBy');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_admin = $_result.j66('admin');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 25;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.y5m('personPictureUid');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.y5m('personPictureLct');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_fileSize = $_result.x5m('fileSize');
      var tmp_36;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.j66('personPictureActive');
      var tmp_37;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_37 = 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_38 = 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.zdk_1 = _tmp_cpUid;
        this_1.adl_1 = _tmp_cpLastModified;
        this_1.bdl_1 = _tmp_cpClazzUid;
        this_1.cdl_1 = _tmp_cpToEnrolmentRole;
        this_1.ddl_1 = _tmp_cpToPersonUid;
        this_1.edl_1 = _tmp_cpToGroupUid;
        this_1.fdl_1 = _tmp_cpPermissionsFlag;
        this_1.gdl_1 = _tmp_cpIsDeleted;
        tmp_38.hdl_1 = this_1;
      }
      if (!_tmp_Person_isAllNull) {
        var tmp_39 = 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.f96_1 = _tmp_personUid;
        this_2.g96_1 = _tmp_username;
        this_2.h96_1 = _tmp_firstNames;
        this_2.i96_1 = _tmp_lastName;
        this_2.j96_1 = _tmp_emailAddr;
        this_2.k96_1 = _tmp_phoneNum;
        this_2.l96_1 = _tmp_gender;
        this_2.m96_1 = _tmp_active;
        this_2.n96_1 = _tmp_isPersonalAccount;
        this_2.o96_1 = _tmp_dateOfBirth;
        this_2.p96_1 = _tmp_personAddress;
        this_2.q96_1 = _tmp_personOrgId;
        this_2.r96_1 = _tmp_personGroupUid;
        this_2.s96_1 = _tmp_personLct;
        this_2.t96_1 = _tmp_personCountry;
        this_2.u96_1 = _tmp_personType;
        this_2.v96_1 = _tmp_personMasterChangeSeqNum;
        this_2.w96_1 = _tmp_personLocalChangeSeqNum;
        this_2.x96_1 = _tmp_personLastChangedBy;
        this_2.y96_1 = _tmp_admin;
        this_2.z96_1 = _tmp_personNotes;
        this_2.a97_1 = _tmp_fatherName;
        this_2.b97_1 = _tmp_fatherNumber;
        this_2.c97_1 = _tmp_motherName;
        this_2.d97_1 = _tmp_motherNum;
        tmp_39.idl_1 = this_2;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_40 = 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.e97_1 = _tmp_personPictureUid;
        this_3.f97_1 = _tmp_personPictureLct;
        this_3.g97_1 = _tmp_personPictureUri;
        this_3.h97_1 = _tmp_personPictureThumbnailUri;
        this_3.i97_1 = _tmp_fileSize;
        this_3.j97_1 = _tmp_personPictureActive;
        tmp_40.jdl_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.m5s(1);
    };
  }
  function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda($clazzUid, $includeDeleted, $_limit, $_offset, resultContinuation) {
    this.sdl_1 = $clazzUid;
    this.tdl_1 = $includeDeleted;
    this.udl_1 = $_limit;
    this.vdl_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda).xdl = function (_stmt, $completion) {
    var tmp = this.m5f(_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.xdl((!(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.wdl_1.v5h(1, this.sdl_1);
            this.wdl_1.i5h(2, this.tdl_1);
            this.wdl_1.u5h(3, this.udl_1);
            this.wdl_1.u5h(4, this.vdl_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.wdl_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).m5f = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda(this.sdl_1, this.tdl_1, this.udl_1, this.vdl_1, completion);
    i.wdl_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.xdl(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda($clazzUid, $includeDeleted, resultContinuation) {
    this.gdm_1 = $clazzUid;
    this.hdm_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.idm_1.v5h(1, this.gdm_1);
            this.idm_1.i5h(2, this.hdm_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.idm_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).m5f = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda(this.gdm_1, this.hdm_1, completion);
    i.idm_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.j6j(_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.y5m('cpUid');
      var _tmp_cpLastModified = $_result.y5m('cpLastModified');
      var _tmp_cpClazzUid = $_result.y5m('cpClazzUid');
      var _tmp_cpToEnrolmentRole = $_result.x5m('cpToEnrolmentRole');
      var _tmp_cpToPersonUid = $_result.y5m('cpToPersonUid');
      var _tmp_cpToGroupUid = $_result.y5m('cpToGroupUid');
      var _tmp_cpPermissionsFlag = $_result.y5m('cpPermissionsFlag');
      var _tmp_cpIsDeleted = $_result.j66('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.zdk_1 = _tmp_cpUid;
      this_0.adl_1 = _tmp_cpLastModified;
      this_0.bdl_1 = _tmp_cpClazzUid;
      this_0.cdl_1 = _tmp_cpToEnrolmentRole;
      this_0.ddl_1 = _tmp_cpToPersonUid;
      this_0.edl_1 = _tmp_cpToGroupUid;
      this_0.fdl_1 = _tmp_cpPermissionsFlag;
      this_0.gdl_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.y5m('cpUid');
      var _tmp_cpLastModified = $_result.y5m('cpLastModified');
      var _tmp_cpClazzUid = $_result.y5m('cpClazzUid');
      var _tmp_cpToEnrolmentRole = $_result.x5m('cpToEnrolmentRole');
      var _tmp_cpToPersonUid = $_result.y5m('cpToPersonUid');
      var _tmp_cpToGroupUid = $_result.y5m('cpToGroupUid');
      var _tmp_cpPermissionsFlag = $_result.y5m('cpPermissionsFlag');
      var _tmp_cpIsDeleted = $_result.j66('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.zdk_1 = _tmp_cpUid;
      this_0.adl_1 = _tmp_cpLastModified;
      this_0.bdl_1 = _tmp_cpClazzUid;
      this_0.cdl_1 = _tmp_cpToEnrolmentRole;
      this_0.ddl_1 = _tmp_cpToPersonUid;
      this_0.edl_1 = _tmp_cpToGroupUid;
      this_0.fdl_1 = _tmp_cpPermissionsFlag;
      this_0.gdl_1 = _tmp_cpIsDeleted;
      return this_0;
    };
  }
  function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda($uid, $clazzUid, resultContinuation) {
    this.rdm_1 = $uid;
    this.sdm_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).udm = function (_stmt, $completion) {
    var tmp = this.m5f(_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.udm((!(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.tdm_1.v5h(1, this.rdm_1);
            this.tdm_1.v5h(2, this.sdm_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.tdm_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).m5f = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda(this.rdm_1, this.sdm_1, completion);
    i.tdm_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.udm(_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.n74(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.n74(1);
    };
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda($clazzUid, $accountPersonUid, $permission, resultContinuation) {
    this.ddn_1 = $clazzUid;
    this.edn_1 = $accountPersonUid;
    this.fdn_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda).ta6 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ta6((!(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.gdn_1.v5h(1, this.ddn_1);
            this.gdn_1.v5h(2, this.edn_1);
            this.gdn_1.v5h(3, this.ddn_1);
            this.gdn_1.v5h(4, this.edn_1);
            this.gdn_1.v5h(5, this.edn_1);
            this.gdn_1.v5h(6, this.ddn_1);
            this.gdn_1.v5h(7, this.edn_1);
            this.gdn_1.v5h(8, this.fdn_1);
            this.gdn_1.v5h(9, this.edn_1);
            this.gdn_1.v5h(10, this.fdn_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.gdn_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).m5f = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda(this.ddn_1, this.edn_1, this.fdn_1, completion);
    i.gdn_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.ta6(_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.j66('firstPermission');
      var _tmp_secondPermission = $_result.j66('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.hdn_1 = _tmp_firstPermission;
      this_0.idn_1 = _tmp_secondPermission;
      return this_0;
    };
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    this.rdn_1 = $clazzUid;
    this.sdn_1 = $accountPersonUid;
    this.tdn_1 = $firstPermission;
    this.udn_1 = $secondPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda).wdn = function (_stmt, $completion) {
    var tmp = this.m5f(_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.wdn((!(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.vdn_1.v5h(1, this.rdn_1);
            this.vdn_1.v5h(2, this.sdn_1);
            this.vdn_1.v5h(3, this.rdn_1);
            this.vdn_1.v5h(4, this.sdn_1);
            this.vdn_1.v5h(5, this.sdn_1);
            this.vdn_1.v5h(6, this.rdn_1);
            this.vdn_1.v5h(7, this.sdn_1);
            this.vdn_1.v5h(8, this.tdn_1);
            this.vdn_1.v5h(9, this.sdn_1);
            this.vdn_1.v5h(10, this.tdn_1);
            this.vdn_1.v5h(11, this.rdn_1);
            this.vdn_1.v5h(12, this.sdn_1);
            this.vdn_1.v5h(13, this.rdn_1);
            this.vdn_1.v5h(14, this.sdn_1);
            this.vdn_1.v5h(15, this.sdn_1);
            this.vdn_1.v5h(16, this.rdn_1);
            this.vdn_1.v5h(17, this.sdn_1);
            this.vdn_1.v5h(18, this.udn_1);
            this.vdn_1.v5h(19, this.sdn_1);
            this.vdn_1.v5h(20, this.udn_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.vdn_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).m5f = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda(this.rdn_1, this.sdn_1, this.tdn_1, this.udn_1, completion);
    i.vdn_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.wdn(_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.j66('firstPermission');
      var _tmp_secondPermission = $_result.j66('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.hdn_1 = _tmp_firstPermission;
      this_0.idn_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.j66('firstPermission');
      var _tmp_secondPermission = $_result.j66('secondPermission');
      var _tmp_thirdPermission = $_result.j66('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.xdn_1 = _tmp_firstPermission;
      this_0.ydn_1 = _tmp_secondPermission;
      this_0.zdn_1 = _tmp_thirdPermission;
      return this_0;
    };
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) {
    this.ido_1 = $clazzUid;
    this.jdo_1 = $accountPersonUid;
    this.kdo_1 = $firstPermission;
    this.ldo_1 = $secondPermission;
    this.mdo_1 = $thirdPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda).odo = function (_stmt, $completion) {
    var tmp = this.m5f(_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.odo((!(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.ndo_1.v5h(1, this.ido_1);
            this.ndo_1.v5h(2, this.jdo_1);
            this.ndo_1.v5h(3, this.ido_1);
            this.ndo_1.v5h(4, this.jdo_1);
            this.ndo_1.v5h(5, this.jdo_1);
            this.ndo_1.v5h(6, this.ido_1);
            this.ndo_1.v5h(7, this.jdo_1);
            this.ndo_1.v5h(8, this.kdo_1);
            this.ndo_1.v5h(9, this.jdo_1);
            this.ndo_1.v5h(10, this.kdo_1);
            this.ndo_1.v5h(11, this.ido_1);
            this.ndo_1.v5h(12, this.jdo_1);
            this.ndo_1.v5h(13, this.ido_1);
            this.ndo_1.v5h(14, this.jdo_1);
            this.ndo_1.v5h(15, this.jdo_1);
            this.ndo_1.v5h(16, this.ido_1);
            this.ndo_1.v5h(17, this.jdo_1);
            this.ndo_1.v5h(18, this.ldo_1);
            this.ndo_1.v5h(19, this.jdo_1);
            this.ndo_1.v5h(20, this.ldo_1);
            this.ndo_1.v5h(21, this.ido_1);
            this.ndo_1.v5h(22, this.jdo_1);
            this.ndo_1.v5h(23, this.ido_1);
            this.ndo_1.v5h(24, this.jdo_1);
            this.ndo_1.v5h(25, this.jdo_1);
            this.ndo_1.v5h(26, this.ido_1);
            this.ndo_1.v5h(27, this.jdo_1);
            this.ndo_1.v5h(28, this.mdo_1);
            this.ndo_1.v5h(29, this.jdo_1);
            this.ndo_1.v5h(30, this.mdo_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ndo_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).m5f = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda(this.ido_1, this.jdo_1, this.kdo_1, this.ldo_1, this.mdo_1, completion);
    i.ndo_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.odo(_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.n74(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.j66('canMark');
      var _tmp_canView = $_result.j66('canView');
      var _tmp_canModerate = $_result.j66('canModerate');
      var _tmp_activeUserSubmitterUid = $_result.y5m('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.pdo_1 = _tmp_canMark;
      this_0.qdo_1 = _tmp_canView;
      this_0.rdo_1 = _tmp_canModerate;
      this_0.sdo_1 = _tmp_activeUserSubmitterUid;
      return this_0;
    };
  }
  function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda($assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation) {
    this.bdp_1 = $assignmentUid;
    this.cdp_1 = $accountPersonUid;
    this.ddp_1 = $submitterUid;
    this.edp_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda).gdp = function (_stmt, $completion) {
    var tmp = this.m5f(_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.gdp((!(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.fdp_1.v5h(1, this.bdp_1);
            this.fdp_1.v5h(2, this.cdp_1);
            this.fdp_1.v5h(3, this.bdp_1);
            this.fdp_1.v5h(4, this.bdp_1);
            this.fdp_1.v5h(5, this.cdp_1);
            this.fdp_1.v5h(6, this.bdp_1);
            this.fdp_1.v5h(7, this.cdp_1);
            this.fdp_1.v5h(8, this.bdp_1);
            this.fdp_1.v5h(9, this.bdp_1);
            this.fdp_1.v5h(10, this.cdp_1);
            this.fdp_1.v5h(11, this.bdp_1);
            this.fdp_1.v5h(12, this.ddp_1);
            this.fdp_1.v5h(13, this.edp_1);
            this.fdp_1.v5h(14, this.cdp_1);
            this.fdp_1.v5h(15, this.cdp_1);
            this.fdp_1.v5h(16, this.edp_1);
            this.fdp_1.v5h(17, this.cdp_1);
            this.fdp_1.v5h(18, this.cdp_1);
            this.fdp_1.v5h(19, this.cdp_1);
            this.fdp_1.v5h(20, this.bdp_1);
            this.fdp_1.v5h(21, this.edp_1);
            this.fdp_1.v5h(22, this.ddp_1);
            this.fdp_1.v5h(23, this.cdp_1);
            this.fdp_1.v5h(24, this.bdp_1);
            this.fdp_1.v5h(25, this.edp_1);
            this.fdp_1.v5h(26, this.ddp_1);
            this.fdp_1.v5h(27, this.ddp_1);
            this.fdp_1.v5h(28, this.edp_1);
            this.fdp_1.v5h(29, this.cdp_1);
            this.fdp_1.v5h(30, this.cdp_1);
            this.fdp_1.v5h(31, this.edp_1);
            this.fdp_1.v5h(32, this.cdp_1);
            this.fdp_1.v5h(33, this.cdp_1);
            this.fdp_1.v5h(34, this.edp_1);
            this.fdp_1.v5h(35, this.cdp_1);
            this.fdp_1.v5h(36, this.cdp_1);
            this.fdp_1.v5h(37, this.edp_1);
            this.fdp_1.v5h(38, this.cdp_1);
            this.fdp_1.v5h(39, this.cdp_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.fdp_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).m5f = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda(this.bdp_1, this.cdp_1, this.ddp_1, this.edp_1, completion);
    i.fdp_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.gdp(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.hdp_1);
  }
  protoOf(CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO CoursePermission (cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1).ldp = function (stmt, entity) {
    if (entity.zdk_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.zdk_1);
    }
    stmt.v5h(2, entity.adl_1);
    stmt.v5h(3, entity.bdl_1);
    stmt.u5h(4, entity.cdl_1);
    stmt.v5h(5, entity.ddl_1);
    stmt.v5h(6, entity.edl_1);
    stmt.v5h(7, entity.fdl_1);
    stmt.i5h(8, entity.gdl_1);
  };
  protoOf(CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1).p5f = function (stmt, entity) {
    return this.ldp(stmt, entity instanceof CoursePermission ? entity : THROW_CCE());
  };
  function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1(this$0, $clazzUid, $includeDeleted) {
    this.sdp_1 = this$0;
    this.tdp_1 = $clazzUid;
    this.udp_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.hdp_1, tmp$ret$2);
  }
  protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1).vdp = 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.sdp_1.hdp_1, tmp, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda_0(this.tdp_1, this.udp_1, _limit, _offset, null), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1).w5p = function (_limit, _offset, $completion) {
    return this.vdp(_limit, _offset, $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1).q5r = 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.sdp_1.hdp_1, tmp, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda_0(this.tdp_1, this.udp_1, null), $completion);
  };
  function CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda($uid, $clazzUid, resultContinuation) {
    this.edq_1 = $uid;
    this.fdq_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda).udm = function (_stmt, $completion) {
    var tmp = this.m5f(_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.udm((!(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.gdq_1.v5h(1, this.edq_1);
            this.gdq_1.v5h(2, this.fdq_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.gdq_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).m5f = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda(this.edq_1, this.fdq_1, completion);
    i.gdq_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.udm(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation) {
    this.pdq_1 = this$0;
    this.qdq_1 = $uid;
    this.rdq_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).sdq = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).m78 = function ($completion) {
    return this.sdq($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.pdq_1.hdp_1, tmp_0, CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda_0(this.qdq_1, this.rdq_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).l78 = function (completion) {
    return new CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this.pdq_1, this.qdq_1, this.rdq_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.sdq($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$setDeleted$slambda($isDeleted, $updateTime, $cpUid, resultContinuation) {
    this.bdr_1 = $isDeleted;
    this.cdr_1 = $updateTime;
    this.ddr_1 = $cpUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$setDeleted$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.edr_1.i5h(1, this.bdr_1);
            this.edr_1.v5h(2, this.cdr_1);
            this.edr_1.v5h(3, this.ddr_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.edr_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).m5f = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$setDeleted$slambda(this.bdr_1, this.cdr_1, this.ddr_1, completion);
    i.edr_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda($clazzEnrolmentUid, $accountPersonUid, resultContinuation) {
    this.ndr_1 = $clazzEnrolmentUid;
    this.odr_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda).ta6 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ta6((!(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.pdr_1.v5h(1, this.ndr_1);
            this.pdr_1.v5h(2, this.odr_1);
            this.pdr_1.v5h(3, this.odr_1);
            this.pdr_1.v5h(4, this.ndr_1);
            this.pdr_1.v5h(5, this.odr_1);
            this.pdr_1.v5h(6, this.odr_1);
            this.pdr_1.v5h(7, this.ndr_1);
            this.pdr_1.v5h(8, this.odr_1);
            this.pdr_1.v5h(9, this.ndr_1);
            this.pdr_1.v5h(10, this.odr_1);
            this.pdr_1.v5h(11, this.ndr_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.pdr_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).m5f = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda(this.ndr_1, this.odr_1, completion);
    i.pdr_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.ta6(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda(this$0, $clazzUid, $accountPersonUid, $permission, resultContinuation) {
    this.ydr_1 = this$0;
    this.zdr_1 = $clazzUid;
    this.ads_1 = $accountPersonUid;
    this.bds_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda).ia8 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda).m78 = function ($completion) {
    return this.ia8($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.ydr_1.hdp_1, tmp_0, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda_0(this.zdr_1, this.ads_1, this.bds_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).l78 = function (completion) {
    return new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda(this.ydr_1, this.zdr_1, this.ads_1, this.bds_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.ia8($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    this.kds_1 = this$0;
    this.lds_1 = $clazzUid;
    this.mds_1 = $accountPersonUid;
    this.nds_1 = $firstPermission;
    this.ods_1 = $secondPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda).pds = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda).m78 = function ($completion) {
    return this.pds($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.kds_1.hdp_1, tmp_0, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda_0(this.lds_1, this.mds_1, this.nds_1, this.ods_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).l78 = function (completion) {
    return new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda(this.kds_1, this.lds_1, this.mds_1, this.nds_1, this.ods_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.pds($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    this.yds_1 = $clazzUid;
    this.zds_1 = $accountPersonUid;
    this.adt_1 = $firstPermission;
    this.bdt_1 = $secondPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda).wdn = function (_stmt, $completion) {
    var tmp = this.m5f(_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.wdn((!(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.cdt_1.v5h(1, this.yds_1);
            this.cdt_1.v5h(2, this.zds_1);
            this.cdt_1.v5h(3, this.yds_1);
            this.cdt_1.v5h(4, this.zds_1);
            this.cdt_1.v5h(5, this.zds_1);
            this.cdt_1.v5h(6, this.yds_1);
            this.cdt_1.v5h(7, this.zds_1);
            this.cdt_1.v5h(8, this.adt_1);
            this.cdt_1.v5h(9, this.zds_1);
            this.cdt_1.v5h(10, this.adt_1);
            this.cdt_1.v5h(11, this.yds_1);
            this.cdt_1.v5h(12, this.zds_1);
            this.cdt_1.v5h(13, this.yds_1);
            this.cdt_1.v5h(14, this.zds_1);
            this.cdt_1.v5h(15, this.zds_1);
            this.cdt_1.v5h(16, this.yds_1);
            this.cdt_1.v5h(17, this.zds_1);
            this.cdt_1.v5h(18, this.bdt_1);
            this.cdt_1.v5h(19, this.zds_1);
            this.cdt_1.v5h(20, this.bdt_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.cdt_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).m5f = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda(this.yds_1, this.zds_1, this.adt_1, this.bdt_1, completion);
    i.cdt_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.wdn(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) {
    this.ldt_1 = this$0;
    this.mdt_1 = $clazzUid;
    this.ndt_1 = $accountPersonUid;
    this.odt_1 = $firstPermission;
    this.pdt_1 = $secondPermission;
    this.qdt_1 = $thirdPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda).rdt = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda).m78 = function ($completion) {
    return this.rdt($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.ldt_1.hdp_1, tmp_0, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda_0(this.mdt_1, this.ndt_1, this.odt_1, this.pdt_1, this.qdt_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).l78 = function (completion) {
    return new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda(this.ldt_1, this.mdt_1, this.ndt_1, this.odt_1, this.pdt_1, this.qdt_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.rdt($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda($clazzUid, $accountPersonUid, $permission, resultContinuation) {
    this.adu_1 = $clazzUid;
    this.bdu_1 = $accountPersonUid;
    this.cdu_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda).ta6 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ta6((!(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.ddu_1.v5h(1, this.adu_1);
            this.ddu_1.v5h(2, this.bdu_1);
            this.ddu_1.v5h(3, this.adu_1);
            this.ddu_1.v5h(4, this.bdu_1);
            this.ddu_1.v5h(5, this.bdu_1);
            this.ddu_1.v5h(6, this.adu_1);
            this.ddu_1.v5h(7, this.bdu_1);
            this.ddu_1.v5h(8, this.cdu_1);
            this.ddu_1.v5h(9, this.bdu_1);
            this.ddu_1.v5h(10, this.cdu_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ddu_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).m5f = function (_stmt, completion) {
    var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda(this.adu_1, this.bdu_1, this.cdu_1, completion);
    i.ddu_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.ta6(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda(this$0, $assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation) {
    this.mdu_1 = this$0;
    this.ndu_1 = $assignmentUid;
    this.odu_1 = $accountPersonUid;
    this.pdu_1 = $submitterUid;
    this.qdu_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda).rdu = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda).m78 = function ($completion) {
    return this.rdu($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.mdu_1.hdp_1, tmp_0, CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda_0(this.ndu_1, this.odu_1, this.pdu_1, this.qdu_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).l78 = function (completion) {
    return new CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda(this.mdu_1, this.ndu_1, this.odu_1, this.pdu_1, this.qdu_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.rdu($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $setDeletedCOROUTINE$220(_this__u8e3s4, cpUid, isDeleted, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.adv_1 = _this__u8e3s4;
    this.bdv_1 = cpUid;
    this.cdv_1 = isDeleted;
    this.ddv_1 = updateTime;
  }
  protoOf($setDeletedCOROUTINE$220).ud = function () {
    var 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.adv_1.hdp_1, tmp_0, CoursePermissionDao_JdbcImpl$setDeleted$slambda_0(this.cdv_1, this.ddv_1, this.bdv_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.hdp_1 = _db;
    var tmp = this;
    tmp.idp_1 = new CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1(this);
  }
  protoOf(CoursePermissionDao_JdbcImpl).ddk = function (coursePermission, $completion) {
    return this.idp_1.v5g(coursePermission, $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl).bdk = function (clazzUid, includeDeleted) {
    return new CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1(this, clazzUid, includeDeleted);
  };
  protoOf(CoursePermissionDao_JdbcImpl).cdk = 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.hdp_1, tmp, CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda_0(uid, clazzUid, null), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl).p7s = 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.hdp_1, tmp, CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda_0(this, uid, clazzUid, null));
  };
  protoOf(CoursePermissionDao_JdbcImpl).eca = function (cpUid, isDeleted, updateTime, $completion) {
    var tmp = new $setDeletedCOROUTINE$220(this, cpUid, isDeleted, updateTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_JdbcImpl).edk = 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.hdp_1, tmp, CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda_0(clazzEnrolmentUid, accountPersonUid, null), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl).fdk = 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.hdp_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda_0(this, clazzUid, accountPersonUid, permission, null));
  };
  protoOf(CoursePermissionDao_JdbcImpl).gdk = 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.hdp_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda_0(this, clazzUid, accountPersonUid, firstPermission, secondPermission, null));
  };
  protoOf(CoursePermissionDao_JdbcImpl).hdk = 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.hdp_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda_0(clazzUid, accountPersonUid, firstPermission, secondPermission, null), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl).idk = 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.hdp_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda_0(this, clazzUid, accountPersonUid, firstPermission, secondPermission, thirdPermission, null));
  };
  protoOf(CoursePermissionDao_JdbcImpl).jdk = 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.hdp_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda_0(clazzUid, accountPersonUid, permission, null), $completion);
  };
  protoOf(CoursePermissionDao_JdbcImpl).kdk = 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.hdp_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.mdv_1 = this$0;
    this.ndv_1 = $clazzUid;
    this.odv_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_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.h86(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.rdv_1 = this.mdv_1.adw_1;
            var tmp_1 = this;
            tmp_1.sdv_1 = 'CoursePermissionDao/findByClazzUidAsPagingSource';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.tdv_1 = this.mdv_1.cdw_1;
            var tmp_3 = this;
            tmp_3.udv_1 = this.tdv_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.mdv_1.adw_1.j39(), 'CoursePermissionDao/findByClazzUidAsPagingSource');
            doorNodeIdHeader(this_0, this.mdv_1.adw_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.mdv_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ndv_1));
            parameter(this_0, 'includeDeleted', this.mdv_1.adw_1.j39().x65_1.r45(serializer_2(BooleanCompanionObject_instance), this.odv_1));
            pagingSourceLoadParameters(this_0, this.mdv_1.adw_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.pdv_1);
            tmp_4.vdv_1 = this_0;
            this.vdv_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.wdv_1 = this.udv_1;
            var tmp_6 = this;
            tmp_6.xdv_1 = this.vdv_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.xdv_1, this.wdv_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.ydv_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.mdv_1.zdv_1, this.ydv_1, this.mdv_1.adw_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.qdv_1 = endOfPaginationReached(this.ydv_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().d5e(e, 'DoorLog', CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda$lambda(this.rdv_1, this.sdv_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.qdv_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).i86 = function (_pagingParams, completion) {
    var i = new CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda(this.mdv_1, this.ndv_1, this.odv_1, completion);
    i.pdv_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.h86(_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.odw_1 = this$0;
    this.pdw_1 = $uid;
    this.qdw_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.rdw_1 = this.odw_1.adw_1;
            var tmp_1 = this;
            tmp_1.sdw_1 = 'CoursePermissionDao/findByUidAndClazzUidAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.tdw_1 = this.odw_1.cdw_1;
            var tmp_3 = this;
            tmp_3.udw_1 = this.tdw_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.odw_1.adw_1.j39(), 'CoursePermissionDao/findByUidAndClazzUidAsFlow');
            doorNodeIdHeader(this_0, this.odw_1.adw_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.odw_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.pdw_1));
            parameter(this_0, 'clazzUid', this.odw_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.qdw_1));
            tmp_4.vdw_1 = this_0;
            this.vdw_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.wdw_1 = this.udw_1;
            var tmp_6 = this;
            tmp_6.xdw_1 = this.vdw_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.xdw_1, this.wdw_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.ydw_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.odw_1.zdv_1, this.ydw_1, this.odw_1.adw_1.j39().x65_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().d5e(e, 'DoorLog', CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda$lambda(this.rdw_1, this.sdw_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).l78 = function (completion) {
    return new CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda(this.odw_1, this.pdw_1, this.qdw_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePermissionDao_Repo$upsertAsync$slambda(this$0, $coursePermission, resultContinuation) {
    this.hdx_1 = this$0;
    this.idx_1 = $coursePermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_Repo$upsertAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo$upsertAsync$slambda).m78 = function ($completion) {
    return this.j87($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.hdx_1.bdw_1.ddk(this.idx_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).l78 = function (completion) {
    return new CoursePermissionDao_Repo$upsertAsync$slambda(this.hdx_1, this.idx_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePermissionDao_Repo$setDeleted$slambda(this$0, $cpUid, $isDeleted, $updateTime, resultContinuation) {
    this.rdx_1 = this$0;
    this.sdx_1 = $cpUid;
    this.tdx_1 = $isDeleted;
    this.udx_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_Repo$setDeleted$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo$setDeleted$slambda).m78 = function ($completion) {
    return this.j87($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.rdx_1.bdw_1.eca(this.sdx_1, this.tdx_1, this.udx_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).l78 = function (completion) {
    return new CoursePermissionDao_Repo$setDeleted$slambda(this.rdx_1, this.sdx_1, this.tdx_1, this.udx_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.j87($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.ddy_1 = this$0;
    this.edy_1 = $accountPersonUid;
    this.fdy_1 = $clazzUid;
    this.gdy_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda).m78 = function ($completion) {
    return this.j87($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.hdy_1 = this.ddy_1.adw_1;
            var tmp_1 = this;
            tmp_1.idy_1 = 'CoursePermissionDao/personHasPermissionWithClazzAsFlow2';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.jdy_1 = this.ddy_1.cdw_1;
            var tmp_3 = this;
            tmp_3.kdy_1 = this.jdy_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ddy_1.adw_1.j39(), 'CoursePermissionDao/personHasPermissionWithClazzAsFlow2');
            doorNodeIdHeader(this_0, this.ddy_1.adw_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.ddy_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.edy_1));
            parameter(this_0, 'clazzUid', this.ddy_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.fdy_1));
            parameter(this_0, 'permission', this.ddy_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.gdy_1));
            tmp_4.ldy_1 = this_0;
            this.ldy_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.mdy_1 = this.kdy_1;
            var tmp_6 = this;
            tmp_6.ndy_1 = this.ldy_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.ndy_1, this.mdy_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.ody_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ddy_1.zdv_1, this.ody_1, this.ddy_1.adw_1.j39().x65_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().d5e(e, 'DoorLog', CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda$lambda(this.hdy_1, this.idy_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).l78 = function (completion) {
    return new CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda(this.ddy_1, this.edy_1, this.fdy_1, this.gdy_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $firstPermission, $secondPermission, resultContinuation) {
    this.xdy_1 = this$0;
    this.ydy_1 = $accountPersonUid;
    this.zdy_1 = $clazzUid;
    this.adz_1 = $firstPermission;
    this.bdz_1 = $secondPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.cdz_1 = this.xdy_1.adw_1;
            var tmp_1 = this;
            tmp_1.ddz_1 = 'CoursePermissionDao/personHasPermissionWithClazzPairAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.edz_1 = this.xdy_1.cdw_1;
            var tmp_3 = this;
            tmp_3.fdz_1 = this.edz_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.xdy_1.adw_1.j39(), 'CoursePermissionDao/personHasPermissionWithClazzPairAsFlow');
            doorNodeIdHeader(this_0, this.xdy_1.adw_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.xdy_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ydy_1));
            parameter(this_0, 'clazzUid', this.xdy_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.zdy_1));
            parameter(this_0, 'firstPermission', this.xdy_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.adz_1));
            parameter(this_0, 'secondPermission', this.xdy_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.bdz_1));
            tmp_4.gdz_1 = this_0;
            this.gdz_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.hdz_1 = this.fdz_1;
            var tmp_6 = this;
            tmp_6.idz_1 = this.gdz_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.idz_1, this.hdz_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.jdz_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.xdy_1.zdv_1, this.jdz_1, this.xdy_1.adw_1.j39().x65_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().d5e(e, 'DoorLog', CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda$lambda(this.cdz_1, this.ddz_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).l78 = function (completion) {
    return new CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda(this.xdy_1, this.ydy_1, this.zdy_1, this.adz_1, this.bdz_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.j87($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.sdz_1 = this$0;
    this.tdz_1 = $accountPersonUid;
    this.udz_1 = $clazzUid;
    this.vdz_1 = $firstPermission;
    this.wdz_1 = $secondPermission;
    this.xdz_1 = $thirdPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.ydz_1 = this.sdz_1.adw_1;
            var tmp_1 = this;
            tmp_1.zdz_1 = 'CoursePermissionDao/personHasPermissionWithClazzTripleAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ae0_1 = this.sdz_1.cdw_1;
            var tmp_3 = this;
            tmp_3.be0_1 = this.ae0_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.sdz_1.adw_1.j39(), 'CoursePermissionDao/personHasPermissionWithClazzTripleAsFlow');
            doorNodeIdHeader(this_0, this.sdz_1.adw_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.sdz_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.tdz_1));
            parameter(this_0, 'clazzUid', this.sdz_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.udz_1));
            parameter(this_0, 'firstPermission', this.sdz_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.vdz_1));
            parameter(this_0, 'secondPermission', this.sdz_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.wdz_1));
            parameter(this_0, 'thirdPermission', this.sdz_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.xdz_1));
            tmp_4.ce0_1 = this_0;
            this.ce0_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.de0_1 = this.be0_1;
            var tmp_6 = this;
            tmp_6.ee0_1 = this.ce0_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.ee0_1, this.de0_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.fe0_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.sdz_1.zdv_1, this.fe0_1, this.sdz_1.adw_1.j39().x65_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().d5e(e, 'DoorLog', CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda$lambda(this.ydz_1, this.zdz_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).l78 = function (completion) {
    return new CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda(this.sdz_1, this.tdz_1, this.udz_1, this.vdz_1, this.wdz_1, this.xdz_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.j87($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.oe0_1 = this$0;
    this.pe0_1 = $accountPersonUid;
    this.qe0_1 = $assignmentUid;
    this.re0_1 = $clazzUid;
    this.se0_1 = $submitterUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda).m78 = function ($completion) {
    return this.j87($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.te0_1 = this.oe0_1.adw_1;
            var tmp_1 = this;
            tmp_1.ue0_1 = 'CoursePermissionDao/userPermissionsForAssignmentSubmitterUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ve0_1 = this.oe0_1.cdw_1;
            var tmp_3 = this;
            tmp_3.we0_1 = this.ve0_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.oe0_1.adw_1.j39(), 'CoursePermissionDao/userPermissionsForAssignmentSubmitterUid');
            doorNodeIdHeader(this_0, this.oe0_1.adw_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.oe0_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.pe0_1));
            parameter(this_0, 'assignmentUid', this.oe0_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.qe0_1));
            parameter(this_0, 'clazzUid', this.oe0_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.re0_1));
            parameter(this_0, 'submitterUid', this.oe0_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.se0_1));
            tmp_4.xe0_1 = this_0;
            this.xe0_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.ye0_1 = this.we0_1;
            var tmp_6 = this;
            tmp_6.ze0_1 = this.xe0_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.ze0_1, this.ye0_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.ae1_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.oe0_1.zdv_1, this.ae1_1, this.oe0_1.adw_1.j39().x65_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().d5e(e, 'DoorLog', CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda$lambda(this.te0_1, this.ue0_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).l78 = function (completion) {
    return new CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda(this.oe0_1, this.pe0_1, this.qe0_1, this.re0_1, this.se0_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByUidAndClazzUidCOROUTINE$221(_this__u8e3s4, uid, clazzUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.je1_1 = _this__u8e3s4;
    this.ke1_1 = uid;
    this.le1_1 = clazzUid;
  }
  protoOf($findByUidAndClazzUidCOROUTINE$221).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.me1_1 = this.je1_1.adw_1;
            var tmp_1 = this;
            tmp_1.ne1_1 = 'CoursePermissionDao/findByUidAndClazzUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.oe1_1 = this.je1_1.cdw_1;
            var tmp_3 = this;
            tmp_3.pe1_1 = this.oe1_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.je1_1.adw_1.j39(), 'CoursePermissionDao/findByUidAndClazzUid');
            doorNodeIdHeader(this_0, this.je1_1.adw_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.je1_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ke1_1));
            parameter(this_0, 'clazzUid', this.je1_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.le1_1));
            tmp_4.qe1_1 = this_0;
            this.qe1_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.re1_1 = this.pe1_1;
            var tmp_6 = this;
            tmp_6.se1_1 = this.qe1_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.se1_1, this.re1_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.te1_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.je1_1.zdv_1, this.te1_1, this.je1_1.adw_1.j39().x65_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.ue1_1 = this.kd_1;
              Napier_getInstance().d5e(this.ue1_1, 'DoorLog', CoursePermissionDao_Repo$findByUidAndClazzUid$lambda(this.me1_1, this.ne1_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.je1_1.bdw_1.cdk(this.ke1_1, this.le1_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$223(_this__u8e3s4, accountPersonUid, clazzEnrolmentUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.de2_1 = _this__u8e3s4;
    this.ee2_1 = accountPersonUid;
    this.fe2_1 = clazzEnrolmentUid;
  }
  protoOf($userHasEnrolmentEditPermissionCOROUTINE$223).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.ge2_1 = this.de2_1.adw_1;
            var tmp_1 = this;
            tmp_1.he2_1 = 'CoursePermissionDao/userHasEnrolmentEditPermission';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ie2_1 = this.de2_1.cdw_1;
            var tmp_3 = this;
            tmp_3.je2_1 = this.ie2_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.de2_1.adw_1.j39(), 'CoursePermissionDao/userHasEnrolmentEditPermission');
            doorNodeIdHeader(this_0, this.de2_1.adw_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.de2_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ee2_1));
            parameter(this_0, 'clazzEnrolmentUid', this.de2_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.fe2_1));
            tmp_4.ke2_1 = this_0;
            this.ke2_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.le2_1 = this.je2_1;
            var tmp_6 = this;
            tmp_6.me2_1 = this.ke2_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.me2_1, this.le2_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.ne2_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.de2_1.zdv_1, this.ne2_1, this.de2_1.adw_1.j39().x65_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.oe2_1 = this.kd_1;
              Napier_getInstance().d5e(this.oe2_1, 'DoorLog', CoursePermissionDao_Repo$userHasEnrolmentEditPermission$lambda(this.ge2_1, this.he2_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.de2_1.bdw_1.edk(this.ee2_1, this.fe2_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$225(_this__u8e3s4, accountPersonUid, clazzUid, firstPermission, secondPermission, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.xe2_1 = _this__u8e3s4;
    this.ye2_1 = accountPersonUid;
    this.ze2_1 = clazzUid;
    this.ae3_1 = firstPermission;
    this.be3_1 = secondPermission;
  }
  protoOf($personHasPermissionWithClazzPairAsyncCOROUTINE$225).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.ce3_1 = this.xe2_1.adw_1;
            var tmp_1 = this;
            tmp_1.de3_1 = 'CoursePermissionDao/personHasPermissionWithClazzPairAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ee3_1 = this.xe2_1.cdw_1;
            var tmp_3 = this;
            tmp_3.fe3_1 = this.ee3_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.xe2_1.adw_1.j39(), 'CoursePermissionDao/personHasPermissionWithClazzPairAsync');
            doorNodeIdHeader(this_0, this.xe2_1.adw_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.xe2_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ye2_1));
            parameter(this_0, 'clazzUid', this.xe2_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ze2_1));
            parameter(this_0, 'firstPermission', this.xe2_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ae3_1));
            parameter(this_0, 'secondPermission', this.xe2_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.be3_1));
            tmp_4.ge3_1 = this_0;
            this.ge3_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.he3_1 = this.fe3_1;
            var tmp_6 = this;
            tmp_6.ie3_1 = this.ge3_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.ie3_1, this.he3_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.je3_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.xe2_1.zdv_1, this.je3_1, this.xe2_1.adw_1.j39().x65_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.ke3_1 = this.kd_1;
              Napier_getInstance().d5e(this.ke3_1, 'DoorLog', CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsync$lambda(this.ce3_1, this.de3_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.xe2_1.bdw_1.hdk(this.ye2_1, this.ze2_1, this.ae3_1, this.be3_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$226(_this__u8e3s4, accountPersonUid, clazzUid, permission, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.te3_1 = _this__u8e3s4;
    this.ue3_1 = accountPersonUid;
    this.ve3_1 = clazzUid;
    this.we3_1 = permission;
  }
  protoOf($personHasPermissionWithClazzAsync2COROUTINE$226).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.xe3_1 = this.te3_1.adw_1;
            var tmp_1 = this;
            tmp_1.ye3_1 = 'CoursePermissionDao/personHasPermissionWithClazzAsync2';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ze3_1 = this.te3_1.cdw_1;
            var tmp_3 = this;
            tmp_3.ae4_1 = this.ze3_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.te3_1.adw_1.j39(), 'CoursePermissionDao/personHasPermissionWithClazzAsync2');
            doorNodeIdHeader(this_0, this.te3_1.adw_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.te3_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ue3_1));
            parameter(this_0, 'clazzUid', this.te3_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ve3_1));
            parameter(this_0, 'permission', this.te3_1.adw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.we3_1));
            tmp_4.be4_1 = this_0;
            this.be4_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.ce4_1 = this.ae4_1;
            var tmp_6 = this;
            tmp_6.de4_1 = this.be4_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.de4_1, this.ce4_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.ee4_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.te3_1.zdv_1, this.ee4_1, this.te3_1.adw_1.j39().x65_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.fe4_1 = this.kd_1;
              Napier_getInstance().d5e(this.fe4_1, 'DoorLog', CoursePermissionDao_Repo$personHasPermissionWithClazzAsync2$lambda(this.xe3_1, this.ye3_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.te3_1.bdw_1.jdk(this.ue3_1, this.ve3_1, this.we3_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.zdv_1 = _db;
    this.adw_1 = _repo;
    this.bdw_1 = _dao;
    this.cdw_1 = _httpClient;
    this.ddw_1 = _clientId;
    this.edw_1 = _endpoint;
    this.fdw_1 = new RepoDaoFlowHelper(this.adw_1);
  }
  protoOf(CoursePermissionDao_Repo).bdk = function (clazzUid, includeDeleted) {
    var tmp = this.bdw_1.bdk(clazzUid, includeDeleted);
    return new DoorRepositoryReplicatePullPagingSource(this.adw_1, 'CoursePermissionDao/findByClazzUidAsPagingSource', tmp, CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda_0(this, clazzUid, includeDeleted, null));
  };
  protoOf(CoursePermissionDao_Repo).cdk = function (uid, clazzUid, $completion) {
    var tmp = new $findByUidAndClazzUidCOROUTINE$221(this, uid, clazzUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo).p7s = function (uid, clazzUid) {
    var tmp = this.bdw_1.p7s(uid, clazzUid);
    return this.fdw_1.o67(tmp, CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda_0(this, uid, clazzUid, null));
  };
  protoOf(CoursePermissionDao_Repo).ddk = function (coursePermission, $completion) {
    return withRepoChangeMonitorAsync(this.adw_1, 'CoursePermission', CoursePermissionDao_Repo$upsertAsync$slambda_0(this, coursePermission, null), $completion);
  };
  protoOf(CoursePermissionDao_Repo).eca = function (cpUid, isDeleted, updateTime, $completion) {
    return withRepoChangeMonitorAsync(this.adw_1, 'CoursePermission', CoursePermissionDao_Repo$setDeleted$slambda_0(this, cpUid, isDeleted, updateTime, null), $completion);
  };
  protoOf(CoursePermissionDao_Repo).edk = function (accountPersonUid, clazzEnrolmentUid, $completion) {
    var tmp = new $userHasEnrolmentEditPermissionCOROUTINE$223(this, accountPersonUid, clazzEnrolmentUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo).fdk = function (accountPersonUid, clazzUid, permission) {
    var tmp = this.bdw_1.fdk(accountPersonUid, clazzUid, permission);
    return this.fdw_1.o67(tmp, CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda_0(this, accountPersonUid, clazzUid, permission, null));
  };
  protoOf(CoursePermissionDao_Repo).gdk = function (accountPersonUid, clazzUid, firstPermission, secondPermission) {
    var tmp = this.bdw_1.gdk(accountPersonUid, clazzUid, firstPermission, secondPermission);
    return this.fdw_1.o67(tmp, CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda_0(this, accountPersonUid, clazzUid, firstPermission, secondPermission, null));
  };
  protoOf(CoursePermissionDao_Repo).hdk = function (accountPersonUid, clazzUid, firstPermission, secondPermission, $completion) {
    var tmp = new $personHasPermissionWithClazzPairAsyncCOROUTINE$225(this, accountPersonUid, clazzUid, firstPermission, secondPermission, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo).idk = function (accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission) {
    var tmp = this.bdw_1.idk(accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission);
    return this.fdw_1.o67(tmp, CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda_0(this, accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission, null));
  };
  protoOf(CoursePermissionDao_Repo).jdk = function (accountPersonUid, clazzUid, permission, $completion) {
    var tmp = new $personHasPermissionWithClazzAsync2COROUTINE$226(this, accountPersonUid, clazzUid, permission, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePermissionDao_Repo).kdk = function (accountPersonUid, assignmentUid, clazzUid, submitterUid) {
    var tmp = this.bdw_1.kdk(accountPersonUid, assignmentUid, clazzUid, submitterUid);
    return this.fdw_1.o67(tmp, CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda_0(this, accountPersonUid, assignmentUid, clazzUid, submitterUid, null));
  };
  function CoursePictureDao() {
  }
  function $upsertAsyncCOROUTINE$228(_this__u8e3s4, coursePicture, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.pe4_1 = _this__u8e3s4;
    this.qe4_1 = coursePicture;
  }
  protoOf($upsertAsyncCOROUTINE$228).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.re4_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.pe4_1.te4_1));
            if (this.qe4_1.q8g_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.re4_1.o62(125, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.se4_1 = suspendResult;
            this.qe4_1.q8g_1 = this.se4_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.qe4_1.r8g_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.pe4_1.ue4_1.ge4(this.qe4_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.te4_1 = _db;
    this.ue4_1 = _dao;
  }
  protoOf(CoursePictureDao_DoorWrapper).ge4 = function (coursePicture, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$228(this, coursePicture, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePictureDao_DoorWrapper).ubi = function (uid, uri, thumbnailUri, time, $completion) {
    return this.ue4_1.ubi(uid, uri, thumbnailUri, time, $completion);
  };
  function CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ve4_1);
  }
  protoOf(CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO CoursePicture (coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) VALUES(?, ?, ?, ?, ?)';
  };
  protoOf(CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1).ze4 = function (stmt, entity) {
    if (entity.q8g_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.q8g_1);
    }
    stmt.v5h(2, entity.r8g_1);
    stmt.y5h(3, entity.s8g_1);
    stmt.y5h(4, entity.t8g_1);
    stmt.i5h(5, entity.u8g_1);
  };
  protoOf(CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1).p5f = function (stmt, entity) {
    return this.ze4(stmt, entity instanceof CoursePicture ? entity : THROW_CCE());
  };
  function CoursePictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation) {
    this.ie5_1 = $uri;
    this.je5_1 = $thumbnailUri;
    this.ke5_1 = $time;
    this.le5_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePictureDao_JdbcImpl$updateUri$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.me5_1.y5h(1, this.ie5_1);
            this.me5_1.y5h(2, this.je5_1);
            this.me5_1.v5h(3, this.ke5_1);
            this.me5_1.v5h(4, this.le5_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.me5_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).m5f = function (_stmt, completion) {
    var i = new CoursePictureDao_JdbcImpl$updateUri$slambda(this.ie5_1, this.je5_1, this.ke5_1, this.le5_1, completion);
    i.me5_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $updateUriCOROUTINE$229(_this__u8e3s4, uid, uri, thumbnailUri, time, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ve5_1 = _this__u8e3s4;
    this.we5_1 = uid;
    this.xe5_1 = uri;
    this.ye5_1 = thumbnailUri;
    this.ze5_1 = time;
  }
  protoOf($updateUriCOROUTINE$229).ud = function () {
    var 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.ve5_1.ve4_1, tmp_0, CoursePictureDao_JdbcImpl$updateUri$slambda_0(this.xe5_1, this.ye5_1, this.ze5_1, this.we5_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.ve4_1 = _db;
    var tmp = this;
    tmp.we4_1 = new CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1(this);
  }
  protoOf(CoursePictureDao_JdbcImpl).ge4 = function (coursePicture, $completion) {
    return this.we4_1.v5g(coursePicture, $completion);
  };
  protoOf(CoursePictureDao_JdbcImpl).ubi = function (uid, uri, thumbnailUri, time, $completion) {
    var tmp = new $updateUriCOROUTINE$229(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.ie6_1 = this$0;
    this.je6_1 = $coursePicture;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePictureDao_Repo$upsertAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePictureDao_Repo$upsertAsync$slambda).m78 = function ($completion) {
    return this.j87($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.ie6_1.me6_1.ge4(this.je6_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).l78 = function (completion) {
    return new CoursePictureDao_Repo$upsertAsync$slambda(this.ie6_1, this.je6_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) {
    this.ye6_1 = this$0;
    this.ze6_1 = $uid;
    this.ae7_1 = $uri;
    this.be7_1 = $thumbnailUri;
    this.ce7_1 = $time;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CoursePictureDao_Repo$updateUri$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CoursePictureDao_Repo$updateUri$slambda).m78 = function ($completion) {
    return this.j87($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.ye6_1.me6_1.ubi(this.ze6_1, this.ae7_1, this.be7_1, this.ce7_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).l78 = function (completion) {
    return new CoursePictureDao_Repo$updateUri$slambda(this.ye6_1, this.ze6_1, this.ae7_1, this.be7_1, this.ce7_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CoursePictureDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    CoursePictureDao.call(this);
    this.ke6_1 = _db;
    this.le6_1 = _repo;
    this.me6_1 = _dao;
    this.ne6_1 = _httpClient;
    this.oe6_1 = _clientId;
    this.pe6_1 = _endpoint;
  }
  protoOf(CoursePictureDao_Repo).ge4 = function (coursePicture, $completion) {
    return withRepoChangeMonitorAsync(this.le6_1, 'CoursePicture', CoursePictureDao_Repo$upsertAsync$slambda_0(this, coursePicture, null), $completion);
  };
  protoOf(CoursePictureDao_Repo).ubi = function (uid, uri, thumbnailUri, time, $completion) {
    return withRepoChangeMonitorAsync(this.le6_1, 'CoursePicture', CoursePictureDao_Repo$updateUri$slambda_0(this, uid, uri, thumbnailUri, time, null), $completion);
  };
  function CourseTerminologyDao() {
  }
  function $upsertAsyncCOROUTINE$230(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.qe7_1 = _this__u8e3s4;
    this.re7_1 = entity;
  }
  protoOf($upsertAsyncCOROUTINE$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.se7_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.qe7_1.ue7_1));
            if (this.re7_1.m8g_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.se7_1.o62(450, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.te7_1 = suspendResult;
            this.re7_1.m8g_1 = this.te7_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.re7_1.p8g_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.qe7_1.ve7_1.he7(this.re7_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.re7_1.m8g_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$231(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ee8_1 = _this__u8e3s4;
    this.fe8_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 = 4;
            this.ge8_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.ee8_1.ue7_1));
            if (this.fe8_1.m8g_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.ge8_1.o62(450, 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.m8g_1 = this.he8_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.fe8_1.p8g_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.ee8_1.ve7_1.insertAsync(this.fe8_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.fe8_1.m8g_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.ue7_1 = _db;
    this.ve7_1 = _dao;
  }
  protoOf(CourseTerminologyDao_DoorWrapper).de7 = function () {
    return this.ve7_1.de7();
  };
  protoOf(CourseTerminologyDao_DoorWrapper).ee7 = function (clazzUid, $completion) {
    return this.ve7_1.ee7(clazzUid, $completion);
  };
  protoOf(CourseTerminologyDao_DoorWrapper).fe7 = function (assignmentUid, $completion) {
    return this.ve7_1.fe7(assignmentUid, $completion);
  };
  protoOf(CourseTerminologyDao_DoorWrapper).ge7 = function (uid, $completion) {
    return this.ve7_1.ge7(uid, $completion);
  };
  protoOf(CourseTerminologyDao_DoorWrapper).he7 = function (entity, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$230(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_DoorWrapper).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(CourseTerminologyDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.ie8(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.y5m('ctUid');
      var _tmp_ctTitle = $_result.rz('ctTitle');
      var _tmp_ctTerminology = $_result.rz('ctTerminology');
      var _tmp_ctLct = $_result.y5m('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.m8g_1 = _tmp_ctUid;
      this_0.n8g_1 = _tmp_ctTitle;
      this_0.o8g_1 = _tmp_ctTerminology;
      this_0.p8g_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.m5s(1);
    };
  }
  function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda($_limit, $_offset, resultContinuation) {
    this.re8_1 = $_limit;
    this.se8_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda).ue8 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ue8((!(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.te8_1.u5h(1, this.re8_1);
            this.te8_1.u5h(2, this.se8_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.te8_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).m5f = function (_stmt, completion) {
    var i = new CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda(this.re8_1, this.se8_1, completion);
    i.te8_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.ue8(_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).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.de9_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).m5f = function (_stmt, completion) {
    var i = new CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda(completion);
    i.de9_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.j6j(_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.y5m('ctUid');
      var _tmp_ctTitle = $_result.rz('ctTitle');
      var _tmp_ctTerminology = $_result.rz('ctTerminology');
      var _tmp_ctLct = $_result.y5m('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.m8g_1 = _tmp_ctUid;
      this_0.n8g_1 = _tmp_ctTitle;
      this_0.o8g_1 = _tmp_ctTerminology;
      this_0.p8g_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.y5m('ctUid');
      var _tmp_ctTitle = $_result.rz('ctTitle');
      var _tmp_ctTerminology = $_result.rz('ctTerminology');
      var _tmp_ctLct = $_result.y5m('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.m8g_1 = _tmp_ctUid;
      this_0.n8g_1 = _tmp_ctTitle;
      this_0.o8g_1 = _tmp_ctTerminology;
      this_0.p8g_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.y5m('ctUid');
      var _tmp_ctTitle = $_result.rz('ctTitle');
      var _tmp_ctTerminology = $_result.rz('ctTerminology');
      var _tmp_ctLct = $_result.y5m('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.m8g_1 = _tmp_ctUid;
      this_0.n8g_1 = _tmp_ctTitle;
      this_0.o8g_1 = _tmp_ctTerminology;
      this_0.p8g_1 = _tmp_ctLct;
      return this_0;
    };
  }
  function CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ee9_1);
  }
  protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO CourseTerminology (ctUid, ctTitle, ctTerminology, ctLct) VALUES(?, ?, ?, ?)';
  };
  protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1).je9 = function (stmt, entity) {
    if (entity.m8g_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.m8g_1);
    }
    stmt.y5h(2, entity.n8g_1);
    stmt.y5h(3, entity.o8g_1);
    stmt.v5h(4, entity.p8g_1);
  };
  protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1).p5f = function (stmt, entity) {
    return this.je9(stmt, entity instanceof CourseTerminology ? entity : THROW_CCE());
  };
  function CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ee9_1);
  }
  protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO CourseTerminology (ctUid, ctTitle, ctTerminology, ctLct) VALUES(?, ?, ?, ?)';
  };
  protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1).je9 = function (stmt, entity) {
    if (entity.m8g_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.m8g_1);
    }
    stmt.y5h(2, entity.n8g_1);
    stmt.y5h(3, entity.o8g_1);
    stmt.v5h(4, entity.p8g_1);
  };
  protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1).p5f = function (stmt, entity) {
    return this.je9(stmt, entity instanceof CourseTerminology ? entity : THROW_CCE());
  };
  function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1(this$0) {
    this.se9_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.ee9_1, tmp$ret$2);
  }
  protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1).te9 = 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.se9_1.ee9_1, tmp, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda_0(_limit, _offset, null), $completion);
  };
  protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1).w5p = function (_limit, _offset, $completion) {
    return this.te9(_limit, _offset, $completion);
  };
  protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1).q5r = 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.se9_1.ee9_1, tmp, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda_0(null), $completion);
  };
  function CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda($clazzUid, resultContinuation) {
    this.cea_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda).eea = function (_stmt, $completion) {
    var tmp = this.m5f(_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.eea((!(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.dea_1.v5h(1, this.cea_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.dea_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).m5f = function (_stmt, completion) {
    var i = new CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda(this.cea_1, completion);
    i.dea_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.eea(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda($assignmentUid, resultContinuation) {
    this.nea_1 = $assignmentUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda).eea = function (_stmt, $completion) {
    var tmp = this.m5f(_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.eea((!(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.oea_1.v5h(1, this.nea_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.oea_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).m5f = function (_stmt, completion) {
    var i = new CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda(this.nea_1, completion);
    i.oea_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.eea(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) {
    this.xea_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda).eea = function (_stmt, $completion) {
    var tmp = this.m5f(_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.eea((!(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.yea_1.v5h(1, this.xea_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.yea_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).m5f = function (_stmt, completion) {
    var i = new CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda(this.xea_1, completion);
    i.yea_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.eea(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $upsertAsyncCOROUTINE$232(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.heb_1 = _this__u8e3s4;
    this.ieb_1 = entity;
  }
  protoOf($upsertAsyncCOROUTINE$232).ud = function () {
    var 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.heb_1.fe9_1.w5g(this.ieb_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$233(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.reb_1 = _this__u8e3s4;
    this.seb_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$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;
            suspendResult = this.reb_1.ge9_1.w5g(this.seb_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.ee9_1 = _db;
    var tmp = this;
    tmp.fe9_1 = new CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1(this);
    var tmp_0 = this;
    tmp_0.ge9_1 = new CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1(this);
  }
  protoOf(CourseTerminologyDao_JdbcImpl).he7 = function (entity, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$232(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_JdbcImpl).ie8 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$233(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.ie8(entity instanceof CourseTerminology ? entity : THROW_CCE(), $completion);
  };
  protoOf(CourseTerminologyDao_JdbcImpl).de7 = function () {
    return new CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1(this);
  };
  protoOf(CourseTerminologyDao_JdbcImpl).ee7 = 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.ee9_1, tmp, CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda_0(clazzUid, null), $completion);
  };
  protoOf(CourseTerminologyDao_JdbcImpl).fe7 = 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.ee9_1, tmp, CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda_0(assignmentUid, null), $completion);
  };
  protoOf(CourseTerminologyDao_JdbcImpl).ge7 = 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.ee9_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.bec_1 = this$0;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_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.h86(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.eec_1 = this.bec_1.nec_1;
            var tmp_1 = this;
            tmp_1.fec_1 = 'CourseTerminologyDao/findAllCourseTerminologyPagingSource';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.gec_1 = this.bec_1.pec_1;
            var tmp_3 = this;
            tmp_3.hec_1 = this.gec_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.bec_1.nec_1.j39(), 'CourseTerminologyDao/findAllCourseTerminologyPagingSource');
            doorNodeIdHeader(this_0, this.bec_1.nec_1);
            header(this_0, 'cache-control', 'no-store');
            pagingSourceLoadParameters(this_0, this.bec_1.nec_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.cec_1);
            tmp_4.iec_1 = this_0;
            this.iec_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.jec_1 = this.hec_1;
            var tmp_6 = this;
            tmp_6.kec_1 = this.iec_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.kec_1, this.jec_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.lec_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.bec_1.mec_1, this.lec_1, this.bec_1.nec_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.dec_1 = endOfPaginationReached(this.lec_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().d5e(e, 'DoorLog', CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda$lambda(this.eec_1, this.fec_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.dec_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).i86 = function (_pagingParams, completion) {
    var i = new CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda(this.bec_1, completion);
    i.cec_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.h86(_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.aed_1 = this$0;
    this.bed_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseTerminologyDao_Repo$upsertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_Repo$upsertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.aed_1.oec_1.he7(this.bed_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).l78 = function (completion) {
    return new CourseTerminologyDao_Repo$upsertAsync$slambda(this.aed_1, this.bed_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function CourseTerminologyDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.ked_1 = this$0;
    this.led_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(CourseTerminologyDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.ked_1.oec_1.insertAsync(this.led_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).l78 = function (completion) {
    return new CourseTerminologyDao_Repo$insertAsync$slambda(this.ked_1, this.led_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $getTerminologyForClazzCOROUTINE$235(_this__u8e3s4, clazzUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ued_1 = _this__u8e3s4;
    this.ved_1 = clazzUid;
  }
  protoOf($getTerminologyForClazzCOROUTINE$235).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.wed_1 = this.ued_1.nec_1;
            var tmp_1 = this;
            tmp_1.xed_1 = 'CourseTerminologyDao/getTerminologyForClazz';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.yed_1 = this.ued_1.pec_1;
            var tmp_3 = this;
            tmp_3.zed_1 = this.yed_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ued_1.nec_1.j39(), 'CourseTerminologyDao/getTerminologyForClazz');
            doorNodeIdHeader(this_0, this.ued_1.nec_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.ued_1.nec_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ved_1));
            tmp_4.aee_1 = this_0;
            this.aee_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.bee_1 = this.zed_1;
            var tmp_6 = this;
            tmp_6.cee_1 = this.aee_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.cee_1, this.bee_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.dee_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ued_1.mec_1, this.dee_1, this.ued_1.nec_1.j39().x65_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.eee_1 = this.kd_1;
              Napier_getInstance().d5e(this.eee_1, 'DoorLog', CourseTerminologyDao_Repo$getTerminologyForClazz$lambda(this.wed_1, this.xed_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.ued_1.oec_1.ee7(this.ved_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$236(_this__u8e3s4, assignmentUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.nee_1 = _this__u8e3s4;
    this.oee_1 = assignmentUid;
  }
  protoOf($getTerminologyForAssignmentCOROUTINE$236).ud = function () {
    var 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.nee_1.oec_1.fe7(this.oee_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$237(_this__u8e3s4, uid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.xee_1 = _this__u8e3s4;
    this.yee_1 = uid;
  }
  protoOf($findByUidAsyncCOROUTINE$237).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.zee_1 = this.xee_1.nec_1;
            var tmp_1 = this;
            tmp_1.aef_1 = 'CourseTerminologyDao/findByUidAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.bef_1 = this.xee_1.pec_1;
            var tmp_3 = this;
            tmp_3.cef_1 = this.bef_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.xee_1.nec_1.j39(), 'CourseTerminologyDao/findByUidAsync');
            doorNodeIdHeader(this_0, this.xee_1.nec_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.xee_1.nec_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.yee_1));
            tmp_4.def_1 = this_0;
            this.def_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.eef_1 = this.cef_1;
            var tmp_6 = this;
            tmp_6.fef_1 = this.def_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.fef_1, this.eef_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.gef_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.xee_1.mec_1, this.gef_1, this.xee_1.nec_1.j39().x65_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.hef_1 = this.kd_1;
              Napier_getInstance().d5e(this.hef_1, 'DoorLog', CourseTerminologyDao_Repo$findByUidAsync$lambda(this.zee_1, this.aef_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.xee_1.oec_1.ge7(this.yee_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$239(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.qef_1 = _this__u8e3s4;
    this.ref_1 = entity;
  }
  protoOf($upsertAsyncCOROUTINE$239).ud = function () {
    var 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.qef_1.nec_1, 'CourseTerminology', CourseTerminologyDao_Repo$upsertAsync$slambda_0(this.qef_1, this.ref_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$240(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.aeg_1 = _this__u8e3s4;
    this.beg_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.aeg_1.nec_1, 'CourseTerminology', CourseTerminologyDao_Repo$insertAsync$slambda_0(this.aeg_1, this.beg_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.mec_1 = _db;
    this.nec_1 = _repo;
    this.oec_1 = _dao;
    this.pec_1 = _httpClient;
    this.qec_1 = _clientId;
    this.rec_1 = _endpoint;
  }
  protoOf(CourseTerminologyDao_Repo).de7 = function () {
    var tmp = this.oec_1.de7();
    return new DoorRepositoryReplicatePullPagingSource(this.nec_1, 'CourseTerminologyDao/findAllCourseTerminologyPagingSource', tmp, CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda_0(this, null));
  };
  protoOf(CourseTerminologyDao_Repo).ee7 = function (clazzUid, $completion) {
    var tmp = new $getTerminologyForClazzCOROUTINE$235(this, clazzUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_Repo).fe7 = function (assignmentUid, $completion) {
    var tmp = new $getTerminologyForAssignmentCOROUTINE$236(this, assignmentUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_Repo).ge7 = function (uid, $completion) {
    var tmp = new $findByUidAsyncCOROUTINE$237(this, uid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_Repo).he7 = function (entity, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$239(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(CourseTerminologyDao_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(CourseTerminologyDao_Repo).insertAsync = function (entity, $completion) {
    return this.ie8(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.y5m('delItemUid');
      var _tmp_delItemName = $_result.rz('delItemName');
      var _tmp_delItemIconUri = $_result.rz('delItemIconUri');
      var _tmp_delItemLastModTime = $_result.y5m('delItemLastModTime');
      var _tmp_delItemTimeDeleted = $_result.y5m('delItemTimeDeleted');
      var _tmp_delItemEntityTable = $_result.x5m('delItemEntityTable');
      var _tmp_delItemEntityUid = $_result.y5m('delItemEntityUid');
      var _tmp_delItemDeletedByPersonUid = $_result.y5m('delItemDeletedByPersonUid');
      var _tmp_delItemStatus = $_result.x5m('delItemStatus');
      var _tmp_delItemIsFolder = $_result.j66('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.feg_1 = _tmp_delItemUid;
      this_0.geg_1 = _tmp_delItemName;
      this_0.heg_1 = _tmp_delItemIconUri;
      this_0.ieg_1 = _tmp_delItemLastModTime;
      this_0.jeg_1 = _tmp_delItemTimeDeleted;
      this_0.keg_1 = _tmp_delItemEntityTable;
      this_0.leg_1 = _tmp_delItemEntityUid;
      this_0.meg_1 = _tmp_delItemDeletedByPersonUid;
      this_0.neg_1 = _tmp_delItemStatus;
      this_0.oeg_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.m5s(1);
    };
  }
  function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda($includeActionedItems, $personUid, $_limit, $_offset, resultContinuation) {
    this.xeg_1 = $includeActionedItems;
    this.yeg_1 = $personUid;
    this.zeg_1 = $_limit;
    this.aeh_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda).ceh = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ceh((!(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.beh_1.i5h(1, this.xeg_1);
            this.beh_1.v5h(2, this.yeg_1);
            this.beh_1.u5h(3, this.zeg_1);
            this.beh_1.u5h(4, this.aeh_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.beh_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).m5f = function (_stmt, completion) {
    var i = new DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda(this.xeg_1, this.yeg_1, this.zeg_1, this.aeh_1, completion);
    i.beh_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.ceh(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda($includeActionedItems, $personUid, resultContinuation) {
    this.leh_1 = $includeActionedItems;
    this.meh_1 = $personUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.neh_1.i5h(1, this.leh_1);
            this.neh_1.v5h(2, this.meh_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.neh_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).m5f = function (_stmt, completion) {
    var i = new DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda(this.leh_1, this.meh_1, completion);
    i.neh_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda($cepcjUid, $time, $deletedByPersonUid, resultContinuation) {
    this.weh_1 = $cepcjUid;
    this.xeh_1 = $time;
    this.yeh_1 = $deletedByPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.zeh_1.v5h(1, this.weh_1);
            this.zeh_1.v5h(2, this.xeh_1);
            this.zeh_1.v5h(3, this.xeh_1);
            this.zeh_1.v5h(4, this.weh_1);
            this.zeh_1.v5h(5, this.yeh_1);
            this.zeh_1.v5h(6, this.weh_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.zeh_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).m5f = function (_stmt, completion) {
    var i = new DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda(this.weh_1, this.xeh_1, this.yeh_1, completion);
    i.zeh_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1(this$0, $includeActionedItems, $personUid) {
    this.gei_1 = this$0;
    this.hei_1 = $includeActionedItems;
    this.iei_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.jei_1, tmp$ret$2);
  }
  protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1).kei = 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.gei_1.jei_1, tmp, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda_0(this.hei_1, this.iei_1, _limit, _offset, null), $completion);
  };
  protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1).w5p = function (_limit, _offset, $completion) {
    return this.kei(_limit, _offset, $completion);
  };
  protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1).q5r = 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.gei_1.jei_1, tmp, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda_0(this.hei_1, this.iei_1, null), $completion);
  };
  function DeletedItemDao_JdbcImpl$updateStatusByUids$slambda($newStatus, $updateTime, $uidList, resultContinuation) {
    this.tei_1 = $newStatus;
    this.uei_1 = $updateTime;
    this.vei_1 = $uidList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DeletedItemDao_JdbcImpl$updateStatusByUids$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.wei_1.u5h(1, this.tei_1);
            this.wei_1.v5h(2, this.uei_1);
            var tmp_0 = this.wei_1.r5g();
            var this_0 = this.vei_1;
            this.wei_1.z5h(3, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.wei_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).m5f = function (_stmt, completion) {
    var i = new DeletedItemDao_JdbcImpl$updateStatusByUids$slambda(this.tei_1, this.uei_1, this.vei_1, completion);
    i.wei_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertDeletedItemForContentEntryParentChildJoinCOROUTINE$241(_this__u8e3s4, cepcjUid, time, deletedByPersonUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.fej_1 = _this__u8e3s4;
    this.gej_1 = cepcjUid;
    this.hej_1 = time;
    this.iej_1 = deletedByPersonUid;
  }
  protoOf($insertDeletedItemForContentEntryParentChildJoinCOROUTINE$241).ud = function () {
    var 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.fej_1.jei_1, tmp_0, DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda_0(this.gej_1, this.hej_1, this.iej_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$242(_this__u8e3s4, uidList, newStatus, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.rej_1 = _this__u8e3s4;
    this.sej_1 = uidList;
    this.tej_1 = newStatus;
    this.uej_1 = updateTime;
  }
  protoOf($updateStatusByUidsCOROUTINE$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 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.rej_1.jei_1, tmp_0, DeletedItemDao_JdbcImpl$updateStatusByUids$slambda_0(this.tej_1, this.uej_1, this.sej_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.jei_1 = _db;
  }
  protoOf(DeletedItemDao_JdbcImpl).ceg = function (cepcjUid, time, deletedByPersonUid, $completion) {
    var tmp = new $insertDeletedItemForContentEntryParentChildJoinCOROUTINE$241(this, cepcjUid, time, deletedByPersonUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DeletedItemDao_JdbcImpl).deg = function (personUid, includeActionedItems) {
    return new DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1(this, includeActionedItems, personUid);
  };
  protoOf(DeletedItemDao_JdbcImpl).eeg = function (uidList, newStatus, updateTime, $completion) {
    var tmp = new $updateStatusByUidsCOROUTINE$242(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.dek_1 = this$0;
    this.eek_1 = $cepcjUid;
    this.fek_1 = $time;
    this.gek_1 = $deletedByPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda).m78 = function ($completion) {
    return this.j87($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.dek_1.jek_1.ceg(this.eek_1, this.fek_1, this.gek_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).l78 = function (completion) {
    return new DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda(this.dek_1, this.eek_1, this.fek_1, this.gek_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function DeletedItemDao_Repo$findDeletedItemsForUser$slambda(this$0, $personUid, $includeActionedItems, resultContinuation) {
    this.vek_1 = this$0;
    this.wek_1 = $personUid;
    this.xek_1 = $includeActionedItems;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DeletedItemDao_Repo$findDeletedItemsForUser$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_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.h86(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.ael_1 = this.vek_1.iek_1;
            var tmp_1 = this;
            tmp_1.bel_1 = 'DeletedItemDao/findDeletedItemsForUser';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.cel_1 = this.vek_1.kek_1;
            var tmp_3 = this;
            tmp_3.del_1 = this.cel_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.vek_1.iek_1.j39(), 'DeletedItemDao/findDeletedItemsForUser');
            doorNodeIdHeader(this_0, this.vek_1.iek_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'personUid', this.vek_1.iek_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.wek_1));
            parameter(this_0, 'includeActionedItems', this.vek_1.iek_1.j39().x65_1.r45(serializer_2(BooleanCompanionObject_instance), this.xek_1));
            pagingSourceLoadParameters(this_0, this.vek_1.iek_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.yek_1);
            tmp_4.eel_1 = this_0;
            this.eel_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.fel_1 = this.del_1;
            var tmp_6 = this;
            tmp_6.gel_1 = this.eel_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.gel_1, this.fel_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.hel_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.vek_1.hek_1, this.hel_1, this.vek_1.iek_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.zek_1 = endOfPaginationReached(this.hel_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().d5e(e, 'DoorLog', DeletedItemDao_Repo$findDeletedItemsForUser$slambda$lambda(this.ael_1, this.bel_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.zek_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).i86 = function (_pagingParams, completion) {
    var i = new DeletedItemDao_Repo$findDeletedItemsForUser$slambda(this.vek_1, this.wek_1, this.xek_1, completion);
    i.yek_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.h86(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DeletedItemDao_Repo$updateStatusByUids$slambda(this$0, $uidList, $newStatus, $updateTime, resultContinuation) {
    this.qel_1 = this$0;
    this.rel_1 = $uidList;
    this.sel_1 = $newStatus;
    this.tel_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DeletedItemDao_Repo$updateStatusByUids$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DeletedItemDao_Repo$updateStatusByUids$slambda).m78 = function ($completion) {
    return this.j87($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.qel_1.jek_1.eeg(this.rel_1, this.sel_1, this.tel_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).l78 = function (completion) {
    return new DeletedItemDao_Repo$updateStatusByUids$slambda(this.qel_1, this.rel_1, this.sel_1, this.tel_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function DeletedItemDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    DeletedItemDao.call(this);
    this.hek_1 = _db;
    this.iek_1 = _repo;
    this.jek_1 = _dao;
    this.kek_1 = _httpClient;
    this.lek_1 = _clientId;
    this.mek_1 = _endpoint;
  }
  protoOf(DeletedItemDao_Repo).ceg = function (cepcjUid, time, deletedByPersonUid, $completion) {
    return withRepoChangeMonitorAsync(this.iek_1, 'DeletedItem', DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda_0(this, cepcjUid, time, deletedByPersonUid, null), $completion);
  };
  protoOf(DeletedItemDao_Repo).deg = function (personUid, includeActionedItems) {
    var tmp = this.jek_1.deg(personUid, includeActionedItems);
    return new DoorRepositoryReplicatePullPagingSource(this.iek_1, 'DeletedItemDao/findDeletedItemsForUser', tmp, DeletedItemDao_Repo$findDeletedItemsForUser$slambda_0(this, personUid, includeActionedItems, null));
  };
  protoOf(DeletedItemDao_Repo).eeg = function (uidList, newStatus, updateTime, $completion) {
    return withRepoChangeMonitorAsync(this.iek_1, 'DeletedItem', DeletedItemDao_Repo$updateStatusByUids$slambda_0(this, uidList, newStatus, updateTime, null), $completion);
  };
  function DiscussionPostDao() {
  }
  function $upsertAsyncCOROUTINE$244(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.hem_1 = _this__u8e3s4;
    this.iem_1 = entity;
  }
  protoOf($upsertAsyncCOROUTINE$244).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.jem_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.hem_1.lem_1));
            if (this.iem_1.nem_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.jem_1.o62(132, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.kem_1 = suspendResult;
            this.iem_1.nem_1 = this.kem_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.iem_1.wem_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.hem_1.mem_1.xel(this.iem_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$245(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.hen_1 = _this__u8e3s4;
    this.ien_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$245).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.jen_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.hen_1.lem_1));
            if (this.ien_1.nem_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.jen_1.o62(132, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.ken_1 = suspendResult;
            this.ien_1.nem_1 = this.ken_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.ien_1.wem_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.hen_1.mem_1.insertAsync(this.ien_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.ien_1.nem_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.lem_1 = _db;
    this.mem_1 = _dao;
  }
  protoOf(DiscussionPostDao_DoorWrapper).uel = function (courseBlockUid, includeDeleted) {
    return this.mem_1.uel(courseBlockUid, includeDeleted);
  };
  protoOf(DiscussionPostDao_DoorWrapper).vel = function (uid, $completion) {
    return this.mem_1.vel(uid, $completion);
  };
  protoOf(DiscussionPostDao_DoorWrapper).z8c = function (uid) {
    return this.mem_1.z8c(uid);
  };
  protoOf(DiscussionPostDao_DoorWrapper).wel = function (postUid, includeDeleted) {
    return this.mem_1.wel(postUid, includeDeleted);
  };
  protoOf(DiscussionPostDao_DoorWrapper).xel = function (entity, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$244(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_DoorWrapper).yel = function (uid, deleted, updateTime, $completion) {
    return this.mem_1.yel(uid, deleted, updateTime, $completion);
  };
  protoOf(DiscussionPostDao_DoorWrapper).len = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$245(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.len(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.x5m('postRepliesCount');
      var _tmp_postLatestMessageTimestamp = $_result.y5m('postLatestMessageTimestamp');
      var _tmp_discussionPostUid = $_result.y5m('discussionPostUid');
      var _tmp_discussionPostReplyToPostUid = $_result.y5m('discussionPostReplyToPostUid');
      var _tmp_discussionPostTitle = $_result.rz('discussionPostTitle');
      var _tmp_discussionPostMessage = $_result.rz('discussionPostMessage');
      var _tmp_discussionPostStartDate = $_result.y5m('discussionPostStartDate');
      var _tmp_discussionPostCourseBlockUid = $_result.y5m('discussionPostCourseBlockUid');
      var _tmp_dpDeleted = $_result.j66('dpDeleted');
      var _tmp_discussionPostStartedPersonUid = $_result.y5m('discussionPostStartedPersonUid');
      var _tmp_discussionPostClazzUid = $_result.y5m('discussionPostClazzUid');
      var _tmp_discussionPostLct = $_result.y5m('discussionPostLct');
      var _tmp_discussionPostVisible = $_result.j66('discussionPostVisible');
      var _tmp_discussionPostArchive = $_result.j66('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.yen_1 = _tmp_authorPersonFirstNames;
      this_0.zen_1 = _tmp_authorPersonLastName;
      this_0.aeo_1 = _tmp_authorPictureUri;
      this_0.beo_1 = _tmp_postLatestMessage;
      this_0.ceo_1 = _tmp_postRepliesCount;
      this_0.deo_1 = _tmp_postLatestMessageTimestamp;
      this_0.nem_1 = _tmp_discussionPostUid;
      this_0.oem_1 = _tmp_discussionPostReplyToPostUid;
      this_0.pem_1 = _tmp_discussionPostTitle;
      this_0.qem_1 = _tmp_discussionPostMessage;
      this_0.rem_1 = _tmp_discussionPostStartDate;
      this_0.sem_1 = _tmp_discussionPostCourseBlockUid;
      this_0.tem_1 = _tmp_dpDeleted;
      this_0.uem_1 = _tmp_discussionPostStartedPersonUid;
      this_0.vem_1 = _tmp_discussionPostClazzUid;
      this_0.wem_1 = _tmp_discussionPostLct;
      this_0.xem_1 = _tmp_discussionPostVisible;
      this_0.yem_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.m5s(1);
    };
  }
  function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda($courseBlockUid, $includeDeleted, $_limit, $_offset, resultContinuation) {
    this.meo_1 = $courseBlockUid;
    this.neo_1 = $includeDeleted;
    this.oeo_1 = $_limit;
    this.peo_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda).reo = function (_stmt, $completion) {
    var tmp = this.m5f(_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.reo((!(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.qeo_1.v5h(1, this.meo_1);
            this.qeo_1.i5h(2, this.neo_1);
            this.qeo_1.u5h(3, this.oeo_1);
            this.qeo_1.u5h(4, this.peo_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.qeo_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).m5f = function (_stmt, completion) {
    var i = new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda(this.meo_1, this.neo_1, this.oeo_1, this.peo_1, completion);
    i.qeo_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.reo(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda($courseBlockUid, $includeDeleted, resultContinuation) {
    this.aep_1 = $courseBlockUid;
    this.bep_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.cep_1.v5h(1, this.aep_1);
            this.cep_1.i5h(2, this.bep_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.cep_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).m5f = function (_stmt, completion) {
    var i = new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda(this.aep_1, this.bep_1, completion);
    i.cep_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.j6j(_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.y5m('discussionPostUid');
      var _tmp_discussionPostReplyToPostUid = $_result.y5m('discussionPostReplyToPostUid');
      var _tmp_discussionPostTitle = $_result.rz('discussionPostTitle');
      var _tmp_discussionPostMessage = $_result.rz('discussionPostMessage');
      var _tmp_discussionPostStartDate = $_result.y5m('discussionPostStartDate');
      var _tmp_discussionPostCourseBlockUid = $_result.y5m('discussionPostCourseBlockUid');
      var _tmp_dpDeleted = $_result.j66('dpDeleted');
      var _tmp_discussionPostStartedPersonUid = $_result.y5m('discussionPostStartedPersonUid');
      var _tmp_discussionPostClazzUid = $_result.y5m('discussionPostClazzUid');
      var _tmp_discussionPostLct = $_result.y5m('discussionPostLct');
      var _tmp_discussionPostVisible = $_result.j66('discussionPostVisible');
      var _tmp_discussionPostArchive = $_result.j66('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.nem_1 = _tmp_discussionPostUid;
      this_0.oem_1 = _tmp_discussionPostReplyToPostUid;
      this_0.pem_1 = _tmp_discussionPostTitle;
      this_0.qem_1 = _tmp_discussionPostMessage;
      this_0.rem_1 = _tmp_discussionPostStartDate;
      this_0.sem_1 = _tmp_discussionPostCourseBlockUid;
      this_0.tem_1 = _tmp_dpDeleted;
      this_0.uem_1 = _tmp_discussionPostStartedPersonUid;
      this_0.vem_1 = _tmp_discussionPostClazzUid;
      this_0.wem_1 = _tmp_discussionPostLct;
      this_0.xem_1 = _tmp_discussionPostVisible;
      this_0.yem_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.x60(1);
    };
  }
  function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda($uid, resultContinuation) {
    this.lep_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).s8l = function (_stmt, $completion) {
    var tmp = this.m5f(_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.s8l((!(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.mep_1.v5h(1, this.lep_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.mep_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).m5f = function (_stmt, completion) {
    var i = new DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda(this.lep_1, completion);
    i.mep_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.s8l(_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.y5m('discussionPostUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_discussionPostReplyToPostUid = $_result.y5m('discussionPostReplyToPostUid');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_discussionPostTitle = $_result.rz('discussionPostTitle');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_discussionPostMessage = $_result.rz('discussionPostMessage');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_discussionPostStartDate = $_result.y5m('discussionPostStartDate');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_discussionPostCourseBlockUid = $_result.y5m('discussionPostCourseBlockUid');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_dpDeleted = $_result.j66('dpDeleted');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_discussionPostStartedPersonUid = $_result.y5m('discussionPostStartedPersonUid');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_discussionPostClazzUid = $_result.y5m('discussionPostClazzUid');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_discussionPostLct = $_result.y5m('discussionPostLct');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_discussionPostVisible = $_result.j66('discussionPostVisible');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_discussionPostArchive = $_result.j66('discussionPostArchive');
      var tmp_10;
      if ($_result.q67()) {
        _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.oep_1 = _tmp_firstNames;
      this_0.pep_1 = _tmp_lastName;
      this_0.qep_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.nem_1 = _tmp_discussionPostUid;
        this_1.oem_1 = _tmp_discussionPostReplyToPostUid;
        this_1.pem_1 = _tmp_discussionPostTitle;
        this_1.qem_1 = _tmp_discussionPostMessage;
        this_1.rem_1 = _tmp_discussionPostStartDate;
        this_1.sem_1 = _tmp_discussionPostCourseBlockUid;
        this_1.tem_1 = _tmp_dpDeleted;
        this_1.uem_1 = _tmp_discussionPostStartedPersonUid;
        this_1.vem_1 = _tmp_discussionPostClazzUid;
        this_1.wem_1 = _tmp_discussionPostLct;
        this_1.xem_1 = _tmp_discussionPostVisible;
        this_1.yem_1 = _tmp_discussionPostArchive;
        tmp_11.nep_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.m5s(1);
    };
  }
  function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda($postUid, $includeDeleted, $_limit, $_offset, resultContinuation) {
    this.zep_1 = $postUid;
    this.aeq_1 = $includeDeleted;
    this.beq_1 = $_limit;
    this.ceq_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda).eeq = function (_stmt, $completion) {
    var tmp = this.m5f(_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.eeq((!(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.deq_1.v5h(1, this.zep_1);
            this.deq_1.v5h(2, this.zep_1);
            this.deq_1.i5h(3, this.aeq_1);
            this.deq_1.u5h(4, this.beq_1);
            this.deq_1.u5h(5, this.ceq_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.deq_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).m5f = function (_stmt, completion) {
    var i = new DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda(this.zep_1, this.aeq_1, this.beq_1, this.ceq_1, completion);
    i.deq_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.eeq(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda($postUid, $includeDeleted, resultContinuation) {
    this.neq_1 = $postUid;
    this.oeq_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.peq_1.v5h(1, this.neq_1);
            this.peq_1.v5h(2, this.neq_1);
            this.peq_1.i5h(3, this.oeq_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.peq_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).m5f = function (_stmt, completion) {
    var i = new DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda(this.neq_1, this.oeq_1, completion);
    i.peq_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.qeq_1);
  }
  protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1).u5g = 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).veq = function (stmt, entity) {
    if (entity.nem_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.nem_1);
    }
    stmt.v5h(2, entity.oem_1);
    stmt.y5h(3, entity.pem_1);
    stmt.y5h(4, entity.qem_1);
    stmt.v5h(5, entity.rem_1);
    stmt.v5h(6, entity.sem_1);
    stmt.i5h(7, entity.tem_1);
    stmt.v5h(8, entity.uem_1);
    stmt.v5h(9, entity.vem_1);
    stmt.v5h(10, entity.wem_1);
    stmt.i5h(11, entity.xem_1);
    stmt.i5h(12, entity.yem_1);
  };
  protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1).p5f = function (stmt, entity) {
    return this.veq(stmt, entity instanceof DiscussionPost ? entity : THROW_CCE());
  };
  function DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.qeq_1);
  }
  protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1).u5g = 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).veq = function (stmt, entity) {
    if (entity.nem_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.nem_1);
    }
    stmt.v5h(2, entity.oem_1);
    stmt.y5h(3, entity.pem_1);
    stmt.y5h(4, entity.qem_1);
    stmt.v5h(5, entity.rem_1);
    stmt.v5h(6, entity.sem_1);
    stmt.i5h(7, entity.tem_1);
    stmt.v5h(8, entity.uem_1);
    stmt.v5h(9, entity.vem_1);
    stmt.v5h(10, entity.wem_1);
    stmt.i5h(11, entity.xem_1);
    stmt.i5h(12, entity.yem_1);
  };
  protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1).p5f = function (stmt, entity) {
    return this.veq(stmt, entity instanceof DiscussionPost ? entity : THROW_CCE());
  };
  function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1(this$0, $courseBlockUid, $includeDeleted) {
    this.eer_1 = this$0;
    this.fer_1 = $courseBlockUid;
    this.ger_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.qeq_1, tmp$ret$2);
  }
  protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1).her = 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.eer_1.qeq_1, tmp, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda_0(this.fer_1, this.ger_1, _limit, _offset, null), $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1).w5p = function (_limit, _offset, $completion) {
    return this.her(_limit, _offset, $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1).q5r = 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.eer_1.qeq_1, tmp, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda_0(this.fer_1, this.ger_1, null), $completion);
  };
  function DiscussionPostDao_JdbcImpl$findByUid$slambda($uid, resultContinuation) {
    this.qer_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_JdbcImpl$findByUid$slambda).ser = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ser((!(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.rer_1.v5h(1, this.qer_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.rer_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).m5f = function (_stmt, completion) {
    var i = new DiscussionPostDao_JdbcImpl$findByUid$slambda(this.qer_1, completion);
    i.rer_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.ser(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda(this$0, $uid, resultContinuation) {
    this.bes_1 = this$0;
    this.ces_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda).v8q = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda).m78 = function ($completion) {
    return this.v8q($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.bes_1.qeq_1, tmp_0, DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda_0(this.ces_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).l78 = function (completion) {
    return new DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda(this.bes_1, this.ces_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.v8q($completion);
    };
    l.$arity = 0;
    return l;
  }
  function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1(this$0, $postUid, $includeDeleted) {
    this.jes_1 = this$0;
    this.kes_1 = $postUid;
    this.les_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.qeq_1, tmp$ret$2);
  }
  protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1).mes = 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.jes_1.qeq_1, tmp, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda_0(this.kes_1, this.les_1, _limit, _offset, null), $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1).w5p = function (_limit, _offset, $completion) {
    return this.mes(_limit, _offset, $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1).q5r = 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.jes_1.qeq_1, tmp, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda_0(this.kes_1, this.les_1, null), $completion);
  };
  function DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda($deleted, $updateTime, $uid, resultContinuation) {
    this.ves_1 = $deleted;
    this.wes_1 = $updateTime;
    this.xes_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.yes_1.i5h(1, this.ves_1);
            this.yes_1.v5h(2, this.wes_1);
            this.yes_1.v5h(3, this.xes_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.yes_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).m5f = function (_stmt, completion) {
    var i = new DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda(this.ves_1, this.wes_1, this.xes_1, completion);
    i.yes_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$246(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.het_1 = _this__u8e3s4;
    this.iet_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$246).ud = function () {
    var 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.het_1.seq_1.w5g(this.iet_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$248(_this__u8e3s4, uid, deleted, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ret_1 = _this__u8e3s4;
    this.set_1 = uid;
    this.tet_1 = deleted;
    this.uet_1 = updateTime;
  }
  protoOf($setDeletedAsyncCOROUTINE$248).ud = function () {
    var 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.ret_1.qeq_1, tmp_0, DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda_0(this.tet_1, this.uet_1, this.set_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.qeq_1 = _db;
    var tmp = this;
    tmp.req_1 = new DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1(this);
    var tmp_0 = this;
    tmp_0.seq_1 = new DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1(this);
  }
  protoOf(DiscussionPostDao_JdbcImpl).xel = function (entity, $completion) {
    return this.req_1.v5g(entity, $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl).len = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$246(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.len(entity instanceof DiscussionPost ? entity : THROW_CCE(), $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl).uel = function (courseBlockUid, includeDeleted) {
    return new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1(this, courseBlockUid, includeDeleted);
  };
  protoOf(DiscussionPostDao_JdbcImpl).vel = 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.qeq_1, tmp, DiscussionPostDao_JdbcImpl$findByUid$slambda_0(uid, null), $completion);
  };
  protoOf(DiscussionPostDao_JdbcImpl).z8c = 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.qeq_1, tmp, DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda_0(this, uid, null));
  };
  protoOf(DiscussionPostDao_JdbcImpl).wel = function (postUid, includeDeleted) {
    return new DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1(this, postUid, includeDeleted);
  };
  protoOf(DiscussionPostDao_JdbcImpl).yel = function (uid, deleted, updateTime, $completion) {
    var tmp = new $setDeletedAsyncCOROUTINE$248(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.deu_1 = this$0;
    this.eeu_1 = $courseBlockUid;
    this.feu_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_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.h86(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.ieu_1 = this.deu_1.reu_1;
            var tmp_1 = this;
            tmp_1.jeu_1 = 'DiscussionPostDao/getTopLevelPostsByCourseBlockUid';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.keu_1 = this.deu_1.teu_1;
            var tmp_3 = this;
            tmp_3.leu_1 = this.keu_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.deu_1.reu_1.j39(), 'DiscussionPostDao/getTopLevelPostsByCourseBlockUid');
            doorNodeIdHeader(this_0, this.deu_1.reu_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'courseBlockUid', this.deu_1.reu_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.eeu_1));
            parameter(this_0, 'includeDeleted', this.deu_1.reu_1.j39().x65_1.r45(serializer_2(BooleanCompanionObject_instance), this.feu_1));
            pagingSourceLoadParameters(this_0, this.deu_1.reu_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.geu_1);
            tmp_4.meu_1 = this_0;
            this.meu_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.neu_1 = this.leu_1;
            var tmp_6 = this;
            tmp_6.oeu_1 = this.meu_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.oeu_1, this.neu_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.peu_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.deu_1.qeu_1, this.peu_1, this.deu_1.reu_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.heu_1 = endOfPaginationReached(this.peu_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().d5e(e, 'DoorLog', DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda$lambda(this.ieu_1, this.jeu_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.heu_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).i86 = function (_pagingParams, completion) {
    var i = new DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda(this.deu_1, this.eeu_1, this.feu_1, completion);
    i.geu_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.h86(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda(this$0, $postUid, $includeDeleted, resultContinuation) {
    this.eev_1 = this$0;
    this.fev_1 = $postUid;
    this.gev_1 = $includeDeleted;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_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.h86(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.jev_1 = this.eev_1.reu_1;
            var tmp_1 = this;
            tmp_1.kev_1 = 'DiscussionPostDao/findByPostIdWithAllReplies';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.lev_1 = this.eev_1.teu_1;
            var tmp_3 = this;
            tmp_3.mev_1 = this.lev_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.eev_1.reu_1.j39(), 'DiscussionPostDao/findByPostIdWithAllReplies');
            doorNodeIdHeader(this_0, this.eev_1.reu_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'postUid', this.eev_1.reu_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.fev_1));
            parameter(this_0, 'includeDeleted', this.eev_1.reu_1.j39().x65_1.r45(serializer_2(BooleanCompanionObject_instance), this.gev_1));
            pagingSourceLoadParameters(this_0, this.eev_1.reu_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.hev_1);
            tmp_4.nev_1 = this_0;
            this.nev_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.oev_1 = this.mev_1;
            var tmp_6 = this;
            tmp_6.pev_1 = this.nev_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.pev_1, this.oev_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.qev_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.eev_1.qeu_1, this.qev_1, this.eev_1.reu_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.iev_1 = endOfPaginationReached(this.qev_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().d5e(e, 'DoorLog', DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda$lambda(this.jev_1, this.kev_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.iev_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).i86 = function (_pagingParams, completion) {
    var i = new DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda(this.eev_1, this.fev_1, this.gev_1, completion);
    i.hev_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.h86(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function DiscussionPostDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation) {
    this.zev_1 = this$0;
    this.aew_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_Repo$upsertAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_Repo$upsertAsync$slambda).m78 = function ($completion) {
    return this.j87($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.zev_1.seu_1.xel(this.aew_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).l78 = function (completion) {
    return new DiscussionPostDao_Repo$upsertAsync$slambda(this.zev_1, this.aew_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function DiscussionPostDao_Repo$setDeletedAsync$slambda(this$0, $uid, $deleted, $updateTime, resultContinuation) {
    this.jew_1 = this$0;
    this.kew_1 = $uid;
    this.lew_1 = $deleted;
    this.mew_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_Repo$setDeletedAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_Repo$setDeletedAsync$slambda).m78 = function ($completion) {
    return this.j87($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.jew_1.seu_1.yel(this.kew_1, this.lew_1, this.mew_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).l78 = function (completion) {
    return new DiscussionPostDao_Repo$setDeletedAsync$slambda(this.jew_1, this.kew_1, this.lew_1, this.mew_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function DiscussionPostDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.vew_1 = this$0;
    this.wew_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(DiscussionPostDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.vew_1.seu_1.insertAsync(this.wew_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).l78 = function (completion) {
    return new DiscussionPostDao_Repo$insertAsync$slambda(this.vew_1, this.wew_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByUidCOROUTINE$252(_this__u8e3s4, uid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.fex_1 = _this__u8e3s4;
    this.gex_1 = uid;
  }
  protoOf($findByUidCOROUTINE$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.fex_1.seu_1.vel(this.gex_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$255(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.pex_1 = _this__u8e3s4;
    this.qex_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$255).ud = function () {
    var 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.pex_1.reu_1, 'DiscussionPost', DiscussionPostDao_Repo$insertAsync$slambda_0(this.pex_1, this.qex_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.qeu_1 = _db;
    this.reu_1 = _repo;
    this.seu_1 = _dao;
    this.teu_1 = _httpClient;
    this.ueu_1 = _clientId;
    this.veu_1 = _endpoint;
  }
  protoOf(DiscussionPostDao_Repo).uel = function (courseBlockUid, includeDeleted) {
    var tmp = this.seu_1.uel(courseBlockUid, includeDeleted);
    return new DoorRepositoryReplicatePullPagingSource(this.reu_1, 'DiscussionPostDao/getTopLevelPostsByCourseBlockUid', tmp, DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda_0(this, courseBlockUid, includeDeleted, null));
  };
  protoOf(DiscussionPostDao_Repo).vel = function (uid, $completion) {
    var tmp = new $findByUidCOROUTINE$252(this, uid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_Repo).z8c = function (uid) {
    var _result = this.seu_1.z8c(uid);
    return _result;
  };
  protoOf(DiscussionPostDao_Repo).wel = function (postUid, includeDeleted) {
    var tmp = this.seu_1.wel(postUid, includeDeleted);
    return new DoorRepositoryReplicatePullPagingSource(this.reu_1, 'DiscussionPostDao/findByPostIdWithAllReplies', tmp, DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda_0(this, postUid, includeDeleted, null));
  };
  protoOf(DiscussionPostDao_Repo).xel = function (entity, $completion) {
    return withRepoChangeMonitorAsync(this.reu_1, 'DiscussionPost', DiscussionPostDao_Repo$upsertAsync$slambda_0(this, entity, null), $completion);
  };
  protoOf(DiscussionPostDao_Repo).yel = function (uid, deleted, updateTime, $completion) {
    return withRepoChangeMonitorAsync(this.reu_1, 'DiscussionPost', DiscussionPostDao_Repo$setDeletedAsync$slambda_0(this, uid, deleted, updateTime, null), $completion);
  };
  protoOf(DiscussionPostDao_Repo).len = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$255(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(DiscussionPostDao_Repo).insertAsync = function (entity, $completion) {
    return this.len(entity instanceof DiscussionPost ? entity : THROW_CCE(), $completion);
  };
  function EnrolmentRequestDao() {
  }
  function $insertCOROUTINE$256(_this__u8e3s4, enrolmentRequest, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.eey_1 = _this__u8e3s4;
    this.fey_1 = enrolmentRequest;
  }
  protoOf($insertCOROUTINE$256).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.gey_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.eey_1.iey_1));
            if (this.fey_1.key_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.gey_1.o62(10070, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.hey_1 = suspendResult;
            this.fey_1.key_1 = this.hey_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.fey_1.xey_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.eey_1.jey_1.rex(this.fey_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.iey_1 = _db;
    this.jey_1 = _dao;
  }
  protoOf(EnrolmentRequestDao_DoorWrapper).rex = function (enrolmentRequest, $completion) {
    var tmp = new $insertCOROUTINE$256(this, enrolmentRequest, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_DoorWrapper).sex = function (personUid, clazzUid, $completion) {
    return this.jey_1.sex(personUid, clazzUid, $completion);
  };
  protoOf(EnrolmentRequestDao_DoorWrapper).tex = function (accountPersonUid, statusFilter) {
    return this.jey_1.tex(accountPersonUid, statusFilter);
  };
  protoOf(EnrolmentRequestDao_DoorWrapper).uex = function (uid, status, updateTime, $completion) {
    return this.jey_1.uex(uid, status, updateTime, $completion);
  };
  protoOf(EnrolmentRequestDao_DoorWrapper).vex = function (clazzUid, includeDeleted, statusFilter, searchText, sortOrder) {
    return this.jey_1.vex(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.n74(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.y5m('erUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_erClazzUid = $_result.y5m('erClazzUid');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_erClazzName = $_result.rz('erClazzName');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_erPersonUid = $_result.y5m('erPersonUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_erPersonFullname = $_result.rz('erPersonFullname');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_erPersonPictureUri = $_result.rz('erPersonPictureUri');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_erPersonUsername = $_result.rz('erPersonUsername');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_erRole = $_result.x5m('erRole');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_erRequestTime = $_result.y5m('erRequestTime');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_erStatus = $_result.x5m('erStatus');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_erStatusSetByPersonUid = $_result.y5m('erStatusSetByPersonUid');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_erDeleted = $_result.j66('erDeleted');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_erStatusSetAuth = $_result.rz('erStatusSetAuth');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_erLastModified = $_result.y5m('erLastModified');
      var tmp_12;
      if ($_result.q67()) {
        _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.y5m('coursePictureUid');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_coursePictureLct = $_result.y5m('coursePictureLct');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_coursePictureUri = $_result.rz('coursePictureUri');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_coursePictureThumbnailUri = $_result.rz('coursePictureThumbnailUri');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_coursePictureActive = $_result.j66('coursePictureActive');
      var tmp_17;
      if ($_result.q67()) {
        _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.key_1 = _tmp_erUid;
        this_1.ley_1 = _tmp_erClazzUid;
        this_1.mey_1 = _tmp_erClazzName;
        this_1.ney_1 = _tmp_erPersonUid;
        this_1.oey_1 = _tmp_erPersonFullname;
        this_1.pey_1 = _tmp_erPersonPictureUri;
        this_1.qey_1 = _tmp_erPersonUsername;
        this_1.rey_1 = _tmp_erRole;
        this_1.sey_1 = _tmp_erRequestTime;
        this_1.tey_1 = _tmp_erStatus;
        this_1.uey_1 = _tmp_erStatusSetByPersonUid;
        this_1.vey_1 = _tmp_erDeleted;
        this_1.wey_1 = _tmp_erStatusSetAuth;
        this_1.xey_1 = _tmp_erLastModified;
        tmp_18.yey_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.q8g_1 = _tmp_coursePictureUid;
        this_2.r8g_1 = _tmp_coursePictureLct;
        this_2.s8g_1 = _tmp_coursePictureUri;
        this_2.t8g_1 = _tmp_coursePictureThumbnailUri;
        this_2.u8g_1 = _tmp_coursePictureActive;
        tmp_19.zey_1 = this_2;
      }
      return this_0;
    };
  }
  function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda($accountPersonUid, $statusFilter, resultContinuation) {
    this.iez_1 = $accountPersonUid;
    this.jez_1 = $statusFilter;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda).lez = function (_stmt, $completion) {
    var tmp = this.m5f(_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.lez((!(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.kez_1.v5h(1, this.iez_1);
            this.kez_1.u5h(2, this.jez_1);
            this.kez_1.u5h(3, this.jez_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.kez_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).m5f = function (_stmt, completion) {
    var i = new EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda(this.iez_1, this.jez_1, completion);
    i.kez_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.lez(_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.y5m('erUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_erClazzUid = $_result.y5m('erClazzUid');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_erClazzName = $_result.rz('erClazzName');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_erPersonUid = $_result.y5m('erPersonUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_erPersonFullname = $_result.rz('erPersonFullname');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_erPersonPictureUri = $_result.rz('erPersonPictureUri');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_erPersonUsername = $_result.rz('erPersonUsername');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_erRole = $_result.x5m('erRole');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_erRequestTime = $_result.y5m('erRequestTime');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_erStatus = $_result.x5m('erStatus');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_erStatusSetByPersonUid = $_result.y5m('erStatusSetByPersonUid');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_erDeleted = $_result.j66('erDeleted');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_erStatusSetAuth = $_result.rz('erStatusSetAuth');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_erLastModified = $_result.y5m('erLastModified');
      var tmp_12;
      if ($_result.q67()) {
        _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.y5m('personPictureUid');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.y5m('personPictureLct');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_fileSize = $_result.x5m('fileSize');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.j66('personPictureActive');
      var tmp_18;
      if ($_result.q67()) {
        _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.y5m('personUid');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_gender = $_result.x5m('gender');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_active = $_result.j66('active');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_isPersonalAccount = $_result.j66('isPersonalAccount');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.y5m('dateOfBirth');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.y5m('personGroupUid');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_personLct = $_result.y5m('personLct');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_personType = $_result.x5m('personType');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.y5m('personMasterChangeSeqNum');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.y5m('personLocalChangeSeqNum');
      var tmp_36;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.x5m('personLastChangedBy');
      var tmp_37;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_admin = $_result.j66('admin');
      var tmp_38;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_39;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_40;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_41;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_42;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_43;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 25;
      // 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_44 = 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.key_1 = _tmp_erUid;
        this_1.ley_1 = _tmp_erClazzUid;
        this_1.mey_1 = _tmp_erClazzName;
        this_1.ney_1 = _tmp_erPersonUid;
        this_1.oey_1 = _tmp_erPersonFullname;
        this_1.pey_1 = _tmp_erPersonPictureUri;
        this_1.qey_1 = _tmp_erPersonUsername;
        this_1.rey_1 = _tmp_erRole;
        this_1.sey_1 = _tmp_erRequestTime;
        this_1.tey_1 = _tmp_erStatus;
        this_1.uey_1 = _tmp_erStatusSetByPersonUid;
        this_1.vey_1 = _tmp_erDeleted;
        this_1.wey_1 = _tmp_erStatusSetAuth;
        this_1.xey_1 = _tmp_erLastModified;
        tmp_44.mez_1 = this_1;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_45 = 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.e97_1 = _tmp_personPictureUid;
        this_2.f97_1 = _tmp_personPictureLct;
        this_2.g97_1 = _tmp_personPictureUri;
        this_2.h97_1 = _tmp_personPictureThumbnailUri;
        this_2.i97_1 = _tmp_fileSize;
        this_2.j97_1 = _tmp_personPictureActive;
        tmp_45.nez_1 = this_2;
      }
      if (!_tmp_Person_isAllNull) {
        var tmp_46 = 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.f96_1 = _tmp_personUid;
        this_3.g96_1 = _tmp_username;
        this_3.h96_1 = _tmp_firstNames;
        this_3.i96_1 = _tmp_lastName;
        this_3.j96_1 = _tmp_emailAddr;
        this_3.k96_1 = _tmp_phoneNum;
        this_3.l96_1 = _tmp_gender;
        this_3.m96_1 = _tmp_active;
        this_3.n96_1 = _tmp_isPersonalAccount;
        this_3.o96_1 = _tmp_dateOfBirth;
        this_3.p96_1 = _tmp_personAddress;
        this_3.q96_1 = _tmp_personOrgId;
        this_3.r96_1 = _tmp_personGroupUid;
        this_3.s96_1 = _tmp_personLct;
        this_3.t96_1 = _tmp_personCountry;
        this_3.u96_1 = _tmp_personType;
        this_3.v96_1 = _tmp_personMasterChangeSeqNum;
        this_3.w96_1 = _tmp_personLocalChangeSeqNum;
        this_3.x96_1 = _tmp_personLastChangedBy;
        this_3.y96_1 = _tmp_admin;
        this_3.z96_1 = _tmp_personNotes;
        this_3.a97_1 = _tmp_fatherName;
        this_3.b97_1 = _tmp_fatherNumber;
        this_3.c97_1 = _tmp_motherName;
        this_3.d97_1 = _tmp_motherNum;
        tmp_46.oez_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.m5s(1);
    };
  }
  function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) {
    this.xez_1 = $clazzUid;
    this.yez_1 = $statusFilter;
    this.zez_1 = $includeDeleted;
    this.af0_1 = $searchText;
    this.bf0_1 = $sortOrder;
    this.cf0_1 = $_limit;
    this.df0_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda).ff0 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ff0((!(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.ef0_1.v5h(1, this.xez_1);
            this.ef0_1.u5h(2, this.yez_1);
            this.ef0_1.u5h(3, this.yez_1);
            this.ef0_1.i5h(4, this.zez_1);
            this.ef0_1.y5h(5, this.af0_1);
            this.ef0_1.y5h(6, this.af0_1);
            this.ef0_1.u5h(7, this.bf0_1);
            this.ef0_1.u5h(8, this.bf0_1);
            this.ef0_1.u5h(9, this.bf0_1);
            this.ef0_1.u5h(10, this.bf0_1);
            this.ef0_1.u5h(11, this.cf0_1);
            this.ef0_1.u5h(12, this.df0_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ef0_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).m5f = function (_stmt, completion) {
    var i = new EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda(this.xez_1, this.yez_1, this.zez_1, this.af0_1, this.bf0_1, this.cf0_1, this.df0_1, completion);
    i.ef0_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.ff0(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, resultContinuation) {
    this.of0_1 = $clazzUid;
    this.pf0_1 = $statusFilter;
    this.qf0_1 = $includeDeleted;
    this.rf0_1 = $searchText;
    this.sf0_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.tf0_1.v5h(1, this.of0_1);
            this.tf0_1.u5h(2, this.pf0_1);
            this.tf0_1.u5h(3, this.pf0_1);
            this.tf0_1.i5h(4, this.qf0_1);
            this.tf0_1.y5h(5, this.rf0_1);
            this.tf0_1.y5h(6, this.rf0_1);
            this.tf0_1.u5h(7, this.sf0_1);
            this.tf0_1.u5h(8, this.sf0_1);
            this.tf0_1.u5h(9, this.sf0_1);
            this.tf0_1.u5h(10, this.sf0_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.tf0_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).m5f = function (_stmt, completion) {
    var i = new EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda(this.of0_1, this.pf0_1, this.qf0_1, this.rf0_1, this.sf0_1, completion);
    i.tf0_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.uf0_1);
  }
  protoOf(EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1).u5g = 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).yf0 = function (stmt, entity) {
    if (entity.key_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.key_1);
    }
    stmt.v5h(2, entity.ley_1);
    stmt.y5h(3, entity.mey_1);
    stmt.v5h(4, entity.ney_1);
    stmt.y5h(5, entity.oey_1);
    stmt.y5h(6, entity.pey_1);
    stmt.y5h(7, entity.qey_1);
    stmt.u5h(8, entity.rey_1);
    stmt.v5h(9, entity.sey_1);
    stmt.u5h(10, entity.tey_1);
    stmt.v5h(11, entity.uey_1);
    stmt.i5h(12, entity.vey_1);
    stmt.y5h(13, entity.wey_1);
    stmt.v5h(14, entity.xey_1);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1).p5f = function (stmt, entity) {
    return this.yf0(stmt, entity instanceof EnrolmentRequest ? entity : THROW_CCE());
  };
  function EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda($personUid, $clazzUid, resultContinuation) {
    this.hf1_1 = $personUid;
    this.if1_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda).ta6 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ta6((!(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.jf1_1.v5h(1, this.hf1_1);
            this.jf1_1.v5h(2, this.if1_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.jf1_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).m5f = function (_stmt, completion) {
    var i = new EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda(this.hf1_1, this.if1_1, completion);
    i.jf1_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.ta6(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda(this$0, $accountPersonUid, $statusFilter, resultContinuation) {
    this.sf1_1 = this$0;
    this.tf1_1 = $accountPersonUid;
    this.uf1_1 = $statusFilter;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda).vf1 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda).m78 = function ($completion) {
    return this.vf1($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.sf1_1.uf0_1, tmp_0, EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda_0(this.tf1_1, this.uf1_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).l78 = function (completion) {
    return new EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda(this.sf1_1, this.tf1_1, this.uf1_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.vf1($completion);
    };
    l.$arity = 0;
    return l;
  }
  function EnrolmentRequestDao_JdbcImpl$updateStatus$slambda($status, $updateTime, $uid, resultContinuation) {
    this.ef2_1 = $status;
    this.ff2_1 = $updateTime;
    this.gf2_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_JdbcImpl$updateStatus$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.hf2_1.u5h(1, this.ef2_1);
            this.hf2_1.v5h(2, this.ff2_1);
            this.hf2_1.v5h(3, this.gf2_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.hf2_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).m5f = function (_stmt, completion) {
    var i = new EnrolmentRequestDao_JdbcImpl$updateStatus$slambda(this.ef2_1, this.ff2_1, this.gf2_1, completion);
    i.hf2_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1(this$0, $clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder) {
    this.of2_1 = this$0;
    this.pf2_1 = $clazzUid;
    this.qf2_1 = $statusFilter;
    this.rf2_1 = $includeDeleted;
    this.sf2_1 = $searchText;
    this.tf2_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.uf0_1, tmp$ret$2);
  }
  protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1).uf2 = 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.of2_1.uf0_1, tmp, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda_0(this.pf2_1, this.qf2_1, this.rf2_1, this.sf2_1, this.tf2_1, _limit, _offset, null), $completion);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1).w5p = function (_limit, _offset, $completion) {
    return this.uf2(_limit, _offset, $completion);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1).q5r = 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.of2_1.uf0_1, tmp, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda_0(this.pf2_1, this.qf2_1, this.rf2_1, this.sf2_1, this.tf2_1, null), $completion);
  };
  function $updateStatusCOROUTINE$257(_this__u8e3s4, uid, status, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.df3_1 = _this__u8e3s4;
    this.ef3_1 = uid;
    this.ff3_1 = status;
    this.gf3_1 = updateTime;
  }
  protoOf($updateStatusCOROUTINE$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;
            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.df3_1.uf0_1, tmp_0, EnrolmentRequestDao_JdbcImpl$updateStatus$slambda_0(this.ff3_1, this.gf3_1, this.ef3_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.uf0_1 = _db;
    var tmp = this;
    tmp.vf0_1 = new EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1(this);
  }
  protoOf(EnrolmentRequestDao_JdbcImpl).rex = function (enrolmentRequest, $completion) {
    return this.vf0_1.v5g(enrolmentRequest, $completion);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl).sex = 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.uf0_1, tmp, EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda_0(personUid, clazzUid, null), $completion);
  };
  protoOf(EnrolmentRequestDao_JdbcImpl).tex = 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.uf0_1, tmp, EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda_0(this, accountPersonUid, statusFilter, null));
  };
  protoOf(EnrolmentRequestDao_JdbcImpl).uex = function (uid, status, updateTime, $completion) {
    var tmp = new $updateStatusCOROUTINE$257(this, uid, status, updateTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_JdbcImpl).vex = 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.pf3_1 = this$0;
    this.qf3_1 = $enrolmentRequest;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_Repo$insert$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_Repo$insert$slambda).m78 = function ($completion) {
    return this.j87($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.pf3_1.tf3_1.rex(this.qf3_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).l78 = function (completion) {
    return new EnrolmentRequestDao_Repo$insert$slambda(this.pf3_1, this.qf3_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.j87($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.gf4_1 = this$0;
    this.hf4_1 = $accountPersonUid;
    this.if4_1 = $statusFilter;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.jf4_1 = this.gf4_1.sf3_1;
            var tmp_1 = this;
            tmp_1.kf4_1 = 'EnrolmentRequestDao/findRequestsForUserAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.lf4_1 = this.gf4_1.uf3_1;
            var tmp_3 = this;
            tmp_3.mf4_1 = this.lf4_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.gf4_1.sf3_1.j39(), 'EnrolmentRequestDao/findRequestsForUserAsFlow');
            doorNodeIdHeader(this_0, this.gf4_1.sf3_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.gf4_1.sf3_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.hf4_1));
            parameter(this_0, 'statusFilter', this.gf4_1.sf3_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.if4_1));
            tmp_4.nf4_1 = this_0;
            this.nf4_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.of4_1 = this.mf4_1;
            var tmp_6 = this;
            tmp_6.pf4_1 = this.nf4_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.pf4_1, this.of4_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.qf4_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.gf4_1.rf3_1, this.qf4_1, this.gf4_1.sf3_1.j39().x65_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().d5e(e, 'DoorLog', EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda$lambda(this.jf4_1, this.kf4_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).l78 = function (completion) {
    return new EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda(this.gf4_1, this.hf4_1, this.if4_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function EnrolmentRequestDao_Repo$updateStatus$slambda(this$0, $uid, $status, $updateTime, resultContinuation) {
    this.zf4_1 = this$0;
    this.af5_1 = $uid;
    this.bf5_1 = $status;
    this.cf5_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_Repo$updateStatus$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_Repo$updateStatus$slambda).m78 = function ($completion) {
    return this.j87($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.zf4_1.tf3_1.uex(this.af5_1, this.bf5_1, this.cf5_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).l78 = function (completion) {
    return new EnrolmentRequestDao_Repo$updateStatus$slambda(this.zf4_1, this.af5_1, this.bf5_1, this.cf5_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda(this$0, $clazzUid, $includeDeleted, $statusFilter, $searchText, $sortOrder, resultContinuation) {
    this.lf5_1 = this$0;
    this.mf5_1 = $clazzUid;
    this.nf5_1 = $includeDeleted;
    this.of5_1 = $statusFilter;
    this.pf5_1 = $searchText;
    this.qf5_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_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.h86(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.tf5_1 = this.lf5_1.sf3_1;
            var tmp_1 = this;
            tmp_1.uf5_1 = 'EnrolmentRequestDao/findPendingEnrolmentsForCourse';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.vf5_1 = this.lf5_1.uf3_1;
            var tmp_3 = this;
            tmp_3.wf5_1 = this.vf5_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.lf5_1.sf3_1.j39(), 'EnrolmentRequestDao/findPendingEnrolmentsForCourse');
            doorNodeIdHeader(this_0, this.lf5_1.sf3_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.lf5_1.sf3_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.mf5_1));
            parameter(this_0, 'includeDeleted', this.lf5_1.sf3_1.j39().x65_1.r45(serializer_2(BooleanCompanionObject_instance), this.nf5_1));
            parameter(this_0, 'statusFilter', this.lf5_1.sf3_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.of5_1));
            parameter(this_0, 'searchText', this.lf5_1.sf3_1.j39().x65_1.r45(serializer_0(StringCompanionObject_instance), this.pf5_1));
            parameter(this_0, 'sortOrder', this.lf5_1.sf3_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.qf5_1));
            pagingSourceLoadParameters(this_0, this.lf5_1.sf3_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.rf5_1);
            tmp_4.xf5_1 = this_0;
            this.xf5_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.yf5_1 = this.wf5_1;
            var tmp_6 = this;
            tmp_6.zf5_1 = this.xf5_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.zf5_1, this.yf5_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.af6_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.lf5_1.rf3_1, this.af6_1, this.lf5_1.sf3_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.sf5_1 = endOfPaginationReached(this.af6_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().d5e(e, 'DoorLog', EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda$lambda(this.tf5_1, this.uf5_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.sf5_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).i86 = function (_pagingParams, completion) {
    var i = new EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda(this.lf5_1, this.mf5_1, this.nf5_1, this.of5_1, this.pf5_1, this.qf5_1, completion);
    i.rf5_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.h86(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $hasPendingRequestsCOROUTINE$259(_this__u8e3s4, personUid, clazzUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.jf6_1 = _this__u8e3s4;
    this.kf6_1 = personUid;
    this.lf6_1 = clazzUid;
  }
  protoOf($hasPendingRequestsCOROUTINE$259).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.mf6_1 = this.jf6_1.sf3_1;
            var tmp_1 = this;
            tmp_1.nf6_1 = 'EnrolmentRequestDao/hasPendingRequests';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.of6_1 = this.jf6_1.uf3_1;
            var tmp_3 = this;
            tmp_3.pf6_1 = this.of6_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.jf6_1.sf3_1.j39(), 'EnrolmentRequestDao/hasPendingRequests');
            doorNodeIdHeader(this_0, this.jf6_1.sf3_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'personUid', this.jf6_1.sf3_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.kf6_1));
            parameter(this_0, 'clazzUid', this.jf6_1.sf3_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.lf6_1));
            tmp_4.qf6_1 = this_0;
            this.qf6_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.rf6_1 = this.pf6_1;
            var tmp_6 = this;
            tmp_6.sf6_1 = this.qf6_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.sf6_1, this.rf6_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.tf6_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.jf6_1.rf3_1, this.tf6_1, this.jf6_1.sf3_1.j39().x65_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.uf6_1 = this.kd_1;
              Napier_getInstance().d5e(this.uf6_1, 'DoorLog', EnrolmentRequestDao_Repo$hasPendingRequests$lambda(this.mf6_1, this.nf6_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.jf6_1.tf3_1.sex(this.kf6_1, this.lf6_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.rf3_1 = _db;
    this.sf3_1 = _repo;
    this.tf3_1 = _dao;
    this.uf3_1 = _httpClient;
    this.vf3_1 = _clientId;
    this.wf3_1 = _endpoint;
    this.xf3_1 = new RepoDaoFlowHelper(this.sf3_1);
  }
  protoOf(EnrolmentRequestDao_Repo).rex = function (enrolmentRequest, $completion) {
    return withRepoChangeMonitorAsync(this.sf3_1, 'EnrolmentRequest', EnrolmentRequestDao_Repo$insert$slambda_0(this, enrolmentRequest, null), $completion);
  };
  protoOf(EnrolmentRequestDao_Repo).sex = function (personUid, clazzUid, $completion) {
    var tmp = new $hasPendingRequestsCOROUTINE$259(this, personUid, clazzUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(EnrolmentRequestDao_Repo).tex = function (accountPersonUid, statusFilter) {
    var tmp = this.tf3_1.tex(accountPersonUid, statusFilter);
    return this.xf3_1.o67(tmp, EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda_0(this, accountPersonUid, statusFilter, null));
  };
  protoOf(EnrolmentRequestDao_Repo).uex = function (uid, status, updateTime, $completion) {
    return withRepoChangeMonitorAsync(this.sf3_1, 'EnrolmentRequest', EnrolmentRequestDao_Repo$updateStatus$slambda_0(this, uid, status, updateTime, null), $completion);
  };
  protoOf(EnrolmentRequestDao_Repo).vex = function (clazzUid, includeDeleted, statusFilter, searchText, sortOrder) {
    var tmp = this.tf3_1.vex(clazzUid, includeDeleted, statusFilter, searchText, sortOrder);
    return new DoorRepositoryReplicatePullPagingSource(this.sf3_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.vf6_1 = _db;
    this.wf6_1 = _dao;
  }
  function ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.xf6_1);
  }
  protoOf(ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1).u5g = 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).bf7 = function (stmt, entity) {
    if (entity.cf7_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.cf7_1);
    }
    stmt.v5h(2, entity.df7_1);
    stmt.v5h(3, entity.ef7_1);
    stmt.u5h(4, entity.ff7_1);
    stmt.v5h(5, entity.gf7_1);
    stmt.u5h(6, entity.hf7_1);
    stmt.v5h(7, entity.if7_1);
    stmt.y5h(8, entity.jf7_1);
    stmt.y5h(9, entity.kf7_1);
    stmt.u5h(10, entity.lf7_1);
    stmt.u5h(11, entity.mf7_1);
    stmt.y5h(12, entity.nf7_1);
    stmt.y5h(13, entity.of7_1);
    stmt.y5h(14, entity.pf7_1);
    stmt.y5h(15, entity.qf7_1);
  };
  protoOf(ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1).p5f = function (stmt, entity) {
    return this.bf7(stmt, entity instanceof ErrorReport ? entity : THROW_CCE());
  };
  function ErrorReportDao_JdbcImpl(_db) {
    ErrorReportDao.call(this);
    this.xf6_1 = _db;
    var tmp = this;
    tmp.yf6_1 = new ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1(this);
  }
  function ErrorReportDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ErrorReportDao.call(this);
    this.rf7_1 = _db;
    this.sf7_1 = _repo;
    this.tf7_1 = _dao;
    this.uf7_1 = _httpClient;
    this.vf7_1 = _clientId;
    this.wf7_1 = _endpoint;
  }
  function ExternalAppPermissionDao() {
  }
  function ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.xf7_1);
  }
  protoOf(ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO ExternalAppPermission (eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1).bf8 = function (stmt, entity) {
    if (entity.cf8_1 === 0) {
      stmt.a5i(1, null);
    } else {
      stmt.u5h(1, entity.cf8_1);
    }
    stmt.v5h(2, entity.df8_1);
    stmt.y5h(3, entity.ef8_1);
    stmt.v5h(4, entity.ff8_1);
    stmt.v5h(5, entity.gf8_1);
    stmt.y5h(6, entity.hf8_1);
    stmt.y5h(7, entity.if8_1);
  };
  protoOf(ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1).p5f = function (stmt, entity) {
    return this.bf8(stmt, entity instanceof ExternalAppPermission ? entity : THROW_CCE());
  };
  function ExternalAppPermissionDao_JdbcImpl(_db) {
    ExternalAppPermissionDao.call(this);
    this.xf7_1 = _db;
    var tmp = this;
    tmp.yf7_1 = new ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1(this);
  }
  function HolidayCalendarDao() {
  }
  function $insertAsyncCOROUTINE$266(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.rf8_1 = _this__u8e3s4;
    this.sf8_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 = 4;
            this.tf8_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.rf8_1.vf8_1));
            if (this.sf8_1.c8f_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.tf8_1.o62(28, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.uf8_1 = suspendResult;
            this.sf8_1.c8f_1 = this.uf8_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.sf8_1.j8f_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.rf8_1.wf8_1.insertAsync(this.sf8_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.sf8_1.c8f_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.vf8_1 = _db;
    this.wf8_1 = _dao;
  }
  protoOf(HolidayCalendarDao_DoorWrapper).xf8 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$266(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(HolidayCalendarDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.xf8(entity instanceof HolidayCalendar ? entity : THROW_CCE(), $completion);
  };
  function HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.yf8_1);
  }
  protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO HolidayCalendar (umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1).df9 = function (stmt, entity) {
    if (entity.c8f_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.c8f_1);
    }
    stmt.y5h(2, entity.d8f_1);
    stmt.u5h(3, entity.e8f_1);
    stmt.i5h(4, entity.f8f_1);
    stmt.v5h(5, entity.g8f_1);
    stmt.v5h(6, entity.h8f_1);
    stmt.u5h(7, entity.i8f_1);
    stmt.v5h(8, entity.j8f_1);
  };
  protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1).p5f = function (stmt, entity) {
    return this.df9(stmt, entity instanceof HolidayCalendar ? entity : THROW_CCE());
  };
  function HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.yf8_1);
  }
  protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO HolidayCalendar (umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1).df9 = function (stmt, entity) {
    if (entity.c8f_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.c8f_1);
    }
    stmt.y5h(2, entity.d8f_1);
    stmt.u5h(3, entity.e8f_1);
    stmt.i5h(4, entity.f8f_1);
    stmt.v5h(5, entity.g8f_1);
    stmt.v5h(6, entity.h8f_1);
    stmt.u5h(7, entity.i8f_1);
    stmt.v5h(8, entity.j8f_1);
  };
  protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1).p5f = function (stmt, entity) {
    return this.df9(stmt, entity instanceof HolidayCalendar ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$267(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.of9_1 = _this__u8e3s4;
    this.pf9_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$267).ud = function () {
    var 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.of9_1.af9_1.w5g(this.pf9_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.yf8_1 = _db;
    var tmp = this;
    tmp.zf8_1 = new HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1(this);
    var tmp_0 = this;
    tmp_0.af9_1 = new HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1(this);
  }
  protoOf(HolidayCalendarDao_JdbcImpl).xf8 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$267(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(HolidayCalendarDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.xf8(entity instanceof HolidayCalendar ? entity : THROW_CCE(), $completion);
  };
  function HolidayCalendarDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.yf9_1 = this$0;
    this.zf9_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(HolidayCalendarDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(HolidayCalendarDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.yf9_1.cfa_1.insertAsync(this.zf9_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).l78 = function (completion) {
    return new HolidayCalendarDao_Repo$insertAsync$slambda(this.yf9_1, this.zf9_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$272(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ofa_1 = _this__u8e3s4;
    this.pfa_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.ofa_1.bfa_1, 'HolidayCalendar', HolidayCalendarDao_Repo$insertAsync$slambda_0(this.ofa_1, this.pfa_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.afa_1 = _db;
    this.bfa_1 = _repo;
    this.cfa_1 = _dao;
    this.dfa_1 = _httpClient;
    this.efa_1 = _clientId;
    this.ffa_1 = _endpoint;
  }
  protoOf(HolidayCalendarDao_Repo).xf8 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$272(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(HolidayCalendarDao_Repo).insertAsync = function (entity, $completion) {
    return this.xf8(entity instanceof HolidayCalendar ? entity : THROW_CCE(), $completion);
  };
  function HolidayDao() {
  }
  function $insertAsyncCOROUTINE$274(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.yfa_1 = _this__u8e3s4;
    this.zfa_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 = 4;
            this.afb_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.yfa_1.cfb_1));
            if (this.zfa_1.efb_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.afb_1.o62(99, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.bfb_1 = suspendResult;
            this.zfa_1.efb_1 = this.bfb_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.zfa_1.ifb_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.yfa_1.dfb_1.insertAsync(this.zfa_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.zfa_1.efb_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.cfb_1 = _db;
    this.dfb_1 = _dao;
  }
  protoOf(HolidayDao_DoorWrapper).ofb = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$274(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(HolidayDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.ofb(entity instanceof Holiday ? entity : THROW_CCE(), $completion);
  };
  function HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.pfb_1);
  }
  protoOf(HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO Holiday (holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1).tfb = function (stmt, entity) {
    if (entity.efb_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.efb_1);
    }
    stmt.v5h(2, entity.ffb_1);
    stmt.v5h(3, entity.gfb_1);
    stmt.u5h(4, entity.hfb_1);
    stmt.v5h(5, entity.ifb_1);
    stmt.i5h(6, entity.jfb_1);
    stmt.v5h(7, entity.kfb_1);
    stmt.v5h(8, entity.lfb_1);
    stmt.v5h(9, entity.mfb_1);
    stmt.y5h(10, entity.nfb_1);
  };
  protoOf(HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1).p5f = function (stmt, entity) {
    return this.tfb(stmt, entity instanceof Holiday ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$276(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.cfc_1 = _this__u8e3s4;
    this.dfc_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$276).ud = function () {
    var 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.cfc_1.qfb_1.w5g(this.dfc_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.pfb_1 = _db;
    var tmp = this;
    tmp.qfb_1 = new HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1(this);
  }
  protoOf(HolidayDao_JdbcImpl).ofb = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$276(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(HolidayDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.ofb(entity instanceof Holiday ? entity : THROW_CCE(), $completion);
  };
  function HolidayDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.mfc_1 = this$0;
    this.nfc_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(HolidayDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(HolidayDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.mfc_1.qfc_1.insertAsync(this.nfc_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).l78 = function (completion) {
    return new HolidayDao_Repo$insertAsync$slambda(this.mfc_1, this.nfc_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$278(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.cfd_1 = _this__u8e3s4;
    this.dfd_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 = withRepoChangeMonitorAsync(this.cfd_1.pfc_1, 'Holiday', HolidayDao_Repo$insertAsync$slambda_0(this.cfd_1, this.dfd_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.ofc_1 = _db;
    this.pfc_1 = _repo;
    this.qfc_1 = _dao;
    this.rfc_1 = _httpClient;
    this.sfc_1 = _clientId;
    this.tfc_1 = _endpoint;
  }
  protoOf(HolidayDao_Repo).ofb = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$278(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(HolidayDao_Repo).insertAsync = function (entity, $completion) {
    return this.ofb(entity instanceof Holiday ? entity : THROW_CCE(), $completion);
  };
  function LanguageDao() {
  }
  function $insertAsyncCOROUTINE$280(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.mfd_1 = _this__u8e3s4;
    this.nfd_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$280).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.ofd_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.mfd_1.qfd_1));
            if (this.nfd_1.ocn_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.ofd_1.o62(13, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.pfd_1 = suspendResult;
            this.nfd_1.ocn_1 = this.pfd_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.nfd_1.ycn_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.mfd_1.rfd_1.insertAsync(this.nfd_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.nfd_1.ocn_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.qfd_1 = _db;
    this.rfd_1 = _dao;
  }
  protoOf(LanguageDao_DoorWrapper).sfd = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$280(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LanguageDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.sfd(entity instanceof Language ? entity : THROW_CCE(), $completion);
  };
  function LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.tfd_1);
  }
  protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1).u5g = 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).yfd = function (stmt, entity) {
    if (entity.ocn_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.ocn_1);
    }
    stmt.y5h(2, entity.pcn_1);
    stmt.y5h(3, entity.qcn_1);
    stmt.y5h(4, entity.rcn_1);
    stmt.y5h(5, entity.scn_1);
    stmt.y5h(6, entity.tcn_1);
    stmt.i5h(7, entity.ucn_1);
    stmt.v5h(8, entity.vcn_1);
    stmt.v5h(9, entity.wcn_1);
    stmt.u5h(10, entity.xcn_1);
    stmt.v5h(11, entity.ycn_1);
  };
  protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1).p5f = function (stmt, entity) {
    return this.yfd(stmt, entity instanceof Language ? entity : THROW_CCE());
  };
  function LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.tfd_1);
  }
  protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1).u5g = 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).yfd = function (stmt, entity) {
    if (entity.ocn_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.ocn_1);
    }
    stmt.y5h(2, entity.pcn_1);
    stmt.y5h(3, entity.qcn_1);
    stmt.y5h(4, entity.rcn_1);
    stmt.y5h(5, entity.scn_1);
    stmt.y5h(6, entity.tcn_1);
    stmt.i5h(7, entity.ucn_1);
    stmt.v5h(8, entity.vcn_1);
    stmt.v5h(9, entity.wcn_1);
    stmt.u5h(10, entity.xcn_1);
    stmt.v5h(11, entity.ycn_1);
  };
  protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1).p5f = function (stmt, entity) {
    return this.yfd(stmt, entity instanceof Language ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$281(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.jfe_1 = _this__u8e3s4;
    this.kfe_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$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.jfe_1.ufd_1.w5g(this.kfe_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.tfd_1 = _db;
    var tmp = this;
    tmp.ufd_1 = new LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1(this);
    var tmp_0 = this;
    tmp_0.vfd_1 = new LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1(this);
  }
  protoOf(LanguageDao_JdbcImpl).sfd = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$281(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LanguageDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.sfd(entity instanceof Language ? entity : THROW_CCE(), $completion);
  };
  function LanguageDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.tfe_1 = this$0;
    this.ufe_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(LanguageDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LanguageDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.tfe_1.xfe_1.insertAsync(this.ufe_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).l78 = function (completion) {
    return new LanguageDao_Repo$insertAsync$slambda(this.tfe_1, this.ufe_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$287(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.jff_1 = _this__u8e3s4;
    this.kff_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$287).ud = function () {
    var 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.jff_1.wfe_1, 'Language', LanguageDao_Repo$insertAsync$slambda_0(this.jff_1, this.kff_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.vfe_1 = _db;
    this.wfe_1 = _repo;
    this.xfe_1 = _dao;
    this.yfe_1 = _httpClient;
    this.zfe_1 = _clientId;
    this.aff_1 = _endpoint;
  }
  protoOf(LanguageDao_Repo).sfd = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$287(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LanguageDao_Repo).insertAsync = function (entity, $completion) {
    return this.sfd(entity instanceof Language ? entity : THROW_CCE(), $completion);
  };
  function LanguageVariantDao() {
  }
  function $insertAsyncCOROUTINE$288(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.tff_1 = _this__u8e3s4;
    this.uff_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$288).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.vff_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.tff_1.xff_1));
            if (this.uff_1.zff_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.vff_1.o62(10, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.wff_1 = suspendResult;
            this.uff_1.zff_1 = this.wff_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.uff_1.gfg_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.tff_1.yff_1.insertAsync(this.uff_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.uff_1.zff_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.xff_1 = _db;
    this.yff_1 = _dao;
  }
  protoOf(LanguageVariantDao_DoorWrapper).hfg = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$288(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LanguageVariantDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.hfg(entity instanceof LanguageVariant ? entity : THROW_CCE(), $completion);
  };
  function LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ifg_1);
  }
  protoOf(LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO LanguageVariant (langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1).mfg = function (stmt, entity) {
    if (entity.zff_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.zff_1);
    }
    stmt.v5h(2, entity.afg_1);
    stmt.y5h(3, entity.bfg_1);
    stmt.y5h(4, entity.cfg_1);
    stmt.v5h(5, entity.dfg_1);
    stmt.v5h(6, entity.efg_1);
    stmt.u5h(7, entity.ffg_1);
    stmt.v5h(8, entity.gfg_1);
  };
  protoOf(LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1).p5f = function (stmt, entity) {
    return this.mfg(stmt, entity instanceof LanguageVariant ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$289(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vfg_1 = _this__u8e3s4;
    this.wfg_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$289).ud = function () {
    var 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.vfg_1.jfg_1.w5g(this.wfg_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.ifg_1 = _db;
    var tmp = this;
    tmp.jfg_1 = new LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1(this);
  }
  protoOf(LanguageVariantDao_JdbcImpl).hfg = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$289(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LanguageVariantDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.hfg(entity instanceof LanguageVariant ? entity : THROW_CCE(), $completion);
  };
  function LanguageVariantDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.ffh_1 = this$0;
    this.gfh_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(LanguageVariantDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LanguageVariantDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.ffh_1.jfh_1.insertAsync(this.gfh_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).l78 = function (completion) {
    return new LanguageVariantDao_Repo$insertAsync$slambda(this.ffh_1, this.gfh_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$290(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vfh_1 = _this__u8e3s4;
    this.wfh_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$290).ud = function () {
    var 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.vfh_1.ifh_1, 'LanguageVariant', LanguageVariantDao_Repo$insertAsync$slambda_0(this.vfh_1, this.wfh_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.hfh_1 = _db;
    this.ifh_1 = _repo;
    this.jfh_1 = _dao;
    this.kfh_1 = _httpClient;
    this.lfh_1 = _clientId;
    this.mfh_1 = _endpoint;
  }
  protoOf(LanguageVariantDao_Repo).hfg = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$290(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LanguageVariantDao_Repo).insertAsync = function (entity, $completion) {
    return this.hfg(entity instanceof LanguageVariant ? entity : THROW_CCE(), $completion);
  };
  function LeavingReasonDao() {
  }
  function $insertAsyncCOROUTINE$292(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.gfi_1 = _this__u8e3s4;
    this.hfi_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$292).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.ifi_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.gfi_1.kfi_1));
            if (this.hfi_1.t94_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.ifi_1.o62(410, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.jfi_1 = suspendResult;
            this.hfi_1.t94_1 = this.jfi_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.hfi_1.y94_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.gfi_1.lfi_1.insertAsync(this.hfi_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.hfi_1.t94_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.kfi_1 = _db;
    this.lfi_1 = _dao;
  }
  protoOf(LeavingReasonDao_DoorWrapper).xfh = function (uid, $completion) {
    return this.lfi_1.xfh(uid, $completion);
  };
  protoOf(LeavingReasonDao_DoorWrapper).mfi = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$292(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LeavingReasonDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.mfi(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.y5m('leavingReasonUid');
      var _tmp_leavingReasonTitle = $_result.rz('leavingReasonTitle');
      var _tmp_leavingReasonMCSN = $_result.y5m('leavingReasonMCSN');
      var _tmp_leavingReasonCSN = $_result.y5m('leavingReasonCSN');
      var _tmp_leavingReasonLCB = $_result.x5m('leavingReasonLCB');
      var _tmp_leavingReasonLct = $_result.y5m('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.t94_1 = _tmp_leavingReasonUid;
      this_0.u94_1 = _tmp_leavingReasonTitle;
      this_0.v94_1 = _tmp_leavingReasonMCSN;
      this_0.w94_1 = _tmp_leavingReasonCSN;
      this_0.x94_1 = _tmp_leavingReasonLCB;
      this_0.y94_1 = _tmp_leavingReasonLct;
      return this_0;
    };
  }
  function LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.nfi_1);
  }
  protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO LeavingReason (leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1).sfi = function (stmt, entity) {
    if (entity.t94_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.t94_1);
    }
    stmt.y5h(2, entity.u94_1);
    stmt.v5h(3, entity.v94_1);
    stmt.v5h(4, entity.w94_1);
    stmt.u5h(5, entity.x94_1);
    stmt.v5h(6, entity.y94_1);
  };
  protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1).p5f = function (stmt, entity) {
    return this.sfi(stmt, entity instanceof LeavingReason ? entity : THROW_CCE());
  };
  function LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.nfi_1);
  }
  protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO LeavingReason (leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1).sfi = function (stmt, entity) {
    if (entity.t94_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.t94_1);
    }
    stmt.y5h(2, entity.u94_1);
    stmt.v5h(3, entity.v94_1);
    stmt.v5h(4, entity.w94_1);
    stmt.u5h(5, entity.x94_1);
    stmt.v5h(6, entity.y94_1);
  };
  protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1).p5f = function (stmt, entity) {
    return this.sfi(stmt, entity instanceof LeavingReason ? entity : THROW_CCE());
  };
  function LeavingReasonDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) {
    this.dfj_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(LeavingReasonDao_JdbcImpl$findByUidAsync$slambda).ffj = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ffj((!(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.efj_1.v5h(1, this.dfj_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.efj_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).m5f = function (_stmt, completion) {
    var i = new LeavingReasonDao_JdbcImpl$findByUidAsync$slambda(this.dfj_1, completion);
    i.efj_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.ffj(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$293(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ofj_1 = _this__u8e3s4;
    this.pfj_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 = 2;
            this.hd_1 = 1;
            suspendResult = this.ofj_1.pfi_1.w5g(this.pfj_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.nfi_1 = _db;
    var tmp = this;
    tmp.ofi_1 = new LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1(this);
    var tmp_0 = this;
    tmp_0.pfi_1 = new LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1(this);
  }
  protoOf(LeavingReasonDao_JdbcImpl).mfi = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$293(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LeavingReasonDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.mfi(entity instanceof LeavingReason ? entity : THROW_CCE(), $completion);
  };
  protoOf(LeavingReasonDao_JdbcImpl).xfh = 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.nfi_1, tmp, LeavingReasonDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion);
  };
  function LeavingReasonDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.yfj_1 = this$0;
    this.zfj_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(LeavingReasonDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LeavingReasonDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.yfj_1.cfk_1.insertAsync(this.zfj_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).l78 = function (completion) {
    return new LeavingReasonDao_Repo$insertAsync$slambda(this.yfj_1, this.zfj_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByUidAsyncCOROUTINE$296(_this__u8e3s4, uid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ofk_1 = _this__u8e3s4;
    this.pfk_1 = uid;
  }
  protoOf($findByUidAsyncCOROUTINE$296).ud = function () {
    var 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.ofk_1.cfk_1.xfh(this.pfk_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$300(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.yfk_1 = _this__u8e3s4;
    this.zfk_1 = entity;
  }
  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.yfk_1.bfk_1, 'LeavingReason', LeavingReasonDao_Repo$insertAsync$slambda_0(this.yfk_1, this.zfk_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.afk_1 = _db;
    this.bfk_1 = _repo;
    this.cfk_1 = _dao;
    this.dfk_1 = _httpClient;
    this.efk_1 = _clientId;
    this.ffk_1 = _endpoint;
  }
  protoOf(LeavingReasonDao_Repo).xfh = function (uid, $completion) {
    var tmp = new $findByUidAsyncCOROUTINE$296(this, uid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LeavingReasonDao_Repo).mfi = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$300(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(LeavingReasonDao_Repo).insertAsync = function (entity, $completion) {
    return this.mfi(entity instanceof LeavingReason ? entity : THROW_CCE(), $completion);
  };
  function MessageDao() {
  }
  function $insertCOROUTINE$301(_this__u8e3s4, message, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.lfl_1 = _this__u8e3s4;
    this.mfl_1 = message;
  }
  protoOf($insertCOROUTINE$301).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.nfl_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.lfl_1.pfl_1));
            if (this.mfl_1.rfl_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.nfl_1.o62(126, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.ofl_1 = suspendResult;
            this.mfl_1.rfl_1 = this.ofl_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.mfl_1.wfl_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.lfl_1.qfl_1.cfl(this.mfl_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.pfl_1 = _db;
    this.qfl_1 = _dao;
  }
  protoOf(MessageDao_DoorWrapper).afl = function (accountPersonUid, otherPersonUid) {
    return this.qfl_1.afl(accountPersonUid, otherPersonUid);
  };
  protoOf(MessageDao_DoorWrapper).bfl = function (searchQuery, accountPersonUid) {
    return this.qfl_1.bfl(searchQuery, accountPersonUid);
  };
  protoOf(MessageDao_DoorWrapper).cfl = function (message, $completion) {
    var tmp = new $insertCOROUTINE$301(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.y5m('messageUid');
      var _tmp_messageSenderPersonUid = $_result.y5m('messageSenderPersonUid');
      var _tmp_messageToPersonUid = $_result.y5m('messageToPersonUid');
      var _tmp_messageText = $_result.rz('messageText');
      var _tmp_messageTimestamp = $_result.y5m('messageTimestamp');
      var _tmp_messageLct = $_result.y5m('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.rfl_1 = _tmp_messageUid;
      this_0.sfl_1 = _tmp_messageSenderPersonUid;
      this_0.tfl_1 = _tmp_messageToPersonUid;
      this_0.ufl_1 = _tmp_messageText;
      this_0.vfl_1 = _tmp_messageTimestamp;
      this_0.wfl_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.m5s(1);
    };
  }
  function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda($accountPersonUid, $otherPersonUid, $_limit, $_offset, resultContinuation) {
    this.ffm_1 = $accountPersonUid;
    this.gfm_1 = $otherPersonUid;
    this.hfm_1 = $_limit;
    this.ifm_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda).kfm = function (_stmt, $completion) {
    var tmp = this.m5f(_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.kfm((!(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.jfm_1.v5h(1, this.ffm_1);
            this.jfm_1.v5h(2, this.gfm_1);
            this.jfm_1.v5h(3, this.gfm_1);
            this.jfm_1.v5h(4, this.ffm_1);
            this.jfm_1.u5h(5, this.hfm_1);
            this.jfm_1.u5h(6, this.ifm_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.jfm_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).m5f = function (_stmt, completion) {
    var i = new MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda(this.ffm_1, this.gfm_1, this.hfm_1, this.ifm_1, completion);
    i.jfm_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.kfm(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda($accountPersonUid, $otherPersonUid, resultContinuation) {
    this.tfm_1 = $accountPersonUid;
    this.ufm_1 = $otherPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.vfm_1.v5h(1, this.tfm_1);
            this.vfm_1.v5h(2, this.ufm_1);
            this.vfm_1.v5h(3, this.ufm_1);
            this.vfm_1.v5h(4, this.tfm_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.vfm_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).m5f = function (_stmt, completion) {
    var i = new MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda(this.tfm_1, this.ufm_1, completion);
    i.vfm_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.j6j(_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.y5m('messageUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_messageSenderPersonUid = $_result.y5m('messageSenderPersonUid');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_messageToPersonUid = $_result.y5m('messageToPersonUid');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_messageText = $_result.rz('messageText');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_messageTimestamp = $_result.y5m('messageTimestamp');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_messageLct = $_result.y5m('messageLct');
      var tmp_4;
      if ($_result.q67()) {
        _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.y5m('personUid');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_gender = $_result.x5m('gender');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_active = $_result.j66('active');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_isPersonalAccount = $_result.j66('isPersonalAccount');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.y5m('dateOfBirth');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.y5m('personGroupUid');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_personLct = $_result.y5m('personLct');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_personType = $_result.x5m('personType');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.y5m('personMasterChangeSeqNum');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.y5m('personLocalChangeSeqNum');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.x5m('personLastChangedBy');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_admin = $_result.j66('admin');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 25;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.y5m('personPictureUid');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.y5m('personPictureLct');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_fileSize = $_result.x5m('fileSize');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.j66('personPictureActive');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_35 = 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_36 = 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.rfl_1 = _tmp_messageUid;
        this_1.sfl_1 = _tmp_messageSenderPersonUid;
        this_1.tfl_1 = _tmp_messageToPersonUid;
        this_1.ufl_1 = _tmp_messageText;
        this_1.vfl_1 = _tmp_messageTimestamp;
        this_1.wfl_1 = _tmp_messageLct;
        tmp_36.wfm_1 = this_1;
      }
      if (!_tmp_Person_isAllNull) {
        var tmp_37 = 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.f96_1 = _tmp_personUid;
        this_2.g96_1 = _tmp_username;
        this_2.h96_1 = _tmp_firstNames;
        this_2.i96_1 = _tmp_lastName;
        this_2.j96_1 = _tmp_emailAddr;
        this_2.k96_1 = _tmp_phoneNum;
        this_2.l96_1 = _tmp_gender;
        this_2.m96_1 = _tmp_active;
        this_2.n96_1 = _tmp_isPersonalAccount;
        this_2.o96_1 = _tmp_dateOfBirth;
        this_2.p96_1 = _tmp_personAddress;
        this_2.q96_1 = _tmp_personOrgId;
        this_2.r96_1 = _tmp_personGroupUid;
        this_2.s96_1 = _tmp_personLct;
        this_2.t96_1 = _tmp_personCountry;
        this_2.u96_1 = _tmp_personType;
        this_2.v96_1 = _tmp_personMasterChangeSeqNum;
        this_2.w96_1 = _tmp_personLocalChangeSeqNum;
        this_2.x96_1 = _tmp_personLastChangedBy;
        this_2.y96_1 = _tmp_admin;
        this_2.z96_1 = _tmp_personNotes;
        this_2.a97_1 = _tmp_fatherName;
        this_2.b97_1 = _tmp_fatherNumber;
        this_2.c97_1 = _tmp_motherName;
        this_2.d97_1 = _tmp_motherNum;
        tmp_37.xfm_1 = this_2;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_38 = 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.e97_1 = _tmp_personPictureUid;
        this_3.f97_1 = _tmp_personPictureLct;
        this_3.g97_1 = _tmp_personPictureUri;
        this_3.h97_1 = _tmp_personPictureThumbnailUri;
        this_3.i97_1 = _tmp_fileSize;
        this_3.j97_1 = _tmp_personPictureActive;
        tmp_38.yfm_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.m5s(1);
    };
  }
  function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda($accountPersonUid, $searchQuery, $_limit, $_offset, resultContinuation) {
    this.hfn_1 = $accountPersonUid;
    this.ifn_1 = $searchQuery;
    this.jfn_1 = $_limit;
    this.kfn_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda).mfn = function (_stmt, $completion) {
    var tmp = this.m5f(_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.mfn((!(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.lfn_1.v5h(1, this.hfn_1);
            this.lfn_1.v5h(2, this.hfn_1);
            this.lfn_1.y5h(3, this.ifn_1);
            this.lfn_1.y5h(4, this.ifn_1);
            this.lfn_1.u5h(5, this.jfn_1);
            this.lfn_1.u5h(6, this.kfn_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.lfn_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).m5f = function (_stmt, completion) {
    var i = new MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda(this.hfn_1, this.ifn_1, this.jfn_1, this.kfn_1, completion);
    i.lfn_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.mfn(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda($accountPersonUid, $searchQuery, resultContinuation) {
    this.vfn_1 = $accountPersonUid;
    this.wfn_1 = $searchQuery;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.xfn_1.v5h(1, this.vfn_1);
            this.xfn_1.v5h(2, this.vfn_1);
            this.xfn_1.y5h(3, this.wfn_1);
            this.xfn_1.y5h(4, this.wfn_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.xfn_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).m5f = function (_stmt, completion) {
    var i = new MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda(this.vfn_1, this.wfn_1, completion);
    i.xfn_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function MessageDao_JdbcImpl$_insertAdapterMessage_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.yfn_1);
  }
  protoOf(MessageDao_JdbcImpl$_insertAdapterMessage_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO Message (messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(MessageDao_JdbcImpl$_insertAdapterMessage_abort$1).cfo = function (stmt, entity) {
    if (entity.rfl_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.rfl_1);
    }
    stmt.v5h(2, entity.sfl_1);
    stmt.v5h(3, entity.tfl_1);
    stmt.y5h(4, entity.ufl_1);
    stmt.v5h(5, entity.vfl_1);
    stmt.v5h(6, entity.wfl_1);
  };
  protoOf(MessageDao_JdbcImpl$_insertAdapterMessage_abort$1).p5f = function (stmt, entity) {
    return this.cfo(stmt, entity instanceof Message ? entity : THROW_CCE());
  };
  function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1(this$0, $accountPersonUid, $otherPersonUid) {
    this.jfo_1 = this$0;
    this.kfo_1 = $accountPersonUid;
    this.lfo_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.yfn_1, tmp$ret$2);
  }
  protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1).mfo = 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.jfo_1.yfn_1, tmp, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda_0(this.kfo_1, this.lfo_1, _limit, _offset, null), $completion);
  };
  protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1).w5p = function (_limit, _offset, $completion) {
    return this.mfo(_limit, _offset, $completion);
  };
  protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1).q5r = 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.jfo_1.yfn_1, tmp, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda_0(this.kfo_1, this.lfo_1, null), $completion);
  };
  function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1(this$0, $accountPersonUid, $searchQuery) {
    this.tfo_1 = this$0;
    this.ufo_1 = $accountPersonUid;
    this.vfo_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.yfn_1, tmp$ret$2);
  }
  protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1).wfo = 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.tfo_1.yfn_1, tmp, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda_0(this.ufo_1, this.vfo_1, _limit, _offset, null), $completion);
  };
  protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1).w5p = function (_limit, _offset, $completion) {
    return this.wfo(_limit, _offset, $completion);
  };
  protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1).q5r = 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.tfo_1.yfn_1, tmp, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda_0(this.ufo_1, this.vfo_1, null), $completion);
  };
  function MessageDao_JdbcImpl(_db) {
    MessageDao.call(this);
    this.yfn_1 = _db;
    var tmp = this;
    tmp.zfn_1 = new MessageDao_JdbcImpl$_insertAdapterMessage_abort$1(this);
  }
  protoOf(MessageDao_JdbcImpl).cfl = function (message, $completion) {
    return this.zfn_1.v5g(message, $completion);
  };
  protoOf(MessageDao_JdbcImpl).afl = function (accountPersonUid, otherPersonUid) {
    return new MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1(this, accountPersonUid, otherPersonUid);
  };
  protoOf(MessageDao_JdbcImpl).bfl = 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.ffp_1 = this$0;
    this.gfp_1 = $accountPersonUid;
    this.hfp_1 = $otherPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_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.h86(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.kfp_1 = this.ffp_1.tfp_1;
            var tmp_1 = this;
            tmp_1.lfp_1 = 'MessageDao/messagesFromOtherUserAsPagingSource';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.mfp_1 = this.ffp_1.vfp_1;
            var tmp_3 = this;
            tmp_3.nfp_1 = this.mfp_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ffp_1.tfp_1.j39(), 'MessageDao/messagesFromOtherUserAsPagingSource');
            doorNodeIdHeader(this_0, this.ffp_1.tfp_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.ffp_1.tfp_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.gfp_1));
            parameter(this_0, 'otherPersonUid', this.ffp_1.tfp_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.hfp_1));
            pagingSourceLoadParameters(this_0, this.ffp_1.tfp_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.ifp_1);
            tmp_4.ofp_1 = this_0;
            this.ofp_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.pfp_1 = this.nfp_1;
            var tmp_6 = this;
            tmp_6.qfp_1 = this.ofp_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.qfp_1, this.pfp_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.rfp_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ffp_1.sfp_1, this.rfp_1, this.ffp_1.tfp_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.jfp_1 = endOfPaginationReached(this.rfp_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().d5e(e, 'DoorLog', MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda$lambda(this.kfp_1, this.lfp_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.jfp_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).i86 = function (_pagingParams, completion) {
    var i = new MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda(this.ffp_1, this.gfp_1, this.hfp_1, completion);
    i.ifp_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.h86(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function MessageDao_Repo$conversationsForUserAsPagingSource$slambda(this$0, $searchQuery, $accountPersonUid, resultContinuation) {
    this.gfq_1 = this$0;
    this.hfq_1 = $searchQuery;
    this.ifq_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(MessageDao_Repo$conversationsForUserAsPagingSource$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_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.h86(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.lfq_1 = this.gfq_1.tfp_1;
            var tmp_1 = this;
            tmp_1.mfq_1 = 'MessageDao/conversationsForUserAsPagingSource';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.nfq_1 = this.gfq_1.vfp_1;
            var tmp_3 = this;
            tmp_3.ofq_1 = this.nfq_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.gfq_1.tfp_1.j39(), 'MessageDao/conversationsForUserAsPagingSource');
            doorNodeIdHeader(this_0, this.gfq_1.tfp_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'searchQuery', this.gfq_1.tfp_1.j39().x65_1.r45(serializer_0(StringCompanionObject_instance), this.hfq_1));
            parameter(this_0, 'accountPersonUid', this.gfq_1.tfp_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ifq_1));
            pagingSourceLoadParameters(this_0, this.gfq_1.tfp_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.jfq_1);
            tmp_4.pfq_1 = this_0;
            this.pfq_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.qfq_1 = this.ofq_1;
            var tmp_6 = this;
            tmp_6.rfq_1 = this.pfq_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.rfq_1, this.qfq_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.sfq_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.gfq_1.sfp_1, this.sfq_1, this.gfq_1.tfp_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.kfq_1 = endOfPaginationReached(this.sfq_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().d5e(e, 'DoorLog', MessageDao_Repo$conversationsForUserAsPagingSource$slambda$lambda(this.lfq_1, this.mfq_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.kfq_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).i86 = function (_pagingParams, completion) {
    var i = new MessageDao_Repo$conversationsForUserAsPagingSource$slambda(this.gfq_1, this.hfq_1, this.ifq_1, completion);
    i.jfq_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.h86(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function MessageDao_Repo$insert$slambda(this$0, $message, resultContinuation) {
    this.bfr_1 = this$0;
    this.cfr_1 = $message;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(MessageDao_Repo$insert$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(MessageDao_Repo$insert$slambda).m78 = function ($completion) {
    return this.j87($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.bfr_1.ufp_1.cfl(this.cfr_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).l78 = function (completion) {
    return new MessageDao_Repo$insert$slambda(this.bfr_1, this.cfr_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function MessageDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    MessageDao.call(this);
    this.sfp_1 = _db;
    this.tfp_1 = _repo;
    this.ufp_1 = _dao;
    this.vfp_1 = _httpClient;
    this.wfp_1 = _clientId;
    this.xfp_1 = _endpoint;
  }
  protoOf(MessageDao_Repo).afl = function (accountPersonUid, otherPersonUid) {
    var tmp = this.ufp_1.afl(accountPersonUid, otherPersonUid);
    return new DoorRepositoryReplicatePullPagingSource(this.tfp_1, 'MessageDao/messagesFromOtherUserAsPagingSource', tmp, MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda_0(this, accountPersonUid, otherPersonUid, null));
  };
  protoOf(MessageDao_Repo).bfl = function (searchQuery, accountPersonUid) {
    var tmp = this.ufp_1.bfl(searchQuery, accountPersonUid);
    return new DoorRepositoryReplicatePullPagingSource(this.tfp_1, 'MessageDao/conversationsForUserAsPagingSource', tmp, MessageDao_Repo$conversationsForUserAsPagingSource$slambda_0(this, searchQuery, accountPersonUid, null));
  };
  protoOf(MessageDao_Repo).cfl = function (message, $completion) {
    return withRepoChangeMonitorAsync(this.tfp_1, 'Message', MessageDao_Repo$insert$slambda_0(this, message, null), $completion);
  };
  function OfflineItemDao() {
  }
  function OfflineItemDao_DoorWrapper(_db, _dao) {
    OfflineItemDao.call(this);
    this.efr_1 = _db;
    this.ffr_1 = _dao;
  }
  protoOf(OfflineItemDao_DoorWrapper).dfr = function (contentEntryUid, nodeId) {
    return this.ffr_1.dfr(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.j66('readyForOffline');
      var _tmp_OfflineItem_nullCount = 0;
      var _tmp_oiUid = $_result.y5m('oiUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_oiNodeId = $_result.y5m('oiNodeId');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_oiClazzUid = $_result.y5m('oiClazzUid');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_oiCourseBlockUid = $_result.y5m('oiCourseBlockUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_oiContentEntryUid = $_result.y5m('oiContentEntryUid');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_oiActive = $_result.j66('oiActive');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_oiLct = $_result.y5m('oiLct');
      var tmp_5;
      if ($_result.q67()) {
        _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.y5m('totalSize');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_TransferJobAndTotals_nullCount = _tmp_TransferJobAndTotals_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_transferred = $_result.y5m('transferred');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_TransferJobAndTotals_nullCount = _tmp_TransferJobAndTotals_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_latestErrorStr = $_result.rz('latestErrorStr');
      var tmp_8;
      if ($_result.q67()) {
        _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.x5m('tjUid');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_tjType = $_result.x5m('tjType');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_tjStatus = $_result.x5m('tjStatus');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_tjName = $_result.rz('tjName');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_tjUuid = $_result.rz('tjUuid');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_tjTableId = $_result.x5m('tjTableId');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_tjEntityUid = $_result.y5m('tjEntityUid');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_tjTimeCreated = $_result.y5m('tjTimeCreated');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_tjCreationType = $_result.x5m('tjCreationType');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_tjOiUid = $_result.y5m('tjOiUid');
      var tmp_18;
      if ($_result.q67()) {
        _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.ifr_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.jfr_1 = _tmp_oiUid;
        this_1.kfr_1 = _tmp_oiNodeId;
        this_1.lfr_1 = _tmp_oiClazzUid;
        this_1.mfr_1 = _tmp_oiCourseBlockUid;
        this_1.nfr_1 = _tmp_oiContentEntryUid;
        this_1.ofr_1 = _tmp_oiActive;
        this_1.pfr_1 = _tmp_oiLct;
        tmp_19.gfr_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.rfr_1 = _tmp_totalSize;
        this_2.sfr_1 = _tmp_transferred;
        this_2.tfr_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.ufr_1 = _tmp_tjUid;
          this_3.vfr_1 = _tmp_tjType;
          this_3.wfr_1 = _tmp_tjStatus;
          this_3.xfr_1 = _tmp_tjName;
          this_3.yfr_1 = _tmp_tjUuid;
          this_3.zfr_1 = _tmp_tjTableId;
          this_3.afs_1 = _tmp_tjEntityUid;
          this_3.bfs_1 = _tmp_tjTimeCreated;
          this_3.cfs_1 = _tmp_tjCreationType;
          this_3.dfs_1 = _tmp_tjOiUid;
          tmp_21.qfr_1 = this_3;
        }
        tmp_20.hfr_1 = this_2;
      }
      return this_0;
    };
  }
  function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda($contentEntryUid, $nodeId, resultContinuation) {
    this.mfs_1 = $contentEntryUid;
    this.nfs_1 = $nodeId;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda).pfs = function (_stmt, $completion) {
    var tmp = this.m5f(_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.pfs((!(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.ofs_1.v5h(1, this.mfs_1);
            this.ofs_1.v5h(2, this.mfs_1);
            this.ofs_1.v5h(3, this.nfs_1);
            this.ofs_1.v5h(4, this.mfs_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ofs_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).m5f = function (_stmt, completion) {
    var i = new OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda(this.mfs_1, this.nfs_1, completion);
    i.ofs_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.pfs(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.qfs_1);
  }
  protoOf(OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO OfflineItem (oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1).ufs = function (stmt, entity) {
    if (entity.jfr_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.jfr_1);
    }
    stmt.v5h(2, entity.kfr_1);
    stmt.v5h(3, entity.lfr_1);
    stmt.v5h(4, entity.mfr_1);
    stmt.v5h(5, entity.nfr_1);
    stmt.i5h(6, entity.ofr_1);
    stmt.v5h(7, entity.pfr_1);
  };
  protoOf(OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1).p5f = function (stmt, entity) {
    return this.ufs(stmt, entity instanceof OfflineItem ? entity : THROW_CCE());
  };
  function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda(this$0, $contentEntryUid, $nodeId, resultContinuation) {
    this.dft_1 = this$0;
    this.eft_1 = $contentEntryUid;
    this.fft_1 = $nodeId;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda).gft = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda).m78 = function ($completion) {
    return this.gft($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.dft_1.qfs_1, tmp_0, OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda_0(this.eft_1, this.fft_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).l78 = function (completion) {
    return new OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda(this.dft_1, this.eft_1, this.fft_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.gft($completion);
    };
    l.$arity = 0;
    return l;
  }
  function OfflineItemDao_JdbcImpl(_db) {
    OfflineItemDao.call(this);
    this.qfs_1 = _db;
    var tmp = this;
    tmp.rfs_1 = new OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1(this);
  }
  protoOf(OfflineItemDao_JdbcImpl).dfr = 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.qfs_1, tmp, OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda_0(this, contentEntryUid, nodeId, null));
  };
  function OfflineItemDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    OfflineItemDao.call(this);
    this.hft_1 = _db;
    this.ift_1 = _repo;
    this.jft_1 = _dao;
    this.kft_1 = _httpClient;
    this.lft_1 = _clientId;
    this.mft_1 = _endpoint;
  }
  protoOf(OfflineItemDao_Repo).dfr = function (contentEntryUid, nodeId) {
    var _result = this.jft_1.dfr(contentEntryUid, nodeId);
    return _result;
  };
  function OutgoingReplicationDao() {
  }
  function OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.nft_1);
  }
  protoOf(OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO OutgoingReplication (destNodeId, orPk1, orPk2, orPk3, orPk4, orTableId, orUid) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1).rft = function (stmt, entity) {
    stmt.v5h(1, entity.t64_1);
    stmt.v5h(2, entity.v64_1);
    stmt.v5h(3, entity.w64_1);
    stmt.v5h(4, entity.x64_1);
    stmt.v5h(5, entity.y64_1);
    stmt.u5h(6, entity.u64_1);
    if (entity.s64_1.equals(new Long(0, 0))) {
      stmt.a5i(7, null);
    } else {
      stmt.v5h(7, entity.s64_1);
    }
  };
  protoOf(OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1).p5f = function (stmt, entity) {
    return this.rft(stmt, entity instanceof OutgoingReplication ? entity : THROW_CCE());
  };
  function OutgoingReplicationDao_JdbcImpl(_db) {
    OutgoingReplicationDao.call(this);
    this.nft_1 = _db;
    var tmp = this;
    tmp.oft_1 = new OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1(this);
  }
  function PeerReviewerAllocationDao() {
  }
  function $upsertListCOROUTINE$307(_this__u8e3s4, entityList, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.cfu_1 = _this__u8e3s4;
    this.dfu_1 = entityList;
  }
  protoOf($upsertListCOROUTINE$307).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.efu_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.cfu_1.lfu_1));
            var tmp_0 = this;
            tmp_0.ffu_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.gfu_1 = this.dfu_1.w();
            var tmp_2 = this;
            tmp_2.hfu_1 = this.gfu_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.hfu_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.ifu_1 = this.hfu_1.e();
            var tmp_3 = this;
            tmp_3.jfu_1 = this.ifu_1;
            if (this.jfu_1.nfu_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.efu_1.o62(140, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.kfu_1 = suspendResult;
            this.jfu_1.nfu_1 = this.kfu_1;
            var this_0 = this.ffu_1;
            var element = this.kfu_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.jfu_1.sfu_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.cfu_1.mfu_1.tft(this.dfu_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$308(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.bfv_1 = _this__u8e3s4;
    this.cfv_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$308).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.dfv_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.bfv_1.lfu_1));
            if (this.cfv_1.nfu_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.dfv_1.o62(140, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.efv_1 = suspendResult;
            this.cfv_1.nfu_1 = this.efv_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.cfv_1.sfu_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.bfv_1.mfu_1.insertAsync(this.cfv_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.cfv_1.nfu_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.lfu_1 = _db;
    this.mfu_1 = _dao;
  }
  protoOf(PeerReviewerAllocationDao_DoorWrapper).sft = function (clazzUid, includeInactive, $completion) {
    return this.mfu_1.sft(clazzUid, includeInactive, $completion);
  };
  protoOf(PeerReviewerAllocationDao_DoorWrapper).jcl = function (cbUid, active, changeTime, $completion) {
    return this.mfu_1.jcl(cbUid, active, changeTime, $completion);
  };
  protoOf(PeerReviewerAllocationDao_DoorWrapper).tft = function (entityList, $completion) {
    var tmp = new $upsertListCOROUTINE$307(this, entityList, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PeerReviewerAllocationDao_DoorWrapper).ffv = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$308(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PeerReviewerAllocationDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.ffv(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.y5m('praUid');
      var _tmp_praMarkerSubmitterUid = $_result.y5m('praMarkerSubmitterUid');
      var _tmp_praToMarkerSubmitterUid = $_result.y5m('praToMarkerSubmitterUid');
      var _tmp_praAssignmentUid = $_result.y5m('praAssignmentUid');
      var _tmp_praActive = $_result.j66('praActive');
      var _tmp_praLct = $_result.y5m('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.nfu_1 = _tmp_praUid;
      this_0.ofu_1 = _tmp_praMarkerSubmitterUid;
      this_0.pfu_1 = _tmp_praToMarkerSubmitterUid;
      this_0.qfu_1 = _tmp_praAssignmentUid;
      this_0.rfu_1 = _tmp_praActive;
      this_0.sfu_1 = _tmp_praLct;
      return this_0;
    };
  }
  function PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.gfv_1);
  }
  protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO PeerReviewerAllocation (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1).lfv = function (stmt, entity) {
    if (entity.nfu_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.nfu_1);
    }
    stmt.v5h(2, entity.ofu_1);
    stmt.v5h(3, entity.pfu_1);
    stmt.v5h(4, entity.qfu_1);
    stmt.i5h(5, entity.rfu_1);
    stmt.v5h(6, entity.sfu_1);
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1).p5f = function (stmt, entity) {
    return this.lfv(stmt, entity instanceof PeerReviewerAllocation ? entity : THROW_CCE());
  };
  function PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.gfv_1);
  }
  protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO PeerReviewerAllocation (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1).lfv = function (stmt, entity) {
    if (entity.nfu_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.nfu_1);
    }
    stmt.v5h(2, entity.ofu_1);
    stmt.v5h(3, entity.pfu_1);
    stmt.v5h(4, entity.qfu_1);
    stmt.i5h(5, entity.rfu_1);
    stmt.v5h(6, entity.sfu_1);
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1).p5f = function (stmt, entity) {
    return this.lfv(stmt, entity instanceof PeerReviewerAllocation ? entity : THROW_CCE());
  };
  function PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda($clazzUid, $includeInactive, resultContinuation) {
    this.wfv_1 = $clazzUid;
    this.xfv_1 = $includeInactive;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda).zfv = function (_stmt, $completion) {
    var tmp = this.m5f(_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.zfv((!(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.yfv_1.v5h(1, this.wfv_1);
            this.yfv_1.i5h(2, this.xfv_1);
            this.yfv_1.i5h(3, this.xfv_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.yfv_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).m5f = function (_stmt, completion) {
    var i = new PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda(this.wfv_1, this.xfv_1, completion);
    i.yfv_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.zfv(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda($active, $changeTime, $cbUid, resultContinuation) {
    this.ifw_1 = $active;
    this.jfw_1 = $changeTime;
    this.kfw_1 = $cbUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.lfw_1.i5h(1, this.ifw_1);
            this.lfw_1.v5h(2, this.jfw_1);
            this.lfw_1.v5h(3, this.kfw_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.lfw_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).m5f = function (_stmt, completion) {
    var i = new PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda(this.ifw_1, this.jfw_1, this.kfw_1, completion);
    i.lfw_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$309(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ufw_1 = _this__u8e3s4;
    this.vfw_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 = 2;
            this.hd_1 = 1;
            suspendResult = this.ufw_1.ifv_1.w5g(this.vfw_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$310(_this__u8e3s4, cbUid, active, changeTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.efx_1 = _this__u8e3s4;
    this.ffx_1 = cbUid;
    this.gfx_1 = active;
    this.hfx_1 = changeTime;
  }
  protoOf($updateActiveByUidCOROUTINE$310).ud = function () {
    var 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.efx_1.gfv_1, tmp_0, PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda_0(this.gfx_1, this.hfx_1, this.ffx_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.gfv_1 = _db;
    var tmp = this;
    tmp.hfv_1 = new PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1(this);
    var tmp_0 = this;
    tmp_0.ifv_1 = new PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1(this);
  }
  protoOf(PeerReviewerAllocationDao_JdbcImpl).tft = function (entityList, $completion) {
    return this.hfv_1.z5g(entityList, $completion);
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl).ffv = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$309(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.ffv(entity instanceof PeerReviewerAllocation ? entity : THROW_CCE(), $completion);
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl).sft = 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.gfv_1, tmp, PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda_0(clazzUid, includeInactive, null), $completion);
  };
  protoOf(PeerReviewerAllocationDao_JdbcImpl).jcl = function (cbUid, active, changeTime, $completion) {
    var tmp = new $updateActiveByUidCOROUTINE$310(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.qfx_1 = this$0;
    this.rfx_1 = $cbUid;
    this.sfx_1 = $active;
    this.tfx_1 = $changeTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda).m78 = function ($completion) {
    return this.j87($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.qfx_1.wfx_1.jcl(this.rfx_1, this.sfx_1, this.tfx_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).l78 = function (completion) {
    return new PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda(this.qfx_1, this.rfx_1, this.sfx_1, this.tfx_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PeerReviewerAllocationDao_Repo$upsertList$slambda(this$0, $entityList, resultContinuation) {
    this.ify_1 = this$0;
    this.jfy_1 = $entityList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PeerReviewerAllocationDao_Repo$upsertList$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PeerReviewerAllocationDao_Repo$upsertList$slambda).m78 = function ($completion) {
    return this.j87($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.ify_1.wfx_1.tft(this.jfy_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).l78 = function (completion) {
    return new PeerReviewerAllocationDao_Repo$upsertList$slambda(this.ify_1, this.jfy_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PeerReviewerAllocationDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.sfy_1 = this$0;
    this.tfy_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PeerReviewerAllocationDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PeerReviewerAllocationDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.sfy_1.wfx_1.insertAsync(this.tfy_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).l78 = function (completion) {
    return new PeerReviewerAllocationDao_Repo$insertAsync$slambda(this.sfy_1, this.tfy_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $getAllPeerReviewerAllocationsByClazzUidCOROUTINE$312(_this__u8e3s4, clazzUid, includeInactive, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.cfz_1 = _this__u8e3s4;
    this.dfz_1 = clazzUid;
    this.efz_1 = includeInactive;
  }
  protoOf($getAllPeerReviewerAllocationsByClazzUidCOROUTINE$312).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.ffz_1 = this.cfz_1.vfx_1;
            var tmp_1 = this;
            tmp_1.gfz_1 = 'PeerReviewerAllocationDao/getAllPeerReviewerAllocationsByClazzUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.hfz_1 = this.cfz_1.xfx_1;
            var tmp_3 = this;
            tmp_3.ifz_1 = this.hfz_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.cfz_1.vfx_1.j39(), 'PeerReviewerAllocationDao/getAllPeerReviewerAllocationsByClazzUid');
            doorNodeIdHeader(this_0, this.cfz_1.vfx_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.cfz_1.vfx_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.dfz_1));
            parameter(this_0, 'includeInactive', this.cfz_1.vfx_1.j39().x65_1.r45(serializer_2(BooleanCompanionObject_instance), this.efz_1));
            tmp_4.jfz_1 = this_0;
            this.jfz_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.kfz_1 = this.ifz_1;
            var tmp_6 = this;
            tmp_6.lfz_1 = this.jfz_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.lfz_1, this.kfz_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.mfz_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.cfz_1.ufx_1, this.mfz_1, this.cfz_1.vfx_1.j39().x65_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.nfz_1 = this.kd_1;
              Napier_getInstance().d5e(this.nfz_1, 'DoorLog', PeerReviewerAllocationDao_Repo$getAllPeerReviewerAllocationsByClazzUid$lambda(this.ffz_1, this.gfz_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.cfz_1.wfx_1.sft(this.dfz_1, this.efz_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$313(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.wfz_1 = _this__u8e3s4;
    this.xfz_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$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.hd_1 = 1;
            suspendResult = withRepoChangeMonitorAsync(this.wfz_1.vfx_1, 'PeerReviewerAllocation', PeerReviewerAllocationDao_Repo$insertAsync$slambda_0(this.wfz_1, this.xfz_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.ufx_1 = _db;
    this.vfx_1 = _repo;
    this.wfx_1 = _dao;
    this.xfx_1 = _httpClient;
    this.yfx_1 = _clientId;
    this.zfx_1 = _endpoint;
  }
  protoOf(PeerReviewerAllocationDao_Repo).sft = function (clazzUid, includeInactive, $completion) {
    var tmp = new $getAllPeerReviewerAllocationsByClazzUidCOROUTINE$312(this, clazzUid, includeInactive, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PeerReviewerAllocationDao_Repo).jcl = function (cbUid, active, changeTime, $completion) {
    return withRepoChangeMonitorAsync(this.vfx_1, 'PeerReviewerAllocation', PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda_0(this, cbUid, active, changeTime, null), $completion);
  };
  protoOf(PeerReviewerAllocationDao_Repo).tft = function (entityList, $completion) {
    return withRepoChangeMonitorAsync(this.vfx_1, 'PeerReviewerAllocation', PeerReviewerAllocationDao_Repo$upsertList$slambda_0(this, entityList, null), $completion);
  };
  protoOf(PeerReviewerAllocationDao_Repo).ffv = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$313(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PeerReviewerAllocationDao_Repo).insertAsync = function (entity, $completion) {
    return this.ffv(entity instanceof PeerReviewerAllocation ? entity : THROW_CCE(), $completion);
  };
  function PersonAuth2Dao() {
  }
  function PersonAuth2Dao_DoorWrapper(_db, _dao) {
    PersonAuth2Dao.call(this);
    this.ag0_1 = _db;
    this.bg0_1 = _dao;
  }
  protoOf(PersonAuth2Dao_DoorWrapper).yfz = function (auth, $completion) {
    auth.ig0_1 = systemTimeInMillis();
    return this.bg0_1.yfz(auth, $completion);
  };
  protoOf(PersonAuth2Dao_DoorWrapper).zfz = function (personUid) {
    return this.bg0_1.zfz(personUid);
  };
  function PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda$slambda$lambda(_result) {
    return mapNextRow(_result, null, PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda$slambda$lambda$lambda(_result));
  }
  function PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_pauthUid = $_result.y5m('pauthUid');
      var _tmp_pauthMechanism = $_result.rz('pauthMechanism');
      var _tmp_pauthAuth = $_result.rz('pauthAuth');
      var _tmp_pauthLcsn = $_result.y5m('pauthLcsn');
      var _tmp_pauthPcsn = $_result.y5m('pauthPcsn');
      var _tmp_pauthLcb = $_result.y5m('pauthLcb');
      var _tmp_pauthLct = $_result.y5m('pauthLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new PersonAuth2();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.PersonAuth2Dao_JdbcImpl.findByPersonUidFlow.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.cg0_1 = _tmp_pauthUid;
      this_0.dg0_1 = _tmp_pauthMechanism;
      this_0.eg0_1 = _tmp_pauthAuth;
      this_0.fg0_1 = _tmp_pauthLcsn;
      this_0.gg0_1 = _tmp_pauthPcsn;
      this_0.hg0_1 = _tmp_pauthLcb;
      this_0.ig0_1 = _tmp_pauthLct;
      return this_0;
    };
  }
  function PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda$slambda($personUid, resultContinuation) {
    this.rg0_1 = $personUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda$slambda).tg0 = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda$slambda).he = function (p1, $completion) {
    return this.tg0((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$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.sg0_1.v5h(1, this.rg0_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.sg0_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$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(PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda$slambda).m5f = function (_stmt, completion) {
    var i = new PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda$slambda(this.rg0_1, completion);
    i.sg0_1 = _stmt;
    return i;
  };
  function PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda$slambda_0($personUid, resultContinuation) {
    var i = new PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda$slambda($personUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.tg0(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ug0_1);
  }
  protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO PersonAuth2 (pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1).zg0 = function (stmt, entity) {
    stmt.v5h(1, entity.cg0_1);
    stmt.y5h(2, entity.dg0_1);
    stmt.y5h(3, entity.eg0_1);
    stmt.v5h(4, entity.fg0_1);
    stmt.v5h(5, entity.gg0_1);
    stmt.v5h(6, entity.hg0_1);
    stmt.v5h(7, entity.ig0_1);
  };
  protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1).p5f = function (stmt, entity) {
    return this.zg0(stmt, entity instanceof PersonAuth2 ? entity : THROW_CCE());
  };
  function PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ug0_1);
  }
  protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO PersonAuth2 (pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1).zg0 = function (stmt, entity) {
    stmt.v5h(1, entity.cg0_1);
    stmt.y5h(2, entity.dg0_1);
    stmt.y5h(3, entity.eg0_1);
    stmt.v5h(4, entity.fg0_1);
    stmt.v5h(5, entity.gg0_1);
    stmt.v5h(6, entity.hg0_1);
    stmt.v5h(7, entity.ig0_1);
  };
  protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1).p5f = function (stmt, entity) {
    return this.zg0(stmt, entity instanceof PersonAuth2 ? entity : THROW_CCE());
  };
  function PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda(this$0, $personUid, resultContinuation) {
    this.kg1_1 = this$0;
    this.lg1_1 = $personUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda).mg1 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda).m78 = function ($completion) {
    return this.mg1($completion);
  };
  protoOf(PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda).ud = function () {
    var 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 PersonAuth2.*\n          FROM PersonAuth2\n         WHERE PersonAuth2.pauthUid = CAST(? AS BIGINT) \n    ', VOID, VOID, VOID, '\n        SELECT PersonAuth2.*\n          FROM PersonAuth2\n         WHERE PersonAuth2.pauthUid = ? \n    \n', true);
            suspendResult = prepareAndUseStatementAsync(this.kg1_1.ug0_1, tmp_0, PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda$slambda_0(this.lg1_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(PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda).l78 = function (completion) {
    return new PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda(this.kg1_1, this.lg1_1, completion);
  };
  function PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda_0(this$0, $personUid, resultContinuation) {
    var i = new PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda(this$0, $personUid, resultContinuation);
    var l = function ($completion) {
      return i.mg1($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$314(_this__u8e3s4, auth, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vg1_1 = _this__u8e3s4;
    this.wg1_1 = auth;
  }
  protoOf($insertAsyncCOROUTINE$314).ud = function () {
    var 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.vg1_1.wg0_1.w5g(this.wg1_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.ug0_1 = _db;
    var tmp = this;
    tmp.vg0_1 = new PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1(this);
    var tmp_0 = this;
    tmp_0.wg0_1 = new PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1(this);
  }
  protoOf(PersonAuth2Dao_JdbcImpl).yfz = function (auth, $completion) {
    var tmp = new $insertAsyncCOROUTINE$314(this, auth, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonAuth2Dao_JdbcImpl).zfz = function (personUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['PersonAuth2'];
    return doorFlow(this.ug0_1, tmp, PersonAuth2Dao_JdbcImpl$findByPersonUidFlow$slambda_0(this, personUid, null));
  };
  function PersonAuth2Dao_Repo$findByPersonUidFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function PersonAuth2Dao_Repo$insertAsync$slambda(this$0, $auth, resultContinuation) {
    this.fg2_1 = this$0;
    this.gg2_1 = $auth;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonAuth2Dao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonAuth2Dao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.fg2_1.jg2_1.yfz(this.gg2_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).l78 = function (completion) {
    return new PersonAuth2Dao_Repo$insertAsync$slambda(this.fg2_1, this.gg2_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonAuth2Dao_Repo$findByPersonUidFlow$slambda(this$0, $personUid, resultContinuation) {
    this.wg2_1 = this$0;
    this.xg2_1 = $personUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonAuth2Dao_Repo$findByPersonUidFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonAuth2Dao_Repo$findByPersonUidFlow$slambda).m78 = function ($completion) {
    return this.j87($completion);
  };
  protoOf(PersonAuth2Dao_Repo$findByPersonUidFlow$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.yg2_1 = this.wg2_1.ig2_1;
            var tmp_1 = this;
            tmp_1.zg2_1 = 'PersonAuth2Dao/findByPersonUidFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ag3_1 = this.wg2_1.kg2_1;
            var tmp_3 = this;
            tmp_3.bg3_1 = this.ag3_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.wg2_1.ig2_1.j39(), 'PersonAuth2Dao/findByPersonUidFlow');
            doorNodeIdHeader(this_0, this.wg2_1.ig2_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'personUid', this.wg2_1.ig2_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.xg2_1));
            tmp_4.cg3_1 = this_0;
            this.cg3_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.dg3_1 = this.bg3_1;
            var tmp_6 = this;
            tmp_6.eg3_1 = this.cg3_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.eg3_1, this.dg3_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.fg3_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.wg2_1.hg2_1, this.fg3_1, this.wg2_1.ig2_1.j39().x65_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().d5e(e, 'DoorLog', PersonAuth2Dao_Repo$findByPersonUidFlow$slambda$lambda(this.yg2_1, this.zg2_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(PersonAuth2Dao_Repo$findByPersonUidFlow$slambda).l78 = function (completion) {
    return new PersonAuth2Dao_Repo$findByPersonUidFlow$slambda(this.wg2_1, this.xg2_1, completion);
  };
  function PersonAuth2Dao_Repo$findByPersonUidFlow$slambda_0(this$0, $personUid, resultContinuation) {
    var i = new PersonAuth2Dao_Repo$findByPersonUidFlow$slambda(this$0, $personUid, resultContinuation);
    var l = function ($completion) {
      return i.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$315(_this__u8e3s4, auth, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.og3_1 = _this__u8e3s4;
    this.pg3_1 = auth;
  }
  protoOf($insertAsyncCOROUTINE$315).ud = function () {
    var 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.og3_1.ig2_1, 'PersonAuth2', PersonAuth2Dao_Repo$insertAsync$slambda_0(this.og3_1, this.pg3_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.hg2_1 = _db;
    this.ig2_1 = _repo;
    this.jg2_1 = _dao;
    this.kg2_1 = _httpClient;
    this.lg2_1 = _clientId;
    this.mg2_1 = _endpoint;
    this.ng2_1 = new RepoDaoFlowHelper(this.ig2_1);
  }
  protoOf(PersonAuth2Dao_Repo).yfz = function (auth, $completion) {
    var tmp = new $insertAsyncCOROUTINE$315(this, auth, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonAuth2Dao_Repo).zfz = function (personUid) {
    var tmp = this.jg2_1.zfz(personUid);
    return this.ng2_1.o67(tmp, PersonAuth2Dao_Repo$findByPersonUidFlow$slambda_0(this, personUid, null));
  };
  function PersonAuthDao() {
  }
  function PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.qg3_1);
  }
  protoOf(PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO PersonAuth (personAuthUid, passwordHash, personAuthStatus) VALUES(?, ?, ?)';
  };
  protoOf(PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).ug3 = function (stmt, entity) {
    if (entity.vg3_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.vg3_1);
    }
    stmt.y5h(2, entity.wg3_1);
    stmt.u5h(3, entity.xg3_1);
  };
  protoOf(PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).p5f = function (stmt, entity) {
    return this.ug3(stmt, entity instanceof PersonAuth ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$318(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.gg4_1 = _this__u8e3s4;
    this.hg4_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$318).ud = function () {
    var 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.gg4_1.rg3_1.w5g(this.hg4_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.qg3_1 = _db;
    var tmp = this;
    tmp.rg3_1 = new PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1(this);
  }
  protoOf(PersonAuthDao_JdbcImpl).ig4 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$318(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonAuthDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.ig4(entity instanceof PersonAuth ? entity : THROW_CCE(), $completion);
  };
  function PersonDao() {
  }
  function $insertListAsyncCOROUTINE$320(_this__u8e3s4, entityList, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.bg5_1 = _this__u8e3s4;
    this.cg5_1 = entityList;
  }
  protoOf($insertListAsyncCOROUTINE$320).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.dg5_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.bg5_1.kg5_1));
            var tmp_0 = this;
            tmp_0.eg5_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.fg5_1 = this.cg5_1.w();
            var tmp_2 = this;
            tmp_2.gg5_1 = this.fg5_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.gg5_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.hg5_1 = this.gg5_1.e();
            var tmp_3 = this;
            tmp_3.ig5_1 = this.hg5_1;
            if (this.ig5_1.f96_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.dg5_1.o62(9, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.jg5_1 = suspendResult;
            this.ig5_1.f96_1 = this.jg5_1;
            var this_0 = this.eg5_1;
            var element = this.jg5_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.ig5_1.s96_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.bg5_1.lg5_1.jg4(this.cg5_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$324(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ug5_1 = _this__u8e3s4;
    this.vg5_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$324).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.wg5_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.ug5_1.kg5_1));
            if (this.vg5_1.f96_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.wg5_1.o62(9, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.xg5_1 = suspendResult;
            this.vg5_1.f96_1 = this.xg5_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.vg5_1.s96_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.ug5_1.lg5_1.insertAsync(this.vg5_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.vg5_1.f96_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.kg5_1 = _db;
    this.lg5_1 = _dao;
  }
  protoOf(PersonDao_DoorWrapper).jg4 = function (entityList, $completion) {
    var tmp = new $insertListAsyncCOROUTINE$320(this, entityList, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_DoorWrapper).kg4 = function (username, $completion) {
    return this.lg5_1.kg4(username, $completion);
  };
  protoOf(PersonDao_DoorWrapper).lg4 = function (accountPersonUid, $completion) {
    return this.lg5_1.lg4(accountPersonUid, $completion);
  };
  protoOf(PersonDao_DoorWrapper).gcl = function (uid) {
    return this.lg5_1.gcl(uid);
  };
  protoOf(PersonDao_DoorWrapper).mg4 = function (uid, $completion) {
    return this.lg5_1.mg4(uid, $completion);
  };
  protoOf(PersonDao_DoorWrapper).ng4 = function (entity, $completion) {
    entity.s96_1 = systemTimeInMillis();
    return this.lg5_1.ng4(entity, $completion);
  };
  protoOf(PersonDao_DoorWrapper).og4 = function (timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText) {
    return this.lg5_1.og4(timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText);
  };
  protoOf(PersonDao_DoorWrapper).pg4 = function (personUid, accountPersonUid) {
    return this.lg5_1.pg4(personUid, accountPersonUid);
  };
  protoOf(PersonDao_DoorWrapper).qg4 = function (uid) {
    return this.lg5_1.qg4(uid);
  };
  protoOf(PersonDao_DoorWrapper).rg4 = function (uid, $completion) {
    return this.lg5_1.rg4(uid, $completion);
  };
  protoOf(PersonDao_DoorWrapper).sg4 = function (personUid, username, currentTime, $completion) {
    return this.lg5_1.sg4(personUid, username, currentTime, $completion);
  };
  protoOf(PersonDao_DoorWrapper).yg5 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$324(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.yg5(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.m5s(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.y5m('personUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_gender = $_result.x5m('gender');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_active = $_result.j66('active');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_isPersonalAccount = $_result.j66('isPersonalAccount');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.y5m('dateOfBirth');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.y5m('personGroupUid');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_personLct = $_result.y5m('personLct');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personType = $_result.x5m('personType');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.y5m('personMasterChangeSeqNum');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.y5m('personLocalChangeSeqNum');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.x5m('personLastChangedBy');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_admin = $_result.j66('admin');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 25;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.y5m('personPictureUid');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.y5m('personPictureLct');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_fileSize = $_result.x5m('fileSize');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.j66('personPictureActive');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_29 = 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_30 = 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.f96_1 = _tmp_personUid;
        this_1.g96_1 = _tmp_username;
        this_1.h96_1 = _tmp_firstNames;
        this_1.i96_1 = _tmp_lastName;
        this_1.j96_1 = _tmp_emailAddr;
        this_1.k96_1 = _tmp_phoneNum;
        this_1.l96_1 = _tmp_gender;
        this_1.m96_1 = _tmp_active;
        this_1.n96_1 = _tmp_isPersonalAccount;
        this_1.o96_1 = _tmp_dateOfBirth;
        this_1.p96_1 = _tmp_personAddress;
        this_1.q96_1 = _tmp_personOrgId;
        this_1.r96_1 = _tmp_personGroupUid;
        this_1.s96_1 = _tmp_personLct;
        this_1.t96_1 = _tmp_personCountry;
        this_1.u96_1 = _tmp_personType;
        this_1.v96_1 = _tmp_personMasterChangeSeqNum;
        this_1.w96_1 = _tmp_personLocalChangeSeqNum;
        this_1.x96_1 = _tmp_personLastChangedBy;
        this_1.y96_1 = _tmp_admin;
        this_1.z96_1 = _tmp_personNotes;
        this_1.a97_1 = _tmp_fatherName;
        this_1.b97_1 = _tmp_fatherNumber;
        this_1.c97_1 = _tmp_motherName;
        this_1.d97_1 = _tmp_motherNum;
        tmp_30.zg5_1 = this_1;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_31 = 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.e97_1 = _tmp_personPictureUid;
        this_2.f97_1 = _tmp_personPictureLct;
        this_2.g97_1 = _tmp_personPictureUri;
        this_2.h97_1 = _tmp_personPictureThumbnailUri;
        this_2.i97_1 = _tmp_fileSize;
        this_2.j97_1 = _tmp_personPictureActive;
        tmp_31.ag6_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.y5m('personUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_gender = $_result.x5m('gender');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_active = $_result.j66('active');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_isPersonalAccount = $_result.j66('isPersonalAccount');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.y5m('dateOfBirth');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.y5m('personGroupUid');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_personLct = $_result.y5m('personLct');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personType = $_result.x5m('personType');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.y5m('personMasterChangeSeqNum');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.y5m('personLocalChangeSeqNum');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.x5m('personLastChangedBy');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_admin = $_result.j66('admin');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 25;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.y5m('personPictureUid');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.y5m('personPictureLct');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_fileSize = $_result.x5m('fileSize');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.j66('personPictureActive');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_29 = 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_30 = 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.f96_1 = _tmp_personUid;
        this_1.g96_1 = _tmp_username;
        this_1.h96_1 = _tmp_firstNames;
        this_1.i96_1 = _tmp_lastName;
        this_1.j96_1 = _tmp_emailAddr;
        this_1.k96_1 = _tmp_phoneNum;
        this_1.l96_1 = _tmp_gender;
        this_1.m96_1 = _tmp_active;
        this_1.n96_1 = _tmp_isPersonalAccount;
        this_1.o96_1 = _tmp_dateOfBirth;
        this_1.p96_1 = _tmp_personAddress;
        this_1.q96_1 = _tmp_personOrgId;
        this_1.r96_1 = _tmp_personGroupUid;
        this_1.s96_1 = _tmp_personLct;
        this_1.t96_1 = _tmp_personCountry;
        this_1.u96_1 = _tmp_personType;
        this_1.v96_1 = _tmp_personMasterChangeSeqNum;
        this_1.w96_1 = _tmp_personLocalChangeSeqNum;
        this_1.x96_1 = _tmp_personLastChangedBy;
        this_1.y96_1 = _tmp_admin;
        this_1.z96_1 = _tmp_personNotes;
        this_1.a97_1 = _tmp_fatherName;
        this_1.b97_1 = _tmp_fatherNumber;
        this_1.c97_1 = _tmp_motherName;
        this_1.d97_1 = _tmp_motherNum;
        tmp_30.zg5_1 = this_1;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_31 = 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.e97_1 = _tmp_personPictureUid;
        this_2.f97_1 = _tmp_personPictureLct;
        this_2.g97_1 = _tmp_personPictureUri;
        this_2.h97_1 = _tmp_personPictureThumbnailUri;
        this_2.i97_1 = _tmp_fileSize;
        this_2.j97_1 = _tmp_personPictureActive;
        tmp_31.ag6_1 = this_2;
      }
      return this_0;
    };
  }
  function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda($uid, resultContinuation) {
    this.jg6_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).lg6 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.lg6((!(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.kg6_1.v5h(1, this.jg6_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.kg6_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).m5f = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda(this.jg6_1, completion);
    i.kg6_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.lg6(_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.y5m('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.x5m('gender');
      var _tmp_active = $_result.j66('active');
      var _tmp_isPersonalAccount = $_result.j66('isPersonalAccount');
      var _tmp_dateOfBirth = $_result.y5m('dateOfBirth');
      var _tmp_personAddress = $_result.rz('personAddress');
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var _tmp_personGroupUid = $_result.y5m('personGroupUid');
      var _tmp_personLct = $_result.y5m('personLct');
      var _tmp_personCountry = $_result.rz('personCountry');
      var _tmp_personType = $_result.x5m('personType');
      var _tmp_personMasterChangeSeqNum = $_result.y5m('personMasterChangeSeqNum');
      var _tmp_personLocalChangeSeqNum = $_result.y5m('personLocalChangeSeqNum');
      var _tmp_personLastChangedBy = $_result.x5m('personLastChangedBy');
      var _tmp_admin = $_result.j66('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.f96_1 = _tmp_personUid;
      this_0.g96_1 = _tmp_username;
      this_0.h96_1 = _tmp_firstNames;
      this_0.i96_1 = _tmp_lastName;
      this_0.j96_1 = _tmp_emailAddr;
      this_0.k96_1 = _tmp_phoneNum;
      this_0.l96_1 = _tmp_gender;
      this_0.m96_1 = _tmp_active;
      this_0.n96_1 = _tmp_isPersonalAccount;
      this_0.o96_1 = _tmp_dateOfBirth;
      this_0.p96_1 = _tmp_personAddress;
      this_0.q96_1 = _tmp_personOrgId;
      this_0.r96_1 = _tmp_personGroupUid;
      this_0.s96_1 = _tmp_personLct;
      this_0.t96_1 = _tmp_personCountry;
      this_0.u96_1 = _tmp_personType;
      this_0.v96_1 = _tmp_personMasterChangeSeqNum;
      this_0.w96_1 = _tmp_personLocalChangeSeqNum;
      this_0.x96_1 = _tmp_personLastChangedBy;
      this_0.y96_1 = _tmp_admin;
      this_0.z96_1 = _tmp_personNotes;
      this_0.a97_1 = _tmp_fatherName;
      this_0.b97_1 = _tmp_fatherNumber;
      this_0.c97_1 = _tmp_motherName;
      this_0.d97_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.y5m('personUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_gender = $_result.x5m('gender');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_active = $_result.j66('active');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_isPersonalAccount = $_result.j66('isPersonalAccount');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.y5m('dateOfBirth');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.y5m('personGroupUid');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_personLct = $_result.y5m('personLct');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personType = $_result.x5m('personType');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.y5m('personMasterChangeSeqNum');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.y5m('personLocalChangeSeqNum');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.x5m('personLastChangedBy');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_admin = $_result.j66('admin');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 25;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.y5m('personPictureUid');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.y5m('personPictureLct');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_fileSize = $_result.x5m('fileSize');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.j66('personPictureActive');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_29 = 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_30 = 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.f96_1 = _tmp_personUid;
        this_1.g96_1 = _tmp_username;
        this_1.h96_1 = _tmp_firstNames;
        this_1.i96_1 = _tmp_lastName;
        this_1.j96_1 = _tmp_emailAddr;
        this_1.k96_1 = _tmp_phoneNum;
        this_1.l96_1 = _tmp_gender;
        this_1.m96_1 = _tmp_active;
        this_1.n96_1 = _tmp_isPersonalAccount;
        this_1.o96_1 = _tmp_dateOfBirth;
        this_1.p96_1 = _tmp_personAddress;
        this_1.q96_1 = _tmp_personOrgId;
        this_1.r96_1 = _tmp_personGroupUid;
        this_1.s96_1 = _tmp_personLct;
        this_1.t96_1 = _tmp_personCountry;
        this_1.u96_1 = _tmp_personType;
        this_1.v96_1 = _tmp_personMasterChangeSeqNum;
        this_1.w96_1 = _tmp_personLocalChangeSeqNum;
        this_1.x96_1 = _tmp_personLastChangedBy;
        this_1.y96_1 = _tmp_admin;
        this_1.z96_1 = _tmp_personNotes;
        this_1.a97_1 = _tmp_fatherName;
        this_1.b97_1 = _tmp_fatherNumber;
        this_1.c97_1 = _tmp_motherName;
        this_1.d97_1 = _tmp_motherNum;
        tmp_30.mg6_1 = this_1;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_31 = 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.e97_1 = _tmp_personPictureUid;
        this_2.f97_1 = _tmp_personPictureLct;
        this_2.g97_1 = _tmp_personPictureUri;
        this_2.h97_1 = _tmp_personPictureThumbnailUri;
        this_2.i97_1 = _tmp_fileSize;
        this_2.j97_1 = _tmp_personPictureActive;
        tmp_31.ng6_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.m5s(1);
    };
  }
  function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) {
    this.wg6_1 = $accountPersonUid;
    this.xg6_1 = $excludeClazz;
    this.yg6_1 = $timestamp;
    this.zg6_1 = $excludeSelected;
    this.ag7_1 = $searchText;
    this.bg7_1 = $sortOrder;
    this.cg7_1 = $_limit;
    this.dg7_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda).fg7 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.fg7((!(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.eg7_1.v5h(1, this.wg6_1);
            this.eg7_1.v5h(2, this.wg6_1);
            this.eg7_1.v5h(3, this.wg6_1);
            this.eg7_1.v5h(4, this.wg6_1);
            this.eg7_1.v5h(5, this.wg6_1);
            this.eg7_1.v5h(6, this.wg6_1);
            this.eg7_1.v5h(7, this.wg6_1);
            this.eg7_1.v5h(8, this.xg6_1);
            this.eg7_1.v5h(9, this.xg6_1);
            this.eg7_1.v5h(10, this.yg6_1);
            var tmp_0 = this.eg7_1.r5g();
            var this_0 = this.zg6_1;
            this.eg7_1.z5h(11, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.eg7_1.y5h(12, this.ag7_1);
            this.eg7_1.y5h(13, this.ag7_1);
            this.eg7_1.u5h(14, this.bg7_1);
            this.eg7_1.u5h(15, this.bg7_1);
            this.eg7_1.u5h(16, this.cg7_1);
            this.eg7_1.u5h(17, this.dg7_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.eg7_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).m5f = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda(this.wg6_1, this.xg6_1, this.yg6_1, this.zg6_1, this.ag7_1, this.bg7_1, this.cg7_1, this.dg7_1, completion);
    i.eg7_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.fg7(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, resultContinuation) {
    this.og7_1 = $accountPersonUid;
    this.pg7_1 = $excludeClazz;
    this.qg7_1 = $timestamp;
    this.rg7_1 = $excludeSelected;
    this.sg7_1 = $searchText;
    this.tg7_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.ug7_1.v5h(1, this.og7_1);
            this.ug7_1.v5h(2, this.og7_1);
            this.ug7_1.v5h(3, this.og7_1);
            this.ug7_1.v5h(4, this.og7_1);
            this.ug7_1.v5h(5, this.og7_1);
            this.ug7_1.v5h(6, this.og7_1);
            this.ug7_1.v5h(7, this.og7_1);
            this.ug7_1.v5h(8, this.pg7_1);
            this.ug7_1.v5h(9, this.pg7_1);
            this.ug7_1.v5h(10, this.qg7_1);
            var tmp_0 = this.ug7_1.r5g();
            var this_0 = this.rg7_1;
            this.ug7_1.z5h(11, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.ug7_1.y5h(12, this.sg7_1);
            this.ug7_1.y5h(13, this.sg7_1);
            this.ug7_1.u5h(14, this.tg7_1);
            this.ug7_1.u5h(15, this.tg7_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ug7_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).m5f = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda(this.og7_1, this.pg7_1, this.qg7_1, this.rg7_1, this.sg7_1, this.tg7_1, completion);
    i.ug7_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.j6j(_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.y5m('personUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_gender = $_result.x5m('gender');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_active = $_result.j66('active');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_isPersonalAccount = $_result.j66('isPersonalAccount');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.y5m('dateOfBirth');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.y5m('personGroupUid');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_personLct = $_result.y5m('personLct');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personType = $_result.x5m('personType');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.y5m('personMasterChangeSeqNum');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.y5m('personLocalChangeSeqNum');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.x5m('personLastChangedBy');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_admin = $_result.j66('admin');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 25;
      var _tmp_PersonParentJoin_nullCount = 0;
      var _tmp_ppjUid = $_result.y5m('ppjUid');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_ppjPcsn = $_result.y5m('ppjPcsn');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_ppjLcsn = $_result.y5m('ppjLcsn');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_ppjLcb = $_result.x5m('ppjLcb');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_ppjLct = $_result.y5m('ppjLct');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_ppjParentPersonUid = $_result.y5m('ppjParentPersonUid');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_ppjMinorPersonUid = $_result.y5m('ppjMinorPersonUid');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_ppjRelationship = $_result.x5m('ppjRelationship');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_ppjEmail = $_result.rz('ppjEmail');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_ppjPhone = $_result.rz('ppjPhone');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_ppjInactive = $_result.j66('ppjInactive');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_ppjStatus = $_result.x5m('ppjStatus');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_ppjApprovalTiemstamp = $_result.y5m('ppjApprovalTiemstamp');
      var tmp_36;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_ppjApprovalIpAddr = $_result.rz('ppjApprovalIpAddr');
      var tmp_37;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_PersonParentJoin_isAllNull = _tmp_PersonParentJoin_nullCount === 14;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.y5m('personPictureUid');
      var tmp_38;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.y5m('personPictureLct');
      var tmp_39;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_40;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_41;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_fileSize = $_result.x5m('fileSize');
      var tmp_42;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.j66('personPictureActive');
      var tmp_43;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6;
      var _tmp_TransferJobItem_nullCount = 0;
      var _tmp_tjiUid = $_result.x5m('tjiUid');
      var tmp_44;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_tjiTjUid = $_result.x5m('tjiTjUid');
      var tmp_45;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_45 = Unit_instance;
      }
      var _tmp_tjTotalSize = $_result.y5m('tjTotalSize');
      var tmp_46;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_46 = Unit_instance;
      }
      var _tmp_tjTransferred = $_result.y5m('tjTransferred');
      var tmp_47;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_47 = Unit_instance;
      }
      var _tmp_tjAttemptCount = $_result.x5m('tjAttemptCount');
      var tmp_48;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_48 = Unit_instance;
      }
      var _tmp_tjiSrc = $_result.rz('tjiSrc');
      var tmp_49;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_49 = Unit_instance;
      }
      var _tmp_tjiDest = $_result.rz('tjiDest');
      var tmp_50;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_50 = Unit_instance;
      }
      var _tmp_tjiType = $_result.x5m('tjiType');
      var tmp_51;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_51 = Unit_instance;
      }
      var _tmp_tjiStatus = $_result.x5m('tjiStatus');
      var tmp_52;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_52 = Unit_instance;
      }
      var _tmp_tjiTableId = $_result.x5m('tjiTableId');
      var tmp_53;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_53 = Unit_instance;
      }
      var _tmp_tjiEntityUid = $_result.y5m('tjiEntityUid');
      var tmp_54;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_54 = Unit_instance;
      }
      var _tmp_tjiEntityEtag = $_result.y5m('tjiEntityEtag');
      var tmp_55;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_55 = Unit_instance;
      }
      var _tmp_tjiLockIdToRelease = $_result.y5m('tjiLockIdToRelease');
      var tmp_56;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_56 = Unit_instance;
      }
      var _tmp_tjiPartialTmpFile = $_result.rz('tjiPartialTmpFile');
      var tmp_57;
      if ($_result.q67()) {
        _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0;
        tmp_57 = 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_58 = 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.f96_1 = _tmp_personUid;
        this_1.g96_1 = _tmp_username;
        this_1.h96_1 = _tmp_firstNames;
        this_1.i96_1 = _tmp_lastName;
        this_1.j96_1 = _tmp_emailAddr;
        this_1.k96_1 = _tmp_phoneNum;
        this_1.l96_1 = _tmp_gender;
        this_1.m96_1 = _tmp_active;
        this_1.n96_1 = _tmp_isPersonalAccount;
        this_1.o96_1 = _tmp_dateOfBirth;
        this_1.p96_1 = _tmp_personAddress;
        this_1.q96_1 = _tmp_personOrgId;
        this_1.r96_1 = _tmp_personGroupUid;
        this_1.s96_1 = _tmp_personLct;
        this_1.t96_1 = _tmp_personCountry;
        this_1.u96_1 = _tmp_personType;
        this_1.v96_1 = _tmp_personMasterChangeSeqNum;
        this_1.w96_1 = _tmp_personLocalChangeSeqNum;
        this_1.x96_1 = _tmp_personLastChangedBy;
        this_1.y96_1 = _tmp_admin;
        this_1.z96_1 = _tmp_personNotes;
        this_1.a97_1 = _tmp_fatherName;
        this_1.b97_1 = _tmp_fatherNumber;
        this_1.c97_1 = _tmp_motherName;
        this_1.d97_1 = _tmp_motherNum;
        tmp_58.vg7_1 = this_1;
      }
      if (!_tmp_PersonParentJoin_isAllNull) {
        var tmp_59 = 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.zg7_1 = _tmp_ppjUid;
        this_2.ag8_1 = _tmp_ppjPcsn;
        this_2.bg8_1 = _tmp_ppjLcsn;
        this_2.cg8_1 = _tmp_ppjLcb;
        this_2.dg8_1 = _tmp_ppjLct;
        this_2.eg8_1 = _tmp_ppjParentPersonUid;
        this_2.fg8_1 = _tmp_ppjMinorPersonUid;
        this_2.gg8_1 = _tmp_ppjRelationship;
        this_2.hg8_1 = _tmp_ppjEmail;
        this_2.ig8_1 = _tmp_ppjPhone;
        this_2.jg8_1 = _tmp_ppjInactive;
        this_2.kg8_1 = _tmp_ppjStatus;
        this_2.lg8_1 = _tmp_ppjApprovalTiemstamp;
        this_2.mg8_1 = _tmp_ppjApprovalIpAddr;
        tmp_59.wg7_1 = this_2;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_60 = 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.e97_1 = _tmp_personPictureUid;
        this_3.f97_1 = _tmp_personPictureLct;
        this_3.g97_1 = _tmp_personPictureUri;
        this_3.h97_1 = _tmp_personPictureThumbnailUri;
        this_3.i97_1 = _tmp_fileSize;
        this_3.j97_1 = _tmp_personPictureActive;
        tmp_60.xg7_1 = this_3;
      }
      if (!_tmp_TransferJobItem_isAllNull) {
        var tmp_61 = 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.ycb_1 = _tmp_tjiUid;
        this_4.zcb_1 = _tmp_tjiTjUid;
        this_4.acc_1 = _tmp_tjTotalSize;
        this_4.bcc_1 = _tmp_tjTransferred;
        this_4.ccc_1 = _tmp_tjAttemptCount;
        this_4.dcc_1 = _tmp_tjiSrc;
        this_4.ecc_1 = _tmp_tjiDest;
        this_4.fcc_1 = _tmp_tjiType;
        this_4.gcc_1 = _tmp_tjiStatus;
        this_4.hcc_1 = _tmp_tjiTableId;
        this_4.icc_1 = _tmp_tjiEntityUid;
        this_4.jcc_1 = _tmp_tjiEntityEtag;
        this_4.kcc_1 = _tmp_tjiLockIdToRelease;
        this_4.lcc_1 = _tmp_tjiPartialTmpFile;
        tmp_61.yg7_1 = this_4;
      }
      return this_0;
    };
  }
  function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda($personUid, $accountPersonUid, resultContinuation) {
    this.vg8_1 = $personUid;
    this.wg8_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda).yg8 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.yg8((!(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.xg8_1.v5h(1, this.vg8_1);
            this.xg8_1.v5h(2, this.wg8_1);
            this.xg8_1.v5h(3, this.vg8_1);
            this.xg8_1.v5h(4, this.vg8_1);
            this.xg8_1.v5h(5, this.vg8_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.xg8_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).m5f = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda(this.vg8_1, this.wg8_1, completion);
    i.xg8_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.yg8(_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.zg8_1 = _tmp_firstNames;
      this_0.ag9_1 = _tmp_lastName;
      return this_0;
    };
  }
  function PersonDao_JdbcImpl$getNamesByUid$slambda$slambda($uid, resultContinuation) {
    this.jg9_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda$slambda).lg9 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.lg9((!(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.kg9_1.v5h(1, this.jg9_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.kg9_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).m5f = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$getNamesByUid$slambda$slambda(this.jg9_1, completion);
    i.kg9_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.lg9(_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.zg8_1 = _tmp_firstNames;
      this_0.ag9_1 = _tmp_lastName;
      return this_0;
    };
  }
  function PersonDao_JdbcImpl$_insertAdapterPerson_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.mg9_1);
  }
  protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO Person (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, isPersonalAccount, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_abort$1).ug9 = function (stmt, entity) {
    if (entity.f96_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.f96_1);
    }
    stmt.y5h(2, entity.g96_1);
    stmt.y5h(3, entity.h96_1);
    stmt.y5h(4, entity.i96_1);
    stmt.y5h(5, entity.j96_1);
    stmt.y5h(6, entity.k96_1);
    stmt.u5h(7, entity.l96_1);
    stmt.i5h(8, entity.m96_1);
    stmt.i5h(9, entity.n96_1);
    stmt.v5h(10, entity.o96_1);
    stmt.y5h(11, entity.p96_1);
    stmt.y5h(12, entity.q96_1);
    stmt.v5h(13, entity.r96_1);
    stmt.v5h(14, entity.s96_1);
    stmt.y5h(15, entity.t96_1);
    stmt.u5h(16, entity.u96_1);
    stmt.v5h(17, entity.v96_1);
    stmt.v5h(18, entity.w96_1);
    stmt.u5h(19, entity.x96_1);
    stmt.i5h(20, entity.y96_1);
    stmt.y5h(21, entity.z96_1);
    stmt.y5h(22, entity.a97_1);
    stmt.y5h(23, entity.b97_1);
    stmt.y5h(24, entity.c97_1);
    stmt.y5h(25, entity.d97_1);
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_abort$1).p5f = function (stmt, entity) {
    return this.ug9(stmt, entity instanceof Person ? entity : THROW_CCE());
  };
  function PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.mg9_1);
  }
  protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO Person (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, isPersonalAccount, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1).ug9 = function (stmt, entity) {
    if (entity.f96_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.f96_1);
    }
    stmt.y5h(2, entity.g96_1);
    stmt.y5h(3, entity.h96_1);
    stmt.y5h(4, entity.i96_1);
    stmt.y5h(5, entity.j96_1);
    stmt.y5h(6, entity.k96_1);
    stmt.u5h(7, entity.l96_1);
    stmt.i5h(8, entity.m96_1);
    stmt.i5h(9, entity.n96_1);
    stmt.v5h(10, entity.o96_1);
    stmt.y5h(11, entity.p96_1);
    stmt.y5h(12, entity.q96_1);
    stmt.v5h(13, entity.r96_1);
    stmt.v5h(14, entity.s96_1);
    stmt.y5h(15, entity.t96_1);
    stmt.u5h(16, entity.u96_1);
    stmt.v5h(17, entity.v96_1);
    stmt.v5h(18, entity.w96_1);
    stmt.u5h(19, entity.x96_1);
    stmt.i5h(20, entity.y96_1);
    stmt.y5h(21, entity.z96_1);
    stmt.y5h(22, entity.a97_1);
    stmt.y5h(23, entity.b97_1);
    stmt.y5h(24, entity.c97_1);
    stmt.y5h(25, entity.d97_1);
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1).p5f = function (stmt, entity) {
    return this.ug9(stmt, entity instanceof Person ? entity : THROW_CCE());
  };
  function PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.mg9_1);
  }
  protoOf(PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO PersonAuth (personAuthUid, passwordHash, personAuthStatus) VALUES(?, ?, ?)';
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).ug3 = function (stmt, entity) {
    if (entity.vg3_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.vg3_1);
    }
    stmt.y5h(2, entity.wg3_1);
    stmt.u5h(3, entity.xg3_1);
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).p5f = function (stmt, entity) {
    return this.ug3(stmt, entity instanceof PersonAuth ? entity : THROW_CCE());
  };
  function PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.mg9_1);
  }
  protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO PersonGroup (groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).bga = function (stmt, entity) {
    if (entity.cga_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.cga_1);
    }
    stmt.v5h(2, entity.dga_1);
    stmt.v5h(3, entity.ega_1);
    stmt.u5h(4, entity.fga_1);
    stmt.v5h(5, entity.gga_1);
    stmt.y5h(6, entity.hga_1);
    stmt.i5h(7, entity.iga_1);
    stmt.u5h(8, entity.jga_1);
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).p5f = function (stmt, entity) {
    return this.bga(stmt, entity instanceof PersonGroup ? entity : THROW_CCE());
  };
  function PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.mg9_1);
  }
  protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO PersonGroupMember (groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).mga = function (stmt, entity) {
    if (entity.nga_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.nga_1);
    }
    stmt.i5h(2, entity.oga_1);
    stmt.v5h(3, entity.pga_1);
    stmt.v5h(4, entity.qga_1);
    stmt.v5h(5, entity.rga_1);
    stmt.v5h(6, entity.sga_1);
    stmt.u5h(7, entity.tga_1);
    stmt.v5h(8, entity.uga_1);
  };
  protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).p5f = function (stmt, entity) {
    return this.mga(stmt, entity instanceof PersonGroupMember ? entity : THROW_CCE());
  };
  function PersonDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) {
    this.dgb_1 = $entity;
    this.egb_1 = $_result;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$updateAsync$slambda).l5f = function (_stmt, $completion) {
    var tmp = this.m5f(_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.l5f((!(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.fgb_1.y5h(1, this.dgb_1.g96_1);
            this.fgb_1.y5h(2, this.dgb_1.h96_1);
            this.fgb_1.y5h(3, this.dgb_1.i96_1);
            this.fgb_1.y5h(4, this.dgb_1.j96_1);
            this.fgb_1.y5h(5, this.dgb_1.k96_1);
            this.fgb_1.u5h(6, this.dgb_1.l96_1);
            this.fgb_1.i5h(7, this.dgb_1.m96_1);
            this.fgb_1.i5h(8, this.dgb_1.n96_1);
            this.fgb_1.v5h(9, this.dgb_1.o96_1);
            this.fgb_1.y5h(10, this.dgb_1.p96_1);
            this.fgb_1.y5h(11, this.dgb_1.q96_1);
            this.fgb_1.v5h(12, this.dgb_1.r96_1);
            this.fgb_1.v5h(13, this.dgb_1.s96_1);
            this.fgb_1.y5h(14, this.dgb_1.t96_1);
            this.fgb_1.u5h(15, this.dgb_1.u96_1);
            this.fgb_1.v5h(16, this.dgb_1.v96_1);
            this.fgb_1.v5h(17, this.dgb_1.w96_1);
            this.fgb_1.u5h(18, this.dgb_1.x96_1);
            this.fgb_1.i5h(19, this.dgb_1.y96_1);
            this.fgb_1.y5h(20, this.dgb_1.z96_1);
            this.fgb_1.y5h(21, this.dgb_1.a97_1);
            this.fgb_1.y5h(22, this.dgb_1.b97_1);
            this.fgb_1.y5h(23, this.dgb_1.c97_1);
            this.fgb_1.y5h(24, this.dgb_1.d97_1);
            this.fgb_1.v5h(25, this.dgb_1.f96_1);
            this.ggb_1 = this.egb_1._v;
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.fgb_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            var ARGUMENT_0 = this.ggb_1 + ARGUMENT | 0;
            this.egb_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).m5f = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$updateAsync$slambda(this.dgb_1, this.egb_1, completion);
    i.fgb_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.l5f(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonDao_JdbcImpl$countUsername$slambda($username, resultContinuation) {
    this.pgb_1 = $username;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$countUsername$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.qgb_1.y5h(1, this.pgb_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.qgb_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).m5f = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$countUsername$slambda(this.pgb_1, completion);
    i.qgb_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonDao_JdbcImpl$findByUidWithPicture$slambda($accountPersonUid, resultContinuation) {
    this.zgb_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$findByUidWithPicture$slambda).lg6 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.lg6((!(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.agc_1.v5h(1, this.zgb_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.agc_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).m5f = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$findByUidWithPicture$slambda(this.zgb_1, completion);
    i.agc_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.lg6(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation) {
    this.jgc_1 = this$0;
    this.kgc_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).lgc = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).m78 = function ($completion) {
    return this.lgc($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.jgc_1.mg9_1, tmp_0, PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda_0(this.kgc_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).l78 = function (completion) {
    return new PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this.jgc_1, this.kgc_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.lgc($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) {
    this.ugc_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$findByUidAsync$slambda).wgc = function (_stmt, $completion) {
    var tmp = this.m5f(_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.wgc((!(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.vgc_1.v5h(1, this.ugc_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.vgc_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).m5f = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$findByUidAsync$slambda(this.ugc_1, completion);
    i.vgc_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.wgc(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1(this$0, $accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder) {
    this.dgd_1 = this$0;
    this.egd_1 = $accountPersonUid;
    this.fgd_1 = $excludeClazz;
    this.ggd_1 = $timestamp;
    this.hgd_1 = $excludeSelected;
    this.igd_1 = $searchText;
    this.jgd_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.mg9_1, tmp$ret$2);
  }
  protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1).kgd = 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.dgd_1.mg9_1, tmp, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda_0(this.egd_1, this.fgd_1, this.ggd_1, this.hgd_1, this.igd_1, this.jgd_1, _limit, _offset, null), $completion);
  };
  protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1).w5p = function (_limit, _offset, $completion) {
    return this.kgd(_limit, _offset, $completion);
  };
  protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1).q5r = 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.dgd_1.mg9_1, tmp, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda_0(this.egd_1, this.fgd_1, this.ggd_1, this.hgd_1, this.igd_1, this.jgd_1, null), $completion);
  };
  function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda(this$0, $personUid, $accountPersonUid, resultContinuation) {
    this.tgd_1 = this$0;
    this.ugd_1 = $personUid;
    this.vgd_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda).wgd = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda).m78 = function ($completion) {
    return this.wgd($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.tgd_1.mg9_1, tmp_0, PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda_0(this.ugd_1, this.vgd_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).l78 = function (completion) {
    return new PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda(this.tgd_1, this.ugd_1, this.vgd_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.wgd($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonDao_JdbcImpl$getNamesByUid$slambda(this$0, $uid, resultContinuation) {
    this.fge_1 = this$0;
    this.gge_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda).hge = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda).m78 = function ($completion) {
    return this.hge($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.fge_1.mg9_1, tmp_0, PersonDao_JdbcImpl$getNamesByUid$slambda$slambda_0(this.gge_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).l78 = function (completion) {
    return new PersonDao_JdbcImpl$getNamesByUid$slambda(this.fge_1, this.gge_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.hge($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonDao_JdbcImpl$getNamesByUidAsync$slambda($uid, resultContinuation) {
    this.qge_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$getNamesByUidAsync$slambda).lg9 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.lg9((!(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.rge_1.v5h(1, this.qge_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.rge_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).m5f = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$getNamesByUidAsync$slambda(this.qge_1, completion);
    i.rge_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.lg9(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonDao_JdbcImpl$updateUsername$slambda($username, $currentTime, $personUid, resultContinuation) {
    this.agf_1 = $username;
    this.bgf_1 = $currentTime;
    this.cgf_1 = $personUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_JdbcImpl$updateUsername$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.dgf_1.y5h(1, this.agf_1);
            this.dgf_1.v5h(2, this.bgf_1);
            this.dgf_1.v5h(3, this.cgf_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.dgf_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).m5f = function (_stmt, completion) {
    var i = new PersonDao_JdbcImpl$updateUsername$slambda(this.agf_1, this.bgf_1, this.cgf_1, completion);
    i.dgf_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$327(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.mgf_1 = _this__u8e3s4;
    this.ngf_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 = this.mgf_1.ng9_1.w5g(this.ngf_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$328(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.wgf_1 = _this__u8e3s4;
    this.xgf_1 = entity;
  }
  protoOf($updateAsyncCOROUTINE$328).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.ygf_1 = {_v: 0};
            this.zgf_1 = 'UPDATE Person SET username = ?, firstNames = ?, lastName = ?, emailAddr = ?, phoneNum = ?, gender = ?, active = ?, isPersonalAccount = ?, 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.wgf_1.mg9_1, this.zgf_1, VOID, PersonDao_JdbcImpl$updateAsync$slambda_0(this.xgf_1, this.ygf_1, null), this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            return this.ygf_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.mg9_1 = _db;
    var tmp = this;
    tmp.ng9_1 = new PersonDao_JdbcImpl$_insertAdapterPerson_abort$1(this);
    var tmp_0 = this;
    tmp_0.og9_1 = new PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1(this);
    var tmp_1 = this;
    tmp_1.pg9_1 = new PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1(this);
    var tmp_2 = this;
    tmp_2.qg9_1 = new PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1(this);
    var tmp_3 = this;
    tmp_3.rg9_1 = new PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1(this);
  }
  protoOf(PersonDao_JdbcImpl).jg4 = function (entityList, $completion) {
    return this.ng9_1.z5g(entityList, $completion);
  };
  protoOf(PersonDao_JdbcImpl).yg5 = 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_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.yg5(entity instanceof Person ? entity : THROW_CCE(), $completion);
  };
  protoOf(PersonDao_JdbcImpl).ng4 = function (entity, $completion) {
    var tmp = new $updateAsyncCOROUTINE$328(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_JdbcImpl).kg4 = function (username, $completion) {
    var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM Person where Person.username = ?', VOID, VOID, VOID, VOID, true);
    return prepareAndUseStatementAsync(this.mg9_1, tmp, PersonDao_JdbcImpl$countUsername$slambda_0(username, null), $completion);
  };
  protoOf(PersonDao_JdbcImpl).lg4 = 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.mg9_1, tmp, PersonDao_JdbcImpl$findByUidWithPicture$slambda_0(accountPersonUid, null), $completion);
  };
  protoOf(PersonDao_JdbcImpl).gcl = 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.mg9_1, tmp, PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda_0(this, uid, null));
  };
  protoOf(PersonDao_JdbcImpl).mg4 = 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.mg9_1, tmp, PersonDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion);
  };
  protoOf(PersonDao_JdbcImpl).og4 = function (timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText) {
    return new PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1(this, accountPersonUid, excludeClazz, timestamp, excludeSelected, searchText, sortOrder);
  };
  protoOf(PersonDao_JdbcImpl).pg4 = 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.mg9_1, tmp, PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda_0(this, personUid, accountPersonUid, null));
  };
  protoOf(PersonDao_JdbcImpl).qg4 = 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.mg9_1, tmp, PersonDao_JdbcImpl$getNamesByUid$slambda_0(this, uid, null));
  };
  protoOf(PersonDao_JdbcImpl).rg4 = 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.mg9_1, tmp, PersonDao_JdbcImpl$getNamesByUidAsync$slambda_0(uid, null), $completion);
  };
  protoOf(PersonDao_JdbcImpl).sg4 = 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.mg9_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$insertListAsync$slambda(this$0, $entityList, resultContinuation) {
    this.igg_1 = this$0;
    this.jgg_1 = $entityList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_Repo$insertListAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo$insertListAsync$slambda).m78 = function ($completion) {
    return this.j87($completion);
  };
  protoOf(PersonDao_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.igg_1.mgg_1.jg4(this.jgg_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(PersonDao_Repo$insertListAsync$slambda).l78 = function (completion) {
    return new PersonDao_Repo$insertListAsync$slambda(this.igg_1, this.jgg_1, completion);
  };
  function PersonDao_Repo$insertListAsync$slambda_0(this$0, $entityList, resultContinuation) {
    var i = new PersonDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation);
    var l = function ($completion) {
      return i.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  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.zgg_1 = this$0;
    this.agh_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_Repo$updateAsync$slambda).g8u = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo$updateAsync$slambda).m78 = function ($completion) {
    return this.g8u($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.zgg_1.mgg_1.ng4(this.agh_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).l78 = function (completion) {
    return new PersonDao_Repo$updateAsync$slambda(this.zgg_1, this.agh_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.g8u($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda(this$0, $timestamp, $excludeClazz, $excludeSelected, $accountPersonUid, $sortOrder, $searchText, resultContinuation) {
    this.jgh_1 = this$0;
    this.kgh_1 = $timestamp;
    this.lgh_1 = $excludeClazz;
    this.mgh_1 = $excludeSelected;
    this.ngh_1 = $accountPersonUid;
    this.ogh_1 = $sortOrder;
    this.pgh_1 = $searchText;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_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.h86(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.sgh_1 = this.jgh_1.lgg_1;
            var tmp_1 = this;
            tmp_1.tgh_1 = 'PersonDao/findPersonsWithPermissionAsPagingSource';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.ugh_1 = this.jgh_1.ngg_1;
            var tmp_3 = this;
            tmp_3.vgh_1 = this.ugh_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.jgh_1.lgg_1.j39(), 'PersonDao/findPersonsWithPermissionAsPagingSource');
            doorNodeIdHeader(this_0, this.jgh_1.lgg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'timestamp', this.jgh_1.lgg_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.kgh_1));
            parameter(this_0, 'excludeClazz', this.jgh_1.lgg_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.lgh_1));
            parameter(this_0, 'excludeSelected', this.jgh_1.lgg_1.j39().x65_1.r45(ListSerializer(serializer(Companion_getInstance())), this.mgh_1));
            parameter(this_0, 'accountPersonUid', this.jgh_1.lgg_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ngh_1));
            parameter(this_0, 'sortOrder', this.jgh_1.lgg_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.ogh_1));
            parameter(this_0, 'searchText', this.jgh_1.lgg_1.j39().x65_1.r45(get_nullable(serializer_0(StringCompanionObject_instance)), this.pgh_1));
            pagingSourceLoadParameters(this_0, this.jgh_1.lgg_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.qgh_1);
            tmp_4.wgh_1 = this_0;
            this.wgh_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.xgh_1 = this.vgh_1;
            var tmp_6 = this;
            tmp_6.ygh_1 = this.wgh_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.ygh_1, this.xgh_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.zgh_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.jgh_1.kgg_1, this.zgh_1, this.jgh_1.lgg_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.rgh_1 = endOfPaginationReached(this.zgh_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().d5e(e, 'DoorLog', PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda$lambda(this.sgh_1, this.tgh_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.rgh_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).i86 = function (_pagingParams, completion) {
    var i = new PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda(this.jgh_1, this.kgh_1, this.lgh_1, this.mgh_1, this.ngh_1, this.ogh_1, this.pgh_1, completion);
    i.qgh_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.h86(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda(this$0, $personUid, $accountPersonUid, resultContinuation) {
    this.igi_1 = this$0;
    this.jgi_1 = $personUid;
    this.kgi_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.lgi_1 = this.igi_1.lgg_1;
            var tmp_1 = this;
            tmp_1.mgi_1 = 'PersonDao/findByUidWithDisplayDetailsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ngi_1 = this.igi_1.ngg_1;
            var tmp_3 = this;
            tmp_3.ogi_1 = this.ngi_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.igi_1.lgg_1.j39(), 'PersonDao/findByUidWithDisplayDetailsFlow');
            doorNodeIdHeader(this_0, this.igi_1.lgg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'personUid', this.igi_1.lgg_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.jgi_1));
            parameter(this_0, 'accountPersonUid', this.igi_1.lgg_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.kgi_1));
            tmp_4.pgi_1 = this_0;
            this.pgi_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.qgi_1 = this.ogi_1;
            var tmp_6 = this;
            tmp_6.rgi_1 = this.pgi_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.rgi_1, this.qgi_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.sgi_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.igi_1.kgg_1, this.sgi_1, this.igi_1.lgg_1.j39().x65_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().d5e(e, 'DoorLog', PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda$lambda(this.lgi_1, this.mgi_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).l78 = function (completion) {
    return new PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda(this.igi_1, this.jgi_1, this.kgi_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonDao_Repo$getNamesByUid$slambda(this$0, $uid, resultContinuation) {
    this.bgj_1 = this$0;
    this.cgj_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_Repo$getNamesByUid$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo$getNamesByUid$slambda).m78 = function ($completion) {
    return this.j87($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.dgj_1 = this.bgj_1.lgg_1;
            var tmp_1 = this;
            tmp_1.egj_1 = 'PersonDao/getNamesByUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.fgj_1 = this.bgj_1.ngg_1;
            var tmp_3 = this;
            tmp_3.ggj_1 = this.fgj_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.bgj_1.lgg_1.j39(), 'PersonDao/getNamesByUid');
            doorNodeIdHeader(this_0, this.bgj_1.lgg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.bgj_1.lgg_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.cgj_1));
            tmp_4.hgj_1 = this_0;
            this.hgj_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.igj_1 = this.ggj_1;
            var tmp_6 = this;
            tmp_6.jgj_1 = this.hgj_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.jgj_1, this.igj_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.kgj_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.bgj_1.kgg_1, this.kgj_1, this.bgj_1.lgg_1.j39().x65_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().d5e(e, 'DoorLog', PersonDao_Repo$getNamesByUid$slambda$lambda(this.dgj_1, this.egj_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).l78 = function (completion) {
    return new PersonDao_Repo$getNamesByUid$slambda(this.bgj_1, this.cgj_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.j87($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.tgj_1 = this$0;
    this.ugj_1 = $personUid;
    this.vgj_1 = $username;
    this.wgj_1 = $currentTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_Repo$updateUsername$slambda).g8u = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo$updateUsername$slambda).m78 = function ($completion) {
    return this.g8u($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.tgj_1.mgg_1.sg4(this.ugj_1, this.vgj_1, this.wgj_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).l78 = function (completion) {
    return new PersonDao_Repo$updateUsername$slambda(this.tgj_1, this.ugj_1, this.vgj_1, this.wgj_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.g8u($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.fgk_1 = this$0;
    this.ggk_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.fgk_1.mgg_1.insertAsync(this.ggk_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).l78 = function (completion) {
    return new PersonDao_Repo$insertAsync$slambda(this.fgk_1, this.ggk_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $countUsernameCOROUTINE$329(_this__u8e3s4, username, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.pgk_1 = _this__u8e3s4;
    this.qgk_1 = username;
  }
  protoOf($countUsernameCOROUTINE$329).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 5;
            this.rgk_1 = this.pgk_1.lgg_1.j39().x65_1;
            this.sgk_1 = serializer_1(IntCompanionObject_instance);
            var tmp_0 = this;
            tmp_0.tgk_1 = this.pgk_1.lgg_1;
            var tmp_1 = this;
            tmp_1.ugk_1 = 'PersonDao/countUsername';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.wgk_1 = this.pgk_1.lgg_1.j39().w65_1;
            var tmp_3 = this;
            tmp_3.xgk_1 = this.wgk_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.pgk_1.lgg_1.j39(), 'PersonDao/countUsername');
            doorNodeIdHeader(this_0, this.pgk_1.lgg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'username', this.pgk_1.lgg_1.j39().x65_1.r45(serializer_0(StringCompanionObject_instance), this.qgk_1));
            tmp_4.ygk_1 = this_0;
            this.ygk_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.zgk_1 = this.xgk_1;
            var tmp_6 = this;
            tmp_6.agl_1 = this.ygk_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.agl_1, this.zgk_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

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

            continue $sm;
          case 2:
            this.vgk_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().n5e(e, 'DoorLog', PersonDao_Repo$countUsername$lambda(this.tgk_1, this.ugk_1));
              throw e;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 5;
            var ARGUMENT = this.vgk_1;
            return this.rgk_1.s45(this.sgk_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$334(_this__u8e3s4, accountPersonUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.kgl_1 = _this__u8e3s4;
    this.lgl_1 = accountPersonUid;
  }
  protoOf($findByUidWithPictureCOROUTINE$334).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.mgl_1 = this.kgl_1.lgg_1;
            var tmp_1 = this;
            tmp_1.ngl_1 = 'PersonDao/findByUidWithPicture';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ogl_1 = this.kgl_1.ngg_1;
            var tmp_3 = this;
            tmp_3.pgl_1 = this.ogl_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.kgl_1.lgg_1.j39(), 'PersonDao/findByUidWithPicture');
            doorNodeIdHeader(this_0, this.kgl_1.lgg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.kgl_1.lgg_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.lgl_1));
            tmp_4.qgl_1 = this_0;
            this.qgl_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.rgl_1 = this.pgl_1;
            var tmp_6 = this;
            tmp_6.sgl_1 = this.qgl_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.sgl_1, this.rgl_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.tgl_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.kgl_1.kgg_1, this.tgl_1, this.kgl_1.lgg_1.j39().x65_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.ugl_1 = this.kd_1;
              Napier_getInstance().d5e(this.ugl_1, 'DoorLog', PersonDao_Repo$findByUidWithPicture$lambda(this.mgl_1, this.ngl_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.kgl_1.mgg_1.lg4(this.lgl_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$335(_this__u8e3s4, uid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.dgm_1 = _this__u8e3s4;
    this.egm_1 = uid;
  }
  protoOf($findByUidAsyncCOROUTINE$335).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.fgm_1 = this.dgm_1.lgg_1;
            var tmp_1 = this;
            tmp_1.ggm_1 = 'PersonDao/findByUidAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.hgm_1 = this.dgm_1.ngg_1;
            var tmp_3 = this;
            tmp_3.igm_1 = this.hgm_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.dgm_1.lgg_1.j39(), 'PersonDao/findByUidAsync');
            doorNodeIdHeader(this_0, this.dgm_1.lgg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.dgm_1.lgg_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.egm_1));
            tmp_4.jgm_1 = this_0;
            this.jgm_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.kgm_1 = this.igm_1;
            var tmp_6 = this;
            tmp_6.lgm_1 = this.jgm_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.lgm_1, this.kgm_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.mgm_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.dgm_1.kgg_1, this.mgm_1, this.dgm_1.lgg_1.j39().x65_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.ngm_1 = this.kd_1;
              Napier_getInstance().d5e(this.ngm_1, 'DoorLog', PersonDao_Repo$findByUidAsync$lambda(this.fgm_1, this.ggm_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.dgm_1.mgg_1.mg4(this.egm_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$336(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.wgm_1 = _this__u8e3s4;
    this.xgm_1 = entity;
  }
  protoOf($updateAsyncCOROUTINE$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 = withRepoChangeMonitorAsync(this.wgm_1.lgg_1, 'Person', PersonDao_Repo$updateAsync$slambda_0(this.wgm_1, this.xgm_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$339(_this__u8e3s4, uid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ggn_1 = _this__u8e3s4;
    this.hgn_1 = uid;
  }
  protoOf($getNamesByUidAsyncCOROUTINE$339).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.ign_1 = this.ggn_1.lgg_1;
            var tmp_1 = this;
            tmp_1.jgn_1 = 'PersonDao/getNamesByUidAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.kgn_1 = this.ggn_1.ngg_1;
            var tmp_3 = this;
            tmp_3.lgn_1 = this.kgn_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ggn_1.lgg_1.j39(), 'PersonDao/getNamesByUidAsync');
            doorNodeIdHeader(this_0, this.ggn_1.lgg_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.ggn_1.lgg_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.hgn_1));
            tmp_4.mgn_1 = this_0;
            this.mgn_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.ngn_1 = this.lgn_1;
            var tmp_6 = this;
            tmp_6.ogn_1 = this.mgn_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.ogn_1, this.ngn_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.pgn_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ggn_1.kgg_1, this.pgn_1, this.ggn_1.lgg_1.j39().x65_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.qgn_1 = this.kd_1;
              Napier_getInstance().d5e(this.qgn_1, 'DoorLog', PersonDao_Repo$getNamesByUidAsync$lambda(this.ign_1, this.jgn_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.ggn_1.mgg_1.rg4(this.hgn_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$341(_this__u8e3s4, personUid, username, currentTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zgn_1 = _this__u8e3s4;
    this.ago_1 = personUid;
    this.bgo_1 = username;
    this.cgo_1 = currentTime;
  }
  protoOf($updateUsernameCOROUTINE$341).ud = function () {
    var 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.zgn_1.lgg_1, 'Person', PersonDao_Repo$updateUsername$slambda_0(this.zgn_1, this.ago_1, this.bgo_1, this.cgo_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$343(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.lgo_1 = _this__u8e3s4;
    this.mgo_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$343).ud = function () {
    var 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.lgo_1.lgg_1, 'Person', PersonDao_Repo$insertAsync$slambda_0(this.lgo_1, this.mgo_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.kgg_1 = _db;
    this.lgg_1 = _repo;
    this.mgg_1 = _dao;
    this.ngg_1 = _httpClient;
    this.ogg_1 = _clientId;
    this.pgg_1 = _endpoint;
    this.qgg_1 = new RepoDaoFlowHelper(this.lgg_1);
  }
  protoOf(PersonDao_Repo).jg4 = function (entityList, $completion) {
    return withRepoChangeMonitorAsync(this.lgg_1, 'Person', PersonDao_Repo$insertListAsync$slambda_0(this, entityList, null), $completion);
  };
  protoOf(PersonDao_Repo).kg4 = function (username, $completion) {
    var tmp = new $countUsernameCOROUTINE$329(this, username, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo).lg4 = function (accountPersonUid, $completion) {
    var tmp = new $findByUidWithPictureCOROUTINE$334(this, accountPersonUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo).gcl = function (uid) {
    var _result = this.mgg_1.gcl(uid);
    return _result;
  };
  protoOf(PersonDao_Repo).mg4 = function (uid, $completion) {
    var tmp = new $findByUidAsyncCOROUTINE$335(this, uid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo).ng4 = function (entity, $completion) {
    var tmp = new $updateAsyncCOROUTINE$336(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo).og4 = function (timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText) {
    var tmp = this.mgg_1.og4(timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText);
    return new DoorRepositoryReplicatePullPagingSource(this.lgg_1, 'PersonDao/findPersonsWithPermissionAsPagingSource', tmp, PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda_0(this, timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText, null));
  };
  protoOf(PersonDao_Repo).pg4 = function (personUid, accountPersonUid) {
    var tmp = this.mgg_1.pg4(personUid, accountPersonUid);
    return this.qgg_1.o67(tmp, PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda_0(this, personUid, accountPersonUid, null));
  };
  protoOf(PersonDao_Repo).qg4 = function (uid) {
    var tmp = this.mgg_1.qg4(uid);
    return this.qgg_1.o67(tmp, PersonDao_Repo$getNamesByUid$slambda_0(this, uid, null));
  };
  protoOf(PersonDao_Repo).rg4 = function (uid, $completion) {
    var tmp = new $getNamesByUidAsyncCOROUTINE$339(this, uid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo).sg4 = function (personUid, username, currentTime, $completion) {
    var tmp = new $updateUsernameCOROUTINE$341(this, personUid, username, currentTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo).yg5 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$343(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonDao_Repo).insertAsync = function (entity, $completion) {
    return this.yg5(entity instanceof Person ? entity : THROW_CCE(), $completion);
  };
  function PersonGroupDao() {
  }
  function $insertAsyncCOROUTINE$344(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vgo_1 = _this__u8e3s4;
    this.wgo_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$344).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.xgo_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.vgo_1.zgo_1));
            if (this.wgo_1.cga_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.xgo_1.o62(43, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.ygo_1 = suspendResult;
            this.wgo_1.cga_1 = this.ygo_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.wgo_1.gga_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.vgo_1.agp_1.insertAsync(this.wgo_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.wgo_1.cga_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.zgo_1 = _db;
    this.agp_1 = _dao;
  }
  protoOf(PersonGroupDao_DoorWrapper).bgp = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$344(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonGroupDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.bgp(entity instanceof PersonGroup ? entity : THROW_CCE(), $completion);
  };
  function PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.cgp_1);
  }
  protoOf(PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO PersonGroup (groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).bga = function (stmt, entity) {
    if (entity.cga_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.cga_1);
    }
    stmt.v5h(2, entity.dga_1);
    stmt.v5h(3, entity.ega_1);
    stmt.u5h(4, entity.fga_1);
    stmt.v5h(5, entity.gga_1);
    stmt.y5h(6, entity.hga_1);
    stmt.i5h(7, entity.iga_1);
    stmt.u5h(8, entity.jga_1);
  };
  protoOf(PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).p5f = function (stmt, entity) {
    return this.bga(stmt, entity instanceof PersonGroup ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$345(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ogp_1 = _this__u8e3s4;
    this.pgp_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$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.hd_1 = 1;
            suspendResult = this.ogp_1.dgp_1.w5g(this.pgp_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.cgp_1 = _db;
    var tmp = this;
    tmp.dgp_1 = new PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1(this);
  }
  protoOf(PersonGroupDao_JdbcImpl).bgp = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$345(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonGroupDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.bgp(entity instanceof PersonGroup ? entity : THROW_CCE(), $completion);
  };
  function PersonGroupDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.ygp_1 = this$0;
    this.zgp_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonGroupDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonGroupDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.ygp_1.cgq_1.insertAsync(this.zgp_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).l78 = function (completion) {
    return new PersonGroupDao_Repo$insertAsync$slambda(this.ygp_1, this.zgp_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$350(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ogq_1 = _this__u8e3s4;
    this.pgq_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$350).ud = function () {
    var 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.ogq_1.bgq_1, 'PersonGroup', PersonGroupDao_Repo$insertAsync$slambda_0(this.ogq_1, this.pgq_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.agq_1 = _db;
    this.bgq_1 = _repo;
    this.cgq_1 = _dao;
    this.dgq_1 = _httpClient;
    this.egq_1 = _clientId;
    this.fgq_1 = _endpoint;
  }
  protoOf(PersonGroupDao_Repo).bgp = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$350(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonGroupDao_Repo).insertAsync = function (entity, $completion) {
    return this.bgp(entity instanceof PersonGroup ? entity : THROW_CCE(), $completion);
  };
  function PersonGroupMemberDao() {
  }
  function $insertAsyncCOROUTINE$351(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ygq_1 = _this__u8e3s4;
    this.zgq_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$351).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.agr_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.ygq_1.cgr_1));
            if (this.zgq_1.nga_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.agr_1.o62(44, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.bgr_1 = suspendResult;
            this.zgq_1.nga_1 = this.bgr_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.zgq_1.uga_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.ygq_1.dgr_1.insertAsync(this.zgq_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.zgq_1.nga_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.cgr_1 = _db;
    this.dgr_1 = _dao;
  }
  protoOf(PersonGroupMemberDao_DoorWrapper).egr = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$351(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonGroupMemberDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.egr(entity instanceof PersonGroupMember ? entity : THROW_CCE(), $completion);
  };
  function PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.fgr_1);
  }
  protoOf(PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO PersonGroupMember (groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).mga = function (stmt, entity) {
    if (entity.nga_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.nga_1);
    }
    stmt.i5h(2, entity.oga_1);
    stmt.v5h(3, entity.pga_1);
    stmt.v5h(4, entity.qga_1);
    stmt.v5h(5, entity.rga_1);
    stmt.v5h(6, entity.sga_1);
    stmt.u5h(7, entity.tga_1);
    stmt.v5h(8, entity.uga_1);
  };
  protoOf(PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).p5f = function (stmt, entity) {
    return this.mga(stmt, entity instanceof PersonGroupMember ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$352(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.rgr_1 = _this__u8e3s4;
    this.sgr_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$352).ud = function () {
    var 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.rgr_1.ggr_1.w5g(this.sgr_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.fgr_1 = _db;
    var tmp = this;
    tmp.ggr_1 = new PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1(this);
  }
  protoOf(PersonGroupMemberDao_JdbcImpl).egr = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$352(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonGroupMemberDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.egr(entity instanceof PersonGroupMember ? entity : THROW_CCE(), $completion);
  };
  function PersonGroupMemberDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.bgs_1 = this$0;
    this.cgs_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonGroupMemberDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonGroupMemberDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.bgs_1.fgs_1.insertAsync(this.cgs_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).l78 = function (completion) {
    return new PersonGroupMemberDao_Repo$insertAsync$slambda(this.bgs_1, this.cgs_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$358(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.rgs_1 = _this__u8e3s4;
    this.sgs_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$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;
            suspendResult = withRepoChangeMonitorAsync(this.rgs_1.egs_1, 'PersonGroupMember', PersonGroupMemberDao_Repo$insertAsync$slambda_0(this.rgs_1, this.sgs_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.dgs_1 = _db;
    this.egs_1 = _repo;
    this.fgs_1 = _dao;
    this.ggs_1 = _httpClient;
    this.hgs_1 = _clientId;
    this.igs_1 = _endpoint;
  }
  protoOf(PersonGroupMemberDao_Repo).egr = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$358(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonGroupMemberDao_Repo).insertAsync = function (entity, $completion) {
    return this.egr(entity instanceof PersonGroupMember ? entity : THROW_CCE(), $completion);
  };
  function PersonParentJoinDao() {
  }
  function $insertListAsyncCOROUTINE$359(_this__u8e3s4, entityList, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ggt_1 = _this__u8e3s4;
    this.hgt_1 = entityList;
  }
  protoOf($insertListAsyncCOROUTINE$359).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.igt_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.ggt_1.pgt_1));
            var tmp_0 = this;
            tmp_0.jgt_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.kgt_1 = this.hgt_1.w();
            var tmp_2 = this;
            tmp_2.lgt_1 = this.kgt_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.lgt_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.mgt_1 = this.lgt_1.e();
            var tmp_3 = this;
            tmp_3.ngt_1 = this.mgt_1;
            if (this.ngt_1.zg7_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.igt_1.o62(512, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.ogt_1 = suspendResult;
            this.ngt_1.zg7_1 = this.ogt_1;
            var this_0 = this.jgt_1;
            var element = this.ogt_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.ngt_1.dg8_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.ggt_1.qgt_1.tgs(this.hgt_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 $upsertAsyncCOROUTINE$360(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zgt_1 = _this__u8e3s4;
    this.agu_1 = entity;
  }
  protoOf($upsertAsyncCOROUTINE$360).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.bgu_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.zgt_1.pgt_1));
            if (this.agu_1.zg7_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.bgu_1.o62(512, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.cgu_1 = suspendResult;
            this.agu_1.zg7_1 = this.cgu_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.agu_1.dg8_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.zgt_1.qgt_1.ugs(this.agu_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.agu_1.zg7_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.pgt_1 = _db;
    this.qgt_1 = _dao;
  }
  protoOf(PersonParentJoinDao_DoorWrapper).tgs = function (entityList, $completion) {
    var tmp = new $insertListAsyncCOROUTINE$359(this, entityList, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonParentJoinDao_DoorWrapper).ugs = function (entity, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$360(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonParentJoinDao_DoorWrapper).vgs = function (uid, $completion) {
    return this.qgt_1.vgs(uid, $completion);
  };
  protoOf(PersonParentJoinDao_DoorWrapper).wgs = function (personParentJoin, $completion) {
    personParentJoin.dg8_1 = systemTimeInMillis();
    return this.qgt_1.wgs(personParentJoin, $completion);
  };
  protoOf(PersonParentJoinDao_DoorWrapper).xgs = function (minorPersonUid, $completion) {
    return this.qgt_1.xgs(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.y5m('ppjUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_ppjPcsn = $_result.y5m('ppjPcsn');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_ppjLcsn = $_result.y5m('ppjLcsn');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_ppjLcb = $_result.x5m('ppjLcb');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_ppjLct = $_result.y5m('ppjLct');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_ppjParentPersonUid = $_result.y5m('ppjParentPersonUid');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_ppjMinorPersonUid = $_result.y5m('ppjMinorPersonUid');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_ppjRelationship = $_result.x5m('ppjRelationship');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_ppjEmail = $_result.rz('ppjEmail');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_ppjPhone = $_result.rz('ppjPhone');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_ppjInactive = $_result.j66('ppjInactive');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_ppjStatus = $_result.x5m('ppjStatus');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_ppjApprovalTiemstamp = $_result.y5m('ppjApprovalTiemstamp');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_ppjApprovalIpAddr = $_result.rz('ppjApprovalIpAddr');
      var tmp_12;
      if ($_result.q67()) {
        _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.y5m('personUid');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_gender = $_result.x5m('gender');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_active = $_result.j66('active');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_isPersonalAccount = $_result.j66('isPersonalAccount');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.y5m('dateOfBirth');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.y5m('personGroupUid');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personLct = $_result.y5m('personLct');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_personType = $_result.x5m('personType');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.y5m('personMasterChangeSeqNum');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.y5m('personLocalChangeSeqNum');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.x5m('personLastChangedBy');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_admin = $_result.j66('admin');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_36;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_37;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 25;
      // 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_38 = 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.zg7_1 = _tmp_ppjUid;
        this_1.ag8_1 = _tmp_ppjPcsn;
        this_1.bg8_1 = _tmp_ppjLcsn;
        this_1.cg8_1 = _tmp_ppjLcb;
        this_1.dg8_1 = _tmp_ppjLct;
        this_1.eg8_1 = _tmp_ppjParentPersonUid;
        this_1.fg8_1 = _tmp_ppjMinorPersonUid;
        this_1.gg8_1 = _tmp_ppjRelationship;
        this_1.hg8_1 = _tmp_ppjEmail;
        this_1.ig8_1 = _tmp_ppjPhone;
        this_1.jg8_1 = _tmp_ppjInactive;
        this_1.kg8_1 = _tmp_ppjStatus;
        this_1.lg8_1 = _tmp_ppjApprovalTiemstamp;
        this_1.mg8_1 = _tmp_ppjApprovalIpAddr;
        tmp_38.dgu_1 = this_1;
      }
      if (!_tmp_Person_isAllNull) {
        var tmp_39 = 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.f96_1 = _tmp_personUid;
        this_2.g96_1 = _tmp_username;
        this_2.h96_1 = _tmp_firstNames;
        this_2.i96_1 = _tmp_lastName;
        this_2.j96_1 = _tmp_emailAddr;
        this_2.k96_1 = _tmp_phoneNum;
        this_2.l96_1 = _tmp_gender;
        this_2.m96_1 = _tmp_active;
        this_2.n96_1 = _tmp_isPersonalAccount;
        this_2.o96_1 = _tmp_dateOfBirth;
        this_2.p96_1 = _tmp_personAddress;
        this_2.q96_1 = _tmp_personOrgId;
        this_2.r96_1 = _tmp_personGroupUid;
        this_2.s96_1 = _tmp_personLct;
        this_2.t96_1 = _tmp_personCountry;
        this_2.u96_1 = _tmp_personType;
        this_2.v96_1 = _tmp_personMasterChangeSeqNum;
        this_2.w96_1 = _tmp_personLocalChangeSeqNum;
        this_2.x96_1 = _tmp_personLastChangedBy;
        this_2.y96_1 = _tmp_admin;
        this_2.z96_1 = _tmp_personNotes;
        this_2.a97_1 = _tmp_fatherName;
        this_2.b97_1 = _tmp_fatherNumber;
        this_2.c97_1 = _tmp_motherName;
        this_2.d97_1 = _tmp_motherNum;
        tmp_39.egu_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.n74(1);
    };
  }
  function PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.fgu_1);
  }
  protoOf(PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO PersonParentJoin (ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_abort$1).kgu = function (stmt, entity) {
    if (entity.zg7_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.zg7_1);
    }
    stmt.v5h(2, entity.ag8_1);
    stmt.v5h(3, entity.bg8_1);
    stmt.u5h(4, entity.cg8_1);
    stmt.v5h(5, entity.dg8_1);
    stmt.v5h(6, entity.eg8_1);
    stmt.v5h(7, entity.fg8_1);
    stmt.u5h(8, entity.gg8_1);
    stmt.y5h(9, entity.hg8_1);
    stmt.y5h(10, entity.ig8_1);
    stmt.i5h(11, entity.jg8_1);
    stmt.u5h(12, entity.kg8_1);
    stmt.v5h(13, entity.lg8_1);
    stmt.y5h(14, entity.mg8_1);
  };
  protoOf(PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_abort$1).p5f = function (stmt, entity) {
    return this.kgu(stmt, entity instanceof PersonParentJoin ? entity : THROW_CCE());
  };
  function PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.fgu_1);
  }
  protoOf(PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1).u5g = 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).kgu = function (stmt, entity) {
    if (entity.zg7_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.zg7_1);
    }
    stmt.v5h(2, entity.ag8_1);
    stmt.v5h(3, entity.bg8_1);
    stmt.u5h(4, entity.cg8_1);
    stmt.v5h(5, entity.dg8_1);
    stmt.v5h(6, entity.eg8_1);
    stmt.v5h(7, entity.fg8_1);
    stmt.u5h(8, entity.gg8_1);
    stmt.y5h(9, entity.hg8_1);
    stmt.y5h(10, entity.ig8_1);
    stmt.i5h(11, entity.jg8_1);
    stmt.u5h(12, entity.kg8_1);
    stmt.v5h(13, entity.lg8_1);
    stmt.y5h(14, entity.mg8_1);
  };
  protoOf(PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1).p5f = function (stmt, entity) {
    return this.kgu(stmt, entity instanceof PersonParentJoin ? entity : THROW_CCE());
  };
  function PersonParentJoinDao_JdbcImpl$updateAsync$slambda($personParentJoin, resultContinuation) {
    this.vgu_1 = $personParentJoin;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonParentJoinDao_JdbcImpl$updateAsync$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.wgu_1.v5h(1, this.vgu_1.ag8_1);
            this.wgu_1.v5h(2, this.vgu_1.bg8_1);
            this.wgu_1.u5h(3, this.vgu_1.cg8_1);
            this.wgu_1.v5h(4, this.vgu_1.dg8_1);
            this.wgu_1.v5h(5, this.vgu_1.eg8_1);
            this.wgu_1.v5h(6, this.vgu_1.fg8_1);
            this.wgu_1.u5h(7, this.vgu_1.gg8_1);
            this.wgu_1.y5h(8, this.vgu_1.hg8_1);
            this.wgu_1.y5h(9, this.vgu_1.ig8_1);
            this.wgu_1.i5h(10, this.vgu_1.jg8_1);
            this.wgu_1.u5h(11, this.vgu_1.kg8_1);
            this.wgu_1.v5h(12, this.vgu_1.lg8_1);
            this.wgu_1.y5h(13, this.vgu_1.mg8_1);
            this.wgu_1.v5h(14, this.vgu_1.zg7_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.wgu_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).m5f = function (_stmt, completion) {
    var i = new PersonParentJoinDao_JdbcImpl$updateAsync$slambda(this.vgu_1, completion);
    i.wgu_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda($uid, resultContinuation) {
    this.fgv_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda).hgv = function (_stmt, $completion) {
    var tmp = this.m5f(_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.hgv((!(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.ggv_1.v5h(1, this.fgv_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ggv_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).m5f = function (_stmt, completion) {
    var i = new PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda(this.fgv_1, completion);
    i.ggv_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.hgv(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda($minorPersonUid, resultContinuation) {
    this.qgv_1 = $minorPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda).ta6 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ta6((!(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.rgv_1.v5h(1, this.qgv_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.rgv_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).m5f = function (_stmt, completion) {
    var i = new PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda(this.qgv_1, completion);
    i.rgv_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.ta6(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $upsertAsyncCOROUTINE$361(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.agw_1 = _this__u8e3s4;
    this.bgw_1 = entity;
  }
  protoOf($upsertAsyncCOROUTINE$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 = this.agw_1.hgu_1.w5g(this.bgw_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$362(_this__u8e3s4, personParentJoin, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.kgw_1 = _this__u8e3s4;
    this.lgw_1 = personParentJoin;
  }
  protoOf($updateAsyncCOROUTINE$362).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.mgw_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.kgw_1.fgu_1, this.mgw_1, VOID, PersonParentJoinDao_JdbcImpl$updateAsync$slambda_0(this.lgw_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.fgu_1 = _db;
    var tmp = this;
    tmp.ggu_1 = new PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_abort$1(this);
    var tmp_0 = this;
    tmp_0.hgu_1 = new PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1(this);
  }
  protoOf(PersonParentJoinDao_JdbcImpl).tgs = function (entityList, $completion) {
    return this.ggu_1.z5g(entityList, $completion);
  };
  protoOf(PersonParentJoinDao_JdbcImpl).ugs = function (entity, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$361(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonParentJoinDao_JdbcImpl).wgs = function (personParentJoin, $completion) {
    var tmp = new $updateAsyncCOROUTINE$362(this, personParentJoin, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonParentJoinDao_JdbcImpl).vgs = 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.fgu_1, tmp, PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda_0(uid, null), $completion);
  };
  protoOf(PersonParentJoinDao_JdbcImpl).xgs = 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.fgu_1, tmp, PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda_0(minorPersonUid, null), $completion);
  };
  function PersonParentJoinDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation) {
    this.vgw_1 = this$0;
    this.wgw_1 = $entityList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonParentJoinDao_Repo$insertListAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonParentJoinDao_Repo$insertListAsync$slambda).m78 = function ($completion) {
    return this.j87($completion);
  };
  protoOf(PersonParentJoinDao_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.vgw_1.zgw_1.tgs(this.wgw_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$insertListAsync$slambda).l78 = function (completion) {
    return new PersonParentJoinDao_Repo$insertListAsync$slambda(this.vgw_1, this.wgw_1, completion);
  };
  function PersonParentJoinDao_Repo$insertListAsync$slambda_0(this$0, $entityList, resultContinuation) {
    var i = new PersonParentJoinDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation);
    var l = function ($completion) {
      return i.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonParentJoinDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation) {
    this.lgx_1 = this$0;
    this.mgx_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonParentJoinDao_Repo$upsertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonParentJoinDao_Repo$upsertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.lgx_1.zgw_1.ugs(this.mgx_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).l78 = function (completion) {
    return new PersonParentJoinDao_Repo$upsertAsync$slambda(this.lgx_1, this.mgx_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.k89($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.vgx_1 = this$0;
    this.wgx_1 = $personParentJoin;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonParentJoinDao_Repo$updateAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonParentJoinDao_Repo$updateAsync$slambda).m78 = function ($completion) {
    return this.j87($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.vgx_1.zgw_1.wgs(this.wgx_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).l78 = function (completion) {
    return new PersonParentJoinDao_Repo$updateAsync$slambda(this.vgx_1, this.wgx_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonParentJoinDao_Repo$isMinorApproved$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function $upsertAsyncCOROUTINE$363(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.fgy_1 = _this__u8e3s4;
    this.ggy_1 = entity;
  }
  protoOf($upsertAsyncCOROUTINE$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 = withRepoChangeMonitorAsync(this.fgy_1.ygw_1, 'PersonParentJoin', PersonParentJoinDao_Repo$upsertAsync$slambda_0(this.fgy_1, this.ggy_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$364(_this__u8e3s4, uid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.pgy_1 = _this__u8e3s4;
    this.qgy_1 = uid;
  }
  protoOf($findByUidWithMinorAsyncCOROUTINE$364).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.rgy_1 = this.pgy_1.ygw_1;
            var tmp_1 = this;
            tmp_1.sgy_1 = 'PersonParentJoinDao/findByUidWithMinorAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.tgy_1 = this.pgy_1.agx_1;
            var tmp_3 = this;
            tmp_3.ugy_1 = this.tgy_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.pgy_1.ygw_1.j39(), 'PersonParentJoinDao/findByUidWithMinorAsync');
            doorNodeIdHeader(this_0, this.pgy_1.ygw_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.pgy_1.ygw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.qgy_1));
            tmp_4.vgy_1 = this_0;
            this.vgy_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.wgy_1 = this.ugy_1;
            var tmp_6 = this;
            tmp_6.xgy_1 = this.vgy_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.xgy_1, this.wgy_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.ygy_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.pgy_1.xgw_1, this.ygy_1, this.pgy_1.ygw_1.j39().x65_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.zgy_1 = this.kd_1;
              Napier_getInstance().d5e(this.zgy_1, 'DoorLog', PersonParentJoinDao_Repo$findByUidWithMinorAsync$lambda(this.rgy_1, this.sgy_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.pgy_1.zgw_1.vgs(this.qgy_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$369(_this__u8e3s4, minorPersonUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.igz_1 = _this__u8e3s4;
    this.jgz_1 = minorPersonUid;
  }
  protoOf($isMinorApprovedCOROUTINE$369).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.kgz_1 = this.igz_1.ygw_1;
            var tmp_1 = this;
            tmp_1.lgz_1 = 'PersonParentJoinDao/isMinorApproved';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.mgz_1 = this.igz_1.agx_1;
            var tmp_3 = this;
            tmp_3.ngz_1 = this.mgz_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.igz_1.ygw_1.j39(), 'PersonParentJoinDao/isMinorApproved');
            doorNodeIdHeader(this_0, this.igz_1.ygw_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'minorPersonUid', this.igz_1.ygw_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.jgz_1));
            tmp_4.ogz_1 = this_0;
            this.ogz_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.pgz_1 = this.ngz_1;
            var tmp_6 = this;
            tmp_6.qgz_1 = this.ogz_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.qgz_1, this.pgz_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.rgz_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.igz_1.xgw_1, this.rgz_1, this.igz_1.ygw_1.j39().x65_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.sgz_1 = this.kd_1;
              Napier_getInstance().d5e(this.sgz_1, 'DoorLog', PersonParentJoinDao_Repo$isMinorApproved$lambda(this.kgz_1, this.lgz_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.igz_1.zgw_1.xgs(this.jgz_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.xgw_1 = _db;
    this.ygw_1 = _repo;
    this.zgw_1 = _dao;
    this.agx_1 = _httpClient;
    this.bgx_1 = _clientId;
    this.cgx_1 = _endpoint;
  }
  protoOf(PersonParentJoinDao_Repo).tgs = function (entityList, $completion) {
    return withRepoChangeMonitorAsync(this.ygw_1, 'PersonParentJoin', PersonParentJoinDao_Repo$insertListAsync$slambda_0(this, entityList, null), $completion);
  };
  protoOf(PersonParentJoinDao_Repo).ugs = function (entity, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$363(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonParentJoinDao_Repo).vgs = function (uid, $completion) {
    var tmp = new $findByUidWithMinorAsyncCOROUTINE$364(this, uid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonParentJoinDao_Repo).wgs = function (personParentJoin, $completion) {
    return withRepoChangeMonitorAsync(this.ygw_1, 'PersonParentJoin', PersonParentJoinDao_Repo$updateAsync$slambda_0(this, personParentJoin, null), $completion);
  };
  protoOf(PersonParentJoinDao_Repo).xgs = function (minorPersonUid, $completion) {
    var tmp = new $isMinorApprovedCOROUTINE$369(this, minorPersonUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function PersonPasskeyDao() {
  }
  function $insertAsyncCOROUTINE$370(_this__u8e3s4, personPasskey, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.dh0_1 = _this__u8e3s4;
    this.eh0_1 = personPasskey;
  }
  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 = 4;
            this.fh0_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.dh0_1.hh0_1));
            if (this.eh0_1.jh0_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.fh0_1.o62(892, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.gh0_1 = suspendResult;
            this.eh0_1.jh0_1 = this.gh0_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.eh0_1.sh0_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.dh0_1.ih0_1.tgz(this.eh0_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.eh0_1.jh0_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 PersonPasskeyDao_DoorWrapper(_db, _dao) {
    PersonPasskeyDao.call(this);
    this.hh0_1 = _db;
    this.ih0_1 = _dao;
  }
  protoOf(PersonPasskeyDao_DoorWrapper).tgz = function (personPasskey, $completion) {
    var tmp = new $insertAsyncCOROUTINE$370(this, personPasskey, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPasskeyDao_DoorWrapper).ugz = function (uid) {
    return this.ih0_1.ugz(uid);
  };
  function PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda$slambda$lambda(_result) {
    return mapRows(_result, PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda$slambda$lambda$lambda(_result));
  }
  function PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_personPasskeyUid = $_result.y5m('personPasskeyUid');
      var _tmp_ppPersonUid = $_result.y5m('ppPersonUid');
      var _tmp_ppAttestationObj = $_result.rz('ppAttestationObj');
      var _tmp_ppClientDataJson = $_result.rz('ppClientDataJson');
      var _tmp_ppOriginString = $_result.rz('ppOriginString');
      var _tmp_ppId = $_result.rz('ppId');
      var _tmp_ppChallengeString = $_result.rz('ppChallengeString');
      var _tmp_ppPublicKey = $_result.rz('ppPublicKey');
      var _tmp_isRevoked = $_result.x5m('isRevoked');
      var _tmp_ppPasskeyLct = $_result.y5m('ppPasskeyLct');
      // Inline function 'kotlin.apply' call
      var this_0 = new PersonPasskey();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.PersonPasskeyDao_JdbcImpl.getAllActivePasskeys.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.jh0_1 = _tmp_personPasskeyUid;
      this_0.kh0_1 = _tmp_ppPersonUid;
      this_0.lh0_1 = _tmp_ppAttestationObj;
      this_0.mh0_1 = _tmp_ppClientDataJson;
      this_0.nh0_1 = _tmp_ppOriginString;
      this_0.oh0_1 = _tmp_ppId;
      this_0.ph0_1 = _tmp_ppChallengeString;
      this_0.qh0_1 = _tmp_ppPublicKey;
      this_0.rh0_1 = _tmp_isRevoked;
      this_0.sh0_1 = _tmp_ppPasskeyLct;
      return this_0;
    };
  }
  function PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda$slambda($uid, resultContinuation) {
    this.bh1_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda$slambda).dh1 = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda$slambda).he = function (p1, $completion) {
    return this.dh1((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$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.ch1_1.v5h(1, this.bh1_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ch1_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$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(PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda$slambda).m5f = function (_stmt, completion) {
    var i = new PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda$slambda(this.bh1_1, completion);
    i.ch1_1 = _stmt;
    return i;
  };
  function PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda$slambda_0($uid, resultContinuation) {
    var i = new PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda$slambda($uid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.dh1(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonPasskeyDao_JdbcImpl$_insertAdapterPersonPasskey_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.eh1_1);
  }
  protoOf(PersonPasskeyDao_JdbcImpl$_insertAdapterPersonPasskey_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO PersonPasskey (personPasskeyUid, ppPersonUid, ppAttestationObj, ppClientDataJson, ppOriginString, ppId, ppChallengeString, ppPublicKey, isRevoked, ppPasskeyLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonPasskeyDao_JdbcImpl$_insertAdapterPersonPasskey_abort$1).ih1 = function (stmt, entity) {
    if (entity.jh0_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.jh0_1);
    }
    stmt.v5h(2, entity.kh0_1);
    stmt.y5h(3, entity.lh0_1);
    stmt.y5h(4, entity.mh0_1);
    stmt.y5h(5, entity.nh0_1);
    stmt.y5h(6, entity.oh0_1);
    stmt.y5h(7, entity.ph0_1);
    stmt.y5h(8, entity.qh0_1);
    stmt.u5h(9, entity.rh0_1);
    stmt.v5h(10, entity.sh0_1);
  };
  protoOf(PersonPasskeyDao_JdbcImpl$_insertAdapterPersonPasskey_abort$1).p5f = function (stmt, entity) {
    return this.ih1(stmt, entity instanceof PersonPasskey ? entity : THROW_CCE());
  };
  function PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda(this$0, $uid, resultContinuation) {
    this.rh1_1 = this$0;
    this.sh1_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda).th1 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda).m78 = function ($completion) {
    return this.th1($completion);
  };
  protoOf(PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda).ud = function () {
    var 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 PersonPasskey\n         WHERE isRevoked = 0\n         AND PersonPasskey.ppPersonUid = CAST(? AS BIGINT)\n              ', VOID, VOID, VOID, '\n        SELECT * \n          FROM PersonPasskey\n         WHERE isRevoked = 0\n         AND PersonPasskey.ppPersonUid = ?\n              \n', true);
            suspendResult = prepareAndUseStatementAsync(this.rh1_1.eh1_1, tmp_0, PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda$slambda_0(this.sh1_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(PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda).l78 = function (completion) {
    return new PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda(this.rh1_1, this.sh1_1, completion);
  };
  function PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda_0(this$0, $uid, resultContinuation) {
    var i = new PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda(this$0, $uid, resultContinuation);
    var l = function ($completion) {
      return i.th1($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$371(_this__u8e3s4, personPasskey, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ch2_1 = _this__u8e3s4;
    this.dh2_1 = personPasskey;
  }
  protoOf($insertAsyncCOROUTINE$371).ud = function () {
    var 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.ch2_1.fh1_1.w5g(this.dh2_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 PersonPasskeyDao_JdbcImpl(_db) {
    PersonPasskeyDao.call(this);
    this.eh1_1 = _db;
    var tmp = this;
    tmp.fh1_1 = new PersonPasskeyDao_JdbcImpl$_insertAdapterPersonPasskey_abort$1(this);
  }
  protoOf(PersonPasskeyDao_JdbcImpl).tgz = function (personPasskey, $completion) {
    var tmp = new $insertAsyncCOROUTINE$371(this, personPasskey, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPasskeyDao_JdbcImpl).ugz = function (uid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['PersonPasskey'];
    return doorFlow(this.eh1_1, tmp, PersonPasskeyDao_JdbcImpl$getAllActivePasskeys$slambda_0(this, uid, null));
  };
  function PersonPasskeyDao_Repo$getAllActivePasskeys$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function PersonPasskeyDao_Repo$insertAsync$slambda(this$0, $personPasskey, resultContinuation) {
    this.mh2_1 = this$0;
    this.nh2_1 = $personPasskey;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonPasskeyDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPasskeyDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($completion);
  };
  protoOf(PersonPasskeyDao_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.mh2_1.qh2_1.tgz(this.nh2_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(PersonPasskeyDao_Repo$insertAsync$slambda).l78 = function (completion) {
    return new PersonPasskeyDao_Repo$insertAsync$slambda(this.mh2_1, this.nh2_1, completion);
  };
  function PersonPasskeyDao_Repo$insertAsync$slambda_0(this$0, $personPasskey, resultContinuation) {
    var i = new PersonPasskeyDao_Repo$insertAsync$slambda(this$0, $personPasskey, resultContinuation);
    var l = function ($completion) {
      return i.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonPasskeyDao_Repo$getAllActivePasskeys$slambda(this$0, $uid, resultContinuation) {
    this.dh3_1 = this$0;
    this.eh3_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonPasskeyDao_Repo$getAllActivePasskeys$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPasskeyDao_Repo$getAllActivePasskeys$slambda).m78 = function ($completion) {
    return this.j87($completion);
  };
  protoOf(PersonPasskeyDao_Repo$getAllActivePasskeys$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.fh3_1 = this.dh3_1.ph2_1;
            var tmp_1 = this;
            tmp_1.gh3_1 = 'PersonPasskeyDao/getAllActivePasskeys';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.hh3_1 = this.dh3_1.rh2_1;
            var tmp_3 = this;
            tmp_3.ih3_1 = this.hh3_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.dh3_1.ph2_1.j39(), 'PersonPasskeyDao/getAllActivePasskeys');
            doorNodeIdHeader(this_0, this.dh3_1.ph2_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'uid', this.dh3_1.ph2_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.eh3_1));
            tmp_4.jh3_1 = this_0;
            this.jh3_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.kh3_1 = this.ih3_1;
            var tmp_6 = this;
            tmp_6.lh3_1 = this.jh3_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.lh3_1, this.kh3_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.mh3_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.dh3_1.oh2_1, this.mh3_1, this.dh3_1.ph2_1.j39().x65_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().d5e(e, 'DoorLog', PersonPasskeyDao_Repo$getAllActivePasskeys$slambda$lambda(this.fh3_1, this.gh3_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(PersonPasskeyDao_Repo$getAllActivePasskeys$slambda).l78 = function (completion) {
    return new PersonPasskeyDao_Repo$getAllActivePasskeys$slambda(this.dh3_1, this.eh3_1, completion);
  };
  function PersonPasskeyDao_Repo$getAllActivePasskeys$slambda_0(this$0, $uid, resultContinuation) {
    var i = new PersonPasskeyDao_Repo$getAllActivePasskeys$slambda(this$0, $uid, resultContinuation);
    var l = function ($completion) {
      return i.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$373(_this__u8e3s4, personPasskey, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vh3_1 = _this__u8e3s4;
    this.wh3_1 = personPasskey;
  }
  protoOf($insertAsyncCOROUTINE$373).ud = function () {
    var 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.vh3_1.ph2_1, 'PersonPasskey', PersonPasskeyDao_Repo$insertAsync$slambda_0(this.vh3_1, this.wh3_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 PersonPasskeyDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    PersonPasskeyDao.call(this);
    this.oh2_1 = _db;
    this.ph2_1 = _repo;
    this.qh2_1 = _dao;
    this.rh2_1 = _httpClient;
    this.sh2_1 = _clientId;
    this.th2_1 = _endpoint;
    this.uh2_1 = new RepoDaoFlowHelper(this.ph2_1);
  }
  protoOf(PersonPasskeyDao_Repo).tgz = function (personPasskey, $completion) {
    var tmp = new $insertAsyncCOROUTINE$373(this, personPasskey, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPasskeyDao_Repo).ugz = function (uid) {
    var tmp = this.qh2_1.ugz(uid);
    return this.uh2_1.o67(tmp, PersonPasskeyDao_Repo$getAllActivePasskeys$slambda_0(this, uid, null));
  };
  function PersonPictureDao() {
  }
  function $upsertCOROUTINE$376(_this__u8e3s4, personPicture, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.hh4_1 = _this__u8e3s4;
    this.ih4_1 = personPicture;
  }
  protoOf($upsertCOROUTINE$376).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.jh4_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.hh4_1.lh4_1));
            if (this.ih4_1.e97_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.jh4_1.o62(50, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.kh4_1 = suspendResult;
            this.ih4_1.e97_1 = this.kh4_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.ih4_1.f97_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.hh4_1.mh4_1.xh3(this.ih4_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$377(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vh4_1 = _this__u8e3s4;
    this.wh4_1 = entity;
  }
  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.xh4_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.vh4_1.lh4_1));
            if (this.wh4_1.e97_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.xh4_1.o62(50, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.yh4_1 = suspendResult;
            this.wh4_1.e97_1 = this.yh4_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.wh4_1.f97_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.vh4_1.mh4_1.insertAsync(this.wh4_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.wh4_1.e97_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.lh4_1 = _db;
    this.mh4_1 = _dao;
  }
  protoOf(PersonPictureDao_DoorWrapper).xh3 = function (personPicture, $completion) {
    var tmp = new $upsertCOROUTINE$376(this, personPicture, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_DoorWrapper).yh3 = function (personUid, $completion) {
    return this.mh4_1.yh3(personUid, $completion);
  };
  protoOf(PersonPictureDao_DoorWrapper).ubi = function (uid, uri, thumbnailUri, time, $completion) {
    return this.mh4_1.ubi(uid, uri, thumbnailUri, time, $completion);
  };
  protoOf(PersonPictureDao_DoorWrapper).ibq = function (entityUid, transferJobItemUid, $completion) {
    return this.mh4_1.ibq(entityUid, transferJobItemUid, $completion);
  };
  protoOf(PersonPictureDao_DoorWrapper).zh4 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$377(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.zh4(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.y5m('personPictureUid');
      var _tmp_personPictureLct = $_result.y5m('personPictureLct');
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var _tmp_fileSize = $_result.x5m('fileSize');
      var _tmp_personPictureActive = $_result.j66('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.e97_1 = _tmp_personPictureUid;
      this_0.f97_1 = _tmp_personPictureLct;
      this_0.g97_1 = _tmp_personPictureUri;
      this_0.h97_1 = _tmp_personPictureThumbnailUri;
      this_0.i97_1 = _tmp_fileSize;
      this_0.j97_1 = _tmp_personPictureActive;
      return this_0;
    };
  }
  function PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ah5_1);
  }
  protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO PersonPicture (personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1).fh5 = function (stmt, entity) {
    if (entity.e97_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.e97_1);
    }
    stmt.v5h(2, entity.f97_1);
    stmt.y5h(3, entity.g97_1);
    stmt.y5h(4, entity.h97_1);
    stmt.u5h(5, entity.i97_1);
    stmt.i5h(6, entity.j97_1);
  };
  protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1).p5f = function (stmt, entity) {
    return this.fh5(stmt, entity instanceof PersonPicture ? entity : THROW_CCE());
  };
  function PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ah5_1);
  }
  protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO PersonPicture (personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1).fh5 = function (stmt, entity) {
    if (entity.e97_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.e97_1);
    }
    stmt.v5h(2, entity.f97_1);
    stmt.y5h(3, entity.g97_1);
    stmt.y5h(4, entity.h97_1);
    stmt.u5h(5, entity.i97_1);
    stmt.i5h(6, entity.j97_1);
  };
  protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1).p5f = function (stmt, entity) {
    return this.fh5(stmt, entity instanceof PersonPicture ? entity : THROW_CCE());
  };
  function PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda($personUid, resultContinuation) {
    this.qh5_1 = $personUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda).sh5 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.sh5((!(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.rh5_1.v5h(1, this.qh5_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.rh5_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).m5f = function (_stmt, completion) {
    var i = new PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda(this.qh5_1, completion);
    i.rh5_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.sh5(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonPictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation) {
    this.bh6_1 = $uri;
    this.ch6_1 = $thumbnailUri;
    this.dh6_1 = $time;
    this.eh6_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonPictureDao_JdbcImpl$updateUri$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.fh6_1.y5h(1, this.bh6_1);
            this.fh6_1.y5h(2, this.ch6_1);
            this.fh6_1.v5h(3, this.dh6_1);
            this.fh6_1.v5h(4, this.eh6_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.fh6_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).m5f = function (_stmt, completion) {
    var i = new PersonPictureDao_JdbcImpl$updateUri$slambda(this.bh6_1, this.ch6_1, this.dh6_1, this.eh6_1, completion);
    i.fh6_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda($entityUid, $transferJobItemUid, resultContinuation) {
    this.oh6_1 = $entityUid;
    this.ph6_1 = $transferJobItemUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.qh6_1.v5h(1, this.oh6_1);
            this.qh6_1.u5h(2, this.ph6_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.qh6_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).m5f = function (_stmt, completion) {
    var i = new PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda(this.oh6_1, this.ph6_1, completion);
    i.qh6_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$378(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zh6_1 = _this__u8e3s4;
    this.ah7_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$378).ud = function () {
    var 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.zh6_1.ch5_1.w5g(this.ah7_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$381(_this__u8e3s4, uid, uri, thumbnailUri, time, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.jh7_1 = _this__u8e3s4;
    this.kh7_1 = uid;
    this.lh7_1 = uri;
    this.mh7_1 = thumbnailUri;
    this.nh7_1 = time;
  }
  protoOf($updateUriCOROUTINE$381).ud = function () {
    var 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.jh7_1.ah5_1, tmp_0, PersonPictureDao_JdbcImpl$updateUri$slambda_0(this.lh7_1, this.mh7_1, this.nh7_1, this.kh7_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$382(_this__u8e3s4, entityUid, transferJobItemUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.wh7_1 = _this__u8e3s4;
    this.xh7_1 = entityUid;
    this.yh7_1 = transferJobItemUid;
  }
  protoOf($updateTransferJobItemEtagCOROUTINE$382).ud = function () {
    var 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.wh7_1.ah5_1, tmp_0, PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda_0(this.xh7_1, this.yh7_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.ah5_1 = _db;
    var tmp = this;
    tmp.bh5_1 = new PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1(this);
    var tmp_0 = this;
    tmp_0.ch5_1 = new PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1(this);
  }
  protoOf(PersonPictureDao_JdbcImpl).xh3 = function (personPicture, $completion) {
    return this.bh5_1.v5g(personPicture, $completion);
  };
  protoOf(PersonPictureDao_JdbcImpl).zh4 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$378(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.zh4(entity instanceof PersonPicture ? entity : THROW_CCE(), $completion);
  };
  protoOf(PersonPictureDao_JdbcImpl).yh3 = 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.ah5_1, tmp, PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda_0(personUid, null), $completion);
  };
  protoOf(PersonPictureDao_JdbcImpl).ubi = function (uid, uri, thumbnailUri, time, $completion) {
    var tmp = new $updateUriCOROUTINE$381(this, uid, uri, thumbnailUri, time, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_JdbcImpl).ibq = function (entityUid, transferJobItemUid, $completion) {
    var tmp = new $updateTransferJobItemEtagCOROUTINE$382(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.hh8_1 = this$0;
    this.ih8_1 = $personPicture;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonPictureDao_Repo$upsert$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_Repo$upsert$slambda).m78 = function ($completion) {
    return this.j87($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.hh8_1.lh8_1.xh3(this.ih8_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).l78 = function (completion) {
    return new PersonPictureDao_Repo$upsert$slambda(this.hh8_1, this.ih8_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonPictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) {
    this.yh8_1 = this$0;
    this.zh8_1 = $uid;
    this.ah9_1 = $uri;
    this.bh9_1 = $thumbnailUri;
    this.ch9_1 = $time;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonPictureDao_Repo$updateUri$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_Repo$updateUri$slambda).m78 = function ($completion) {
    return this.j87($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.yh8_1.lh8_1.ubi(this.zh8_1, this.ah9_1, this.bh9_1, this.ch9_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).l78 = function (completion) {
    return new PersonPictureDao_Repo$updateUri$slambda(this.yh8_1, this.zh8_1, this.ah9_1, this.bh9_1, this.ch9_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonPictureDao_Repo$updateTransferJobItemEtag$slambda(this$0, $entityUid, $transferJobItemUid, resultContinuation) {
    this.lh9_1 = this$0;
    this.mh9_1 = $entityUid;
    this.nh9_1 = $transferJobItemUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonPictureDao_Repo$updateTransferJobItemEtag$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_Repo$updateTransferJobItemEtag$slambda).m78 = function ($completion) {
    return this.j87($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.lh9_1.lh8_1.ibq(this.mh9_1, this.nh9_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).l78 = function (completion) {
    return new PersonPictureDao_Repo$updateTransferJobItemEtag$slambda(this.lh9_1, this.mh9_1, this.nh9_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function PersonPictureDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.wh9_1 = this$0;
    this.xh9_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(PersonPictureDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.wh9_1.lh8_1.insertAsync(this.xh9_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).l78 = function (completion) {
    return new PersonPictureDao_Repo$insertAsync$slambda(this.wh9_1, this.xh9_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByPersonUidAsyncCOROUTINE$383(_this__u8e3s4, personUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.gha_1 = _this__u8e3s4;
    this.hha_1 = personUid;
  }
  protoOf($findByPersonUidAsyncCOROUTINE$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.hd_1 = 1;
            suspendResult = this.gha_1.lh8_1.yh3(this.hha_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$384(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.qha_1 = _this__u8e3s4;
    this.rha_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$384).ud = function () {
    var 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.qha_1.kh8_1, 'PersonPicture', PersonPictureDao_Repo$insertAsync$slambda_0(this.qha_1, this.rha_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.jh8_1 = _db;
    this.kh8_1 = _repo;
    this.lh8_1 = _dao;
    this.mh8_1 = _httpClient;
    this.nh8_1 = _clientId;
    this.oh8_1 = _endpoint;
    this.ph8_1 = new RepoDaoFlowHelper(this.kh8_1);
  }
  protoOf(PersonPictureDao_Repo).xh3 = function (personPicture, $completion) {
    return withRepoChangeMonitorAsync(this.kh8_1, 'PersonPicture', PersonPictureDao_Repo$upsert$slambda_0(this, personPicture, null), $completion);
  };
  protoOf(PersonPictureDao_Repo).yh3 = function (personUid, $completion) {
    var tmp = new $findByPersonUidAsyncCOROUTINE$383(this, personUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_Repo).ubi = function (uid, uri, thumbnailUri, time, $completion) {
    return withRepoChangeMonitorAsync(this.kh8_1, 'PersonPicture', PersonPictureDao_Repo$updateUri$slambda_0(this, uid, uri, thumbnailUri, time, null), $completion);
  };
  protoOf(PersonPictureDao_Repo).ibq = function (entityUid, transferJobItemUid, $completion) {
    return withRepoChangeMonitorAsync(this.kh8_1, 'TransferJobItem', PersonPictureDao_Repo$updateTransferJobItemEtag$slambda_0(this, entityUid, transferJobItemUid, null), $completion);
  };
  protoOf(PersonPictureDao_Repo).zh4 = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$384(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(PersonPictureDao_Repo).insertAsync = function (entity, $completion) {
    return this.zh4(entity instanceof PersonPicture ? entity : THROW_CCE(), $completion);
  };
  function ReportDao() {
  }
  function $insertAsyncCOROUTINE$385(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ahb_1 = _this__u8e3s4;
    this.bhb_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$385).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.chb_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.ahb_1.ehb_1));
            if (this.bhb_1.ghb_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.chb_1.o62(101, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.dhb_1 = suspendResult;
            this.bhb_1.ghb_1 = this.dhb_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.bhb_1.dhc_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.ahb_1.fhb_1.insertAsync(this.bhb_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.bhb_1.ghb_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.ehb_1 = _db;
    this.fhb_1 = _dao;
  }
  protoOf(ReportDao_DoorWrapper).ehc = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$385(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ReportDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.ehc(entity instanceof Report ? entity : THROW_CCE(), $completion);
  };
  function ReportDao_JdbcImpl$_insertAdapterReport_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.fhc_1);
  }
  protoOf(ReportDao_JdbcImpl$_insertAdapterReport_upsert$1).u5g = 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).khc = function (stmt, entity) {
    if (entity.ghb_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.ghb_1);
    }
    stmt.v5h(2, entity.hhb_1);
    stmt.u5h(3, entity.ihb_1);
    stmt.u5h(4, entity.jhb_1);
    stmt.v5h(5, entity.khb_1);
    stmt.u5h(6, entity.lhb_1);
    stmt.u5h(7, entity.mhb_1);
    stmt.u5h(8, entity.nhb_1);
    stmt.v5h(9, entity.ohb_1);
    stmt.u5h(10, entity.phb_1);
    stmt.u5h(11, entity.qhb_1);
    stmt.u5h(12, entity.rhb_1);
    stmt.y5h(13, entity.shb_1);
    stmt.y5h(14, entity.thb_1);
    stmt.y5h(15, entity.uhb_1);
    stmt.i5h(16, entity.vhb_1);
    stmt.i5h(17, entity.whb_1);
    stmt.u5h(18, entity.xhb_1);
    stmt.u5h(19, entity.yhb_1);
    stmt.u5h(20, entity.zhb_1);
    stmt.v5h(21, entity.ahc_1);
    stmt.v5h(22, entity.bhc_1);
    stmt.u5h(23, entity.chc_1);
    stmt.v5h(24, entity.dhc_1);
  };
  protoOf(ReportDao_JdbcImpl$_insertAdapterReport_upsert$1).p5f = function (stmt, entity) {
    return this.khc(stmt, entity instanceof Report ? entity : THROW_CCE());
  };
  function ReportDao_JdbcImpl$_insertAdapterReport_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.fhc_1);
  }
  protoOf(ReportDao_JdbcImpl$_insertAdapterReport_abort$1).u5g = 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).khc = function (stmt, entity) {
    if (entity.ghb_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.ghb_1);
    }
    stmt.v5h(2, entity.hhb_1);
    stmt.u5h(3, entity.ihb_1);
    stmt.u5h(4, entity.jhb_1);
    stmt.v5h(5, entity.khb_1);
    stmt.u5h(6, entity.lhb_1);
    stmt.u5h(7, entity.mhb_1);
    stmt.u5h(8, entity.nhb_1);
    stmt.v5h(9, entity.ohb_1);
    stmt.u5h(10, entity.phb_1);
    stmt.u5h(11, entity.qhb_1);
    stmt.u5h(12, entity.rhb_1);
    stmt.y5h(13, entity.shb_1);
    stmt.y5h(14, entity.thb_1);
    stmt.y5h(15, entity.uhb_1);
    stmt.i5h(16, entity.vhb_1);
    stmt.i5h(17, entity.whb_1);
    stmt.u5h(18, entity.xhb_1);
    stmt.u5h(19, entity.yhb_1);
    stmt.u5h(20, entity.zhb_1);
    stmt.v5h(21, entity.ahc_1);
    stmt.v5h(22, entity.bhc_1);
    stmt.u5h(23, entity.chc_1);
    stmt.v5h(24, entity.dhc_1);
  };
  protoOf(ReportDao_JdbcImpl$_insertAdapterReport_abort$1).p5f = function (stmt, entity) {
    return this.khc(stmt, entity instanceof Report ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$386(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vhc_1 = _this__u8e3s4;
    this.whc_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$386).ud = function () {
    var 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.vhc_1.hhc_1.w5g(this.whc_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.fhc_1 = _db;
    var tmp = this;
    tmp.ghc_1 = new ReportDao_JdbcImpl$_insertAdapterReport_upsert$1(this);
    var tmp_0 = this;
    tmp_0.hhc_1 = new ReportDao_JdbcImpl$_insertAdapterReport_abort$1(this);
  }
  protoOf(ReportDao_JdbcImpl).ehc = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$386(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ReportDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.ehc(entity instanceof Report ? entity : THROW_CCE(), $completion);
  };
  function ReportDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.fhd_1 = this$0;
    this.ghd_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ReportDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ReportDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.fhd_1.jhd_1.insertAsync(this.ghd_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).l78 = function (completion) {
    return new ReportDao_Repo$insertAsync$slambda(this.fhd_1, this.ghd_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$390(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vhd_1 = _this__u8e3s4;
    this.whd_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$390).ud = function () {
    var 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.vhd_1.ihd_1, 'Report', ReportDao_Repo$insertAsync$slambda_0(this.vhd_1, this.whd_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.hhd_1 = _db;
    this.ihd_1 = _repo;
    this.jhd_1 = _dao;
    this.khd_1 = _httpClient;
    this.lhd_1 = _clientId;
    this.mhd_1 = _endpoint;
  }
  protoOf(ReportDao_Repo).ehc = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$390(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ReportDao_Repo).insertAsync = function (entity, $completion) {
    return this.ehc(entity instanceof Report ? entity : THROW_CCE(), $completion);
  };
  function ScheduleDao() {
  }
  function $upsertListAsyncCOROUTINE$391(_this__u8e3s4, entities, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.jhe_1 = _this__u8e3s4;
    this.khe_1 = entities;
  }
  protoOf($upsertListAsyncCOROUTINE$391).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.lhe_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.jhe_1.she_1));
            var tmp_0 = this;
            tmp_0.mhe_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.nhe_1 = this.khe_1.w();
            var tmp_2 = this;
            tmp_2.ohe_1 = this.nhe_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.ohe_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.phe_1 = this.ohe_1.e();
            var tmp_3 = this;
            tmp_3.qhe_1 = this.phe_1;
            if (this.qhe_1.uhe_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.lhe_1.o62(21, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.rhe_1 = suspendResult;
            this.qhe_1.uhe_1 = this.rhe_1;
            var this_0 = this.mhe_1;
            var element = this.rhe_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.qhe_1.fhf_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.jhe_1.the_1.xhd(this.khe_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$392(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.phf_1 = _this__u8e3s4;
    this.qhf_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$392).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.rhf_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.phf_1.she_1));
            if (this.qhf_1.uhe_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.rhf_1.o62(21, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.shf_1 = suspendResult;
            this.qhf_1.uhe_1 = this.shf_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.qhf_1.fhf_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.phf_1.the_1.insertAsync(this.qhf_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.qhf_1.uhe_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.she_1 = _db;
    this.the_1 = _dao;
  }
  protoOf(ScheduleDao_DoorWrapper).xhd = function (entities, $completion) {
    var tmp = new $upsertListAsyncCOROUTINE$391(this, entities, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_DoorWrapper).yhd = function (scheduleUid, active, changeTime, $completion) {
    return this.the_1.yhd(scheduleUid, active, changeTime, $completion);
  };
  protoOf(ScheduleDao_DoorWrapper).zhd = function (clazzUid) {
    return this.the_1.zhd(clazzUid);
  };
  protoOf(ScheduleDao_DoorWrapper).ahe = function (clazzUid, $completion) {
    return this.the_1.ahe(clazzUid, $completion);
  };
  protoOf(ScheduleDao_DoorWrapper).thf = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$392(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_DoorWrapper).insertAsync = function (entity, $completion) {
    return this.thf(entity instanceof Schedule ? entity : THROW_CCE(), $completion);
  };
  function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda$lambda(_result) {
    return mapRows(_result, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda$lambda$lambda(_result));
  }
  function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_scheduleUid = $_result.y5m('scheduleUid');
      var _tmp_sceduleStartTime = $_result.y5m('sceduleStartTime');
      var _tmp_scheduleEndTime = $_result.y5m('scheduleEndTime');
      var _tmp_scheduleDay = $_result.x5m('scheduleDay');
      var _tmp_scheduleMonth = $_result.x5m('scheduleMonth');
      var _tmp_scheduleFrequency = $_result.x5m('scheduleFrequency');
      var _tmp_umCalendarUid = $_result.y5m('umCalendarUid');
      var _tmp_scheduleClazzUid = $_result.y5m('scheduleClazzUid');
      var _tmp_scheduleMasterChangeSeqNum = $_result.y5m('scheduleMasterChangeSeqNum');
      var _tmp_scheduleLocalChangeSeqNum = $_result.y5m('scheduleLocalChangeSeqNum');
      var _tmp_scheduleLastChangedBy = $_result.x5m('scheduleLastChangedBy');
      var _tmp_scheduleLastChangedTime = $_result.y5m('scheduleLastChangedTime');
      var _tmp_scheduleActive = $_result.j66('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.findAllSchedulesByClazzUidAsLiveList.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.uhe_1 = _tmp_scheduleUid;
      this_0.vhe_1 = _tmp_sceduleStartTime;
      this_0.whe_1 = _tmp_scheduleEndTime;
      this_0.xhe_1 = _tmp_scheduleDay;
      this_0.yhe_1 = _tmp_scheduleMonth;
      this_0.zhe_1 = _tmp_scheduleFrequency;
      this_0.ahf_1 = _tmp_umCalendarUid;
      this_0.bhf_1 = _tmp_scheduleClazzUid;
      this_0.chf_1 = _tmp_scheduleMasterChangeSeqNum;
      this_0.dhf_1 = _tmp_scheduleLocalChangeSeqNum;
      this_0.ehf_1 = _tmp_scheduleLastChangedBy;
      this_0.fhf_1 = _tmp_scheduleLastChangedTime;
      this_0.ghf_1 = _tmp_scheduleActive;
      return this_0;
    };
  }
  function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda($clazzUid, resultContinuation) {
    this.chg_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda).ehg = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda).he = function (p1, $completion) {
    return this.ehg((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$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.dhg_1.v5h(1, this.chg_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.dhg_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$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(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda).m5f = function (_stmt, completion) {
    var i = new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda(this.chg_1, completion);
    i.dhg_1 = _stmt;
    return i;
  };
  function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda_0($clazzUid, resultContinuation) {
    var i = new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda($clazzUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.ehg(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  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.y5m('scheduleUid');
      var _tmp_sceduleStartTime = $_result.y5m('sceduleStartTime');
      var _tmp_scheduleEndTime = $_result.y5m('scheduleEndTime');
      var _tmp_scheduleDay = $_result.x5m('scheduleDay');
      var _tmp_scheduleMonth = $_result.x5m('scheduleMonth');
      var _tmp_scheduleFrequency = $_result.x5m('scheduleFrequency');
      var _tmp_umCalendarUid = $_result.y5m('umCalendarUid');
      var _tmp_scheduleClazzUid = $_result.y5m('scheduleClazzUid');
      var _tmp_scheduleMasterChangeSeqNum = $_result.y5m('scheduleMasterChangeSeqNum');
      var _tmp_scheduleLocalChangeSeqNum = $_result.y5m('scheduleLocalChangeSeqNum');
      var _tmp_scheduleLastChangedBy = $_result.x5m('scheduleLastChangedBy');
      var _tmp_scheduleLastChangedTime = $_result.y5m('scheduleLastChangedTime');
      var _tmp_scheduleActive = $_result.j66('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.uhe_1 = _tmp_scheduleUid;
      this_0.vhe_1 = _tmp_sceduleStartTime;
      this_0.whe_1 = _tmp_scheduleEndTime;
      this_0.xhe_1 = _tmp_scheduleDay;
      this_0.yhe_1 = _tmp_scheduleMonth;
      this_0.zhe_1 = _tmp_scheduleFrequency;
      this_0.ahf_1 = _tmp_umCalendarUid;
      this_0.bhf_1 = _tmp_scheduleClazzUid;
      this_0.chf_1 = _tmp_scheduleMasterChangeSeqNum;
      this_0.dhf_1 = _tmp_scheduleLocalChangeSeqNum;
      this_0.ehf_1 = _tmp_scheduleLastChangedBy;
      this_0.fhf_1 = _tmp_scheduleLastChangedTime;
      this_0.ghf_1 = _tmp_scheduleActive;
      return this_0;
    };
  }
  function ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.fhg_1);
  }
  protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1).u5g = 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).khg = function (stmt, entity) {
    if (entity.uhe_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.uhe_1);
    }
    stmt.v5h(2, entity.vhe_1);
    stmt.v5h(3, entity.whe_1);
    stmt.u5h(4, entity.xhe_1);
    stmt.u5h(5, entity.yhe_1);
    stmt.u5h(6, entity.zhe_1);
    stmt.v5h(7, entity.ahf_1);
    stmt.v5h(8, entity.bhf_1);
    stmt.v5h(9, entity.chf_1);
    stmt.v5h(10, entity.dhf_1);
    stmt.u5h(11, entity.ehf_1);
    stmt.v5h(12, entity.fhf_1);
    stmt.i5h(13, entity.ghf_1);
  };
  protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1).p5f = function (stmt, entity) {
    return this.khg(stmt, entity instanceof Schedule ? entity : THROW_CCE());
  };
  function ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.fhg_1);
  }
  protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1).u5g = 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).khg = function (stmt, entity) {
    if (entity.uhe_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.uhe_1);
    }
    stmt.v5h(2, entity.vhe_1);
    stmt.v5h(3, entity.whe_1);
    stmt.u5h(4, entity.xhe_1);
    stmt.u5h(5, entity.yhe_1);
    stmt.u5h(6, entity.zhe_1);
    stmt.v5h(7, entity.ahf_1);
    stmt.v5h(8, entity.bhf_1);
    stmt.v5h(9, entity.chf_1);
    stmt.v5h(10, entity.dhf_1);
    stmt.u5h(11, entity.ehf_1);
    stmt.v5h(12, entity.fhf_1);
    stmt.i5h(13, entity.ghf_1);
  };
  protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1).p5f = function (stmt, entity) {
    return this.khg(stmt, entity instanceof Schedule ? entity : THROW_CCE());
  };
  function ScheduleDao_JdbcImpl$updateScheduleActivated$slambda($active, $changeTime, $scheduleUid, resultContinuation) {
    this.vhg_1 = $active;
    this.whg_1 = $changeTime;
    this.xhg_1 = $scheduleUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ScheduleDao_JdbcImpl$updateScheduleActivated$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.yhg_1.i5h(1, this.vhg_1);
            this.yhg_1.v5h(2, this.whg_1);
            this.yhg_1.v5h(3, this.xhg_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.yhg_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).m5f = function (_stmt, completion) {
    var i = new ScheduleDao_JdbcImpl$updateScheduleActivated$slambda(this.vhg_1, this.whg_1, this.xhg_1, completion);
    i.yhg_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda(this$0, $clazzUid, resultContinuation) {
    this.hhh_1 = this$0;
    this.ihh_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda).jhh = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda).m78 = function ($completion) {
    return this.jhh($completion);
  };
  protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda).ud = function () {
    var 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 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);
            suspendResult = prepareAndUseStatementAsync(this.hhh_1.fhg_1, tmp_0, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda_0(this.ihh_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(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda).l78 = function (completion) {
    return new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda(this.hhh_1, this.ihh_1, completion);
  };
  function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda_0(this$0, $clazzUid, resultContinuation) {
    var i = new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda(this$0, $clazzUid, resultContinuation);
    var l = function ($completion) {
      return i.jhh($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda($clazzUid, resultContinuation) {
    this.shh_1 = $clazzUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda).ehg = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ehg((!(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.thh_1.v5h(1, this.shh_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.thh_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).m5f = function (_stmt, completion) {
    var i = new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda(this.shh_1, completion);
    i.thh_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.ehg(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertAsyncCOROUTINE$393(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.chi_1 = _this__u8e3s4;
    this.dhi_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$393).ud = function () {
    var 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.chi_1.ghg_1.w5g(this.dhi_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$395(_this__u8e3s4, scheduleUid, active, changeTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.mhi_1 = _this__u8e3s4;
    this.nhi_1 = scheduleUid;
    this.ohi_1 = active;
    this.phi_1 = changeTime;
  }
  protoOf($updateScheduleActivatedCOROUTINE$395).ud = function () {
    var 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.mhi_1.fhg_1, tmp_0, ScheduleDao_JdbcImpl$updateScheduleActivated$slambda_0(this.ohi_1, this.phi_1, this.nhi_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.fhg_1 = _db;
    var tmp = this;
    tmp.ghg_1 = new ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1(this);
    var tmp_0 = this;
    tmp_0.hhg_1 = new ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1(this);
  }
  protoOf(ScheduleDao_JdbcImpl).xhd = function (entities, $completion) {
    return this.hhg_1.z5g(entities, $completion);
  };
  protoOf(ScheduleDao_JdbcImpl).thf = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$393(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_JdbcImpl).insertAsync = function (entity, $completion) {
    return this.thf(entity instanceof Schedule ? entity : THROW_CCE(), $completion);
  };
  protoOf(ScheduleDao_JdbcImpl).yhd = function (scheduleUid, active, changeTime, $completion) {
    var tmp = new $updateScheduleActivatedCOROUTINE$395(this, scheduleUid, active, changeTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_JdbcImpl).zhd = function (clazzUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['Schedule'];
    return doorFlow(this.fhg_1, tmp, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda_0(this, clazzUid, null));
  };
  protoOf(ScheduleDao_JdbcImpl).ahe = 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.fhg_1, tmp, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda_0(clazzUid, null), $completion);
  };
  function ScheduleDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) {
    this.yhi_1 = this$0;
    this.zhi_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ScheduleDao_Repo$upsertListAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_Repo$upsertListAsync$slambda).m78 = function ($completion) {
    return this.j87($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.yhi_1.chj_1.xhd(this.zhi_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).l78 = function (completion) {
    return new ScheduleDao_Repo$upsertListAsync$slambda(this.yhi_1, this.zhi_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ScheduleDao_Repo$updateScheduleActivated$slambda(this$0, $scheduleUid, $active, $changeTime, resultContinuation) {
    this.ohj_1 = this$0;
    this.phj_1 = $scheduleUid;
    this.qhj_1 = $active;
    this.rhj_1 = $changeTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ScheduleDao_Repo$updateScheduleActivated$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_Repo$updateScheduleActivated$slambda).m78 = function ($completion) {
    return this.j87($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.ohj_1.chj_1.yhd(this.phj_1, this.qhj_1, this.rhj_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).l78 = function (completion) {
    return new ScheduleDao_Repo$updateScheduleActivated$slambda(this.ohj_1, this.phj_1, this.qhj_1, this.rhj_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ScheduleDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) {
    this.ahk_1 = this$0;
    this.bhk_1 = $entity;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ScheduleDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.ahk_1.chj_1.insertAsync(this.bhk_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).l78 = function (completion) {
    return new ScheduleDao_Repo$insertAsync$slambda(this.ahk_1, this.bhk_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findAllSchedulesByClazzUidAsyncCOROUTINE$398(_this__u8e3s4, clazzUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.khk_1 = _this__u8e3s4;
    this.lhk_1 = clazzUid;
  }
  protoOf($findAllSchedulesByClazzUidAsyncCOROUTINE$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.khk_1.chj_1.ahe(this.lhk_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$399(_this__u8e3s4, entity, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.uhk_1 = _this__u8e3s4;
    this.vhk_1 = entity;
  }
  protoOf($insertAsyncCOROUTINE$399).ud = function () {
    var 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.uhk_1.bhj_1, 'Schedule', ScheduleDao_Repo$insertAsync$slambda_0(this.uhk_1, this.vhk_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.ahj_1 = _db;
    this.bhj_1 = _repo;
    this.chj_1 = _dao;
    this.dhj_1 = _httpClient;
    this.ehj_1 = _clientId;
    this.fhj_1 = _endpoint;
  }
  protoOf(ScheduleDao_Repo).xhd = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.bhj_1, 'Schedule', ScheduleDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(ScheduleDao_Repo).yhd = function (scheduleUid, active, changeTime, $completion) {
    return withRepoChangeMonitorAsync(this.bhj_1, 'Schedule', ScheduleDao_Repo$updateScheduleActivated$slambda_0(this, scheduleUid, active, changeTime, null), $completion);
  };
  protoOf(ScheduleDao_Repo).zhd = function (clazzUid) {
    var _result = this.chj_1.zhd(clazzUid);
    return _result;
  };
  protoOf(ScheduleDao_Repo).ahe = function (clazzUid, $completion) {
    var tmp = new $findAllSchedulesByClazzUidAsyncCOROUTINE$398(this, clazzUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_Repo).thf = function (entity, $completion) {
    var tmp = new $insertAsyncCOROUTINE$399(this, entity, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScheduleDao_Repo).insertAsync = function (entity, $completion) {
    return this.thf(entity instanceof Schedule ? entity : THROW_CCE(), $completion);
  };
  function ScopedGrantDao() {
  }
  function $insertAsyncCOROUTINE$400(_this__u8e3s4, scopedGrant, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.fhl_1 = _this__u8e3s4;
    this.ghl_1 = scopedGrant;
  }
  protoOf($insertAsyncCOROUTINE$400).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.hhl_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.fhl_1.jhl_1));
            if (this.ghl_1.lhl_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.hhl_1.o62(48, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.ihl_1 = suspendResult;
            this.ghl_1.lhl_1 = this.ihl_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.ghl_1.phl_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.fhl_1.khl_1.whk(this.ghl_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.ghl_1.lhl_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.jhl_1 = _db;
    this.khl_1 = _dao;
  }
  protoOf(ScopedGrantDao_DoorWrapper).whk = function (scopedGrant, $completion) {
    var tmp = new $insertAsyncCOROUTINE$400(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.whl_1);
  }
  protoOf(ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO ScopedGrant (sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1).ahm = function (stmt, entity) {
    if (entity.lhl_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.lhl_1);
    }
    stmt.v5h(2, entity.mhl_1);
    stmt.v5h(3, entity.nhl_1);
    stmt.u5h(4, entity.ohl_1);
    stmt.v5h(5, entity.phl_1);
    stmt.u5h(6, entity.qhl_1);
    stmt.v5h(7, entity.rhl_1);
    stmt.v5h(8, entity.shl_1);
    stmt.v5h(9, entity.thl_1);
    stmt.u5h(10, entity.uhl_1);
    stmt.u5h(11, entity.vhl_1);
  };
  protoOf(ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1).p5f = function (stmt, entity) {
    return this.ahm(stmt, entity instanceof ScopedGrant ? entity : THROW_CCE());
  };
  function $insertAsyncCOROUTINE$402(_this__u8e3s4, scopedGrant, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.jhm_1 = _this__u8e3s4;
    this.khm_1 = scopedGrant;
  }
  protoOf($insertAsyncCOROUTINE$402).ud = function () {
    var 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.xhl_1.w5g(this.khm_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.whl_1 = _db;
    var tmp = this;
    tmp.xhl_1 = new ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1(this);
  }
  protoOf(ScopedGrantDao_JdbcImpl).whk = function (scopedGrant, $completion) {
    var tmp = new $insertAsyncCOROUTINE$402(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.thm_1 = this$0;
    this.uhm_1 = $scopedGrant;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ScopedGrantDao_Repo$insertAsync$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ScopedGrantDao_Repo$insertAsync$slambda).m78 = function ($completion) {
    return this.k89($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.thm_1.xhm_1.whk(this.uhm_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).l78 = function (completion) {
    return new ScopedGrantDao_Repo$insertAsync$slambda(this.thm_1, this.uhm_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertAsyncCOROUTINE$403(_this__u8e3s4, scopedGrant, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.jhn_1 = _this__u8e3s4;
    this.khn_1 = scopedGrant;
  }
  protoOf($insertAsyncCOROUTINE$403).ud = function () {
    var 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.jhn_1.whm_1, 'ScopedGrant', ScopedGrantDao_Repo$insertAsync$slambda_0(this.jhn_1, this.khn_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.vhm_1 = _db;
    this.whm_1 = _repo;
    this.xhm_1 = _dao;
    this.yhm_1 = _httpClient;
    this.zhm_1 = _clientId;
    this.ahn_1 = _endpoint;
  }
  protoOf(ScopedGrantDao_Repo).whk = function (scopedGrant, $completion) {
    var tmp = new $insertAsyncCOROUTINE$403(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.ohn_1 = _db;
    this.phn_1 = _dao;
  }
  protoOf(SiteDao_DoorWrapper).lhn = function ($completion) {
    return this.phn_1.lhn($completion);
  };
  protoOf(SiteDao_DoorWrapper).mhn = function () {
    return this.phn_1.mhn();
  };
  protoOf(SiteDao_DoorWrapper).nhn = function (workspace, $completion) {
    workspace.uhn_1 = systemTimeInMillis();
    return this.phn_1.nhn(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.y5m('siteUid');
      var _tmp_sitePcsn = $_result.y5m('sitePcsn');
      var _tmp_siteLcsn = $_result.y5m('siteLcsn');
      var _tmp_siteLcb = $_result.x5m('siteLcb');
      var _tmp_siteLct = $_result.y5m('siteLct');
      var _tmp_siteName = $_result.rz('siteName');
      var _tmp_guestLogin = $_result.j66('guestLogin');
      var _tmp_registrationAllowed = $_result.j66('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.qhn_1 = _tmp_siteUid;
      this_0.rhn_1 = _tmp_sitePcsn;
      this_0.shn_1 = _tmp_siteLcsn;
      this_0.thn_1 = _tmp_siteLcb;
      this_0.uhn_1 = _tmp_siteLct;
      this_0.vhn_1 = _tmp_siteName;
      this_0.whn_1 = _tmp_guestLogin;
      this_0.xhn_1 = _tmp_registrationAllowed;
      this_0.yhn_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.y5m('siteUid');
      var _tmp_sitePcsn = $_result.y5m('sitePcsn');
      var _tmp_siteLcsn = $_result.y5m('siteLcsn');
      var _tmp_siteLcb = $_result.x5m('siteLcb');
      var _tmp_siteLct = $_result.y5m('siteLct');
      var _tmp_siteName = $_result.rz('siteName');
      var _tmp_guestLogin = $_result.j66('guestLogin');
      var _tmp_registrationAllowed = $_result.j66('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.qhn_1 = _tmp_siteUid;
      this_0.rhn_1 = _tmp_sitePcsn;
      this_0.shn_1 = _tmp_siteLcsn;
      this_0.thn_1 = _tmp_siteLcb;
      this_0.uhn_1 = _tmp_siteLct;
      this_0.vhn_1 = _tmp_siteName;
      this_0.whn_1 = _tmp_guestLogin;
      this_0.xhn_1 = _tmp_registrationAllowed;
      this_0.yhn_1 = _tmp_authSalt;
      return this_0;
    };
  }
  function SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda(resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda).iho = function (_stmt, $completion) {
    var tmp = this.m5f(_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.iho((!(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.hho_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).m5f = function (_stmt, completion) {
    var i = new SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda(completion);
    i.hho_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.iho(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SiteDao_JdbcImpl$_insertAdapterSite_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.jho_1);
  }
  protoOf(SiteDao_JdbcImpl$_insertAdapterSite_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO Site (siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(SiteDao_JdbcImpl$_insertAdapterSite_upsert$1).oho = function (stmt, entity) {
    if (entity.qhn_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.qhn_1);
    }
    stmt.v5h(2, entity.rhn_1);
    stmt.v5h(3, entity.shn_1);
    stmt.u5h(4, entity.thn_1);
    stmt.v5h(5, entity.uhn_1);
    stmt.y5h(6, entity.vhn_1);
    stmt.i5h(7, entity.whn_1);
    stmt.i5h(8, entity.xhn_1);
    stmt.y5h(9, entity.yhn_1);
  };
  protoOf(SiteDao_JdbcImpl$_insertAdapterSite_upsert$1).p5f = function (stmt, entity) {
    return this.oho(stmt, entity instanceof Site ? entity : THROW_CCE());
  };
  function SiteDao_JdbcImpl$_insertAdapterSite_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.jho_1);
  }
  protoOf(SiteDao_JdbcImpl$_insertAdapterSite_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO Site (siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(SiteDao_JdbcImpl$_insertAdapterSite_abort$1).oho = function (stmt, entity) {
    if (entity.qhn_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.qhn_1);
    }
    stmt.v5h(2, entity.rhn_1);
    stmt.v5h(3, entity.shn_1);
    stmt.u5h(4, entity.thn_1);
    stmt.v5h(5, entity.uhn_1);
    stmt.y5h(6, entity.vhn_1);
    stmt.i5h(7, entity.whn_1);
    stmt.i5h(8, entity.xhn_1);
    stmt.y5h(9, entity.yhn_1);
  };
  protoOf(SiteDao_JdbcImpl$_insertAdapterSite_abort$1).p5f = function (stmt, entity) {
    return this.oho(stmt, entity instanceof Site ? entity : THROW_CCE());
  };
  function SiteDao_JdbcImpl$updateAsync$slambda($workspace, resultContinuation) {
    this.zho_1 = $workspace;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteDao_JdbcImpl$updateAsync$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.ahp_1.v5h(1, this.zho_1.rhn_1);
            this.ahp_1.v5h(2, this.zho_1.shn_1);
            this.ahp_1.u5h(3, this.zho_1.thn_1);
            this.ahp_1.v5h(4, this.zho_1.uhn_1);
            this.ahp_1.y5h(5, this.zho_1.vhn_1);
            this.ahp_1.i5h(6, this.zho_1.whn_1);
            this.ahp_1.i5h(7, this.zho_1.xhn_1);
            this.ahp_1.y5h(8, this.zho_1.yhn_1);
            this.ahp_1.v5h(9, this.zho_1.qhn_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.ahp_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).m5f = function (_stmt, completion) {
    var i = new SiteDao_JdbcImpl$updateAsync$slambda(this.zho_1, completion);
    i.ahp_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SiteDao_JdbcImpl$getSiteAsync$slambda(resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteDao_JdbcImpl$getSiteAsync$slambda).iho = function (_stmt, $completion) {
    var tmp = this.m5f(_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.iho((!(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.jhp_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).m5f = function (_stmt, completion) {
    var i = new SiteDao_JdbcImpl$getSiteAsync$slambda(completion);
    i.jhp_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.iho(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SiteDao_JdbcImpl$getSiteAsFlow$slambda(this$0, resultContinuation) {
    this.shp_1 = this$0;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda).thp = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda).m78 = function ($completion) {
    return this.thp($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.shp_1.jho_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).l78 = function (completion) {
    return new SiteDao_JdbcImpl$getSiteAsFlow$slambda(this.shp_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.thp($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $updateAsyncCOROUTINE$408(_this__u8e3s4, workspace, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.chq_1 = _this__u8e3s4;
    this.dhq_1 = workspace;
  }
  protoOf($updateAsyncCOROUTINE$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.ehq_1 = 'UPDATE Site SET sitePcsn = ?, siteLcsn = ?, siteLcb = ?, siteLct = ?, siteName = ?, guestLogin = ?, registrationAllowed = ?, authSalt = ? WHERE siteUid = ?';
            this.hd_1 = 1;
            suspendResult = prepareAndUseStatementAsync_0(this.chq_1.jho_1, this.ehq_1, VOID, SiteDao_JdbcImpl$updateAsync$slambda_0(this.dhq_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.jho_1 = _db;
    var tmp = this;
    tmp.kho_1 = new SiteDao_JdbcImpl$_insertAdapterSite_upsert$1(this);
    var tmp_0 = this;
    tmp_0.lho_1 = new SiteDao_JdbcImpl$_insertAdapterSite_abort$1(this);
  }
  protoOf(SiteDao_JdbcImpl).nhn = function (workspace, $completion) {
    var tmp = new $updateAsyncCOROUTINE$408(this, workspace, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteDao_JdbcImpl).lhn = function ($completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM Site LIMIT 1', VOID, VOID, VOID, VOID, true);
    return prepareAndUseStatementAsync(this.jho_1, tmp, SiteDao_JdbcImpl$getSiteAsync$slambda_0(null), $completion);
  };
  protoOf(SiteDao_JdbcImpl).mhn = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['Site'];
    return doorFlow(this.jho_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.nhq_1 = this$0;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteDao_Repo$getSiteAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteDao_Repo$getSiteAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.ohq_1 = this.nhq_1.xhq_1;
            var tmp_1 = this;
            tmp_1.phq_1 = 'SiteDao/getSiteAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.qhq_1 = this.nhq_1.zhq_1;
            var tmp_3 = this;
            tmp_3.rhq_1 = this.qhq_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.nhq_1.xhq_1.j39(), 'SiteDao/getSiteAsFlow');
            doorNodeIdHeader(this_0, this.nhq_1.xhq_1);
            header(this_0, 'cache-control', 'no-store');
            tmp_4.shq_1 = this_0;
            this.shq_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.thq_1 = this.rhq_1;
            var tmp_6 = this;
            tmp_6.uhq_1 = this.shq_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.uhq_1, this.thq_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.vhq_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.nhq_1.whq_1, this.vhq_1, this.nhq_1.xhq_1.j39().x65_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().d5e(e, 'DoorLog', SiteDao_Repo$getSiteAsFlow$slambda$lambda(this.ohq_1, this.phq_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).l78 = function (completion) {
    return new SiteDao_Repo$getSiteAsFlow$slambda(this.nhq_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SiteDao_Repo$updateAsync$slambda(this$0, $workspace, resultContinuation) {
    this.lhr_1 = this$0;
    this.mhr_1 = $workspace;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteDao_Repo$updateAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteDao_Repo$updateAsync$slambda).m78 = function ($completion) {
    return this.j87($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.lhr_1.yhq_1.nhn(this.mhr_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).l78 = function (completion) {
    return new SiteDao_Repo$updateAsync$slambda(this.lhr_1, this.mhr_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $getSiteAsyncCOROUTINE$409(_this__u8e3s4, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vhr_1 = _this__u8e3s4;
  }
  protoOf($getSiteAsyncCOROUTINE$409).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.whr_1 = this.vhr_1.xhq_1;
            var tmp_1 = this;
            tmp_1.xhr_1 = 'SiteDao/getSiteAsync';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.yhr_1 = this.vhr_1.zhq_1;
            var tmp_3 = this;
            tmp_3.zhr_1 = this.yhr_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.vhr_1.xhq_1.j39(), 'SiteDao/getSiteAsync');
            doorNodeIdHeader(this_0, this.vhr_1.xhq_1);
            header(this_0, 'cache-control', 'no-store');
            tmp_4.ahs_1 = this_0;
            this.ahs_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.bhs_1 = this.zhr_1;
            var tmp_6 = this;
            tmp_6.chs_1 = this.ahs_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.chs_1, this.bhs_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.dhs_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.vhr_1.whq_1, this.dhs_1, this.vhr_1.xhq_1.j39().x65_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.ehs_1 = this.kd_1;
              Napier_getInstance().d5e(this.ehs_1, 'DoorLog', SiteDao_Repo$getSiteAsync$lambda(this.whr_1, this.xhr_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.vhr_1.yhq_1.lhn(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.whq_1 = _db;
    this.xhq_1 = _repo;
    this.yhq_1 = _dao;
    this.zhq_1 = _httpClient;
    this.ahr_1 = _clientId;
    this.bhr_1 = _endpoint;
    this.chr_1 = new RepoDaoFlowHelper(this.xhq_1);
  }
  protoOf(SiteDao_Repo).lhn = function ($completion) {
    var tmp = new $getSiteAsyncCOROUTINE$409(this, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteDao_Repo).mhn = function () {
    var tmp = this.yhq_1.mhn();
    return this.chr_1.o67(tmp, SiteDao_Repo$getSiteAsFlow$slambda_0(this, null));
  };
  protoOf(SiteDao_Repo).nhn = function (workspace, $completion) {
    return withRepoChangeMonitorAsync(this.xhq_1, 'Site', SiteDao_Repo$updateAsync$slambda_0(this, workspace, null), $completion);
  };
  function SiteTermsDao() {
  }
  function $upsertListCOROUTINE$414(_this__u8e3s4, termList, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.shs_1 = _this__u8e3s4;
    this.ths_1 = termList;
  }
  protoOf($upsertListCOROUTINE$414).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.uhs_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.shs_1.bht_1));
            var tmp_0 = this;
            tmp_0.vhs_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.whs_1 = this.ths_1.w();
            var tmp_2 = this;
            tmp_2.xhs_1 = this.whs_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.xhs_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.yhs_1 = this.xhs_1.e();
            var tmp_3 = this;
            tmp_3.zhs_1 = this.yhs_1;
            if (this.zhs_1.dht_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.uhs_1.o62(272, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.aht_1 = suspendResult;
            this.zhs_1.dht_1 = this.aht_1;
            var this_0 = this.vhs_1;
            var element = this.aht_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.zhs_1.lht_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.shs_1.cht_1.hhs(this.ths_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.bht_1 = _db;
    this.cht_1 = _dao;
  }
  protoOf(SiteTermsDao_DoorWrapper).fhs = function (activeOnly) {
    return this.cht_1.fhs(activeOnly);
  };
  protoOf(SiteTermsDao_DoorWrapper).ghs = function (activeOnly, $completion) {
    return this.cht_1.ghs(activeOnly, $completion);
  };
  protoOf(SiteTermsDao_DoorWrapper).hhs = function (termList, $completion) {
    var tmp = new $upsertListCOROUTINE$414(this, termList, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteTermsDao_DoorWrapper).ihs = function (active, $completion) {
    return this.cht_1.ihs(active, $completion);
  };
  protoOf(SiteTermsDao_DoorWrapper).jhs = function (lang, $completion) {
    return this.cht_1.jhs(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.y5m('sTermsUid');
      var _tmp_termsHtml = $_result.rz('termsHtml');
      var _tmp_sTermsLang = $_result.rz('sTermsLang');
      var _tmp_sTermsLangUid = $_result.y5m('sTermsLangUid');
      var _tmp_sTermsActive = $_result.j66('sTermsActive');
      var _tmp_sTermsLastChangedBy = $_result.x5m('sTermsLastChangedBy');
      var _tmp_sTermsPrimaryCsn = $_result.y5m('sTermsPrimaryCsn');
      var _tmp_sTermsLocalCsn = $_result.y5m('sTermsLocalCsn');
      var _tmp_sTermsLct = $_result.y5m('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.dht_1 = _tmp_sTermsUid;
      this_0.eht_1 = _tmp_termsHtml;
      this_0.fht_1 = _tmp_sTermsLang;
      this_0.ght_1 = _tmp_sTermsLangUid;
      this_0.hht_1 = _tmp_sTermsActive;
      this_0.iht_1 = _tmp_sTermsLastChangedBy;
      this_0.jht_1 = _tmp_sTermsPrimaryCsn;
      this_0.kht_1 = _tmp_sTermsLocalCsn;
      this_0.lht_1 = _tmp_sTermsLct;
      return this_0;
    };
  }
  function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda($activeOnly, resultContinuation) {
    this.uht_1 = $activeOnly;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda).wht = function (_stmt, $completion) {
    var tmp = this.m5f(_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.wht((!(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.vht_1.u5h(1, this.uht_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.vht_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).m5f = function (_stmt, completion) {
    var i = new SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda(this.uht_1, completion);
    i.vht_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.wht(_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.y5m('sTermsUid');
      var _tmp_termsHtml = $_result.rz('termsHtml');
      var _tmp_sTermsLang = $_result.rz('sTermsLang');
      var _tmp_sTermsLangUid = $_result.y5m('sTermsLangUid');
      var _tmp_sTermsActive = $_result.j66('sTermsActive');
      var _tmp_sTermsLastChangedBy = $_result.x5m('sTermsLastChangedBy');
      var _tmp_sTermsPrimaryCsn = $_result.y5m('sTermsPrimaryCsn');
      var _tmp_sTermsLocalCsn = $_result.y5m('sTermsLocalCsn');
      var _tmp_sTermsLct = $_result.y5m('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.dht_1 = _tmp_sTermsUid;
      this_0.eht_1 = _tmp_termsHtml;
      this_0.fht_1 = _tmp_sTermsLang;
      this_0.ght_1 = _tmp_sTermsLangUid;
      this_0.hht_1 = _tmp_sTermsActive;
      this_0.iht_1 = _tmp_sTermsLastChangedBy;
      this_0.jht_1 = _tmp_sTermsPrimaryCsn;
      this_0.kht_1 = _tmp_sTermsLocalCsn;
      this_0.lht_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.x60(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.y5m('sTermsUid');
      var _tmp_termsHtml = $_result.rz('termsHtml');
      var _tmp_sTermsLang = $_result.rz('sTermsLang');
      var _tmp_sTermsLangUid = $_result.y5m('sTermsLangUid');
      var _tmp_sTermsActive = $_result.j66('sTermsActive');
      var _tmp_sTermsLastChangedBy = $_result.x5m('sTermsLastChangedBy');
      var _tmp_sTermsPrimaryCsn = $_result.y5m('sTermsPrimaryCsn');
      var _tmp_sTermsLocalCsn = $_result.y5m('sTermsLocalCsn');
      var _tmp_sTermsLct = $_result.y5m('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.dht_1 = _tmp_sTermsUid;
      this_0.eht_1 = _tmp_termsHtml;
      this_0.fht_1 = _tmp_sTermsLang;
      this_0.ght_1 = _tmp_sTermsLangUid;
      this_0.hht_1 = _tmp_sTermsActive;
      this_0.iht_1 = _tmp_sTermsLastChangedBy;
      this_0.jht_1 = _tmp_sTermsPrimaryCsn;
      this_0.kht_1 = _tmp_sTermsLocalCsn;
      this_0.lht_1 = _tmp_sTermsLct;
      return this_0;
    };
  }
  function SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.xht_1);
  }
  protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO SiteTerms (sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1).chu = function (stmt, entity) {
    if (entity.dht_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.dht_1);
    }
    stmt.y5h(2, entity.eht_1);
    stmt.y5h(3, entity.fht_1);
    stmt.v5h(4, entity.ght_1);
    stmt.i5h(5, entity.hht_1);
    stmt.u5h(6, entity.iht_1);
    stmt.v5h(7, entity.jht_1);
    stmt.v5h(8, entity.kht_1);
    stmt.v5h(9, entity.lht_1);
  };
  protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1).p5f = function (stmt, entity) {
    return this.chu(stmt, entity instanceof SiteTerms ? entity : THROW_CCE());
  };
  function SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.xht_1);
  }
  protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO SiteTerms (sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1).chu = function (stmt, entity) {
    if (entity.dht_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.dht_1);
    }
    stmt.y5h(2, entity.eht_1);
    stmt.y5h(3, entity.fht_1);
    stmt.v5h(4, entity.ght_1);
    stmt.i5h(5, entity.hht_1);
    stmt.u5h(6, entity.iht_1);
    stmt.v5h(7, entity.jht_1);
    stmt.v5h(8, entity.kht_1);
    stmt.v5h(9, entity.lht_1);
  };
  protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1).p5f = function (stmt, entity) {
    return this.chu(stmt, entity instanceof SiteTerms ? entity : THROW_CCE());
  };
  function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda(this$0, $activeOnly, resultContinuation) {
    this.nhu_1 = this$0;
    this.ohu_1 = $activeOnly;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda).phu = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda).m78 = function ($completion) {
    return this.phu($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.nhu_1.xht_1, tmp_0, SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda_0(this.ohu_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).l78 = function (completion) {
    return new SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda(this.nhu_1, this.ohu_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.phu($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SiteTermsDao_JdbcImpl$findAllTerms$slambda($activeOnly, resultContinuation) {
    this.yhu_1 = $activeOnly;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteTermsDao_JdbcImpl$findAllTerms$slambda).wht = function (_stmt, $completion) {
    var tmp = this.m5f(_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.wht((!(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.zhu_1.u5h(1, this.yhu_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.zhu_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).m5f = function (_stmt, completion) {
    var i = new SiteTermsDao_JdbcImpl$findAllTerms$slambda(this.yhu_1, completion);
    i.zhu_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.wht(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda($active, resultContinuation) {
    this.ihv_1 = $active;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda).khv = function (_stmt, $completion) {
    var tmp = this.m5f(_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.khv((!(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.jhv_1.u5h(1, this.ihv_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.jhv_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).m5f = function (_stmt, completion) {
    var i = new SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda(this.ihv_1, completion);
    i.jhv_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.khv(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda($lang, resultContinuation) {
    this.thv_1 = $lang;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda).vhv = function (_stmt, $completion) {
    var tmp = this.m5f(_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.vhv((!(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.uhv_1.y5h(1, this.thv_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.uhv_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).m5f = function (_stmt, completion) {
    var i = new SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda(this.thv_1, completion);
    i.uhv_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.vhv(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SiteTermsDao_JdbcImpl(_db) {
    SiteTermsDao.call(this);
    this.xht_1 = _db;
    var tmp = this;
    tmp.yht_1 = new SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1(this);
    var tmp_0 = this;
    tmp_0.zht_1 = new SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1(this);
  }
  protoOf(SiteTermsDao_JdbcImpl).hhs = function (termList, $completion) {
    return this.zht_1.z5g(termList, $completion);
  };
  protoOf(SiteTermsDao_JdbcImpl).fhs = 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.xht_1, tmp, SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda_0(this, activeOnly, null));
  };
  protoOf(SiteTermsDao_JdbcImpl).ghs = 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.xht_1, tmp, SiteTermsDao_JdbcImpl$findAllTerms$slambda_0(activeOnly, null), $completion);
  };
  protoOf(SiteTermsDao_JdbcImpl).ihs = 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.xht_1, tmp, SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda_0(active, null), $completion);
  };
  protoOf(SiteTermsDao_JdbcImpl).jhs = 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.xht_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.ehw_1 = this$0;
    this.fhw_1 = $activeOnly;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteTermsDao_Repo$findAllTermsAsListFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteTermsDao_Repo$findAllTermsAsListFlow$slambda).m78 = function ($completion) {
    return this.j87($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.ghw_1 = this.ehw_1.phw_1;
            var tmp_1 = this;
            tmp_1.hhw_1 = 'SiteTermsDao/findAllTermsAsListFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ihw_1 = this.ehw_1.rhw_1;
            var tmp_3 = this;
            tmp_3.jhw_1 = this.ihw_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ehw_1.phw_1.j39(), 'SiteTermsDao/findAllTermsAsListFlow');
            doorNodeIdHeader(this_0, this.ehw_1.phw_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'activeOnly', this.ehw_1.phw_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.fhw_1));
            tmp_4.khw_1 = this_0;
            this.khw_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.lhw_1 = this.jhw_1;
            var tmp_6 = this;
            tmp_6.mhw_1 = this.khw_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.mhw_1, this.lhw_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.nhw_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ehw_1.ohw_1, this.nhw_1, this.ehw_1.phw_1.j39().x65_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().d5e(e, 'DoorLog', SiteTermsDao_Repo$findAllTermsAsListFlow$slambda$lambda(this.ghw_1, this.hhw_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).l78 = function (completion) {
    return new SiteTermsDao_Repo$findAllTermsAsListFlow$slambda(this.ehw_1, this.fhw_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.j87($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.dhx_1 = this$0;
    this.ehx_1 = $termList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SiteTermsDao_Repo$upsertList$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteTermsDao_Repo$upsertList$slambda).m78 = function ($completion) {
    return this.j87($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.dhx_1.qhw_1.hhs(this.ehx_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).l78 = function (completion) {
    return new SiteTermsDao_Repo$upsertList$slambda(this.dhx_1, this.ehx_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SiteTermsDao_Repo$findAvailableSiteTermLanguages$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function $findAllTermsCOROUTINE$421(_this__u8e3s4, activeOnly, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.nhx_1 = _this__u8e3s4;
    this.ohx_1 = activeOnly;
  }
  protoOf($findAllTermsCOROUTINE$421).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.phx_1 = this.nhx_1.phw_1;
            var tmp_1 = this;
            tmp_1.qhx_1 = 'SiteTermsDao/findAllTerms';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.rhx_1 = this.nhx_1.rhw_1;
            var tmp_3 = this;
            tmp_3.shx_1 = this.rhx_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.nhx_1.phw_1.j39(), 'SiteTermsDao/findAllTerms');
            doorNodeIdHeader(this_0, this.nhx_1.phw_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'activeOnly', this.nhx_1.phw_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.ohx_1));
            tmp_4.thx_1 = this_0;
            this.thx_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.uhx_1 = this.shx_1;
            var tmp_6 = this;
            tmp_6.vhx_1 = this.thx_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.vhx_1, this.uhx_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.whx_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.nhx_1.ohw_1, this.whx_1, this.nhx_1.phw_1.j39().x65_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.xhx_1 = this.kd_1;
              Napier_getInstance().d5e(this.xhx_1, 'DoorLog', SiteTermsDao_Repo$findAllTerms$lambda(this.phx_1, this.qhx_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.nhx_1.qhw_1.ghs(this.ohx_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$423(_this__u8e3s4, active, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ghy_1 = _this__u8e3s4;
    this.hhy_1 = active;
  }
  protoOf($findAvailableSiteTermLanguagesCOROUTINE$423).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.ihy_1 = this.ghy_1.phw_1;
            var tmp_1 = this;
            tmp_1.jhy_1 = 'SiteTermsDao/findAvailableSiteTermLanguages';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.khy_1 = this.ghy_1.rhw_1;
            var tmp_3 = this;
            tmp_3.lhy_1 = this.khy_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ghy_1.phw_1.j39(), 'SiteTermsDao/findAvailableSiteTermLanguages');
            doorNodeIdHeader(this_0, this.ghy_1.phw_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'active', this.ghy_1.phw_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.hhy_1));
            tmp_4.mhy_1 = this_0;
            this.mhy_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.nhy_1 = this.lhy_1;
            var tmp_6 = this;
            tmp_6.ohy_1 = this.mhy_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.ohy_1, this.nhy_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.phy_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ghy_1.ohw_1, this.phy_1, this.ghy_1.phw_1.j39().x65_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.qhy_1 = this.kd_1;
              Napier_getInstance().d5e(this.qhy_1, 'DoorLog', SiteTermsDao_Repo$findAvailableSiteTermLanguages$lambda(this.ihy_1, this.jhy_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.ghy_1.qhw_1.ihs(this.hhy_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$424(_this__u8e3s4, lang, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zhy_1 = _this__u8e3s4;
    this.ahz_1 = lang;
  }
  protoOf($findLatestByLanguageCOROUTINE$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.zhy_1.qhw_1.jhs(this.ahz_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.ohw_1 = _db;
    this.phw_1 = _repo;
    this.qhw_1 = _dao;
    this.rhw_1 = _httpClient;
    this.shw_1 = _clientId;
    this.thw_1 = _endpoint;
    this.uhw_1 = new RepoDaoFlowHelper(this.phw_1);
  }
  protoOf(SiteTermsDao_Repo).fhs = function (activeOnly) {
    var tmp = this.qhw_1.fhs(activeOnly);
    return this.uhw_1.o67(tmp, SiteTermsDao_Repo$findAllTermsAsListFlow$slambda_0(this, activeOnly, null));
  };
  protoOf(SiteTermsDao_Repo).ghs = function (activeOnly, $completion) {
    var tmp = new $findAllTermsCOROUTINE$421(this, activeOnly, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteTermsDao_Repo).hhs = function (termList, $completion) {
    return withRepoChangeMonitorAsync(this.phw_1, 'SiteTerms', SiteTermsDao_Repo$upsertList$slambda_0(this, termList, null), $completion);
  };
  protoOf(SiteTermsDao_Repo).ihs = function (active, $completion) {
    var tmp = new $findAvailableSiteTermLanguagesCOROUTINE$423(this, active, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SiteTermsDao_Repo).jhs = function (lang, $completion) {
    var tmp = new $findLatestByLanguageCOROUTINE$424(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.bhz_1 = _db;
    this.chz_1 = _dao;
  }
  function StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.dhz_1);
  }
  protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1).u5g = 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).ihz = function (stmt, entity) {
    stmt.v5h(1, entity.jhz_1);
    stmt.y5h(2, entity.khz_1);
    stmt.v5h(3, entity.lhz_1);
    stmt.y5h(4, entity.mhz_1);
    stmt.y5h(5, entity.nhz_1);
    stmt.v5h(6, entity.ohz_1);
    stmt.v5h(7, entity.phz_1);
    stmt.u5h(8, entity.qhz_1);
    stmt.y5h(9, entity.rhz_1);
    stmt.v5h(10, entity.shz_1);
    stmt.y5h(11, entity.thz_1);
    stmt.u5h(12, entity.uhz_1);
    stmt.v5h(13, entity.vhz_1);
    stmt.u5h(14, entity.whz_1);
    stmt.u5h(15, entity.xhz_1);
    stmt.w5h(16, entity.yhz_1);
    stmt.v5h(17, entity.zhz_1);
    stmt.v5h(18, entity.ai0_1);
    stmt.y5h(19, entity.bi0_1);
    stmt.y5h(20, entity.ci0_1);
    stmt.i5h(21, entity.di0_1);
  };
  protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1).p5f = function (stmt, entity) {
    return this.ihz(stmt, entity instanceof StudentResult ? entity : THROW_CCE());
  };
  function StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.dhz_1);
  }
  protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1).u5g = 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).ihz = function (stmt, entity) {
    stmt.v5h(1, entity.jhz_1);
    stmt.y5h(2, entity.khz_1);
    stmt.v5h(3, entity.lhz_1);
    stmt.y5h(4, entity.mhz_1);
    stmt.y5h(5, entity.nhz_1);
    stmt.v5h(6, entity.ohz_1);
    stmt.v5h(7, entity.phz_1);
    stmt.u5h(8, entity.qhz_1);
    stmt.y5h(9, entity.rhz_1);
    stmt.v5h(10, entity.shz_1);
    stmt.y5h(11, entity.thz_1);
    stmt.u5h(12, entity.uhz_1);
    stmt.v5h(13, entity.vhz_1);
    stmt.u5h(14, entity.whz_1);
    stmt.u5h(15, entity.xhz_1);
    stmt.w5h(16, entity.yhz_1);
    stmt.v5h(17, entity.zhz_1);
    stmt.v5h(18, entity.ai0_1);
    stmt.y5h(19, entity.bi0_1);
    stmt.y5h(20, entity.ci0_1);
    stmt.i5h(21, entity.di0_1);
  };
  protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1).p5f = function (stmt, entity) {
    return this.ihz(stmt, entity instanceof StudentResult ? entity : THROW_CCE());
  };
  function StudentResultDao_JdbcImpl(_db) {
    StudentResultDao.call(this);
    this.dhz_1 = _db;
    var tmp = this;
    tmp.ehz_1 = new StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1(this);
    var tmp_0 = this;
    tmp_0.fhz_1 = new StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1(this);
  }
  function StudentResultDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    StudentResultDao.call(this);
    this.gi0_1 = _db;
    this.hi0_1 = _repo;
    this.ii0_1 = _dao;
    this.ji0_1 = _httpClient;
    this.ki0_1 = _clientId;
    this.li0_1 = _endpoint;
  }
  function SyncNodeDao() {
  }
  function SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.mi0_1);
  }
  protoOf(SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO SyncNode (nodeClientId) VALUES(?)';
  };
  protoOf(SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1).qi0 = function (stmt, entity) {
    stmt.v5h(1, entity.z63_1);
  };
  protoOf(SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1).p5f = function (stmt, entity) {
    return this.qi0(stmt, entity instanceof SyncNode ? entity : THROW_CCE());
  };
  function SyncNodeDao_JdbcImpl(_db) {
    SyncNodeDao.call(this);
    this.mi0_1 = _db;
    var tmp = this;
    tmp.ni0_1 = new SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1(this);
  }
  function SystemPermissionDao() {
  }
  function $upsertAsyncCOROUTINE$428(_this__u8e3s4, systemPermissions, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.hi1_1 = _this__u8e3s4;
    this.ii1_1 = systemPermissions;
  }
  protoOf($upsertAsyncCOROUTINE$428).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.ji1_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.hi1_1.li1_1));
            if (this.ii1_1.ni1_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.ji1_1.o62(10011, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.ki1_1 = suspendResult;
            this.ii1_1.ni1_1 = this.ki1_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.ii1_1.ri1_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.hi1_1.mi1_1.yi0(this.ii1_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.li1_1 = _db;
    this.mi1_1 = _dao;
  }
  protoOf(SystemPermissionDao_DoorWrapper).ri0 = function (accountPersonUid) {
    return this.mi1_1.ri0(accountPersonUid);
  };
  protoOf(SystemPermissionDao_DoorWrapper).si0 = function (accountPersonUid, $completion) {
    return this.mi1_1.si0(accountPersonUid, $completion);
  };
  protoOf(SystemPermissionDao_DoorWrapper).ti0 = function (accountPersonUid, permission, $completion) {
    return this.mi1_1.ti0(accountPersonUid, permission, $completion);
  };
  protoOf(SystemPermissionDao_DoorWrapper).ui0 = function (accountPersonUid, permission) {
    return this.mi1_1.ui0(accountPersonUid, permission);
  };
  protoOf(SystemPermissionDao_DoorWrapper).vi0 = function (accountPersonUid, firstPermission, secondPermission) {
    return this.mi1_1.vi0(accountPersonUid, firstPermission, secondPermission);
  };
  protoOf(SystemPermissionDao_DoorWrapper).wi0 = function (accountPersonUid, firstPermission, secondPermission, $completion) {
    return this.mi1_1.wi0(accountPersonUid, firstPermission, secondPermission, $completion);
  };
  protoOf(SystemPermissionDao_DoorWrapper).xi0 = function (accountPersonUid, otherPersonUid) {
    return this.mi1_1.xi0(accountPersonUid, otherPersonUid);
  };
  protoOf(SystemPermissionDao_DoorWrapper).yi0 = function (systemPermissions, $completion) {
    var tmp = new $upsertAsyncCOROUTINE$428(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.y5m('spUid');
      var _tmp_spToPersonUid = $_result.y5m('spToPersonUid');
      var _tmp_spToGroupUid = $_result.y5m('spToGroupUid');
      var _tmp_spPermissionsFlag = $_result.y5m('spPermissionsFlag');
      var _tmp_spLastModified = $_result.y5m('spLastModified');
      var _tmp_spIsDeleted = $_result.j66('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.ni1_1 = _tmp_spUid;
      this_0.oi1_1 = _tmp_spToPersonUid;
      this_0.pi1_1 = _tmp_spToGroupUid;
      this_0.qi1_1 = _tmp_spPermissionsFlag;
      this_0.ri1_1 = _tmp_spLastModified;
      this_0.si1_1 = _tmp_spIsDeleted;
      return this_0;
    };
  }
  function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda($accountPersonUid, resultContinuation) {
    this.bi2_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda).di2 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.di2((!(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.ci2_1.v5h(1, this.bi2_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ci2_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).m5f = function (_stmt, completion) {
    var i = new SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda(this.bi2_1, completion);
    i.ci2_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.di2(_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.y5m('spUid');
      var _tmp_spToPersonUid = $_result.y5m('spToPersonUid');
      var _tmp_spToGroupUid = $_result.y5m('spToGroupUid');
      var _tmp_spPermissionsFlag = $_result.y5m('spPermissionsFlag');
      var _tmp_spLastModified = $_result.y5m('spLastModified');
      var _tmp_spIsDeleted = $_result.j66('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.ni1_1 = _tmp_spUid;
      this_0.oi1_1 = _tmp_spToPersonUid;
      this_0.pi1_1 = _tmp_spToGroupUid;
      this_0.qi1_1 = _tmp_spPermissionsFlag;
      this_0.ri1_1 = _tmp_spLastModified;
      this_0.si1_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.n74(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.n74(1);
    };
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda($accountPersonUid, $permission, resultContinuation) {
    this.mi2_1 = $accountPersonUid;
    this.ni2_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda).ta6 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ta6((!(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.oi2_1.v5h(1, this.mi2_1);
            this.oi2_1.v5h(2, this.mi2_1);
            this.oi2_1.v5h(3, this.ni2_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.oi2_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).m5f = function (_stmt, completion) {
    var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda(this.mi2_1, this.ni2_1, completion);
    i.oi2_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.ta6(_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.j66('firstPermission');
      var _tmp_secondPermission = $_result.j66('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.hdn_1 = _tmp_firstPermission;
      this_0.idn_1 = _tmp_secondPermission;
      return this_0;
    };
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda($accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    this.xi2_1 = $accountPersonUid;
    this.yi2_1 = $firstPermission;
    this.zi2_1 = $secondPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda).wdn = function (_stmt, $completion) {
    var tmp = this.m5f(_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.wdn((!(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.ai3_1.v5h(1, this.xi2_1);
            this.ai3_1.v5h(2, this.xi2_1);
            this.ai3_1.v5h(3, this.yi2_1);
            this.ai3_1.v5h(4, this.xi2_1);
            this.ai3_1.v5h(5, this.xi2_1);
            this.ai3_1.v5h(6, this.zi2_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ai3_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).m5f = function (_stmt, completion) {
    var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda(this.xi2_1, this.yi2_1, this.zi2_1, completion);
    i.ai3_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.wdn(_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.j66('firstPermission');
      var _tmp_secondPermission = $_result.j66('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.hdn_1 = _tmp_firstPermission;
      this_0.idn_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.j66('hasViewPermission');
      var _tmp_hasEditPermission = $_result.j66('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.bi3_1 = _tmp_hasViewPermission;
      this_0.ci3_1 = _tmp_hasEditPermission;
      return this_0;
    };
  }
  function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda($otherPersonUid, $accountPersonUid, resultContinuation) {
    this.li3_1 = $otherPersonUid;
    this.mi3_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda).oi3 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.oi3((!(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.ni3_1.v5h(1, this.li3_1);
            this.ni3_1.v5h(2, this.mi3_1);
            this.ni3_1.v5h(3, this.mi3_1);
            this.ni3_1.v5h(4, this.li3_1);
            this.ni3_1.v5h(5, this.mi3_1);
            this.ni3_1.v5h(6, this.mi3_1);
            this.ni3_1.v5h(7, this.mi3_1);
            this.ni3_1.v5h(8, this.li3_1);
            this.ni3_1.v5h(9, this.li3_1);
            this.ni3_1.v5h(10, this.mi3_1);
            this.ni3_1.v5h(11, this.mi3_1);
            this.ni3_1.v5h(12, this.mi3_1);
            this.ni3_1.v5h(13, this.li3_1);
            this.ni3_1.v5h(14, this.mi3_1);
            this.ni3_1.v5h(15, this.li3_1);
            this.ni3_1.v5h(16, this.li3_1);
            this.ni3_1.v5h(17, this.mi3_1);
            this.ni3_1.v5h(18, this.mi3_1);
            this.ni3_1.v5h(19, this.mi3_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ni3_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).m5f = function (_stmt, completion) {
    var i = new SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda(this.li3_1, this.mi3_1, completion);
    i.ni3_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.oi3(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.pi3_1);
  }
  protoOf(SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO SystemPermission (spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1).ti3 = function (stmt, entity) {
    if (entity.ni1_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.ni1_1);
    }
    stmt.v5h(2, entity.oi1_1);
    stmt.v5h(3, entity.pi1_1);
    stmt.v5h(4, entity.qi1_1);
    stmt.v5h(5, entity.ri1_1);
    stmt.i5h(6, entity.si1_1);
  };
  protoOf(SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1).p5f = function (stmt, entity) {
    return this.ti3(stmt, entity instanceof SystemPermission ? entity : THROW_CCE());
  };
  function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda(this$0, $accountPersonUid, resultContinuation) {
    this.ci4_1 = this$0;
    this.di4_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda).ei4 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda).m78 = function ($completion) {
    return this.ei4($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.ci4_1.pi3_1, tmp_0, SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda_0(this.di4_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).l78 = function (completion) {
    return new SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda(this.ci4_1, this.di4_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.ei4($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SystemPermissionDao_JdbcImpl$findByPersonUid$slambda($accountPersonUid, resultContinuation) {
    this.ni4_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$findByPersonUid$slambda).pi4 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.pi4((!(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.oi4_1.v5h(1, this.ni4_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.oi4_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).m5f = function (_stmt, completion) {
    var i = new SystemPermissionDao_JdbcImpl$findByPersonUid$slambda(this.ni4_1, completion);
    i.oi4_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.pi4(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda($accountPersonUid, $permission, resultContinuation) {
    this.yi4_1 = $accountPersonUid;
    this.zi4_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda).ta6 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.ta6((!(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.ai5_1.v5h(1, this.yi4_1);
            this.ai5_1.v5h(2, this.yi4_1);
            this.ai5_1.v5h(3, this.zi4_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ai5_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).m5f = function (_stmt, completion) {
    var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda(this.yi4_1, this.zi4_1, completion);
    i.ai5_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.ta6(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda(this$0, $accountPersonUid, $permission, resultContinuation) {
    this.ji5_1 = this$0;
    this.ki5_1 = $accountPersonUid;
    this.li5_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda).ia8 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda).m78 = function ($completion) {
    return this.ia8($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.ji5_1.pi3_1, tmp_0, SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda_0(this.ki5_1, this.li5_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).l78 = function (completion) {
    return new SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda(this.ji5_1, this.ki5_1, this.li5_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.ia8($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    this.ui5_1 = this$0;
    this.vi5_1 = $accountPersonUid;
    this.wi5_1 = $firstPermission;
    this.xi5_1 = $secondPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda).pds = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda).m78 = function ($completion) {
    return this.pds($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.ui5_1.pi3_1, tmp_0, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda_0(this.vi5_1, this.wi5_1, this.xi5_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).l78 = function (completion) {
    return new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda(this.ui5_1, this.vi5_1, this.wi5_1, this.xi5_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.pds($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda($accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    this.gi6_1 = $accountPersonUid;
    this.hi6_1 = $firstPermission;
    this.ii6_1 = $secondPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda).wdn = function (_stmt, $completion) {
    var tmp = this.m5f(_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.wdn((!(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.ji6_1.v5h(1, this.gi6_1);
            this.ji6_1.v5h(2, this.gi6_1);
            this.ji6_1.v5h(3, this.hi6_1);
            this.ji6_1.v5h(4, this.gi6_1);
            this.ji6_1.v5h(5, this.gi6_1);
            this.ji6_1.v5h(6, this.ii6_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ji6_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).m5f = function (_stmt, completion) {
    var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda(this.gi6_1, this.hi6_1, this.ii6_1, completion);
    i.ji6_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.wdn(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda(this$0, $otherPersonUid, $accountPersonUid, resultContinuation) {
    this.si6_1 = this$0;
    this.ti6_1 = $otherPersonUid;
    this.ui6_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda).vi6 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda).m78 = function ($completion) {
    return this.vi6($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.si6_1.pi3_1, tmp_0, SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda_0(this.ti6_1, this.ui6_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).l78 = function (completion) {
    return new SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda(this.si6_1, this.ti6_1, this.ui6_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.vi6($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SystemPermissionDao_JdbcImpl(_db) {
    SystemPermissionDao.call(this);
    this.pi3_1 = _db;
    var tmp = this;
    tmp.qi3_1 = new SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1(this);
  }
  protoOf(SystemPermissionDao_JdbcImpl).yi0 = function (systemPermissions, $completion) {
    return this.qi3_1.v5g(systemPermissions, $completion);
  };
  protoOf(SystemPermissionDao_JdbcImpl).ri0 = 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.pi3_1, tmp, SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda_0(this, accountPersonUid, null));
  };
  protoOf(SystemPermissionDao_JdbcImpl).si0 = 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.pi3_1, tmp, SystemPermissionDao_JdbcImpl$findByPersonUid$slambda_0(accountPersonUid, null), $completion);
  };
  protoOf(SystemPermissionDao_JdbcImpl).ti0 = 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.pi3_1, tmp, SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda_0(accountPersonUid, permission, null), $completion);
  };
  protoOf(SystemPermissionDao_JdbcImpl).ui0 = 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.pi3_1, tmp, SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda_0(this, accountPersonUid, permission, null));
  };
  protoOf(SystemPermissionDao_JdbcImpl).vi0 = 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.pi3_1, tmp, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda_0(this, accountPersonUid, firstPermission, secondPermission, null));
  };
  protoOf(SystemPermissionDao_JdbcImpl).wi0 = 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.pi3_1, tmp, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda_0(accountPersonUid, firstPermission, secondPermission, null), $completion);
  };
  protoOf(SystemPermissionDao_JdbcImpl).xi0 = 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.pi3_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.ei7_1 = this$0;
    this.fi7_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.gi7_1 = this.ei7_1.pi7_1;
            var tmp_1 = this;
            tmp_1.hi7_1 = 'SystemPermissionDao/findByPersonUidAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ii7_1 = this.ei7_1.ri7_1;
            var tmp_3 = this;
            tmp_3.ji7_1 = this.ii7_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ei7_1.pi7_1.j39(), 'SystemPermissionDao/findByPersonUidAsFlow');
            doorNodeIdHeader(this_0, this.ei7_1.pi7_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.ei7_1.pi7_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.fi7_1));
            tmp_4.ki7_1 = this_0;
            this.ki7_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.li7_1 = this.ji7_1;
            var tmp_6 = this;
            tmp_6.mi7_1 = this.ki7_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.mi7_1, this.li7_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.ni7_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ei7_1.oi7_1, this.ni7_1, this.ei7_1.pi7_1.j39().x65_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().d5e(e, 'DoorLog', SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda$lambda(this.gi7_1, this.hi7_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).l78 = function (completion) {
    return new SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda(this.ei7_1, this.fi7_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.j87($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.di8_1 = this$0;
    this.ei8_1 = $accountPersonUid;
    this.fi8_1 = $permission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.gi8_1 = this.di8_1.pi7_1;
            var tmp_1 = this;
            tmp_1.hi8_1 = 'SystemPermissionDao/personHasSystemPermissionAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ii8_1 = this.di8_1.ri7_1;
            var tmp_3 = this;
            tmp_3.ji8_1 = this.ii8_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.di8_1.pi7_1.j39(), 'SystemPermissionDao/personHasSystemPermissionAsFlow');
            doorNodeIdHeader(this_0, this.di8_1.pi7_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.di8_1.pi7_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ei8_1));
            parameter(this_0, 'permission', this.di8_1.pi7_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.fi8_1));
            tmp_4.ki8_1 = this_0;
            this.ki8_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.li8_1 = this.ji8_1;
            var tmp_6 = this;
            tmp_6.mi8_1 = this.ki8_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.mi8_1, this.li8_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.ni8_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.di8_1.oi7_1, this.ni8_1, this.di8_1.pi7_1.j39().x65_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().d5e(e, 'DoorLog', SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda$lambda(this.gi8_1, this.hi8_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).l78 = function (completion) {
    return new SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda(this.di8_1, this.ei8_1, this.fi8_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) {
    this.wi8_1 = this$0;
    this.xi8_1 = $accountPersonUid;
    this.yi8_1 = $firstPermission;
    this.zi8_1 = $secondPermission;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.ai9_1 = this.wi8_1.pi7_1;
            var tmp_1 = this;
            tmp_1.bi9_1 = 'SystemPermissionDao/personHasSystemPermissionPairAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ci9_1 = this.wi8_1.ri7_1;
            var tmp_3 = this;
            tmp_3.di9_1 = this.ci9_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.wi8_1.pi7_1.j39(), 'SystemPermissionDao/personHasSystemPermissionPairAsFlow');
            doorNodeIdHeader(this_0, this.wi8_1.pi7_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.wi8_1.pi7_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.xi8_1));
            parameter(this_0, 'firstPermission', this.wi8_1.pi7_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.yi8_1));
            parameter(this_0, 'secondPermission', this.wi8_1.pi7_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.zi8_1));
            tmp_4.ei9_1 = this_0;
            this.ei9_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.fi9_1 = this.di9_1;
            var tmp_6 = this;
            tmp_6.gi9_1 = this.ei9_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.gi9_1, this.fi9_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.hi9_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.wi8_1.oi7_1, this.hi9_1, this.wi8_1.pi7_1.j39().x65_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().d5e(e, 'DoorLog', SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda$lambda(this.ai9_1, this.bi9_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).l78 = function (completion) {
    return new SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda(this.wi8_1, this.xi8_1, this.yi8_1, this.zi8_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.j87($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.qi9_1 = this$0;
    this.ri9_1 = $accountPersonUid;
    this.si9_1 = $otherPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.ti9_1 = this.qi9_1.pi7_1;
            var tmp_1 = this;
            tmp_1.ui9_1 = 'SystemPermissionDao/personHasEditAndViewPermissionForPersonAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.vi9_1 = this.qi9_1.ri7_1;
            var tmp_3 = this;
            tmp_3.wi9_1 = this.vi9_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.qi9_1.pi7_1.j39(), 'SystemPermissionDao/personHasEditAndViewPermissionForPersonAsFlow');
            doorNodeIdHeader(this_0, this.qi9_1.pi7_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.qi9_1.pi7_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ri9_1));
            parameter(this_0, 'otherPersonUid', this.qi9_1.pi7_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.si9_1));
            tmp_4.xi9_1 = this_0;
            this.xi9_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.yi9_1 = this.wi9_1;
            var tmp_6 = this;
            tmp_6.zi9_1 = this.xi9_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.zi9_1, this.yi9_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.aia_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.qi9_1.oi7_1, this.aia_1, this.qi9_1.pi7_1.j39().x65_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().d5e(e, 'DoorLog', SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda$lambda(this.ti9_1, this.ui9_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).l78 = function (completion) {
    return new SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda(this.qi9_1, this.ri9_1, this.si9_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function SystemPermissionDao_Repo$upsertAsync$slambda(this$0, $systemPermissions, resultContinuation) {
    this.jia_1 = this$0;
    this.kia_1 = $systemPermissions;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(SystemPermissionDao_Repo$upsertAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_Repo$upsertAsync$slambda).m78 = function ($completion) {
    return this.j87($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.jia_1.qi7_1.yi0(this.kia_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).l78 = function (completion) {
    return new SystemPermissionDao_Repo$upsertAsync$slambda(this.jia_1, this.kia_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findByPersonUidCOROUTINE$431(_this__u8e3s4, accountPersonUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.tia_1 = _this__u8e3s4;
    this.uia_1 = accountPersonUid;
  }
  protoOf($findByPersonUidCOROUTINE$431).ud = function () {
    var 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.tia_1.qi7_1.si0(this.uia_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$432(_this__u8e3s4, accountPersonUid, permission, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.dib_1 = _this__u8e3s4;
    this.eib_1 = accountPersonUid;
    this.fib_1 = permission;
  }
  protoOf($personHasSystemPermissionCOROUTINE$432).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.gib_1 = this.dib_1.pi7_1;
            var tmp_1 = this;
            tmp_1.hib_1 = 'SystemPermissionDao/personHasSystemPermission';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.iib_1 = this.dib_1.ri7_1;
            var tmp_3 = this;
            tmp_3.jib_1 = this.iib_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.dib_1.pi7_1.j39(), 'SystemPermissionDao/personHasSystemPermission');
            doorNodeIdHeader(this_0, this.dib_1.pi7_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.dib_1.pi7_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.eib_1));
            parameter(this_0, 'permission', this.dib_1.pi7_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.fib_1));
            tmp_4.kib_1 = this_0;
            this.kib_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.lib_1 = this.jib_1;
            var tmp_6 = this;
            tmp_6.mib_1 = this.kib_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.mib_1, this.lib_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.nib_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.dib_1.oi7_1, this.nib_1, this.dib_1.pi7_1.j39().x65_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.oib_1 = this.kd_1;
              Napier_getInstance().d5e(this.oib_1, 'DoorLog', SystemPermissionDao_Repo$personHasSystemPermission$lambda(this.gib_1, this.hib_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.dib_1.qi7_1.ti0(this.eib_1, this.fib_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$433(_this__u8e3s4, accountPersonUid, firstPermission, secondPermission, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.xib_1 = _this__u8e3s4;
    this.yib_1 = accountPersonUid;
    this.zib_1 = firstPermission;
    this.aic_1 = secondPermission;
  }
  protoOf($personHasSystemPermissionPairCOROUTINE$433).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.bic_1 = this.xib_1.pi7_1;
            var tmp_1 = this;
            tmp_1.cic_1 = 'SystemPermissionDao/personHasSystemPermissionPair';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.dic_1 = this.xib_1.ri7_1;
            var tmp_3 = this;
            tmp_3.eic_1 = this.dic_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.xib_1.pi7_1.j39(), 'SystemPermissionDao/personHasSystemPermissionPair');
            doorNodeIdHeader(this_0, this.xib_1.pi7_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'accountPersonUid', this.xib_1.pi7_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.yib_1));
            parameter(this_0, 'firstPermission', this.xib_1.pi7_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.zib_1));
            parameter(this_0, 'secondPermission', this.xib_1.pi7_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.aic_1));
            tmp_4.fic_1 = this_0;
            this.fic_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.gic_1 = this.eic_1;
            var tmp_6 = this;
            tmp_6.hic_1 = this.fic_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.hic_1, this.gic_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.iic_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.xib_1.oi7_1, this.iic_1, this.xib_1.pi7_1.j39().x65_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.jic_1 = this.kd_1;
              Napier_getInstance().d5e(this.jic_1, 'DoorLog', SystemPermissionDao_Repo$personHasSystemPermissionPair$lambda(this.bic_1, this.cic_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.xib_1.qi7_1.wi0(this.yib_1, this.zib_1, this.aic_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.oi7_1 = _db;
    this.pi7_1 = _repo;
    this.qi7_1 = _dao;
    this.ri7_1 = _httpClient;
    this.si7_1 = _clientId;
    this.ti7_1 = _endpoint;
    this.ui7_1 = new RepoDaoFlowHelper(this.pi7_1);
  }
  protoOf(SystemPermissionDao_Repo).ri0 = function (accountPersonUid) {
    var tmp = this.qi7_1.ri0(accountPersonUid);
    return this.ui7_1.o67(tmp, SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda_0(this, accountPersonUid, null));
  };
  protoOf(SystemPermissionDao_Repo).si0 = function (accountPersonUid, $completion) {
    var tmp = new $findByPersonUidCOROUTINE$431(this, accountPersonUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_Repo).ti0 = function (accountPersonUid, permission, $completion) {
    var tmp = new $personHasSystemPermissionCOROUTINE$432(this, accountPersonUid, permission, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_Repo).ui0 = function (accountPersonUid, permission) {
    var tmp = this.qi7_1.ui0(accountPersonUid, permission);
    return this.ui7_1.o67(tmp, SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda_0(this, accountPersonUid, permission, null));
  };
  protoOf(SystemPermissionDao_Repo).vi0 = function (accountPersonUid, firstPermission, secondPermission) {
    var tmp = this.qi7_1.vi0(accountPersonUid, firstPermission, secondPermission);
    return this.ui7_1.o67(tmp, SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda_0(this, accountPersonUid, firstPermission, secondPermission, null));
  };
  protoOf(SystemPermissionDao_Repo).wi0 = function (accountPersonUid, firstPermission, secondPermission, $completion) {
    var tmp = new $personHasSystemPermissionPairCOROUTINE$433(this, accountPersonUid, firstPermission, secondPermission, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(SystemPermissionDao_Repo).xi0 = function (accountPersonUid, otherPersonUid) {
    var tmp = this.qi7_1.xi0(accountPersonUid, otherPersonUid);
    return this.ui7_1.o67(tmp, SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda_0(this, accountPersonUid, otherPersonUid, null));
  };
  protoOf(SystemPermissionDao_Repo).yi0 = function (systemPermissions, $completion) {
    return withRepoChangeMonitorAsync(this.pi7_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.y5m('totalSize');
      var _tmp_transferred = $_result.y5m('transferred');
      var _tmp_latestErrorStr = $_result.rz('latestErrorStr');
      var _tmp_TransferJob_nullCount = 0;
      var _tmp_tjUid = $_result.x5m('tjUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_tjType = $_result.x5m('tjType');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_tjStatus = $_result.x5m('tjStatus');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_tjName = $_result.rz('tjName');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_tjUuid = $_result.rz('tjUuid');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_tjTableId = $_result.x5m('tjTableId');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_tjEntityUid = $_result.y5m('tjEntityUid');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_tjTimeCreated = $_result.y5m('tjTimeCreated');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_tjCreationType = $_result.x5m('tjCreationType');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_tjOiUid = $_result.y5m('tjOiUid');
      var tmp_8;
      if ($_result.q67()) {
        _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.rfr_1 = _tmp_totalSize;
      this_0.sfr_1 = _tmp_transferred;
      this_0.tfr_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.ufr_1 = _tmp_tjUid;
        this_1.vfr_1 = _tmp_tjType;
        this_1.wfr_1 = _tmp_tjStatus;
        this_1.xfr_1 = _tmp_tjName;
        this_1.yfr_1 = _tmp_tjUuid;
        this_1.zfr_1 = _tmp_tjTableId;
        this_1.afs_1 = _tmp_tjEntityUid;
        this_1.bfs_1 = _tmp_tjTimeCreated;
        this_1.cfs_1 = _tmp_tjCreationType;
        this_1.dfs_1 = _tmp_tjOiUid;
        tmp_9.qfr_1 = this_1;
      }
      return this_0;
    };
  }
  function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda($contentEntryUid, $jobType, resultContinuation) {
    this.vic_1 = $contentEntryUid;
    this.wic_1 = $jobType;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda).yic = function (_stmt, $completion) {
    var tmp = this.m5f(_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.yic((!(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.xic_1.v5h(1, this.vic_1);
            this.xic_1.u5h(2, this.wic_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.xic_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).m5f = function (_stmt, completion) {
    var i = new TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda(this.vic_1, this.wic_1, completion);
    i.xic_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.yic(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.zic_1);
  }
  protoOf(TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO TransferJob (tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1).did = function (stmt, entity) {
    if (entity.ufr_1 === 0) {
      stmt.a5i(1, null);
    } else {
      stmt.u5h(1, entity.ufr_1);
    }
    stmt.u5h(2, entity.vfr_1);
    stmt.u5h(3, entity.wfr_1);
    stmt.y5h(4, entity.xfr_1);
    stmt.y5h(5, entity.yfr_1);
    stmt.u5h(6, entity.zfr_1);
    stmt.v5h(7, entity.afs_1);
    stmt.v5h(8, entity.bfs_1);
    stmt.u5h(9, entity.cfs_1);
    stmt.v5h(10, entity.dfs_1);
  };
  protoOf(TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1).p5f = function (stmt, entity) {
    return this.did(stmt, entity instanceof TransferJob ? entity : THROW_CCE());
  };
  function TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda($jobUid, resultContinuation) {
    this.mid_1 = $jobUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.nid_1.u5h(1, this.mid_1);
            this.nid_1.u5h(2, this.mid_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.nid_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).m5f = function (_stmt, completion) {
    var i = new TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda(this.mid_1, completion);
    i.nid_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda(this$0, $contentEntryUid, $jobType, resultContinuation) {
    this.wid_1 = this$0;
    this.xid_1 = $contentEntryUid;
    this.yid_1 = $jobType;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda).zid = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda).m78 = function ($completion) {
    return this.zid($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.wid_1.zic_1, tmp_0, TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda_0(this.xid_1, this.yid_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).l78 = function (completion) {
    return new TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda(this.wid_1, this.xid_1, this.yid_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.zid($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertCOROUTINE$434(_this__u8e3s4, job, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.iie_1 = _this__u8e3s4;
    this.jie_1 = job;
  }
  protoOf($insertCOROUTINE$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;
            suspendResult = this.iie_1.aid_1.w5g(this.jie_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.zic_1 = _db;
    var tmp = this;
    tmp.aid_1 = new TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1(this);
  }
  protoOf(TransferJobDao_JdbcImpl).kic = function (job, $completion) {
    var tmp = new $insertCOROUTINE$434(this, job, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(TransferJobDao_JdbcImpl).lic = 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.zic_1, tmp, TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda_0(jobUid, null), $completion);
  };
  protoOf(TransferJobDao_JdbcImpl).mic = 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.zic_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.kie_1);
  }
  protoOf(TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1).u5g = function (returnsId) {
    return 'INSERT INTO TransferJobError (tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed) VALUES(?, ?, ?, ?, ?)';
  };
  protoOf(TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1).oie = function (stmt, entity) {
    if (entity.pie_1 === 0) {
      stmt.a5i(1, null);
    } else {
      stmt.u5h(1, entity.pie_1);
    }
    stmt.u5h(2, entity.qie_1);
    stmt.v5h(3, entity.rie_1);
    stmt.y5h(4, entity.sie_1);
    stmt.i5h(5, entity.tie_1);
  };
  protoOf(TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1).p5f = function (stmt, entity) {
    return this.oie(stmt, entity instanceof TransferJobError ? entity : THROW_CCE());
  };
  function TransferJobErrorDao_JdbcImpl(_db) {
    TransferJobErrorDao.call(this);
    this.kie_1 = _db;
    var tmp = this;
    tmp.lie_1 = new TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1(this);
  }
  function TransferJobItemDao() {
  }
  function TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.zie_1);
  }
  protoOf(TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1).u5g = 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).dif = function (stmt, entity) {
    if (entity.ycb_1 === 0) {
      stmt.a5i(1, null);
    } else {
      stmt.u5h(1, entity.ycb_1);
    }
    stmt.u5h(2, entity.zcb_1);
    stmt.v5h(3, entity.acc_1);
    stmt.v5h(4, entity.bcc_1);
    stmt.u5h(5, entity.ccc_1);
    stmt.y5h(6, entity.dcc_1);
    stmt.y5h(7, entity.ecc_1);
    stmt.u5h(8, entity.fcc_1);
    stmt.u5h(9, entity.gcc_1);
    stmt.u5h(10, entity.hcc_1);
    stmt.v5h(11, entity.icc_1);
    stmt.v5h(12, entity.jcc_1);
    stmt.v5h(13, entity.kcc_1);
    stmt.y5h(14, entity.lcc_1);
  };
  protoOf(TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1).p5f = function (stmt, entity) {
    return this.dif(stmt, entity instanceof TransferJobItem ? entity : THROW_CCE());
  };
  function TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda($transferred, $jobItemUid, resultContinuation) {
    this.mif_1 = $transferred;
    this.nif_1 = $jobItemUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.oif_1.v5h(1, this.mif_1);
            this.oif_1.u5h(2, this.nif_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.oif_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).m5f = function (_stmt, completion) {
    var i = new TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda(this.mif_1, this.nif_1, completion);
    i.oif_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function TransferJobItemDao_JdbcImpl$updateStatus$slambda($status, $jobItemUid, resultContinuation) {
    this.xif_1 = $status;
    this.yif_1 = $jobItemUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(TransferJobItemDao_JdbcImpl$updateStatus$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.zif_1.u5h(1, this.xif_1);
            this.zif_1.u5h(2, this.yif_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.zif_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).m5f = function (_stmt, completion) {
    var i = new TransferJobItemDao_JdbcImpl$updateStatus$slambda(this.xif_1, this.yif_1, completion);
    i.zif_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda($destNodeId, $transferJobItemUid, resultContinuation) {
    this.iig_1 = $destNodeId;
    this.jig_1 = $transferJobItemUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.kig_1.v5h(1, this.iig_1);
            this.kig_1.u5h(2, this.jig_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.kig_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).m5f = function (_stmt, completion) {
    var i = new TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda(this.iig_1, this.jig_1, completion);
    i.kig_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda($status, $jobUid, resultContinuation) {
    this.tig_1 = $status;
    this.uig_1 = $jobUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.vig_1.u5h(1, this.tig_1);
            this.vig_1.u5h(2, this.uig_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.vig_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).m5f = function (_stmt, completion) {
    var i = new TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda(this.tig_1, this.uig_1, completion);
    i.vig_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertCOROUTINE$437(_this__u8e3s4, item, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.eih_1 = _this__u8e3s4;
    this.fih_1 = item;
  }
  protoOf($insertCOROUTINE$437).ud = function () {
    var 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.eih_1.aif_1.w5g(this.fih_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$438(_this__u8e3s4, jobItemUid, transferred, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.oih_1 = _this__u8e3s4;
    this.pih_1 = jobItemUid;
    this.qih_1 = transferred;
  }
  protoOf($updateTransferredProgressCOROUTINE$438).ud = function () {
    var 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.oih_1.zie_1, tmp_0, TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda_0(this.qih_1, this.pih_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$439(_this__u8e3s4, jobItemUid, status, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.zih_1 = _this__u8e3s4;
    this.aii_1 = jobItemUid;
    this.bii_1 = status;
  }
  protoOf($updateStatusCOROUTINE$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 TransferJobItem\n           SET tjiStatus = ?\n         WHERE tjiUid = ?  \n    ', VOID, VOID, VOID, VOID, false);
            suspendResult = prepareAndUseStatementAsync(this.zih_1.zie_1, tmp_0, TransferJobItemDao_JdbcImpl$updateStatus$slambda_0(this.bii_1, this.aii_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$440(_this__u8e3s4, destNodeId, transferJobItemUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.kii_1 = _this__u8e3s4;
    this.lii_1 = destNodeId;
    this.mii_1 = transferJobItemUid;
  }
  protoOf($insertOutgoingReplicationForTransferJobItemIfDoneCOROUTINE$440).ud = function () {
    var 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.kii_1.zie_1, tmp_0, TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda_0(this.lii_1, this.mii_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$441(_this__u8e3s4, jobUid, status, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vii_1 = _this__u8e3s4;
    this.wii_1 = jobUid;
    this.xii_1 = status;
  }
  protoOf($updateStatusIfNotCompleteForAllInJobCOROUTINE$441).ud = function () {
    var 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.vii_1.zie_1, tmp_0, TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda_0(this.xii_1, this.wii_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.zie_1 = _db;
    var tmp = this;
    tmp.aif_1 = new TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1(this);
  }
  protoOf(TransferJobItemDao_JdbcImpl).uie = function (item, $completion) {
    var tmp = new $insertCOROUTINE$437(this, item, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(TransferJobItemDao_JdbcImpl).vie = function (jobItemUid, transferred, $completion) {
    var tmp = new $updateTransferredProgressCOROUTINE$438(this, jobItemUid, transferred, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(TransferJobItemDao_JdbcImpl).wie = function (jobItemUid, status, $completion) {
    var tmp = new $updateStatusCOROUTINE$439(this, jobItemUid, status, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(TransferJobItemDao_JdbcImpl).xie = function (destNodeId, transferJobItemUid, $completion) {
    var tmp = new $insertOutgoingReplicationForTransferJobItemIfDoneCOROUTINE$440(this, destNodeId, transferJobItemUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(TransferJobItemDao_JdbcImpl).yie = function (jobUid, status, $completion) {
    var tmp = new $updateStatusIfNotCompleteForAllInJobCOROUTINE$441(this, jobUid, status, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function UserSessionDao() {
  }
  function $insertSessionCOROUTINE$442(_this__u8e3s4, session, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.lij_1 = _this__u8e3s4;
    this.mij_1 = session;
  }
  protoOf($insertSessionCOROUTINE$442).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 4;
            this.nij_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.lij_1.pij_1));
            if (this.mij_1.rij_1.equals(new Long(0, 0))) {
              this.hd_1 = 1;
              suspendResult = this.nij_1.o62(679, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 2;
              continue $sm;
            }

          case 1:
            this.oij_1 = suspendResult;
            this.mij_1.rij_1 = this.oij_1;
            this.hd_1 = 2;
            continue $sm;
          case 2:
            this.mij_1.vij_1 = systemTimeInMillis();
            this.hd_1 = 3;
            suspendResult = this.lij_1.qij_1.yii(this.mij_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            return this.mij_1.rij_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.pij_1 = _db;
    this.qij_1 = _dao;
  }
  protoOf(UserSessionDao_DoorWrapper).yii = function (session, $completion) {
    var tmp = new $insertSessionCOROUTINE$442(this, session, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_DoorWrapper).zii = function () {
    return this.qij_1.zii();
  };
  protoOf(UserSessionDao_DoorWrapper).aij = function ($completion) {
    return this.qij_1.aij($completion);
  };
  protoOf(UserSessionDao_DoorWrapper).bij = function (maxDateOfBirth, $completion) {
    return this.qij_1.bij(maxDateOfBirth, $completion);
  };
  protoOf(UserSessionDao_DoorWrapper).cij = function (sessionUid, newStatus, reason, endTime, $completion) {
    return this.qij_1.cij(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.y5m('personUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_gender = $_result.x5m('gender');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_active = $_result.j66('active');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_isPersonalAccount = $_result.j66('isPersonalAccount');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.y5m('dateOfBirth');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.y5m('personGroupUid');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_personLct = $_result.y5m('personLct');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personType = $_result.x5m('personType');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.y5m('personMasterChangeSeqNum');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.y5m('personLocalChangeSeqNum');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.x5m('personLastChangedBy');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_admin = $_result.j66('admin');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 25;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.y5m('personPictureUid');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.y5m('personPictureLct');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_fileSize = $_result.x5m('fileSize');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.j66('personPictureActive');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6;
      var _tmp_UserSession_nullCount = 0;
      var _tmp_usUid = $_result.y5m('usUid');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_usPcsn = $_result.y5m('usPcsn');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_usLcsn = $_result.y5m('usLcsn');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_usLcb = $_result.y5m('usLcb');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_usLct = $_result.y5m('usLct');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_usPersonUid = $_result.y5m('usPersonUid');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_usClientNodeId = $_result.y5m('usClientNodeId');
      var tmp_36;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_usStartTime = $_result.y5m('usStartTime');
      var tmp_37;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_usEndTime = $_result.y5m('usEndTime');
      var tmp_38;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_usStatus = $_result.x5m('usStatus');
      var tmp_39;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_usReason = $_result.x5m('usReason');
      var tmp_40;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_usAuth = $_result.rz('usAuth');
      var tmp_41;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_usSessionType = $_result.x5m('usSessionType');
      var tmp_42;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_42 = 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_43 = 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.f96_1 = _tmp_personUid;
        this_1.g96_1 = _tmp_username;
        this_1.h96_1 = _tmp_firstNames;
        this_1.i96_1 = _tmp_lastName;
        this_1.j96_1 = _tmp_emailAddr;
        this_1.k96_1 = _tmp_phoneNum;
        this_1.l96_1 = _tmp_gender;
        this_1.m96_1 = _tmp_active;
        this_1.n96_1 = _tmp_isPersonalAccount;
        this_1.o96_1 = _tmp_dateOfBirth;
        this_1.p96_1 = _tmp_personAddress;
        this_1.q96_1 = _tmp_personOrgId;
        this_1.r96_1 = _tmp_personGroupUid;
        this_1.s96_1 = _tmp_personLct;
        this_1.t96_1 = _tmp_personCountry;
        this_1.u96_1 = _tmp_personType;
        this_1.v96_1 = _tmp_personMasterChangeSeqNum;
        this_1.w96_1 = _tmp_personLocalChangeSeqNum;
        this_1.x96_1 = _tmp_personLastChangedBy;
        this_1.y96_1 = _tmp_admin;
        this_1.z96_1 = _tmp_personNotes;
        this_1.a97_1 = _tmp_fatherName;
        this_1.b97_1 = _tmp_fatherNumber;
        this_1.c97_1 = _tmp_motherName;
        this_1.d97_1 = _tmp_motherNum;
        tmp_43.eik_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.UserSessionDao_JdbcImpl.findAllLocalSessionsLive.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.e97_1 = _tmp_personPictureUid;
        this_2.f97_1 = _tmp_personPictureLct;
        this_2.g97_1 = _tmp_personPictureUri;
        this_2.h97_1 = _tmp_personPictureThumbnailUri;
        this_2.i97_1 = _tmp_fileSize;
        this_2.j97_1 = _tmp_personPictureActive;
        tmp_44.fik_1 = this_2;
      }
      if (!_tmp_UserSession_isAllNull) {
        var tmp_45 = 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.rij_1 = _tmp_usUid;
        this_3.sij_1 = _tmp_usPcsn;
        this_3.tij_1 = _tmp_usLcsn;
        this_3.uij_1 = _tmp_usLcb;
        this_3.vij_1 = _tmp_usLct;
        this_3.wij_1 = _tmp_usPersonUid;
        this_3.xij_1 = _tmp_usClientNodeId;
        this_3.yij_1 = _tmp_usStartTime;
        this_3.zij_1 = _tmp_usEndTime;
        this_3.aik_1 = _tmp_usStatus;
        this_3.bik_1 = _tmp_usReason;
        this_3.cik_1 = _tmp_usAuth;
        this_3.dik_1 = _tmp_usSessionType;
        tmp_45.gik_1 = this_3;
      }
      return this_0;
    };
  }
  function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda(resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda).qik = function (_stmt, $completion) {
    var tmp = this.m5f(_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.qik((!(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.pik_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).m5f = function (_stmt, completion) {
    var i = new UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda(completion);
    i.pik_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.qik(_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.y5m('personUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_gender = $_result.x5m('gender');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_active = $_result.j66('active');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_isPersonalAccount = $_result.j66('isPersonalAccount');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.y5m('dateOfBirth');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.y5m('personGroupUid');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_personLct = $_result.y5m('personLct');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personType = $_result.x5m('personType');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.y5m('personMasterChangeSeqNum');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.y5m('personLocalChangeSeqNum');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.x5m('personLastChangedBy');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_admin = $_result.j66('admin');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 25;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.y5m('personPictureUid');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.y5m('personPictureLct');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_fileSize = $_result.x5m('fileSize');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.j66('personPictureActive');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6;
      var _tmp_UserSession_nullCount = 0;
      var _tmp_usUid = $_result.y5m('usUid');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_usPcsn = $_result.y5m('usPcsn');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_usLcsn = $_result.y5m('usLcsn');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_usLcb = $_result.y5m('usLcb');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_usLct = $_result.y5m('usLct');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_usPersonUid = $_result.y5m('usPersonUid');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_usClientNodeId = $_result.y5m('usClientNodeId');
      var tmp_36;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_usStartTime = $_result.y5m('usStartTime');
      var tmp_37;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_usEndTime = $_result.y5m('usEndTime');
      var tmp_38;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_usStatus = $_result.x5m('usStatus');
      var tmp_39;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_usReason = $_result.x5m('usReason');
      var tmp_40;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_usAuth = $_result.rz('usAuth');
      var tmp_41;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_usSessionType = $_result.x5m('usSessionType');
      var tmp_42;
      if ($_result.q67()) {
        _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0;
        tmp_42 = 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_43 = 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.f96_1 = _tmp_personUid;
        this_1.g96_1 = _tmp_username;
        this_1.h96_1 = _tmp_firstNames;
        this_1.i96_1 = _tmp_lastName;
        this_1.j96_1 = _tmp_emailAddr;
        this_1.k96_1 = _tmp_phoneNum;
        this_1.l96_1 = _tmp_gender;
        this_1.m96_1 = _tmp_active;
        this_1.n96_1 = _tmp_isPersonalAccount;
        this_1.o96_1 = _tmp_dateOfBirth;
        this_1.p96_1 = _tmp_personAddress;
        this_1.q96_1 = _tmp_personOrgId;
        this_1.r96_1 = _tmp_personGroupUid;
        this_1.s96_1 = _tmp_personLct;
        this_1.t96_1 = _tmp_personCountry;
        this_1.u96_1 = _tmp_personType;
        this_1.v96_1 = _tmp_personMasterChangeSeqNum;
        this_1.w96_1 = _tmp_personLocalChangeSeqNum;
        this_1.x96_1 = _tmp_personLastChangedBy;
        this_1.y96_1 = _tmp_admin;
        this_1.z96_1 = _tmp_personNotes;
        this_1.a97_1 = _tmp_fatherName;
        this_1.b97_1 = _tmp_fatherNumber;
        this_1.c97_1 = _tmp_motherName;
        this_1.d97_1 = _tmp_motherNum;
        tmp_43.eik_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.UserSessionDao_JdbcImpl.findAllLocalSessionsAsync.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.e97_1 = _tmp_personPictureUid;
        this_2.f97_1 = _tmp_personPictureLct;
        this_2.g97_1 = _tmp_personPictureUri;
        this_2.h97_1 = _tmp_personPictureThumbnailUri;
        this_2.i97_1 = _tmp_fileSize;
        this_2.j97_1 = _tmp_personPictureActive;
        tmp_44.fik_1 = this_2;
      }
      if (!_tmp_UserSession_isAllNull) {
        var tmp_45 = 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.rij_1 = _tmp_usUid;
        this_3.sij_1 = _tmp_usPcsn;
        this_3.tij_1 = _tmp_usLcsn;
        this_3.uij_1 = _tmp_usLcb;
        this_3.vij_1 = _tmp_usLct;
        this_3.wij_1 = _tmp_usPersonUid;
        this_3.xij_1 = _tmp_usClientNodeId;
        this_3.yij_1 = _tmp_usStartTime;
        this_3.zij_1 = _tmp_usEndTime;
        this_3.aik_1 = _tmp_usStatus;
        this_3.bik_1 = _tmp_usReason;
        this_3.cik_1 = _tmp_usAuth;
        this_3.dik_1 = _tmp_usSessionType;
        tmp_45.gik_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.m5s(1);
    };
  }
  function UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.rik_1);
  }
  protoOf(UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1).u5g = 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).vik = function (stmt, entity) {
    if (entity.rij_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.rij_1);
    }
    stmt.v5h(2, entity.sij_1);
    stmt.v5h(3, entity.tij_1);
    stmt.v5h(4, entity.uij_1);
    stmt.v5h(5, entity.vij_1);
    stmt.v5h(6, entity.wij_1);
    stmt.v5h(7, entity.xij_1);
    stmt.v5h(8, entity.yij_1);
    stmt.v5h(9, entity.zij_1);
    stmt.u5h(10, entity.aik_1);
    stmt.u5h(11, entity.bik_1);
    stmt.y5h(12, entity.cik_1);
    stmt.u5h(13, entity.dik_1);
  };
  protoOf(UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1).p5f = function (stmt, entity) {
    return this.vik(stmt, entity instanceof UserSession ? entity : THROW_CCE());
  };
  function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda(this$0, resultContinuation) {
    this.eil_1 = this$0;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda).fil = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda).m78 = function ($completion) {
    return this.fil($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.eil_1.rik_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).l78 = function (completion) {
    return new UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda(this.eil_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.fil($completion);
    };
    l.$arity = 0;
    return l;
  }
  function UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda(resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda).qik = function (_stmt, $completion) {
    var tmp = this.m5f(_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.qik((!(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.oil_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).m5f = function (_stmt, completion) {
    var i = new UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda(completion);
    i.oil_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.qik(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda($maxDateOfBirth, resultContinuation) {
    this.xil_1 = $maxDateOfBirth;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.yil_1.v5h(1, this.xil_1);
            this.yil_1.v5h(2, this.xil_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.yil_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).m5f = function (_stmt, completion) {
    var i = new UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda(this.xil_1, completion);
    i.yil_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function UserSessionDao_JdbcImpl$endSession$slambda($newStatus, $reason, $endTime, $sessionUid, resultContinuation) {
    this.him_1 = $newStatus;
    this.iim_1 = $reason;
    this.jim_1 = $endTime;
    this.kim_1 = $sessionUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(UserSessionDao_JdbcImpl$endSession$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.lim_1.u5h(1, this.him_1);
            this.lim_1.u5h(2, this.iim_1);
            this.lim_1.v5h(3, this.jim_1);
            this.lim_1.v5h(4, this.jim_1);
            this.lim_1.v5h(5, this.kim_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.lim_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).m5f = function (_stmt, completion) {
    var i = new UserSessionDao_JdbcImpl$endSession$slambda(this.him_1, this.iim_1, this.jim_1, this.kim_1, completion);
    i.lim_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $insertSessionCOROUTINE$443(_this__u8e3s4, session, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.uim_1 = _this__u8e3s4;
    this.vim_1 = session;
  }
  protoOf($insertSessionCOROUTINE$443).ud = function () {
    var 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.uim_1.sik_1.w5g(this.vim_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$444(_this__u8e3s4, sessionUid, newStatus, reason, endTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ein_1 = _this__u8e3s4;
    this.fin_1 = sessionUid;
    this.gin_1 = newStatus;
    this.hin_1 = reason;
    this.iin_1 = endTime;
  }
  protoOf($endSessionCOROUTINE$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 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.ein_1.rik_1, tmp_0, UserSessionDao_JdbcImpl$endSession$slambda_0(this.gin_1, this.hin_1, this.iin_1, this.fin_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.rik_1 = _db;
    var tmp = this;
    tmp.sik_1 = new UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1(this);
  }
  protoOf(UserSessionDao_JdbcImpl).yii = function (session, $completion) {
    var tmp = new $insertSessionCOROUTINE$443(this, session, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_JdbcImpl).zii = 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.rik_1, tmp, UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda_0(this, null));
  };
  protoOf(UserSessionDao_JdbcImpl).aij = 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.rik_1, tmp, UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda_0(null), $completion);
  };
  protoOf(UserSessionDao_JdbcImpl).bij = 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.rik_1, tmp, UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda_0(maxDateOfBirth, null), $completion);
  };
  protoOf(UserSessionDao_JdbcImpl).cij = function (sessionUid, newStatus, reason, endTime, $completion) {
    var tmp = new $endSessionCOROUTINE$444(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.rin_1 = this$0;
    this.sin_1 = $session;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(UserSessionDao_Repo$insertSession$slambda).k89 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_Repo$insertSession$slambda).m78 = function ($completion) {
    return this.k89($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.rin_1.vin_1.yii(this.sin_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).l78 = function (completion) {
    return new UserSessionDao_Repo$insertSession$slambda(this.rin_1, this.sin_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.k89($completion);
    };
    l.$arity = 0;
    return l;
  }
  function UserSessionDao_Repo$endSession$slambda(this$0, $sessionUid, $newStatus, $reason, $endTime, resultContinuation) {
    this.hio_1 = this$0;
    this.iio_1 = $sessionUid;
    this.jio_1 = $newStatus;
    this.kio_1 = $reason;
    this.lio_1 = $endTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(UserSessionDao_Repo$endSession$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_Repo$endSession$slambda).m78 = function ($completion) {
    return this.j87($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.hio_1.vin_1.cij(this.iio_1, this.jio_1, this.kio_1, this.lio_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).l78 = function (completion) {
    return new UserSessionDao_Repo$endSession$slambda(this.hio_1, this.iio_1, this.jio_1, this.kio_1, this.lio_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $insertSessionCOROUTINE$446(_this__u8e3s4, session, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.uio_1 = _this__u8e3s4;
    this.vio_1 = session;
  }
  protoOf($insertSessionCOROUTINE$446).ud = function () {
    var 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.uio_1.uin_1, 'UserSession', UserSessionDao_Repo$insertSession$slambda_0(this.uio_1, this.vio_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$448(_this__u8e3s4, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.eip_1 = _this__u8e3s4;
  }
  protoOf($findAllLocalSessionsAsyncCOROUTINE$448).ud = function () {
    var 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.eip_1.vin_1.aij(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$450(_this__u8e3s4, maxDateOfBirth, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.nip_1 = _this__u8e3s4;
    this.oip_1 = maxDateOfBirth;
  }
  protoOf($countAllLocalSessionsAsyncCOROUTINE$450).ud = function () {
    var 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.nip_1.vin_1.bij(this.oip_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.tin_1 = _db;
    this.uin_1 = _repo;
    this.vin_1 = _dao;
    this.win_1 = _httpClient;
    this.xin_1 = _clientId;
    this.yin_1 = _endpoint;
  }
  protoOf(UserSessionDao_Repo).yii = function (session, $completion) {
    var tmp = new $insertSessionCOROUTINE$446(this, session, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_Repo).zii = function () {
    var _result = this.vin_1.zii();
    return _result;
  };
  protoOf(UserSessionDao_Repo).aij = function ($completion) {
    var tmp = new $findAllLocalSessionsAsyncCOROUTINE$448(this, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_Repo).bij = function (maxDateOfBirth, $completion) {
    var tmp = new $countAllLocalSessionsAsyncCOROUTINE$450(this, maxDateOfBirth, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(UserSessionDao_Repo).cij = function (sessionUid, newStatus, reason, endTime, $completion) {
    return withRepoChangeMonitorAsync(this.uin_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.sip_1 = _db;
    this.tip_1 = _dao;
  }
  protoOf(ActivityEntityDao_DoorWrapper).pip = 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.aiq_1 = systemTimeInMillis();
    }
    return this.tip_1.pip(entities, $completion);
  };
  protoOf(ActivityEntityDao_DoorWrapper).qip = function (activityUid, actMoreInfo, actLct, $completion) {
    return this.tip_1.qip(activityUid, actMoreInfo, actLct, $completion);
  };
  protoOf(ActivityEntityDao_DoorWrapper).rip = function (actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, $completion) {
    return this.tip_1.rip(actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, $completion);
  };
  function ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.biq_1);
  }
  protoOf(ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1).u5g = function (returnsId) {
    return 'INSERT  OR IGNORE INTO ActivityEntity (actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1).fiq = function (stmt, entity) {
    stmt.v5h(1, entity.uip_1);
    stmt.y5h(2, entity.vip_1);
    stmt.y5h(3, entity.wip_1);
    stmt.y5h(4, entity.xip_1);
    stmt.u5h(5, entity.yip_1);
    stmt.y5h(6, entity.zip_1);
    stmt.v5h(7, entity.aiq_1);
  };
  protoOf(ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1).p5f = function (stmt, entity) {
    return this.fiq(stmt, entity instanceof ActivityEntity ? entity : THROW_CCE());
  };
  function ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda($actMoreInfo, $actLct, $activityUid, resultContinuation) {
    this.oiq_1 = $actMoreInfo;
    this.piq_1 = $actLct;
    this.qiq_1 = $activityUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.riq_1.y5h(1, this.oiq_1);
            this.riq_1.v5h(2, this.piq_1);
            this.riq_1.v5h(3, this.qiq_1);
            this.riq_1.y5h(4, this.oiq_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.riq_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).m5f = function (_stmt, completion) {
    var i = new ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda(this.oiq_1, this.piq_1, this.qiq_1, completion);
    i.riq_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda($actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actLct, $actUid, resultContinuation) {
    this.air_1 = $actType;
    this.bir_1 = $actMoreInfo;
    this.cir_1 = $actInteractionType;
    this.dir_1 = $actCorrectResponsePatterns;
    this.eir_1 = $actLct;
    this.fir_1 = $actUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.gir_1.y5h(1, this.air_1);
            this.gir_1.y5h(2, this.bir_1);
            this.gir_1.u5h(3, this.cir_1);
            this.gir_1.y5h(4, this.dir_1);
            this.gir_1.v5h(5, this.eir_1);
            this.gir_1.v5h(6, this.fir_1);
            this.gir_1.v5h(7, this.fir_1);
            this.gir_1.v5h(8, this.fir_1);
            this.gir_1.v5h(9, this.fir_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.gir_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).m5f = function (_stmt, completion) {
    var i = new ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda(this.air_1, this.bir_1, this.cir_1, this.dir_1, this.eir_1, this.fir_1, completion);
    i.gir_1 = _stmt;
    return i;
  };
  function ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda_0($actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actLct, $actUid, resultContinuation) {
    var i = new ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda($actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actLct, $actUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $updateIfMoreInfoChangedCOROUTINE$454(_this__u8e3s4, activityUid, actMoreInfo, actLct, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.pir_1 = _this__u8e3s4;
    this.qir_1 = activityUid;
    this.rir_1 = actMoreInfo;
    this.sir_1 = actLct;
  }
  protoOf($updateIfMoreInfoChangedCOROUTINE$454).ud = function () {
    var 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.pir_1.biq_1, tmp_0, ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda_0(this.rir_1, this.sir_1, this.qir_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$455(_this__u8e3s4, actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.bis_1 = _this__u8e3s4;
    this.cis_1 = actUid;
    this.dis_1 = actType;
    this.eis_1 = actMoreInfo;
    this.fis_1 = actInteractionType;
    this.gis_1 = actCorrectResponsePatterns;
    this.his_1 = actLct;
  }
  protoOf($updateIfNotYetDefinedCOROUTINE$455).ud = function () {
    var 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               actLct = CAST(? AS BIGINT)\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               actLct = ?\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.bis_1.biq_1, tmp_0, ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda_0(this.dis_1, this.eis_1, this.fis_1, this.gis_1, this.his_1, this.cis_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.biq_1 = _db;
    var tmp = this;
    tmp.ciq_1 = new ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1(this);
  }
  protoOf(ActivityEntityDao_JdbcImpl).pip = function (entities, $completion) {
    return this.ciq_1.z5g(entities, $completion);
  };
  protoOf(ActivityEntityDao_JdbcImpl).qip = function (activityUid, actMoreInfo, actLct, $completion) {
    var tmp = new $updateIfMoreInfoChangedCOROUTINE$454(this, activityUid, actMoreInfo, actLct, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityEntityDao_JdbcImpl).rip = function (actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, $completion) {
    var tmp = new $updateIfNotYetDefinedCOROUTINE$455(this, actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation) {
    this.qis_1 = this$0;
    this.ris_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda).m78 = function ($completion) {
    return this.j87($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.qis_1.uis_1.pip(this.ris_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).l78 = function (completion) {
    return new ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda(this.qis_1, this.ris_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda(this$0, $activityUid, $actMoreInfo, $actLct, resultContinuation) {
    this.git_1 = this$0;
    this.hit_1 = $activityUid;
    this.iit_1 = $actMoreInfo;
    this.jit_1 = $actLct;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda).m78 = function ($completion) {
    return this.j87($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.git_1.uis_1.qip(this.hit_1, this.iit_1, this.jit_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).l78 = function (completion) {
    return new ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda(this.git_1, this.hit_1, this.iit_1, this.jit_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ActivityEntityDao_Repo$updateIfNotYetDefined$slambda(this$0, $actUid, $actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actLct, resultContinuation) {
    this.sit_1 = this$0;
    this.tit_1 = $actUid;
    this.uit_1 = $actType;
    this.vit_1 = $actMoreInfo;
    this.wit_1 = $actInteractionType;
    this.xit_1 = $actCorrectResponsePatterns;
    this.yit_1 = $actLct;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityEntityDao_Repo$updateIfNotYetDefined$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityEntityDao_Repo$updateIfNotYetDefined$slambda).m78 = function ($completion) {
    return this.j87($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.sit_1.uis_1.rip(this.tit_1, this.uit_1, this.vit_1, this.wit_1, this.xit_1, this.yit_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).l78 = function (completion) {
    return new ActivityEntityDao_Repo$updateIfNotYetDefined$slambda(this.sit_1, this.tit_1, this.uit_1, this.vit_1, this.wit_1, this.xit_1, this.yit_1, completion);
  };
  function ActivityEntityDao_Repo$updateIfNotYetDefined$slambda_0(this$0, $actUid, $actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actLct, resultContinuation) {
    var i = new ActivityEntityDao_Repo$updateIfNotYetDefined$slambda(this$0, $actUid, $actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actLct, resultContinuation);
    var l = function ($completion) {
      return i.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ActivityEntityDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ActivityEntityDao.call(this);
    this.sis_1 = _db;
    this.tis_1 = _repo;
    this.uis_1 = _dao;
    this.vis_1 = _httpClient;
    this.wis_1 = _clientId;
    this.xis_1 = _endpoint;
  }
  protoOf(ActivityEntityDao_Repo).pip = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.tis_1, 'ActivityEntity', ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(ActivityEntityDao_Repo).qip = function (activityUid, actMoreInfo, actLct, $completion) {
    return withRepoChangeMonitorAsync(this.tis_1, 'ActivityEntity', ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda_0(this, activityUid, actMoreInfo, actLct, null), $completion);
  };
  protoOf(ActivityEntityDao_Repo).rip = function (actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, $completion) {
    return withRepoChangeMonitorAsync(this.tis_1, 'ActivityEntity', ActivityEntityDao_Repo$updateIfNotYetDefined$slambda_0(this, actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, null), $completion);
  };
  function ActivityExtensionDao() {
  }
  function ActivityExtensionDao_DoorWrapper(_db, _dao) {
    ActivityExtensionDao.call(this);
    this.aiu_1 = _db;
    this.biu_1 = _dao;
  }
  protoOf(ActivityExtensionDao_DoorWrapper).zit = 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.giu_1 = systemTimeInMillis();
    }
    return this.biu_1.zit(list, $completion);
  };
  function ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.iiu_1);
  }
  protoOf(ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO ActivityExtensionEntity (aeeActivityUid, aeeKeyHash, aeeKey, aeeJson, aeeLastMod, aeeIsDeleted) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1).miu = function (stmt, entity) {
    stmt.v5h(1, entity.ciu_1);
    stmt.v5h(2, entity.diu_1);
    stmt.y5h(3, entity.eiu_1);
    stmt.y5h(4, entity.fiu_1);
    stmt.v5h(5, entity.giu_1);
    stmt.i5h(6, entity.hiu_1);
  };
  protoOf(ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1).p5f = function (stmt, entity) {
    return this.miu(stmt, entity instanceof ActivityExtensionEntity ? entity : THROW_CCE());
  };
  function ActivityExtensionDao_JdbcImpl(_db) {
    ActivityExtensionDao.call(this);
    this.iiu_1 = _db;
    var tmp = this;
    tmp.jiu_1 = new ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1(this);
  }
  protoOf(ActivityExtensionDao_JdbcImpl).zit = function (list, $completion) {
    return this.jiu_1.z5g(list, $completion);
  };
  function ActivityExtensionDao_Repo$upsertListAsync$slambda(this$0, $list, resultContinuation) {
    this.viu_1 = this$0;
    this.wiu_1 = $list;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityExtensionDao_Repo$upsertListAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityExtensionDao_Repo$upsertListAsync$slambda).m78 = function ($completion) {
    return this.j87($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.viu_1.ziu_1.zit(this.wiu_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).l78 = function (completion) {
    return new ActivityExtensionDao_Repo$upsertListAsync$slambda(this.viu_1, this.wiu_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ActivityExtensionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ActivityExtensionDao.call(this);
    this.xiu_1 = _db;
    this.yiu_1 = _repo;
    this.ziu_1 = _dao;
    this.aiv_1 = _httpClient;
    this.biv_1 = _clientId;
    this.civ_1 = _endpoint;
  }
  protoOf(ActivityExtensionDao_Repo).zit = function (list, $completion) {
    return withRepoChangeMonitorAsync(this.yiu_1, 'ActivityExtensionEntity', ActivityExtensionDao_Repo$upsertListAsync$slambda_0(this, list, null), $completion);
  };
  function ActivityInteractionDao() {
  }
  function ActivityInteractionDao_DoorWrapper(_db, _dao) {
    ActivityInteractionDao.call(this);
    this.fiv_1 = _db;
    this.giv_1 = _dao;
  }
  protoOf(ActivityInteractionDao_DoorWrapper).div = 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.liv_1 = systemTimeInMillis();
    }
    return this.giv_1.div(entities, $completion);
  };
  protoOf(ActivityInteractionDao_DoorWrapper).eiv = function (activityUids, $completion) {
    return this.giv_1.eiv(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.z5e(1);
    };
  }
  function ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.niv_1);
  }
  protoOf(ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1).u5g = function (returnsId) {
    return 'INSERT  OR IGNORE INTO ActivityInteractionEntity (aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted) VALUES(?, ?, ?, ?, ?, ?)';
  };
  protoOf(ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1).riv = function (stmt, entity) {
    stmt.v5h(1, entity.hiv_1);
    stmt.v5h(2, entity.iiv_1);
    stmt.u5h(3, entity.jiv_1);
    stmt.y5h(4, entity.kiv_1);
    stmt.v5h(5, entity.liv_1);
    stmt.i5h(6, entity.miv_1);
  };
  protoOf(ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1).p5f = function (stmt, entity) {
    return this.riv(stmt, entity instanceof ActivityInteractionEntity ? entity : THROW_CCE());
  };
  function ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda($activityUids, resultContinuation) {
    this.aiw_1 = $activityUids;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda).p81 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.p81((!(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.biw_1.r5g();
            var this_0 = this.aiw_1;
            this.biw_1.z5h(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.biw_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).m5f = function (_stmt, completion) {
    var i = new ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda(this.aiw_1, completion);
    i.biw_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.p81(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ActivityInteractionDao_JdbcImpl(_db) {
    ActivityInteractionDao.call(this);
    this.niv_1 = _db;
    var tmp = this;
    tmp.oiv_1 = new ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1(this);
  }
  protoOf(ActivityInteractionDao_JdbcImpl).div = function (entities, $completion) {
    return this.oiv_1.z5g(entities, $completion);
  };
  protoOf(ActivityInteractionDao_JdbcImpl).eiv = 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.niv_1, tmp, ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda_0(activityUids, null), $completion);
  };
  function ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation) {
    this.kiw_1 = this$0;
    this.liw_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda).m78 = function ($completion) {
    return this.j87($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.kiw_1.oiw_1.div(this.liw_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).l78 = function (completion) {
    return new ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda(this.kiw_1, this.liw_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findActivityUidsWithInteractionEntitiesAsyncCOROUTINE$458(_this__u8e3s4, activityUids, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.aix_1 = _this__u8e3s4;
    this.bix_1 = activityUids;
  }
  protoOf($findActivityUidsWithInteractionEntitiesAsyncCOROUTINE$458).ud = function () {
    var 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.aix_1.oiw_1.eiv(this.bix_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.miw_1 = _db;
    this.niw_1 = _repo;
    this.oiw_1 = _dao;
    this.piw_1 = _httpClient;
    this.qiw_1 = _clientId;
    this.riw_1 = _endpoint;
  }
  protoOf(ActivityInteractionDao_Repo).div = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.niw_1, 'ActivityInteractionEntity', ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(ActivityInteractionDao_Repo).eiv = function (activityUids, $completion) {
    var tmp = new $findActivityUidsWithInteractionEntitiesAsyncCOROUTINE$458(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.gix_1 = _db;
    this.hix_1 = _dao;
  }
  protoOf(ActivityLangMapEntryDao_DoorWrapper).cix = 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.oix_1 = systemTimeInMillis();
    }
    return this.hix_1.cix(entities, $completion);
  };
  protoOf(ActivityLangMapEntryDao_DoorWrapper).dix = function (almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion) {
    return this.hix_1.dix(almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion);
  };
  protoOf(ActivityLangMapEntryDao_DoorWrapper).eix = function (almeActivityUid, almeHash, almeValue, almeLastMod, $completion) {
    return this.hix_1.eix(almeActivityUid, almeHash, almeValue, almeLastMod, $completion);
  };
  protoOf(ActivityLangMapEntryDao_DoorWrapper).fix = function (activityUid, $completion) {
    return this.hix_1.fix(activityUid, $completion);
  };
  function ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda$lambda(_result) {
    return mapRows(_result, ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda$lambda$lambda(_result));
  }
  function ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_almeActivityUid = $_result.y5m('almeActivityUid');
      var _tmp_almeHash = $_result.y5m('almeHash');
      var _tmp_almeLangCode = $_result.rz('almeLangCode');
      var _tmp_almePropName = $_result.rz('almePropName');
      var _tmp_almeValue = $_result.rz('almeValue');
      var _tmp_almeAieHash = $_result.y5m('almeAieHash');
      var _tmp_almeLastMod = $_result.y5m('almeLastMod');
      // Inline function 'kotlin.apply' call
      var this_0 = new ActivityLangMapEntry();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.xapi.ActivityLangMapEntryDao_JdbcImpl.findAllByActivityUid.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.iix_1 = _tmp_almeActivityUid;
      this_0.jix_1 = _tmp_almeHash;
      this_0.kix_1 = _tmp_almeLangCode;
      this_0.lix_1 = _tmp_almePropName;
      this_0.mix_1 = _tmp_almeValue;
      this_0.nix_1 = _tmp_almeAieHash;
      this_0.oix_1 = _tmp_almeLastMod;
      return this_0;
    };
  }
  function ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.pix_1);
  }
  protoOf(ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO ActivityLangMapEntry (almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1).tix = function (stmt, entity) {
    stmt.v5h(1, entity.iix_1);
    stmt.v5h(2, entity.jix_1);
    stmt.y5h(3, entity.kix_1);
    stmt.y5h(4, entity.lix_1);
    stmt.y5h(5, entity.mix_1);
    stmt.v5h(6, entity.nix_1);
    stmt.v5h(7, entity.oix_1);
  };
  protoOf(ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1).p5f = function (stmt, entity) {
    return this.tix(stmt, entity instanceof ActivityLangMapEntry ? entity : THROW_CCE());
  };
  function ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda($almeActivityUid, $almeHash, $almeLangCode, $almePropName, $almeValue, $almeAieHash, $almeLastMod, resultContinuation) {
    this.ciy_1 = $almeActivityUid;
    this.diy_1 = $almeHash;
    this.eiy_1 = $almeLangCode;
    this.fiy_1 = $almePropName;
    this.giy_1 = $almeValue;
    this.hiy_1 = $almeAieHash;
    this.iiy_1 = $almeLastMod;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.jiy_1.v5h(1, this.ciy_1);
            this.jiy_1.v5h(2, this.diy_1);
            this.jiy_1.y5h(3, this.eiy_1);
            this.jiy_1.y5h(4, this.fiy_1);
            this.jiy_1.y5h(5, this.giy_1);
            this.jiy_1.v5h(6, this.hiy_1);
            this.jiy_1.v5h(7, this.iiy_1);
            this.jiy_1.v5h(8, this.ciy_1);
            this.jiy_1.v5h(9, this.hiy_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.jiy_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).m5f = function (_stmt, completion) {
    var i = new ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda(this.ciy_1, this.diy_1, this.eiy_1, this.fiy_1, this.giy_1, this.hiy_1, this.iiy_1, completion);
    i.jiy_1 = _stmt;
    return i;
  };
  function ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda_0($almeActivityUid, $almeHash, $almeLangCode, $almePropName, $almeValue, $almeAieHash, $almeLastMod, resultContinuation) {
    var i = new ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda($almeActivityUid, $almeHash, $almeLangCode, $almePropName, $almeValue, $almeAieHash, $almeLastMod, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda($almeValue, $almeLastMod, $almeActivityUid, $almeHash, resultContinuation) {
    this.siy_1 = $almeValue;
    this.tiy_1 = $almeLastMod;
    this.uiy_1 = $almeActivityUid;
    this.viy_1 = $almeHash;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.wiy_1.y5h(1, this.siy_1);
            this.wiy_1.v5h(2, this.tiy_1);
            this.wiy_1.v5h(3, this.uiy_1);
            this.wiy_1.v5h(4, this.viy_1);
            this.wiy_1.y5h(5, this.siy_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.wiy_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).m5f = function (_stmt, completion) {
    var i = new ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda(this.siy_1, this.tiy_1, this.uiy_1, this.viy_1, completion);
    i.wiy_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda($activityUid, resultContinuation) {
    this.fiz_1 = $activityUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda).hiz = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda).he = function (p1, $completion) {
    return this.hiz((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.giz_1.v5h(1, this.fiz_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.giz_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$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(ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda).m5f = function (_stmt, completion) {
    var i = new ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda(this.fiz_1, completion);
    i.giz_1 = _stmt;
    return i;
  };
  function ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda_0($activityUid, resultContinuation) {
    var i = new ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda($activityUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.hiz(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $upsertIfInteractionEntityExistsCOROUTINE$460(_this__u8e3s4, almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.qiz_1 = _this__u8e3s4;
    this.riz_1 = almeActivityUid;
    this.siz_1 = almeHash;
    this.tiz_1 = almePropName;
    this.uiz_1 = almeLangCode;
    this.viz_1 = almeValue;
    this.wiz_1 = almeAieHash;
    this.xiz_1 = almeLastMod;
  }
  protoOf($upsertIfInteractionEntityExistsCOROUTINE$460).ud = function () {
    var 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, almePropName, almeValue, almeAieHash, almeLastMod)\n        SELECT CAST(? AS BIGINT) AS almeActivityUid,\n               CAST(? AS BIGINT) AS almeHash,\n               ? AS almeLangCode,\n               ? AS almePropName,\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, almePropName, almeValue, almeAieHash, almeLastMod)\n        SELECT ? AS almeActivityUid,\n               ? AS almeHash,\n               ? AS almeLangCode,\n               ? AS almePropName,\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.qiz_1.pix_1, tmp_0, ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda_0(this.riz_1, this.siz_1, this.uiz_1, this.tiz_1, this.viz_1, this.wiz_1, this.xiz_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$461(_this__u8e3s4, almeActivityUid, almeHash, almeValue, almeLastMod, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.gj0_1 = _this__u8e3s4;
    this.hj0_1 = almeActivityUid;
    this.ij0_1 = almeHash;
    this.jj0_1 = almeValue;
    this.kj0_1 = almeLastMod;
  }
  protoOf($updateIfChangedCOROUTINE$461).ud = function () {
    var 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.gj0_1.pix_1, tmp_0, ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda_0(this.jj0_1, this.kj0_1, this.hj0_1, this.ij0_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.pix_1 = _db;
    var tmp = this;
    tmp.qix_1 = new ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1(this);
  }
  protoOf(ActivityLangMapEntryDao_JdbcImpl).cix = function (entities, $completion) {
    return this.qix_1.z5g(entities, $completion);
  };
  protoOf(ActivityLangMapEntryDao_JdbcImpl).dix = function (almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion) {
    var tmp = new $upsertIfInteractionEntityExistsCOROUTINE$460(this, almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityLangMapEntryDao_JdbcImpl).eix = function (almeActivityUid, almeHash, almeValue, almeLastMod, $completion) {
    var tmp = new $updateIfChangedCOROUTINE$461(this, almeActivityUid, almeHash, almeValue, almeLastMod, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityLangMapEntryDao_JdbcImpl).fix = function (activityUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT ActivityLangMapEntry.*\n          FROM ActivityLangMapEntry\n         WHERE ActivityLangMapEntry.almeActivityUid = CAST(? AS BIGINT)\n    ', VOID, VOID, VOID, '\n        SELECT ActivityLangMapEntry.*\n          FROM ActivityLangMapEntry\n         WHERE ActivityLangMapEntry.almeActivityUid = ?\n    \n', true);
    return prepareAndUseStatementAsync(this.pix_1, tmp, ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda_0(activityUid, null), $completion);
  };
  function ActivityLangMapEntryDao_Repo$upsertList$slambda(this$0, $entities, resultContinuation) {
    this.tj0_1 = this$0;
    this.uj0_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityLangMapEntryDao_Repo$upsertList$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityLangMapEntryDao_Repo$upsertList$slambda).m78 = function ($completion) {
    return this.j87($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.tj0_1.xj0_1.cix(this.uj0_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).l78 = function (completion) {
    return new ActivityLangMapEntryDao_Repo$upsertList$slambda(this.tj0_1, this.uj0_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda(this$0, $almeActivityUid, $almeHash, $almePropName, $almeLangCode, $almeValue, $almeAieHash, $almeLastMod, resultContinuation) {
    this.jj1_1 = this$0;
    this.kj1_1 = $almeActivityUid;
    this.lj1_1 = $almeHash;
    this.mj1_1 = $almePropName;
    this.nj1_1 = $almeLangCode;
    this.oj1_1 = $almeValue;
    this.pj1_1 = $almeAieHash;
    this.qj1_1 = $almeLastMod;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda).m78 = function ($completion) {
    return this.j87($completion);
  };
  protoOf(ActivityLangMapEntryDao_Repo$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.hd_1 = 1;
            suspendResult = this.jj1_1.xj0_1.dix(this.kj1_1, this.lj1_1, this.mj1_1, this.nj1_1, this.oj1_1, this.pj1_1, this.qj1_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$upsertIfInteractionEntityExists$slambda).l78 = function (completion) {
    return new ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda(this.jj1_1, this.kj1_1, this.lj1_1, this.mj1_1, this.nj1_1, this.oj1_1, this.pj1_1, this.qj1_1, completion);
  };
  function ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda_0(this$0, $almeActivityUid, $almeHash, $almePropName, $almeLangCode, $almeValue, $almeAieHash, $almeLastMod, resultContinuation) {
    var i = new ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda(this$0, $almeActivityUid, $almeHash, $almePropName, $almeLangCode, $almeValue, $almeAieHash, $almeLastMod, resultContinuation);
    var l = function ($completion) {
      return i.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ActivityLangMapEntryDao_Repo$updateIfChanged$slambda(this$0, $almeActivityUid, $almeHash, $almeValue, $almeLastMod, resultContinuation) {
    this.zj1_1 = this$0;
    this.aj2_1 = $almeActivityUid;
    this.bj2_1 = $almeHash;
    this.cj2_1 = $almeValue;
    this.dj2_1 = $almeLastMod;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActivityLangMapEntryDao_Repo$updateIfChanged$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActivityLangMapEntryDao_Repo$updateIfChanged$slambda).m78 = function ($completion) {
    return this.j87($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.zj1_1.xj0_1.eix(this.aj2_1, this.bj2_1, this.cj2_1, this.dj2_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).l78 = function (completion) {
    return new ActivityLangMapEntryDao_Repo$updateIfChanged$slambda(this.zj1_1, this.aj2_1, this.bj2_1, this.cj2_1, this.dj2_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ActivityLangMapEntryDao_Repo$findAllByActivityUid$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function $findAllByActivityUidCOROUTINE$462(_this__u8e3s4, activityUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.mj2_1 = _this__u8e3s4;
    this.nj2_1 = activityUid;
  }
  protoOf($findAllByActivityUidCOROUTINE$462).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.oj2_1 = this.mj2_1.wj0_1;
            var tmp_1 = this;
            tmp_1.pj2_1 = 'ActivityLangMapEntryDao/findAllByActivityUid';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.qj2_1 = this.mj2_1.yj0_1;
            var tmp_3 = this;
            tmp_3.rj2_1 = this.qj2_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.mj2_1.wj0_1.j39(), 'ActivityLangMapEntryDao/findAllByActivityUid');
            doorNodeIdHeader(this_0, this.mj2_1.wj0_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'activityUid', this.mj2_1.wj0_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.nj2_1));
            tmp_4.sj2_1 = this_0;
            this.sj2_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.tj2_1 = this.rj2_1;
            var tmp_6 = this;
            tmp_6.uj2_1 = this.sj2_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.uj2_1, this.tj2_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.vj2_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.mj2_1.vj0_1, this.vj2_1, this.mj2_1.wj0_1.j39().x65_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.wj2_1 = this.kd_1;
              Napier_getInstance().d5e(this.wj2_1, 'DoorLog', ActivityLangMapEntryDao_Repo$findAllByActivityUid$lambda(this.oj2_1, this.pj2_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.mj2_1.xj0_1.fix(this.nj2_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 ActivityLangMapEntryDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    ActivityLangMapEntryDao.call(this);
    this.vj0_1 = _db;
    this.wj0_1 = _repo;
    this.xj0_1 = _dao;
    this.yj0_1 = _httpClient;
    this.zj0_1 = _clientId;
    this.aj1_1 = _endpoint;
  }
  protoOf(ActivityLangMapEntryDao_Repo).cix = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.wj0_1, 'ActivityLangMapEntry', ActivityLangMapEntryDao_Repo$upsertList$slambda_0(this, entities, null), $completion);
  };
  protoOf(ActivityLangMapEntryDao_Repo).dix = function (almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion) {
    return withRepoChangeMonitorAsync(this.wj0_1, 'ActivityLangMapEntry', ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda_0(this, almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, null), $completion);
  };
  protoOf(ActivityLangMapEntryDao_Repo).eix = function (almeActivityUid, almeHash, almeValue, almeLastMod, $completion) {
    return withRepoChangeMonitorAsync(this.wj0_1, 'ActivityLangMapEntry', ActivityLangMapEntryDao_Repo$updateIfChanged$slambda_0(this, almeActivityUid, almeHash, almeValue, almeLastMod, null), $completion);
  };
  protoOf(ActivityLangMapEntryDao_Repo).fix = function (activityUid, $completion) {
    var tmp = new $findAllByActivityUidCOROUTINE$462(this, activityUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function ActorDao() {
  }
  function $insertOrIgnoreListAsyncCOROUTINE$463(_this__u8e3s4, entities, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.jj3_1 = _this__u8e3s4;
    this.kj3_1 = entities;
  }
  protoOf($insertOrIgnoreListAsyncCOROUTINE$463).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.lj3_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.jj3_1.sj3_1));
            var tmp_0 = this;
            tmp_0.mj3_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.nj3_1 = this.kj3_1.w();
            var tmp_2 = this;
            tmp_2.oj3_1 = this.nj3_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.oj3_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.pj3_1 = this.oj3_1.e();
            var tmp_3 = this;
            tmp_3.qj3_1 = this.pj3_1;
            if (this.qj3_1.uj3_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.lj3_1.o62(68, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.rj3_1 = suspendResult;
            this.qj3_1.uj3_1 = this.rj3_1;
            var this_0 = this.mj3_1;
            var element = this.rj3_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.qj3_1.dj4_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.jj3_1.tj3_1.xj2(this.kj3_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$464(_this__u8e3s4, entities, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.nj4_1 = _this__u8e3s4;
    this.oj4_1 = entities;
  }
  protoOf($upsertListAsyncCOROUTINE$464).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 6;
            this.pj4_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.nj4_1.sj3_1));
            var tmp_0 = this;
            tmp_0.qj4_1 = ArrayList_init_$Create$();
            var tmp_1 = this;
            tmp_1.rj4_1 = this.oj4_1.w();
            var tmp_2 = this;
            tmp_2.sj4_1 = this.rj4_1;
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.sj4_1.f()) {
              this.hd_1 = 4;
              continue $sm;
            }

            this.tj4_1 = this.sj4_1.e();
            var tmp_3 = this;
            tmp_3.uj4_1 = this.tj4_1;
            if (this.uj4_1.uj3_1.equals(new Long(0, 0))) {
              this.hd_1 = 2;
              suspendResult = this.pj4_1.o62(68, this);
              if (suspendResult === get_COROUTINE_SUSPENDED()) {
                return suspendResult;
              }
              continue $sm;
            } else {
              this.hd_1 = 3;
              continue $sm;
            }

          case 2:
            this.vj4_1 = suspendResult;
            this.uj4_1.uj3_1 = this.vj4_1;
            var this_0 = this.qj4_1;
            var element = this.vj4_1;
            this_0.i1(element);
            this.hd_1 = 3;
            continue $sm;
          case 3:
            this.uj4_1.dj4_1 = systemTimeInMillis();
            this.hd_1 = 1;
            continue $sm;
          case 4:
            this.hd_1 = 5;
            suspendResult = this.nj4_1.tj3_1.yj2(this.oj4_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.sj3_1 = _db;
    this.tj3_1 = _dao;
  }
  protoOf(ActorDao_DoorWrapper).xj2 = function (entities, $completion) {
    var tmp = new $insertOrIgnoreListAsyncCOROUTINE$463(this, entities, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActorDao_DoorWrapper).yj2 = function (entities, $completion) {
    var tmp = new $upsertListAsyncCOROUTINE$464(this, entities, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActorDao_DoorWrapper).zj2 = function (uid, name, updateTime, $completion) {
    return this.tj3_1.zj2(uid, name, updateTime, $completion);
  };
  protoOf(ActorDao_DoorWrapper).aj3 = function (uidList, $completion) {
    return this.tj3_1.aj3(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.y5m('actorUid');
      var _tmp_actorEtag = $_result.y5m('actorEtag');
      var _tmp_actorLct = $_result.y5m('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.wj4_1 = _tmp_actorUid;
      this_0.xj4_1 = _tmp_actorEtag;
      this_0.yj4_1 = _tmp_actorLct;
      return this_0;
    };
  }
  function ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.zj4_1);
  }
  protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1).u5g = 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).ej5 = function (stmt, entity) {
    if (entity.uj3_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.uj3_1);
    }
    stmt.v5h(2, entity.vj3_1);
    stmt.y5h(3, entity.wj3_1);
    stmt.y5h(4, entity.xj3_1);
    stmt.y5h(5, entity.yj3_1);
    stmt.y5h(6, entity.zj3_1);
    stmt.y5h(7, entity.aj4_1);
    stmt.y5h(8, entity.bj4_1);
    stmt.v5h(9, entity.cj4_1);
    stmt.v5h(10, entity.dj4_1);
    stmt.u5h(11, entity.ej4_1);
  };
  protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1).p5f = function (stmt, entity) {
    return this.ej5(stmt, entity instanceof ActorEntity ? entity : THROW_CCE());
  };
  function ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.zj4_1);
  }
  protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1).u5g = 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).ej5 = function (stmt, entity) {
    if (entity.uj3_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.uj3_1);
    }
    stmt.v5h(2, entity.vj3_1);
    stmt.y5h(3, entity.wj3_1);
    stmt.y5h(4, entity.xj3_1);
    stmt.y5h(5, entity.yj3_1);
    stmt.y5h(6, entity.zj3_1);
    stmt.y5h(7, entity.aj4_1);
    stmt.y5h(8, entity.bj4_1);
    stmt.v5h(9, entity.cj4_1);
    stmt.v5h(10, entity.dj4_1);
    stmt.u5h(11, entity.ej4_1);
  };
  protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1).p5f = function (stmt, entity) {
    return this.ej5(stmt, entity instanceof ActorEntity ? entity : THROW_CCE());
  };
  function ActorDao_JdbcImpl$updateIfNameChanged$slambda($name, $updateTime, $uid, resultContinuation) {
    this.pj5_1 = $name;
    this.qj5_1 = $updateTime;
    this.rj5_1 = $uid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActorDao_JdbcImpl$updateIfNameChanged$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.sj5_1.y5h(1, this.pj5_1);
            this.sj5_1.v5h(2, this.qj5_1);
            this.sj5_1.v5h(3, this.rj5_1);
            this.sj5_1.y5h(4, this.pj5_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.sj5_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).m5f = function (_stmt, completion) {
    var i = new ActorDao_JdbcImpl$updateIfNameChanged$slambda(this.pj5_1, this.qj5_1, this.rj5_1, completion);
    i.sj5_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda($uidList, resultContinuation) {
    this.bj6_1 = $uidList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda).dj6 = function (_stmt, $completion) {
    var tmp = this.m5f(_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.dj6((!(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.cj6_1.r5g();
            var this_0 = this.bj6_1;
            this.cj6_1.z5h(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.cj6_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).m5f = function (_stmt, completion) {
    var i = new ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda(this.bj6_1, completion);
    i.cj6_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.dj6(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $updateIfNameChangedCOROUTINE$465(_this__u8e3s4, uid, name, updateTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.mj6_1 = _this__u8e3s4;
    this.nj6_1 = uid;
    this.oj6_1 = name;
    this.pj6_1 = updateTime;
  }
  protoOf($updateIfNameChangedCOROUTINE$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 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.mj6_1.zj4_1, tmp_0, ActorDao_JdbcImpl$updateIfNameChanged$slambda_0(this.oj6_1, this.pj6_1, this.nj6_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.zj4_1 = _db;
    var tmp = this;
    tmp.aj5_1 = new ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1(this);
    var tmp_0 = this;
    tmp_0.bj5_1 = new ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1(this);
  }
  protoOf(ActorDao_JdbcImpl).xj2 = function (entities, $completion) {
    return this.aj5_1.z5g(entities, $completion);
  };
  protoOf(ActorDao_JdbcImpl).yj2 = function (entities, $completion) {
    return this.bj5_1.z5g(entities, $completion);
  };
  protoOf(ActorDao_JdbcImpl).zj2 = function (uid, name, updateTime, $completion) {
    var tmp = new $updateIfNameChangedCOROUTINE$465(this, uid, name, updateTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActorDao_JdbcImpl).aj3 = 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.zj4_1, tmp, ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda_0(uidList, null), $completion);
  };
  function ActorDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation) {
    this.yj6_1 = this$0;
    this.zj6_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActorDao_Repo$insertOrIgnoreListAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActorDao_Repo$insertOrIgnoreListAsync$slambda).m78 = function ($completion) {
    return this.j87($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.yj6_1.cj7_1.xj2(this.zj6_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).l78 = function (completion) {
    return new ActorDao_Repo$insertOrIgnoreListAsync$slambda(this.yj6_1, this.zj6_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ActorDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) {
    this.oj7_1 = this$0;
    this.pj7_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActorDao_Repo$upsertListAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActorDao_Repo$upsertListAsync$slambda).m78 = function ($completion) {
    return this.j87($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.oj7_1.cj7_1.yj2(this.pj7_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).l78 = function (completion) {
    return new ActorDao_Repo$upsertListAsync$slambda(this.oj7_1, this.pj7_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function ActorDao_Repo$updateIfNameChanged$slambda(this$0, $uid, $name, $updateTime, resultContinuation) {
    this.yj7_1 = this$0;
    this.zj7_1 = $uid;
    this.aj8_1 = $name;
    this.bj8_1 = $updateTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(ActorDao_Repo$updateIfNameChanged$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(ActorDao_Repo$updateIfNameChanged$slambda).m78 = function ($completion) {
    return this.j87($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.yj7_1.cj7_1.zj2(this.zj7_1, this.aj8_1, this.bj8_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).l78 = function (completion) {
    return new ActorDao_Repo$updateIfNameChanged$slambda(this.yj7_1, this.zj7_1, this.aj8_1, this.bj8_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function $findUidAndEtagByListAsyncCOROUTINE$468(_this__u8e3s4, uidList, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.kj8_1 = _this__u8e3s4;
    this.lj8_1 = uidList;
  }
  protoOf($findUidAndEtagByListAsyncCOROUTINE$468).ud = function () {
    var 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.kj8_1.cj7_1.aj3(this.lj8_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.aj7_1 = _db;
    this.bj7_1 = _repo;
    this.cj7_1 = _dao;
    this.dj7_1 = _httpClient;
    this.ej7_1 = _clientId;
    this.fj7_1 = _endpoint;
  }
  protoOf(ActorDao_Repo).xj2 = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.bj7_1, 'ActorEntity', ActorDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(ActorDao_Repo).yj2 = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.bj7_1, 'ActorEntity', ActorDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(ActorDao_Repo).zj2 = function (uid, name, updateTime, $completion) {
    return withRepoChangeMonitorAsync(this.bj7_1, 'ActorEntity', ActorDao_Repo$updateIfNameChanged$slambda_0(this, uid, name, updateTime, null), $completion);
  };
  protoOf(ActorDao_Repo).aj3 = function (uidList, $completion) {
    var tmp = new $findUidAndEtagByListAsyncCOROUTINE$468(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.pj8_1 = _db;
    this.qj8_1 = _dao;
  }
  protoOf(GroupMemberActorJoinDao_DoorWrapper).mj8 = 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.tj8_1 = systemTimeInMillis();
    }
    return this.qj8_1.mj8(entities, $completion);
  };
  protoOf(GroupMemberActorJoinDao_DoorWrapper).nj8 = 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.tj8_1 = systemTimeInMillis();
    }
    return this.qj8_1.nj8(entities, $completion);
  };
  protoOf(GroupMemberActorJoinDao_DoorWrapper).oj8 = function (gmajGroupActorUid, gmajMemberActorUid, lastModTime, $completion) {
    return this.qj8_1.oj8(gmajGroupActorUid, gmajMemberActorUid, lastModTime, $completion);
  };
  function GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.uj8_1);
  }
  protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1).u5g = function (returnsId) {
    return 'INSERT  OR IGNORE INTO GroupMemberActorJoin (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) VALUES(?, ?, ?)';
  };
  protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1).zj8 = function (stmt, entity) {
    stmt.v5h(1, entity.rj8_1);
    stmt.v5h(2, entity.sj8_1);
    stmt.v5h(3, entity.tj8_1);
  };
  protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1).p5f = function (stmt, entity) {
    return this.zj8(stmt, entity instanceof GroupMemberActorJoin ? entity : THROW_CCE());
  };
  function GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.uj8_1);
  }
  protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO GroupMemberActorJoin (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) VALUES(?, ?, ?)';
  };
  protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1).zj8 = function (stmt, entity) {
    stmt.v5h(1, entity.rj8_1);
    stmt.v5h(2, entity.sj8_1);
    stmt.v5h(3, entity.tj8_1);
  };
  protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1).p5f = function (stmt, entity) {
    return this.zj8(stmt, entity instanceof GroupMemberActorJoin ? entity : THROW_CCE());
  };
  function GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda($lastModTime, $gmajGroupActorUid, $gmajMemberActorUid, resultContinuation) {
    this.kj9_1 = $lastModTime;
    this.lj9_1 = $gmajGroupActorUid;
    this.mj9_1 = $gmajMemberActorUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.nj9_1.v5h(1, this.kj9_1);
            this.nj9_1.v5h(2, this.lj9_1);
            this.nj9_1.v5h(3, this.mj9_1);
            this.nj9_1.v5h(4, this.kj9_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.nj9_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).m5f = function (_stmt, completion) {
    var i = new GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda(this.kj9_1, this.lj9_1, this.mj9_1, completion);
    i.nj9_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $updateLastModifiedTimeIfNeededAsyncCOROUTINE$470(_this__u8e3s4, gmajGroupActorUid, gmajMemberActorUid, lastModTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.wj9_1 = _this__u8e3s4;
    this.xj9_1 = gmajGroupActorUid;
    this.yj9_1 = gmajMemberActorUid;
    this.zj9_1 = lastModTime;
  }
  protoOf($updateLastModifiedTimeIfNeededAsyncCOROUTINE$470).ud = function () {
    var 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.wj9_1.uj8_1, tmp_0, GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda_0(this.zj9_1, this.xj9_1, this.yj9_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.uj8_1 = _db;
    var tmp = this;
    tmp.vj8_1 = new GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1(this);
    var tmp_0 = this;
    tmp_0.wj8_1 = new GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1(this);
  }
  protoOf(GroupMemberActorJoinDao_JdbcImpl).mj8 = function (entities, $completion) {
    return this.vj8_1.z5g(entities, $completion);
  };
  protoOf(GroupMemberActorJoinDao_JdbcImpl).nj8 = function (entities, $completion) {
    return this.wj8_1.z5g(entities, $completion);
  };
  protoOf(GroupMemberActorJoinDao_JdbcImpl).oj8 = function (gmajGroupActorUid, gmajMemberActorUid, lastModTime, $completion) {
    var tmp = new $updateLastModifiedTimeIfNeededAsyncCOROUTINE$470(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.ija_1 = this$0;
    this.jja_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda).m78 = function ($completion) {
    return this.j87($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.ija_1.mja_1.mj8(this.jja_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).l78 = function (completion) {
    return new GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda(this.ija_1, this.jja_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function GroupMemberActorJoinDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) {
    this.yja_1 = this$0;
    this.zja_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(GroupMemberActorJoinDao_Repo$upsertListAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(GroupMemberActorJoinDao_Repo$upsertListAsync$slambda).m78 = function ($completion) {
    return this.j87($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.yja_1.mja_1.nj8(this.zja_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).l78 = function (completion) {
    return new GroupMemberActorJoinDao_Repo$upsertListAsync$slambda(this.yja_1, this.zja_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda(this$0, $gmajGroupActorUid, $gmajMemberActorUid, $lastModTime, resultContinuation) {
    this.ijb_1 = this$0;
    this.jjb_1 = $gmajGroupActorUid;
    this.kjb_1 = $gmajMemberActorUid;
    this.ljb_1 = $lastModTime;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda).m78 = function ($completion) {
    return this.j87($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.ijb_1.mja_1.oj8(this.jjb_1, this.kjb_1, this.ljb_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).l78 = function (completion) {
    return new GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda(this.ijb_1, this.jjb_1, this.kjb_1, this.ljb_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function GroupMemberActorJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    GroupMemberActorJoinDao.call(this);
    this.kja_1 = _db;
    this.lja_1 = _repo;
    this.mja_1 = _dao;
    this.nja_1 = _httpClient;
    this.oja_1 = _clientId;
    this.pja_1 = _endpoint;
  }
  protoOf(GroupMemberActorJoinDao_Repo).mj8 = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.lja_1, 'GroupMemberActorJoin', GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(GroupMemberActorJoinDao_Repo).nj8 = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.lja_1, 'GroupMemberActorJoin', GroupMemberActorJoinDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion);
  };
  protoOf(GroupMemberActorJoinDao_Repo).oj8 = function (gmajGroupActorUid, gmajMemberActorUid, lastModTime, $completion) {
    return withRepoChangeMonitorAsync(this.lja_1, 'GroupMemberActorJoin', GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda_0(this, gmajGroupActorUid, gmajMemberActorUid, lastModTime, null), $completion);
  };
  function StateDeleteCommandDao() {
  }
  function StateDeleteCommandDao_DoorWrapper(_db, _dao) {
    StateDeleteCommandDao.call(this);
    this.mjb_1 = _db;
    this.njb_1 = _dao;
  }
  function StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ojb_1);
  }
  protoOf(StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO StateDeleteCommand (sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1).sjb = function (stmt, entity) {
    stmt.v5h(1, entity.tjb_1);
    stmt.v5h(2, entity.ujb_1);
    stmt.v5h(3, entity.vjb_1);
    stmt.y5h(4, entity.wjb_1);
    stmt.v5h(5, entity.xjb_1);
    setLongNullable(stmt, 6, entity.yjb_1);
    setLongNullable(stmt, 7, entity.zjb_1);
  };
  protoOf(StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1).p5f = function (stmt, entity) {
    return this.sjb(stmt, entity instanceof StateDeleteCommand ? entity : THROW_CCE());
  };
  function StateDeleteCommandDao_JdbcImpl(_db) {
    StateDeleteCommandDao.call(this);
    this.ojb_1 = _db;
    var tmp = this;
    tmp.pjb_1 = new StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1(this);
  }
  function StateDeleteCommandDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    StateDeleteCommandDao.call(this);
    this.ajc_1 = _db;
    this.bjc_1 = _repo;
    this.cjc_1 = _dao;
    this.djc_1 = _httpClient;
    this.ejc_1 = _clientId;
    this.fjc_1 = _endpoint;
  }
  function StateEntityDao() {
  }
  function StateEntityDao_DoorWrapper(_db, _dao) {
    StateEntityDao.call(this);
    this.gjc_1 = _db;
    this.hjc_1 = _dao;
  }
  function StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.ijc_1);
  }
  protoOf(StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1).u5g = 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).mjc = function (stmt, entity) {
    stmt.v5h(1, entity.njc_1);
    stmt.v5h(2, entity.ojc_1);
    stmt.v5h(3, entity.pjc_1);
    stmt.y5h(4, entity.qjc_1);
    stmt.v5h(5, entity.rjc_1);
    stmt.v5h(6, entity.sjc_1);
    stmt.y5h(7, entity.tjc_1);
    stmt.u5h(8, entity.ujc_1);
    stmt.y5h(9, entity.vjc_1);
    stmt.i5h(10, entity.wjc_1);
    setLongNullable(stmt, 11, entity.xjc_1);
    setLongNullable(stmt, 12, entity.yjc_1);
    stmt.i5h(13, entity.zjc_1);
    stmt.y5h(14, entity.ajd_1);
  };
  protoOf(StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1).p5f = function (stmt, entity) {
    return this.mjc(stmt, entity instanceof StateEntity ? entity : THROW_CCE());
  };
  function StateEntityDao_JdbcImpl(_db) {
    StateEntityDao.call(this);
    this.ijc_1 = _db;
    var tmp = this;
    tmp.jjc_1 = new StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1(this);
  }
  function StateEntityDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    StateEntityDao.call(this);
    this.bjd_1 = _db;
    this.cjd_1 = _repo;
    this.djd_1 = _dao;
    this.ejd_1 = _httpClient;
    this.fjd_1 = _clientId;
    this.gjd_1 = _endpoint;
  }
  function StatementContextActivityJoinDao() {
  }
  function StatementContextActivityJoinDao_DoorWrapper(_db, _dao) {
    StatementContextActivityJoinDao.call(this);
    this.ijd_1 = _db;
    this.jjd_1 = _dao;
  }
  protoOf(StatementContextActivityJoinDao_DoorWrapper).hjd = function (entities, $completion) {
    return this.jjd_1.hjd(entities, $completion);
  };
  function StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.kjd_1);
  }
  protoOf(StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1).u5g = function (returnsId) {
    return 'INSERT  OR IGNORE INTO StatementContextActivityJoin (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash, scajContextType, scajToActivityUid, scajToActivityId, scajEtag) VALUES(?, ?, ?, ?, ?, ?, ?)';
  };
  protoOf(StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1).ojd = function (stmt, entity) {
    stmt.v5h(1, entity.pjd_1);
    stmt.v5h(2, entity.qjd_1);
    stmt.v5h(3, entity.rjd_1);
    stmt.u5h(4, entity.sjd_1);
    stmt.v5h(5, entity.tjd_1);
    stmt.y5h(6, entity.ujd_1);
    stmt.v5h(7, entity.vjd_1);
  };
  protoOf(StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1).p5f = function (stmt, entity) {
    return this.ojd(stmt, entity instanceof StatementContextActivityJoin ? entity : THROW_CCE());
  };
  function StatementContextActivityJoinDao_JdbcImpl(_db) {
    StatementContextActivityJoinDao.call(this);
    this.kjd_1 = _db;
    var tmp = this;
    tmp.ljd_1 = new StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1(this);
  }
  protoOf(StatementContextActivityJoinDao_JdbcImpl).hjd = function (entities, $completion) {
    return this.ljd_1.z5g(entities, $completion);
  };
  function StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation) {
    this.eje_1 = this$0;
    this.fje_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda).m78 = function ($completion) {
    return this.j87($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.eje_1.ije_1.hjd(this.fje_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).l78 = function (completion) {
    return new StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda(this.eje_1, this.fje_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function StatementContextActivityJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    StatementContextActivityJoinDao.call(this);
    this.gje_1 = _db;
    this.hje_1 = _repo;
    this.ije_1 = _dao;
    this.jje_1 = _httpClient;
    this.kje_1 = _clientId;
    this.lje_1 = _endpoint;
  }
  protoOf(StatementContextActivityJoinDao_Repo).hjd = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.hje_1, 'StatementContextActivityJoin', StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entities, null), $completion);
  };
  function StatementDao() {
  }
  function StatementDao_DoorWrapper(_db, _dao) {
    StatementDao.call(this);
    this.uje_1 = _db;
    this.vje_1 = _dao;
  }
  protoOf(StatementDao_DoorWrapper).mje = 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.wjf_1 = systemTimeInMillis();
    }
    return this.vje_1.mje(entityList, $completion);
  };
  protoOf(StatementDao_DoorWrapper).nje = function (clazzUid, studentPersonUids, accountPersonUid, $completion) {
    return this.vje_1.nje(clazzUid, studentPersonUids, accountPersonUid, $completion);
  };
  protoOf(StatementDao_DoorWrapper).oje = function (clazzUid, studentPersonUids, accountPersonUid) {
    return this.vje_1.oje(clazzUid, studentPersonUids, accountPersonUid);
  };
  protoOf(StatementDao_DoorWrapper).pje = function (contentEntryUid, accountPersonUid, searchText, sortOrder) {
    return this.vje_1.pje(contentEntryUid, accountPersonUid, searchText, sortOrder);
  };
  protoOf(StatementDao_DoorWrapper).qje = function (contentEntryUid, personUid, accountPersonUid, sortOrder) {
    return this.vje_1.qje(contentEntryUid, personUid, accountPersonUid, sortOrder);
  };
  protoOf(StatementDao_DoorWrapper).rje = function (registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids) {
    return this.vje_1.rje(registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids);
  };
  protoOf(StatementDao_DoorWrapper).sje = function (registrationHi, registrationLo, selectedPersonUid, contentEntryUid) {
    return this.vje_1.sje(registrationHi, registrationLo, selectedPersonUid, contentEntryUid);
  };
  protoOf(StatementDao_DoorWrapper).tje = function (contentEntryUid, accountPersonUid, $completion) {
    return this.vje_1.tje(contentEntryUid, accountPersonUid, $completion);
  };
  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.y5m('sPersonUid');
      var _tmp_sCbUid = $_result.y5m('sCbUid');
      var _tmp_sProgress = getIntNullable($_result, 'sProgress');
      var _tmp_sIsCompleted = $_result.j66('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.wax_1 = _tmp_sPersonUid;
      this_0.xax_1 = _tmp_sCbUid;
      this_0.yax_1 = _tmp_sProgress;
      this_0.zax_1 = _tmp_sIsCompleted;
      this_0.aay_1 = _tmp_sIsSuccess;
      this_0.bay_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.y5m('sPersonUid');
      var _tmp_sCbUid = $_result.y5m('sCbUid');
      var _tmp_sProgress = getIntNullable($_result, 'sProgress');
      var _tmp_sIsCompleted = $_result.j66('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.wax_1 = _tmp_sPersonUid;
      this_0.xax_1 = _tmp_sCbUid;
      this_0.yax_1 = _tmp_sProgress;
      this_0.zax_1 = _tmp_sIsCompleted;
      this_0.aay_1 = _tmp_sIsSuccess;
      this_0.bay_1 = _tmp_sScoreScaled;
      return this_0;
    };
  }
  function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) {
    this.njg_1 = $studentPersonUids;
    this.ojg_1 = $clazzUid;
    this.pjg_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda).rjg = function (_stmt, $completion) {
    var tmp = this.m5f(_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.rjg((!(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.qjg_1.r5g();
            var this_0 = this.njg_1;
            this.qjg_1.z5h(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.qjg_1.v5h(2, this.ojg_1);
            var tmp_1 = this.qjg_1.r5g();
            var this_1 = this.njg_1;
            this.qjg_1.z5h(3, createArrayOrProxyArrayOf(tmp_1, 'BIGINT', copyToArray(this_1)));
            this.qjg_1.v5h(4, this.pjg_1);
            this.qjg_1.v5h(5, this.pjg_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.qjg_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).m5f = function (_stmt, completion) {
    var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda(this.njg_1, this.ojg_1, this.pjg_1, completion);
    i.qjg_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.rjg(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda$lambda$lambda(_result));
  }
  function StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_numAttempts = $_result.x5m('numAttempts');
      var _tmp_isCompleted = $_result.j66('isCompleted');
      var _tmp_isSuccessful = getBooleanNullable($_result, 'isSuccessful');
      var _tmp_maxScore = getFloatNullable($_result, 'maxScore');
      var _tmp_maxProgress = getIntNullable($_result, 'maxProgress');
      var _tmp_Person_nullCount = 0;
      var _tmp_personUid = $_result.y5m('personUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_username = $_result.rz('username');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_firstNames = $_result.rz('firstNames');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_lastName = $_result.rz('lastName');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_emailAddr = $_result.rz('emailAddr');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_phoneNum = $_result.rz('phoneNum');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_gender = $_result.x5m('gender');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_active = $_result.j66('active');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_isPersonalAccount = $_result.j66('isPersonalAccount');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_dateOfBirth = $_result.y5m('dateOfBirth');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_personAddress = $_result.rz('personAddress');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_personOrgId = $_result.rz('personOrgId');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_personGroupUid = $_result.y5m('personGroupUid');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_personLct = $_result.y5m('personLct');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_personCountry = $_result.rz('personCountry');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_personType = $_result.x5m('personType');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_personMasterChangeSeqNum = $_result.y5m('personMasterChangeSeqNum');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_personLocalChangeSeqNum = $_result.y5m('personLocalChangeSeqNum');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_personLastChangedBy = $_result.x5m('personLastChangedBy');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_admin = $_result.j66('admin');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_personNotes = $_result.rz('personNotes');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_fatherName = $_result.rz('fatherName');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_fatherNumber = $_result.rz('fatherNumber');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_motherName = $_result.rz('motherName');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_motherNum = $_result.rz('motherNum');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_Person_isAllNull = _tmp_Person_nullCount === 25;
      var _tmp_PersonPicture_nullCount = 0;
      var _tmp_personPictureUid = $_result.y5m('personPictureUid');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_personPictureLct = $_result.y5m('personPictureLct');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_personPictureUri = $_result.rz('personPictureUri');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_personPictureThumbnailUri = $_result.rz('personPictureThumbnailUri');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_fileSize = $_result.x5m('fileSize');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_personPictureActive = $_result.j66('personPictureActive');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6;
      // Inline function 'kotlin.apply' call
      var this_0 = new PersonAndPictureAndNumAttempts();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.xapi.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.ujg_1 = _tmp_numAttempts;
      this_0.vjg_1 = _tmp_isCompleted;
      this_0.wjg_1 = _tmp_isSuccessful;
      this_0.xjg_1 = _tmp_maxScore;
      this_0.yjg_1 = _tmp_maxProgress;
      if (!_tmp_Person_isAllNull) {
        var tmp_30 = 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.xapi.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.f96_1 = _tmp_personUid;
        this_1.g96_1 = _tmp_username;
        this_1.h96_1 = _tmp_firstNames;
        this_1.i96_1 = _tmp_lastName;
        this_1.j96_1 = _tmp_emailAddr;
        this_1.k96_1 = _tmp_phoneNum;
        this_1.l96_1 = _tmp_gender;
        this_1.m96_1 = _tmp_active;
        this_1.n96_1 = _tmp_isPersonalAccount;
        this_1.o96_1 = _tmp_dateOfBirth;
        this_1.p96_1 = _tmp_personAddress;
        this_1.q96_1 = _tmp_personOrgId;
        this_1.r96_1 = _tmp_personGroupUid;
        this_1.s96_1 = _tmp_personLct;
        this_1.t96_1 = _tmp_personCountry;
        this_1.u96_1 = _tmp_personType;
        this_1.v96_1 = _tmp_personMasterChangeSeqNum;
        this_1.w96_1 = _tmp_personLocalChangeSeqNum;
        this_1.x96_1 = _tmp_personLastChangedBy;
        this_1.y96_1 = _tmp_admin;
        this_1.z96_1 = _tmp_personNotes;
        this_1.a97_1 = _tmp_fatherName;
        this_1.b97_1 = _tmp_fatherNumber;
        this_1.c97_1 = _tmp_motherName;
        this_1.d97_1 = _tmp_motherNum;
        tmp_30.sjg_1 = this_1;
      }
      if (!_tmp_PersonPicture_isAllNull) {
        var tmp_31 = 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.xapi.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.e97_1 = _tmp_personPictureUid;
        this_2.f97_1 = _tmp_personPictureLct;
        this_2.g97_1 = _tmp_personPictureUri;
        this_2.h97_1 = _tmp_personPictureThumbnailUri;
        this_2.i97_1 = _tmp_fileSize;
        this_2.j97_1 = _tmp_personPictureActive;
        tmp_31.tjg_1 = this_2;
      }
      return this_0;
    };
  }
  function StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda$lambda$lambda(_result));
  }
  function StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.m5s(1);
    };
  }
  function StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda($contentEntryUid, $accountPersonUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) {
    this.hjh_1 = $contentEntryUid;
    this.ijh_1 = $accountPersonUid;
    this.jjh_1 = $searchText;
    this.kjh_1 = $sortOrder;
    this.ljh_1 = $_limit;
    this.mjh_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda).ojh = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda).he = function (p1, $completion) {
    return this.ojh((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$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.njh_1.v5h(1, this.hjh_1);
            this.njh_1.v5h(2, this.hjh_1);
            this.njh_1.v5h(3, this.hjh_1);
            this.njh_1.v5h(4, this.hjh_1);
            this.njh_1.v5h(5, this.hjh_1);
            this.njh_1.v5h(6, this.hjh_1);
            this.njh_1.v5h(7, this.hjh_1);
            this.njh_1.v5h(8, this.ijh_1);
            this.njh_1.v5h(9, this.hjh_1);
            this.njh_1.v5h(10, this.ijh_1);
            this.njh_1.v5h(11, this.ijh_1);
            this.njh_1.v5h(12, this.ijh_1);
            this.njh_1.v5h(13, this.ijh_1);
            this.njh_1.y5h(14, this.jjh_1);
            this.njh_1.y5h(15, this.jjh_1);
            this.njh_1.u5h(16, this.kjh_1);
            this.njh_1.v5h(17, this.hjh_1);
            this.njh_1.u5h(18, this.kjh_1);
            this.njh_1.v5h(19, this.hjh_1);
            this.njh_1.u5h(20, this.kjh_1);
            this.njh_1.v5h(21, this.hjh_1);
            this.njh_1.u5h(22, this.kjh_1);
            this.njh_1.u5h(23, this.kjh_1);
            this.njh_1.u5h(24, this.kjh_1);
            this.njh_1.v5h(25, this.hjh_1);
            this.njh_1.u5h(26, this.kjh_1);
            this.njh_1.v5h(27, this.hjh_1);
            this.njh_1.u5h(28, this.kjh_1);
            this.njh_1.v5h(29, this.hjh_1);
            this.njh_1.u5h(30, this.kjh_1);
            this.njh_1.u5h(31, this.kjh_1);
            this.njh_1.u5h(32, this.ljh_1);
            this.njh_1.u5h(33, this.mjh_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.njh_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, StatementDao_JdbcImpl$findPersonsWithAttempts$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(StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda).m5f = function (_stmt, completion) {
    var i = new StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda(this.hjh_1, this.ijh_1, this.jjh_1, this.kjh_1, this.ljh_1, this.mjh_1, completion);
    i.njh_1 = _stmt;
    return i;
  };
  function StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda_0($contentEntryUid, $accountPersonUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) {
    var i = new StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda($contentEntryUid, $accountPersonUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.ojh(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda($contentEntryUid, $accountPersonUid, $searchText, $sortOrder, resultContinuation) {
    this.xjh_1 = $contentEntryUid;
    this.yjh_1 = $accountPersonUid;
    this.zjh_1 = $searchText;
    this.aji_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda).he = function (p1, $completion) {
    return this.j6j((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$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.bji_1.v5h(1, this.xjh_1);
            this.bji_1.v5h(2, this.xjh_1);
            this.bji_1.v5h(3, this.xjh_1);
            this.bji_1.v5h(4, this.xjh_1);
            this.bji_1.v5h(5, this.xjh_1);
            this.bji_1.v5h(6, this.xjh_1);
            this.bji_1.v5h(7, this.xjh_1);
            this.bji_1.v5h(8, this.yjh_1);
            this.bji_1.v5h(9, this.xjh_1);
            this.bji_1.v5h(10, this.yjh_1);
            this.bji_1.v5h(11, this.yjh_1);
            this.bji_1.v5h(12, this.yjh_1);
            this.bji_1.v5h(13, this.yjh_1);
            this.bji_1.y5h(14, this.zjh_1);
            this.bji_1.y5h(15, this.zjh_1);
            this.bji_1.u5h(16, this.aji_1);
            this.bji_1.v5h(17, this.xjh_1);
            this.bji_1.u5h(18, this.aji_1);
            this.bji_1.v5h(19, this.xjh_1);
            this.bji_1.u5h(20, this.aji_1);
            this.bji_1.v5h(21, this.xjh_1);
            this.bji_1.u5h(22, this.aji_1);
            this.bji_1.u5h(23, this.aji_1);
            this.bji_1.u5h(24, this.aji_1);
            this.bji_1.v5h(25, this.xjh_1);
            this.bji_1.u5h(26, this.aji_1);
            this.bji_1.v5h(27, this.xjh_1);
            this.bji_1.u5h(28, this.aji_1);
            this.bji_1.v5h(29, this.xjh_1);
            this.bji_1.u5h(30, this.aji_1);
            this.bji_1.u5h(31, this.aji_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.bji_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, StatementDao_JdbcImpl$findPersonsWithAttempts$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(StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda).m5f = function (_stmt, completion) {
    var i = new StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda(this.xjh_1, this.yjh_1, this.zjh_1, this.aji_1, completion);
    i.bji_1 = _stmt;
    return i;
  };
  function StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda_0($contentEntryUid, $accountPersonUid, $searchText, $sortOrder, resultContinuation) {
    var i = new StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda($contentEntryUid, $accountPersonUid, $searchText, $sortOrder, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda$lambda$lambda(_result));
  }
  function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_contextRegistrationHi = $_result.y5m('contextRegistrationHi');
      var _tmp_contextRegistrationLo = $_result.y5m('contextRegistrationLo');
      var _tmp_timeStarted = $_result.y5m('timeStarted');
      var _tmp_maxProgress = getIntNullable($_result, 'maxProgress');
      var _tmp_maxScore = getFloatNullable($_result, 'maxScore');
      var _tmp_isCompleted = $_result.j66('isCompleted');
      var _tmp_isSuccessful = getBooleanNullable($_result, 'isSuccessful');
      var _tmp_resultDuration = $_result.y5m('resultDuration');
      // Inline function 'kotlin.apply' call
      var this_0 = new SessionTimeAndProgressInfo();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.xapi.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.cji_1 = _tmp_contextRegistrationHi;
      this_0.dji_1 = _tmp_contextRegistrationLo;
      this_0.eji_1 = _tmp_timeStarted;
      this_0.fji_1 = _tmp_maxProgress;
      this_0.gji_1 = _tmp_maxScore;
      this_0.hji_1 = _tmp_isCompleted;
      this_0.iji_1 = _tmp_isSuccessful;
      this_0.jji_1 = _tmp_resultDuration;
      return this_0;
    };
  }
  function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda$lambda$lambda(_result));
  }
  function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.m5s(1);
    };
  }
  function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda($contentEntryUid, $personUid, $accountPersonUid, $sortOrder, $_limit, $_offset, resultContinuation) {
    this.sji_1 = $contentEntryUid;
    this.tji_1 = $personUid;
    this.uji_1 = $accountPersonUid;
    this.vji_1 = $sortOrder;
    this.wji_1 = $_limit;
    this.xji_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda).zji = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda).he = function (p1, $completion) {
    return this.zji((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$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.yji_1.v5h(1, this.sji_1);
            this.yji_1.v5h(2, this.tji_1);
            this.yji_1.v5h(3, this.tji_1);
            this.yji_1.v5h(4, this.sji_1);
            this.yji_1.v5h(5, this.tji_1);
            this.yji_1.v5h(6, this.sji_1);
            this.yji_1.v5h(7, this.tji_1);
            this.yji_1.v5h(8, this.sji_1);
            this.yji_1.v5h(9, this.tji_1);
            this.yji_1.v5h(10, this.sji_1);
            this.yji_1.v5h(11, this.tji_1);
            this.yji_1.v5h(12, this.sji_1);
            this.yji_1.v5h(13, this.tji_1);
            this.yji_1.v5h(14, this.sji_1);
            this.yji_1.v5h(15, this.tji_1);
            this.yji_1.v5h(16, this.sji_1);
            this.yji_1.v5h(17, this.tji_1);
            this.yji_1.v5h(18, this.uji_1);
            this.yji_1.v5h(19, this.uji_1);
            this.yji_1.v5h(20, this.uji_1);
            this.yji_1.v5h(21, this.uji_1);
            this.yji_1.v5h(22, this.uji_1);
            this.yji_1.u5h(23, this.vji_1);
            this.yji_1.u5h(24, this.vji_1);
            this.yji_1.u5h(25, this.vji_1);
            this.yji_1.u5h(26, this.vji_1);
            this.yji_1.u5h(27, this.vji_1);
            this.yji_1.u5h(28, this.vji_1);
            this.yji_1.u5h(29, this.wji_1);
            this.yji_1.u5h(30, this.xji_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.yji_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, StatementDao_JdbcImpl$findSessionsByPersonAndContent$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(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda).m5f = function (_stmt, completion) {
    var i = new StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda(this.sji_1, this.tji_1, this.uji_1, this.vji_1, this.wji_1, this.xji_1, completion);
    i.yji_1 = _stmt;
    return i;
  };
  function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda_0($contentEntryUid, $personUid, $accountPersonUid, $sortOrder, $_limit, $_offset, resultContinuation) {
    var i = new StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda($contentEntryUid, $personUid, $accountPersonUid, $sortOrder, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.zji(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda($contentEntryUid, $personUid, $accountPersonUid, $sortOrder, resultContinuation) {
    this.ijj_1 = $contentEntryUid;
    this.jjj_1 = $personUid;
    this.kjj_1 = $accountPersonUid;
    this.ljj_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda).he = function (p1, $completion) {
    return this.j6j((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$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.mjj_1.v5h(1, this.ijj_1);
            this.mjj_1.v5h(2, this.jjj_1);
            this.mjj_1.v5h(3, this.jjj_1);
            this.mjj_1.v5h(4, this.ijj_1);
            this.mjj_1.v5h(5, this.jjj_1);
            this.mjj_1.v5h(6, this.ijj_1);
            this.mjj_1.v5h(7, this.jjj_1);
            this.mjj_1.v5h(8, this.ijj_1);
            this.mjj_1.v5h(9, this.jjj_1);
            this.mjj_1.v5h(10, this.ijj_1);
            this.mjj_1.v5h(11, this.jjj_1);
            this.mjj_1.v5h(12, this.ijj_1);
            this.mjj_1.v5h(13, this.jjj_1);
            this.mjj_1.v5h(14, this.ijj_1);
            this.mjj_1.v5h(15, this.jjj_1);
            this.mjj_1.v5h(16, this.ijj_1);
            this.mjj_1.v5h(17, this.jjj_1);
            this.mjj_1.v5h(18, this.kjj_1);
            this.mjj_1.v5h(19, this.kjj_1);
            this.mjj_1.v5h(20, this.kjj_1);
            this.mjj_1.v5h(21, this.kjj_1);
            this.mjj_1.v5h(22, this.kjj_1);
            this.mjj_1.u5h(23, this.ljj_1);
            this.mjj_1.u5h(24, this.ljj_1);
            this.mjj_1.u5h(25, this.ljj_1);
            this.mjj_1.u5h(26, this.ljj_1);
            this.mjj_1.u5h(27, this.ljj_1);
            this.mjj_1.u5h(28, this.ljj_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.mjj_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, StatementDao_JdbcImpl$findSessionsByPersonAndContent$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(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda).m5f = function (_stmt, completion) {
    var i = new StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda(this.ijj_1, this.jjj_1, this.kjj_1, this.ljj_1, completion);
    i.mjj_1 = _stmt;
    return i;
  };
  function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda_0($contentEntryUid, $personUid, $accountPersonUid, $sortOrder, resultContinuation) {
    var i = new StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda($contentEntryUid, $personUid, $accountPersonUid, $sortOrder, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda$lambda(_result) {
    return mapRows(_result, StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda$lambda$lambda(_result));
  }
  function StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_statementActivityDescription = $_result.rz('statementActivityDescription');
      var _tmp_StatementEntity_nullCount = 0;
      var _tmp_statementIdHi = $_result.y5m('statementIdHi');
      var tmp;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_statementIdLo = $_result.y5m('statementIdLo');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_statementActorPersonUid = $_result.y5m('statementActorPersonUid');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_statementVerbUid = $_result.y5m('statementVerbUid');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_statementObjectType = $_result.x5m('statementObjectType');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_statementObjectUid1 = $_result.y5m('statementObjectUid1');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_statementObjectUid2 = $_result.y5m('statementObjectUid2');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_statementActorUid = $_result.y5m('statementActorUid');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_authorityActorUid = $_result.y5m('authorityActorUid');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_teamUid = $_result.y5m('teamUid');
      var tmp_8;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_8 = Unit_instance;
      }
      var _tmp_resultCompletion = getBooleanNullable($_result, 'resultCompletion');
      var tmp_9;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_9 = Unit_instance;
      }
      var _tmp_resultSuccess = getBooleanNullable($_result, 'resultSuccess');
      var tmp_10;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_10 = Unit_instance;
      }
      var _tmp_resultScoreScaled = getFloatNullable($_result, 'resultScoreScaled');
      var tmp_11;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_11 = Unit_instance;
      }
      var _tmp_resultScoreRaw = getFloatNullable($_result, 'resultScoreRaw');
      var tmp_12;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_12 = Unit_instance;
      }
      var _tmp_resultScoreMin = getFloatNullable($_result, 'resultScoreMin');
      var tmp_13;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_13 = Unit_instance;
      }
      var _tmp_resultScoreMax = getFloatNullable($_result, 'resultScoreMax');
      var tmp_14;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_14 = Unit_instance;
      }
      var _tmp_resultDuration = getLongNullable($_result, 'resultDuration');
      var tmp_15;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_15 = Unit_instance;
      }
      var _tmp_resultResponse = $_result.rz('resultResponse');
      var tmp_16;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_16 = Unit_instance;
      }
      var _tmp_timestamp = $_result.y5m('timestamp');
      var tmp_17;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_17 = Unit_instance;
      }
      var _tmp_stored = $_result.y5m('stored');
      var tmp_18;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_18 = Unit_instance;
      }
      var _tmp_contextRegistrationHi = $_result.y5m('contextRegistrationHi');
      var tmp_19;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_19 = Unit_instance;
      }
      var _tmp_contextRegistrationLo = $_result.y5m('contextRegistrationLo');
      var tmp_20;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_20 = Unit_instance;
      }
      var _tmp_contextPlatform = $_result.rz('contextPlatform');
      var tmp_21;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_21 = Unit_instance;
      }
      var _tmp_contextStatementRefIdHi = $_result.y5m('contextStatementRefIdHi');
      var tmp_22;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_22 = Unit_instance;
      }
      var _tmp_contextStatementRefIdLo = $_result.y5m('contextStatementRefIdLo');
      var tmp_23;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_23 = Unit_instance;
      }
      var _tmp_contextInstructorActorUid = $_result.y5m('contextInstructorActorUid');
      var tmp_24;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_24 = Unit_instance;
      }
      var _tmp_statementLct = $_result.y5m('statementLct');
      var tmp_25;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_25 = Unit_instance;
      }
      var _tmp_extensionProgress = getIntNullable($_result, 'extensionProgress');
      var tmp_26;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_26 = Unit_instance;
      }
      var _tmp_completionOrProgress = $_result.j66('completionOrProgress');
      var tmp_27;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_27 = Unit_instance;
      }
      var _tmp_statementContentEntryUid = $_result.y5m('statementContentEntryUid');
      var tmp_28;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_28 = Unit_instance;
      }
      var _tmp_statementLearnerGroupUid = $_result.y5m('statementLearnerGroupUid');
      var tmp_29;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_29 = Unit_instance;
      }
      var _tmp_statementClazzUid = $_result.y5m('statementClazzUid');
      var tmp_30;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_30 = Unit_instance;
      }
      var _tmp_statementCbUid = $_result.y5m('statementCbUid');
      var tmp_31;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_31 = Unit_instance;
      }
      var _tmp_statementDoorNode = $_result.y5m('statementDoorNode');
      var tmp_32;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_32 = Unit_instance;
      }
      var _tmp_isSubStatement = $_result.j66('isSubStatement');
      var tmp_33;
      if ($_result.q67()) {
        _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0;
        tmp_33 = Unit_instance;
      }
      var _tmp_StatementEntity_isAllNull = _tmp_StatementEntity_nullCount === 35;
      var _tmp_VerbEntity_nullCount = 0;
      var _tmp_verbUid = $_result.y5m('verbUid');
      var tmp_34;
      if ($_result.q67()) {
        _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0;
        tmp_34 = Unit_instance;
      }
      var _tmp_verbUrlId = $_result.rz('verbUrlId');
      var tmp_35;
      if ($_result.q67()) {
        _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0;
        tmp_35 = Unit_instance;
      }
      var _tmp_verbDeleted = $_result.j66('verbDeleted');
      var tmp_36;
      if ($_result.q67()) {
        _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0;
        tmp_36 = Unit_instance;
      }
      var _tmp_verbLct = $_result.y5m('verbLct');
      var tmp_37;
      if ($_result.q67()) {
        _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0;
        tmp_37 = Unit_instance;
      }
      var _tmp_VerbEntity_isAllNull = _tmp_VerbEntity_nullCount === 4;
      var _tmp_VerbLangMapEntry_nullCount = 0;
      var _tmp_vlmeVerbUid = $_result.y5m('vlmeVerbUid');
      var tmp_38;
      if ($_result.q67()) {
        _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0;
        tmp_38 = Unit_instance;
      }
      var _tmp_vlmeLangHash = $_result.y5m('vlmeLangHash');
      var tmp_39;
      if ($_result.q67()) {
        _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0;
        tmp_39 = Unit_instance;
      }
      var _tmp_vlmeLangCode = $_result.rz('vlmeLangCode');
      var tmp_40;
      if ($_result.q67()) {
        _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0;
        tmp_40 = Unit_instance;
      }
      var _tmp_vlmeEntryString = $_result.rz('vlmeEntryString');
      var tmp_41;
      if ($_result.q67()) {
        _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0;
        tmp_41 = Unit_instance;
      }
      var _tmp_vlmeLastModified = $_result.y5m('vlmeLastModified');
      var tmp_42;
      if ($_result.q67()) {
        _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0;
        tmp_42 = Unit_instance;
      }
      var _tmp_VerbLangMapEntry_isAllNull = _tmp_VerbLangMapEntry_nullCount === 5;
      var _tmp_ActivityEntity_nullCount = 0;
      var _tmp_actUid = $_result.y5m('actUid');
      var tmp_43;
      if ($_result.q67()) {
        _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0;
        tmp_43 = Unit_instance;
      }
      var _tmp_actIdIri = $_result.rz('actIdIri');
      var tmp_44;
      if ($_result.q67()) {
        _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0;
        tmp_44 = Unit_instance;
      }
      var _tmp_actType = $_result.rz('actType');
      var tmp_45;
      if ($_result.q67()) {
        _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0;
        tmp_45 = Unit_instance;
      }
      var _tmp_actMoreInfo = $_result.rz('actMoreInfo');
      var tmp_46;
      if ($_result.q67()) {
        _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0;
        tmp_46 = Unit_instance;
      }
      var _tmp_actInteractionType = $_result.x5m('actInteractionType');
      var tmp_47;
      if ($_result.q67()) {
        _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0;
        tmp_47 = Unit_instance;
      }
      var _tmp_actCorrectResponsePatterns = $_result.rz('actCorrectResponsePatterns');
      var tmp_48;
      if ($_result.q67()) {
        _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0;
        tmp_48 = Unit_instance;
      }
      var _tmp_actLct = $_result.y5m('actLct');
      var tmp_49;
      if ($_result.q67()) {
        _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0;
        tmp_49 = Unit_instance;
      }
      var _tmp_ActivityEntity_isAllNull = _tmp_ActivityEntity_nullCount === 7;
      var _tmp_ActivityLangMapEntry_nullCount = 0;
      var _tmp_almeActivityUid = $_result.y5m('almeActivityUid');
      var tmp_50;
      if ($_result.q67()) {
        _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0;
        tmp_50 = Unit_instance;
      }
      var _tmp_almeHash = $_result.y5m('almeHash');
      var tmp_51;
      if ($_result.q67()) {
        _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0;
        tmp_51 = Unit_instance;
      }
      var _tmp_almeLangCode = $_result.rz('almeLangCode');
      var tmp_52;
      if ($_result.q67()) {
        _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0;
        tmp_52 = Unit_instance;
      }
      var _tmp_almePropName = $_result.rz('almePropName');
      var tmp_53;
      if ($_result.q67()) {
        _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0;
        tmp_53 = Unit_instance;
      }
      var _tmp_almeValue = $_result.rz('almeValue');
      var tmp_54;
      if ($_result.q67()) {
        _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0;
        tmp_54 = Unit_instance;
      }
      var _tmp_almeAieHash = $_result.y5m('almeAieHash');
      var tmp_55;
      if ($_result.q67()) {
        _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0;
        tmp_55 = Unit_instance;
      }
      var _tmp_almeLastMod = $_result.y5m('almeLastMod');
      var tmp_56;
      if ($_result.q67()) {
        _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0;
        tmp_56 = Unit_instance;
      }
      var _tmp_ActivityLangMapEntry_isAllNull = _tmp_ActivityLangMapEntry_nullCount === 7;
      // Inline function 'kotlin.apply' call
      var this_0 = new StatementEntityAndVerb();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.xapi.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.sjj_1 = _tmp_statementActivityDescription;
      if (!_tmp_StatementEntity_isAllNull) {
        var tmp_57 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new StatementEntity();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.xapi.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.wje_1 = _tmp_statementIdHi;
        this_1.xje_1 = _tmp_statementIdLo;
        this_1.yje_1 = _tmp_statementActorPersonUid;
        this_1.zje_1 = _tmp_statementVerbUid;
        this_1.ajf_1 = _tmp_statementObjectType;
        this_1.bjf_1 = _tmp_statementObjectUid1;
        this_1.cjf_1 = _tmp_statementObjectUid2;
        this_1.djf_1 = _tmp_statementActorUid;
        this_1.ejf_1 = _tmp_authorityActorUid;
        this_1.fjf_1 = _tmp_teamUid;
        this_1.gjf_1 = _tmp_resultCompletion;
        this_1.hjf_1 = _tmp_resultSuccess;
        this_1.ijf_1 = _tmp_resultScoreScaled;
        this_1.jjf_1 = _tmp_resultScoreRaw;
        this_1.kjf_1 = _tmp_resultScoreMin;
        this_1.ljf_1 = _tmp_resultScoreMax;
        this_1.mjf_1 = _tmp_resultDuration;
        this_1.njf_1 = _tmp_resultResponse;
        this_1.ojf_1 = _tmp_timestamp;
        this_1.pjf_1 = _tmp_stored;
        this_1.qjf_1 = _tmp_contextRegistrationHi;
        this_1.rjf_1 = _tmp_contextRegistrationLo;
        this_1.sjf_1 = _tmp_contextPlatform;
        this_1.tjf_1 = _tmp_contextStatementRefIdHi;
        this_1.ujf_1 = _tmp_contextStatementRefIdLo;
        this_1.vjf_1 = _tmp_contextInstructorActorUid;
        this_1.wjf_1 = _tmp_statementLct;
        this_1.xjf_1 = _tmp_extensionProgress;
        this_1.yjf_1 = _tmp_completionOrProgress;
        this_1.zjf_1 = _tmp_statementContentEntryUid;
        this_1.ajg_1 = _tmp_statementLearnerGroupUid;
        this_1.bjg_1 = _tmp_statementClazzUid;
        this_1.cjg_1 = _tmp_statementCbUid;
        this_1.djg_1 = _tmp_statementDoorNode;
        this_1.ejg_1 = _tmp_isSubStatement;
        tmp_57.njj_1 = this_1;
      }
      if (!_tmp_VerbEntity_isAllNull) {
        var tmp_58 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new VerbEntity();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.xapi.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.tjj_1 = _tmp_verbUid;
        this_2.ujj_1 = _tmp_verbUrlId;
        this_2.vjj_1 = _tmp_verbDeleted;
        this_2.wjj_1 = _tmp_verbLct;
        tmp_58.ojj_1 = this_2;
      }
      if (!_tmp_VerbLangMapEntry_isAllNull) {
        var tmp_59 = this_0;
        // Inline function 'kotlin.apply' call
        var this_3 = new VerbLangMapEntry();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.xapi.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_3.xjj_1 = _tmp_vlmeVerbUid;
        this_3.yjj_1 = _tmp_vlmeLangHash;
        this_3.zjj_1 = _tmp_vlmeLangCode;
        this_3.ajk_1 = _tmp_vlmeEntryString;
        this_3.bjk_1 = _tmp_vlmeLastModified;
        tmp_59.pjj_1 = this_3;
      }
      if (!_tmp_ActivityEntity_isAllNull) {
        var tmp_60 = this_0;
        // Inline function 'kotlin.apply' call
        var this_4 = new ActivityEntity();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.xapi.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_4.uip_1 = _tmp_actUid;
        this_4.vip_1 = _tmp_actIdIri;
        this_4.wip_1 = _tmp_actType;
        this_4.xip_1 = _tmp_actMoreInfo;
        this_4.yip_1 = _tmp_actInteractionType;
        this_4.zip_1 = _tmp_actCorrectResponsePatterns;
        this_4.aiq_1 = _tmp_actLct;
        tmp_60.qjj_1 = this_4;
      }
      if (!_tmp_ActivityLangMapEntry_isAllNull) {
        var tmp_61 = this_0;
        // Inline function 'kotlin.apply' call
        var this_5 = new ActivityLangMapEntry();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.xapi.<no name provided>.loadRows.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_5.iix_1 = _tmp_almeActivityUid;
        this_5.jix_1 = _tmp_almeHash;
        this_5.kix_1 = _tmp_almeLangCode;
        this_5.lix_1 = _tmp_almePropName;
        this_5.mix_1 = _tmp_almeValue;
        this_5.nix_1 = _tmp_almeAieHash;
        this_5.oix_1 = _tmp_almeLastMod;
        tmp_61.rjj_1 = this_5;
      }
      return this_0;
    };
  }
  function StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda$lambda(_result) {
    return mapNextRow(_result, 0, StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda$lambda$lambda(_result));
  }
  function StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda$lambda$lambda($_result) {
    return function (it) {
      return $_result.m5s(1);
    };
  }
  function StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda($accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder, $_limit, $_offset, resultContinuation) {
    this.kjk_1 = $accountPersonUid;
    this.ljk_1 = $registrationHi;
    this.mjk_1 = $registrationLo;
    this.njk_1 = $selectedPersonUid;
    this.ojk_1 = $contentEntryUid;
    this.pjk_1 = $searchText;
    this.qjk_1 = $deSelectedVerbUids;
    this.rjk_1 = $sortOrder;
    this.sjk_1 = $_limit;
    this.tjk_1 = $_offset;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda).vjk = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda).he = function (p1, $completion) {
    return this.vjk((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(StatementDao_JdbcImpl$findStatementsBySession$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.ujk_1.v5h(1, this.kjk_1);
            this.ujk_1.v5h(2, this.ljk_1);
            this.ujk_1.v5h(3, this.mjk_1);
            this.ujk_1.v5h(4, this.njk_1);
            this.ujk_1.v5h(5, this.ojk_1);
            this.ujk_1.y5h(6, this.pjk_1);
            this.ujk_1.y5h(7, this.pjk_1);
            var tmp_0 = this.ujk_1.r5g();
            var this_0 = this.qjk_1;
            this.ujk_1.z5h(8, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.ujk_1.v5h(9, this.kjk_1);
            this.ujk_1.v5h(10, this.njk_1);
            this.ujk_1.v5h(11, this.kjk_1);
            this.ujk_1.v5h(12, this.kjk_1);
            this.ujk_1.v5h(13, this.kjk_1);
            this.ujk_1.u5h(14, this.rjk_1);
            this.ujk_1.u5h(15, this.rjk_1);
            this.ujk_1.u5h(16, this.rjk_1);
            this.ujk_1.u5h(17, this.rjk_1);
            this.ujk_1.u5h(18, this.sjk_1);
            this.ujk_1.u5h(19, this.tjk_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.ujk_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, StatementDao_JdbcImpl$findStatementsBySession$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(StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda).m5f = function (_stmt, completion) {
    var i = new StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda(this.kjk_1, this.ljk_1, this.mjk_1, this.njk_1, this.ojk_1, this.pjk_1, this.qjk_1, this.rjk_1, this.sjk_1, this.tjk_1, completion);
    i.ujk_1 = _stmt;
    return i;
  };
  function StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda_0($accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder, $_limit, $_offset, resultContinuation) {
    var i = new StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda($accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder, $_limit, $_offset, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.vjk(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda($accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder, resultContinuation) {
    this.ejl_1 = $accountPersonUid;
    this.fjl_1 = $registrationHi;
    this.gjl_1 = $registrationLo;
    this.hjl_1 = $selectedPersonUid;
    this.ijl_1 = $contentEntryUid;
    this.jjl_1 = $searchText;
    this.kjl_1 = $deSelectedVerbUids;
    this.ljl_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda).he = function (p1, $completion) {
    return this.j6j((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(StatementDao_JdbcImpl$findStatementsBySession$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.mjl_1.v5h(1, this.ejl_1);
            this.mjl_1.v5h(2, this.fjl_1);
            this.mjl_1.v5h(3, this.gjl_1);
            this.mjl_1.v5h(4, this.hjl_1);
            this.mjl_1.v5h(5, this.ijl_1);
            this.mjl_1.y5h(6, this.jjl_1);
            this.mjl_1.y5h(7, this.jjl_1);
            var tmp_0 = this.mjl_1.r5g();
            var this_0 = this.kjl_1;
            this.mjl_1.z5h(8, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.mjl_1.v5h(9, this.ejl_1);
            this.mjl_1.v5h(10, this.hjl_1);
            this.mjl_1.v5h(11, this.ejl_1);
            this.mjl_1.v5h(12, this.ejl_1);
            this.mjl_1.v5h(13, this.ejl_1);
            this.mjl_1.u5h(14, this.ljl_1);
            this.mjl_1.u5h(15, this.ljl_1);
            this.mjl_1.u5h(16, this.ljl_1);
            this.mjl_1.u5h(17, this.ljl_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.mjl_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, StatementDao_JdbcImpl$findStatementsBySession$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(StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda).m5f = function (_stmt, completion) {
    var i = new StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda(this.ejl_1, this.fjl_1, this.gjl_1, this.hjl_1, this.ijl_1, this.jjl_1, this.kjl_1, this.ljl_1, completion);
    i.mjl_1 = _stmt;
    return i;
  };
  function StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda_0($accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder, resultContinuation) {
    var i = new StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda($accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda$lambda(_result) {
    return mapRows(_result, StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda$lambda$lambda(_result));
  }
  function StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_VerbEntity_nullCount = 0;
      var _tmp_verbUid = $_result.y5m('verbUid');
      var tmp;
      if ($_result.q67()) {
        _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0;
        tmp = Unit_instance;
      }
      var _tmp_verbUrlId = $_result.rz('verbUrlId');
      var tmp_0;
      if ($_result.q67()) {
        _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0;
        tmp_0 = Unit_instance;
      }
      var _tmp_verbDeleted = $_result.j66('verbDeleted');
      var tmp_1;
      if ($_result.q67()) {
        _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0;
        tmp_1 = Unit_instance;
      }
      var _tmp_verbLct = $_result.y5m('verbLct');
      var tmp_2;
      if ($_result.q67()) {
        _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0;
        tmp_2 = Unit_instance;
      }
      var _tmp_VerbEntity_isAllNull = _tmp_VerbEntity_nullCount === 4;
      var _tmp_VerbLangMapEntry_nullCount = 0;
      var _tmp_vlmeVerbUid = $_result.y5m('vlmeVerbUid');
      var tmp_3;
      if ($_result.q67()) {
        _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0;
        tmp_3 = Unit_instance;
      }
      var _tmp_vlmeLangHash = $_result.y5m('vlmeLangHash');
      var tmp_4;
      if ($_result.q67()) {
        _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0;
        tmp_4 = Unit_instance;
      }
      var _tmp_vlmeLangCode = $_result.rz('vlmeLangCode');
      var tmp_5;
      if ($_result.q67()) {
        _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0;
        tmp_5 = Unit_instance;
      }
      var _tmp_vlmeEntryString = $_result.rz('vlmeEntryString');
      var tmp_6;
      if ($_result.q67()) {
        _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0;
        tmp_6 = Unit_instance;
      }
      var _tmp_vlmeLastModified = $_result.y5m('vlmeLastModified');
      var tmp_7;
      if ($_result.q67()) {
        _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0;
        tmp_7 = Unit_instance;
      }
      var _tmp_VerbLangMapEntry_isAllNull = _tmp_VerbLangMapEntry_nullCount === 5;
      // Inline function 'kotlin.apply' call
      var this_0 = new VerbEntityAndName();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.getUniqueVerbsForSession.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      if (!_tmp_VerbEntity_isAllNull) {
        var tmp_8 = this_0;
        // Inline function 'kotlin.apply' call
        var this_1 = new VerbEntity();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.getUniqueVerbsForSession.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_1.tjj_1 = _tmp_verbUid;
        this_1.ujj_1 = _tmp_verbUrlId;
        this_1.vjj_1 = _tmp_verbDeleted;
        this_1.wjj_1 = _tmp_verbLct;
        tmp_8.njl_1 = this_1;
      }
      if (!_tmp_VerbLangMapEntry_isAllNull) {
        var tmp_9 = this_0;
        // Inline function 'kotlin.apply' call
        var this_2 = new VerbLangMapEntry();
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.getUniqueVerbsForSession.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
        this_2.xjj_1 = _tmp_vlmeVerbUid;
        this_2.yjj_1 = _tmp_vlmeLangHash;
        this_2.zjj_1 = _tmp_vlmeLangCode;
        this_2.ajk_1 = _tmp_vlmeEntryString;
        this_2.bjk_1 = _tmp_vlmeLastModified;
        tmp_9.ojl_1 = this_2;
      }
      return this_0;
    };
  }
  function StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda($registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation) {
    this.xjl_1 = $registrationHi;
    this.yjl_1 = $registrationLo;
    this.zjl_1 = $selectedPersonUid;
    this.ajm_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda).cjm = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda).he = function (p1, $completion) {
    return this.cjm((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$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.bjm_1.v5h(1, this.xjl_1);
            this.bjm_1.v5h(2, this.yjl_1);
            this.bjm_1.v5h(3, this.zjl_1);
            this.bjm_1.v5h(4, this.ajm_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.bjm_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, StatementDao_JdbcImpl$getUniqueVerbsForSession$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$getUniqueVerbsForSession$slambda$slambda).m5f = function (_stmt, completion) {
    var i = new StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda(this.xjl_1, this.yjl_1, this.zjl_1, this.ajm_1, completion);
    i.bjm_1 = _stmt;
    return i;
  };
  function StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda_0($registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation) {
    var i = new StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda($registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.cjm(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda$lambda(_result) {
    return mapRows(_result, StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda$lambda$lambda(_result));
  }
  function StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda$lambda$lambda($_result) {
    return function (it) {
      var _tmp_statementIdHi = $_result.y5m('statementIdHi');
      var _tmp_statementIdLo = $_result.y5m('statementIdLo');
      var _tmp_statementActorPersonUid = $_result.y5m('statementActorPersonUid');
      var _tmp_statementVerbUid = $_result.y5m('statementVerbUid');
      var _tmp_statementObjectType = $_result.x5m('statementObjectType');
      var _tmp_statementObjectUid1 = $_result.y5m('statementObjectUid1');
      var _tmp_statementObjectUid2 = $_result.y5m('statementObjectUid2');
      var _tmp_statementActorUid = $_result.y5m('statementActorUid');
      var _tmp_authorityActorUid = $_result.y5m('authorityActorUid');
      var _tmp_teamUid = $_result.y5m('teamUid');
      var _tmp_resultCompletion = getBooleanNullable($_result, 'resultCompletion');
      var _tmp_resultSuccess = getBooleanNullable($_result, 'resultSuccess');
      var _tmp_resultScoreScaled = getFloatNullable($_result, 'resultScoreScaled');
      var _tmp_resultScoreRaw = getFloatNullable($_result, 'resultScoreRaw');
      var _tmp_resultScoreMin = getFloatNullable($_result, 'resultScoreMin');
      var _tmp_resultScoreMax = getFloatNullable($_result, 'resultScoreMax');
      var _tmp_resultDuration = getLongNullable($_result, 'resultDuration');
      var _tmp_resultResponse = $_result.rz('resultResponse');
      var _tmp_timestamp = $_result.y5m('timestamp');
      var _tmp_stored = $_result.y5m('stored');
      var _tmp_contextRegistrationHi = $_result.y5m('contextRegistrationHi');
      var _tmp_contextRegistrationLo = $_result.y5m('contextRegistrationLo');
      var _tmp_contextPlatform = $_result.rz('contextPlatform');
      var _tmp_contextStatementRefIdHi = $_result.y5m('contextStatementRefIdHi');
      var _tmp_contextStatementRefIdLo = $_result.y5m('contextStatementRefIdLo');
      var _tmp_contextInstructorActorUid = $_result.y5m('contextInstructorActorUid');
      var _tmp_statementLct = $_result.y5m('statementLct');
      var _tmp_extensionProgress = getIntNullable($_result, 'extensionProgress');
      var _tmp_completionOrProgress = $_result.j66('completionOrProgress');
      var _tmp_statementContentEntryUid = $_result.y5m('statementContentEntryUid');
      var _tmp_statementLearnerGroupUid = $_result.y5m('statementLearnerGroupUid');
      var _tmp_statementClazzUid = $_result.y5m('statementClazzUid');
      var _tmp_statementCbUid = $_result.y5m('statementCbUid');
      var _tmp_statementDoorNode = $_result.y5m('statementDoorNode');
      var _tmp_isSubStatement = $_result.j66('isSubStatement');
      // Inline function 'kotlin.apply' call
      var this_0 = new StatementEntity();
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.scoreOrProgressDataExistsForContent.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
      this_0.wje_1 = _tmp_statementIdHi;
      this_0.xje_1 = _tmp_statementIdLo;
      this_0.yje_1 = _tmp_statementActorPersonUid;
      this_0.zje_1 = _tmp_statementVerbUid;
      this_0.ajf_1 = _tmp_statementObjectType;
      this_0.bjf_1 = _tmp_statementObjectUid1;
      this_0.cjf_1 = _tmp_statementObjectUid2;
      this_0.djf_1 = _tmp_statementActorUid;
      this_0.ejf_1 = _tmp_authorityActorUid;
      this_0.fjf_1 = _tmp_teamUid;
      this_0.gjf_1 = _tmp_resultCompletion;
      this_0.hjf_1 = _tmp_resultSuccess;
      this_0.ijf_1 = _tmp_resultScoreScaled;
      this_0.jjf_1 = _tmp_resultScoreRaw;
      this_0.kjf_1 = _tmp_resultScoreMin;
      this_0.ljf_1 = _tmp_resultScoreMax;
      this_0.mjf_1 = _tmp_resultDuration;
      this_0.njf_1 = _tmp_resultResponse;
      this_0.ojf_1 = _tmp_timestamp;
      this_0.pjf_1 = _tmp_stored;
      this_0.qjf_1 = _tmp_contextRegistrationHi;
      this_0.rjf_1 = _tmp_contextRegistrationLo;
      this_0.sjf_1 = _tmp_contextPlatform;
      this_0.tjf_1 = _tmp_contextStatementRefIdHi;
      this_0.ujf_1 = _tmp_contextStatementRefIdLo;
      this_0.vjf_1 = _tmp_contextInstructorActorUid;
      this_0.wjf_1 = _tmp_statementLct;
      this_0.xjf_1 = _tmp_extensionProgress;
      this_0.yjf_1 = _tmp_completionOrProgress;
      this_0.zjf_1 = _tmp_statementContentEntryUid;
      this_0.ajg_1 = _tmp_statementLearnerGroupUid;
      this_0.bjg_1 = _tmp_statementClazzUid;
      this_0.cjg_1 = _tmp_statementCbUid;
      this_0.djg_1 = _tmp_statementDoorNode;
      this_0.ejg_1 = _tmp_isSubStatement;
      return this_0;
    };
  }
  function StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.djm_1);
  }
  protoOf(StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1).u5g = 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).hjm = function (stmt, entity) {
    stmt.v5h(1, entity.wje_1);
    stmt.v5h(2, entity.xje_1);
    stmt.v5h(3, entity.yje_1);
    stmt.v5h(4, entity.zje_1);
    stmt.u5h(5, entity.ajf_1);
    stmt.v5h(6, entity.bjf_1);
    stmt.v5h(7, entity.cjf_1);
    stmt.v5h(8, entity.djf_1);
    stmt.v5h(9, entity.ejf_1);
    stmt.v5h(10, entity.fjf_1);
    setBooleanNullable(stmt, 11, entity.gjf_1);
    setBooleanNullable(stmt, 12, entity.hjf_1);
    setFloatNullable(stmt, 13, entity.ijf_1);
    setFloatNullable(stmt, 14, entity.jjf_1);
    setFloatNullable(stmt, 15, entity.kjf_1);
    setFloatNullable(stmt, 16, entity.ljf_1);
    setLongNullable(stmt, 17, entity.mjf_1);
    stmt.y5h(18, entity.njf_1);
    stmt.v5h(19, entity.ojf_1);
    stmt.v5h(20, entity.pjf_1);
    stmt.v5h(21, entity.qjf_1);
    stmt.v5h(22, entity.rjf_1);
    stmt.y5h(23, entity.sjf_1);
    stmt.v5h(24, entity.tjf_1);
    stmt.v5h(25, entity.ujf_1);
    stmt.v5h(26, entity.vjf_1);
    stmt.v5h(27, entity.wjf_1);
    setIntNullable(stmt, 28, entity.xjf_1);
    stmt.i5h(29, entity.yjf_1);
    stmt.v5h(30, entity.zjf_1);
    stmt.v5h(31, entity.ajg_1);
    stmt.v5h(32, entity.bjg_1);
    stmt.v5h(33, entity.cjg_1);
    stmt.v5h(34, entity.djg_1);
    stmt.i5h(35, entity.ejg_1);
  };
  protoOf(StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1).p5f = function (stmt, entity) {
    return this.hjm(stmt, entity instanceof StatementEntity ? entity : THROW_CCE());
  };
  function StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) {
    this.qjm_1 = $studentPersonUids;
    this.rjm_1 = $clazzUid;
    this.sjm_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda).rjg = function (_stmt, $completion) {
    var tmp = this.m5f(_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.rjg((!(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.tjm_1.r5g();
            var this_0 = this.qjm_1;
            this.tjm_1.z5h(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0)));
            this.tjm_1.v5h(2, this.rjm_1);
            var tmp_1 = this.tjm_1.r5g();
            var this_1 = this.qjm_1;
            this.tjm_1.z5h(3, createArrayOrProxyArrayOf(tmp_1, 'BIGINT', copyToArray(this_1)));
            this.tjm_1.v5h(4, this.sjm_1);
            this.tjm_1.v5h(5, this.sjm_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.tjm_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).m5f = function (_stmt, completion) {
    var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda(this.qjm_1, this.rjm_1, this.sjm_1, completion);
    i.tjm_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.rjg(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda(this$0, $studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) {
    this.cjn_1 = this$0;
    this.djn_1 = $studentPersonUids;
    this.ejn_1 = $clazzUid;
    this.fjn_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda).gjn = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda).m78 = function ($completion) {
    return this.gjn($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.cjn_1.djm_1, tmp_0, StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda_0(this.djn_1, this.ejn_1, this.fjn_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).l78 = function (completion) {
    return new StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda(this.cjn_1, this.djn_1, this.ejn_1, this.fjn_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.gjn($completion);
    };
    l.$arity = 0;
    return l;
  }
  function StatementDao_JdbcImpl$findPersonsWithAttempts$1(this$0, $contentEntryUid, $accountPersonUid, $searchText, $sortOrder) {
    this.njn_1 = this$0;
    this.ojn_1 = $contentEntryUid;
    this.pjn_1 = $accountPersonUid;
    this.qjn_1 = $searchText;
    this.rjn_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', 'StatementEntity', 'CoursePermission'];
    DoorLimitOffsetPagingSource.call(this, this$0.djm_1, tmp$ret$2);
  }
  protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$1).sjn = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig("SELECT * FROM (\n     SELECT Person.*, PersonPicture.*,\n            (SELECT COUNT(*)\n               FROM (SELECT DISTINCT StatementEntity.contextRegistrationHi, StatementEntity.contextRegistrationLo\n                       FROM StatementEntity\n                      WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                        AND StatementEntity.statementActorPersonUid = Person.personUid\n                    ) AS DistinctRegistrations) AS numAttempts,\n            (SELECT EXISTS(\n                    SELECT 1\n                      FROM StatementEntity\n                     WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                       AND StatementEntity.statementActorPersonUid = Person.personUid\n                       AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                       AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1)) AS isCompleted,\n            (SELECT CASE\n                    WHEN EXISTS(\n                         SELECT 1\n                           FROM StatementEntity\n                          WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                            AND StatementEntity.statementActorPersonUid = Person.personUid\n                            AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                            AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n                    WHEN EXISTS(\n                         SELECT 1\n                           FROM StatementEntity\n                          WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                            AND StatementEntity.statementActorPersonUid = Person.personUid\n                            AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                            AND StatementEntity.resultSuccess IS NOT NULL\n                            AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 0\n                    ELSE NULL\n                    END) AS isSuccessful,\n            (\n             SELECT MAX(StatementEntity.extensionProgress)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    ) AS maxProgress,\n            (\n             SELECT MAX(StatementEntity.resultScoreScaled)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    ) AS maxScore,\n            \n            (\n        SELECT MAX(StatementEntity.timestamp)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n    ) AS mostRecentAttemptTime    \n       FROM Person\n            LEFT JOIN PersonPicture\n                 ON PersonPicture.personPictureUid = Person.personUid\n      WHERE Person.personUid IN\n            (SELECT DISTINCT StatementEntity.statementActorPersonUid\n                    \n        FROM StatementEntity\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 = StatementEntity.statementClazzUid \n                           ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                              LIMIT 1), 0)\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                /* permission check */\n                AND (    StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                      OR EXISTS(SELECT CoursePermission.cpUid\n                                  FROM CoursePermission\n                                 WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n                                   AND (   CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                        OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n                                   AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n                                   AND NOT CoursePermission.cpIsDeleted)\n                      OR (\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                          128\n                          \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    ))\n    )      \n            AND (   ? = '%' \n                 OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n     ORDER BY \n    CASE \n        WHEN ? = 5 THEN (\n             SELECT MAX(StatementEntity.resultScoreScaled)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    )\n        WHEN ? = 7 THEN (\n             SELECT MAX(StatementEntity.extensionProgress)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    )\n        WHEN ? = 9 THEN (\n        SELECT MAX(StatementEntity.timestamp)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n    )\n        ELSE 0\n    END ASC,\n    CASE \n        WHEN ? = 1 THEN Person.firstNames\n        WHEN ? = 3 THEN Person.lastName\n        ELSE ''\n    END ASC,    \n    CASE \n        WHEN ? = 6 THEN (\n             SELECT MAX(StatementEntity.resultScoreScaled)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    )\n        WHEN ? = 8 THEN (\n             SELECT MAX(StatementEntity.extensionProgress)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    )\n        WHEN ? = 10 THEN (\n        SELECT MAX(StatementEntity.timestamp)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n    )\n        ELSE 0\n    END DESC,\n    CASE\n        WHEN ? = 2 THEN Person.firstNames\n        WHEN ? = 4 THEN Person.lastName\n    END DESC    \n) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n     SELECT Person.*, PersonPicture.*,\n            (SELECT COUNT(*)\n               FROM (SELECT DISTINCT StatementEntity.contextRegistrationHi, StatementEntity.contextRegistrationLo\n                       FROM StatementEntity\n                      WHERE StatementEntity.statementContentEntryUid = ?\n                        AND StatementEntity.statementActorPersonUid = Person.personUid\n                    ) AS DistinctRegistrations) AS numAttempts,\n            (SELECT EXISTS(\n                    SELECT 1\n                      FROM StatementEntity\n                     WHERE StatementEntity.statementContentEntryUid = ?\n                       AND StatementEntity.statementActorPersonUid = Person.personUid\n                       AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                       AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1)) AS isCompleted,\n            (SELECT CASE\n                    WHEN EXISTS(\n                         SELECT 1\n                           FROM StatementEntity\n                          WHERE StatementEntity.statementContentEntryUid = ?\n                            AND StatementEntity.statementActorPersonUid = Person.personUid\n                            AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                            AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n                    WHEN EXISTS(\n                         SELECT 1\n                           FROM StatementEntity\n                          WHERE StatementEntity.statementContentEntryUid = ?\n                            AND StatementEntity.statementActorPersonUid = Person.personUid\n                            AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                            AND StatementEntity.resultSuccess IS NOT NULL\n                            AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 0\n                    ELSE NULL\n                    END) AS isSuccessful,\n            (\n             SELECT MAX(StatementEntity.extensionProgress)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = ?\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    ) AS maxProgress,\n            (\n             SELECT MAX(StatementEntity.resultScoreScaled)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = ?\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    ) AS maxScore,\n            \n            (\n        SELECT MAX(StatementEntity.timestamp)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = ?\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n    ) AS mostRecentAttemptTime    \n       FROM Person\n            LEFT JOIN PersonPicture\n                 ON PersonPicture.personPictureUid = Person.personUid\n      WHERE Person.personUid IN\n            (SELECT DISTINCT StatementEntity.statementActorPersonUid\n                    \n        FROM StatementEntity\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 = StatementEntity.statementClazzUid \n                           ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                              LIMIT 1), 0)\n              WHERE StatementEntity.statementContentEntryUid = ?\n                /* permission check */\n                AND (    StatementEntity.statementActorPersonUid = ?\n                      OR EXISTS(SELECT CoursePermission.cpUid\n                                  FROM CoursePermission\n                                 WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n                                   AND (   CoursePermission.cpToPersonUid = ? \n                                        OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n                                   AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n                                   AND NOT CoursePermission.cpIsDeleted)\n                      OR (\n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n    \n                          128\n                          \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    ))\n    )      \n            AND (   ? = '%' \n                 OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n     ORDER BY \n    CASE \n        WHEN ? = 5 THEN (\n             SELECT MAX(StatementEntity.resultScoreScaled)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = ?\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    )\n        WHEN ? = 7 THEN (\n             SELECT MAX(StatementEntity.extensionProgress)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = ?\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    )\n        WHEN ? = 9 THEN (\n        SELECT MAX(StatementEntity.timestamp)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = ?\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n    )\n        ELSE 0\n    END ASC,\n    CASE \n        WHEN ? = 1 THEN Person.firstNames\n        WHEN ? = 3 THEN Person.lastName\n        ELSE ''\n    END ASC,    \n    CASE \n        WHEN ? = 6 THEN (\n             SELECT MAX(StatementEntity.resultScoreScaled)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = ?\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    )\n        WHEN ? = 8 THEN (\n             SELECT MAX(StatementEntity.extensionProgress)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = ?\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    )\n        WHEN ? = 10 THEN (\n        SELECT MAX(StatementEntity.timestamp)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = ?\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n    )\n        ELSE 0\n    END DESC,\n    CASE\n        WHEN ? = 2 THEN Person.firstNames\n        WHEN ? = 4 THEN Person.lastName\n    END DESC    \n) AS _PagingData LIMIT ? OFFSET ?\n", true);
    return prepareAndUseStatementAsync(this.njn_1.djm_1, tmp, StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda_0(this.ojn_1, this.pjn_1, this.qjn_1, this.rjn_1, _limit, _offset, null), $completion);
  };
  protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$1).w5p = function (_limit, _offset, $completion) {
    return this.sjn(_limit, _offset, $completion);
  };
  protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$1).q5r = function ($completion) {
    var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n     SELECT Person.*, PersonPicture.*,\n            (SELECT COUNT(*)\n               FROM (SELECT DISTINCT StatementEntity.contextRegistrationHi, StatementEntity.contextRegistrationLo\n                       FROM StatementEntity\n                      WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                        AND StatementEntity.statementActorPersonUid = Person.personUid\n                    ) AS DistinctRegistrations) AS numAttempts,\n            (SELECT EXISTS(\n                    SELECT 1\n                      FROM StatementEntity\n                     WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                       AND StatementEntity.statementActorPersonUid = Person.personUid\n                       AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                       AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1)) AS isCompleted,\n            (SELECT CASE\n                    WHEN EXISTS(\n                         SELECT 1\n                           FROM StatementEntity\n                          WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                            AND StatementEntity.statementActorPersonUid = Person.personUid\n                            AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                            AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n                    WHEN EXISTS(\n                         SELECT 1\n                           FROM StatementEntity\n                          WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                            AND StatementEntity.statementActorPersonUid = Person.personUid\n                            AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                            AND StatementEntity.resultSuccess IS NOT NULL\n                            AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 0\n                    ELSE NULL\n                    END) AS isSuccessful,\n            (\n             SELECT MAX(StatementEntity.extensionProgress)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    ) AS maxProgress,\n            (\n             SELECT MAX(StatementEntity.resultScoreScaled)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    ) AS maxScore,\n            \n            (\n        SELECT MAX(StatementEntity.timestamp)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n    ) AS mostRecentAttemptTime    \n       FROM Person\n            LEFT JOIN PersonPicture\n                 ON PersonPicture.personPictureUid = Person.personUid\n      WHERE Person.personUid IN\n            (SELECT DISTINCT StatementEntity.statementActorPersonUid\n                    \n        FROM StatementEntity\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 = StatementEntity.statementClazzUid \n                           ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                              LIMIT 1), 0)\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                /* permission check */\n                AND (    StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                      OR EXISTS(SELECT CoursePermission.cpUid\n                                  FROM CoursePermission\n                                 WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n                                   AND (   CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                        OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n                                   AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n                                   AND NOT CoursePermission.cpIsDeleted)\n                      OR (\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                          128\n                          \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    ))\n    )      \n            AND (   ? = '%' \n                 OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n     ORDER BY \n    CASE \n        WHEN ? = 5 THEN (\n             SELECT MAX(StatementEntity.resultScoreScaled)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    )\n        WHEN ? = 7 THEN (\n             SELECT MAX(StatementEntity.extensionProgress)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    )\n        WHEN ? = 9 THEN (\n        SELECT MAX(StatementEntity.timestamp)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n    )\n        ELSE 0\n    END ASC,\n    CASE \n        WHEN ? = 1 THEN Person.firstNames\n        WHEN ? = 3 THEN Person.lastName\n        ELSE ''\n    END ASC,    \n    CASE \n        WHEN ? = 6 THEN (\n             SELECT MAX(StatementEntity.resultScoreScaled)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    )\n        WHEN ? = 8 THEN (\n             SELECT MAX(StatementEntity.extensionProgress)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    )\n        WHEN ? = 10 THEN (\n        SELECT MAX(StatementEntity.timestamp)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n    )\n        ELSE 0\n    END DESC,\n    CASE\n        WHEN ? = 2 THEN Person.firstNames\n        WHEN ? = 4 THEN Person.lastName\n    END DESC    \n) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n     SELECT Person.*, PersonPicture.*,\n            (SELECT COUNT(*)\n               FROM (SELECT DISTINCT StatementEntity.contextRegistrationHi, StatementEntity.contextRegistrationLo\n                       FROM StatementEntity\n                      WHERE StatementEntity.statementContentEntryUid = ?\n                        AND StatementEntity.statementActorPersonUid = Person.personUid\n                    ) AS DistinctRegistrations) AS numAttempts,\n            (SELECT EXISTS(\n                    SELECT 1\n                      FROM StatementEntity\n                     WHERE StatementEntity.statementContentEntryUid = ?\n                       AND StatementEntity.statementActorPersonUid = Person.personUid\n                       AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                       AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1)) AS isCompleted,\n            (SELECT CASE\n                    WHEN EXISTS(\n                         SELECT 1\n                           FROM StatementEntity\n                          WHERE StatementEntity.statementContentEntryUid = ?\n                            AND StatementEntity.statementActorPersonUid = Person.personUid\n                            AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                            AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n                    WHEN EXISTS(\n                         SELECT 1\n                           FROM StatementEntity\n                          WHERE StatementEntity.statementContentEntryUid = ?\n                            AND StatementEntity.statementActorPersonUid = Person.personUid\n                            AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                            AND StatementEntity.resultSuccess IS NOT NULL\n                            AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 0\n                    ELSE NULL\n                    END) AS isSuccessful,\n            (\n             SELECT MAX(StatementEntity.extensionProgress)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = ?\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    ) AS maxProgress,\n            (\n             SELECT MAX(StatementEntity.resultScoreScaled)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = ?\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    ) AS maxScore,\n            \n            (\n        SELECT MAX(StatementEntity.timestamp)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = ?\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n    ) AS mostRecentAttemptTime    \n       FROM Person\n            LEFT JOIN PersonPicture\n                 ON PersonPicture.personPictureUid = Person.personUid\n      WHERE Person.personUid IN\n            (SELECT DISTINCT StatementEntity.statementActorPersonUid\n                    \n        FROM StatementEntity\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 = StatementEntity.statementClazzUid \n                           ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                              LIMIT 1), 0)\n              WHERE StatementEntity.statementContentEntryUid = ?\n                /* permission check */\n                AND (    StatementEntity.statementActorPersonUid = ?\n                      OR EXISTS(SELECT CoursePermission.cpUid\n                                  FROM CoursePermission\n                                 WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n                                   AND (   CoursePermission.cpToPersonUid = ? \n                                        OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n                                   AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n                                   AND NOT CoursePermission.cpIsDeleted)\n                      OR (\n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n    \n                          128\n                          \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    ))\n    )      \n            AND (   ? = '%' \n                 OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n     ORDER BY \n    CASE \n        WHEN ? = 5 THEN (\n             SELECT MAX(StatementEntity.resultScoreScaled)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = ?\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    )\n        WHEN ? = 7 THEN (\n             SELECT MAX(StatementEntity.extensionProgress)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = ?\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    )\n        WHEN ? = 9 THEN (\n        SELECT MAX(StatementEntity.timestamp)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = ?\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n    )\n        ELSE 0\n    END ASC,\n    CASE \n        WHEN ? = 1 THEN Person.firstNames\n        WHEN ? = 3 THEN Person.lastName\n        ELSE ''\n    END ASC,    \n    CASE \n        WHEN ? = 6 THEN (\n             SELECT MAX(StatementEntity.resultScoreScaled)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = ?\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    )\n        WHEN ? = 8 THEN (\n             SELECT MAX(StatementEntity.extensionProgress)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = ?\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n                AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n    )\n        WHEN ? = 10 THEN (\n        SELECT MAX(StatementEntity.timestamp)\n               FROM StatementEntity\n              WHERE StatementEntity.statementContentEntryUid = ?\n                AND StatementEntity.statementActorPersonUid = Person.personUid\n    )\n        ELSE 0\n    END DESC,\n    CASE\n        WHEN ? = 2 THEN Person.firstNames\n        WHEN ? = 4 THEN Person.lastName\n    END DESC    \n) AS _PagingCount\n", true);
    return prepareAndUseStatementAsync(this.njn_1.djm_1, tmp, StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda_0(this.ojn_1, this.pjn_1, this.qjn_1, this.rjn_1, null), $completion);
  };
  function StatementDao_JdbcImpl$findSessionsByPersonAndContent$1(this$0, $contentEntryUid, $personUid, $accountPersonUid, $sortOrder) {
    this.zjn_1 = this$0;
    this.ajo_1 = $contentEntryUid;
    this.bjo_1 = $personUid;
    this.cjo_1 = $accountPersonUid;
    this.djo_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', 'StatementEntity', 'CoursePermission'];
    DoorLimitOffsetPagingSource.call(this, this$0.djm_1, tmp$ret$2);
  }
  protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$1).ejo = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig('SELECT * FROM (\n WITH \n             DistinctRegistrationUids(contextRegistrationHi, contextRegistrationLo, statementClazzUid) AS (\n      SELECT DISTINCT StatementEntity.contextRegistrationHi, \n                     StatementEntity.contextRegistrationLo,\n                     StatementEntity.statementClazzUid\n                 FROM StatementEntity\n                WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                  AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT))\n    ,\n      SessionsByPerson(contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration) AS (\n       SELECT DistinctRegistrationUids.contextRegistrationHi AS contextRegistrationHi,\n              DistinctRegistrationUids.contextRegistrationLo AS contextRegistrationLo,\n              (SELECT MIN(StatementEntity.timestamp)\n                 FROM StatementEntity\n                WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                  AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                  AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                  AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n              ) AS timeStarted,\n              \n              (SELECT MAX(StatementEntity.extensionProgress)\n                 FROM StatementEntity\n                WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                  AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                  AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                  AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                  AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n               ) AS maxProgress,\n               \n              (SELECT MAX(StatementEntity.resultScoreScaled)\n                 FROM StatementEntity\n                WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                  AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                  AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                  AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                  AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n               ) AS maxScore,\n               \n              (SELECT EXISTS(\n                      SELECT 1 \n                        FROM StatementEntity\n                       WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                         AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                         AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                         AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                         AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                         AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n              )) AS isCompleted,\n              (SELECT CASE \n                      WHEN EXISTS(\n                           SELECT 1 \n                             FROM StatementEntity\n                            WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                              AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                              AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                              AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                              AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n                      WHEN EXISTS(\n                           SELECT 1 \n                             FROM StatementEntity\n                            WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                              AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                              AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                              AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                              AND StatementEntity.resultSuccess IS NOT NULL\n                              AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0) THEN 0\n                      ELSE NULL\n                      END) AS isSuccessful,\n                      (SELECT MAX(StatementEntity.resultDuration)\n                         FROM StatementEntity\n                        WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                          AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                          AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                          AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)) AS resultDuration\n         FROM DistinctRegistrationUids\n         WHERE (\n            CAST(? AS BIGINT) = CAST(? AS BIGINT) \n                OR EXISTS(\n                    SELECT CoursePermission.cpUid\n                      FROM CoursePermission\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 = DistinctRegistrationUids.statementClazzUid \n                                  ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0)\n                     WHERE CoursePermission.cpClazzUid = DistinctRegistrationUids.statementClazzUid\n                       AND (   CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                            OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n                       AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n                       AND NOT CoursePermission.cpIsDeleted)\n                OR (\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                    128\n                    \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    )\n    )) \n      SELECT SessionsByPerson.*\n        FROM SessionsByPerson\n    ORDER BY  \n        CASE ?\n            WHEN 1 THEN timeStarted\n            ELSE NULL\n        END DESC,\n        CASE ?\n            WHEN 2 THEN timeStarted\n            ELSE NULL\n        END ASC,\n        CASE ?\n            WHEN 4 THEN maxScore\n            ELSE NULL\n        END DESC,\n        CASE ?\n            WHEN 3 THEN maxScore\n            ELSE NULL\n        END ASC,\n        CASE ?\n            WHEN 6 THEN maxProgress\n            ELSE NULL\n        END DESC,\n        CASE ?\n            WHEN 5 THEN maxProgress\n            ELSE NULL\n        END ASC\n   ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n WITH \n             DistinctRegistrationUids(contextRegistrationHi, contextRegistrationLo, statementClazzUid) AS (\n      SELECT DISTINCT StatementEntity.contextRegistrationHi, \n                     StatementEntity.contextRegistrationLo,\n                     StatementEntity.statementClazzUid\n                 FROM StatementEntity\n                WHERE StatementEntity.statementContentEntryUid = ?\n                  AND StatementEntity.statementActorPersonUid = ?)\n    ,\n      SessionsByPerson(contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration) AS (\n       SELECT DistinctRegistrationUids.contextRegistrationHi AS contextRegistrationHi,\n              DistinctRegistrationUids.contextRegistrationLo AS contextRegistrationLo,\n              (SELECT MIN(StatementEntity.timestamp)\n                 FROM StatementEntity\n                WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                  AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                  AND StatementEntity.statementActorPersonUid = ?\n                  AND StatementEntity.statementContentEntryUid = ?\n              ) AS timeStarted,\n              \n              (SELECT MAX(StatementEntity.extensionProgress)\n                 FROM StatementEntity\n                WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                  AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                  AND StatementEntity.statementActorPersonUid = ?\n                  AND StatementEntity.statementContentEntryUid = ?\n                  AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n               ) AS maxProgress,\n               \n              (SELECT MAX(StatementEntity.resultScoreScaled)\n                 FROM StatementEntity\n                WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                  AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                  AND StatementEntity.statementActorPersonUid = ?\n                  AND StatementEntity.statementContentEntryUid = ?\n                  AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n               ) AS maxScore,\n               \n              (SELECT EXISTS(\n                      SELECT 1 \n                        FROM StatementEntity\n                       WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                         AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                         AND StatementEntity.statementActorPersonUid = ?\n                         AND StatementEntity.statementContentEntryUid = ?\n                         AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                         AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n              )) AS isCompleted,\n              (SELECT CASE \n                      WHEN EXISTS(\n                           SELECT 1 \n                             FROM StatementEntity\n                            WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                              AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                              AND StatementEntity.statementActorPersonUid = ?\n                              AND StatementEntity.statementContentEntryUid = ?\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                              AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n                      WHEN EXISTS(\n                           SELECT 1 \n                             FROM StatementEntity\n                            WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                              AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                              AND StatementEntity.statementActorPersonUid = ?\n                              AND StatementEntity.statementContentEntryUid = ?\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                              AND StatementEntity.resultSuccess IS NOT NULL\n                              AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0) THEN 0\n                      ELSE NULL\n                      END) AS isSuccessful,\n                      (SELECT MAX(StatementEntity.resultDuration)\n                         FROM StatementEntity\n                        WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                          AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                          AND StatementEntity.statementActorPersonUid = ?\n                          AND StatementEntity.statementContentEntryUid = ?) AS resultDuration\n         FROM DistinctRegistrationUids\n         WHERE (\n            ? = ? \n                OR EXISTS(\n                    SELECT CoursePermission.cpUid\n                      FROM CoursePermission\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 = DistinctRegistrationUids.statementClazzUid \n                                  ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0)\n                     WHERE CoursePermission.cpClazzUid = DistinctRegistrationUids.statementClazzUid\n                       AND (   CoursePermission.cpToPersonUid = ? \n                            OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n                       AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n                       AND NOT CoursePermission.cpIsDeleted)\n                OR (\n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n    \n                    128\n                    \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    )\n    )) \n      SELECT SessionsByPerson.*\n        FROM SessionsByPerson\n    ORDER BY  \n        CASE ?\n            WHEN 1 THEN timeStarted\n            ELSE NULL\n        END DESC,\n        CASE ?\n            WHEN 2 THEN timeStarted\n            ELSE NULL\n        END ASC,\n        CASE ?\n            WHEN 4 THEN maxScore\n            ELSE NULL\n        END DESC,\n        CASE ?\n            WHEN 3 THEN maxScore\n            ELSE NULL\n        END ASC,\n        CASE ?\n            WHEN 6 THEN maxProgress\n            ELSE NULL\n        END DESC,\n        CASE ?\n            WHEN 5 THEN maxProgress\n            ELSE NULL\n        END ASC\n   ) AS _PagingData LIMIT ? OFFSET ?\n', true);
    return prepareAndUseStatementAsync(this.zjn_1.djm_1, tmp, StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda_0(this.ajo_1, this.bjo_1, this.cjo_1, this.djo_1, _limit, _offset, null), $completion);
  };
  protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$1).w5p = function (_limit, _offset, $completion) {
    return this.ejo(_limit, _offset, $completion);
  };
  protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$1).q5r = function ($completion) {
    var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n WITH \n             DistinctRegistrationUids(contextRegistrationHi, contextRegistrationLo, statementClazzUid) AS (\n      SELECT DISTINCT StatementEntity.contextRegistrationHi, \n                     StatementEntity.contextRegistrationLo,\n                     StatementEntity.statementClazzUid\n                 FROM StatementEntity\n                WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                  AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT))\n    ,\n      SessionsByPerson(contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration) AS (\n       SELECT DistinctRegistrationUids.contextRegistrationHi AS contextRegistrationHi,\n              DistinctRegistrationUids.contextRegistrationLo AS contextRegistrationLo,\n              (SELECT MIN(StatementEntity.timestamp)\n                 FROM StatementEntity\n                WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                  AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                  AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                  AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n              ) AS timeStarted,\n              \n              (SELECT MAX(StatementEntity.extensionProgress)\n                 FROM StatementEntity\n                WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                  AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                  AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                  AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                  AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n               ) AS maxProgress,\n               \n              (SELECT MAX(StatementEntity.resultScoreScaled)\n                 FROM StatementEntity\n                WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                  AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                  AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                  AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                  AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n               ) AS maxScore,\n               \n              (SELECT EXISTS(\n                      SELECT 1 \n                        FROM StatementEntity\n                       WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                         AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                         AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                         AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                         AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                         AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n              )) AS isCompleted,\n              (SELECT CASE \n                      WHEN EXISTS(\n                           SELECT 1 \n                             FROM StatementEntity\n                            WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                              AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                              AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                              AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                              AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n                      WHEN EXISTS(\n                           SELECT 1 \n                             FROM StatementEntity\n                            WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                              AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                              AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                              AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                              AND StatementEntity.resultSuccess IS NOT NULL\n                              AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0) THEN 0\n                      ELSE NULL\n                      END) AS isSuccessful,\n                      (SELECT MAX(StatementEntity.resultDuration)\n                         FROM StatementEntity\n                        WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                          AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                          AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                          AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)) AS resultDuration\n         FROM DistinctRegistrationUids\n         WHERE (\n            CAST(? AS BIGINT) = CAST(? AS BIGINT) \n                OR EXISTS(\n                    SELECT CoursePermission.cpUid\n                      FROM CoursePermission\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 = DistinctRegistrationUids.statementClazzUid \n                                  ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0)\n                     WHERE CoursePermission.cpClazzUid = DistinctRegistrationUids.statementClazzUid\n                       AND (   CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                            OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n                       AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n                       AND NOT CoursePermission.cpIsDeleted)\n                OR (\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                    128\n                    \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    )\n    )) \n      SELECT SessionsByPerson.*\n        FROM SessionsByPerson\n    ORDER BY  \n        CASE ?\n            WHEN 1 THEN timeStarted\n            ELSE NULL\n        END DESC,\n        CASE ?\n            WHEN 2 THEN timeStarted\n            ELSE NULL\n        END ASC,\n        CASE ?\n            WHEN 4 THEN maxScore\n            ELSE NULL\n        END DESC,\n        CASE ?\n            WHEN 3 THEN maxScore\n            ELSE NULL\n        END ASC,\n        CASE ?\n            WHEN 6 THEN maxProgress\n            ELSE NULL\n        END DESC,\n        CASE ?\n            WHEN 5 THEN maxProgress\n            ELSE NULL\n        END ASC\n   ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n WITH \n             DistinctRegistrationUids(contextRegistrationHi, contextRegistrationLo, statementClazzUid) AS (\n      SELECT DISTINCT StatementEntity.contextRegistrationHi, \n                     StatementEntity.contextRegistrationLo,\n                     StatementEntity.statementClazzUid\n                 FROM StatementEntity\n                WHERE StatementEntity.statementContentEntryUid = ?\n                  AND StatementEntity.statementActorPersonUid = ?)\n    ,\n      SessionsByPerson(contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration) AS (\n       SELECT DistinctRegistrationUids.contextRegistrationHi AS contextRegistrationHi,\n              DistinctRegistrationUids.contextRegistrationLo AS contextRegistrationLo,\n              (SELECT MIN(StatementEntity.timestamp)\n                 FROM StatementEntity\n                WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                  AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                  AND StatementEntity.statementActorPersonUid = ?\n                  AND StatementEntity.statementContentEntryUid = ?\n              ) AS timeStarted,\n              \n              (SELECT MAX(StatementEntity.extensionProgress)\n                 FROM StatementEntity\n                WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                  AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                  AND StatementEntity.statementActorPersonUid = ?\n                  AND StatementEntity.statementContentEntryUid = ?\n                  AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n               ) AS maxProgress,\n               \n              (SELECT MAX(StatementEntity.resultScoreScaled)\n                 FROM StatementEntity\n                WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                  AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                  AND StatementEntity.statementActorPersonUid = ?\n                  AND StatementEntity.statementContentEntryUid = ?\n                  AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n               ) AS maxScore,\n               \n              (SELECT EXISTS(\n                      SELECT 1 \n                        FROM StatementEntity\n                       WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                         AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                         AND StatementEntity.statementActorPersonUid = ?\n                         AND StatementEntity.statementContentEntryUid = ?\n                         AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                         AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n              )) AS isCompleted,\n              (SELECT CASE \n                      WHEN EXISTS(\n                           SELECT 1 \n                             FROM StatementEntity\n                            WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                              AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                              AND StatementEntity.statementActorPersonUid = ?\n                              AND StatementEntity.statementContentEntryUid = ?\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                              AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n                      WHEN EXISTS(\n                           SELECT 1 \n                             FROM StatementEntity\n                            WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                              AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                              AND StatementEntity.statementActorPersonUid = ?\n                              AND StatementEntity.statementContentEntryUid = ?\n                              AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n                              AND StatementEntity.resultSuccess IS NOT NULL\n                              AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0) THEN 0\n                      ELSE NULL\n                      END) AS isSuccessful,\n                      (SELECT MAX(StatementEntity.resultDuration)\n                         FROM StatementEntity\n                        WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n                          AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n                          AND StatementEntity.statementActorPersonUid = ?\n                          AND StatementEntity.statementContentEntryUid = ?) AS resultDuration\n         FROM DistinctRegistrationUids\n         WHERE (\n            ? = ? \n                OR EXISTS(\n                    SELECT CoursePermission.cpUid\n                      FROM CoursePermission\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 = DistinctRegistrationUids.statementClazzUid \n                                  ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                                     LIMIT 1), 0)\n                     WHERE CoursePermission.cpClazzUid = DistinctRegistrationUids.statementClazzUid\n                       AND (   CoursePermission.cpToPersonUid = ? \n                            OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n                       AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n                       AND NOT CoursePermission.cpIsDeleted)\n                OR (\n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n    \n                    128\n                    \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    )\n    )) \n      SELECT SessionsByPerson.*\n        FROM SessionsByPerson\n    ORDER BY  \n        CASE ?\n            WHEN 1 THEN timeStarted\n            ELSE NULL\n        END DESC,\n        CASE ?\n            WHEN 2 THEN timeStarted\n            ELSE NULL\n        END ASC,\n        CASE ?\n            WHEN 4 THEN maxScore\n            ELSE NULL\n        END DESC,\n        CASE ?\n            WHEN 3 THEN maxScore\n            ELSE NULL\n        END ASC,\n        CASE ?\n            WHEN 6 THEN maxProgress\n            ELSE NULL\n        END DESC,\n        CASE ?\n            WHEN 5 THEN maxProgress\n            ELSE NULL\n        END ASC\n   ) AS _PagingCount\n', true);
    return prepareAndUseStatementAsync(this.zjn_1.djm_1, tmp, StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda_0(this.ajo_1, this.bjo_1, this.cjo_1, this.djo_1, null), $completion);
  };
  function StatementDao_JdbcImpl$findStatementsBySession$1(this$0, $accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder) {
    this.ljo_1 = this$0;
    this.mjo_1 = $accountPersonUid;
    this.njo_1 = $registrationHi;
    this.ojo_1 = $registrationLo;
    this.pjo_1 = $selectedPersonUid;
    this.qjo_1 = $contentEntryUid;
    this.rjo_1 = $searchText;
    this.sjo_1 = $deSelectedVerbUids;
    this.tjo_1 = $sortOrder;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = ['SystemPermission', 'ActivityEntity', 'VerbEntity', 'ActivityLangMapEntry', 'ClazzEnrolment', 'VerbLangMapEntry', 'StatementEntity', 'CoursePermission'];
    DoorLimitOffsetPagingSource.call(this, this$0.djm_1, tmp$ret$2);
  }
  protoOf(StatementDao_JdbcImpl$findStatementsBySession$1).ujo = function (_limit, _offset, $completion) {
    var tmp = new PreparedStatementConfig("SELECT * FROM (\n    SELECT StatementEntity.*, VerbEntity.*, VerbLangMapEntry.*, ActivityEntity.*,\n           ActivityLangMapEntry.*,\n           ActivityLangMapDescription.almeValue AS statementActivityDescription\n    FROM StatementEntity\n    LEFT JOIN VerbEntity\n        ON StatementEntity.statementVerbUid = VerbEntity.verbUid\n    LEFT JOIN VerbLangMapEntry \n        ON (VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash) = \n            (SELECT VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash\n            FROM VerbLangMapEntry\n            WHERE VerbLangMapEntry.vlmeVerbUid = VerbEntity.verbUid\n            ORDER BY VerbLangMapEntry.vlmeLastModified DESC\n            LIMIT 1)\n    LEFT JOIN ActivityEntity\n              ON ActivityEntity.actUid = StatementEntity.statementObjectUid1\n    LEFT JOIN ActivityLangMapEntry\n              ON (ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash) = \n                 (SELECT ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash\n                    FROM ActivityLangMapEntry\n                   WHERE ActivityLangMapEntry.almeActivityUid = StatementEntity.statementObjectUid1\n                     AND ActivityLangMapEntry.almePropName = 'name'\n                   LIMIT 1)\n    LEFT JOIN ActivityLangMapEntry ActivityLangMapDescription\n              ON (ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash) = \n                 (SELECT ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash\n                    FROM ActivityLangMapEntry ActivityLangMapDescription\n                   WHERE ActivityLangMapDescription.almeActivityUid = StatementEntity.statementObjectUid1\n                     AND ActivityLangMapDescription.almePropName = 'description'\n                   LIMIT 1)\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 = StatementEntity.statementClazzUid \n                ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                LIMIT 1), 0)\n    WHERE StatementEntity.contextRegistrationHi = CAST(? AS BIGINT)\n    AND StatementEntity.contextRegistrationLo = CAST(? AS BIGINT)  \n    AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n    AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n    AND (? = '%' OR VerbEntity.verbUrlId LIKE ?)\n    AND StatementEntity.statementVerbUid NOT IN (?)\n    /* Permission check */\n    AND (\n        CAST(? AS BIGINT) = CAST(? AS BIGINT) \n        OR EXISTS(\n            SELECT CoursePermission.cpUid\n            FROM CoursePermission\n            WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n            AND (\n                CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole\n            )\n            AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n            AND NOT CoursePermission.cpIsDeleted\n        )\n        OR (\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            128\n            \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    \n        )\n    )\n    ORDER BY \n    CASE ?\n        WHEN 1 THEN StatementEntity.timestamp\n        ELSE NULL\n    END DESC,\n    CASE ?\n        WHEN 2 THEN StatementEntity.timestamp\n        ELSE NULL\n    END ASC,\n    CASE ?\n        WHEN 3 THEN StatementEntity.resultScoreRaw\n        ELSE NULL\n    END DESC,\n    CASE ?\n        WHEN 4 THEN StatementEntity.resultScoreRaw\n        ELSE NULL\n    END ASC\n) AS _PagingData LIMIT ? OFFSET ?", true, VOID, VOID, "SELECT * FROM (\n    SELECT StatementEntity.*, VerbEntity.*, VerbLangMapEntry.*, ActivityEntity.*,\n           ActivityLangMapEntry.*,\n           ActivityLangMapDescription.almeValue AS statementActivityDescription\n    FROM StatementEntity\n    LEFT JOIN VerbEntity\n        ON StatementEntity.statementVerbUid = VerbEntity.verbUid\n    LEFT JOIN VerbLangMapEntry \n        ON (VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash) = \n            (SELECT VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash\n            FROM VerbLangMapEntry\n            WHERE VerbLangMapEntry.vlmeVerbUid = VerbEntity.verbUid\n            ORDER BY VerbLangMapEntry.vlmeLastModified DESC\n            LIMIT 1)\n    LEFT JOIN ActivityEntity\n              ON ActivityEntity.actUid = StatementEntity.statementObjectUid1\n    LEFT JOIN ActivityLangMapEntry\n              ON (ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash) = \n                 (SELECT ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash\n                    FROM ActivityLangMapEntry\n                   WHERE ActivityLangMapEntry.almeActivityUid = StatementEntity.statementObjectUid1\n                     AND ActivityLangMapEntry.almePropName = 'name'\n                   LIMIT 1)\n    LEFT JOIN ActivityLangMapEntry ActivityLangMapDescription\n              ON (ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash) = \n                 (SELECT ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash\n                    FROM ActivityLangMapEntry ActivityLangMapDescription\n                   WHERE ActivityLangMapDescription.almeActivityUid = StatementEntity.statementObjectUid1\n                     AND ActivityLangMapDescription.almePropName = 'description'\n                   LIMIT 1)\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 = StatementEntity.statementClazzUid \n                ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                LIMIT 1), 0)\n    WHERE StatementEntity.contextRegistrationHi = ?\n    AND StatementEntity.contextRegistrationLo = ?  \n    AND StatementEntity.statementActorPersonUid = ?\n    AND StatementEntity.statementContentEntryUid = ?\n    AND (? = '%' OR VerbEntity.verbUrlId LIKE ?)\n    AND StatementEntity.statementVerbUid NOT IN (?)\n    /* Permission check */\n    AND (\n        ? = ? \n        OR EXISTS(\n            SELECT CoursePermission.cpUid\n            FROM CoursePermission\n            WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n            AND (\n                CoursePermission.cpToPersonUid = ? \n                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole\n            )\n            AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n            AND NOT CoursePermission.cpIsDeleted\n        )\n        OR (\n            \n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n    \n            128\n            \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    \n        )\n    )\n    ORDER BY \n    CASE ?\n        WHEN 1 THEN StatementEntity.timestamp\n        ELSE NULL\n    END DESC,\n    CASE ?\n        WHEN 2 THEN StatementEntity.timestamp\n        ELSE NULL\n    END ASC,\n    CASE ?\n        WHEN 3 THEN StatementEntity.resultScoreRaw\n        ELSE NULL\n    END DESC,\n    CASE ?\n        WHEN 4 THEN StatementEntity.resultScoreRaw\n        ELSE NULL\n    END ASC\n) AS _PagingData LIMIT ? OFFSET ?\n", true);
    return prepareAndUseStatementAsync(this.ljo_1.djm_1, tmp, StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda_0(this.mjo_1, this.njo_1, this.ojo_1, this.pjo_1, this.qjo_1, this.rjo_1, this.sjo_1, this.tjo_1, _limit, _offset, null), $completion);
  };
  protoOf(StatementDao_JdbcImpl$findStatementsBySession$1).w5p = function (_limit, _offset, $completion) {
    return this.ujo(_limit, _offset, $completion);
  };
  protoOf(StatementDao_JdbcImpl$findStatementsBySession$1).q5r = function ($completion) {
    var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n    SELECT StatementEntity.*, VerbEntity.*, VerbLangMapEntry.*, ActivityEntity.*,\n           ActivityLangMapEntry.*,\n           ActivityLangMapDescription.almeValue AS statementActivityDescription\n    FROM StatementEntity\n    LEFT JOIN VerbEntity\n        ON StatementEntity.statementVerbUid = VerbEntity.verbUid\n    LEFT JOIN VerbLangMapEntry \n        ON (VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash) = \n            (SELECT VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash\n            FROM VerbLangMapEntry\n            WHERE VerbLangMapEntry.vlmeVerbUid = VerbEntity.verbUid\n            ORDER BY VerbLangMapEntry.vlmeLastModified DESC\n            LIMIT 1)\n    LEFT JOIN ActivityEntity\n              ON ActivityEntity.actUid = StatementEntity.statementObjectUid1\n    LEFT JOIN ActivityLangMapEntry\n              ON (ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash) = \n                 (SELECT ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash\n                    FROM ActivityLangMapEntry\n                   WHERE ActivityLangMapEntry.almeActivityUid = StatementEntity.statementObjectUid1\n                     AND ActivityLangMapEntry.almePropName = 'name'\n                   LIMIT 1)\n    LEFT JOIN ActivityLangMapEntry ActivityLangMapDescription\n              ON (ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash) = \n                 (SELECT ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash\n                    FROM ActivityLangMapEntry ActivityLangMapDescription\n                   WHERE ActivityLangMapDescription.almeActivityUid = StatementEntity.statementObjectUid1\n                     AND ActivityLangMapDescription.almePropName = 'description'\n                   LIMIT 1)\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 = StatementEntity.statementClazzUid \n                ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                LIMIT 1), 0)\n    WHERE StatementEntity.contextRegistrationHi = CAST(? AS BIGINT)\n    AND StatementEntity.contextRegistrationLo = CAST(? AS BIGINT)  \n    AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n    AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n    AND (? = '%' OR VerbEntity.verbUrlId LIKE ?)\n    AND StatementEntity.statementVerbUid NOT IN (?)\n    /* Permission check */\n    AND (\n        CAST(? AS BIGINT) = CAST(? AS BIGINT) \n        OR EXISTS(\n            SELECT CoursePermission.cpUid\n            FROM CoursePermission\n            WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n            AND (\n                CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole\n            )\n            AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n            AND NOT CoursePermission.cpIsDeleted\n        )\n        OR (\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            128\n            \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    \n        )\n    )\n    ORDER BY \n    CASE ?\n        WHEN 1 THEN StatementEntity.timestamp\n        ELSE NULL\n    END DESC,\n    CASE ?\n        WHEN 2 THEN StatementEntity.timestamp\n        ELSE NULL\n    END ASC,\n    CASE ?\n        WHEN 3 THEN StatementEntity.resultScoreRaw\n        ELSE NULL\n    END DESC,\n    CASE ?\n        WHEN 4 THEN StatementEntity.resultScoreRaw\n        ELSE NULL\n    END ASC\n) AS _PagingCount", true, VOID, VOID, "SELECT COUNT(*) FROM (\n    SELECT StatementEntity.*, VerbEntity.*, VerbLangMapEntry.*, ActivityEntity.*,\n           ActivityLangMapEntry.*,\n           ActivityLangMapDescription.almeValue AS statementActivityDescription\n    FROM StatementEntity\n    LEFT JOIN VerbEntity\n        ON StatementEntity.statementVerbUid = VerbEntity.verbUid\n    LEFT JOIN VerbLangMapEntry \n        ON (VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash) = \n            (SELECT VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash\n            FROM VerbLangMapEntry\n            WHERE VerbLangMapEntry.vlmeVerbUid = VerbEntity.verbUid\n            ORDER BY VerbLangMapEntry.vlmeLastModified DESC\n            LIMIT 1)\n    LEFT JOIN ActivityEntity\n              ON ActivityEntity.actUid = StatementEntity.statementObjectUid1\n    LEFT JOIN ActivityLangMapEntry\n              ON (ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash) = \n                 (SELECT ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash\n                    FROM ActivityLangMapEntry\n                   WHERE ActivityLangMapEntry.almeActivityUid = StatementEntity.statementObjectUid1\n                     AND ActivityLangMapEntry.almePropName = 'name'\n                   LIMIT 1)\n    LEFT JOIN ActivityLangMapEntry ActivityLangMapDescription\n              ON (ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash) = \n                 (SELECT ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash\n                    FROM ActivityLangMapEntry ActivityLangMapDescription\n                   WHERE ActivityLangMapDescription.almeActivityUid = StatementEntity.statementObjectUid1\n                     AND ActivityLangMapDescription.almePropName = 'description'\n                   LIMIT 1)\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 = StatementEntity.statementClazzUid \n                ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                LIMIT 1), 0)\n    WHERE StatementEntity.contextRegistrationHi = ?\n    AND StatementEntity.contextRegistrationLo = ?  \n    AND StatementEntity.statementActorPersonUid = ?\n    AND StatementEntity.statementContentEntryUid = ?\n    AND (? = '%' OR VerbEntity.verbUrlId LIKE ?)\n    AND StatementEntity.statementVerbUid NOT IN (?)\n    /* Permission check */\n    AND (\n        ? = ? \n        OR EXISTS(\n            SELECT CoursePermission.cpUid\n            FROM CoursePermission\n            WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n            AND (\n                CoursePermission.cpToPersonUid = ? \n                OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole\n            )\n            AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n            AND NOT CoursePermission.cpIsDeleted\n        )\n        OR (\n            \n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n    \n            128\n            \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    \n        )\n    )\n    ORDER BY \n    CASE ?\n        WHEN 1 THEN StatementEntity.timestamp\n        ELSE NULL\n    END DESC,\n    CASE ?\n        WHEN 2 THEN StatementEntity.timestamp\n        ELSE NULL\n    END ASC,\n    CASE ?\n        WHEN 3 THEN StatementEntity.resultScoreRaw\n        ELSE NULL\n    END DESC,\n    CASE ?\n        WHEN 4 THEN StatementEntity.resultScoreRaw\n        ELSE NULL\n    END ASC\n) AS _PagingCount\n", true);
    return prepareAndUseStatementAsync(this.ljo_1.djm_1, tmp, StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda_0(this.mjo_1, this.njo_1, this.ojo_1, this.pjo_1, this.qjo_1, this.rjo_1, this.sjo_1, this.tjo_1, null), $completion);
  };
  function StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda(this$0, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation) {
    this.djp_1 = this$0;
    this.ejp_1 = $registrationHi;
    this.fjp_1 = $registrationLo;
    this.gjp_1 = $selectedPersonUid;
    this.hjp_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda).ijp = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda).m78 = function ($completion) {
    return this.ijp($completion);
  };
  protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda).ud = function () {
    var 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 DistinctVerbUrls(statementVerbUid) AS (\n        SELECT DISTINCT StatementEntity.statementVerbUid\n        FROM StatementEntity\n        WHERE StatementEntity.contextRegistrationHi = CAST(? AS BIGINT)\n            AND StatementEntity.contextRegistrationLo = CAST(? AS BIGINT)\n            AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n            AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n    )\n    \n    SELECT VerbEntity.*,\n           VerbLangMapEntry.*\n    FROM DistinctVerbUrls\n         JOIN VerbEntity \n              ON VerbEntity.verbUid = DistinctVerbUrls.statementVerbUid\n         LEFT JOIN VerbLangMapEntry\n                  ON (VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash) = \n                     (SELECT VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash\n                      FROM VerbLangMapEntry\n                      WHERE VerbLangMapEntry.vlmeVerbUid = DistinctVerbUrls.statementVerbUid\n                      ORDER BY VerbLangMapEntry.vlmeLastModified DESC\n                      LIMIT 1)\n', VOID, VOID, VOID, '\n    WITH DistinctVerbUrls(statementVerbUid) AS (\n        SELECT DISTINCT StatementEntity.statementVerbUid\n        FROM StatementEntity\n        WHERE StatementEntity.contextRegistrationHi = ?\n            AND StatementEntity.contextRegistrationLo = ?\n            AND StatementEntity.statementActorPersonUid = ?\n            AND StatementEntity.statementContentEntryUid = ?\n    )\n    \n    SELECT VerbEntity.*,\n           VerbLangMapEntry.*\n    FROM DistinctVerbUrls\n         JOIN VerbEntity \n              ON VerbEntity.verbUid = DistinctVerbUrls.statementVerbUid\n         LEFT JOIN VerbLangMapEntry\n                  ON (VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash) = \n                     (SELECT VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash\n                      FROM VerbLangMapEntry\n                      WHERE VerbLangMapEntry.vlmeVerbUid = DistinctVerbUrls.statementVerbUid\n                      ORDER BY VerbLangMapEntry.vlmeLastModified DESC\n                      LIMIT 1)\n\n', true);
            suspendResult = prepareAndUseStatementAsync(this.djp_1.djm_1, tmp_0, StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda_0(this.ejp_1, this.fjp_1, this.gjp_1, this.hjp_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$getUniqueVerbsForSession$slambda).l78 = function (completion) {
    return new StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda(this.djp_1, this.ejp_1, this.fjp_1, this.gjp_1, this.hjp_1, completion);
  };
  function StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda_0(this$0, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation) {
    var i = new StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda(this$0, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation);
    var l = function ($completion) {
      return i.ijp($completion);
    };
    l.$arity = 0;
    return l;
  }
  function StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda($accountPersonUid, $contentEntryUid, resultContinuation) {
    this.rjp_1 = $accountPersonUid;
    this.sjp_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda).ujp = function (_stmt, $completion) {
    var tmp = this.m5f(_stmt, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda).he = function (p1, $completion) {
    return this.ujp((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion);
  };
  protoOf(StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda).ud = function () {
    var suspendResult = this.jd_1;
    $sm: do
      try {
        var tmp = this.hd_1;
        switch (tmp) {
          case 0:
            this.id_1 = 2;
            this.tjp_1.v5h(1, this.rjp_1);
            this.tjp_1.v5h(2, this.sjp_1);
            this.tjp_1.v5h(3, this.rjp_1);
            this.tjp_1.v5h(4, this.rjp_1);
            this.tjp_1.v5h(5, this.rjp_1);
            this.tjp_1.v5h(6, this.rjp_1);
            this.tjp_1.v5h(7, this.rjp_1);
            this.tjp_1.v5h(8, this.sjp_1);
            this.tjp_1.v5h(9, this.rjp_1);
            this.tjp_1.v5h(10, this.rjp_1);
            this.tjp_1.v5h(11, this.rjp_1);
            this.tjp_1.v5h(12, this.rjp_1);
            this.hd_1 = 1;
            suspendResult = executeQueryAsyncKmp(this.tjp_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            var ARGUMENT = suspendResult;
            return useResults(ARGUMENT, StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$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$scoreOrProgressDataExistsForContent$slambda).m5f = function (_stmt, completion) {
    var i = new StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda(this.rjp_1, this.sjp_1, completion);
    i.tjp_1 = _stmt;
    return i;
  };
  function StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda_0($accountPersonUid, $contentEntryUid, resultContinuation) {
    var i = new StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda($accountPersonUid, $contentEntryUid, resultContinuation);
    var l = function (_stmt, $completion) {
      return i.ujp(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function StatementDao_JdbcImpl(_db) {
    StatementDao.call(this);
    this.djm_1 = _db;
    var tmp = this;
    tmp.ejm_1 = new StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1(this);
  }
  protoOf(StatementDao_JdbcImpl).mje = function (entityList, $completion) {
    return this.ejm_1.z5g(entityList, $completion);
  };
  protoOf(StatementDao_JdbcImpl).nje = 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.djm_1, tmp, StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda_0(studentPersonUids, clazzUid, accountPersonUid, null), $completion);
  };
  protoOf(StatementDao_JdbcImpl).oje = 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.djm_1, tmp, StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda_0(this, studentPersonUids, clazzUid, accountPersonUid, null));
  };
  protoOf(StatementDao_JdbcImpl).pje = function (contentEntryUid, accountPersonUid, searchText, sortOrder) {
    return new StatementDao_JdbcImpl$findPersonsWithAttempts$1(this, contentEntryUid, accountPersonUid, searchText, sortOrder);
  };
  protoOf(StatementDao_JdbcImpl).qje = function (contentEntryUid, personUid, accountPersonUid, sortOrder) {
    return new StatementDao_JdbcImpl$findSessionsByPersonAndContent$1(this, contentEntryUid, personUid, accountPersonUid, sortOrder);
  };
  protoOf(StatementDao_JdbcImpl).rje = function (registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids) {
    return new StatementDao_JdbcImpl$findStatementsBySession$1(this, accountPersonUid, registrationHi, registrationLo, selectedPersonUid, contentEntryUid, searchText, deSelectedVerbUids, sortOrder);
  };
  protoOf(StatementDao_JdbcImpl).sje = function (registrationHi, registrationLo, selectedPersonUid, contentEntryUid) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = ['VerbEntity', 'VerbLangMapEntry', 'StatementEntity'];
    return doorFlow(this.djm_1, tmp, StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda_0(this, registrationHi, registrationLo, selectedPersonUid, contentEntryUid, null));
  };
  protoOf(StatementDao_JdbcImpl).tje = function (contentEntryUid, accountPersonUid, $completion) {
    var tmp = new PreparedStatementConfig('\n        SELECT * \n          FROM (SELECT StatementEntity.*\n                 \n        FROM StatementEntity\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 = StatementEntity.statementClazzUid \n                           ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                              LIMIT 1), 0)\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                /* permission check */\n                AND (    StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                      OR EXISTS(SELECT CoursePermission.cpUid\n                                  FROM CoursePermission\n                                 WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n                                   AND (   CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                        OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n                                   AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n                                   AND NOT CoursePermission.cpIsDeleted)\n                      OR (\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                          128\n                          \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    ))\n    \n                   AND (     StatementEntity.extensionProgress IS NOT NULL\n                         AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                 LIMIT 1) AS ProgressStatements\n        UNION\n        SELECT * \n          FROM (SELECT StatementEntity.*\n                 \n        FROM StatementEntity\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 = StatementEntity.statementClazzUid \n                           ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                              LIMIT 1), 0)\n              WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n                /* permission check */\n                AND (    StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n                      OR EXISTS(SELECT CoursePermission.cpUid\n                                  FROM CoursePermission\n                                 WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n                                   AND (   CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n                                        OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n                                   AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n                                   AND NOT CoursePermission.cpIsDeleted)\n                      OR (\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                          128\n                          \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    ))\n    \n                   AND (     StatementEntity.resultScoreScaled IS NOT NULL\n                         AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                 LIMIT 1) AS ScoreStatements\n    ', VOID, VOID, VOID, '\n        SELECT * \n          FROM (SELECT StatementEntity.*\n                 \n        FROM StatementEntity\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 = StatementEntity.statementClazzUid \n                           ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                              LIMIT 1), 0)\n              WHERE StatementEntity.statementContentEntryUid = ?\n                /* permission check */\n                AND (    StatementEntity.statementActorPersonUid = ?\n                      OR EXISTS(SELECT CoursePermission.cpUid\n                                  FROM CoursePermission\n                                 WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n                                   AND (   CoursePermission.cpToPersonUid = ? \n                                        OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n                                   AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n                                   AND NOT CoursePermission.cpIsDeleted)\n                      OR (\n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n    \n                          128\n                          \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    ))\n    \n                   AND (     StatementEntity.extensionProgress IS NOT NULL\n                         AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                 LIMIT 1) AS ProgressStatements\n        UNION\n        SELECT * \n          FROM (SELECT StatementEntity.*\n                 \n        FROM StatementEntity\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 = StatementEntity.statementClazzUid \n                           ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC   \n                              LIMIT 1), 0)\n              WHERE StatementEntity.statementContentEntryUid = ?\n                /* permission check */\n                AND (    StatementEntity.statementActorPersonUid = ?\n                      OR EXISTS(SELECT CoursePermission.cpUid\n                                  FROM CoursePermission\n                                 WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n                                   AND (   CoursePermission.cpToPersonUid = ? \n                                        OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n                                   AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n                                   AND NOT CoursePermission.cpIsDeleted)\n                      OR (\n        EXISTS(SELECT 1\n                 FROM SystemPermission\n                WHERE ? != 0 \n                  AND SystemPermission.spToPersonUid = ?\n                  AND (SystemPermission.spPermissionsFlag &\n    \n                          128\n                          \n        ) > 0\n                  AND NOT SystemPermission.spIsDeleted)\n    ))\n    \n                   AND (     StatementEntity.resultScoreScaled IS NOT NULL\n                         AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n                 LIMIT 1) AS ScoreStatements\n    \n', true);
    return prepareAndUseStatementAsync(this.djm_1, tmp, StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda_0(accountPersonUid, contentEntryUid, null), $completion);
  };
  function StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function StatementDao_Repo$findPersonsWithAttempts$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function StatementDao_Repo$findSessionsByPersonAndContent$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function StatementDao_Repo$findStatementsBySession$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function StatementDao_Repo$getUniqueVerbsForSession$slambda$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function StatementDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entityList, resultContinuation) {
    this.djq_1 = this$0;
    this.ejq_1 = $entityList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_Repo$insertOrIgnoreListAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_Repo$insertOrIgnoreListAsync$slambda).m78 = function ($completion) {
    return this.j87($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.djq_1.hjq_1.mje(this.ejq_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).l78 = function (completion) {
    return new StatementDao_Repo$insertOrIgnoreListAsync$slambda(this.djq_1, this.ejq_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda(this$0, $clazzUid, $studentPersonUids, $accountPersonUid, resultContinuation) {
    this.ujq_1 = this$0;
    this.vjq_1 = $clazzUid;
    this.wjq_1 = $studentPersonUids;
    this.xjq_1 = $accountPersonUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda).m78 = function ($completion) {
    return this.j87($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.yjq_1 = this.ujq_1.gjq_1;
            var tmp_1 = this;
            tmp_1.zjq_1 = 'StatementDao/findStatusForStudentsInClazzAsFlow';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.ajr_1 = this.ujq_1.ijq_1;
            var tmp_3 = this;
            tmp_3.bjr_1 = this.ajr_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ujq_1.gjq_1.j39(), 'StatementDao/findStatusForStudentsInClazzAsFlow');
            doorNodeIdHeader(this_0, this.ujq_1.gjq_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'clazzUid', this.ujq_1.gjq_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.vjq_1));
            parameter(this_0, 'studentPersonUids', this.ujq_1.gjq_1.j39().x65_1.r45(ListSerializer(serializer(Companion_getInstance())), this.wjq_1));
            parameter(this_0, 'accountPersonUid', this.ujq_1.gjq_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.xjq_1));
            tmp_4.cjr_1 = this_0;
            this.cjr_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.djr_1 = this.bjr_1;
            var tmp_6 = this;
            tmp_6.ejr_1 = this.cjr_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.ejr_1, this.djr_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.fjr_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ujq_1.fjq_1, this.fjr_1, this.ujq_1.gjq_1.j39().x65_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().d5e(e, 'DoorLog', StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda$lambda(this.yjq_1, this.zjq_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).l78 = function (completion) {
    return new StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda(this.ujq_1, this.vjq_1, this.wjq_1, this.xjq_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function StatementDao_Repo$findPersonsWithAttempts$slambda(this$0, $contentEntryUid, $accountPersonUid, $searchText, $sortOrder, resultContinuation) {
    this.ojr_1 = this$0;
    this.pjr_1 = $contentEntryUid;
    this.qjr_1 = $accountPersonUid;
    this.rjr_1 = $searchText;
    this.sjr_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_Repo$findPersonsWithAttempts$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_Repo$findPersonsWithAttempts$slambda).he = function (p1, $completion) {
    return this.h86(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(StatementDao_Repo$findPersonsWithAttempts$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.vjr_1 = this.ojr_1.gjq_1;
            var tmp_1 = this;
            tmp_1.wjr_1 = 'StatementDao/findPersonsWithAttempts';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.xjr_1 = this.ojr_1.ijq_1;
            var tmp_3 = this;
            tmp_3.yjr_1 = this.xjr_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ojr_1.gjq_1.j39(), 'StatementDao/findPersonsWithAttempts');
            doorNodeIdHeader(this_0, this.ojr_1.gjq_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'contentEntryUid', this.ojr_1.gjq_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.pjr_1));
            parameter(this_0, 'accountPersonUid', this.ojr_1.gjq_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.qjr_1));
            parameter(this_0, 'searchText', this.ojr_1.gjq_1.j39().x65_1.r45(get_nullable(serializer_0(StringCompanionObject_instance)), this.rjr_1));
            parameter(this_0, 'sortOrder', this.ojr_1.gjq_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.sjr_1));
            pagingSourceLoadParameters(this_0, this.ojr_1.gjq_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.tjr_1);
            tmp_4.zjr_1 = this_0;
            this.zjr_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.ajs_1 = this.yjr_1;
            var tmp_6 = this;
            tmp_6.bjs_1 = this.zjr_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.bjs_1, this.ajs_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.cjs_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ojr_1.fjq_1, this.cjs_1, this.ojr_1.gjq_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.ujr_1 = endOfPaginationReached(this.cjs_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().d5e(e, 'DoorLog', StatementDao_Repo$findPersonsWithAttempts$slambda$lambda(this.vjr_1, this.wjr_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.ujr_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(StatementDao_Repo$findPersonsWithAttempts$slambda).i86 = function (_pagingParams, completion) {
    var i = new StatementDao_Repo$findPersonsWithAttempts$slambda(this.ojr_1, this.pjr_1, this.qjr_1, this.rjr_1, this.sjr_1, completion);
    i.tjr_1 = _pagingParams;
    return i;
  };
  function StatementDao_Repo$findPersonsWithAttempts$slambda_0(this$0, $contentEntryUid, $accountPersonUid, $searchText, $sortOrder, resultContinuation) {
    var i = new StatementDao_Repo$findPersonsWithAttempts$slambda(this$0, $contentEntryUid, $accountPersonUid, $searchText, $sortOrder, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.h86(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function StatementDao_Repo$findSessionsByPersonAndContent$slambda(this$0, $contentEntryUid, $personUid, $accountPersonUid, $sortOrder, resultContinuation) {
    this.ljs_1 = this$0;
    this.mjs_1 = $contentEntryUid;
    this.njs_1 = $personUid;
    this.ojs_1 = $accountPersonUid;
    this.pjs_1 = $sortOrder;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_Repo$findSessionsByPersonAndContent$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_Repo$findSessionsByPersonAndContent$slambda).he = function (p1, $completion) {
    return this.h86(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(StatementDao_Repo$findSessionsByPersonAndContent$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.sjs_1 = this.ljs_1.gjq_1;
            var tmp_1 = this;
            tmp_1.tjs_1 = 'StatementDao/findSessionsByPersonAndContent';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.ujs_1 = this.ljs_1.ijq_1;
            var tmp_3 = this;
            tmp_3.vjs_1 = this.ujs_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ljs_1.gjq_1.j39(), 'StatementDao/findSessionsByPersonAndContent');
            doorNodeIdHeader(this_0, this.ljs_1.gjq_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'contentEntryUid', this.ljs_1.gjq_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.mjs_1));
            parameter(this_0, 'personUid', this.ljs_1.gjq_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.njs_1));
            parameter(this_0, 'accountPersonUid', this.ljs_1.gjq_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ojs_1));
            parameter(this_0, 'sortOrder', this.ljs_1.gjq_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.pjs_1));
            pagingSourceLoadParameters(this_0, this.ljs_1.gjq_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.qjs_1);
            tmp_4.wjs_1 = this_0;
            this.wjs_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.xjs_1 = this.vjs_1;
            var tmp_6 = this;
            tmp_6.yjs_1 = this.wjs_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.yjs_1, this.xjs_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.zjs_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ljs_1.fjq_1, this.zjs_1, this.ljs_1.gjq_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.rjs_1 = endOfPaginationReached(this.zjs_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().d5e(e, 'DoorLog', StatementDao_Repo$findSessionsByPersonAndContent$slambda$lambda(this.sjs_1, this.tjs_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.rjs_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(StatementDao_Repo$findSessionsByPersonAndContent$slambda).i86 = function (_pagingParams, completion) {
    var i = new StatementDao_Repo$findSessionsByPersonAndContent$slambda(this.ljs_1, this.mjs_1, this.njs_1, this.ojs_1, this.pjs_1, completion);
    i.qjs_1 = _pagingParams;
    return i;
  };
  function StatementDao_Repo$findSessionsByPersonAndContent$slambda_0(this$0, $contentEntryUid, $personUid, $accountPersonUid, $sortOrder, resultContinuation) {
    var i = new StatementDao_Repo$findSessionsByPersonAndContent$slambda(this$0, $contentEntryUid, $personUid, $accountPersonUid, $sortOrder, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.h86(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function StatementDao_Repo$findStatementsBySession$slambda(this$0, $registrationHi, $registrationLo, $accountPersonUid, $selectedPersonUid, $contentEntryUid, $searchText, $sortOrder, $deSelectedVerbUids, resultContinuation) {
    this.ijt_1 = this$0;
    this.jjt_1 = $registrationHi;
    this.kjt_1 = $registrationLo;
    this.ljt_1 = $accountPersonUid;
    this.mjt_1 = $selectedPersonUid;
    this.njt_1 = $contentEntryUid;
    this.ojt_1 = $searchText;
    this.pjt_1 = $sortOrder;
    this.qjt_1 = $deSelectedVerbUids;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_Repo$findStatementsBySession$slambda).h86 = function (_pagingParams, $completion) {
    var tmp = this.i86(_pagingParams, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_Repo$findStatementsBySession$slambda).he = function (p1, $completion) {
    return this.h86(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion);
  };
  protoOf(StatementDao_Repo$findStatementsBySession$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.tjt_1 = this.ijt_1.gjq_1;
            var tmp_1 = this;
            tmp_1.ujt_1 = 'StatementDao/findStatementsBySession';
            this.id_1 = 4;
            var tmp_2 = this;
            tmp_2.vjt_1 = this.ijt_1.ijq_1;
            var tmp_3 = this;
            tmp_3.wjt_1 = this.vjt_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.ijt_1.gjq_1.j39(), 'StatementDao/findStatementsBySession');
            doorNodeIdHeader(this_0, this.ijt_1.gjq_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'registrationHi', this.ijt_1.gjq_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.jjt_1));
            parameter(this_0, 'registrationLo', this.ijt_1.gjq_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.kjt_1));
            parameter(this_0, 'accountPersonUid', this.ijt_1.gjq_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.ljt_1));
            parameter(this_0, 'selectedPersonUid', this.ijt_1.gjq_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.mjt_1));
            parameter(this_0, 'contentEntryUid', this.ijt_1.gjq_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.njt_1));
            parameter(this_0, 'searchText', this.ijt_1.gjq_1.j39().x65_1.r45(serializer_0(StringCompanionObject_instance), this.ojt_1));
            parameter(this_0, 'sortOrder', this.ijt_1.gjq_1.j39().x65_1.r45(serializer_1(IntCompanionObject_instance), this.pjt_1));
            parameter(this_0, 'deSelectedVerbUids', this.ijt_1.gjq_1.j39().x65_1.r45(ListSerializer(serializer(Companion_getInstance())), this.qjt_1));
            pagingSourceLoadParameters(this_0, this.ijt_1.gjq_1.j39().x65_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.rjt_1);
            tmp_4.xjt_1 = this_0;
            this.xjt_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.yjt_1 = this.wjt_1;
            var tmp_6 = this;
            tmp_6.zjt_1 = this.xjt_1;
            this.hd_1 = 2;
            suspendResult = (new HttpStatement(this.zjt_1, this.yjt_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 2:
            this.aju_1 = suspendResult;
            this.hd_1 = 3;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.ijt_1.fjq_1, this.aju_1, this.ijt_1.gjq_1.j39().x65_1, this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 3:
            this.sjt_1 = endOfPaginationReached(this.aju_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().d5e(e, 'DoorLog', StatementDao_Repo$findStatementsBySession$slambda$lambda(this.tjt_1, this.ujt_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.sjt_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(StatementDao_Repo$findStatementsBySession$slambda).i86 = function (_pagingParams, completion) {
    var i = new StatementDao_Repo$findStatementsBySession$slambda(this.ijt_1, this.jjt_1, this.kjt_1, this.ljt_1, this.mjt_1, this.njt_1, this.ojt_1, this.pjt_1, this.qjt_1, completion);
    i.rjt_1 = _pagingParams;
    return i;
  };
  function StatementDao_Repo$findStatementsBySession$slambda_0(this$0, $registrationHi, $registrationLo, $accountPersonUid, $selectedPersonUid, $contentEntryUid, $searchText, $sortOrder, $deSelectedVerbUids, resultContinuation) {
    var i = new StatementDao_Repo$findStatementsBySession$slambda(this$0, $registrationHi, $registrationLo, $accountPersonUid, $selectedPersonUid, $contentEntryUid, $searchText, $sortOrder, $deSelectedVerbUids, resultContinuation);
    var l = function (_pagingParams, $completion) {
      return i.h86(_pagingParams, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function StatementDao_Repo$getUniqueVerbsForSession$slambda(this$0, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation) {
    this.jju_1 = this$0;
    this.kju_1 = $registrationHi;
    this.lju_1 = $registrationLo;
    this.mju_1 = $selectedPersonUid;
    this.nju_1 = $contentEntryUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementDao_Repo$getUniqueVerbsForSession$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_Repo$getUniqueVerbsForSession$slambda).m78 = function ($completion) {
    return this.j87($completion);
  };
  protoOf(StatementDao_Repo$getUniqueVerbsForSession$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.oju_1 = this.jju_1.gjq_1;
            var tmp_1 = this;
            tmp_1.pju_1 = 'StatementDao/getUniqueVerbsForSession';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.qju_1 = this.jju_1.ijq_1;
            var tmp_3 = this;
            tmp_3.rju_1 = this.qju_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.jju_1.gjq_1.j39(), 'StatementDao/getUniqueVerbsForSession');
            doorNodeIdHeader(this_0, this.jju_1.gjq_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'registrationHi', this.jju_1.gjq_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.kju_1));
            parameter(this_0, 'registrationLo', this.jju_1.gjq_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.lju_1));
            parameter(this_0, 'selectedPersonUid', this.jju_1.gjq_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.mju_1));
            parameter(this_0, 'contentEntryUid', this.jju_1.gjq_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.nju_1));
            tmp_4.sju_1 = this_0;
            this.sju_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.tju_1 = this.rju_1;
            var tmp_6 = this;
            tmp_6.uju_1 = this.sju_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.uju_1, this.tju_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.vju_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.jju_1.fjq_1, this.vju_1, this.jju_1.gjq_1.j39().x65_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().d5e(e, 'DoorLog', StatementDao_Repo$getUniqueVerbsForSession$slambda$lambda(this.oju_1, this.pju_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$getUniqueVerbsForSession$slambda).l78 = function (completion) {
    return new StatementDao_Repo$getUniqueVerbsForSession$slambda(this.jju_1, this.kju_1, this.lju_1, this.mju_1, this.nju_1, completion);
  };
  function StatementDao_Repo$getUniqueVerbsForSession$slambda_0(this$0, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation) {
    var i = new StatementDao_Repo$getUniqueVerbsForSession$slambda(this$0, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation);
    var l = function ($completion) {
      return i.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function StatementDao_Repo$scoreOrProgressDataExistsForContent$lambda($this, $repoPath) {
    return function () {
      return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath;
    };
  }
  function $findStatusForStudentsInClazzCOROUTINE$485(_this__u8e3s4, clazzUid, studentPersonUids, accountPersonUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.ejv_1 = _this__u8e3s4;
    this.fjv_1 = clazzUid;
    this.gjv_1 = studentPersonUids;
    this.hjv_1 = accountPersonUid;
  }
  protoOf($findStatusForStudentsInClazzCOROUTINE$485).ud = function () {
    var 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.ejv_1.hjq_1.nje(this.fjv_1, this.gjv_1, this.hjv_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 $scoreOrProgressDataExistsForContentCOROUTINE$490(_this__u8e3s4, contentEntryUid, accountPersonUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.qjv_1 = _this__u8e3s4;
    this.rjv_1 = contentEntryUid;
    this.sjv_1 = accountPersonUid;
  }
  protoOf($scoreOrProgressDataExistsForContentCOROUTINE$490).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.tjv_1 = this.qjv_1.gjq_1;
            var tmp_1 = this;
            tmp_1.ujv_1 = 'StatementDao/scoreOrProgressDataExistsForContent';
            this.id_1 = 3;
            var tmp_2 = this;
            tmp_2.vjv_1 = this.qjv_1.ijq_1;
            var tmp_3 = this;
            tmp_3.wjv_1 = this.vjv_1;
            var tmp_4 = this;
            var this_0 = new HttpRequestBuilder();
            setRepoUrl(this_0, this.qjv_1.gjq_1.j39(), 'StatementDao/scoreOrProgressDataExistsForContent');
            doorNodeIdHeader(this_0, this.qjv_1.gjq_1);
            header(this_0, 'cache-control', 'no-store');
            parameter(this_0, 'contentEntryUid', this.qjv_1.gjq_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.rjv_1));
            parameter(this_0, 'accountPersonUid', this.qjv_1.gjq_1.j39().x65_1.r45(serializer(Companion_getInstance()), this.sjv_1));
            tmp_4.xjv_1 = this_0;
            this.xjv_1.w38_1 = Companion_getInstance_0().l2x_1;
            var tmp_5 = this;
            tmp_5.yjv_1 = this.wjv_1;
            var tmp_6 = this;
            tmp_6.zjv_1 = this.xjv_1;
            this.hd_1 = 1;
            suspendResult = (new HttpStatement(this.zjv_1, this.yjv_1)).h3z(this);
            if (suspendResult === get_COROUTINE_SUSPENDED()) {
              return suspendResult;
            }

            continue $sm;
          case 1:
            this.ajw_1 = suspendResult;
            this.hd_1 = 2;
            suspendResult = onClientRepoDoorMessageHttpResponse(this.qjv_1.fjq_1, this.ajw_1, this.qjv_1.gjq_1.j39().x65_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.bjw_1 = this.kd_1;
              Napier_getInstance().d5e(this.bjw_1, 'DoorLog', StatementDao_Repo$scoreOrProgressDataExistsForContent$lambda(this.tjv_1, this.ujv_1));
              this.hd_1 = 4;
              continue $sm;
            } else {
              throw this.kd_1;
            }

          case 4:
            this.id_1 = 6;
            this.hd_1 = 5;
            suspendResult = this.qjv_1.hjq_1.tje(this.rjv_1, this.sjv_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 StatementDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    StatementDao.call(this);
    this.fjq_1 = _db;
    this.gjq_1 = _repo;
    this.hjq_1 = _dao;
    this.ijq_1 = _httpClient;
    this.jjq_1 = _clientId;
    this.kjq_1 = _endpoint;
    this.ljq_1 = new RepoDaoFlowHelper(this.gjq_1);
  }
  protoOf(StatementDao_Repo).mje = function (entityList, $completion) {
    return withRepoChangeMonitorAsync(this.gjq_1, 'StatementEntity', StatementDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entityList, null), $completion);
  };
  protoOf(StatementDao_Repo).nje = function (clazzUid, studentPersonUids, accountPersonUid, $completion) {
    var tmp = new $findStatusForStudentsInClazzCOROUTINE$485(this, clazzUid, studentPersonUids, accountPersonUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementDao_Repo).oje = function (clazzUid, studentPersonUids, accountPersonUid) {
    var tmp = this.hjq_1.oje(clazzUid, studentPersonUids, accountPersonUid);
    return this.ljq_1.o67(tmp, StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda_0(this, clazzUid, studentPersonUids, accountPersonUid, null));
  };
  protoOf(StatementDao_Repo).pje = function (contentEntryUid, accountPersonUid, searchText, sortOrder) {
    var tmp = this.hjq_1.pje(contentEntryUid, accountPersonUid, searchText, sortOrder);
    return new DoorRepositoryReplicatePullPagingSource(this.gjq_1, 'StatementDao/findPersonsWithAttempts', tmp, StatementDao_Repo$findPersonsWithAttempts$slambda_0(this, contentEntryUid, accountPersonUid, searchText, sortOrder, null));
  };
  protoOf(StatementDao_Repo).qje = function (contentEntryUid, personUid, accountPersonUid, sortOrder) {
    var tmp = this.hjq_1.qje(contentEntryUid, personUid, accountPersonUid, sortOrder);
    return new DoorRepositoryReplicatePullPagingSource(this.gjq_1, 'StatementDao/findSessionsByPersonAndContent', tmp, StatementDao_Repo$findSessionsByPersonAndContent$slambda_0(this, contentEntryUid, personUid, accountPersonUid, sortOrder, null));
  };
  protoOf(StatementDao_Repo).rje = function (registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids) {
    var tmp = this.hjq_1.rje(registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids);
    return new DoorRepositoryReplicatePullPagingSource(this.gjq_1, 'StatementDao/findStatementsBySession', tmp, StatementDao_Repo$findStatementsBySession$slambda_0(this, registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids, null));
  };
  protoOf(StatementDao_Repo).sje = function (registrationHi, registrationLo, selectedPersonUid, contentEntryUid) {
    var tmp = this.hjq_1.sje(registrationHi, registrationLo, selectedPersonUid, contentEntryUid);
    return this.ljq_1.o67(tmp, StatementDao_Repo$getUniqueVerbsForSession$slambda_0(this, registrationHi, registrationLo, selectedPersonUid, contentEntryUid, null));
  };
  protoOf(StatementDao_Repo).tje = function (contentEntryUid, accountPersonUid, $completion) {
    var tmp = new $scoreOrProgressDataExistsForContentCOROUTINE$490(this, contentEntryUid, accountPersonUid, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  function StatementEntityJsonDao() {
  }
  function StatementEntityJsonDao_DoorWrapper(_db, _dao) {
    StatementEntityJsonDao.call(this);
    this.djw_1 = _db;
    this.ejw_1 = _dao;
  }
  protoOf(StatementEntityJsonDao_DoorWrapper).cjw = function (entityList, $completion) {
    return this.ejw_1.cjw(entityList, $completion);
  };
  function StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.fjw_1);
  }
  protoOf(StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1).u5g = function (returnsId) {
    return 'INSERT  OR IGNORE INTO StatementEntityJson (stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement) VALUES(?, ?, ?, ?)';
  };
  protoOf(StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1).jjw = function (stmt, entity) {
    stmt.v5h(1, entity.kjw_1);
    stmt.v5h(2, entity.ljw_1);
    stmt.v5h(3, entity.mjw_1);
    stmt.y5h(4, entity.njw_1);
  };
  protoOf(StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1).p5f = function (stmt, entity) {
    return this.jjw(stmt, entity instanceof StatementEntityJson ? entity : THROW_CCE());
  };
  function StatementEntityJsonDao_JdbcImpl(_db) {
    StatementEntityJsonDao.call(this);
    this.fjw_1 = _db;
    var tmp = this;
    tmp.gjw_1 = new StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1(this);
  }
  protoOf(StatementEntityJsonDao_JdbcImpl).cjw = function (entityList, $completion) {
    return this.gjw_1.z5g(entityList, $completion);
  };
  function StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entityList, resultContinuation) {
    this.wjw_1 = this$0;
    this.xjw_1 = $entityList;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda).m78 = function ($completion) {
    return this.j87($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.wjw_1.ajx_1.cjw(this.xjw_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).l78 = function (completion) {
    return new StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda(this.wjw_1, this.xjw_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function StatementEntityJsonDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    StatementEntityJsonDao.call(this);
    this.yjw_1 = _db;
    this.zjw_1 = _repo;
    this.ajx_1 = _dao;
    this.bjx_1 = _httpClient;
    this.cjx_1 = _clientId;
    this.djx_1 = _endpoint;
  }
  protoOf(StatementEntityJsonDao_Repo).cjw = function (entityList, $completion) {
    return withRepoChangeMonitorAsync(this.zjw_1, 'StatementEntityJson', StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entityList, null), $completion);
  };
  function VerbDao() {
  }
  function VerbDao_DoorWrapper(_db, _dao) {
    VerbDao.call(this);
    this.fjx_1 = _db;
    this.gjx_1 = _dao;
  }
  protoOf(VerbDao_DoorWrapper).ejx = 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.wjj_1 = systemTimeInMillis();
    }
    return this.gjx_1.ejx(entities, $completion);
  };
  function VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.hjx_1);
  }
  protoOf(VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1).u5g = function (returnsId) {
    return 'INSERT  OR IGNORE INTO VerbEntity (verbUid, verbUrlId, verbDeleted, verbLct) VALUES(?, ?, ?, ?)';
  };
  protoOf(VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1).ljx = function (stmt, entity) {
    stmt.v5h(1, entity.tjj_1);
    stmt.y5h(2, entity.ujj_1);
    stmt.i5h(3, entity.vjj_1);
    stmt.v5h(4, entity.wjj_1);
  };
  protoOf(VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1).p5f = function (stmt, entity) {
    return this.ljx(stmt, entity instanceof VerbEntity ? entity : THROW_CCE());
  };
  function VerbDao_JdbcImpl(_db) {
    VerbDao.call(this);
    this.hjx_1 = _db;
    var tmp = this;
    tmp.ijx_1 = new VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1(this);
  }
  protoOf(VerbDao_JdbcImpl).ejx = function (entities, $completion) {
    return this.ijx_1.z5g(entities, $completion);
  };
  function VerbDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation) {
    this.ujx_1 = this$0;
    this.vjx_1 = $entities;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(VerbDao_Repo$insertOrIgnoreAsync$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(VerbDao_Repo$insertOrIgnoreAsync$slambda).m78 = function ($completion) {
    return this.j87($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.ujx_1.yjx_1.ejx(this.vjx_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).l78 = function (completion) {
    return new VerbDao_Repo$insertOrIgnoreAsync$slambda(this.ujx_1, this.vjx_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function VerbDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    VerbDao.call(this);
    this.wjx_1 = _db;
    this.xjx_1 = _repo;
    this.yjx_1 = _dao;
    this.zjx_1 = _httpClient;
    this.ajy_1 = _clientId;
    this.bjy_1 = _endpoint;
  }
  protoOf(VerbDao_Repo).ejx = function (entities, $completion) {
    return withRepoChangeMonitorAsync(this.xjx_1, 'VerbEntity', VerbDao_Repo$insertOrIgnoreAsync$slambda_0(this, entities, null), $completion);
  };
  function VerbLangMapEntryDao() {
  }
  function VerbLangMapEntryDao_DoorWrapper(_db, _dao) {
    VerbLangMapEntryDao.call(this);
    this.djy_1 = _db;
    this.ejy_1 = _dao;
  }
  protoOf(VerbLangMapEntryDao_DoorWrapper).cjy = 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.bjk_1 = systemTimeInMillis();
    }
    return this.ejy_1.cjy(list, $completion);
  };
  function VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.fjy_1);
  }
  protoOf(VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1).u5g = function (returnsId) {
    return 'INSERT OR REPLACE INTO VerbLangMapEntry (vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified) VALUES(?, ?, ?, ?, ?)';
  };
  protoOf(VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1).jjy = function (stmt, entity) {
    stmt.v5h(1, entity.xjj_1);
    stmt.v5h(2, entity.yjj_1);
    stmt.y5h(3, entity.zjj_1);
    stmt.y5h(4, entity.ajk_1);
    stmt.v5h(5, entity.bjk_1);
  };
  protoOf(VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1).p5f = function (stmt, entity) {
    return this.jjy(stmt, entity instanceof VerbLangMapEntry ? entity : THROW_CCE());
  };
  function VerbLangMapEntryDao_JdbcImpl(_db) {
    VerbLangMapEntryDao.call(this);
    this.fjy_1 = _db;
    var tmp = this;
    tmp.gjy_1 = new VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1(this);
  }
  protoOf(VerbLangMapEntryDao_JdbcImpl).cjy = function (list, $completion) {
    return this.gjy_1.z5g(list, $completion);
  };
  function VerbLangMapEntryDao_Repo$upsertList$slambda(this$0, $list, resultContinuation) {
    this.sjy_1 = this$0;
    this.tjy_1 = $list;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(VerbLangMapEntryDao_Repo$upsertList$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(VerbLangMapEntryDao_Repo$upsertList$slambda).m78 = function ($completion) {
    return this.j87($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.sjy_1.wjy_1.cjy(this.tjy_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).l78 = function (completion) {
    return new VerbLangMapEntryDao_Repo$upsertList$slambda(this.sjy_1, this.tjy_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function VerbLangMapEntryDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    VerbLangMapEntryDao.call(this);
    this.ujy_1 = _db;
    this.vjy_1 = _repo;
    this.wjy_1 = _dao;
    this.xjy_1 = _httpClient;
    this.yjy_1 = _clientId;
    this.zjy_1 = _endpoint;
  }
  protoOf(VerbLangMapEntryDao_Repo).cjy = function (list, $completion) {
    return withRepoChangeMonitorAsync(this.vjy_1, 'VerbLangMapEntry', VerbLangMapEntryDao_Repo$upsertList$slambda_0(this, list, null), $completion);
  };
  function XapiSessionEntityDao() {
  }
  function XapiSessionEntityDao_DoorWrapper(_db, _dao) {
    XapiSessionEntityDao.call(this);
    this.bjz_1 = _db;
    this.cjz_1 = _dao;
  }
  protoOf(XapiSessionEntityDao_DoorWrapper).ajz = function (completed, time, xseUid, $completion) {
    return this.cjz_1.ajz(completed, time, xseUid, $completion);
  };
  function XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1(this$0) {
    EntityInsertionAdapter.call(this, this$0.djz_1);
  }
  protoOf(XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1).u5g = 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).hjz = function (stmt, entity) {
    if (entity.ijz_1.equals(new Long(0, 0))) {
      stmt.a5i(1, null);
    } else {
      stmt.v5h(1, entity.ijz_1);
    }
    stmt.v5h(2, entity.jjz_1);
    stmt.v5h(3, entity.kjz_1);
    stmt.v5h(4, entity.ljz_1);
    stmt.v5h(5, entity.mjz_1);
    stmt.v5h(6, entity.njz_1);
    stmt.v5h(7, entity.ojz_1);
    stmt.y5h(8, entity.pjz_1);
    stmt.v5h(9, entity.qjz_1);
    stmt.v5h(10, entity.rjz_1);
    stmt.v5h(11, entity.sjz_1);
    stmt.v5h(12, entity.tjz_1);
    stmt.y5h(13, entity.ujz_1);
    stmt.v5h(14, entity.vjz_1);
    stmt.v5h(15, entity.wjz_1);
    stmt.v5h(16, entity.xjz_1);
    stmt.y5h(17, entity.yjz_1);
    stmt.i5h(18, entity.zjz_1);
    stmt.y5h(19, entity.ak0_1);
  };
  protoOf(XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1).p5f = function (stmt, entity) {
    return this.hjz(stmt, entity instanceof XapiSessionEntity ? entity : THROW_CCE());
  };
  function XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda($completed, $time, $xseUid, resultContinuation) {
    this.jk0_1 = $completed;
    this.kk0_1 = $time;
    this.lk0_1 = $xseUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda).j6j = function (_stmt, $completion) {
    var tmp = this.m5f(_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.j6j((!(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.mk0_1.i5h(1, this.jk0_1);
            this.mk0_1.v5h(2, this.kk0_1);
            this.mk0_1.v5h(3, this.lk0_1);
            this.hd_1 = 1;
            suspendResult = executeUpdateAsyncKmp(this.mk0_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).m5f = function (_stmt, completion) {
    var i = new XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda(this.jk0_1, this.kk0_1, this.lk0_1, completion);
    i.mk0_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.j6j(_stmt, $completion);
    };
    l.$arity = 1;
    return l;
  }
  function $updateLatestAsCompleteCOROUTINE$497(_this__u8e3s4, completed, time, xseUid, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.vk0_1 = _this__u8e3s4;
    this.wk0_1 = completed;
    this.xk0_1 = time;
    this.yk0_1 = xseUid;
  }
  protoOf($updateLatestAsCompleteCOROUTINE$497).ud = function () {
    var 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.vk0_1.djz_1, tmp_0, XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda_0(this.wk0_1, this.xk0_1, this.yk0_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.djz_1 = _db;
    var tmp = this;
    tmp.ejz_1 = new XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1(this);
  }
  protoOf(XapiSessionEntityDao_JdbcImpl).ajz = function (completed, time, xseUid, $completion) {
    var tmp = new $updateLatestAsCompleteCOROUTINE$497(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.hk1_1 = this$0;
    this.ik1_1 = $completed;
    this.jk1_1 = $time;
    this.kk1_1 = $xseUid;
    CoroutineImpl.call(this, resultContinuation);
  }
  protoOf(XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda).j87 = function ($completion) {
    var tmp = this.l78($completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  };
  protoOf(XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda).m78 = function ($completion) {
    return this.j87($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.hk1_1.nk1_1.ajz(this.ik1_1, this.jk1_1, this.kk1_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).l78 = function (completion) {
    return new XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda(this.hk1_1, this.ik1_1, this.jk1_1, this.kk1_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.j87($completion);
    };
    l.$arity = 0;
    return l;
  }
  function XapiSessionEntityDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) {
    XapiSessionEntityDao.call(this);
    this.lk1_1 = _db;
    this.mk1_1 = _repo;
    this.nk1_1 = _dao;
    this.ok1_1 = _httpClient;
    this.pk1_1 = _clientId;
    this.qk1_1 = _endpoint;
  }
  protoOf(XapiSessionEntityDao_Repo).ajz = function (completed, time, xseUid, $completion) {
    return withRepoChangeMonitorAsync(this.mk1_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.n7t_1 = _this__u8e3s4.n7t_1;
    this_0.o7t_1 = _this__u8e3s4.o7t_1;
    this_0.p7t_1 = _this__u8e3s4.p7t_1;
    this_0.q7t_1 = _this__u8e3s4.q7t_1;
    this_0.r7t_1 = _this__u8e3s4.r7t_1;
    this_0.s7t_1 = _this__u8e3s4.s7t_1;
    this_0.t7t_1 = _this__u8e3s4.t7t_1;
    this_0.u7t_1 = _this__u8e3s4.u7t_1;
    this_0.v7t_1 = _this__u8e3s4.v7t_1;
    this_0.w7t_1 = _this__u8e3s4.w7t_1;
    this_0.x7t_1 = _this__u8e3s4.x7t_1;
    this_0.y7t_1 = _this__u8e3s4.y7t_1;
    this_0.z7t_1 = _this__u8e3s4.z7t_1;
    this_0.a7u_1 = _this__u8e3s4.a7u_1;
    this_0.b7u_1 = _this__u8e3s4.b7u_1;
    this_0.c7u_1 = _this__u8e3s4.c7u_1;
    this_0.d7u_1 = _this__u8e3s4.d7u_1;
    this_0.e7u_1 = _this__u8e3s4.e7u_1;
    this_0.f7u_1 = _this__u8e3s4.f7u_1;
    this_0.g7u_1 = _this__u8e3s4.g7u_1;
    this_0.h7u_1 = _this__u8e3s4.h7u_1;
    this_0.i7u_1 = _this__u8e3s4.i7u_1;
    this_0.j7u_1 = _this__u8e3s4.j7u_1;
    this_0.k7u_1 = _this__u8e3s4.k7u_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.r94_1 = _this__u8e3s4.r94_1;
    this_0.s94_1 = _this__u8e3s4.s94_1;
    this_0.b8i_1 = _this__u8e3s4.b8i_1;
    this_0.c8i_1 = _this__u8e3s4.c8i_1;
    this_0.d8i_1 = _this__u8e3s4.d8i_1;
    this_0.e8i_1 = _this__u8e3s4.e8i_1;
    this_0.f8i_1 = _this__u8e3s4.f8i_1;
    this_0.g8i_1 = _this__u8e3s4.g8i_1;
    this_0.h8i_1 = _this__u8e3s4.h8i_1;
    this_0.i8i_1 = _this__u8e3s4.i8i_1;
    this_0.j8i_1 = _this__u8e3s4.j8i_1;
    this_0.k8i_1 = _this__u8e3s4.k8i_1;
    this_0.l8i_1 = _this__u8e3s4.l8i_1;
    this_0.m8i_1 = _this__u8e3s4.m8i_1;
    this_0.n8i_1 = _this__u8e3s4.n8i_1;
    this_0.o8i_1 = _this__u8e3s4.o8i_1;
    this_0.p8i_1 = _this__u8e3s4.p8i_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.a9z_1 = _this__u8e3s4.a9z_1;
    this_0.b9z_1 = _this__u8e3s4.b9z_1;
    this_0.c9z_1 = _this__u8e3s4.c9z_1;
    this_0.d9z_1 = _this__u8e3s4.d9z_1;
    this_0.e9z_1 = _this__u8e3s4.e9z_1;
    this_0.f9z_1 = _this__u8e3s4.f9z_1;
    this_0.g9z_1 = _this__u8e3s4.g9z_1;
    this_0.h9z_1 = _this__u8e3s4.h9z_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.ga4_1 = _this__u8e3s4.ga4_1;
    this_0.ha4_1 = _this__u8e3s4.ha4_1;
    this_0.ia4_1 = _this__u8e3s4.ia4_1;
    this_0.ja4_1 = _this__u8e3s4.ja4_1;
    this_0.ka4_1 = _this__u8e3s4.ka4_1;
    this_0.la4_1 = _this__u8e3s4.la4_1;
    this_0.ma4_1 = _this__u8e3s4.ma4_1;
    this_0.na4_1 = _this__u8e3s4.na4_1;
    this_0.oa4_1 = _this__u8e3s4.oa4_1;
    this_0.pa4_1 = _this__u8e3s4.pa4_1;
    this_0.qa4_1 = _this__u8e3s4.qa4_1;
    this_0.ra4_1 = _this__u8e3s4.ra4_1;
    this_0.sa4_1 = _this__u8e3s4.sa4_1;
    this_0.ta4_1 = _this__u8e3s4.ta4_1;
    this_0.ua4_1 = _this__u8e3s4.ua4_1;
    this_0.va4_1 = _this__u8e3s4.va4_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.j8g_1 = _this__u8e3s4.j8g_1;
    this_0.k8g_1 = _this__u8e3s4.k8g_1;
    this_0.l8g_1 = _this__u8e3s4.l8g_1;
    this_0.r8d_1 = _this__u8e3s4.r8d_1;
    this_0.s8d_1 = _this__u8e3s4.s8d_1;
    this_0.t8d_1 = _this__u8e3s4.t8d_1;
    this_0.u8d_1 = _this__u8e3s4.u8d_1;
    this_0.v8d_1 = _this__u8e3s4.v8d_1;
    this_0.w8d_1 = _this__u8e3s4.w8d_1;
    this_0.x8d_1 = _this__u8e3s4.x8d_1;
    this_0.y8d_1 = _this__u8e3s4.y8d_1;
    this_0.z8d_1 = _this__u8e3s4.z8d_1;
    this_0.a8e_1 = _this__u8e3s4.a8e_1;
    this_0.b8e_1 = _this__u8e3s4.b8e_1;
    this_0.c8e_1 = _this__u8e3s4.c8e_1;
    this_0.d8e_1 = _this__u8e3s4.d8e_1;
    this_0.e8e_1 = _this__u8e3s4.e8e_1;
    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;
    this_0.n8e_1 = _this__u8e3s4.n8e_1;
    this_0.o8e_1 = _this__u8e3s4.o8e_1;
    this_0.p8e_1 = _this__u8e3s4.p8e_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.nav_1 = _this__u8e3s4.nav_1;
    this_0.oav_1 = _this__u8e3s4.oav_1;
    this_0.pav_1 = _this__u8e3s4.pav_1;
    this_0.qav_1 = _this__u8e3s4.qav_1;
    this_0.rav_1 = _this__u8e3s4.rav_1;
    this_0.sav_1 = _this__u8e3s4.sav_1;
    this_0.tav_1 = _this__u8e3s4.tav_1;
    this_0.uav_1 = _this__u8e3s4.uav_1;
    this_0.vav_1 = _this__u8e3s4.vav_1;
    this_0.wav_1 = _this__u8e3s4.wav_1;
    this_0.xav_1 = _this__u8e3s4.xav_1;
    this_0.yav_1 = _this__u8e3s4.yav_1;
    this_0.zav_1 = _this__u8e3s4.zav_1;
    this_0.aaw_1 = _this__u8e3s4.aaw_1;
    this_0.baw_1 = _this__u8e3s4.baw_1;
    this_0.caw_1 = _this__u8e3s4.caw_1;
    this_0.daw_1 = _this__u8e3s4.daw_1;
    this_0.eaw_1 = _this__u8e3s4.eaw_1;
    this_0.faw_1 = _this__u8e3s4.faw_1;
    this_0.gaw_1 = _this__u8e3s4.gaw_1;
    this_0.haw_1 = _this__u8e3s4.haw_1;
    this_0.iaw_1 = _this__u8e3s4.iaw_1;
    this_0.jaw_1 = _this__u8e3s4.jaw_1;
    this_0.kaw_1 = _this__u8e3s4.kaw_1;
    this_0.law_1 = _this__u8e3s4.law_1;
    this_0.maw_1 = _this__u8e3s4.maw_1;
    this_0.naw_1 = _this__u8e3s4.naw_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.fbw_1 = _this__u8e3s4.fbw_1;
    this_0.gbw_1 = _this__u8e3s4.gbw_1;
    this_0.hbw_1 = _this__u8e3s4.hbw_1;
    this_0.ibw_1 = _this__u8e3s4.ibw_1;
    this_0.jbw_1 = _this__u8e3s4.jbw_1;
    this_0.kbw_1 = _this__u8e3s4.kbw_1;
    this_0.lbw_1 = _this__u8e3s4.lbw_1;
    this_0.mbw_1 = _this__u8e3s4.mbw_1;
    this_0.nbw_1 = _this__u8e3s4.nbw_1;
    this_0.obw_1 = _this__u8e3s4.obw_1;
    this_0.pbw_1 = _this__u8e3s4.pbw_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.kc2_1 = _this__u8e3s4.kc2_1;
    this_0.lc2_1 = _this__u8e3s4.lc2_1;
    this_0.mc2_1 = _this__u8e3s4.mc2_1;
    this_0.nc2_1 = _this__u8e3s4.nc2_1;
    this_0.oc2_1 = _this__u8e3s4.oc2_1;
    this_0.pc2_1 = _this__u8e3s4.pc2_1;
    this_0.qc2_1 = _this__u8e3s4.qc2_1;
    this_0.rc2_1 = _this__u8e3s4.rc2_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.pd4_1 = _this__u8e3s4.pd4_1;
    this_0.qd4_1 = _this__u8e3s4.qd4_1;
    this_0.rd4_1 = _this__u8e3s4.rd4_1;
    this_0.sd4_1 = _this__u8e3s4.sd4_1;
    this_0.td4_1 = _this__u8e3s4.td4_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.a7z_1 = _this__u8e3s4.a7z_1;
    this_0.b7z_1 = _this__u8e3s4.b7z_1;
    this_0.c7z_1 = _this__u8e3s4.c7z_1;
    this_0.d7z_1 = _this__u8e3s4.d7z_1;
    this_0.e7z_1 = _this__u8e3s4.e7z_1;
    this_0.f7z_1 = _this__u8e3s4.f7z_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.m8g_1 = _this__u8e3s4.m8g_1;
    this_0.n8g_1 = _this__u8e3s4.n8g_1;
    this_0.o8g_1 = _this__u8e3s4.o8g_1;
    this_0.p8g_1 = _this__u8e3s4.p8g_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.nem_1 = _this__u8e3s4.nem_1;
    this_0.oem_1 = _this__u8e3s4.oem_1;
    this_0.pem_1 = _this__u8e3s4.pem_1;
    this_0.qem_1 = _this__u8e3s4.qem_1;
    this_0.rem_1 = _this__u8e3s4.rem_1;
    this_0.sem_1 = _this__u8e3s4.sem_1;
    this_0.tem_1 = _this__u8e3s4.tem_1;
    this_0.uem_1 = _this__u8e3s4.uem_1;
    this_0.vem_1 = _this__u8e3s4.vem_1;
    this_0.wem_1 = _this__u8e3s4.wem_1;
    this_0.xem_1 = _this__u8e3s4.xem_1;
    this_0.yem_1 = _this__u8e3s4.yem_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.c8f_1 = _this__u8e3s4.c8f_1;
    this_0.d8f_1 = _this__u8e3s4.d8f_1;
    this_0.e8f_1 = _this__u8e3s4.e8f_1;
    this_0.f8f_1 = _this__u8e3s4.f8f_1;
    this_0.g8f_1 = _this__u8e3s4.g8f_1;
    this_0.h8f_1 = _this__u8e3s4.h8f_1;
    this_0.i8f_1 = _this__u8e3s4.i8f_1;
    this_0.j8f_1 = _this__u8e3s4.j8f_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.ocn_1 = _this__u8e3s4.ocn_1;
    this_0.pcn_1 = _this__u8e3s4.pcn_1;
    this_0.qcn_1 = _this__u8e3s4.qcn_1;
    this_0.rcn_1 = _this__u8e3s4.rcn_1;
    this_0.scn_1 = _this__u8e3s4.scn_1;
    this_0.tcn_1 = _this__u8e3s4.tcn_1;
    this_0.ucn_1 = _this__u8e3s4.ucn_1;
    this_0.vcn_1 = _this__u8e3s4.vcn_1;
    this_0.wcn_1 = _this__u8e3s4.wcn_1;
    this_0.xcn_1 = _this__u8e3s4.xcn_1;
    this_0.ycn_1 = _this__u8e3s4.ycn_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.t94_1 = _this__u8e3s4.t94_1;
    this_0.u94_1 = _this__u8e3s4.u94_1;
    this_0.v94_1 = _this__u8e3s4.v94_1;
    this_0.w94_1 = _this__u8e3s4.w94_1;
    this_0.x94_1 = _this__u8e3s4.x94_1;
    this_0.y94_1 = _this__u8e3s4.y94_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.nfu_1 = _this__u8e3s4.nfu_1;
    this_0.ofu_1 = _this__u8e3s4.ofu_1;
    this_0.pfu_1 = _this__u8e3s4.pfu_1;
    this_0.qfu_1 = _this__u8e3s4.qfu_1;
    this_0.rfu_1 = _this__u8e3s4.rfu_1;
    this_0.sfu_1 = _this__u8e3s4.sfu_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.zg7_1 = _this__u8e3s4.zg7_1;
    this_0.ag8_1 = _this__u8e3s4.ag8_1;
    this_0.bg8_1 = _this__u8e3s4.bg8_1;
    this_0.cg8_1 = _this__u8e3s4.cg8_1;
    this_0.dg8_1 = _this__u8e3s4.dg8_1;
    this_0.eg8_1 = _this__u8e3s4.eg8_1;
    this_0.fg8_1 = _this__u8e3s4.fg8_1;
    this_0.gg8_1 = _this__u8e3s4.gg8_1;
    this_0.hg8_1 = _this__u8e3s4.hg8_1;
    this_0.ig8_1 = _this__u8e3s4.ig8_1;
    this_0.jg8_1 = _this__u8e3s4.jg8_1;
    this_0.kg8_1 = _this__u8e3s4.kg8_1;
    this_0.lg8_1 = _this__u8e3s4.lg8_1;
    this_0.mg8_1 = _this__u8e3s4.mg8_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.f96_1 = _this__u8e3s4.f96_1;
    this_0.g96_1 = _this__u8e3s4.g96_1;
    this_0.h96_1 = _this__u8e3s4.h96_1;
    this_0.i96_1 = _this__u8e3s4.i96_1;
    this_0.j96_1 = _this__u8e3s4.j96_1;
    this_0.k96_1 = _this__u8e3s4.k96_1;
    this_0.l96_1 = _this__u8e3s4.l96_1;
    this_0.m96_1 = _this__u8e3s4.m96_1;
    this_0.n96_1 = _this__u8e3s4.n96_1;
    this_0.o96_1 = _this__u8e3s4.o96_1;
    this_0.p96_1 = _this__u8e3s4.p96_1;
    this_0.q96_1 = _this__u8e3s4.q96_1;
    this_0.r96_1 = _this__u8e3s4.r96_1;
    this_0.s96_1 = _this__u8e3s4.s96_1;
    this_0.t96_1 = _this__u8e3s4.t96_1;
    this_0.u96_1 = _this__u8e3s4.u96_1;
    this_0.v96_1 = _this__u8e3s4.v96_1;
    this_0.w96_1 = _this__u8e3s4.w96_1;
    this_0.x96_1 = _this__u8e3s4.x96_1;
    this_0.y96_1 = _this__u8e3s4.y96_1;
    this_0.z96_1 = _this__u8e3s4.z96_1;
    this_0.a97_1 = _this__u8e3s4.a97_1;
    this_0.b97_1 = _this__u8e3s4.b97_1;
    this_0.c97_1 = _this__u8e3s4.c97_1;
    this_0.d97_1 = _this__u8e3s4.d97_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.rk1_1 = _this__u8e3s4.rk1_1;
    this_0.sk1_1 = _this__u8e3s4.sk1_1;
    this_0.tk1_1 = _this__u8e3s4.tk1_1;
    this_0.uk1_1 = _this__u8e3s4.uk1_1;
    this_0.vk1_1 = _this__u8e3s4.vk1_1;
    this_0.wk1_1 = _this__u8e3s4.wk1_1;
    this_0.xk1_1 = _this__u8e3s4.xk1_1;
    this_0.yk1_1 = _this__u8e3s4.yk1_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.uhe_1 = _this__u8e3s4.uhe_1;
    this_0.vhe_1 = _this__u8e3s4.vhe_1;
    this_0.whe_1 = _this__u8e3s4.whe_1;
    this_0.xhe_1 = _this__u8e3s4.xhe_1;
    this_0.yhe_1 = _this__u8e3s4.yhe_1;
    this_0.zhe_1 = _this__u8e3s4.zhe_1;
    this_0.ahf_1 = _this__u8e3s4.ahf_1;
    this_0.bhf_1 = _this__u8e3s4.bhf_1;
    this_0.chf_1 = _this__u8e3s4.chf_1;
    this_0.dhf_1 = _this__u8e3s4.dhf_1;
    this_0.ehf_1 = _this__u8e3s4.ehf_1;
    this_0.fhf_1 = _this__u8e3s4.fhf_1;
    this_0.ghf_1 = _this__u8e3s4.ghf_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.qhn_1 = _this__u8e3s4.qhn_1;
    this_0.rhn_1 = _this__u8e3s4.rhn_1;
    this_0.shn_1 = _this__u8e3s4.shn_1;
    this_0.thn_1 = _this__u8e3s4.thn_1;
    this_0.uhn_1 = _this__u8e3s4.uhn_1;
    this_0.vhn_1 = _this__u8e3s4.vhn_1;
    this_0.whn_1 = _this__u8e3s4.whn_1;
    this_0.xhn_1 = _this__u8e3s4.xhn_1;
    this_0.yhn_1 = _this__u8e3s4.yhn_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.dht_1 = _this__u8e3s4.dht_1;
    this_0.eht_1 = _this__u8e3s4.eht_1;
    this_0.fht_1 = _this__u8e3s4.fht_1;
    this_0.ght_1 = _this__u8e3s4.ght_1;
    this_0.hht_1 = _this__u8e3s4.hht_1;
    this_0.iht_1 = _this__u8e3s4.iht_1;
    this_0.jht_1 = _this__u8e3s4.jht_1;
    this_0.kht_1 = _this__u8e3s4.kht_1;
    this_0.lht_1 = _this__u8e3s4.lht_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.zk1_1 = new Long(1, 0);
    this.ak2_1 = new Long(2, 0);
    this.bk2_1 = new Long(4, 0);
    this.ck2_1 = new Long(8, 0);
    this.dk2_1 = new Long(16, 0);
    this.ek2_1 = new Long(32, 0);
    this.fk2_1 = new Long(64, 0);
    this.gk2_1 = new Long(128, 0);
    this.hk2_1 = new Long(256, 0);
    this.ik2_1 = new Long(512, 0);
    this.jk2_1 = new Long(1024, 0);
    this.kk2_1 = new Long(2048, 0);
    this.lk2_1 = new Long(4096, 0);
    this.mk2_1 = new Long(8192, 0);
    this.nk2_1 = new Long(16384, 0);
    this.ok2_1 = new Long(32768, 0);
    this.pk2_1 = new Long(65536, 0);
    this.qk2_1 = new Long(131072, 0);
    this.rk2_1 = new Long(-1, 2147483647);
  }
  var PermissionFlags_instance;
  function PermissionFlags_getInstance() {
    if (PermissionFlags_instance == null)
      new PermissionFlags();
    return PermissionFlags_instance;
  }
  function UmAppDataLayer(localDb, repository) {
    this.sk2_1 = localDb;
    this.tk2_1 = repository;
  }
  protoOf(UmAppDataLayer).uk2 = function (message) {
    var tmp1_elvis_lhs = this.tk2_1;
    var tmp;
    if (tmp1_elvis_lhs == null) {
      throw IllegalStateException_init_$Create$('Repo required: not available: ' + (message == null ? '' : message));
    } else {
      tmp = tmp1_elvis_lhs;
    }
    return tmp;
  };
  protoOf(UmAppDataLayer).vk2 = function (message, $super) {
    message = message === VOID ? null : message;
    return $super === VOID ? this.uk2(message) : $super.uk2.call(this, message);
  };
  protoOf(UmAppDataLayer).wk2 = function () {
    var tmp0_elvis_lhs = this.tk2_1;
    return tmp0_elvis_lhs == null ? this.sk2_1 : tmp0_elvis_lhs;
  };
  function get_MIGRATE_USERNAME_CLIENT() {
    _init_properties_UsernameFilterClientMigration_kt__kpjhqb();
    return MIGRATE_USERNAME_CLIENT;
  }
  var MIGRATE_USERNAME_CLIENT;
  function MIGRATE_USERNAME_CLIENT$lambda(_anonymous_parameter_0__qggqh8) {
    _init_properties_UsernameFilterClientMigration_kt__kpjhqb();
    return emptyList();
  }
  var properties_initialized_UsernameFilterClientMigration_kt_4cnqd7;
  function _init_properties_UsernameFilterClientMigration_kt__kpjhqb() {
    if (!properties_initialized_UsernameFilterClientMigration_kt_4cnqd7) {
      properties_initialized_UsernameFilterClientMigration_kt_4cnqd7 = true;
      MIGRATE_USERNAME_CLIENT = new DoorMigrationStatementList(202, 203, MIGRATE_USERNAME_CLIENT$lambda);
    }
  }
  function ClazzAssignmentDaoCommon() {
    this.xk2_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.yk2_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.zk2_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.ak3_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.bk3_1 = '\n        AssignmentClazzUid(clazzUid) AS\n        (SELECT ClazzAssignment.caClazzUid\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = :assignmentUid)  \n    ';
    this.ck3_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.dk3_1 = '\n        SELECT ClazzAssignment.caGroupUid\n                   FROM ClazzAssignment\n                  WHERE ClazzAssignment.caUid = :assignmentUid\n    ';
    this.ek3_1 = '\n        ((SELECT ClazzAssignment.caMarkingType\n           FROM ClazzAssignment\n          WHERE ClazzAssignment.caUid = :assignmentUid) = 2)\n    ';
    this.fk3_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.gk3_1 = 5;
    this.hk3_1 = 6;
  }
  var ClazzAssignmentDaoCommon_instance;
  function ClazzAssignmentDaoCommon_getInstance() {
    return ClazzAssignmentDaoCommon_instance;
  }
  function ClazzDaoCommon() {
    this.ik3_1 = 1;
    this.jk3_1 = 2;
    this.kk3_1 = 3;
    this.lk3_1 = 4;
    this.mk3_1 = 5;
    this.nk3_1 = 6;
    this.ok3_1 = 'SELECT * FROM Clazz WHERE CAST(isClazzActive AS INTEGER) = 1';
  }
  var ClazzDaoCommon_instance;
  function ClazzDaoCommon_getInstance() {
    return ClazzDaoCommon_instance;
  }
  function ClazzEnrolmentDaoCommon() {
    this.pk3_1 = 1;
    this.qk3_1 = 2;
    this.rk3_1 = 3;
    this.sk3_1 = 4;
    this.tk3_1 = 7;
    this.uk3_1 = 8;
    this.vk3_1 = 9;
    this.wk3_1 = 10;
    this.xk3_1 = 1;
    this.yk3_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.zk3_1 = '\n        SELECT ClazzEnrolment.clazzEnrolmentRole\n          FROM ClazzEnrolment\n         WHERE ClazzEnrolment.clazzEnrolmentUid = :clazzEnrolmentUid         \n    ';
    this.ak4_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.bk4_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.ck4_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.dk4_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.ek4_1 = 1;
    this.fk4_1 = 2;
    this.gk4_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.hk4_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.ik4_1 = 1;
    this.jk4_1 = 0;
  }
  var CourseAssignmentMarkDaoCommon_instance;
  function CourseAssignmentMarkDaoCommon_getInstance() {
    return CourseAssignmentMarkDaoCommon_instance;
  }
  function deactivateByUids(_this__u8e3s4, uidList, changeTime, $completion) {
    var tmp = new $deactivateByUidsCOROUTINE$500(_this__u8e3s4, uidList, changeTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  }
  function $deactivateByUidsCOROUTINE$500(_this__u8e3s4, uidList, changeTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.sk4_1 = _this__u8e3s4;
    this.tk4_1 = uidList;
    this.uk4_1 = changeTime;
  }
  protoOf($deactivateByUidsCOROUTINE$500).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.vk4_1 = this.tk4_1;
            this.wk4_1 = this.vk4_1.w();
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.wk4_1.f()) {
              this.hd_1 = 3;
              continue $sm;
            }

            this.xk4_1 = this.wk4_1.e();
            var tmp_1 = this;
            tmp_1.yk4_1 = this.xk4_1;
            this.hd_1 = 2;
            suspendResult = this.sk4_1.jcl(this.yk4_1, false, this.uk4_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.zk4_1 = 1;
    this.ak5_1 = 2;
  }
  var CourseGroupSetDaoConstants_instance;
  function CourseGroupSetDaoConstants_getInstance() {
    return CourseGroupSetDaoConstants_instance;
  }
  function LanguageDaoCommon() {
    this.bk5_1 = 1;
    this.ck5_1 = 2;
    this.dk5_1 = 3;
    this.ek5_1 = 4;
    this.fk5_1 = 5;
    this.gk5_1 = 6;
  }
  var LanguageDaoCommon_instance;
  function LanguageDaoCommon_getInstance() {
    return LanguageDaoCommon_instance;
  }
  function deactivateByUids_0(_this__u8e3s4, uidList, changeTime, $completion) {
    var tmp = new $deactivateByUidsCOROUTINE$501(_this__u8e3s4, uidList, changeTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  }
  function $deactivateByUidsCOROUTINE$501(_this__u8e3s4, uidList, changeTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.pk5_1 = _this__u8e3s4;
    this.qk5_1 = uidList;
    this.rk5_1 = changeTime;
  }
  protoOf($deactivateByUidsCOROUTINE$501).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.sk5_1 = this.qk5_1;
            this.tk5_1 = this.sk5_1.w();
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.tk5_1.f()) {
              this.hd_1 = 3;
              continue $sm;
            }

            this.uk5_1 = this.tk5_1.e();
            var tmp_1 = this;
            tmp_1.vk5_1 = this.uk5_1;
            this.hd_1 = 2;
            suspendResult = this.pk5_1.jcl(this.vk5_1, false, this.rk5_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.wk5_1 = 1;
    this.xk5_1 = 2;
    this.yk5_1 = 3;
    this.zk5_1 = 4;
    this.ak6_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$502(_this__u8e3s4, uidList, changeTime, $completion);
    tmp.jd_1 = Unit_instance;
    tmp.kd_1 = null;
    return tmp.ud();
  }
  function $deactivateByUidsCOROUTINE$502(_this__u8e3s4, uidList, changeTime, resultContinuation) {
    CoroutineImpl.call(this, resultContinuation);
    this.jk6_1 = _this__u8e3s4;
    this.kk6_1 = uidList;
    this.lk6_1 = changeTime;
  }
  protoOf($deactivateByUidsCOROUTINE$502).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.mk6_1 = this.kk6_1;
            this.nk6_1 = this.mk6_1.w();
            this.hd_1 = 1;
            continue $sm;
          case 1:
            if (!this.nk6_1.f()) {
              this.hd_1 = 3;
              continue $sm;
            }

            this.ok6_1 = this.nk6_1.e();
            var tmp_1 = this;
            tmp_1.pk6_1 = this.ok6_1;
            this.hd_1 = 2;
            suspendResult = this.jk6_1.yhd(this.pk6_1, false, this.lk6_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 get_MIGRATION_203_204() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_203_204;
  }
  var MIGRATION_203_204;
  function get_MIGRATION_204_205() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_204_205;
  }
  var MIGRATION_204_205;
  function get_MIGRATION_205_206() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_205_206;
  }
  var MIGRATION_205_206;
  function get_MIGRATION_206_207() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_206_207;
  }
  var MIGRATION_206_207;
  function get_MIGRATION_207_208() {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return MIGRATION_207_208;
  }
  var MIGRATION_207_208;
  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(), get_MIGRATION_203_204(), get_MIGRATION_204_205(), get_MIGRATION_205_206(), get_MIGRATION_206_207(), get_MIGRATION_207_208()]);
  }
  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_85();
    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_85();
    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();
  }
  function MIGRATION_203_204$lambda(db) {
    _init_properties_UmAppDatabaseMigrations_kt__v2rrqh();
    return listOf('ALTER TABLE ActivityLangMapEntry ADD COLUMN almePropName TEXT');
  }
  function MIGRATION_204_205$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_204_205.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('CREATE TABLE IF NOT EXISTS PersonPasskey (  ppPersonUid  INTEGER  NOT NULL , ppAttestationObj  TEXT , ppClientDataJson  TEXT , ppOriginString  TEXT , ppId  TEXT , ppChallengeString  TEXT , ppPublicKey  TEXT , isRevoked  INTEGER  NOT NULL , ppPasskeyLct  INTEGER  NOT NULL , personPasskeyUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
    } else {
      this_0.i1('CREATE TABLE IF NOT EXISTS PersonPasskey (  ppPersonUid  BIGINT  NOT NULL , ppAttestationObj  TEXT , ppClientDataJson  TEXT , ppOriginString  TEXT , ppId  TEXT , ppChallengeString  TEXT , ppPublicKey  TEXT , isRevoked  INTEGER  NOT NULL , ppPasskeyLct  BIGINT  NOT NULL , personPasskeyUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
    }
    return this_0.f3();
  }
  function MIGRATION_205_206$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_205_206.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('ALTER TABLE Person ADD COLUMN isPersonalAccount INTEGER NOT NULL DEFAULT 0');
    } else {
      this_0.i1('ALTER TABLE Person ADD COLUMN isPersonalAccount BOOL NOT NULL DEFAULT FALSE');
    }
    return this_0.f3();
  }
  function MIGRATION_206_207$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_206_207.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('ALTER TABLE ClazzEnrolment ADD COLUMN clazzEnrolmentInviteUid INTEGER NOT NULL DEFAULT 0');
      this_0.i1('CREATE TABLE IF NOT EXISTS ClazzInvite (  ciPersonUid  INTEGER  NOT NULL , ciRoleId  INTEGER  NOT NULL , ciClazzUid  INTEGER  NOT NULL , inviteType  INTEGER  NOT NULL  DEFAULT 1 , inviteContact  TEXT NOT NULL, inviteToken  TEXT NOT NULL, inviteStatus  INTEGER  NOT NULL , inviteLct  INTEGER  NOT NULL , ciUid  INTEGER  PRIMARY KEY  AUTOINCREMENT  NOT NULL )');
    } else {
      this_0.i1('ALTER TABLE ClazzEnrolment ADD COLUMN clazzEnrolmentInviteUid INTEGER NOT NULL DEFAULT 0');
      this_0.i1('CREATE TABLE IF NOT EXISTS ClazzInvite (  ciPersonUid  BIGINT  NOT NULL , ciRoleId  BIGINT  NOT NULL , ciClazzUid  BIGINT  NOT NULL , inviteType  INTEGER  NOT NULL  DEFAULT 1 , inviteContact  TEXT NOT NULL, inviteToken  TEXT NOT NULL, inviteStatus  INTEGER  NOT NULL , inviteLct  BIGINT  NOT NULL , ciUid  BIGSERIAL  PRIMARY KEY  NOT NULL )');
    }
    return this_0.f3();
  }
  function MIGRATION_207_208$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_207_208.<anonymous>.<anonymous>' call
    var tmp = dbType(db);
    Companion_getInstance_1();
    if (tmp === 1) {
      this_0.i1('ALTER TABLE ClazzInvite ADD COLUMN inviteExpire INTEGER NOT NULL DEFAULT 0');
    } else {
      this_0.i1('ALTER TABLE ClazzInvite ADD COLUMN inviteExpire BIGINT NOT NULL DEFAULT 0');
    }
    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);
      MIGRATION_203_204 = new DoorMigrationStatementList(203, 204, MIGRATION_203_204$lambda);
      MIGRATION_204_205 = new DoorMigrationStatementList(204, 205, MIGRATION_204_205$lambda);
      MIGRATION_205_206 = new DoorMigrationStatementList(205, 206, MIGRATION_205_206$lambda);
      MIGRATION_206_207 = new DoorMigrationStatementList(206, 207, MIGRATION_206_207$lambda);
      MIGRATION_207_208 = new DoorMigrationStatementList(207, 208, MIGRATION_207_208$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.wj4_1 = actorUid;
    this.xj4_1 = actorEtag;
    this.yj4_1 = actorLct;
  }
  protoOf(ActorUidEtagAndLastMod).toString = function () {
    return 'ActorUidEtagAndLastMod(actorUid=' + this.wj4_1.toString() + ', actorEtag=' + this.xj4_1.toString() + ', actorLct=' + this.yj4_1.toString() + ')';
  };
  protoOf(ActorUidEtagAndLastMod).hashCode = function () {
    var result = this.wj4_1.hashCode();
    result = imul(result, 31) + this.xj4_1.hashCode() | 0;
    result = imul(result, 31) + this.yj4_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.wj4_1.equals(tmp0_other_with_cast.wj4_1))
      return false;
    if (!this.xj4_1.equals(tmp0_other_with_cast.xj4_1))
      return false;
    if (!this.yj4_1.equals(tmp0_other_with_cast.yj4_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.t4f('canMark', true);
    tmp0_serialDesc.t4f('canView', true);
    tmp0_serialDesc.t4f('canModerate', true);
    tmp0_serialDesc.t4f('activeUserSubmitterUid', true);
    this.qk6_1 = tmp0_serialDesc;
  }
  protoOf($serializer).q44 = function () {
    return this.qk6_1;
  };
  protoOf($serializer).k4g = 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).s44 = function (decoder) {
    var tmp0_desc = this.qk6_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.i48(tmp0_desc);
    if (tmp8_input.x48()) {
      tmp4_local0 = tmp8_input.k48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.k48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.k48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.k48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.k48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.k48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.j48(tmp0_desc);
    return AssignmentPermissionAndActiveUserSubmitterUid_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer).rk6 = function (encoder, value) {
    var tmp0_desc = this.qk6_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.pdo_1 === false)) {
      tmp1_output.o49(tmp0_desc, 0, value.pdo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.qdo_1 === false)) {
      tmp1_output.o49(tmp0_desc, 1, value.qdo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.rdo_1 === false)) {
      tmp1_output.o49(tmp0_desc, 2, value.rdo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.sdo_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.sdo_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer).r44 = function (encoder, value) {
    return this.rk6(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().qk6_1);
    }
    if (0 === (seen1 & 1))
      $this.pdo_1 = false;
    else
      $this.pdo_1 = canMark;
    if (0 === (seen1 & 2))
      $this.qdo_1 = false;
    else
      $this.qdo_1 = canView;
    if (0 === (seen1 & 4))
      $this.rdo_1 = false;
    else
      $this.rdo_1 = canModerate;
    if (0 === (seen1 & 8))
      $this.sdo_1 = new Long(0, 0);
    else
      $this.sdo_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.pdo_1 = canMark;
    this.qdo_1 = canView;
    this.rdo_1 = canModerate;
    this.sdo_1 = activeUserSubmitterUid;
  }
  protoOf(AssignmentPermissionAndActiveUserSubmitterUid).toString = function () {
    return 'AssignmentPermissionAndActiveUserSubmitterUid(canMark=' + this.pdo_1 + ', canView=' + this.qdo_1 + ', canModerate=' + this.rdo_1 + ', activeUserSubmitterUid=' + this.sdo_1.toString() + ')';
  };
  protoOf(AssignmentPermissionAndActiveUserSubmitterUid).hashCode = function () {
    var result = getBooleanHashCode(this.pdo_1);
    result = imul(result, 31) + getBooleanHashCode(this.qdo_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.rdo_1) | 0;
    result = imul(result, 31) + this.sdo_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.pdo_1 === tmp0_other_with_cast.pdo_1))
      return false;
    if (!(this.qdo_1 === tmp0_other_with_cast.qdo_1))
      return false;
    if (!(this.rdo_1 === tmp0_other_with_cast.rdo_1))
      return false;
    if (!this.sdo_1.equals(tmp0_other_with_cast.sdo_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.t4f('name', true);
    tmp0_serialDesc.t4f('submitterUid', true);
    this.sk6_1 = tmp0_serialDesc;
  }
  protoOf($serializer_0).q44 = function () {
    return this.sk6_1;
  };
  protoOf($serializer_0).k4g = 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).s44 = function (decoder) {
    var tmp0_desc = this.sk6_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return AssignmentSubmitterUidAndName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_0).tk6 = function (encoder, value) {
    var tmp0_desc = this.sk6_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.d7x_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.d7x_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.e7x_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.e7x_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_0).r44 = function (encoder, value) {
    return this.tk6(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().sk6_1);
    }
    if (0 === (seen1 & 1))
      $this.d7x_1 = null;
    else
      $this.d7x_1 = name;
    if (0 === (seen1 & 2))
      $this.e7x_1 = new Long(0, 0);
    else
      $this.e7x_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.d7x_1 = name;
    this.e7x_1 = submitterUid;
  }
  protoOf(AssignmentSubmitterUidAndName).toString = function () {
    return 'AssignmentSubmitterUidAndName(name=' + this.d7x_1 + ', submitterUid=' + this.e7x_1.toString() + ')';
  };
  protoOf(AssignmentSubmitterUidAndName).hashCode = function () {
    var result = this.d7x_1 == null ? 0 : getStringHashCode(this.d7x_1);
    result = imul(result, 31) + this.e7x_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.d7x_1 == tmp0_other_with_cast.d7x_1))
      return false;
    if (!this.e7x_1.equals(tmp0_other_with_cast.e7x_1))
      return false;
    return true;
  };
  function Companion_2() {
    this.uk6_1 = 1;
    this.vk6_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.t4f('sPersonUid', true);
    tmp0_serialDesc.t4f('sCbUid', true);
    tmp0_serialDesc.t4f('sProgress', true);
    tmp0_serialDesc.t4f('sIsCompleted', true);
    tmp0_serialDesc.t4f('sIsSuccess', true);
    tmp0_serialDesc.t4f('sScoreScaled', true);
    this.wk6_1 = tmp0_serialDesc;
  }
  protoOf($serializer_1).q44 = function () {
    return this.wk6_1;
  };
  protoOf($serializer_1).k4g = 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).s44 = function (decoder) {
    var tmp0_desc = this.wk6_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.i48(tmp0_desc);
    if (tmp10_input.x48()) {
      tmp4_local0 = tmp10_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.k48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.w48(tmp0_desc, 4, BooleanSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.w48(tmp0_desc, 5, FloatSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.k48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.w48(tmp0_desc, 4, BooleanSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.w48(tmp0_desc, 5, FloatSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.j48(tmp0_desc);
    return BlockStatus_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_1).xk6 = function (encoder, value) {
    var tmp0_desc = this.wk6_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.wax_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.wax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.xax_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.xax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.yax_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, IntSerializer_getInstance(), value.yax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.zax_1 === false)) {
      tmp1_output.o49(tmp0_desc, 3, value.zax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.aay_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, BooleanSerializer_getInstance(), value.aay_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.bay_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, FloatSerializer_getInstance(), value.bay_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_1).r44 = function (encoder, value) {
    return this.xk6(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().wk6_1);
    }
    if (0 === (seen1 & 1))
      $this.wax_1 = new Long(0, 0);
    else
      $this.wax_1 = sPersonUid;
    if (0 === (seen1 & 2))
      $this.xax_1 = new Long(0, 0);
    else
      $this.xax_1 = sCbUid;
    if (0 === (seen1 & 4))
      $this.yax_1 = null;
    else
      $this.yax_1 = sProgress;
    if (0 === (seen1 & 8))
      $this.zax_1 = false;
    else
      $this.zax_1 = sIsCompleted;
    if (0 === (seen1 & 16))
      $this.aay_1 = null;
    else
      $this.aay_1 = sIsSuccess;
    if (0 === (seen1 & 32))
      $this.bay_1 = null;
    else
      $this.bay_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.wax_1 = sPersonUid;
    this.xax_1 = sCbUid;
    this.yax_1 = sProgress;
    this.zax_1 = sIsCompleted;
    this.aay_1 = sIsSuccess;
    this.bay_1 = sScoreScaled;
  }
  protoOf(BlockStatus).toString = function () {
    return 'BlockStatus(sPersonUid=' + this.wax_1.toString() + ', sCbUid=' + this.xax_1.toString() + ', sProgress=' + this.yax_1 + ', sIsCompleted=' + this.zax_1 + ', sIsSuccess=' + this.aay_1 + ', sScoreScaled=' + this.bay_1 + ')';
  };
  protoOf(BlockStatus).hashCode = function () {
    var result = this.wax_1.hashCode();
    result = imul(result, 31) + this.xax_1.hashCode() | 0;
    result = imul(result, 31) + (this.yax_1 == null ? 0 : this.yax_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.zax_1) | 0;
    result = imul(result, 31) + (this.aay_1 == null ? 0 : getBooleanHashCode(this.aay_1)) | 0;
    result = imul(result, 31) + (this.bay_1 == null ? 0 : getNumberHashCode(this.bay_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.wax_1.equals(tmp0_other_with_cast.wax_1))
      return false;
    if (!this.xax_1.equals(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 == tmp0_other_with_cast.aay_1))
      return false;
    if (!equals(this.bay_1, tmp0_other_with_cast.bay_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.t4f('clazz', true);
    tmp0_serialDesc.t4f('hasAttendancePermission', true);
    tmp0_serialDesc.t4f('hasViewMembersPermission', true);
    tmp0_serialDesc.t4f('hasLearningRecordPermission', true);
    this.yk6_1 = tmp0_serialDesc;
  }
  protoOf($serializer_2).q44 = function () {
    return this.yk6_1;
  };
  protoOf($serializer_2).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_46()), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_2).s44 = function (decoder) {
    var tmp0_desc = this.yk6_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.i48(tmp0_desc);
    if (tmp8_input.x48()) {
      tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, $serializer_getInstance_46(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.k48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.k48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.k48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, $serializer_getInstance_46(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.k48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.k48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.k48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.j48(tmp0_desc);
    return ClazzAndDetailPermissions_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_2).zk6 = function (encoder, value) {
    var tmp0_desc = this.yk6_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.z8j_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_46(), value.z8j_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.a8k_1 === false)) {
      tmp1_output.o49(tmp0_desc, 1, value.a8k_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.b8k_1 === false)) {
      tmp1_output.o49(tmp0_desc, 2, value.b8k_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.c8k_1 === false)) {
      tmp1_output.o49(tmp0_desc, 3, value.c8k_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_2).r44 = function (encoder, value) {
    return this.zk6(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().yk6_1);
    }
    if (0 === (seen1 & 1))
      $this.z8j_1 = null;
    else
      $this.z8j_1 = clazz;
    if (0 === (seen1 & 2))
      $this.a8k_1 = false;
    else
      $this.a8k_1 = hasAttendancePermission;
    if (0 === (seen1 & 4))
      $this.b8k_1 = false;
    else
      $this.b8k_1 = hasViewMembersPermission;
    if (0 === (seen1 & 8))
      $this.c8k_1 = false;
    else
      $this.c8k_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.z8j_1 = clazz;
    this.a8k_1 = hasAttendancePermission;
    this.b8k_1 = hasViewMembersPermission;
    this.c8k_1 = hasLearningRecordPermission;
  }
  protoOf(ClazzAndDetailPermissions).toString = function () {
    return 'ClazzAndDetailPermissions(clazz=' + this.z8j_1 + ', hasAttendancePermission=' + this.a8k_1 + ', hasViewMembersPermission=' + this.b8k_1 + ', hasLearningRecordPermission=' + this.c8k_1 + ')';
  };
  protoOf(ClazzAndDetailPermissions).hashCode = function () {
    var result = this.z8j_1 == null ? 0 : this.z8j_1.hashCode();
    result = imul(result, 31) + getBooleanHashCode(this.a8k_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.b8k_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.c8k_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.z8j_1, tmp0_other_with_cast.z8j_1))
      return false;
    if (!(this.a8k_1 === tmp0_other_with_cast.a8k_1))
      return false;
    if (!(this.b8k_1 === tmp0_other_with_cast.b8k_1))
      return false;
    if (!(this.c8k_1 === tmp0_other_with_cast.c8k_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.p8k_1 = clazz;
    this.q8k_1 = terminology;
    this.r8k_1 = coursePicture;
    this.s8k_1 = numStudents;
    this.t8k_1 = numTeachers;
    this.u8k_1 = activeUserIsStudent;
  }
  protoOf(ClazzAndDisplayDetails).toString = function () {
    return 'ClazzAndDisplayDetails(clazz=' + this.p8k_1 + ', terminology=' + this.q8k_1 + ', coursePicture=' + this.r8k_1 + ', numStudents=' + this.s8k_1 + ', numTeachers=' + this.t8k_1 + ', activeUserIsStudent=' + this.u8k_1 + ')';
  };
  protoOf(ClazzAndDisplayDetails).hashCode = function () {
    var result = this.p8k_1 == null ? 0 : this.p8k_1.hashCode();
    result = imul(result, 31) + (this.q8k_1 == null ? 0 : hashCode(this.q8k_1)) | 0;
    result = imul(result, 31) + (this.r8k_1 == null ? 0 : this.r8k_1.hashCode()) | 0;
    result = imul(result, 31) + this.s8k_1 | 0;
    result = imul(result, 31) + this.t8k_1 | 0;
    result = imul(result, 31) + getBooleanHashCode(this.u8k_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.p8k_1, tmp0_other_with_cast.p8k_1))
      return false;
    if (!equals(this.q8k_1, tmp0_other_with_cast.q8k_1))
      return false;
    if (!equals(this.r8k_1, tmp0_other_with_cast.r8k_1))
      return false;
    if (!(this.s8k_1 === tmp0_other_with_cast.s8k_1))
      return false;
    if (!(this.t8k_1 === tmp0_other_with_cast.t8k_1))
      return false;
    if (!(this.u8k_1 === tmp0_other_with_cast.u8k_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.t4f('assignment', true);
    tmp0_serialDesc.t4f('block', true);
    this.ak7_1 = tmp0_serialDesc;
  }
  protoOf($serializer_3).q44 = function () {
    return this.ak7_1;
  };
  protoOf($serializer_3).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_47()), get_nullable($serializer_getInstance_74())];
  };
  protoOf($serializer_3).s44 = function (decoder) {
    var tmp0_desc = this.ak7_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_47(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_74(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_47(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_74(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return ClazzAssignmentAndBlock_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_3).bk7 = function (encoder, value) {
    var tmp0_desc = this.ak7_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.r7x_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_47(), value.r7x_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.s7x_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_74(), value.s7x_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_3).r44 = function (encoder, value) {
    return this.bk7(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().ak7_1);
    }
    if (0 === (seen1 & 1))
      $this.r7x_1 = null;
    else
      $this.r7x_1 = assignment;
    if (0 === (seen1 & 2))
      $this.s7x_1 = null;
    else
      $this.s7x_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.r7x_1 = assignment;
    this.s7x_1 = block;
  }
  protoOf(ClazzAssignmentAndBlock).toString = function () {
    return 'ClazzAssignmentAndBlock(assignment=' + this.r7x_1 + ', block=' + this.s7x_1 + ')';
  };
  protoOf(ClazzAssignmentAndBlock).hashCode = function () {
    var result = this.r7x_1 == null ? 0 : this.r7x_1.hashCode();
    result = imul(result, 31) + (this.s7x_1 == null ? 0 : this.s7x_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.r7x_1, tmp0_other_with_cast.r7x_1))
      return false;
    if (!equals(this.s7x_1, tmp0_other_with_cast.s7x_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.t4f('enrolment', true);
    tmp0_serialDesc.t4f('clazz', true);
    tmp0_serialDesc.t4f('courseTerminology', true);
    this.ck7_1 = tmp0_serialDesc;
  }
  protoOf($serializer_4).q44 = function () {
    return this.ck7_1;
  };
  protoOf($serializer_4).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_49()), get_nullable($serializer_getInstance_46()), get_nullable($serializer_getInstance_81())];
  };
  protoOf($serializer_4).s44 = function (decoder) {
    var tmp0_desc = this.ck7_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.i48(tmp0_desc);
    if (tmp7_input.x48()) {
      tmp4_local0 = tmp7_input.w48(tmp0_desc, 0, $serializer_getInstance_49(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp7_input.w48(tmp0_desc, 1, $serializer_getInstance_46(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, $serializer_getInstance_81(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp7_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp7_input.w48(tmp0_desc, 0, $serializer_getInstance_49(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp7_input.w48(tmp0_desc, 1, $serializer_getInstance_46(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, $serializer_getInstance_81(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp7_input.j48(tmp0_desc);
    return ClazzEnrolmentAndPersonDetailDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
  };
  protoOf($serializer_4).dk7 = function (encoder, value) {
    var tmp0_desc = this.ck7_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.l95_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_49(), value.l95_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.m95_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_46(), value.m95_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.n95_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_81(), value.n95_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_4).r44 = function (encoder, value) {
    return this.dk7(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().ck7_1);
    }
    if (0 === (seen1 & 1))
      $this.l95_1 = null;
    else
      $this.l95_1 = enrolment;
    if (0 === (seen1 & 2))
      $this.m95_1 = null;
    else
      $this.m95_1 = clazz;
    if (0 === (seen1 & 4))
      $this.n95_1 = null;
    else
      $this.n95_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.l95_1 = enrolment;
    this.m95_1 = clazz;
    this.n95_1 = courseTerminology;
  }
  protoOf(ClazzEnrolmentAndPersonDetailDetails).toString = function () {
    return 'ClazzEnrolmentAndPersonDetailDetails(enrolment=' + this.l95_1 + ', clazz=' + this.m95_1 + ', courseTerminology=' + this.n95_1 + ')';
  };
  protoOf(ClazzEnrolmentAndPersonDetailDetails).hashCode = function () {
    var result = this.l95_1 == null ? 0 : hashCode(this.l95_1);
    result = imul(result, 31) + (this.m95_1 == null ? 0 : this.m95_1.hashCode()) | 0;
    result = imul(result, 31) + (this.n95_1 == null ? 0 : hashCode(this.n95_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.l95_1, tmp0_other_with_cast.l95_1))
      return false;
    if (!equals(this.m95_1, tmp0_other_with_cast.m95_1))
      return false;
    if (!equals(this.n95_1, tmp0_other_with_cast.n95_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.ClazzInviteAndClazz', this, 2);
    tmp0_serialDesc.t4f('clazzInvite', true);
    tmp0_serialDesc.t4f('clazz', true);
    this.ek7_1 = tmp0_serialDesc;
  }
  protoOf($serializer_5).q44 = function () {
    return this.ek7_1;
  };
  protoOf($serializer_5).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_51()), get_nullable($serializer_getInstance_46())];
  };
  protoOf($serializer_5).s44 = function (decoder) {
    var tmp0_desc = this.ek7_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_51(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_46(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_51(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_46(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return ClazzInviteAndClazz_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_5).fk7 = function (encoder, value) {
    var tmp0_desc = this.ek7_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.p9n_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_51(), value.p9n_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.q9n_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_46(), value.q9n_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_5).r44 = function (encoder, value) {
    return this.fk7(encoder, value instanceof ClazzInviteAndClazz ? value : THROW_CCE());
  };
  var $serializer_instance_5;
  function $serializer_getInstance_5() {
    if ($serializer_instance_5 == null)
      new $serializer_5();
    return $serializer_instance_5;
  }
  function ClazzInviteAndClazz_init_$Init$(seen1, clazzInvite, clazz, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_5().ek7_1);
    }
    if (0 === (seen1 & 1))
      $this.p9n_1 = null;
    else
      $this.p9n_1 = clazzInvite;
    if (0 === (seen1 & 2))
      $this.q9n_1 = null;
    else
      $this.q9n_1 = clazz;
    return $this;
  }
  function ClazzInviteAndClazz_init_$Create$(seen1, clazzInvite, clazz, serializationConstructorMarker) {
    return ClazzInviteAndClazz_init_$Init$(seen1, clazzInvite, clazz, serializationConstructorMarker, objectCreate(protoOf(ClazzInviteAndClazz)));
  }
  function ClazzInviteAndClazz(clazzInvite, clazz) {
    clazzInvite = clazzInvite === VOID ? null : clazzInvite;
    clazz = clazz === VOID ? null : clazz;
    this.p9n_1 = clazzInvite;
    this.q9n_1 = clazz;
  }
  protoOf(ClazzInviteAndClazz).toString = function () {
    return 'ClazzInviteAndClazz(clazzInvite=' + this.p9n_1 + ', clazz=' + this.q9n_1 + ')';
  };
  protoOf(ClazzInviteAndClazz).hashCode = function () {
    var result = this.p9n_1 == null ? 0 : this.p9n_1.hashCode();
    result = imul(result, 31) + (this.q9n_1 == null ? 0 : this.q9n_1.hashCode()) | 0;
    return result;
  };
  protoOf(ClazzInviteAndClazz).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ClazzInviteAndClazz))
      return false;
    var tmp0_other_with_cast = other instanceof ClazzInviteAndClazz ? other : THROW_CCE();
    if (!equals(this.p9n_1, tmp0_other_with_cast.p9n_1))
      return false;
    if (!equals(this.q9n_1, tmp0_other_with_cast.q9n_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.ClazzInviteWithTimeZone', this, 2);
    tmp0_serialDesc.t4f('clazzInvite', true);
    tmp0_serialDesc.t4f('timeZone', true);
    this.gk7_1 = tmp0_serialDesc;
  }
  protoOf($serializer_6).q44 = function () {
    return this.gk7_1;
  };
  protoOf($serializer_6).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_51()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_6).s44 = function (decoder) {
    var tmp0_desc = this.gk7_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_51(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_51(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return ClazzInviteWithTimeZone_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_6).hk7 = function (encoder, value) {
    var tmp0_desc = this.gk7_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.n9n_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_51(), value.n9n_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.o9n_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.o9n_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_6).r44 = function (encoder, value) {
    return this.hk7(encoder, value instanceof ClazzInviteWithTimeZone ? value : THROW_CCE());
  };
  var $serializer_instance_6;
  function $serializer_getInstance_6() {
    if ($serializer_instance_6 == null)
      new $serializer_6();
    return $serializer_instance_6;
  }
  function ClazzInviteWithTimeZone_init_$Init$(seen1, clazzInvite, timeZone, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_6().gk7_1);
    }
    if (0 === (seen1 & 1))
      $this.n9n_1 = null;
    else
      $this.n9n_1 = clazzInvite;
    if (0 === (seen1 & 2))
      $this.o9n_1 = null;
    else
      $this.o9n_1 = timeZone;
    return $this;
  }
  function ClazzInviteWithTimeZone_init_$Create$(seen1, clazzInvite, timeZone, serializationConstructorMarker) {
    return ClazzInviteWithTimeZone_init_$Init$(seen1, clazzInvite, timeZone, serializationConstructorMarker, objectCreate(protoOf(ClazzInviteWithTimeZone)));
  }
  function ClazzInviteWithTimeZone(clazzInvite, timeZone) {
    clazzInvite = clazzInvite === VOID ? null : clazzInvite;
    timeZone = timeZone === VOID ? null : timeZone;
    this.n9n_1 = clazzInvite;
    this.o9n_1 = timeZone;
  }
  protoOf(ClazzInviteWithTimeZone).toString = function () {
    return 'ClazzInviteWithTimeZone(clazzInvite=' + this.n9n_1 + ', timeZone=' + this.o9n_1 + ')';
  };
  protoOf(ClazzInviteWithTimeZone).hashCode = function () {
    var result = this.n9n_1 == null ? 0 : this.n9n_1.hashCode();
    result = imul(result, 31) + (this.o9n_1 == null ? 0 : getStringHashCode(this.o9n_1)) | 0;
    return result;
  };
  protoOf(ClazzInviteWithTimeZone).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ClazzInviteWithTimeZone))
      return false;
    var tmp0_other_with_cast = other instanceof ClazzInviteWithTimeZone ? other : THROW_CCE();
    if (!equals(this.n9n_1, tmp0_other_with_cast.n9n_1))
      return false;
    if (!(this.o9n_1 == tmp0_other_with_cast.o9n_1))
      return false;
    return true;
  };
  function Companion_8() {
  }
  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.ClazzNameAndTerminology', this, 2);
    tmp0_serialDesc.t4f('clazzName', true);
    tmp0_serialDesc.t4f('terminology', true);
    this.ik7_1 = tmp0_serialDesc;
  }
  protoOf($serializer_7).q44 = function () {
    return this.ik7_1;
  };
  protoOf($serializer_7).k4g = 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_81())];
  };
  protoOf($serializer_7).s44 = function (decoder) {
    var tmp0_desc = this.ik7_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_81(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_81(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return ClazzNameAndTerminology_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_7).jk7 = function (encoder, value) {
    var tmp0_desc = this.ik7_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.t8l_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.t8l_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.u8l_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_81(), value.u8l_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_7).r44 = function (encoder, value) {
    return this.jk7(encoder, value instanceof ClazzNameAndTerminology ? value : THROW_CCE());
  };
  var $serializer_instance_7;
  function $serializer_getInstance_7() {
    if ($serializer_instance_7 == null)
      new $serializer_7();
    return $serializer_instance_7;
  }
  function ClazzNameAndTerminology_init_$Init$(seen1, clazzName, terminology, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_7().ik7_1);
    }
    if (0 === (seen1 & 1))
      $this.t8l_1 = null;
    else
      $this.t8l_1 = clazzName;
    if (0 === (seen1 & 2))
      $this.u8l_1 = null;
    else
      $this.u8l_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.t8l_1 = clazzName;
    this.u8l_1 = terminology;
  }
  protoOf(ClazzNameAndTerminology).toString = function () {
    return 'ClazzNameAndTerminology(clazzName=' + this.t8l_1 + ', terminology=' + this.u8l_1 + ')';
  };
  protoOf(ClazzNameAndTerminology).hashCode = function () {
    var result = this.t8l_1 == null ? 0 : getStringHashCode(this.t8l_1);
    result = imul(result, 31) + (this.u8l_1 == null ? 0 : hashCode(this.u8l_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.t8l_1 == tmp0_other_with_cast.t8l_1))
      return false;
    if (!equals(this.u8l_1, tmp0_other_with_cast.u8l_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.CommentsAndName', this, 4);
    tmp0_serialDesc.t4f('comment', true);
    tmp0_serialDesc.t4f('firstNames', true);
    tmp0_serialDesc.t4f('lastName', true);
    tmp0_serialDesc.t4f('pictureUri', true);
    this.kk7_1 = tmp0_serialDesc;
  }
  protoOf($serializer_8).q44 = function () {
    return this.kk7_1;
  };
  protoOf($serializer_8).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [$serializer_getInstance_56(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_8).s44 = function (decoder) {
    var tmp0_desc = this.kk7_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.i48(tmp0_desc);
    if (tmp8_input.x48()) {
      tmp4_local0 = tmp8_input.u48(tmp0_desc, 0, $serializer_getInstance_56(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.u48(tmp0_desc, 0, $serializer_getInstance_56(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.j48(tmp0_desc);
    return CommentsAndName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_8).lk7 = function (encoder, value) {
    var tmp0_desc = this.kk7_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.qad_1.equals(new Comments())) {
      tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance_56(), value.qad_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.rad_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.rad_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.sad_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.sad_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.tad_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.tad_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_8).r44 = function (encoder, value) {
    return this.lk7(encoder, value instanceof CommentsAndName ? value : THROW_CCE());
  };
  var $serializer_instance_8;
  function $serializer_getInstance_8() {
    if ($serializer_instance_8 == null)
      new $serializer_8();
    return $serializer_instance_8;
  }
  function CommentsAndName_init_$Init$(seen1, comment, firstNames, lastName, pictureUri, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_8().kk7_1);
    }
    if (0 === (seen1 & 1))
      $this.qad_1 = new Comments();
    else
      $this.qad_1 = comment;
    if (0 === (seen1 & 2))
      $this.rad_1 = null;
    else
      $this.rad_1 = firstNames;
    if (0 === (seen1 & 4))
      $this.sad_1 = null;
    else
      $this.sad_1 = lastName;
    if (0 === (seen1 & 8))
      $this.tad_1 = null;
    else
      $this.tad_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.qad_1 = comment;
    this.rad_1 = firstNames;
    this.sad_1 = lastName;
    this.tad_1 = pictureUri;
  }
  protoOf(CommentsAndName).toString = function () {
    return 'CommentsAndName(comment=' + this.qad_1 + ', firstNames=' + this.rad_1 + ', lastName=' + this.sad_1 + ', pictureUri=' + this.tad_1 + ')';
  };
  protoOf(CommentsAndName).hashCode = function () {
    var result = this.qad_1.hashCode();
    result = imul(result, 31) + (this.rad_1 == null ? 0 : getStringHashCode(this.rad_1)) | 0;
    result = imul(result, 31) + (this.sad_1 == null ? 0 : getStringHashCode(this.sad_1)) | 0;
    result = imul(result, 31) + (this.tad_1 == null ? 0 : getStringHashCode(this.tad_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.qad_1.equals(tmp0_other_with_cast.qad_1))
      return false;
    if (!(this.rad_1 == tmp0_other_with_cast.rad_1))
      return false;
    if (!(this.sad_1 == tmp0_other_with_cast.sad_1))
      return false;
    if (!(this.tad_1 == tmp0_other_with_cast.tad_1))
      return false;
    return true;
  };
  function Companion_10() {
  }
  protoOf(Companion_10).n4r = function () {
    return $serializer_getInstance_9();
  };
  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.ContentEntryAndContentJob', this, 4);
    tmp0_serialDesc.t4f('entry', true);
    tmp0_serialDesc.t4f('contentJob', true);
    tmp0_serialDesc.t4f('contentJobItem', true);
    tmp0_serialDesc.t4f('picture', true);
    this.mk7_1 = tmp0_serialDesc;
  }
  protoOf($serializer_9).q44 = function () {
    return this.mk7_1;
  };
  protoOf($serializer_9).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_59()), get_nullable($serializer_getInstance_70()), get_nullable($serializer_getInstance_61()), get_nullable($serializer_getInstance_64())];
  };
  protoOf($serializer_9).s44 = function (decoder) {
    var tmp0_desc = this.mk7_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.i48(tmp0_desc);
    if (tmp8_input.x48()) {
      tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, $serializer_getInstance_59(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, $serializer_getInstance_70(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, $serializer_getInstance_61(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, $serializer_getInstance_64(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, $serializer_getInstance_59(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, $serializer_getInstance_70(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, $serializer_getInstance_61(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, $serializer_getInstance_64(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.j48(tmp0_desc);
    return ContentEntryAndContentJob_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_9).nk7 = function (encoder, value) {
    var tmp0_desc = this.mk7_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.ok7_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_59(), value.ok7_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.pk7_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_70(), value.pk7_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.qk7_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_61(), value.qk7_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.rk7_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, $serializer_getInstance_64(), value.rk7_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_9).r44 = function (encoder, value) {
    return this.nk7(encoder, value instanceof ContentEntryAndContentJob ? value : THROW_CCE());
  };
  var $serializer_instance_9;
  function $serializer_getInstance_9() {
    if ($serializer_instance_9 == null)
      new $serializer_9();
    return $serializer_instance_9;
  }
  function ContentEntryAndContentJob_init_$Init$(seen1, entry, contentJob, contentJobItem, picture, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_9().mk7_1);
    }
    if (0 === (seen1 & 1))
      $this.ok7_1 = null;
    else
      $this.ok7_1 = entry;
    if (0 === (seen1 & 2))
      $this.pk7_1 = null;
    else
      $this.pk7_1 = contentJob;
    if (0 === (seen1 & 4))
      $this.qk7_1 = null;
    else
      $this.qk7_1 = contentJobItem;
    if (0 === (seen1 & 8))
      $this.rk7_1 = null;
    else
      $this.rk7_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.ok7_1 = entry;
    this.pk7_1 = contentJob;
    this.qk7_1 = contentJobItem;
    this.rk7_1 = picture;
  }
  protoOf(ContentEntryAndContentJob).sk7 = function (entry, contentJob, contentJobItem, picture) {
    return new ContentEntryAndContentJob(entry, contentJob, contentJobItem, picture);
  };
  protoOf(ContentEntryAndContentJob).tk7 = function (entry, contentJob, contentJobItem, picture, $super) {
    entry = entry === VOID ? this.ok7_1 : entry;
    contentJob = contentJob === VOID ? this.pk7_1 : contentJob;
    contentJobItem = contentJobItem === VOID ? this.qk7_1 : contentJobItem;
    picture = picture === VOID ? this.rk7_1 : picture;
    return $super === VOID ? this.sk7(entry, contentJob, contentJobItem, picture) : $super.sk7.call(this, entry, contentJob, contentJobItem, picture);
  };
  protoOf(ContentEntryAndContentJob).toString = function () {
    return 'ContentEntryAndContentJob(entry=' + this.ok7_1 + ', contentJob=' + this.pk7_1 + ', contentJobItem=' + this.qk7_1 + ', picture=' + this.rk7_1 + ')';
  };
  protoOf(ContentEntryAndContentJob).hashCode = function () {
    var result = this.ok7_1 == null ? 0 : this.ok7_1.hashCode();
    result = imul(result, 31) + (this.pk7_1 == null ? 0 : this.pk7_1.hashCode()) | 0;
    result = imul(result, 31) + (this.qk7_1 == null ? 0 : this.qk7_1.hashCode()) | 0;
    result = imul(result, 31) + (this.rk7_1 == null ? 0 : this.rk7_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.ok7_1, tmp0_other_with_cast.ok7_1))
      return false;
    if (!equals(this.pk7_1, tmp0_other_with_cast.pk7_1))
      return false;
    if (!equals(this.qk7_1, tmp0_other_with_cast.qk7_1))
      return false;
    if (!equals(this.rk7_1, tmp0_other_with_cast.rk7_1))
      return false;
    return true;
  };
  function Companion_11() {
  }
  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.ContentEntryAndDetail', this, 4);
    tmp0_serialDesc.t4f('entry', true);
    tmp0_serialDesc.t4f('latestVersion', true);
    tmp0_serialDesc.t4f('picture', true);
    tmp0_serialDesc.t4f('status', true);
    this.uk7_1 = tmp0_serialDesc;
  }
  protoOf($serializer_10).q44 = function () {
    return this.uk7_1;
  };
  protoOf($serializer_10).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_59()), get_nullable($serializer_getInstance_68()), get_nullable($serializer_getInstance_64()), get_nullable($serializer_getInstance_1())];
  };
  protoOf($serializer_10).s44 = function (decoder) {
    var tmp0_desc = this.uk7_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.i48(tmp0_desc);
    if (tmp8_input.x48()) {
      tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, $serializer_getInstance_59(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, $serializer_getInstance_68(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, $serializer_getInstance_64(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, $serializer_getInstance_1(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, $serializer_getInstance_59(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, $serializer_getInstance_68(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, $serializer_getInstance_64(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, $serializer_getInstance_1(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.j48(tmp0_desc);
    return ContentEntryAndDetail_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_10).vk7 = function (encoder, value) {
    var tmp0_desc = this.uk7_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.hax_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_59(), value.hax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.iax_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_68(), value.iax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.jax_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_64(), value.jax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.kax_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, $serializer_getInstance_1(), value.kax_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_10).r44 = function (encoder, value) {
    return this.vk7(encoder, value instanceof ContentEntryAndDetail ? value : THROW_CCE());
  };
  var $serializer_instance_10;
  function $serializer_getInstance_10() {
    if ($serializer_instance_10 == null)
      new $serializer_10();
    return $serializer_instance_10;
  }
  function ContentEntryAndDetail_init_$Init$(seen1, entry, latestVersion, picture, status, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_10().uk7_1);
    }
    if (0 === (seen1 & 1))
      $this.hax_1 = null;
    else
      $this.hax_1 = entry;
    if (0 === (seen1 & 2))
      $this.iax_1 = null;
    else
      $this.iax_1 = latestVersion;
    if (0 === (seen1 & 4))
      $this.jax_1 = null;
    else
      $this.jax_1 = picture;
    if (0 === (seen1 & 8))
      $this.kax_1 = null;
    else
      $this.kax_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.hax_1 = entry;
    this.iax_1 = latestVersion;
    this.jax_1 = picture;
    this.kax_1 = status;
  }
  protoOf(ContentEntryAndDetail).toString = function () {
    return 'ContentEntryAndDetail(entry=' + this.hax_1 + ', latestVersion=' + this.iax_1 + ', picture=' + this.jax_1 + ', status=' + this.kax_1 + ')';
  };
  protoOf(ContentEntryAndDetail).hashCode = function () {
    var result = this.hax_1 == null ? 0 : this.hax_1.hashCode();
    result = imul(result, 31) + (this.iax_1 == null ? 0 : this.iax_1.hashCode()) | 0;
    result = imul(result, 31) + (this.jax_1 == null ? 0 : this.jax_1.hashCode()) | 0;
    result = imul(result, 31) + (this.kax_1 == null ? 0 : this.kax_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.hax_1, tmp0_other_with_cast.hax_1))
      return false;
    if (!equals(this.iax_1, tmp0_other_with_cast.iax_1))
      return false;
    if (!equals(this.jax_1, tmp0_other_with_cast.jax_1))
      return false;
    if (!equals(this.kax_1, tmp0_other_with_cast.kax_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.qay_1 = contentEntry;
    this.ray_1 = picture;
    this.say_1 = contentEntryParentChildJoin;
    this.tay_1 = status;
  }
  protoOf(ContentEntryAndListDetail).toString = function () {
    return 'ContentEntryAndListDetail(contentEntry=' + this.qay_1 + ', picture=' + this.ray_1 + ', contentEntryParentChildJoin=' + this.say_1 + ', status=' + this.tay_1 + ')';
  };
  protoOf(ContentEntryAndListDetail).hashCode = function () {
    var result = this.qay_1 == null ? 0 : this.qay_1.hashCode();
    result = imul(result, 31) + (this.ray_1 == null ? 0 : this.ray_1.hashCode()) | 0;
    result = imul(result, 31) + (this.say_1 == null ? 0 : this.say_1.hashCode()) | 0;
    result = imul(result, 31) + (this.tay_1 == null ? 0 : this.tay_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.qay_1, tmp0_other_with_cast.qay_1))
      return false;
    if (!equals(this.ray_1, tmp0_other_with_cast.ray_1))
      return false;
    if (!equals(this.say_1, tmp0_other_with_cast.say_1))
      return false;
    if (!equals(this.tay_1, tmp0_other_with_cast.tay_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.ContentEntryAndPicture', this, 2);
    tmp0_serialDesc.t4f('entry', true);
    tmp0_serialDesc.t4f('picture', true);
    this.wk7_1 = tmp0_serialDesc;
  }
  protoOf($serializer_11).q44 = function () {
    return this.wk7_1;
  };
  protoOf($serializer_11).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_59()), get_nullable($serializer_getInstance_64())];
  };
  protoOf($serializer_11).s44 = function (decoder) {
    var tmp0_desc = this.wk7_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_59(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_64(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_59(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_64(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return ContentEntryAndPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_11).xk7 = function (encoder, value) {
    var tmp0_desc = this.wk7_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.bax_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_59(), value.bax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.cax_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_64(), value.cax_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_11).r44 = function (encoder, value) {
    return this.xk7(encoder, value instanceof ContentEntryAndPicture ? value : THROW_CCE());
  };
  var $serializer_instance_11;
  function $serializer_getInstance_11() {
    if ($serializer_instance_11 == null)
      new $serializer_11();
    return $serializer_instance_11;
  }
  function ContentEntryAndPicture_init_$Init$(seen1, entry, picture, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_11().wk7_1);
    }
    if (0 === (seen1 & 1))
      $this.bax_1 = null;
    else
      $this.bax_1 = entry;
    if (0 === (seen1 & 2))
      $this.cax_1 = null;
    else
      $this.cax_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.bax_1 = entry;
    this.cax_1 = picture;
  }
  protoOf(ContentEntryAndPicture).toString = function () {
    return 'ContentEntryAndPicture(entry=' + this.bax_1 + ', picture=' + this.cax_1 + ')';
  };
  protoOf(ContentEntryAndPicture).hashCode = function () {
    var result = this.bax_1 == null ? 0 : this.bax_1.hashCode();
    result = imul(result, 31) + (this.cax_1 == null ? 0 : this.cax_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.bax_1, tmp0_other_with_cast.bax_1))
      return false;
    if (!equals(this.cax_1, tmp0_other_with_cast.cax_1))
      return false;
    return true;
  };
  function Companion_13() {
  }
  protoOf(Companion_13).n4r = function () {
    return $serializer_getInstance_12();
  };
  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.ContentEntryImportJobProgress', this, 6);
    tmp0_serialDesc.t4f('cjiUid', true);
    tmp0_serialDesc.t4f('cjiItemProgress', true);
    tmp0_serialDesc.t4f('cjiItemTotal', true);
    tmp0_serialDesc.t4f('cjiStatus', true);
    tmp0_serialDesc.t4f('cjiError', true);
    tmp0_serialDesc.t4f('cjiOwnerPersonUid', true);
    this.yk7_1 = tmp0_serialDesc;
  }
  protoOf($serializer_12).q44 = function () {
    return this.yk7_1;
  };
  protoOf($serializer_12).k4g = 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_12).s44 = function (decoder) {
    var tmp0_desc = this.yk7_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.i48(tmp0_desc);
    if (tmp10_input.x48()) {
      tmp4_local0 = tmp10_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.n48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.n48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.j48(tmp0_desc);
    return ContentEntryImportJobProgress_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_12).zk7 = function (encoder, value) {
    var tmp0_desc = this.yk7_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.pbb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.pbb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.qbb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.qbb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.rbb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.rbb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.sbb_1 === 4)) {
      tmp1_output.r49(tmp0_desc, 3, value.sbb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.tbb_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.tbb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.ubb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.ubb_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_12).r44 = function (encoder, value) {
    return this.zk7(encoder, value instanceof ContentEntryImportJobProgress ? value : THROW_CCE());
  };
  var $serializer_instance_12;
  function $serializer_getInstance_12() {
    if ($serializer_instance_12 == null)
      new $serializer_12();
    return $serializer_instance_12;
  }
  function ContentEntryImportJobProgress_init_$Init$(seen1, cjiUid, cjiItemProgress, cjiItemTotal, cjiStatus, cjiError, cjiOwnerPersonUid, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_12().yk7_1);
    }
    if (0 === (seen1 & 1))
      $this.pbb_1 = new Long(0, 0);
    else
      $this.pbb_1 = cjiUid;
    if (0 === (seen1 & 2))
      $this.qbb_1 = new Long(0, 0);
    else
      $this.qbb_1 = cjiItemProgress;
    if (0 === (seen1 & 4))
      $this.rbb_1 = new Long(0, 0);
    else
      $this.rbb_1 = cjiItemTotal;
    if (0 === (seen1 & 8))
      $this.sbb_1 = 4;
    else
      $this.sbb_1 = cjiStatus;
    if (0 === (seen1 & 16))
      $this.tbb_1 = null;
    else
      $this.tbb_1 = cjiError;
    if (0 === (seen1 & 32))
      $this.ubb_1 = new Long(0, 0);
    else
      $this.ubb_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.pbb_1 = cjiUid;
    this.qbb_1 = cjiItemProgress;
    this.rbb_1 = cjiItemTotal;
    this.sbb_1 = cjiStatus;
    this.tbb_1 = cjiError;
    this.ubb_1 = cjiOwnerPersonUid;
  }
  protoOf(ContentEntryImportJobProgress).toString = function () {
    return 'ContentEntryImportJobProgress(cjiUid=' + this.pbb_1.toString() + ', cjiItemProgress=' + this.qbb_1.toString() + ', cjiItemTotal=' + this.rbb_1.toString() + ', cjiStatus=' + this.sbb_1 + ', cjiError=' + this.tbb_1 + ', cjiOwnerPersonUid=' + this.ubb_1.toString() + ')';
  };
  protoOf(ContentEntryImportJobProgress).hashCode = function () {
    var result = this.pbb_1.hashCode();
    result = imul(result, 31) + this.qbb_1.hashCode() | 0;
    result = imul(result, 31) + this.rbb_1.hashCode() | 0;
    result = imul(result, 31) + this.sbb_1 | 0;
    result = imul(result, 31) + (this.tbb_1 == null ? 0 : getStringHashCode(this.tbb_1)) | 0;
    result = imul(result, 31) + this.ubb_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.pbb_1.equals(tmp0_other_with_cast.pbb_1))
      return false;
    if (!this.qbb_1.equals(tmp0_other_with_cast.qbb_1))
      return false;
    if (!this.rbb_1.equals(tmp0_other_with_cast.rbb_1))
      return false;
    if (!(this.sbb_1 === tmp0_other_with_cast.sbb_1))
      return false;
    if (!(this.tbb_1 == tmp0_other_with_cast.tbb_1))
      return false;
    if (!this.ubb_1.equals(tmp0_other_with_cast.ubb_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.CourseAssignmentMarkAndMarkerName', this, 4);
    tmp0_serialDesc.t4f('courseAssignmentMark', true);
    tmp0_serialDesc.t4f('markerFirstNames', true);
    tmp0_serialDesc.t4f('markerLastName', true);
    tmp0_serialDesc.t4f('markerPictureUri', true);
    this.ak8_1 = tmp0_serialDesc;
  }
  protoOf($serializer_13).q44 = function () {
    return this.ak8_1;
  };
  protoOf($serializer_13).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_71()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_13).s44 = function (decoder) {
    var tmp0_desc = this.ak8_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.i48(tmp0_desc);
    if (tmp8_input.x48()) {
      tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, $serializer_getInstance_71(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, $serializer_getInstance_71(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.j48(tmp0_desc);
    return CourseAssignmentMarkAndMarkerName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_13).bk8 = function (encoder, value) {
    var tmp0_desc = this.ak8_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.rbw_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_71(), value.rbw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.sbw_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.sbw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.tbw_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.tbw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.ubw_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.ubw_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_13).r44 = function (encoder, value) {
    return this.bk8(encoder, value instanceof CourseAssignmentMarkAndMarkerName ? value : THROW_CCE());
  };
  var $serializer_instance_13;
  function $serializer_getInstance_13() {
    if ($serializer_instance_13 == null)
      new $serializer_13();
    return $serializer_instance_13;
  }
  function CourseAssignmentMarkAndMarkerName_init_$Init$(seen1, courseAssignmentMark, markerFirstNames, markerLastName, markerPictureUri, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_13().ak8_1);
    }
    if (0 === (seen1 & 1))
      $this.rbw_1 = null;
    else
      $this.rbw_1 = courseAssignmentMark;
    if (0 === (seen1 & 2))
      $this.sbw_1 = null;
    else
      $this.sbw_1 = markerFirstNames;
    if (0 === (seen1 & 4))
      $this.tbw_1 = null;
    else
      $this.tbw_1 = markerLastName;
    if (0 === (seen1 & 8))
      $this.ubw_1 = null;
    else
      $this.ubw_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.rbw_1 = courseAssignmentMark;
    this.sbw_1 = markerFirstNames;
    this.tbw_1 = markerLastName;
    this.ubw_1 = markerPictureUri;
  }
  protoOf(CourseAssignmentMarkAndMarkerName).toString = function () {
    return 'CourseAssignmentMarkAndMarkerName(courseAssignmentMark=' + this.rbw_1 + ', markerFirstNames=' + this.sbw_1 + ', markerLastName=' + this.tbw_1 + ', markerPictureUri=' + this.ubw_1 + ')';
  };
  protoOf(CourseAssignmentMarkAndMarkerName).hashCode = function () {
    var result = this.rbw_1 == null ? 0 : hashCode(this.rbw_1);
    result = imul(result, 31) + (this.sbw_1 == null ? 0 : getStringHashCode(this.sbw_1)) | 0;
    result = imul(result, 31) + (this.tbw_1 == null ? 0 : getStringHashCode(this.tbw_1)) | 0;
    result = imul(result, 31) + (this.ubw_1 == null ? 0 : getStringHashCode(this.ubw_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.rbw_1, tmp0_other_with_cast.rbw_1))
      return false;
    if (!(this.sbw_1 == tmp0_other_with_cast.sbw_1))
      return false;
    if (!(this.tbw_1 == tmp0_other_with_cast.tbw_1))
      return false;
    if (!(this.ubw_1 == tmp0_other_with_cast.ubw_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.CourseAssignmentSubmissionFileAndTransferJob', this, 2);
    tmp0_serialDesc.t4f('submissionFile', true);
    tmp0_serialDesc.t4f('transferJobItem', true);
    this.ck8_1 = tmp0_serialDesc;
  }
  protoOf($serializer_14).q44 = function () {
    return this.ck8_1;
  };
  protoOf($serializer_14).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_73()), get_nullable($serializer_getInstance_117())];
  };
  protoOf($serializer_14).s44 = function (decoder) {
    var tmp0_desc = this.ck8_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_73(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_117(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_73(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_117(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return CourseAssignmentSubmissionFileAndTransferJob_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_14).dk8 = function (encoder, value) {
    var tmp0_desc = this.ck8_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.wcb_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_73(), value.wcb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.xcb_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_117(), value.xcb_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_14).r44 = function (encoder, value) {
    return this.dk8(encoder, value instanceof CourseAssignmentSubmissionFileAndTransferJob ? value : THROW_CCE());
  };
  var $serializer_instance_14;
  function $serializer_getInstance_14() {
    if ($serializer_instance_14 == null)
      new $serializer_14();
    return $serializer_instance_14;
  }
  function CourseAssignmentSubmissionFileAndTransferJob_init_$Init$(seen1, submissionFile, transferJobItem, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_14().ck8_1);
    }
    if (0 === (seen1 & 1))
      $this.wcb_1 = null;
    else
      $this.wcb_1 = submissionFile;
    if (0 === (seen1 & 2))
      $this.xcb_1 = null;
    else
      $this.xcb_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.wcb_1 = submissionFile;
    this.xcb_1 = transferJobItem;
  }
  protoOf(CourseAssignmentSubmissionFileAndTransferJob).toString = function () {
    return 'CourseAssignmentSubmissionFileAndTransferJob(submissionFile=' + this.wcb_1 + ', transferJobItem=' + this.xcb_1 + ')';
  };
  protoOf(CourseAssignmentSubmissionFileAndTransferJob).hashCode = function () {
    var result = this.wcb_1 == null ? 0 : this.wcb_1.hashCode();
    result = imul(result, 31) + (this.xcb_1 == null ? 0 : this.xcb_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.wcb_1, tmp0_other_with_cast.wcb_1))
      return false;
    if (!equals(this.xcb_1, tmp0_other_with_cast.xcb_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.CourseBlockAndAssignment', this, 2);
    tmp0_serialDesc.t4f('courseBlock', true);
    tmp0_serialDesc.t4f('assignment', true);
    this.ek8_1 = tmp0_serialDesc;
  }
  protoOf($serializer_15).q44 = function () {
    return this.ek8_1;
  };
  protoOf($serializer_15).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_74()), get_nullable($serializer_getInstance_47())];
  };
  protoOf($serializer_15).s44 = function (decoder) {
    var tmp0_desc = this.ek8_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_74(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_47(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_74(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_47(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return CourseBlockAndAssignment_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_15).fk8 = function (encoder, value) {
    var tmp0_desc = this.ek8_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.uco_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_74(), value.uco_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.vco_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_47(), value.vco_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_15).r44 = function (encoder, value) {
    return this.fk8(encoder, value instanceof CourseBlockAndAssignment ? value : THROW_CCE());
  };
  var $serializer_instance_15;
  function $serializer_getInstance_15() {
    if ($serializer_instance_15 == null)
      new $serializer_15();
    return $serializer_instance_15;
  }
  function CourseBlockAndAssignment_init_$Init$(seen1, courseBlock, assignment, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_15().ek8_1);
    }
    if (0 === (seen1 & 1))
      $this.uco_1 = null;
    else
      $this.uco_1 = courseBlock;
    if (0 === (seen1 & 2))
      $this.vco_1 = null;
    else
      $this.vco_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.uco_1 = courseBlock;
    this.vco_1 = assignment;
  }
  protoOf(CourseBlockAndAssignment).toString = function () {
    return 'CourseBlockAndAssignment(courseBlock=' + this.uco_1 + ', assignment=' + this.vco_1 + ')';
  };
  protoOf(CourseBlockAndAssignment).hashCode = function () {
    var result = this.uco_1 == null ? 0 : this.uco_1.hashCode();
    result = imul(result, 31) + (this.vco_1 == null ? 0 : this.vco_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.uco_1, tmp0_other_with_cast.uco_1))
      return false;
    if (!equals(this.vco_1, tmp0_other_with_cast.vco_1))
      return false;
    return true;
  };
  function Companion_17() {
  }
  var Companion_instance_18;
  function Companion_getInstance_20() {
    return Companion_instance_18;
  }
  function $serializer_16() {
    $serializer_instance_16 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndDbEntities', this, 6);
    tmp0_serialDesc.t4f('courseBlock', true);
    tmp0_serialDesc.t4f('courseBlockPicture', true);
    tmp0_serialDesc.t4f('contentEntry', true);
    tmp0_serialDesc.t4f('contentEntryLang', true);
    tmp0_serialDesc.t4f('assignment', true);
    tmp0_serialDesc.t4f('assignmentCourseGroupSetName', true);
    this.gk8_1 = tmp0_serialDesc;
  }
  protoOf($serializer_16).q44 = function () {
    return this.gk8_1;
  };
  protoOf($serializer_16).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_74()), get_nullable($serializer_getInstance_75()), get_nullable($serializer_getInstance_59()), get_nullable($serializer_getInstance_90()), get_nullable($serializer_getInstance_47()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_16).s44 = function (decoder) {
    var tmp0_desc = this.gk8_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.i48(tmp0_desc);
    if (tmp10_input.x48()) {
      tmp4_local0 = tmp10_input.w48(tmp0_desc, 0, $serializer_getInstance_74(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, $serializer_getInstance_75(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, $serializer_getInstance_59(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, $serializer_getInstance_90(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.w48(tmp0_desc, 4, $serializer_getInstance_47(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.w48(tmp0_desc, 0, $serializer_getInstance_74(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, $serializer_getInstance_75(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, $serializer_getInstance_59(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, $serializer_getInstance_90(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.w48(tmp0_desc, 4, $serializer_getInstance_47(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.j48(tmp0_desc);
    return CourseBlockAndDbEntities_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_16).hk8 = function (encoder, value) {
    var tmp0_desc = this.gk8_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.icn_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_74(), value.icn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.jcn_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_75(), value.jcn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.kcn_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_59(), value.kcn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.lcn_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, $serializer_getInstance_90(), value.lcn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.mcn_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, $serializer_getInstance_47(), value.mcn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.ncn_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.ncn_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_16).r44 = function (encoder, value) {
    return this.hk8(encoder, value instanceof CourseBlockAndDbEntities ? value : THROW_CCE());
  };
  var $serializer_instance_16;
  function $serializer_getInstance_16() {
    if ($serializer_instance_16 == null)
      new $serializer_16();
    return $serializer_instance_16;
  }
  function CourseBlockAndDbEntities_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryLang, assignment, assignmentCourseGroupSetName, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_16().gk8_1);
    }
    if (0 === (seen1 & 1))
      $this.icn_1 = null;
    else
      $this.icn_1 = courseBlock;
    if (0 === (seen1 & 2))
      $this.jcn_1 = null;
    else
      $this.jcn_1 = courseBlockPicture;
    if (0 === (seen1 & 4))
      $this.kcn_1 = null;
    else
      $this.kcn_1 = contentEntry;
    if (0 === (seen1 & 8))
      $this.lcn_1 = null;
    else
      $this.lcn_1 = contentEntryLang;
    if (0 === (seen1 & 16))
      $this.mcn_1 = null;
    else
      $this.mcn_1 = assignment;
    if (0 === (seen1 & 32))
      $this.ncn_1 = null;
    else
      $this.ncn_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.icn_1 = courseBlock;
    this.jcn_1 = courseBlockPicture;
    this.kcn_1 = contentEntry;
    this.lcn_1 = contentEntryLang;
    this.mcn_1 = assignment;
    this.ncn_1 = assignmentCourseGroupSetName;
  }
  protoOf(CourseBlockAndDbEntities).toString = function () {
    return 'CourseBlockAndDbEntities(courseBlock=' + this.icn_1 + ', courseBlockPicture=' + this.jcn_1 + ', contentEntry=' + this.kcn_1 + ', contentEntryLang=' + this.lcn_1 + ', assignment=' + this.mcn_1 + ', assignmentCourseGroupSetName=' + this.ncn_1 + ')';
  };
  protoOf(CourseBlockAndDbEntities).hashCode = function () {
    var result = this.icn_1 == null ? 0 : this.icn_1.hashCode();
    result = imul(result, 31) + (this.jcn_1 == null ? 0 : this.jcn_1.hashCode()) | 0;
    result = imul(result, 31) + (this.kcn_1 == null ? 0 : this.kcn_1.hashCode()) | 0;
    result = imul(result, 31) + (this.lcn_1 == null ? 0 : this.lcn_1.hashCode()) | 0;
    result = imul(result, 31) + (this.mcn_1 == null ? 0 : this.mcn_1.hashCode()) | 0;
    result = imul(result, 31) + (this.ncn_1 == null ? 0 : getStringHashCode(this.ncn_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.icn_1, tmp0_other_with_cast.icn_1))
      return false;
    if (!equals(this.jcn_1, tmp0_other_with_cast.jcn_1))
      return false;
    if (!equals(this.kcn_1, tmp0_other_with_cast.kcn_1))
      return false;
    if (!equals(this.lcn_1, tmp0_other_with_cast.lcn_1))
      return false;
    if (!equals(this.mcn_1, tmp0_other_with_cast.mcn_1))
      return false;
    if (!(this.ncn_1 == tmp0_other_with_cast.ncn_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.CourseBlockAndDisplayDetails', this, 4);
    tmp0_serialDesc.t4f('courseBlock', true);
    tmp0_serialDesc.t4f('courseBlockPicture', true);
    tmp0_serialDesc.t4f('contentEntry', true);
    tmp0_serialDesc.t4f('contentEntryPicture2', true);
    this.ik8_1 = tmp0_serialDesc;
  }
  protoOf($serializer_17).q44 = function () {
    return this.ik8_1;
  };
  protoOf($serializer_17).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_74()), get_nullable($serializer_getInstance_75()), get_nullable($serializer_getInstance_59()), get_nullable($serializer_getInstance_64())];
  };
  protoOf($serializer_17).s44 = function (decoder) {
    var tmp0_desc = this.ik8_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.i48(tmp0_desc);
    if (tmp8_input.x48()) {
      tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, $serializer_getInstance_74(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, $serializer_getInstance_75(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, $serializer_getInstance_59(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, $serializer_getInstance_64(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, $serializer_getInstance_74(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, $serializer_getInstance_75(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, $serializer_getInstance_59(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, $serializer_getInstance_64(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.j48(tmp0_desc);
    return CourseBlockAndDisplayDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_17).jk8 = function (encoder, value) {
    var tmp0_desc = this.ik8_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.zcn_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_74(), value.zcn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.aco_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_75(), value.aco_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.bco_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_59(), value.bco_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.cco_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, $serializer_getInstance_64(), value.cco_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_17).r44 = function (encoder, value) {
    return this.jk8(encoder, value instanceof CourseBlockAndDisplayDetails ? value : THROW_CCE());
  };
  var $serializer_instance_17;
  function $serializer_getInstance_17() {
    if ($serializer_instance_17 == null)
      new $serializer_17();
    return $serializer_instance_17;
  }
  function CourseBlockAndDisplayDetails_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_17().ik8_1);
    }
    if (0 === (seen1 & 1))
      $this.zcn_1 = null;
    else
      $this.zcn_1 = courseBlock;
    if (0 === (seen1 & 2))
      $this.aco_1 = null;
    else
      $this.aco_1 = courseBlockPicture;
    if (0 === (seen1 & 4))
      $this.bco_1 = null;
    else
      $this.bco_1 = contentEntry;
    if (0 === (seen1 & 8))
      $this.cco_1 = null;
    else
      $this.cco_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.zcn_1 = courseBlock;
    this.aco_1 = courseBlockPicture;
    this.bco_1 = contentEntry;
    this.cco_1 = contentEntryPicture2;
  }
  protoOf(CourseBlockAndDisplayDetails).toString = function () {
    return 'CourseBlockAndDisplayDetails(courseBlock=' + this.zcn_1 + ', courseBlockPicture=' + this.aco_1 + ', contentEntry=' + this.bco_1 + ', contentEntryPicture2=' + this.cco_1 + ')';
  };
  protoOf(CourseBlockAndDisplayDetails).hashCode = function () {
    var result = this.zcn_1 == null ? 0 : this.zcn_1.hashCode();
    result = imul(result, 31) + (this.aco_1 == null ? 0 : this.aco_1.hashCode()) | 0;
    result = imul(result, 31) + (this.bco_1 == null ? 0 : this.bco_1.hashCode()) | 0;
    result = imul(result, 31) + (this.cco_1 == null ? 0 : this.cco_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.zcn_1, tmp0_other_with_cast.zcn_1))
      return false;
    if (!equals(this.aco_1, tmp0_other_with_cast.aco_1))
      return false;
    if (!equals(this.bco_1, tmp0_other_with_cast.bco_1))
      return false;
    if (!equals(this.cco_1, tmp0_other_with_cast.cco_1))
      return false;
    return true;
  };
  function Companion_19() {
    Companion_instance_20 = this;
    var tmp = this;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    tmp.kk8_1 = [null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_95())];
  }
  protoOf(Companion_19).n4r = function () {
    return $serializer_getInstance_18();
  };
  var Companion_instance_20;
  function Companion_getInstance_22() {
    if (Companion_instance_20 == null)
      new Companion_19();
    return Companion_instance_20;
  }
  function $serializer_18() {
    $serializer_instance_18 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndEditEntities', this, 10);
    tmp0_serialDesc.t4f('courseBlock', false);
    tmp0_serialDesc.t4f('courseBlockPicture', true);
    tmp0_serialDesc.t4f('contentEntry', true);
    tmp0_serialDesc.t4f('contentEntryPicture', true);
    tmp0_serialDesc.t4f('contentJobItem', true);
    tmp0_serialDesc.t4f('contentJob', true);
    tmp0_serialDesc.t4f('contentEntryLang', true);
    tmp0_serialDesc.t4f('assignment', true);
    tmp0_serialDesc.t4f('assignmentCourseGroupSetName', true);
    tmp0_serialDesc.t4f('assignmentPeerAllocations', true);
    this.lk8_1 = tmp0_serialDesc;
  }
  protoOf($serializer_18).q44 = function () {
    return this.lk8_1;
  };
  protoOf($serializer_18).k4g = function () {
    var tmp0_cached = Companion_getInstance_22().kk8_1;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [$serializer_getInstance_74(), get_nullable($serializer_getInstance_75()), get_nullable($serializer_getInstance_59()), get_nullable($serializer_getInstance_64()), get_nullable($serializer_getInstance_61()), get_nullable($serializer_getInstance_70()), get_nullable($serializer_getInstance_90()), get_nullable($serializer_getInstance_47()), get_nullable(StringSerializer_getInstance()), tmp0_cached[9]];
  };
  protoOf($serializer_18).s44 = function (decoder) {
    var tmp0_desc = this.lk8_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.i48(tmp0_desc);
    var tmp15_cached = Companion_getInstance_22().kk8_1;
    if (tmp14_input.x48()) {
      tmp4_local0 = tmp14_input.u48(tmp0_desc, 0, $serializer_getInstance_74(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp14_input.w48(tmp0_desc, 1, $serializer_getInstance_75(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp14_input.w48(tmp0_desc, 2, $serializer_getInstance_59(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp14_input.w48(tmp0_desc, 3, $serializer_getInstance_64(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp14_input.w48(tmp0_desc, 4, $serializer_getInstance_61(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp14_input.w48(tmp0_desc, 5, $serializer_getInstance_70(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp14_input.w48(tmp0_desc, 6, $serializer_getInstance_90(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp14_input.w48(tmp0_desc, 7, $serializer_getInstance_47(), tmp11_local7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp14_input.w48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp14_input.u48(tmp0_desc, 9, tmp15_cached[9], tmp13_local9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp14_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp14_input.u48(tmp0_desc, 0, $serializer_getInstance_74(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp14_input.w48(tmp0_desc, 1, $serializer_getInstance_75(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp14_input.w48(tmp0_desc, 2, $serializer_getInstance_59(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp14_input.w48(tmp0_desc, 3, $serializer_getInstance_64(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp14_input.w48(tmp0_desc, 4, $serializer_getInstance_61(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp14_input.w48(tmp0_desc, 5, $serializer_getInstance_70(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp14_input.w48(tmp0_desc, 6, $serializer_getInstance_90(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp14_input.w48(tmp0_desc, 7, $serializer_getInstance_47(), tmp11_local7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp14_input.w48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp14_input.u48(tmp0_desc, 9, tmp15_cached[9], tmp13_local9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp14_input.j48(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_18).mk8 = function (encoder, value) {
    var tmp0_desc = this.lk8_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    var tmp2_cached = Companion_getInstance_22().kk8_1;
    tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance_74(), value.nk8_1);
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.ok8_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_75(), value.ok8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.pk8_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_59(), value.pk8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.qk8_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, $serializer_getInstance_64(), value.qk8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.rk8_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, $serializer_getInstance_61(), value.rk8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.sk8_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, $serializer_getInstance_70(), value.sk8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.tk8_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 6, $serializer_getInstance_90(), value.tk8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.uk8_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 7, $serializer_getInstance_47(), value.uk8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.vk8_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 8, StringSerializer_getInstance(), value.vk8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !equals(value.wk8_1, emptyList())) {
      tmp1_output.y49(tmp0_desc, 9, tmp2_cached[9], value.wk8_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_18).r44 = function (encoder, value) {
    return this.mk8(encoder, value instanceof CourseBlockAndEditEntities ? value : THROW_CCE());
  };
  var $serializer_instance_18;
  function $serializer_getInstance_18() {
    if ($serializer_instance_18 == null)
      new $serializer_18();
    return $serializer_instance_18;
  }
  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_18().lk8_1);
    }
    $this.nk8_1 = courseBlock;
    if (0 === (seen1 & 2))
      $this.ok8_1 = null;
    else
      $this.ok8_1 = courseBlockPicture;
    if (0 === (seen1 & 4))
      $this.pk8_1 = null;
    else
      $this.pk8_1 = contentEntry;
    if (0 === (seen1 & 8))
      $this.qk8_1 = null;
    else
      $this.qk8_1 = contentEntryPicture;
    if (0 === (seen1 & 16))
      $this.rk8_1 = null;
    else
      $this.rk8_1 = contentJobItem;
    if (0 === (seen1 & 32))
      $this.sk8_1 = null;
    else
      $this.sk8_1 = contentJob;
    if (0 === (seen1 & 64))
      $this.tk8_1 = null;
    else
      $this.tk8_1 = contentEntryLang;
    if (0 === (seen1 & 128))
      $this.uk8_1 = null;
    else
      $this.uk8_1 = assignment;
    if (0 === (seen1 & 256))
      $this.vk8_1 = null;
    else
      $this.vk8_1 = assignmentCourseGroupSetName;
    if (0 === (seen1 & 512))
      $this.wk8_1 = emptyList();
    else
      $this.wk8_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_22();
    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.nk8_1 = courseBlock;
    this.ok8_1 = courseBlockPicture;
    this.pk8_1 = contentEntry;
    this.qk8_1 = contentEntryPicture;
    this.rk8_1 = contentJobItem;
    this.sk8_1 = contentJob;
    this.tk8_1 = contentEntryLang;
    this.uk8_1 = assignment;
    this.vk8_1 = assignmentCourseGroupSetName;
    this.wk8_1 = assignmentPeerAllocations;
  }
  protoOf(CourseBlockAndEditEntities).xk8 = function () {
    return new ContentEntryAndContentJob(this.pk8_1, this.sk8_1, this.rk8_1, this.qk8_1);
  };
  protoOf(CourseBlockAndEditEntities).yk8 = 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).zk8 = function (courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations, $super) {
    courseBlock = courseBlock === VOID ? this.nk8_1 : courseBlock;
    courseBlockPicture = courseBlockPicture === VOID ? this.ok8_1 : courseBlockPicture;
    contentEntry = contentEntry === VOID ? this.pk8_1 : contentEntry;
    contentEntryPicture = contentEntryPicture === VOID ? this.qk8_1 : contentEntryPicture;
    contentJobItem = contentJobItem === VOID ? this.rk8_1 : contentJobItem;
    contentJob = contentJob === VOID ? this.sk8_1 : contentJob;
    contentEntryLang = contentEntryLang === VOID ? this.tk8_1 : contentEntryLang;
    assignment = assignment === VOID ? this.uk8_1 : assignment;
    assignmentCourseGroupSetName = assignmentCourseGroupSetName === VOID ? this.vk8_1 : assignmentCourseGroupSetName;
    assignmentPeerAllocations = assignmentPeerAllocations === VOID ? this.wk8_1 : assignmentPeerAllocations;
    return $super === VOID ? this.yk8(courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations) : $super.yk8.call(this, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations);
  };
  protoOf(CourseBlockAndEditEntities).toString = function () {
    return 'CourseBlockAndEditEntities(courseBlock=' + this.nk8_1 + ', courseBlockPicture=' + this.ok8_1 + ', contentEntry=' + this.pk8_1 + ', contentEntryPicture=' + this.qk8_1 + ', contentJobItem=' + this.rk8_1 + ', contentJob=' + this.sk8_1 + ', contentEntryLang=' + this.tk8_1 + ', assignment=' + this.uk8_1 + ', assignmentCourseGroupSetName=' + this.vk8_1 + ', assignmentPeerAllocations=' + this.wk8_1 + ')';
  };
  protoOf(CourseBlockAndEditEntities).hashCode = function () {
    var result = this.nk8_1.hashCode();
    result = imul(result, 31) + (this.ok8_1 == null ? 0 : this.ok8_1.hashCode()) | 0;
    result = imul(result, 31) + (this.pk8_1 == null ? 0 : this.pk8_1.hashCode()) | 0;
    result = imul(result, 31) + (this.qk8_1 == null ? 0 : this.qk8_1.hashCode()) | 0;
    result = imul(result, 31) + (this.rk8_1 == null ? 0 : this.rk8_1.hashCode()) | 0;
    result = imul(result, 31) + (this.sk8_1 == null ? 0 : this.sk8_1.hashCode()) | 0;
    result = imul(result, 31) + (this.tk8_1 == null ? 0 : this.tk8_1.hashCode()) | 0;
    result = imul(result, 31) + (this.uk8_1 == null ? 0 : this.uk8_1.hashCode()) | 0;
    result = imul(result, 31) + (this.vk8_1 == null ? 0 : getStringHashCode(this.vk8_1)) | 0;
    result = imul(result, 31) + hashCode(this.wk8_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.nk8_1.equals(tmp0_other_with_cast.nk8_1))
      return false;
    if (!equals(this.ok8_1, tmp0_other_with_cast.ok8_1))
      return false;
    if (!equals(this.pk8_1, tmp0_other_with_cast.pk8_1))
      return false;
    if (!equals(this.qk8_1, tmp0_other_with_cast.qk8_1))
      return false;
    if (!equals(this.rk8_1, tmp0_other_with_cast.rk8_1))
      return false;
    if (!equals(this.sk8_1, tmp0_other_with_cast.sk8_1))
      return false;
    if (!equals(this.tk8_1, tmp0_other_with_cast.tk8_1))
      return false;
    if (!equals(this.uk8_1, tmp0_other_with_cast.uk8_1))
      return false;
    if (!(this.vk8_1 == tmp0_other_with_cast.vk8_1))
      return false;
    if (!equals(this.wk8_1, tmp0_other_with_cast.wk8_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.CourseBlockAndGradebookDisplayDetails', this, 4);
    tmp0_serialDesc.t4f('block', true);
    tmp0_serialDesc.t4f('courseBlockPicture', true);
    tmp0_serialDesc.t4f('contentEntry', true);
    tmp0_serialDesc.t4f('contentEntryPicture2', true);
    this.ak9_1 = tmp0_serialDesc;
  }
  protoOf($serializer_19).q44 = function () {
    return this.ak9_1;
  };
  protoOf($serializer_19).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_74()), get_nullable($serializer_getInstance_75()), get_nullable($serializer_getInstance_59()), get_nullable($serializer_getInstance_64())];
  };
  protoOf($serializer_19).s44 = function (decoder) {
    var tmp0_desc = this.ak9_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.i48(tmp0_desc);
    if (tmp8_input.x48()) {
      tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, $serializer_getInstance_74(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, $serializer_getInstance_75(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, $serializer_getInstance_59(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, $serializer_getInstance_64(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, $serializer_getInstance_74(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, $serializer_getInstance_75(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, $serializer_getInstance_59(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, $serializer_getInstance_64(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.j48(tmp0_desc);
    return CourseBlockAndGradebookDisplayDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_19).bk9 = function (encoder, value) {
    var tmp0_desc = this.ak9_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.hcp_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_74(), value.hcp_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.icp_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_75(), value.icp_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.jcp_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_59(), value.jcp_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.kcp_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, $serializer_getInstance_64(), value.kcp_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_19).r44 = function (encoder, value) {
    return this.bk9(encoder, value instanceof CourseBlockAndGradebookDisplayDetails ? value : THROW_CCE());
  };
  var $serializer_instance_19;
  function $serializer_getInstance_19() {
    if ($serializer_instance_19 == null)
      new $serializer_19();
    return $serializer_instance_19;
  }
  function CourseBlockAndGradebookDisplayDetails_init_$Init$(seen1, block, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_19().ak9_1);
    }
    if (0 === (seen1 & 1))
      $this.hcp_1 = null;
    else
      $this.hcp_1 = block;
    if (0 === (seen1 & 2))
      $this.icp_1 = null;
    else
      $this.icp_1 = courseBlockPicture;
    if (0 === (seen1 & 4))
      $this.jcp_1 = null;
    else
      $this.jcp_1 = contentEntry;
    if (0 === (seen1 & 8))
      $this.kcp_1 = null;
    else
      $this.kcp_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.hcp_1 = block;
    this.icp_1 = courseBlockPicture;
    this.jcp_1 = contentEntry;
    this.kcp_1 = contentEntryPicture2;
  }
  protoOf(CourseBlockAndGradebookDisplayDetails).toString = function () {
    return 'CourseBlockAndGradebookDisplayDetails(block=' + this.hcp_1 + ', courseBlockPicture=' + this.icp_1 + ', contentEntry=' + this.jcp_1 + ', contentEntryPicture2=' + this.kcp_1 + ')';
  };
  protoOf(CourseBlockAndGradebookDisplayDetails).hashCode = function () {
    var result = this.hcp_1 == null ? 0 : this.hcp_1.hashCode();
    result = imul(result, 31) + (this.icp_1 == null ? 0 : this.icp_1.hashCode()) | 0;
    result = imul(result, 31) + (this.jcp_1 == null ? 0 : this.jcp_1.hashCode()) | 0;
    result = imul(result, 31) + (this.kcp_1 == null ? 0 : this.kcp_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.hcp_1, tmp0_other_with_cast.hcp_1))
      return false;
    if (!equals(this.icp_1, tmp0_other_with_cast.icp_1))
      return false;
    if (!equals(this.jcp_1, tmp0_other_with_cast.jcp_1))
      return false;
    if (!equals(this.kcp_1, tmp0_other_with_cast.kcp_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.CourseBlockAndPicture', this, 2);
    tmp0_serialDesc.t4f('block', true);
    tmp0_serialDesc.t4f('picture', true);
    this.ck9_1 = tmp0_serialDesc;
  }
  protoOf($serializer_20).q44 = function () {
    return this.ck9_1;
  };
  protoOf($serializer_20).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_74()), get_nullable($serializer_getInstance_75())];
  };
  protoOf($serializer_20).s44 = function (decoder) {
    var tmp0_desc = this.ck9_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_74(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_75(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_74(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_75(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return CourseBlockAndPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_20).dk9 = function (encoder, value) {
    var tmp0_desc = this.ck9_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.vcm_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_74(), value.vcm_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.wcm_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_75(), value.wcm_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_20).r44 = function (encoder, value) {
    return this.dk9(encoder, value instanceof CourseBlockAndPicture ? value : THROW_CCE());
  };
  var $serializer_instance_20;
  function $serializer_getInstance_20() {
    if ($serializer_instance_20 == null)
      new $serializer_20();
    return $serializer_instance_20;
  }
  function CourseBlockAndPicture_init_$Init$(seen1, block, picture, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_20().ck9_1);
    }
    if (0 === (seen1 & 1))
      $this.vcm_1 = null;
    else
      $this.vcm_1 = block;
    if (0 === (seen1 & 2))
      $this.wcm_1 = null;
    else
      $this.wcm_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.vcm_1 = block;
    this.wcm_1 = picture;
  }
  protoOf(CourseBlockAndPicture).toString = function () {
    return 'CourseBlockAndPicture(block=' + this.vcm_1 + ', picture=' + this.wcm_1 + ')';
  };
  protoOf(CourseBlockAndPicture).hashCode = function () {
    var result = this.vcm_1 == null ? 0 : this.vcm_1.hashCode();
    result = imul(result, 31) + (this.wcm_1 == null ? 0 : this.wcm_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.vcm_1, tmp0_other_with_cast.vcm_1))
      return false;
    if (!equals(this.wcm_1, tmp0_other_with_cast.wcm_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.CourseBlockUidAndClazzUid', this, 2);
    tmp0_serialDesc.t4f('clazzUid', true);
    tmp0_serialDesc.t4f('courseBlockUid', true);
    this.ek9_1 = tmp0_serialDesc;
  }
  protoOf($serializer_21).q44 = function () {
    return this.ek9_1;
  };
  protoOf($serializer_21).k4g = 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_21).s44 = function (decoder) {
    var tmp0_desc = this.ek9_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return CourseBlockUidAndClazzUid_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_21).fk9 = function (encoder, value) {
    var tmp0_desc = this.ek9_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.sco_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.sco_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.tco_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.tco_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_21).r44 = function (encoder, value) {
    return this.fk9(encoder, value instanceof CourseBlockUidAndClazzUid ? value : THROW_CCE());
  };
  var $serializer_instance_21;
  function $serializer_getInstance_21() {
    if ($serializer_instance_21 == null)
      new $serializer_21();
    return $serializer_instance_21;
  }
  function CourseBlockUidAndClazzUid_init_$Init$(seen1, clazzUid, courseBlockUid, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_21().ek9_1);
    }
    if (0 === (seen1 & 1))
      $this.sco_1 = new Long(0, 0);
    else
      $this.sco_1 = clazzUid;
    if (0 === (seen1 & 2))
      $this.tco_1 = new Long(0, 0);
    else
      $this.tco_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.sco_1 = clazzUid;
    this.tco_1 = courseBlockUid;
  }
  protoOf(CourseBlockUidAndClazzUid).toString = function () {
    return 'CourseBlockUidAndClazzUid(clazzUid=' + this.sco_1.toString() + ', courseBlockUid=' + this.tco_1.toString() + ')';
  };
  protoOf(CourseBlockUidAndClazzUid).hashCode = function () {
    var result = this.sco_1.hashCode();
    result = imul(result, 31) + this.tco_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.sco_1.equals(tmp0_other_with_cast.sco_1))
      return false;
    if (!this.tco_1.equals(tmp0_other_with_cast.tco_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.CourseGroupMemberAndPerson', this, 2);
    tmp0_serialDesc.t4f('courseGroupMember', true);
    tmp0_serialDesc.t4f('person', true);
    this.gk9_1 = tmp0_serialDesc;
  }
  protoOf($serializer_22).q44 = function () {
    return this.gk9_1;
  };
  protoOf($serializer_22).k4g = 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($serializer_getInstance_96())];
  };
  protoOf($serializer_22).s44 = function (decoder) {
    var tmp0_desc = this.gk9_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_76(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_96(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_76(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_96(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return CourseGroupMemberAndPerson_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_22).hk9 = function (encoder, value) {
    var tmp0_desc = this.gk9_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.bd6_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_76(), value.bd6_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.cd6_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_96(), value.cd6_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_22).r44 = function (encoder, value) {
    return this.hk9(encoder, value instanceof CourseGroupMemberAndPerson ? value : THROW_CCE());
  };
  var $serializer_instance_22;
  function $serializer_getInstance_22() {
    if ($serializer_instance_22 == null)
      new $serializer_22();
    return $serializer_instance_22;
  }
  function CourseGroupMemberAndPerson_init_$Init$(seen1, courseGroupMember, person, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_22().gk9_1);
    }
    if (0 === (seen1 & 1))
      $this.bd6_1 = null;
    else
      $this.bd6_1 = courseGroupMember;
    if (0 === (seen1 & 2))
      $this.cd6_1 = null;
    else
      $this.cd6_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.bd6_1 = courseGroupMember;
    this.cd6_1 = person;
  }
  protoOf(CourseGroupMemberAndPerson).toString = function () {
    return 'CourseGroupMemberAndPerson(courseGroupMember=' + this.bd6_1 + ', person=' + this.cd6_1 + ')';
  };
  protoOf(CourseGroupMemberAndPerson).hashCode = function () {
    var result = this.bd6_1 == null ? 0 : this.bd6_1.hashCode();
    result = imul(result, 31) + (this.cd6_1 == null ? 0 : this.cd6_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.bd6_1, tmp0_other_with_cast.bd6_1))
      return false;
    if (!equals(this.cd6_1, tmp0_other_with_cast.cd6_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.CourseNameAndPersonName', this, 3);
    tmp0_serialDesc.t4f('clazzName', true);
    tmp0_serialDesc.t4f('firstNames', true);
    tmp0_serialDesc.t4f('lastName', true);
    this.ik9_1 = tmp0_serialDesc;
  }
  protoOf($serializer_23).q44 = function () {
    return this.ik9_1;
  };
  protoOf($serializer_23).k4g = 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_23).s44 = function (decoder) {
    var tmp0_desc = this.ik9_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.i48(tmp0_desc);
    if (tmp7_input.x48()) {
      tmp4_local0 = tmp7_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp7_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp7_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp7_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp7_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp7_input.j48(tmp0_desc);
    return CourseNameAndPersonName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
  };
  protoOf($serializer_23).jk9 = function (encoder, value) {
    var tmp0_desc = this.ik9_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.d9a_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.d9a_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.e9a_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.e9a_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.f9a_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.f9a_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_23).r44 = function (encoder, value) {
    return this.jk9(encoder, value instanceof CourseNameAndPersonName ? value : THROW_CCE());
  };
  var $serializer_instance_23;
  function $serializer_getInstance_23() {
    if ($serializer_instance_23 == null)
      new $serializer_23();
    return $serializer_instance_23;
  }
  function CourseNameAndPersonName_init_$Init$(seen1, clazzName, firstNames, lastName, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_23().ik9_1);
    }
    if (0 === (seen1 & 1))
      $this.d9a_1 = null;
    else
      $this.d9a_1 = clazzName;
    if (0 === (seen1 & 2))
      $this.e9a_1 = null;
    else
      $this.e9a_1 = firstNames;
    if (0 === (seen1 & 4))
      $this.f9a_1 = null;
    else
      $this.f9a_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.d9a_1 = clazzName;
    this.e9a_1 = firstNames;
    this.f9a_1 = lastName;
  }
  protoOf(CourseNameAndPersonName).toString = function () {
    return 'CourseNameAndPersonName(clazzName=' + this.d9a_1 + ', firstNames=' + this.e9a_1 + ', lastName=' + this.f9a_1 + ')';
  };
  protoOf(CourseNameAndPersonName).hashCode = function () {
    var result = this.d9a_1 == null ? 0 : getStringHashCode(this.d9a_1);
    result = imul(result, 31) + (this.e9a_1 == null ? 0 : getStringHashCode(this.e9a_1)) | 0;
    result = imul(result, 31) + (this.f9a_1 == null ? 0 : getStringHashCode(this.f9a_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.d9a_1 == tmp0_other_with_cast.d9a_1))
      return false;
    if (!(this.e9a_1 == tmp0_other_with_cast.e9a_1))
      return false;
    if (!(this.f9a_1 == tmp0_other_with_cast.f9a_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.hdl_1 = coursePermission;
    this.idl_1 = person;
    this.jdl_1 = personPicture;
  }
  protoOf(CoursePermissionAndListDetail).toString = function () {
    return 'CoursePermissionAndListDetail(coursePermission=' + this.hdl_1 + ', person=' + this.idl_1 + ', personPicture=' + this.jdl_1 + ')';
  };
  protoOf(CoursePermissionAndListDetail).hashCode = function () {
    var result = this.hdl_1 == null ? 0 : this.hdl_1.hashCode();
    result = imul(result, 31) + (this.idl_1 == null ? 0 : this.idl_1.hashCode()) | 0;
    result = imul(result, 31) + (this.jdl_1 == null ? 0 : this.jdl_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.hdl_1, tmp0_other_with_cast.hdl_1))
      return false;
    if (!equals(this.idl_1, tmp0_other_with_cast.idl_1))
      return false;
    if (!equals(this.jdl_1, tmp0_other_with_cast.jdl_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.DiscussionPostAndPosterNames', this, 4);
    tmp0_serialDesc.t4f('discussionPost', true);
    tmp0_serialDesc.t4f('firstNames', true);
    tmp0_serialDesc.t4f('lastName', true);
    tmp0_serialDesc.t4f('personPictureUri', true);
    this.kk9_1 = tmp0_serialDesc;
  }
  protoOf($serializer_24).q44 = function () {
    return this.kk9_1;
  };
  protoOf($serializer_24).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_83()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_24).s44 = function (decoder) {
    var tmp0_desc = this.kk9_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.i48(tmp0_desc);
    if (tmp8_input.x48()) {
      tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, $serializer_getInstance_83(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, $serializer_getInstance_83(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.j48(tmp0_desc);
    return DiscussionPostAndPosterNames_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_24).lk9 = function (encoder, value) {
    var tmp0_desc = this.kk9_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.nep_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_83(), value.nep_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.oep_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.oep_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.pep_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.pep_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.qep_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.qep_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_24).r44 = function (encoder, value) {
    return this.lk9(encoder, value instanceof DiscussionPostAndPosterNames ? value : THROW_CCE());
  };
  var $serializer_instance_24;
  function $serializer_getInstance_24() {
    if ($serializer_instance_24 == null)
      new $serializer_24();
    return $serializer_instance_24;
  }
  function DiscussionPostAndPosterNames_init_$Init$(seen1, discussionPost, firstNames, lastName, personPictureUri, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_24().kk9_1);
    }
    if (0 === (seen1 & 1))
      $this.nep_1 = null;
    else
      $this.nep_1 = discussionPost;
    if (0 === (seen1 & 2))
      $this.oep_1 = null;
    else
      $this.oep_1 = firstNames;
    if (0 === (seen1 & 4))
      $this.pep_1 = null;
    else
      $this.pep_1 = lastName;
    if (0 === (seen1 & 8))
      $this.qep_1 = null;
    else
      $this.qep_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.nep_1 = discussionPost;
    this.oep_1 = firstNames;
    this.pep_1 = lastName;
    this.qep_1 = personPictureUri;
  }
  protoOf(DiscussionPostAndPosterNames).toString = function () {
    return 'DiscussionPostAndPosterNames(discussionPost=' + this.nep_1 + ', firstNames=' + this.oep_1 + ', lastName=' + this.pep_1 + ', personPictureUri=' + this.qep_1 + ')';
  };
  protoOf(DiscussionPostAndPosterNames).hashCode = function () {
    var result = this.nep_1 == null ? 0 : hashCode(this.nep_1);
    result = imul(result, 31) + (this.oep_1 == null ? 0 : getStringHashCode(this.oep_1)) | 0;
    result = imul(result, 31) + (this.pep_1 == null ? 0 : getStringHashCode(this.pep_1)) | 0;
    result = imul(result, 31) + (this.qep_1 == null ? 0 : getStringHashCode(this.qep_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.nep_1, tmp0_other_with_cast.nep_1))
      return false;
    if (!(this.oep_1 == tmp0_other_with_cast.oep_1))
      return false;
    if (!(this.pep_1 == tmp0_other_with_cast.pep_1))
      return false;
    if (!(this.qep_1 == tmp0_other_with_cast.qep_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.EditAndViewPermission', this, 2);
    tmp0_serialDesc.t4f('hasViewPermission', true);
    tmp0_serialDesc.t4f('hasEditPermission', true);
    this.mk9_1 = tmp0_serialDesc;
  }
  protoOf($serializer_25).q44 = function () {
    return this.mk9_1;
  };
  protoOf($serializer_25).k4g = 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_25).s44 = function (decoder) {
    var tmp0_desc = this.mk9_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.k48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.k48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.k48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.k48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return EditAndViewPermission_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_25).nk9 = function (encoder, value) {
    var tmp0_desc = this.mk9_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.bi3_1 === false)) {
      tmp1_output.o49(tmp0_desc, 0, value.bi3_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.ci3_1 === false)) {
      tmp1_output.o49(tmp0_desc, 1, value.ci3_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_25).r44 = function (encoder, value) {
    return this.nk9(encoder, value instanceof EditAndViewPermission ? value : THROW_CCE());
  };
  var $serializer_instance_25;
  function $serializer_getInstance_25() {
    if ($serializer_instance_25 == null)
      new $serializer_25();
    return $serializer_instance_25;
  }
  function EditAndViewPermission_init_$Init$(seen1, hasViewPermission, hasEditPermission, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_25().mk9_1);
    }
    if (0 === (seen1 & 1))
      $this.bi3_1 = false;
    else
      $this.bi3_1 = hasViewPermission;
    if (0 === (seen1 & 2))
      $this.ci3_1 = false;
    else
      $this.ci3_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.bi3_1 = hasViewPermission;
    this.ci3_1 = hasEditPermission;
  }
  protoOf(EditAndViewPermission).toString = function () {
    return 'EditAndViewPermission(hasViewPermission=' + this.bi3_1 + ', hasEditPermission=' + this.ci3_1 + ')';
  };
  protoOf(EditAndViewPermission).hashCode = function () {
    var result = getBooleanHashCode(this.bi3_1);
    result = imul(result, 31) + getBooleanHashCode(this.ci3_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.bi3_1 === tmp0_other_with_cast.bi3_1))
      return false;
    if (!(this.ci3_1 === tmp0_other_with_cast.ci3_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.EnrolmentRequestAndCoursePic', this, 2);
    tmp0_serialDesc.t4f('enrolmentRequest', true);
    tmp0_serialDesc.t4f('coursePicture', true);
    this.ok9_1 = tmp0_serialDesc;
  }
  protoOf($serializer_26).q44 = function () {
    return this.ok9_1;
  };
  protoOf($serializer_26).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_85()), get_nullable($serializer_getInstance_80())];
  };
  protoOf($serializer_26).s44 = function (decoder) {
    var tmp0_desc = this.ok9_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_85(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_80(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_85(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_80(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return EnrolmentRequestAndCoursePic_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_26).pk9 = function (encoder, value) {
    var tmp0_desc = this.ok9_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.yey_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_85(), value.yey_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.zey_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_80(), value.zey_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_26).r44 = function (encoder, value) {
    return this.pk9(encoder, value instanceof EnrolmentRequestAndCoursePic ? value : THROW_CCE());
  };
  var $serializer_instance_26;
  function $serializer_getInstance_26() {
    if ($serializer_instance_26 == null)
      new $serializer_26();
    return $serializer_instance_26;
  }
  function EnrolmentRequestAndCoursePic_init_$Init$(seen1, enrolmentRequest, coursePicture, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_26().ok9_1);
    }
    if (0 === (seen1 & 1))
      $this.yey_1 = null;
    else
      $this.yey_1 = enrolmentRequest;
    if (0 === (seen1 & 2))
      $this.zey_1 = null;
    else
      $this.zey_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.yey_1 = enrolmentRequest;
    this.zey_1 = coursePicture;
  }
  protoOf(EnrolmentRequestAndCoursePic).toString = function () {
    return 'EnrolmentRequestAndCoursePic(enrolmentRequest=' + this.yey_1 + ', coursePicture=' + this.zey_1 + ')';
  };
  protoOf(EnrolmentRequestAndCoursePic).hashCode = function () {
    var result = this.yey_1 == null ? 0 : this.yey_1.hashCode();
    result = imul(result, 31) + (this.zey_1 == null ? 0 : this.zey_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.yey_1, tmp0_other_with_cast.yey_1))
      return false;
    if (!equals(this.zey_1, tmp0_other_with_cast.zey_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.mez_1 = enrolmentRequest;
    this.nez_1 = personPicture;
    this.oez_1 = person;
  }
  protoOf(EnrolmentRequestAndPersonDetails).toString = function () {
    return 'EnrolmentRequestAndPersonDetails(enrolmentRequest=' + this.mez_1 + ', personPicture=' + this.nez_1 + ', person=' + this.oez_1 + ')';
  };
  protoOf(EnrolmentRequestAndPersonDetails).hashCode = function () {
    var result = this.mez_1 == null ? 0 : this.mez_1.hashCode();
    result = imul(result, 31) + (this.nez_1 == null ? 0 : this.nez_1.hashCode()) | 0;
    result = imul(result, 31) + (this.oez_1 == null ? 0 : this.oez_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.mez_1, tmp0_other_with_cast.mez_1))
      return false;
    if (!equals(this.nez_1, tmp0_other_with_cast.nez_1))
      return false;
    if (!equals(this.oez_1, tmp0_other_with_cast.oez_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.MessageAndOtherPerson', this, 3);
    tmp0_serialDesc.t4f('message', true);
    tmp0_serialDesc.t4f('otherPerson', true);
    tmp0_serialDesc.t4f('personPicture', true);
    this.qk9_1 = tmp0_serialDesc;
  }
  protoOf($serializer_27).q44 = function () {
    return this.qk9_1;
  };
  protoOf($serializer_27).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_93()), get_nullable($serializer_getInstance_96()), get_nullable($serializer_getInstance_105())];
  };
  protoOf($serializer_27).s44 = function (decoder) {
    var tmp0_desc = this.qk9_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.i48(tmp0_desc);
    if (tmp7_input.x48()) {
      tmp4_local0 = tmp7_input.w48(tmp0_desc, 0, $serializer_getInstance_93(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp7_input.w48(tmp0_desc, 1, $serializer_getInstance_96(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, $serializer_getInstance_105(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp7_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp7_input.w48(tmp0_desc, 0, $serializer_getInstance_93(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp7_input.w48(tmp0_desc, 1, $serializer_getInstance_96(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, $serializer_getInstance_105(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp7_input.j48(tmp0_desc);
    return MessageAndOtherPerson_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
  };
  protoOf($serializer_27).rk9 = function (encoder, value) {
    var tmp0_desc = this.qk9_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.wfm_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_93(), value.wfm_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.xfm_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_96(), value.xfm_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.yfm_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_105(), value.yfm_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_27).r44 = function (encoder, value) {
    return this.rk9(encoder, value instanceof MessageAndOtherPerson ? value : THROW_CCE());
  };
  var $serializer_instance_27;
  function $serializer_getInstance_27() {
    if ($serializer_instance_27 == null)
      new $serializer_27();
    return $serializer_instance_27;
  }
  function MessageAndOtherPerson_init_$Init$(seen1, message, otherPerson, personPicture, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_27().qk9_1);
    }
    if (0 === (seen1 & 1))
      $this.wfm_1 = null;
    else
      $this.wfm_1 = message;
    if (0 === (seen1 & 2))
      $this.xfm_1 = null;
    else
      $this.xfm_1 = otherPerson;
    if (0 === (seen1 & 4))
      $this.yfm_1 = null;
    else
      $this.yfm_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.wfm_1 = message;
    this.xfm_1 = otherPerson;
    this.yfm_1 = personPicture;
  }
  protoOf(MessageAndOtherPerson).toString = function () {
    return 'MessageAndOtherPerson(message=' + this.wfm_1 + ', otherPerson=' + this.xfm_1 + ', personPicture=' + this.yfm_1 + ')';
  };
  protoOf(MessageAndOtherPerson).hashCode = function () {
    var result = this.wfm_1 == null ? 0 : this.wfm_1.hashCode();
    result = imul(result, 31) + (this.xfm_1 == null ? 0 : this.xfm_1.hashCode()) | 0;
    result = imul(result, 31) + (this.yfm_1 == null ? 0 : this.yfm_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.wfm_1, tmp0_other_with_cast.wfm_1))
      return false;
    if (!equals(this.xfm_1, tmp0_other_with_cast.xfm_1))
      return false;
    if (!equals(this.yfm_1, tmp0_other_with_cast.yfm_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.OfflineItemAndState', this, 3);
    tmp0_serialDesc.t4f('offlineItem', true);
    tmp0_serialDesc.t4f('activeDownload', true);
    tmp0_serialDesc.t4f('readyForOffline', true);
    this.sk9_1 = tmp0_serialDesc;
  }
  protoOf($serializer_28).q44 = function () {
    return this.sk9_1;
  };
  protoOf($serializer_28).k4g = 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_38()), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_28).s44 = function (decoder) {
    var tmp0_desc = this.sk9_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.i48(tmp0_desc);
    if (tmp7_input.x48()) {
      tmp4_local0 = tmp7_input.w48(tmp0_desc, 0, $serializer_getInstance_94(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp7_input.w48(tmp0_desc, 1, $serializer_getInstance_38(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp7_input.k48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp7_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp7_input.w48(tmp0_desc, 0, $serializer_getInstance_94(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp7_input.w48(tmp0_desc, 1, $serializer_getInstance_38(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp7_input.k48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp7_input.j48(tmp0_desc);
    return OfflineItemAndState_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
  };
  protoOf($serializer_28).tk9 = function (encoder, value) {
    var tmp0_desc = this.sk9_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.gfr_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_94(), value.gfr_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.hfr_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_38(), value.hfr_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.ifr_1 === false)) {
      tmp1_output.o49(tmp0_desc, 2, value.ifr_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_28).r44 = function (encoder, value) {
    return this.tk9(encoder, value instanceof OfflineItemAndState ? value : THROW_CCE());
  };
  var $serializer_instance_28;
  function $serializer_getInstance_28() {
    if ($serializer_instance_28 == null)
      new $serializer_28();
    return $serializer_instance_28;
  }
  function OfflineItemAndState_init_$Init$(seen1, offlineItem, activeDownload, readyForOffline, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_28().sk9_1);
    }
    if (0 === (seen1 & 1))
      $this.gfr_1 = null;
    else
      $this.gfr_1 = offlineItem;
    if (0 === (seen1 & 2))
      $this.hfr_1 = null;
    else
      $this.hfr_1 = activeDownload;
    if (0 === (seen1 & 4))
      $this.ifr_1 = false;
    else
      $this.ifr_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.gfr_1 = offlineItem;
    this.hfr_1 = activeDownload;
    this.ifr_1 = readyForOffline;
  }
  protoOf(OfflineItemAndState).toString = function () {
    return 'OfflineItemAndState(offlineItem=' + this.gfr_1 + ', activeDownload=' + this.hfr_1 + ', readyForOffline=' + this.ifr_1 + ')';
  };
  protoOf(OfflineItemAndState).hashCode = function () {
    var result = this.gfr_1 == null ? 0 : this.gfr_1.hashCode();
    result = imul(result, 31) + (this.hfr_1 == null ? 0 : this.hfr_1.hashCode()) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.ifr_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.gfr_1, tmp0_other_with_cast.gfr_1))
      return false;
    if (!equals(this.hfr_1, tmp0_other_with_cast.hfr_1))
      return false;
    if (!(this.ifr_1 === tmp0_other_with_cast.ifr_1))
      return false;
    return true;
  };
  function Companion_30() {
  }
  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.PermissionPair', this, 2);
    tmp0_serialDesc.t4f('firstPermission', true);
    tmp0_serialDesc.t4f('secondPermission', true);
    this.uk9_1 = tmp0_serialDesc;
  }
  protoOf($serializer_29).q44 = function () {
    return this.uk9_1;
  };
  protoOf($serializer_29).k4g = 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_29).s44 = function (decoder) {
    var tmp0_desc = this.uk9_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.k48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.k48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.k48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.k48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return PermissionPair_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_29).vk9 = function (encoder, value) {
    var tmp0_desc = this.uk9_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.hdn_1 === false)) {
      tmp1_output.o49(tmp0_desc, 0, value.hdn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.idn_1 === false)) {
      tmp1_output.o49(tmp0_desc, 1, value.idn_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_29).r44 = function (encoder, value) {
    return this.vk9(encoder, value instanceof PermissionPair ? value : THROW_CCE());
  };
  var $serializer_instance_29;
  function $serializer_getInstance_29() {
    if ($serializer_instance_29 == null)
      new $serializer_29();
    return $serializer_instance_29;
  }
  function PermissionPair_init_$Init$(seen1, firstPermission, secondPermission, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_29().uk9_1);
    }
    if (0 === (seen1 & 1))
      $this.hdn_1 = false;
    else
      $this.hdn_1 = firstPermission;
    if (0 === (seen1 & 2))
      $this.idn_1 = false;
    else
      $this.idn_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.hdn_1 = firstPermission;
    this.idn_1 = secondPermission;
  }
  protoOf(PermissionPair).y6 = function () {
    return this.hdn_1;
  };
  protoOf(PermissionPair).z6 = function () {
    return this.idn_1;
  };
  protoOf(PermissionPair).toString = function () {
    return 'PermissionPair(firstPermission=' + this.hdn_1 + ', secondPermission=' + this.idn_1 + ')';
  };
  protoOf(PermissionPair).hashCode = function () {
    var result = getBooleanHashCode(this.hdn_1);
    result = imul(result, 31) + getBooleanHashCode(this.idn_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.hdn_1 === tmp0_other_with_cast.hdn_1))
      return false;
    if (!(this.idn_1 === tmp0_other_with_cast.idn_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.PermissionTriple', this, 3);
    tmp0_serialDesc.t4f('firstPermission', true);
    tmp0_serialDesc.t4f('secondPermission', true);
    tmp0_serialDesc.t4f('thirdPermission', true);
    this.wk9_1 = tmp0_serialDesc;
  }
  protoOf($serializer_30).q44 = function () {
    return this.wk9_1;
  };
  protoOf($serializer_30).k4g = 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_30).s44 = function (decoder) {
    var tmp0_desc = this.wk9_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.i48(tmp0_desc);
    if (tmp7_input.x48()) {
      tmp4_local0 = tmp7_input.k48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp7_input.k48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp7_input.k48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp7_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp7_input.k48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp7_input.k48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp7_input.k48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp7_input.j48(tmp0_desc);
    return PermissionTriple_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
  };
  protoOf($serializer_30).xk9 = function (encoder, value) {
    var tmp0_desc = this.wk9_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.xdn_1 === false)) {
      tmp1_output.o49(tmp0_desc, 0, value.xdn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.ydn_1 === false)) {
      tmp1_output.o49(tmp0_desc, 1, value.ydn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.zdn_1 === false)) {
      tmp1_output.o49(tmp0_desc, 2, value.zdn_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_30).r44 = function (encoder, value) {
    return this.xk9(encoder, value instanceof PermissionTriple ? value : THROW_CCE());
  };
  var $serializer_instance_30;
  function $serializer_getInstance_30() {
    if ($serializer_instance_30 == null)
      new $serializer_30();
    return $serializer_instance_30;
  }
  function PermissionTriple_init_$Init$(seen1, firstPermission, secondPermission, thirdPermission, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_30().wk9_1);
    }
    if (0 === (seen1 & 1))
      $this.xdn_1 = false;
    else
      $this.xdn_1 = firstPermission;
    if (0 === (seen1 & 2))
      $this.ydn_1 = false;
    else
      $this.ydn_1 = secondPermission;
    if (0 === (seen1 & 4))
      $this.zdn_1 = false;
    else
      $this.zdn_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.xdn_1 = firstPermission;
    this.ydn_1 = secondPermission;
    this.zdn_1 = thirdPermission;
  }
  protoOf(PermissionTriple).y6 = function () {
    return this.xdn_1;
  };
  protoOf(PermissionTriple).z6 = function () {
    return this.ydn_1;
  };
  protoOf(PermissionTriple).toString = function () {
    return 'PermissionTriple(firstPermission=' + this.xdn_1 + ', secondPermission=' + this.ydn_1 + ', thirdPermission=' + this.zdn_1 + ')';
  };
  protoOf(PermissionTriple).hashCode = function () {
    var result = getBooleanHashCode(this.xdn_1);
    result = imul(result, 31) + getBooleanHashCode(this.ydn_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.zdn_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.xdn_1 === tmp0_other_with_cast.xdn_1))
      return false;
    if (!(this.ydn_1 === tmp0_other_with_cast.ydn_1))
      return false;
    if (!(this.zdn_1 === tmp0_other_with_cast.zdn_1))
      return false;
    return true;
  };
  function Companion_32() {
  }
  protoOf(Companion_32).n4r = function () {
    return $serializer_getInstance_31();
  };
  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.PersonAndClazzLogAttendanceRecord', this, 3);
    tmp0_serialDesc.t4f('person', true);
    tmp0_serialDesc.t4f('personPicture', true);
    tmp0_serialDesc.t4f('attendanceRecord', true);
    this.yk9_1 = tmp0_serialDesc;
  }
  protoOf($serializer_31).q44 = function () {
    return this.yk9_1;
  };
  protoOf($serializer_31).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_96()), get_nullable($serializer_getInstance_105()), get_nullable($serializer_getInstance_53())];
  };
  protoOf($serializer_31).s44 = function (decoder) {
    var tmp0_desc = this.yk9_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.i48(tmp0_desc);
    if (tmp7_input.x48()) {
      tmp4_local0 = tmp7_input.w48(tmp0_desc, 0, $serializer_getInstance_96(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp7_input.w48(tmp0_desc, 1, $serializer_getInstance_105(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, $serializer_getInstance_53(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp7_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp7_input.w48(tmp0_desc, 0, $serializer_getInstance_96(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp7_input.w48(tmp0_desc, 1, $serializer_getInstance_105(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, $serializer_getInstance_53(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp7_input.j48(tmp0_desc);
    return PersonAndClazzLogAttendanceRecord_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
  };
  protoOf($serializer_31).zk9 = function (encoder, value) {
    var tmp0_desc = this.yk9_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.v9z_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_96(), value.v9z_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.w9z_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_105(), value.w9z_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.x9z_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_53(), value.x9z_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_31).r44 = function (encoder, value) {
    return this.zk9(encoder, value instanceof PersonAndClazzLogAttendanceRecord ? value : THROW_CCE());
  };
  var $serializer_instance_31;
  function $serializer_getInstance_31() {
    if ($serializer_instance_31 == null)
      new $serializer_31();
    return $serializer_instance_31;
  }
  function PersonAndClazzLogAttendanceRecord_init_$Init$(seen1, person, personPicture, attendanceRecord, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_31().yk9_1);
    }
    if (0 === (seen1 & 1))
      $this.v9z_1 = null;
    else
      $this.v9z_1 = person;
    if (0 === (seen1 & 2))
      $this.w9z_1 = null;
    else
      $this.w9z_1 = personPicture;
    if (0 === (seen1 & 4))
      $this.x9z_1 = null;
    else
      $this.x9z_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.v9z_1 = person;
    this.w9z_1 = personPicture;
    this.x9z_1 = attendanceRecord;
  }
  protoOf(PersonAndClazzLogAttendanceRecord).aka = function (person, personPicture, attendanceRecord) {
    return new PersonAndClazzLogAttendanceRecord(person, personPicture, attendanceRecord);
  };
  protoOf(PersonAndClazzLogAttendanceRecord).bka = function (person, personPicture, attendanceRecord, $super) {
    person = person === VOID ? this.v9z_1 : person;
    personPicture = personPicture === VOID ? this.w9z_1 : personPicture;
    attendanceRecord = attendanceRecord === VOID ? this.x9z_1 : attendanceRecord;
    return $super === VOID ? this.aka(person, personPicture, attendanceRecord) : $super.aka.call(this, person, personPicture, attendanceRecord);
  };
  protoOf(PersonAndClazzLogAttendanceRecord).toString = function () {
    return 'PersonAndClazzLogAttendanceRecord(person=' + this.v9z_1 + ', personPicture=' + this.w9z_1 + ', attendanceRecord=' + this.x9z_1 + ')';
  };
  protoOf(PersonAndClazzLogAttendanceRecord).hashCode = function () {
    var result = this.v9z_1 == null ? 0 : this.v9z_1.hashCode();
    result = imul(result, 31) + (this.w9z_1 == null ? 0 : this.w9z_1.hashCode()) | 0;
    result = imul(result, 31) + (this.x9z_1 == null ? 0 : this.x9z_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.v9z_1, tmp0_other_with_cast.v9z_1))
      return false;
    if (!equals(this.w9z_1, tmp0_other_with_cast.w9z_1))
      return false;
    if (!equals(this.x9z_1, tmp0_other_with_cast.x9z_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.PersonAndClazzMemberListDetails', this, 5);
    tmp0_serialDesc.t4f('person', true);
    tmp0_serialDesc.t4f('personPicture', true);
    tmp0_serialDesc.t4f('earliestJoinDate', true);
    tmp0_serialDesc.t4f('latestDateLeft', true);
    tmp0_serialDesc.t4f('enrolmentRole', true);
    this.cka_1 = tmp0_serialDesc;
  }
  protoOf($serializer_32).q44 = function () {
    return this.cka_1;
  };
  protoOf($serializer_32).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_96()), get_nullable($serializer_getInstance_105()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance()];
  };
  protoOf($serializer_32).s44 = function (decoder) {
    var tmp0_desc = this.cka_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.i48(tmp0_desc);
    if (tmp9_input.x48()) {
      tmp4_local0 = tmp9_input.w48(tmp0_desc, 0, $serializer_getInstance_96(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp9_input.w48(tmp0_desc, 1, $serializer_getInstance_105(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp9_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp9_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp9_input.n48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp9_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp9_input.w48(tmp0_desc, 0, $serializer_getInstance_96(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp9_input.w48(tmp0_desc, 1, $serializer_getInstance_105(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp9_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp9_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp9_input.n48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp9_input.j48(tmp0_desc);
    return PersonAndClazzMemberListDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
  };
  protoOf($serializer_32).dka = function (encoder, value) {
    var tmp0_desc = this.cka_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.a96_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_96(), value.a96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.b96_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_105(), value.b96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.c96_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.c96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.d96_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.d96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.e96_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 4, value.e96_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_32).r44 = function (encoder, value) {
    return this.dka(encoder, value instanceof PersonAndClazzMemberListDetails ? value : THROW_CCE());
  };
  var $serializer_instance_32;
  function $serializer_getInstance_32() {
    if ($serializer_instance_32 == null)
      new $serializer_32();
    return $serializer_instance_32;
  }
  function PersonAndClazzMemberListDetails_init_$Init$(seen1, person, personPicture, earliestJoinDate, latestDateLeft, enrolmentRole, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_32().cka_1);
    }
    if (0 === (seen1 & 1))
      $this.a96_1 = null;
    else
      $this.a96_1 = person;
    if (0 === (seen1 & 2))
      $this.b96_1 = null;
    else
      $this.b96_1 = personPicture;
    if (0 === (seen1 & 4))
      $this.c96_1 = new Long(0, 0);
    else
      $this.c96_1 = earliestJoinDate;
    if (0 === (seen1 & 8))
      $this.d96_1 = new Long(0, 0);
    else
      $this.d96_1 = latestDateLeft;
    if (0 === (seen1 & 16))
      $this.e96_1 = 0;
    else
      $this.e96_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.a96_1 = person;
    this.b96_1 = personPicture;
    this.c96_1 = earliestJoinDate;
    this.d96_1 = latestDateLeft;
    this.e96_1 = enrolmentRole;
  }
  protoOf(PersonAndClazzMemberListDetails).toString = function () {
    return 'PersonAndClazzMemberListDetails(person=' + this.a96_1 + ', personPicture=' + this.b96_1 + ', earliestJoinDate=' + this.c96_1.toString() + ', latestDateLeft=' + this.d96_1.toString() + ', enrolmentRole=' + this.e96_1 + ')';
  };
  protoOf(PersonAndClazzMemberListDetails).hashCode = function () {
    var result = this.a96_1 == null ? 0 : this.a96_1.hashCode();
    result = imul(result, 31) + (this.b96_1 == null ? 0 : this.b96_1.hashCode()) | 0;
    result = imul(result, 31) + this.c96_1.hashCode() | 0;
    result = imul(result, 31) + this.d96_1.hashCode() | 0;
    result = imul(result, 31) + this.e96_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.a96_1, tmp0_other_with_cast.a96_1))
      return false;
    if (!equals(this.b96_1, tmp0_other_with_cast.b96_1))
      return false;
    if (!this.c96_1.equals(tmp0_other_with_cast.c96_1))
      return false;
    if (!this.d96_1.equals(tmp0_other_with_cast.d96_1))
      return false;
    if (!(this.e96_1 === tmp0_other_with_cast.e96_1))
      return false;
    return true;
  };
  function PersonAndListDisplayDetails(person, picture) {
    person = person === VOID ? null : person;
    picture = picture === VOID ? null : picture;
    this.mg6_1 = person;
    this.ng6_1 = picture;
  }
  protoOf(PersonAndListDisplayDetails).toString = function () {
    return 'PersonAndListDisplayDetails(person=' + this.mg6_1 + ', picture=' + this.ng6_1 + ')';
  };
  protoOf(PersonAndListDisplayDetails).hashCode = function () {
    var result = this.mg6_1 == null ? 0 : this.mg6_1.hashCode();
    result = imul(result, 31) + (this.ng6_1 == null ? 0 : this.ng6_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.mg6_1, tmp0_other_with_cast.mg6_1))
      return false;
    if (!equals(this.ng6_1, tmp0_other_with_cast.ng6_1))
      return false;
    return true;
  };
  function Companion_34() {
  }
  var Companion_instance_35;
  function Companion_getInstance_37() {
    return Companion_instance_35;
  }
  function $serializer_33() {
    $serializer_instance_33 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PersonAndPicture', this, 2);
    tmp0_serialDesc.t4f('person', true);
    tmp0_serialDesc.t4f('picture', true);
    this.eka_1 = tmp0_serialDesc;
  }
  protoOf($serializer_33).q44 = function () {
    return this.eka_1;
  };
  protoOf($serializer_33).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_96()), get_nullable($serializer_getInstance_105())];
  };
  protoOf($serializer_33).s44 = function (decoder) {
    var tmp0_desc = this.eka_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_96(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_105(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_96(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_105(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return PersonAndPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_33).fka = function (encoder, value) {
    var tmp0_desc = this.eka_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.zg5_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_96(), value.zg5_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.ag6_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_105(), value.ag6_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_33).r44 = function (encoder, value) {
    return this.fka(encoder, value instanceof PersonAndPicture ? value : THROW_CCE());
  };
  var $serializer_instance_33;
  function $serializer_getInstance_33() {
    if ($serializer_instance_33 == null)
      new $serializer_33();
    return $serializer_instance_33;
  }
  function PersonAndPicture_init_$Init$(seen1, person, picture, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_33().eka_1);
    }
    if (0 === (seen1 & 1))
      $this.zg5_1 = null;
    else
      $this.zg5_1 = person;
    if (0 === (seen1 & 2))
      $this.ag6_1 = null;
    else
      $this.ag6_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.zg5_1 = person;
    this.ag6_1 = picture;
  }
  protoOf(PersonAndPicture).toString = function () {
    return 'PersonAndPicture(person=' + this.zg5_1 + ', picture=' + this.ag6_1 + ')';
  };
  protoOf(PersonAndPicture).hashCode = function () {
    var result = this.zg5_1 == null ? 0 : this.zg5_1.hashCode();
    result = imul(result, 31) + (this.ag6_1 == null ? 0 : this.ag6_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.zg5_1, tmp0_other_with_cast.zg5_1))
      return false;
    if (!equals(this.ag6_1, tmp0_other_with_cast.ag6_1))
      return false;
    return true;
  };
  function Companion_35() {
  }
  var Companion_instance_36;
  function Companion_getInstance_38() {
    return Companion_instance_36;
  }
  function $serializer_34() {
    $serializer_instance_34 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PersonAndPictureAndNumAttempts', this, 7);
    tmp0_serialDesc.t4f('person', true);
    tmp0_serialDesc.t4f('picture', true);
    tmp0_serialDesc.t4f('numAttempts', true);
    tmp0_serialDesc.t4f('isCompleted', true);
    tmp0_serialDesc.t4f('isSuccessful', true);
    tmp0_serialDesc.t4f('maxScore', true);
    tmp0_serialDesc.t4f('maxProgress', true);
    this.gka_1 = tmp0_serialDesc;
  }
  protoOf($serializer_34).q44 = function () {
    return this.gka_1;
  };
  protoOf($serializer_34).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [$serializer_getInstance_96(), get_nullable($serializer_getInstance_105()), IntSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(BooleanSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), get_nullable(IntSerializer_getInstance())];
  };
  protoOf($serializer_34).s44 = function (decoder) {
    var tmp0_desc = this.gka_1;
    var tmp1_flag = true;
    var tmp2_index = 0;
    var tmp3_bitMask0 = 0;
    var tmp4_local0 = null;
    var tmp5_local1 = null;
    var tmp6_local2 = 0;
    var tmp7_local3 = false;
    var tmp8_local4 = null;
    var tmp9_local5 = null;
    var tmp10_local6 = null;
    var tmp11_input = decoder.i48(tmp0_desc);
    if (tmp11_input.x48()) {
      tmp4_local0 = tmp11_input.u48(tmp0_desc, 0, $serializer_getInstance_96(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp11_input.w48(tmp0_desc, 1, $serializer_getInstance_105(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp11_input.n48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp11_input.k48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp11_input.w48(tmp0_desc, 4, BooleanSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp11_input.w48(tmp0_desc, 5, FloatSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp11_input.w48(tmp0_desc, 6, IntSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp11_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp11_input.u48(tmp0_desc, 0, $serializer_getInstance_96(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp11_input.w48(tmp0_desc, 1, $serializer_getInstance_105(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp11_input.n48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp11_input.k48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp11_input.w48(tmp0_desc, 4, BooleanSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp11_input.w48(tmp0_desc, 5, FloatSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp11_input.w48(tmp0_desc, 6, IntSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp11_input.j48(tmp0_desc);
    return PersonAndPictureAndNumAttempts_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null);
  };
  protoOf($serializer_34).hka = function (encoder, value) {
    var tmp0_desc = this.gka_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.sjg_1.equals(new Person())) {
      tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance_96(), value.sjg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.tjg_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_105(), value.tjg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.ujg_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 2, value.ujg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.vjg_1 === false)) {
      tmp1_output.o49(tmp0_desc, 3, value.vjg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.wjg_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, BooleanSerializer_getInstance(), value.wjg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.xjg_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, FloatSerializer_getInstance(), value.xjg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.yjg_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 6, IntSerializer_getInstance(), value.yjg_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_34).r44 = function (encoder, value) {
    return this.hka(encoder, value instanceof PersonAndPictureAndNumAttempts ? value : THROW_CCE());
  };
  var $serializer_instance_34;
  function $serializer_getInstance_34() {
    if ($serializer_instance_34 == null)
      new $serializer_34();
    return $serializer_instance_34;
  }
  function PersonAndPictureAndNumAttempts_init_$Init$(seen1, person, picture, numAttempts, isCompleted, isSuccessful, maxScore, maxProgress, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_34().gka_1);
    }
    if (0 === (seen1 & 1))
      $this.sjg_1 = new Person();
    else
      $this.sjg_1 = person;
    if (0 === (seen1 & 2))
      $this.tjg_1 = null;
    else
      $this.tjg_1 = picture;
    if (0 === (seen1 & 4))
      $this.ujg_1 = 0;
    else
      $this.ujg_1 = numAttempts;
    if (0 === (seen1 & 8))
      $this.vjg_1 = false;
    else
      $this.vjg_1 = isCompleted;
    if (0 === (seen1 & 16))
      $this.wjg_1 = null;
    else
      $this.wjg_1 = isSuccessful;
    if (0 === (seen1 & 32))
      $this.xjg_1 = null;
    else
      $this.xjg_1 = maxScore;
    if (0 === (seen1 & 64))
      $this.yjg_1 = null;
    else
      $this.yjg_1 = maxProgress;
    return $this;
  }
  function PersonAndPictureAndNumAttempts_init_$Create$(seen1, person, picture, numAttempts, isCompleted, isSuccessful, maxScore, maxProgress, serializationConstructorMarker) {
    return PersonAndPictureAndNumAttempts_init_$Init$(seen1, person, picture, numAttempts, isCompleted, isSuccessful, maxScore, maxProgress, serializationConstructorMarker, objectCreate(protoOf(PersonAndPictureAndNumAttempts)));
  }
  function PersonAndPictureAndNumAttempts(person, picture, numAttempts, isCompleted, isSuccessful, maxScore, maxProgress) {
    person = person === VOID ? new Person() : person;
    picture = picture === VOID ? null : picture;
    numAttempts = numAttempts === VOID ? 0 : numAttempts;
    isCompleted = isCompleted === VOID ? false : isCompleted;
    isSuccessful = isSuccessful === VOID ? null : isSuccessful;
    maxScore = maxScore === VOID ? null : maxScore;
    maxProgress = maxProgress === VOID ? null : maxProgress;
    this.sjg_1 = person;
    this.tjg_1 = picture;
    this.ujg_1 = numAttempts;
    this.vjg_1 = isCompleted;
    this.wjg_1 = isSuccessful;
    this.xjg_1 = maxScore;
    this.yjg_1 = maxProgress;
  }
  protoOf(PersonAndPictureAndNumAttempts).toString = function () {
    return 'PersonAndPictureAndNumAttempts(person=' + this.sjg_1 + ', picture=' + this.tjg_1 + ', numAttempts=' + this.ujg_1 + ', isCompleted=' + this.vjg_1 + ', isSuccessful=' + this.wjg_1 + ', maxScore=' + this.xjg_1 + ', maxProgress=' + this.yjg_1 + ')';
  };
  protoOf(PersonAndPictureAndNumAttempts).hashCode = function () {
    var result = this.sjg_1.hashCode();
    result = imul(result, 31) + (this.tjg_1 == null ? 0 : this.tjg_1.hashCode()) | 0;
    result = imul(result, 31) + this.ujg_1 | 0;
    result = imul(result, 31) + getBooleanHashCode(this.vjg_1) | 0;
    result = imul(result, 31) + (this.wjg_1 == null ? 0 : getBooleanHashCode(this.wjg_1)) | 0;
    result = imul(result, 31) + (this.xjg_1 == null ? 0 : getNumberHashCode(this.xjg_1)) | 0;
    result = imul(result, 31) + (this.yjg_1 == null ? 0 : this.yjg_1) | 0;
    return result;
  };
  protoOf(PersonAndPictureAndNumAttempts).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof PersonAndPictureAndNumAttempts))
      return false;
    var tmp0_other_with_cast = other instanceof PersonAndPictureAndNumAttempts ? other : THROW_CCE();
    if (!this.sjg_1.equals(tmp0_other_with_cast.sjg_1))
      return false;
    if (!equals(this.tjg_1, tmp0_other_with_cast.tjg_1))
      return false;
    if (!(this.ujg_1 === tmp0_other_with_cast.ujg_1))
      return false;
    if (!(this.vjg_1 === tmp0_other_with_cast.vjg_1))
      return false;
    if (!(this.wjg_1 == tmp0_other_with_cast.wjg_1))
      return false;
    if (!equals(this.xjg_1, tmp0_other_with_cast.xjg_1))
      return false;
    if (!(this.yjg_1 == tmp0_other_with_cast.yjg_1))
      return false;
    return true;
  };
  function AttemptsPersonListConst() {
    this.ika_1 = 1;
    this.jka_1 = 2;
    this.kka_1 = 3;
    this.lka_1 = 4;
    this.mka_1 = 5;
    this.nka_1 = 6;
    this.oka_1 = 7;
    this.pka_1 = 8;
    this.qka_1 = 9;
    this.rka_1 = 10;
  }
  var AttemptsPersonListConst_instance;
  function AttemptsPersonListConst_getInstance() {
    return AttemptsPersonListConst_instance;
  }
  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.PersonNames', this, 2);
    tmp0_serialDesc.t4f('firstNames', true);
    tmp0_serialDesc.t4f('lastName', true);
    this.ska_1 = tmp0_serialDesc;
  }
  protoOf($serializer_35).q44 = function () {
    return this.ska_1;
  };
  protoOf($serializer_35).k4g = 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_35).s44 = function (decoder) {
    var tmp0_desc = this.ska_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return PersonNames_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_35).tka = function (encoder, value) {
    var tmp0_desc = this.ska_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.zg8_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.zg8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.ag9_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.ag9_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_35).r44 = function (encoder, value) {
    return this.tka(encoder, value instanceof PersonNames ? value : THROW_CCE());
  };
  var $serializer_instance_35;
  function $serializer_getInstance_35() {
    if ($serializer_instance_35 == null)
      new $serializer_35();
    return $serializer_instance_35;
  }
  function PersonNames_init_$Init$(seen1, firstNames, lastName, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_35().ska_1);
    }
    if (0 === (seen1 & 1))
      $this.zg8_1 = null;
    else
      $this.zg8_1 = firstNames;
    if (0 === (seen1 & 2))
      $this.ag9_1 = null;
    else
      $this.ag9_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.zg8_1 = firstNames;
    this.ag9_1 = lastName;
  }
  protoOf(PersonNames).toString = function () {
    var tmp0_elvis_lhs = this.zg8_1;
    var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
    var tmp1_elvis_lhs = this.ag9_1;
    return tmp + ' ' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs);
  };
  protoOf(PersonNames).hashCode = function () {
    var result = this.zg8_1 == null ? 0 : getStringHashCode(this.zg8_1);
    result = imul(result, 31) + (this.ag9_1 == null ? 0 : getStringHashCode(this.ag9_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.zg8_1 == tmp0_other_with_cast.zg8_1))
      return false;
    if (!(this.ag9_1 == tmp0_other_with_cast.ag9_1))
      return false;
    return true;
  };
  function SiteTermsAndLangName(terms, langDisplayName) {
    this.uka_1 = terms;
    this.vka_1 = langDisplayName;
  }
  protoOf(SiteTermsAndLangName).toString = function () {
    return 'SiteTermsAndLangName(terms=' + this.uka_1 + ', langDisplayName=' + this.vka_1 + ')';
  };
  protoOf(SiteTermsAndLangName).hashCode = function () {
    var result = hashCode(this.uka_1);
    result = imul(result, 31) + getStringHashCode(this.vka_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.uka_1, tmp0_other_with_cast.uka_1))
      return false;
    if (!(this.vka_1 === tmp0_other_with_cast.vka_1))
      return false;
    return true;
  };
  function Companion_37() {
    Companion_instance_38 = this;
    var tmp = this;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    tmp.wka_1 = [null, new ArrayListSerializer($serializer_getInstance_1())];
  }
  var Companion_instance_38;
  function Companion_getInstance_40() {
    if (Companion_instance_38 == null)
      new Companion_37();
    return Companion_instance_38;
  }
  function $serializer_36() {
    $serializer_instance_36 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.StudentAndBlockStatuses', this, 2);
    tmp0_serialDesc.t4f('student', false);
    tmp0_serialDesc.t4f('blockStatuses', false);
    this.xka_1 = tmp0_serialDesc;
  }
  protoOf($serializer_36).q44 = function () {
    return this.xka_1;
  };
  protoOf($serializer_36).k4g = function () {
    var tmp0_cached = Companion_getInstance_40().wka_1;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [$serializer_getInstance_32(), tmp0_cached[1]];
  };
  protoOf($serializer_36).s44 = function (decoder) {
    var tmp0_desc = this.xka_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.i48(tmp0_desc);
    var tmp7_cached = Companion_getInstance_40().wka_1;
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, $serializer_getInstance_32(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.u48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, $serializer_getInstance_32(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.u48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return StudentAndBlockStatuses_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_36).yka = function (encoder, value) {
    var tmp0_desc = this.xka_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    var tmp2_cached = Companion_getInstance_40().wka_1;
    tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance_32(), value.zka_1);
    tmp1_output.y49(tmp0_desc, 1, tmp2_cached[1], value.akb_1);
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_36).r44 = function (encoder, value) {
    return this.yka(encoder, value instanceof StudentAndBlockStatuses ? value : THROW_CCE());
  };
  var $serializer_instance_36;
  function $serializer_getInstance_36() {
    if ($serializer_instance_36 == null)
      new $serializer_36();
    return $serializer_instance_36;
  }
  function StudentAndBlockStatuses_init_$Init$(seen1, student, blockStatuses, serializationConstructorMarker, $this) {
    if (!(3 === (3 & seen1))) {
      throwMissingFieldException(seen1, 3, $serializer_getInstance_36().xka_1);
    }
    $this.zka_1 = student;
    $this.akb_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_40();
    this.zka_1 = student;
    this.akb_1 = blockStatuses;
  }
  protoOf(StudentAndBlockStatuses).toString = function () {
    return 'StudentAndBlockStatuses(student=' + this.zka_1 + ', blockStatuses=' + this.akb_1 + ')';
  };
  protoOf(StudentAndBlockStatuses).hashCode = function () {
    var result = this.zka_1.hashCode();
    result = imul(result, 31) + hashCode(this.akb_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.zka_1.equals(tmp0_other_with_cast.zka_1))
      return false;
    if (!equals(this.akb_1, tmp0_other_with_cast.akb_1))
      return false;
    return true;
  };
  function Companion_38() {
    Companion_instance_39 = this;
    var tmp = this;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    tmp.bkb_1 = [null, new ArrayListSerializer($serializer_getInstance_14())];
  }
  var Companion_instance_39;
  function Companion_getInstance_41() {
    if (Companion_instance_39 == null)
      new Companion_38();
    return Companion_instance_39;
  }
  function $serializer_37() {
    $serializer_instance_37 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.SubmissionAndFiles', this, 2);
    tmp0_serialDesc.t4f('submission', false);
    tmp0_serialDesc.t4f('files', false);
    this.ckb_1 = tmp0_serialDesc;
  }
  protoOf($serializer_37).q44 = function () {
    return this.ckb_1;
  };
  protoOf($serializer_37).k4g = function () {
    var tmp0_cached = Companion_getInstance_41().bkb_1;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [$serializer_getInstance_72(), tmp0_cached[1]];
  };
  protoOf($serializer_37).s44 = function (decoder) {
    var tmp0_desc = this.ckb_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.i48(tmp0_desc);
    var tmp7_cached = Companion_getInstance_41().bkb_1;
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, $serializer_getInstance_72(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.u48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, $serializer_getInstance_72(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.u48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return SubmissionAndFiles_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_37).dkb = function (encoder, value) {
    var tmp0_desc = this.ckb_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    var tmp2_cached = Companion_getInstance_41().bkb_1;
    tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance_72(), value.ekb_1);
    tmp1_output.y49(tmp0_desc, 1, tmp2_cached[1], value.fkb_1);
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_37).r44 = function (encoder, value) {
    return this.dkb(encoder, value instanceof SubmissionAndFiles ? value : THROW_CCE());
  };
  var $serializer_instance_37;
  function $serializer_getInstance_37() {
    if ($serializer_instance_37 == null)
      new $serializer_37();
    return $serializer_instance_37;
  }
  function SubmissionAndFiles_init_$Init$(seen1, submission, files, serializationConstructorMarker, $this) {
    if (!(3 === (3 & seen1))) {
      throwMissingFieldException(seen1, 3, $serializer_getInstance_37().ckb_1);
    }
    $this.ekb_1 = submission;
    $this.fkb_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_41();
    this.ekb_1 = submission;
    this.fkb_1 = files;
  }
  function Companion_39() {
  }
  var Companion_instance_40;
  function Companion_getInstance_42() {
    return Companion_instance_40;
  }
  function $serializer_38() {
    $serializer_instance_38 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.TransferJobAndTotals', this, 4);
    tmp0_serialDesc.t4f('transferJob', true);
    tmp0_serialDesc.t4f('totalSize', true);
    tmp0_serialDesc.t4f('transferred', true);
    tmp0_serialDesc.t4f('latestErrorStr', true);
    this.gkb_1 = tmp0_serialDesc;
  }
  protoOf($serializer_38).q44 = function () {
    return this.gkb_1;
  };
  protoOf($serializer_38).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_115()), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_38).s44 = function (decoder) {
    var tmp0_desc = this.gkb_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.i48(tmp0_desc);
    if (tmp8_input.x48()) {
      tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, $serializer_getInstance_115(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, $serializer_getInstance_115(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.j48(tmp0_desc);
    return TransferJobAndTotals_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_38).hkb = function (encoder, value) {
    var tmp0_desc = this.gkb_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.qfr_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_115(), value.qfr_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.rfr_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.rfr_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.sfr_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.sfr_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.tfr_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.tfr_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_38).r44 = function (encoder, value) {
    return this.hkb(encoder, value instanceof TransferJobAndTotals ? value : THROW_CCE());
  };
  var $serializer_instance_38;
  function $serializer_getInstance_38() {
    if ($serializer_instance_38 == null)
      new $serializer_38();
    return $serializer_instance_38;
  }
  function TransferJobAndTotals_init_$Init$(seen1, transferJob, totalSize, transferred, latestErrorStr, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_38().gkb_1);
    }
    if (0 === (seen1 & 1))
      $this.qfr_1 = null;
    else
      $this.qfr_1 = transferJob;
    if (0 === (seen1 & 2))
      $this.rfr_1 = new Long(0, 0);
    else
      $this.rfr_1 = totalSize;
    if (0 === (seen1 & 4))
      $this.sfr_1 = new Long(0, 0);
    else
      $this.sfr_1 = transferred;
    if (0 === (seen1 & 8))
      $this.tfr_1 = null;
    else
      $this.tfr_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.qfr_1 = transferJob;
    this.rfr_1 = totalSize;
    this.sfr_1 = transferred;
    this.tfr_1 = latestErrorStr;
  }
  protoOf(TransferJobAndTotals).toString = function () {
    return 'TransferJobAndTotals(transferJob=' + this.qfr_1 + ', totalSize=' + this.rfr_1.toString() + ', transferred=' + this.sfr_1.toString() + ', latestErrorStr=' + this.tfr_1 + ')';
  };
  protoOf(TransferJobAndTotals).hashCode = function () {
    var result = this.qfr_1 == null ? 0 : this.qfr_1.hashCode();
    result = imul(result, 31) + this.rfr_1.hashCode() | 0;
    result = imul(result, 31) + this.sfr_1.hashCode() | 0;
    result = imul(result, 31) + (this.tfr_1 == null ? 0 : getStringHashCode(this.tfr_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.qfr_1, tmp0_other_with_cast.qfr_1))
      return false;
    if (!this.rfr_1.equals(tmp0_other_with_cast.rfr_1))
      return false;
    if (!this.sfr_1.equals(tmp0_other_with_cast.sfr_1))
      return false;
    if (!(this.tfr_1 == tmp0_other_with_cast.tfr_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_40() {
    this.ikb_1 = 1;
    this.jkb_1 = 11;
    this.kkb_1 = 21;
    this.lkb_1 = 22;
    this.mkb_1 = 23;
  }
  protoOf(Companion_40).nkb = 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.qkb_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_41;
  function Companion_getInstance_43() {
    return Companion_instance_41;
  }
  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.qkb_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_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.composites.xapi.SessionTimeAndProgressInfo', this, 8);
    tmp0_serialDesc.t4f('contextRegistrationHi', true);
    tmp0_serialDesc.t4f('contextRegistrationLo', true);
    tmp0_serialDesc.t4f('timeStarted', true);
    tmp0_serialDesc.t4f('maxProgress', true);
    tmp0_serialDesc.t4f('maxScore', true);
    tmp0_serialDesc.t4f('isCompleted', true);
    tmp0_serialDesc.t4f('isSuccessful', true);
    tmp0_serialDesc.t4f('resultDuration', true);
    this.rkb_1 = tmp0_serialDesc;
  }
  protoOf($serializer_39).q44 = function () {
    return this.rkb_1;
  };
  protoOf($serializer_39).k4g = 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(IntSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), BooleanSerializer_getInstance(), get_nullable(BooleanSerializer_getInstance()), LongSerializer_getInstance()];
  };
  protoOf($serializer_39).s44 = function (decoder) {
    var tmp0_desc = this.rkb_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 = null;
    var tmp9_local5 = false;
    var tmp10_local6 = null;
    var tmp11_local7 = new Long(0, 0);
    var tmp12_input = decoder.i48(tmp0_desc);
    if (tmp12_input.x48()) {
      tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.w48(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.w48(tmp0_desc, 4, FloatSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.k48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.w48(tmp0_desc, 6, BooleanSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.w48(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.w48(tmp0_desc, 4, FloatSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.k48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.w48(tmp0_desc, 6, BooleanSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.j48(tmp0_desc);
    return SessionTimeAndProgressInfo_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
  };
  protoOf($serializer_39).skb = function (encoder, value) {
    var tmp0_desc = this.rkb_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.cji_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.cji_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.dji_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.dji_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.eji_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.eji_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.fji_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, IntSerializer_getInstance(), value.fji_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.gji_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, FloatSerializer_getInstance(), value.gji_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.hji_1 === false)) {
      tmp1_output.o49(tmp0_desc, 5, value.hji_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.iji_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 6, BooleanSerializer_getInstance(), value.iji_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.jji_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.jji_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_39).r44 = function (encoder, value) {
    return this.skb(encoder, value instanceof SessionTimeAndProgressInfo ? value : THROW_CCE());
  };
  var $serializer_instance_39;
  function $serializer_getInstance_39() {
    if ($serializer_instance_39 == null)
      new $serializer_39();
    return $serializer_instance_39;
  }
  function SessionTimeAndProgressInfo_init_$Init$(seen1, contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_39().rkb_1);
    }
    if (0 === (seen1 & 1))
      $this.cji_1 = new Long(0, 0);
    else
      $this.cji_1 = contextRegistrationHi;
    if (0 === (seen1 & 2))
      $this.dji_1 = new Long(0, 0);
    else
      $this.dji_1 = contextRegistrationLo;
    if (0 === (seen1 & 4))
      $this.eji_1 = new Long(0, 0);
    else
      $this.eji_1 = timeStarted;
    if (0 === (seen1 & 8))
      $this.fji_1 = null;
    else
      $this.fji_1 = maxProgress;
    if (0 === (seen1 & 16))
      $this.gji_1 = null;
    else
      $this.gji_1 = maxScore;
    if (0 === (seen1 & 32))
      $this.hji_1 = false;
    else
      $this.hji_1 = isCompleted;
    if (0 === (seen1 & 64))
      $this.iji_1 = null;
    else
      $this.iji_1 = isSuccessful;
    if (0 === (seen1 & 128))
      $this.jji_1 = new Long(0, 0);
    else
      $this.jji_1 = resultDuration;
    return $this;
  }
  function SessionTimeAndProgressInfo_init_$Create$(seen1, contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration, serializationConstructorMarker) {
    return SessionTimeAndProgressInfo_init_$Init$(seen1, contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration, serializationConstructorMarker, objectCreate(protoOf(SessionTimeAndProgressInfo)));
  }
  function SessionTimeAndProgressInfo(contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration) {
    contextRegistrationHi = contextRegistrationHi === VOID ? new Long(0, 0) : contextRegistrationHi;
    contextRegistrationLo = contextRegistrationLo === VOID ? new Long(0, 0) : contextRegistrationLo;
    timeStarted = timeStarted === VOID ? new Long(0, 0) : timeStarted;
    maxProgress = maxProgress === VOID ? null : maxProgress;
    maxScore = maxScore === VOID ? null : maxScore;
    isCompleted = isCompleted === VOID ? false : isCompleted;
    isSuccessful = isSuccessful === VOID ? null : isSuccessful;
    resultDuration = resultDuration === VOID ? new Long(0, 0) : resultDuration;
    this.cji_1 = contextRegistrationHi;
    this.dji_1 = contextRegistrationLo;
    this.eji_1 = timeStarted;
    this.fji_1 = maxProgress;
    this.gji_1 = maxScore;
    this.hji_1 = isCompleted;
    this.iji_1 = isSuccessful;
    this.jji_1 = resultDuration;
  }
  protoOf(SessionTimeAndProgressInfo).toString = function () {
    return 'SessionTimeAndProgressInfo(contextRegistrationHi=' + this.cji_1.toString() + ', contextRegistrationLo=' + this.dji_1.toString() + ', timeStarted=' + this.eji_1.toString() + ', maxProgress=' + this.fji_1 + ', maxScore=' + this.gji_1 + ', isCompleted=' + this.hji_1 + ', isSuccessful=' + this.iji_1 + ', resultDuration=' + this.jji_1.toString() + ')';
  };
  protoOf(SessionTimeAndProgressInfo).hashCode = function () {
    var result = this.cji_1.hashCode();
    result = imul(result, 31) + this.dji_1.hashCode() | 0;
    result = imul(result, 31) + this.eji_1.hashCode() | 0;
    result = imul(result, 31) + (this.fji_1 == null ? 0 : this.fji_1) | 0;
    result = imul(result, 31) + (this.gji_1 == null ? 0 : getNumberHashCode(this.gji_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.hji_1) | 0;
    result = imul(result, 31) + (this.iji_1 == null ? 0 : getBooleanHashCode(this.iji_1)) | 0;
    result = imul(result, 31) + this.jji_1.hashCode() | 0;
    return result;
  };
  protoOf(SessionTimeAndProgressInfo).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof SessionTimeAndProgressInfo))
      return false;
    var tmp0_other_with_cast = other instanceof SessionTimeAndProgressInfo ? other : THROW_CCE();
    if (!this.cji_1.equals(tmp0_other_with_cast.cji_1))
      return false;
    if (!this.dji_1.equals(tmp0_other_with_cast.dji_1))
      return false;
    if (!this.eji_1.equals(tmp0_other_with_cast.eji_1))
      return false;
    if (!(this.fji_1 == tmp0_other_with_cast.fji_1))
      return false;
    if (!equals(this.gji_1, tmp0_other_with_cast.gji_1))
      return false;
    if (!(this.hji_1 === tmp0_other_with_cast.hji_1))
      return false;
    if (!(this.iji_1 == tmp0_other_with_cast.iji_1))
      return false;
    if (!this.jji_1.equals(tmp0_other_with_cast.jji_1))
      return false;
    return true;
  };
  function SessionTimeAndProgressInfoConst() {
    this.tkb_1 = 1;
    this.ukb_1 = 2;
    this.vkb_1 = 3;
    this.wkb_1 = 4;
    this.xkb_1 = 5;
    this.ykb_1 = 6;
    this.zkb_1 = 7;
    this.akc_1 = 8;
  }
  var SessionTimeAndProgressInfoConst_instance;
  function SessionTimeAndProgressInfoConst_getInstance() {
    return SessionTimeAndProgressInfoConst_instance;
  }
  function Companion_42() {
  }
  var Companion_instance_43;
  function Companion_getInstance_45() {
    return Companion_instance_43;
  }
  function $serializer_40() {
    $serializer_instance_40 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.xapi.StatementEntityAndVerb', this, 6);
    tmp0_serialDesc.t4f('statementEntity', true);
    tmp0_serialDesc.t4f('verb', true);
    tmp0_serialDesc.t4f('verbDisplay', true);
    tmp0_serialDesc.t4f('activity', true);
    tmp0_serialDesc.t4f('activityLangMapEntry', true);
    tmp0_serialDesc.t4f('statementActivityDescription', true);
    this.bkc_1 = tmp0_serialDesc;
  }
  protoOf($serializer_40).q44 = function () {
    return this.bkc_1;
  };
  protoOf($serializer_40).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [$serializer_getInstance_128(), get_nullable($serializer_getInstance_130()), get_nullable($serializer_getInstance_131()), get_nullable($serializer_getInstance_121()), get_nullable($serializer_getInstance_123()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_40).s44 = function (decoder) {
    var tmp0_desc = this.bkc_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.i48(tmp0_desc);
    if (tmp10_input.x48()) {
      tmp4_local0 = tmp10_input.u48(tmp0_desc, 0, $serializer_getInstance_128(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, $serializer_getInstance_130(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, $serializer_getInstance_131(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, $serializer_getInstance_121(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.w48(tmp0_desc, 4, $serializer_getInstance_123(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.u48(tmp0_desc, 0, $serializer_getInstance_128(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, $serializer_getInstance_130(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, $serializer_getInstance_131(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, $serializer_getInstance_121(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.w48(tmp0_desc, 4, $serializer_getInstance_123(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.j48(tmp0_desc);
    return StatementEntityAndVerb_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_40).ckc = function (encoder, value) {
    var tmp0_desc = this.bkc_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.njj_1.equals(new StatementEntity())) {
      tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance_128(), value.njj_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.ojj_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_130(), value.ojj_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.pjj_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_131(), value.pjj_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.qjj_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, $serializer_getInstance_121(), value.qjj_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.rjj_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, $serializer_getInstance_123(), value.rjj_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.sjj_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.sjj_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_40).r44 = function (encoder, value) {
    return this.ckc(encoder, value instanceof StatementEntityAndVerb ? value : THROW_CCE());
  };
  var $serializer_instance_40;
  function $serializer_getInstance_40() {
    if ($serializer_instance_40 == null)
      new $serializer_40();
    return $serializer_instance_40;
  }
  function StatementEntityAndVerb_init_$Init$(seen1, statementEntity, verb, verbDisplay, activity, activityLangMapEntry, statementActivityDescription, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_40().bkc_1);
    }
    if (0 === (seen1 & 1))
      $this.njj_1 = new StatementEntity();
    else
      $this.njj_1 = statementEntity;
    if (0 === (seen1 & 2))
      $this.ojj_1 = null;
    else
      $this.ojj_1 = verb;
    if (0 === (seen1 & 4))
      $this.pjj_1 = null;
    else
      $this.pjj_1 = verbDisplay;
    if (0 === (seen1 & 8))
      $this.qjj_1 = null;
    else
      $this.qjj_1 = activity;
    if (0 === (seen1 & 16))
      $this.rjj_1 = null;
    else
      $this.rjj_1 = activityLangMapEntry;
    if (0 === (seen1 & 32))
      $this.sjj_1 = null;
    else
      $this.sjj_1 = statementActivityDescription;
    return $this;
  }
  function StatementEntityAndVerb_init_$Create$(seen1, statementEntity, verb, verbDisplay, activity, activityLangMapEntry, statementActivityDescription, serializationConstructorMarker) {
    return StatementEntityAndVerb_init_$Init$(seen1, statementEntity, verb, verbDisplay, activity, activityLangMapEntry, statementActivityDescription, serializationConstructorMarker, objectCreate(protoOf(StatementEntityAndVerb)));
  }
  function StatementEntityAndVerb(statementEntity, verb, verbDisplay, activity, activityLangMapEntry, statementActivityDescription) {
    statementEntity = statementEntity === VOID ? new StatementEntity() : statementEntity;
    verb = verb === VOID ? null : verb;
    verbDisplay = verbDisplay === VOID ? null : verbDisplay;
    activity = activity === VOID ? null : activity;
    activityLangMapEntry = activityLangMapEntry === VOID ? null : activityLangMapEntry;
    statementActivityDescription = statementActivityDescription === VOID ? null : statementActivityDescription;
    this.njj_1 = statementEntity;
    this.ojj_1 = verb;
    this.pjj_1 = verbDisplay;
    this.qjj_1 = activity;
    this.rjj_1 = activityLangMapEntry;
    this.sjj_1 = statementActivityDescription;
  }
  function StatementConst() {
    this.dkc_1 = 1;
    this.ekc_1 = 2;
    this.fkc_1 = 3;
    this.gkc_1 = 4;
  }
  var StatementConst_instance;
  function StatementConst_getInstance() {
    return StatementConst_instance;
  }
  function Companion_43() {
  }
  var Companion_instance_44;
  function Companion_getInstance_46() {
    return Companion_instance_44;
  }
  function $serializer_41() {
    $serializer_instance_41 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.xapi.VerbEntityAndName', this, 2);
    tmp0_serialDesc.t4f('verbEntity', true);
    tmp0_serialDesc.t4f('verbName', true);
    this.hkc_1 = tmp0_serialDesc;
  }
  protoOf($serializer_41).q44 = function () {
    return this.hkc_1;
  };
  protoOf($serializer_41).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [$serializer_getInstance_130(), get_nullable($serializer_getInstance_131())];
  };
  protoOf($serializer_41).s44 = function (decoder) {
    var tmp0_desc = this.hkc_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, $serializer_getInstance_130(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_131(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, $serializer_getInstance_130(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_131(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return VerbEntityAndName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_41).ikc = function (encoder, value) {
    var tmp0_desc = this.hkc_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.njl_1.equals(new VerbEntity())) {
      tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance_130(), value.njl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.ojl_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_131(), value.ojl_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_41).r44 = function (encoder, value) {
    return this.ikc(encoder, value instanceof VerbEntityAndName ? value : THROW_CCE());
  };
  var $serializer_instance_41;
  function $serializer_getInstance_41() {
    if ($serializer_instance_41 == null)
      new $serializer_41();
    return $serializer_instance_41;
  }
  function VerbEntityAndName_init_$Init$(seen1, verbEntity, verbName, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_41().hkc_1);
    }
    if (0 === (seen1 & 1))
      $this.njl_1 = new VerbEntity();
    else
      $this.njl_1 = verbEntity;
    if (0 === (seen1 & 2))
      $this.ojl_1 = null;
    else
      $this.ojl_1 = verbName;
    return $this;
  }
  function VerbEntityAndName_init_$Create$(seen1, verbEntity, verbName, serializationConstructorMarker) {
    return VerbEntityAndName_init_$Init$(seen1, verbEntity, verbName, serializationConstructorMarker, objectCreate(protoOf(VerbEntityAndName)));
  }
  function VerbEntityAndName(verbEntity, verbName) {
    verbEntity = verbEntity === VOID ? new VerbEntity() : verbEntity;
    verbName = verbName === VOID ? null : verbName;
    this.njl_1 = verbEntity;
    this.ojl_1 = verbName;
  }
  protoOf(VerbEntityAndName).toString = function () {
    return 'VerbEntityAndName(verbEntity=' + this.njl_1 + ', verbName=' + this.ojl_1 + ')';
  };
  protoOf(VerbEntityAndName).hashCode = function () {
    var result = this.njl_1.hashCode();
    result = imul(result, 31) + (this.ojl_1 == null ? 0 : this.ojl_1.hashCode()) | 0;
    return result;
  };
  protoOf(VerbEntityAndName).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof VerbEntityAndName))
      return false;
    var tmp0_other_with_cast = other instanceof VerbEntityAndName ? other : THROW_CCE();
    if (!this.njl_1.equals(tmp0_other_with_cast.njl_1))
      return false;
    if (!equals(this.ojl_1, tmp0_other_with_cast.ojl_1))
      return false;
    return true;
  };
  function Companion_44() {
  }
  var Companion_instance_45;
  function Companion_getInstance_47() {
    return Companion_instance_45;
  }
  function $serializer_42() {
    $serializer_instance_42 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.AssignmentProgressSummary', this, 5);
    tmp0_serialDesc.t4f('submittedStudents', true);
    tmp0_serialDesc.t4f('totalStudents', true);
    tmp0_serialDesc.t4f('markedStudents', true);
    tmp0_serialDesc.t4f('activeUserHasViewLearnerRecordsPermission', true);
    tmp0_serialDesc.t4f('isGroupAssignment', true);
    this.jkc_1 = tmp0_serialDesc;
  }
  protoOf($serializer_42).q44 = function () {
    return this.jkc_1;
  };
  protoOf($serializer_42).k4g = 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_42).s44 = function (decoder) {
    var tmp0_desc = this.jkc_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.i48(tmp0_desc);
    if (tmp9_input.x48()) {
      tmp4_local0 = tmp9_input.n48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp9_input.n48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp9_input.n48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp9_input.k48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp9_input.k48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp9_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp9_input.n48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp9_input.n48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp9_input.n48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp9_input.k48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp9_input.k48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp9_input.j48(tmp0_desc);
    return AssignmentProgressSummary_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
  };
  protoOf($serializer_42).kkc = function (encoder, value) {
    var tmp0_desc = this.jkc_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.y7u_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 0, value.y7u_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.z7u_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 1, value.z7u_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.a7v_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 2, value.a7v_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.b7v_1 === false)) {
      tmp1_output.o49(tmp0_desc, 3, value.b7v_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.c7v_1 === false)) {
      tmp1_output.o49(tmp0_desc, 4, value.c7v_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_42).r44 = function (encoder, value) {
    return this.kkc(encoder, value instanceof AssignmentProgressSummary ? value : THROW_CCE());
  };
  var $serializer_instance_42;
  function $serializer_getInstance_42() {
    if ($serializer_instance_42 == null)
      new $serializer_42();
    return $serializer_instance_42;
  }
  function AssignmentProgressSummary_init_$Init$(seen1, submittedStudents, totalStudents, markedStudents, activeUserHasViewLearnerRecordsPermission, isGroupAssignment, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_42().jkc_1);
    }
    if (0 === (seen1 & 1))
      $this.y7u_1 = 0;
    else
      $this.y7u_1 = submittedStudents;
    if (0 === (seen1 & 2))
      $this.z7u_1 = 0;
    else
      $this.z7u_1 = totalStudents;
    if (0 === (seen1 & 4))
      $this.a7v_1 = 0;
    else
      $this.a7v_1 = markedStudents;
    if (0 === (seen1 & 8))
      $this.b7v_1 = false;
    else
      $this.b7v_1 = activeUserHasViewLearnerRecordsPermission;
    if (0 === (seen1 & 16))
      $this.c7v_1 = false;
    else
      $this.c7v_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.y7u_1 = 0;
    this.z7u_1 = 0;
    this.a7v_1 = 0;
    this.b7v_1 = false;
    this.c7v_1 = false;
  }
  function Companion_45() {
    Companion_instance_46 = this;
    var tmp = this;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    tmp.lkc_1 = [null, new ArrayListSerializer($serializer_getInstance_95())];
  }
  protoOf(Companion_45).n4r = function () {
    return $serializer_getInstance_43();
  };
  var Companion_instance_46;
  function Companion_getInstance_48() {
    if (Companion_instance_46 == null)
      new Companion_45();
    return Companion_instance_46;
  }
  function $serializer_43() {
    $serializer_instance_43 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.AssignmentSubmitterAndAllocations', this, 2);
    tmp0_serialDesc.t4f('submitter', true);
    tmp0_serialDesc.t4f('allocations', true);
    this.mkc_1 = tmp0_serialDesc;
  }
  protoOf($serializer_43).q44 = function () {
    return this.mkc_1;
  };
  protoOf($serializer_43).k4g = function () {
    var tmp0_cached = Companion_getInstance_48().lkc_1;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [$serializer_getInstance_44(), tmp0_cached[1]];
  };
  protoOf($serializer_43).s44 = function (decoder) {
    var tmp0_desc = this.mkc_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.i48(tmp0_desc);
    var tmp7_cached = Companion_getInstance_48().lkc_1;
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, $serializer_getInstance_44(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.u48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, $serializer_getInstance_44(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.u48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return AssignmentSubmitterAndAllocations_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_43).nkc = function (encoder, value) {
    var tmp0_desc = this.mkc_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    var tmp2_cached = Companion_getInstance_48().lkc_1;
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.okc_1.equals(new AssignmentSubmitterSummary())) {
      tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance_44(), value.okc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !equals(value.pkc_1, emptyList())) {
      tmp1_output.y49(tmp0_desc, 1, tmp2_cached[1], value.pkc_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_43).r44 = function (encoder, value) {
    return this.nkc(encoder, value instanceof AssignmentSubmitterAndAllocations ? value : THROW_CCE());
  };
  var $serializer_instance_43;
  function $serializer_getInstance_43() {
    if ($serializer_instance_43 == null)
      new $serializer_43();
    return $serializer_instance_43;
  }
  function AssignmentSubmitterAndAllocations_init_$Init$(seen1, submitter, allocations, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_43().mkc_1);
    }
    if (0 === (seen1 & 1))
      $this.okc_1 = new AssignmentSubmitterSummary();
    else
      $this.okc_1 = submitter;
    if (0 === (seen1 & 2))
      $this.pkc_1 = emptyList();
    else
      $this.pkc_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_48();
    submitter = submitter === VOID ? new AssignmentSubmitterSummary() : submitter;
    allocations = allocations === VOID ? emptyList() : allocations;
    this.okc_1 = submitter;
    this.pkc_1 = allocations;
  }
  protoOf(AssignmentSubmitterAndAllocations).qkc = function (submitter, allocations) {
    return new AssignmentSubmitterAndAllocations(submitter, allocations);
  };
  protoOf(AssignmentSubmitterAndAllocations).rkc = function (submitter, allocations, $super) {
    submitter = submitter === VOID ? this.okc_1 : submitter;
    allocations = allocations === VOID ? this.pkc_1 : allocations;
    return $super === VOID ? this.qkc(submitter, allocations) : $super.qkc.call(this, submitter, allocations);
  };
  protoOf(AssignmentSubmitterAndAllocations).toString = function () {
    return 'AssignmentSubmitterAndAllocations(submitter=' + this.okc_1 + ', allocations=' + this.pkc_1 + ')';
  };
  protoOf(AssignmentSubmitterAndAllocations).hashCode = function () {
    var result = this.okc_1.hashCode();
    result = imul(result, 31) + hashCode(this.pkc_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.okc_1.equals(tmp0_other_with_cast.okc_1))
      return false;
    if (!equals(this.pkc_1, tmp0_other_with_cast.pkc_1))
      return false;
    return true;
  };
  function Companion_46() {
  }
  var Companion_instance_47;
  function Companion_getInstance_49() {
    return Companion_instance_47;
  }
  function $serializer_44() {
    $serializer_instance_44 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.AssignmentSubmitterSummary', this, 5);
    tmp0_serialDesc.t4f('submitterUid', true);
    tmp0_serialDesc.t4f('name', true);
    tmp0_serialDesc.t4f('pictureUri', true);
    tmp0_serialDesc.t4f('latestPrivateComment', true);
    tmp0_serialDesc.t4f('fileSubmissionStatus', true);
    this.skc_1 = tmp0_serialDesc;
  }
  protoOf($serializer_44).q44 = function () {
    return this.skc_1;
  };
  protoOf($serializer_44).k4g = 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_44).s44 = function (decoder) {
    var tmp0_desc = this.skc_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.i48(tmp0_desc);
    if (tmp9_input.x48()) {
      tmp4_local0 = tmp9_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp9_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp9_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp9_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp9_input.n48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp9_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp9_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp9_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp9_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp9_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp9_input.n48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp9_input.j48(tmp0_desc);
    return AssignmentSubmitterSummary_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
  };
  protoOf($serializer_44).tkc = function (encoder, value) {
    var tmp0_desc = this.skc_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.r7v_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.r7v_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.s7v_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.s7v_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.t7v_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.t7v_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.u7v_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.u7v_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.v7v_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 4, value.v7v_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_44).r44 = function (encoder, value) {
    return this.tkc(encoder, value instanceof AssignmentSubmitterSummary ? value : THROW_CCE());
  };
  var $serializer_instance_44;
  function $serializer_getInstance_44() {
    if ($serializer_instance_44 == null)
      new $serializer_44();
    return $serializer_instance_44;
  }
  function AssignmentSubmitterSummary_init_$Init$(seen1, submitterUid, name, pictureUri, latestPrivateComment, fileSubmissionStatus, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_44().skc_1);
    }
    if (0 === (seen1 & 1))
      $this.r7v_1 = new Long(0, 0);
    else
      $this.r7v_1 = submitterUid;
    if (0 === (seen1 & 2))
      $this.s7v_1 = null;
    else
      $this.s7v_1 = name;
    if (0 === (seen1 & 4))
      $this.t7v_1 = null;
    else
      $this.t7v_1 = pictureUri;
    if (0 === (seen1 & 8))
      $this.u7v_1 = null;
    else
      $this.u7v_1 = latestPrivateComment;
    if (0 === (seen1 & 16))
      $this.v7v_1 = 0;
    else
      $this.v7v_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.r7v_1 = submitterUid;
    this.s7v_1 = name;
    this.t7v_1 = pictureUri;
    this.u7v_1 = latestPrivateComment;
    this.v7v_1 = fileSubmissionStatus;
  }
  protoOf(AssignmentSubmitterSummary).toString = function () {
    return 'AssignmentSubmitterSummary(submitterUid=' + this.r7v_1.toString() + ', name=' + this.s7v_1 + ', pictureUri=' + this.t7v_1 + ', latestPrivateComment=' + this.u7v_1 + ', fileSubmissionStatus=' + this.v7v_1 + ')';
  };
  protoOf(AssignmentSubmitterSummary).hashCode = function () {
    var result = this.r7v_1.hashCode();
    result = imul(result, 31) + (this.s7v_1 == null ? 0 : getStringHashCode(this.s7v_1)) | 0;
    result = imul(result, 31) + (this.t7v_1 == null ? 0 : getStringHashCode(this.t7v_1)) | 0;
    result = imul(result, 31) + (this.u7v_1 == null ? 0 : getStringHashCode(this.u7v_1)) | 0;
    result = imul(result, 31) + this.v7v_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.r7v_1.equals(tmp0_other_with_cast.r7v_1))
      return false;
    if (!(this.s7v_1 == tmp0_other_with_cast.s7v_1))
      return false;
    if (!(this.t7v_1 == tmp0_other_with_cast.t7v_1))
      return false;
    if (!(this.u7v_1 == tmp0_other_with_cast.u7v_1))
      return false;
    if (!(this.v7v_1 === tmp0_other_with_cast.v7v_1))
      return false;
    return true;
  };
  function Companion_47() {
  }
  var Companion_instance_48;
  function Companion_getInstance_50() {
    return Companion_instance_48;
  }
  function $serializer_45() {
    $serializer_instance_45 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.AverageCourseAssignmentMark', this, 2);
    tmp0_serialDesc.t4f('averageScore', true);
    tmp0_serialDesc.t4f('averagePenalty', true);
    this.ukc_1 = tmp0_serialDesc;
  }
  protoOf($serializer_45).q44 = function () {
    return this.ukc_1;
  };
  protoOf($serializer_45).k4g = 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_45).s44 = function (decoder) {
    var tmp0_desc = this.ukc_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.p48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.n48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.p48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.n48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return AverageCourseAssignmentMark_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_45).vkc = function (encoder, value) {
    var tmp0_desc = this.ukc_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !equals(value.wkc_1, 0.0)) {
      tmp1_output.t49(tmp0_desc, 0, value.wkc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.xkc_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 1, value.xkc_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_45).r44 = function (encoder, value) {
    return this.vkc(encoder, value instanceof AverageCourseAssignmentMark ? value : THROW_CCE());
  };
  var $serializer_instance_45;
  function $serializer_getInstance_45() {
    if ($serializer_instance_45 == null)
      new $serializer_45();
    return $serializer_instance_45;
  }
  function AverageCourseAssignmentMark_init_$Init$(seen1, averageScore, averagePenalty, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_45().ukc_1);
    }
    if (0 === (seen1 & 1))
      $this.wkc_1 = 0.0;
    else
      $this.wkc_1 = averageScore;
    if (0 === (seen1 & 2))
      $this.xkc_1 = 0;
    else
      $this.xkc_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.wkc_1 = 0.0;
    this.xkc_1 = 0;
  }
  protoOf(AverageCourseAssignmentMark).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof AverageCourseAssignmentMark))
      return false;
    if (!(this.wkc_1 === other.wkc_1))
      return false;
    if (!(this.xkc_1 === other.xkc_1))
      return false;
    return true;
  };
  protoOf(AverageCourseAssignmentMark).hashCode = function () {
    var result = getNumberHashCode(this.wkc_1);
    result = imul(31, result) + this.xkc_1 | 0;
    return result;
  };
  function Companion_48() {
    this.ykc_1 = 1;
    this.zkc_1 = 2;
    this.akd_1 = 3;
    this.bkd_1 = 4;
    this.ckd_1 = 1;
    this.dkd_1 = 2;
  }
  var Companion_instance_49;
  function Companion_getInstance_51() {
    return Companion_instance_49;
  }
  function CacheLockJoin() {
  }
  function Companion_49() {
    Companion_instance_50 = this;
    this.d90_1 = 6;
    this.e90_1 = new Long(1, 0);
    this.f90_1 = new Long(4, 0);
    this.g90_1 = new Long(8, 0);
    this.h90_1 = 6;
    this.i90_1 = 100;
    this.j90_1 = 102;
  }
  protoOf(Companion_49).n4r = function () {
    return $serializer_getInstance_46();
  };
  var Companion_instance_50;
  function Companion_getInstance_52() {
    if (Companion_instance_50 == null)
      new Companion_49();
    return Companion_instance_50;
  }
  function $serializer_46() {
    $serializer_instance_46 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Clazz', this, 25);
    tmp0_serialDesc.t4f('clazzUid', true);
    tmp0_serialDesc.t4f('clazzName', true);
    tmp0_serialDesc.t4f('clazzDesc', true);
    tmp0_serialDesc.t4f('attendanceAverage', true);
    tmp0_serialDesc.t4f('clazzHolidayUMCalendarUid', true);
    tmp0_serialDesc.t4f('clazzScheuleUMCalendarUid', true);
    tmp0_serialDesc.t4f('isClazzActive', true);
    tmp0_serialDesc.t4f('clazzLocationUid', true);
    tmp0_serialDesc.t4f('clazzStartTime', true);
    tmp0_serialDesc.t4f('clazzEndTime', true);
    tmp0_serialDesc.t4f('clazzFeatures', true);
    tmp0_serialDesc.t4f('clazzSchoolUid', true);
    tmp0_serialDesc.t4f('clazzEnrolmentPolicy', true);
    tmp0_serialDesc.t4f('clazzTerminologyUid', true);
    tmp0_serialDesc.t4f('clazzMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('clazzLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('clazzLastChangedBy', true);
    tmp0_serialDesc.t4f('clazzLct', true);
    tmp0_serialDesc.t4f('clazzTimeZone', true);
    tmp0_serialDesc.t4f('clazzStudentsPersonGroupUid', true);
    tmp0_serialDesc.t4f('clazzTeachersPersonGroupUid', true);
    tmp0_serialDesc.t4f('clazzPendingStudentsPersonGroupUid', true);
    tmp0_serialDesc.t4f('clazzParentsPersonGroupUid', true);
    tmp0_serialDesc.t4f('clazzCode', true);
    tmp0_serialDesc.t4f('clazzOwnerPersonUid', true);
    this.ekd_1 = tmp0_serialDesc;
  }
  protoOf($serializer_46).q44 = function () {
    return this.ekd_1;
  };
  protoOf($serializer_46).k4g = 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_46).s44 = function (decoder) {
    var tmp0_desc = this.ekd_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.i48(tmp0_desc);
    if (tmp29_input.x48()) {
      tmp4_local0 = tmp29_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp29_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp29_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp29_input.p48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp29_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp29_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp29_input.k48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp29_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp29_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp29_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp29_input.o48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp29_input.o48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp29_input.n48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp29_input.o48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp29_input.o48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp29_input.o48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp29_input.n48(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp29_input.o48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp29_input.w48(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp29_input.o48(tmp0_desc, 19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp24_local20 = tmp29_input.o48(tmp0_desc, 20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp25_local21 = tmp29_input.o48(tmp0_desc, 21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp26_local22 = tmp29_input.o48(tmp0_desc, 22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
      tmp27_local23 = tmp29_input.w48(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23);
      tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
      tmp28_local24 = tmp29_input.o48(tmp0_desc, 24);
      tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp29_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp29_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp29_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp29_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp29_input.p48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp29_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp29_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp29_input.k48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp29_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp29_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp29_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp29_input.o48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp29_input.o48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp29_input.n48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp29_input.o48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp29_input.o48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp29_input.o48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp29_input.n48(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp29_input.o48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp29_input.w48(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp29_input.o48(tmp0_desc, 19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp24_local20 = tmp29_input.o48(tmp0_desc, 20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp25_local21 = tmp29_input.o48(tmp0_desc, 21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp26_local22 = tmp29_input.o48(tmp0_desc, 22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          case 23:
            tmp27_local23 = tmp29_input.w48(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23);
            tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
            break;
          case 24:
            tmp28_local24 = tmp29_input.o48(tmp0_desc, 24);
            tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp29_input.j48(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_46).fkd = function (encoder, value) {
    var tmp0_desc = this.ekd_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.r8d_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.r8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.s8d_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.s8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.t8d_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.t8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !equals(value.u8d_1, -1.0)) {
      tmp1_output.t49(tmp0_desc, 3, value.u8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.v8d_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.v8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.w8d_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.w8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.x8d_1 === false)) {
      tmp1_output.o49(tmp0_desc, 6, value.x8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.y8d_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.y8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.z8d_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.z8d_1);
    }
    var tmp;
    if (tmp1_output.e4a(tmp0_desc, 9)) {
      tmp = true;
    } else {
      var tmp_0 = value.a8e_1;
      Companion_getInstance();
      tmp = !tmp_0.equals(new Long(-1, 2147483647));
    }
    if (tmp) {
      tmp1_output.s49(tmp0_desc, 9, value.a8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !value.b8e_1.equals(new Long(1, 0))) {
      tmp1_output.s49(tmp0_desc, 10, value.b8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !value.c8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 11, value.c8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !(value.d8e_1 === 102)) {
      tmp1_output.r49(tmp0_desc, 12, value.d8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !value.e8e_1.equals(new Long(25966, 0))) {
      tmp1_output.s49(tmp0_desc, 13, value.e8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 14) ? true : !value.f8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 14, value.f8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 15) ? true : !value.g8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 15, value.g8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 16) ? true : !(value.h8e_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 16, value.h8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 17) ? true : !value.i8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 17, value.i8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 18) ? true : !(value.j8e_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 18, StringSerializer_getInstance(), value.j8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 19) ? true : !value.k8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 19, value.k8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 20) ? true : !value.l8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 20, value.l8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 21) ? true : !value.m8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 21, value.m8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 22) ? true : !value.n8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 22, value.n8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 23) ? true : !(value.o8e_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 23, StringSerializer_getInstance(), value.o8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 24) ? true : !value.p8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 24, value.p8e_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_46).r44 = function (encoder, value) {
    return this.fkd(encoder, value instanceof Clazz ? value : THROW_CCE());
  };
  var $serializer_instance_46;
  function $serializer_getInstance_46() {
    if ($serializer_instance_46 == null)
      new $serializer_46();
    return $serializer_instance_46;
  }
  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_46().ekd_1);
    }
    if (0 === (seen1 & 1))
      $this.r8d_1 = new Long(0, 0);
    else
      $this.r8d_1 = clazzUid;
    if (0 === (seen1 & 2))
      $this.s8d_1 = null;
    else
      $this.s8d_1 = clazzName;
    if (0 === (seen1 & 4))
      $this.t8d_1 = null;
    else
      $this.t8d_1 = clazzDesc;
    if (0 === (seen1 & 8))
      $this.u8d_1 = -1.0;
    else
      $this.u8d_1 = attendanceAverage;
    if (0 === (seen1 & 16))
      $this.v8d_1 = new Long(0, 0);
    else
      $this.v8d_1 = clazzHolidayUMCalendarUid;
    if (0 === (seen1 & 32))
      $this.w8d_1 = new Long(0, 0);
    else
      $this.w8d_1 = clazzScheuleUMCalendarUid;
    if (0 === (seen1 & 64))
      $this.x8d_1 = false;
    else
      $this.x8d_1 = isClazzActive;
    if (0 === (seen1 & 128))
      $this.y8d_1 = new Long(0, 0);
    else
      $this.y8d_1 = clazzLocationUid;
    if (0 === (seen1 & 256))
      $this.z8d_1 = new Long(0, 0);
    else
      $this.z8d_1 = clazzStartTime;
    if (0 === (seen1 & 512)) {
      var tmp = $this;
      Companion_getInstance();
      tmp.a8e_1 = new Long(-1, 2147483647);
    } else
      $this.a8e_1 = clazzEndTime;
    if (0 === (seen1 & 1024))
      $this.b8e_1 = new Long(1, 0);
    else
      $this.b8e_1 = clazzFeatures;
    if (0 === (seen1 & 2048))
      $this.c8e_1 = new Long(0, 0);
    else
      $this.c8e_1 = clazzSchoolUid;
    if (0 === (seen1 & 4096))
      $this.d8e_1 = 102;
    else
      $this.d8e_1 = clazzEnrolmentPolicy;
    if (0 === (seen1 & 8192))
      $this.e8e_1 = new Long(25966, 0);
    else
      $this.e8e_1 = clazzTerminologyUid;
    if (0 === (seen1 & 16384))
      $this.f8e_1 = new Long(0, 0);
    else
      $this.f8e_1 = clazzMasterChangeSeqNum;
    if (0 === (seen1 & 32768))
      $this.g8e_1 = new Long(0, 0);
    else
      $this.g8e_1 = clazzLocalChangeSeqNum;
    if (0 === (seen1 & 65536))
      $this.h8e_1 = 0;
    else
      $this.h8e_1 = clazzLastChangedBy;
    if (0 === (seen1 & 131072))
      $this.i8e_1 = new Long(0, 0);
    else
      $this.i8e_1 = clazzLct;
    if (0 === (seen1 & 262144))
      $this.j8e_1 = null;
    else
      $this.j8e_1 = clazzTimeZone;
    if (0 === (seen1 & 524288))
      $this.k8e_1 = new Long(0, 0);
    else
      $this.k8e_1 = clazzStudentsPersonGroupUid;
    if (0 === (seen1 & 1048576))
      $this.l8e_1 = new Long(0, 0);
    else
      $this.l8e_1 = clazzTeachersPersonGroupUid;
    if (0 === (seen1 & 2097152))
      $this.m8e_1 = new Long(0, 0);
    else
      $this.m8e_1 = clazzPendingStudentsPersonGroupUid;
    if (0 === (seen1 & 4194304))
      $this.n8e_1 = new Long(0, 0);
    else
      $this.n8e_1 = clazzParentsPersonGroupUid;
    if (0 === (seen1 & 8388608))
      $this.o8e_1 = null;
    else
      $this.o8e_1 = clazzCode;
    if (0 === (seen1 & 16777216))
      $this.p8e_1 = new Long(0, 0);
    else
      $this.p8e_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_52();
    this.r8d_1 = new Long(0, 0);
    this.s8d_1 = null;
    this.t8d_1 = null;
    this.u8d_1 = -1.0;
    this.v8d_1 = new Long(0, 0);
    this.w8d_1 = new Long(0, 0);
    this.x8d_1 = false;
    this.y8d_1 = new Long(0, 0);
    this.z8d_1 = new Long(0, 0);
    var tmp = this;
    Companion_getInstance();
    tmp.a8e_1 = new Long(-1, 2147483647);
    this.b8e_1 = new Long(1, 0);
    this.c8e_1 = new Long(0, 0);
    this.d8e_1 = 102;
    this.e8e_1 = new Long(25966, 0);
    this.f8e_1 = new Long(0, 0);
    this.g8e_1 = new Long(0, 0);
    this.h8e_1 = 0;
    this.i8e_1 = new Long(0, 0);
    this.j8e_1 = null;
    this.k8e_1 = new Long(0, 0);
    this.l8e_1 = new Long(0, 0);
    this.m8e_1 = new Long(0, 0);
    this.n8e_1 = new Long(0, 0);
    this.o8e_1 = null;
    this.p8e_1 = new Long(0, 0);
  }
  protoOf(Clazz).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof Clazz))
      return false;
    if (!this.r8d_1.equals(other.r8d_1))
      return false;
    if (!(this.s8d_1 == other.s8d_1))
      return false;
    if (!(this.t8d_1 == other.t8d_1))
      return false;
    if (!(this.u8d_1 === other.u8d_1))
      return false;
    if (!this.v8d_1.equals(other.v8d_1))
      return false;
    if (!this.w8d_1.equals(other.w8d_1))
      return false;
    if (!(this.x8d_1 === other.x8d_1))
      return false;
    if (!this.y8d_1.equals(other.y8d_1))
      return false;
    if (!this.z8d_1.equals(other.z8d_1))
      return false;
    if (!this.a8e_1.equals(other.a8e_1))
      return false;
    if (!this.b8e_1.equals(other.b8e_1))
      return false;
    if (!this.c8e_1.equals(other.c8e_1))
      return false;
    if (!(this.d8e_1 === other.d8e_1))
      return false;
    if (!this.e8e_1.equals(other.e8e_1))
      return false;
    if (!this.f8e_1.equals(other.f8e_1))
      return false;
    if (!this.g8e_1.equals(other.g8e_1))
      return false;
    if (!(this.h8e_1 === other.h8e_1))
      return false;
    if (!this.i8e_1.equals(other.i8e_1))
      return false;
    if (!(this.j8e_1 == other.j8e_1))
      return false;
    if (!this.k8e_1.equals(other.k8e_1))
      return false;
    if (!this.l8e_1.equals(other.l8e_1))
      return false;
    if (!this.m8e_1.equals(other.m8e_1))
      return false;
    if (!this.n8e_1.equals(other.n8e_1))
      return false;
    if (!(this.o8e_1 == other.o8e_1))
      return false;
    return true;
  };
  protoOf(Clazz).hashCode = function () {
    var result = this.r8d_1.hashCode();
    var tmp = imul(31, result);
    var tmp0_safe_receiver = this.s8d_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.t8d_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.u8d_1) | 0;
    result = imul(31, result) + this.v8d_1.hashCode() | 0;
    result = imul(31, result) + this.w8d_1.hashCode() | 0;
    result = imul(31, result) + getBooleanHashCode(this.x8d_1) | 0;
    result = imul(31, result) + this.y8d_1.hashCode() | 0;
    result = imul(31, result) + this.z8d_1.hashCode() | 0;
    result = imul(31, result) + this.a8e_1.hashCode() | 0;
    result = imul(31, result) + this.b8e_1.hashCode() | 0;
    result = imul(31, result) + this.c8e_1.hashCode() | 0;
    result = imul(31, result) + this.d8e_1 | 0;
    result = imul(31, result) + this.e8e_1.hashCode() | 0;
    result = imul(31, result) + this.f8e_1.hashCode() | 0;
    result = imul(31, result) + this.g8e_1.hashCode() | 0;
    result = imul(31, result) + this.h8e_1 | 0;
    result = imul(31, result) + this.i8e_1.hashCode() | 0;
    var tmp_1 = imul(31, result);
    var tmp4_safe_receiver = this.j8e_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.k8e_1.hashCode() | 0;
    result = imul(31, result) + this.l8e_1.hashCode() | 0;
    result = imul(31, result) + this.m8e_1.hashCode() | 0;
    result = imul(31, result) + this.n8e_1.hashCode() | 0;
    var tmp_2 = imul(31, result);
    var tmp6_safe_receiver = this.o8e_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_50() {
    this.gkd_1 = 520;
    this.hkd_1 = 1;
    this.ikd_1 = 2;
    this.jkd_1 = 1;
    this.kkd_1 = 2;
    this.lkd_1 = 0;
    this.mkd_1 = 1;
    this.nkd_1 = 2;
    this.okd_1 = 3;
    this.pkd_1 = 4;
    this.qkd_1 = 1;
    this.rkd_1 = 2;
    this.skd_1 = 100;
    this.tkd_1 = 102;
  }
  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.ClazzAssignment', this, 24);
    tmp0_serialDesc.t4f('caUid', true);
    tmp0_serialDesc.t4f('caTitle', true);
    tmp0_serialDesc.t4f('caDescription', true);
    tmp0_serialDesc.t4f('caGroupUid', true);
    tmp0_serialDesc.t4f('caActive', true);
    tmp0_serialDesc.t4f('caClassCommentEnabled', true);
    tmp0_serialDesc.t4f('caPrivateCommentsEnabled', true);
    tmp0_serialDesc.t4f('caCompletionCriteria', true);
    tmp0_serialDesc.t4f('caRequireFileSubmission', true);
    tmp0_serialDesc.t4f('caFileType', true);
    tmp0_serialDesc.t4f('caSizeLimit', true);
    tmp0_serialDesc.t4f('caNumberOfFiles', true);
    tmp0_serialDesc.t4f('caSubmissionPolicy', true);
    tmp0_serialDesc.t4f('caMarkingType', true);
    tmp0_serialDesc.t4f('caRequireTextSubmission', true);
    tmp0_serialDesc.t4f('caTextLimitType', true);
    tmp0_serialDesc.t4f('caTextLimit', true);
    tmp0_serialDesc.t4f('caXObjectUid', true);
    tmp0_serialDesc.t4f('caClazzUid', true);
    tmp0_serialDesc.t4f('caPeerReviewerCount', true);
    tmp0_serialDesc.t4f('caLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('caMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('caLastChangedBy', true);
    tmp0_serialDesc.t4f('caLct', true);
    this.ukd_1 = tmp0_serialDesc;
  }
  protoOf($serializer_47).q44 = function () {
    return this.ukd_1;
  };
  protoOf($serializer_47).k4g = 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_47).s44 = function (decoder) {
    var tmp0_desc = this.ukd_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.i48(tmp0_desc);
    if (tmp28_input.x48()) {
      tmp4_local0 = tmp28_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp28_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp28_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp28_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp28_input.k48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp28_input.k48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp28_input.k48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp28_input.n48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp28_input.k48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp28_input.n48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp28_input.n48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp28_input.n48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp28_input.n48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp28_input.n48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp28_input.k48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp28_input.n48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp28_input.n48(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp28_input.o48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp28_input.o48(tmp0_desc, 18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp28_input.n48(tmp0_desc, 19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp24_local20 = tmp28_input.o48(tmp0_desc, 20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp25_local21 = tmp28_input.o48(tmp0_desc, 21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp26_local22 = tmp28_input.n48(tmp0_desc, 22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
      tmp27_local23 = tmp28_input.o48(tmp0_desc, 23);
      tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp28_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp28_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp28_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp28_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp28_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp28_input.k48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp28_input.k48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp28_input.k48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp28_input.n48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp28_input.k48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp28_input.n48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp28_input.n48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp28_input.n48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp28_input.n48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp28_input.n48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp28_input.k48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp28_input.n48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp28_input.n48(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp28_input.o48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp28_input.o48(tmp0_desc, 18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp28_input.n48(tmp0_desc, 19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp24_local20 = tmp28_input.o48(tmp0_desc, 20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp25_local21 = tmp28_input.o48(tmp0_desc, 21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp26_local22 = tmp28_input.n48(tmp0_desc, 22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          case 23:
            tmp27_local23 = tmp28_input.o48(tmp0_desc, 23);
            tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp28_input.j48(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_47).vkd = function (encoder, value) {
    var tmp0_desc = this.ukd_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.n7t_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.n7t_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.o7t_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.o7t_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.p7t_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.p7t_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.q7t_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.q7t_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.r7t_1 === true)) {
      tmp1_output.o49(tmp0_desc, 4, value.r7t_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.s7t_1 === true)) {
      tmp1_output.o49(tmp0_desc, 5, value.s7t_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.t7t_1 === true)) {
      tmp1_output.o49(tmp0_desc, 6, value.t7t_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.u7t_1 === 100)) {
      tmp1_output.r49(tmp0_desc, 7, value.u7t_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.v7t_1 === true)) {
      tmp1_output.o49(tmp0_desc, 8, value.v7t_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.w7t_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 9, value.w7t_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.x7t_1 === 50)) {
      tmp1_output.r49(tmp0_desc, 10, value.x7t_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !(value.y7t_1 === 1)) {
      tmp1_output.r49(tmp0_desc, 11, value.y7t_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !(value.z7t_1 === 1)) {
      tmp1_output.r49(tmp0_desc, 12, value.z7t_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !(value.a7u_1 === 1)) {
      tmp1_output.r49(tmp0_desc, 13, value.a7u_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 14) ? true : !(value.b7u_1 === true)) {
      tmp1_output.o49(tmp0_desc, 14, value.b7u_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 15) ? true : !(value.c7u_1 === 1)) {
      tmp1_output.r49(tmp0_desc, 15, value.c7u_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 16) ? true : !(value.d7u_1 === 500)) {
      tmp1_output.r49(tmp0_desc, 16, value.d7u_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 17) ? true : !value.e7u_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 17, value.e7u_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 18) ? true : !value.f7u_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 18, value.f7u_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 19) ? true : !(value.g7u_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 19, value.g7u_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 20) ? true : !value.h7u_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 20, value.h7u_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 21) ? true : !value.i7u_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 21, value.i7u_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 22) ? true : !(value.j7u_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 22, value.j7u_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 23) ? true : !value.k7u_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 23, value.k7u_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_47).r44 = function (encoder, value) {
    return this.vkd(encoder, value instanceof ClazzAssignment ? value : THROW_CCE());
  };
  var $serializer_instance_47;
  function $serializer_getInstance_47() {
    if ($serializer_instance_47 == null)
      new $serializer_47();
    return $serializer_instance_47;
  }
  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_47().ukd_1);
    }
    if (0 === (seen1 & 1))
      $this.n7t_1 = new Long(0, 0);
    else
      $this.n7t_1 = caUid;
    if (0 === (seen1 & 2))
      $this.o7t_1 = null;
    else
      $this.o7t_1 = caTitle;
    if (0 === (seen1 & 4))
      $this.p7t_1 = null;
    else
      $this.p7t_1 = caDescription;
    if (0 === (seen1 & 8))
      $this.q7t_1 = new Long(0, 0);
    else
      $this.q7t_1 = caGroupUid;
    if (0 === (seen1 & 16))
      $this.r7t_1 = true;
    else
      $this.r7t_1 = caActive;
    if (0 === (seen1 & 32))
      $this.s7t_1 = true;
    else
      $this.s7t_1 = caClassCommentEnabled;
    if (0 === (seen1 & 64))
      $this.t7t_1 = true;
    else
      $this.t7t_1 = caPrivateCommentsEnabled;
    if (0 === (seen1 & 128))
      $this.u7t_1 = 100;
    else
      $this.u7t_1 = caCompletionCriteria;
    if (0 === (seen1 & 256))
      $this.v7t_1 = true;
    else
      $this.v7t_1 = caRequireFileSubmission;
    if (0 === (seen1 & 512))
      $this.w7t_1 = 0;
    else
      $this.w7t_1 = caFileType;
    if (0 === (seen1 & 1024))
      $this.x7t_1 = 50;
    else
      $this.x7t_1 = caSizeLimit;
    if (0 === (seen1 & 2048))
      $this.y7t_1 = 1;
    else
      $this.y7t_1 = caNumberOfFiles;
    if (0 === (seen1 & 4096))
      $this.z7t_1 = 1;
    else
      $this.z7t_1 = caSubmissionPolicy;
    if (0 === (seen1 & 8192))
      $this.a7u_1 = 1;
    else
      $this.a7u_1 = caMarkingType;
    if (0 === (seen1 & 16384))
      $this.b7u_1 = true;
    else
      $this.b7u_1 = caRequireTextSubmission;
    if (0 === (seen1 & 32768))
      $this.c7u_1 = 1;
    else
      $this.c7u_1 = caTextLimitType;
    if (0 === (seen1 & 65536))
      $this.d7u_1 = 500;
    else
      $this.d7u_1 = caTextLimit;
    if (0 === (seen1 & 131072))
      $this.e7u_1 = new Long(0, 0);
    else
      $this.e7u_1 = caXObjectUid;
    if (0 === (seen1 & 262144))
      $this.f7u_1 = new Long(0, 0);
    else
      $this.f7u_1 = caClazzUid;
    if (0 === (seen1 & 524288))
      $this.g7u_1 = 0;
    else
      $this.g7u_1 = caPeerReviewerCount;
    if (0 === (seen1 & 1048576))
      $this.h7u_1 = new Long(0, 0);
    else
      $this.h7u_1 = caLocalChangeSeqNum;
    if (0 === (seen1 & 2097152))
      $this.i7u_1 = new Long(0, 0);
    else
      $this.i7u_1 = caMasterChangeSeqNum;
    if (0 === (seen1 & 4194304))
      $this.j7u_1 = 0;
    else
      $this.j7u_1 = caLastChangedBy;
    if (0 === (seen1 & 8388608))
      $this.k7u_1 = new Long(0, 0);
    else
      $this.k7u_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.n7t_1 = caUid;
    this.o7t_1 = caTitle;
    this.p7t_1 = caDescription;
    this.q7t_1 = caGroupUid;
    this.r7t_1 = caActive;
    this.s7t_1 = caClassCommentEnabled;
    this.t7t_1 = caPrivateCommentsEnabled;
    this.u7t_1 = caCompletionCriteria;
    this.v7t_1 = caRequireFileSubmission;
    this.w7t_1 = caFileType;
    this.x7t_1 = caSizeLimit;
    this.y7t_1 = caNumberOfFiles;
    this.z7t_1 = caSubmissionPolicy;
    this.a7u_1 = caMarkingType;
    this.b7u_1 = caRequireTextSubmission;
    this.c7u_1 = caTextLimitType;
    this.d7u_1 = caTextLimit;
    this.e7u_1 = caXObjectUid;
    this.f7u_1 = caClazzUid;
    this.g7u_1 = caPeerReviewerCount;
    this.h7u_1 = caLocalChangeSeqNum;
    this.i7u_1 = caMasterChangeSeqNum;
    this.j7u_1 = caLastChangedBy;
    this.k7u_1 = caLct;
  }
  protoOf(ClazzAssignment).wkd = function (caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) {
    return new 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);
  };
  protoOf(ClazzAssignment).xkd = function (caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct, $super) {
    caUid = caUid === VOID ? this.n7t_1 : caUid;
    caTitle = caTitle === VOID ? this.o7t_1 : caTitle;
    caDescription = caDescription === VOID ? this.p7t_1 : caDescription;
    caGroupUid = caGroupUid === VOID ? this.q7t_1 : caGroupUid;
    caActive = caActive === VOID ? this.r7t_1 : caActive;
    caClassCommentEnabled = caClassCommentEnabled === VOID ? this.s7t_1 : caClassCommentEnabled;
    caPrivateCommentsEnabled = caPrivateCommentsEnabled === VOID ? this.t7t_1 : caPrivateCommentsEnabled;
    caCompletionCriteria = caCompletionCriteria === VOID ? this.u7t_1 : caCompletionCriteria;
    caRequireFileSubmission = caRequireFileSubmission === VOID ? this.v7t_1 : caRequireFileSubmission;
    caFileType = caFileType === VOID ? this.w7t_1 : caFileType;
    caSizeLimit = caSizeLimit === VOID ? this.x7t_1 : caSizeLimit;
    caNumberOfFiles = caNumberOfFiles === VOID ? this.y7t_1 : caNumberOfFiles;
    caSubmissionPolicy = caSubmissionPolicy === VOID ? this.z7t_1 : caSubmissionPolicy;
    caMarkingType = caMarkingType === VOID ? this.a7u_1 : caMarkingType;
    caRequireTextSubmission = caRequireTextSubmission === VOID ? this.b7u_1 : caRequireTextSubmission;
    caTextLimitType = caTextLimitType === VOID ? this.c7u_1 : caTextLimitType;
    caTextLimit = caTextLimit === VOID ? this.d7u_1 : caTextLimit;
    caXObjectUid = caXObjectUid === VOID ? this.e7u_1 : caXObjectUid;
    caClazzUid = caClazzUid === VOID ? this.f7u_1 : caClazzUid;
    caPeerReviewerCount = caPeerReviewerCount === VOID ? this.g7u_1 : caPeerReviewerCount;
    caLocalChangeSeqNum = caLocalChangeSeqNum === VOID ? this.h7u_1 : caLocalChangeSeqNum;
    caMasterChangeSeqNum = caMasterChangeSeqNum === VOID ? this.i7u_1 : caMasterChangeSeqNum;
    caLastChangedBy = caLastChangedBy === VOID ? this.j7u_1 : caLastChangedBy;
    caLct = caLct === VOID ? this.k7u_1 : caLct;
    return $super === VOID ? this.wkd(caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) : $super.wkd.call(this, caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct);
  };
  protoOf(ClazzAssignment).toString = function () {
    return 'ClazzAssignment(caUid=' + this.n7t_1.toString() + ', caTitle=' + this.o7t_1 + ', caDescription=' + this.p7t_1 + ', caGroupUid=' + this.q7t_1.toString() + ', caActive=' + this.r7t_1 + ', caClassCommentEnabled=' + this.s7t_1 + ', caPrivateCommentsEnabled=' + this.t7t_1 + ', caCompletionCriteria=' + this.u7t_1 + ', caRequireFileSubmission=' + this.v7t_1 + ', caFileType=' + this.w7t_1 + ', caSizeLimit=' + this.x7t_1 + ', caNumberOfFiles=' + this.y7t_1 + ', caSubmissionPolicy=' + this.z7t_1 + ', caMarkingType=' + this.a7u_1 + ', caRequireTextSubmission=' + this.b7u_1 + ', caTextLimitType=' + this.c7u_1 + ', caTextLimit=' + this.d7u_1 + ', caXObjectUid=' + this.e7u_1.toString() + ', caClazzUid=' + this.f7u_1.toString() + ', caPeerReviewerCount=' + this.g7u_1 + ', caLocalChangeSeqNum=' + this.h7u_1.toString() + ', caMasterChangeSeqNum=' + this.i7u_1.toString() + ', caLastChangedBy=' + this.j7u_1 + ', caLct=' + this.k7u_1.toString() + ')';
  };
  protoOf(ClazzAssignment).hashCode = function () {
    var result = this.n7t_1.hashCode();
    result = imul(result, 31) + (this.o7t_1 == null ? 0 : getStringHashCode(this.o7t_1)) | 0;
    result = imul(result, 31) + (this.p7t_1 == null ? 0 : getStringHashCode(this.p7t_1)) | 0;
    result = imul(result, 31) + this.q7t_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.r7t_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.s7t_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.t7t_1) | 0;
    result = imul(result, 31) + this.u7t_1 | 0;
    result = imul(result, 31) + getBooleanHashCode(this.v7t_1) | 0;
    result = imul(result, 31) + this.w7t_1 | 0;
    result = imul(result, 31) + this.x7t_1 | 0;
    result = imul(result, 31) + this.y7t_1 | 0;
    result = imul(result, 31) + this.z7t_1 | 0;
    result = imul(result, 31) + this.a7u_1 | 0;
    result = imul(result, 31) + getBooleanHashCode(this.b7u_1) | 0;
    result = imul(result, 31) + this.c7u_1 | 0;
    result = imul(result, 31) + this.d7u_1 | 0;
    result = imul(result, 31) + this.e7u_1.hashCode() | 0;
    result = imul(result, 31) + this.f7u_1.hashCode() | 0;
    result = imul(result, 31) + this.g7u_1 | 0;
    result = imul(result, 31) + this.h7u_1.hashCode() | 0;
    result = imul(result, 31) + this.i7u_1.hashCode() | 0;
    result = imul(result, 31) + this.j7u_1 | 0;
    result = imul(result, 31) + this.k7u_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.n7t_1.equals(tmp0_other_with_cast.n7t_1))
      return false;
    if (!(this.o7t_1 == tmp0_other_with_cast.o7t_1))
      return false;
    if (!(this.p7t_1 == tmp0_other_with_cast.p7t_1))
      return false;
    if (!this.q7t_1.equals(tmp0_other_with_cast.q7t_1))
      return false;
    if (!(this.r7t_1 === tmp0_other_with_cast.r7t_1))
      return false;
    if (!(this.s7t_1 === tmp0_other_with_cast.s7t_1))
      return false;
    if (!(this.t7t_1 === tmp0_other_with_cast.t7t_1))
      return false;
    if (!(this.u7t_1 === tmp0_other_with_cast.u7t_1))
      return false;
    if (!(this.v7t_1 === tmp0_other_with_cast.v7t_1))
      return false;
    if (!(this.w7t_1 === tmp0_other_with_cast.w7t_1))
      return false;
    if (!(this.x7t_1 === tmp0_other_with_cast.x7t_1))
      return false;
    if (!(this.y7t_1 === tmp0_other_with_cast.y7t_1))
      return false;
    if (!(this.z7t_1 === tmp0_other_with_cast.z7t_1))
      return false;
    if (!(this.a7u_1 === tmp0_other_with_cast.a7u_1))
      return false;
    if (!(this.b7u_1 === tmp0_other_with_cast.b7u_1))
      return false;
    if (!(this.c7u_1 === tmp0_other_with_cast.c7u_1))
      return false;
    if (!(this.d7u_1 === tmp0_other_with_cast.d7u_1))
      return false;
    if (!this.e7u_1.equals(tmp0_other_with_cast.e7u_1))
      return false;
    if (!this.f7u_1.equals(tmp0_other_with_cast.f7u_1))
      return false;
    if (!(this.g7u_1 === tmp0_other_with_cast.g7u_1))
      return false;
    if (!this.h7u_1.equals(tmp0_other_with_cast.h7u_1))
      return false;
    if (!this.i7u_1.equals(tmp0_other_with_cast.i7u_1))
      return false;
    if (!(this.j7u_1 === tmp0_other_with_cast.j7u_1))
      return false;
    if (!this.k7u_1.equals(tmp0_other_with_cast.k7u_1))
      return false;
    return true;
  };
  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.ClazzAssignmentCourseBlockAndSubmitterUid', this, 6);
    tmp0_serialDesc.t4f('clazzAssignment', true);
    tmp0_serialDesc.t4f('courseBlock', true);
    tmp0_serialDesc.t4f('courseBlockPicture', true);
    tmp0_serialDesc.t4f('courseGroupSet', true);
    tmp0_serialDesc.t4f('submitterUid', true);
    tmp0_serialDesc.t4f('hasModeratePermission', true);
    this.ykd_1 = tmp0_serialDesc;
  }
  protoOf($serializer_48).q44 = function () {
    return this.ykd_1;
  };
  protoOf($serializer_48).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_47()), get_nullable($serializer_getInstance_74()), get_nullable($serializer_getInstance_75()), get_nullable($serializer_getInstance_78()), LongSerializer_getInstance(), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_48).s44 = function (decoder) {
    var tmp0_desc = this.ykd_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.i48(tmp0_desc);
    if (tmp10_input.x48()) {
      tmp4_local0 = tmp10_input.w48(tmp0_desc, 0, $serializer_getInstance_47(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, $serializer_getInstance_74(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, $serializer_getInstance_75(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, $serializer_getInstance_78(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.k48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.w48(tmp0_desc, 0, $serializer_getInstance_47(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, $serializer_getInstance_74(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, $serializer_getInstance_75(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, $serializer_getInstance_78(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.k48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.j48(tmp0_desc);
    return ClazzAssignmentCourseBlockAndSubmitterUid_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_48).zkd = function (encoder, value) {
    var tmp0_desc = this.ykd_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.q7y_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_47(), value.q7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.r7y_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_74(), value.r7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.s7y_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_75(), value.s7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.t7y_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, $serializer_getInstance_78(), value.t7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.u7y_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.u7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.v7y_1 === false)) {
      tmp1_output.o49(tmp0_desc, 5, value.v7y_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_48).r44 = function (encoder, value) {
    return this.zkd(encoder, value instanceof ClazzAssignmentCourseBlockAndSubmitterUid ? value : THROW_CCE());
  };
  var $serializer_instance_48;
  function $serializer_getInstance_48() {
    if ($serializer_instance_48 == null)
      new $serializer_48();
    return $serializer_instance_48;
  }
  function ClazzAssignmentCourseBlockAndSubmitterUid_init_$Init$(seen1, clazzAssignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, hasModeratePermission, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_48().ykd_1);
    }
    if (0 === (seen1 & 1))
      $this.q7y_1 = null;
    else
      $this.q7y_1 = clazzAssignment;
    if (0 === (seen1 & 2))
      $this.r7y_1 = null;
    else
      $this.r7y_1 = courseBlock;
    if (0 === (seen1 & 4))
      $this.s7y_1 = null;
    else
      $this.s7y_1 = courseBlockPicture;
    if (0 === (seen1 & 8))
      $this.t7y_1 = null;
    else
      $this.t7y_1 = courseGroupSet;
    if (0 === (seen1 & 16))
      $this.u7y_1 = new Long(0, 0);
    else
      $this.u7y_1 = submitterUid;
    if (0 === (seen1 & 32))
      $this.v7y_1 = false;
    else
      $this.v7y_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.q7y_1 = clazzAssignment;
    this.r7y_1 = courseBlock;
    this.s7y_1 = courseBlockPicture;
    this.t7y_1 = courseGroupSet;
    this.u7y_1 = submitterUid;
    this.v7y_1 = hasModeratePermission;
  }
  protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).toString = function () {
    return 'ClazzAssignmentCourseBlockAndSubmitterUid(clazzAssignment=' + this.q7y_1 + ', courseBlock=' + this.r7y_1 + ', courseBlockPicture=' + this.s7y_1 + ', courseGroupSet=' + this.t7y_1 + ', submitterUid=' + this.u7y_1.toString() + ', hasModeratePermission=' + this.v7y_1 + ')';
  };
  protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).hashCode = function () {
    var result = this.q7y_1 == null ? 0 : this.q7y_1.hashCode();
    result = imul(result, 31) + (this.r7y_1 == null ? 0 : this.r7y_1.hashCode()) | 0;
    result = imul(result, 31) + (this.s7y_1 == null ? 0 : this.s7y_1.hashCode()) | 0;
    result = imul(result, 31) + (this.t7y_1 == null ? 0 : hashCode(this.t7y_1)) | 0;
    result = imul(result, 31) + this.u7y_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.v7y_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.q7y_1, tmp0_other_with_cast.q7y_1))
      return false;
    if (!equals(this.r7y_1, tmp0_other_with_cast.r7y_1))
      return false;
    if (!equals(this.s7y_1, tmp0_other_with_cast.s7y_1))
      return false;
    if (!equals(this.t7y_1, tmp0_other_with_cast.t7y_1))
      return false;
    if (!this.u7y_1.equals(tmp0_other_with_cast.u7y_1))
      return false;
    if (!(this.v7y_1 === tmp0_other_with_cast.v7y_1))
      return false;
    return true;
  };
  function ClazzEnrolment_init_$Init$(clazzUid, personUid, role, $this) {
    ClazzEnrolment.call($this);
    $this.d8i_1 = clazzUid;
    $this.c8i_1 = personUid;
    $this.g8i_1 = role;
    $this.i8i_1 = true;
    return $this;
  }
  function ClazzEnrolment_init_$Create$(clazzUid, personUid, role) {
    return ClazzEnrolment_init_$Init$(clazzUid, personUid, role, objectCreate(protoOf(ClazzEnrolment)));
  }
  function Companion_52() {
    this.ake_1 = 1000;
    this.bke_1 = 1001;
    this.cke_1 = 1002;
    this.dke_1 = 1003;
    this.eke_1 = 200;
    this.fke_1 = 201;
    this.gke_1 = 202;
    this.hke_1 = 203;
    this.ike_1 = 65;
  }
  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.ClazzEnrolment', this, 15);
    tmp0_serialDesc.t4f('clazzEnrolmentUid', true);
    tmp0_serialDesc.t4f('clazzEnrolmentPersonUid', true);
    tmp0_serialDesc.t4f('clazzEnrolmentClazzUid', true);
    tmp0_serialDesc.t4f('clazzEnrolmentDateJoined', true);
    tmp0_serialDesc.t4f('clazzEnrolmentDateLeft', true);
    tmp0_serialDesc.t4f('clazzEnrolmentRole', true);
    tmp0_serialDesc.t4f('clazzEnrolmentAttendancePercentage', true);
    tmp0_serialDesc.t4f('clazzEnrolmentActive', true);
    tmp0_serialDesc.t4f('clazzEnrolmentLeavingReasonUid', true);
    tmp0_serialDesc.t4f('clazzEnrolmentOutcome', true);
    tmp0_serialDesc.t4f('clazzEnrolmentLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('clazzEnrolmentMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('clazzEnrolmentLastChangedBy', true);
    tmp0_serialDesc.t4f('clazzEnrolmentLct', true);
    tmp0_serialDesc.t4f('clazzEnrolmentInviteUid', true);
    this.jke_1 = tmp0_serialDesc;
  }
  protoOf($serializer_49).q44 = function () {
    return this.jke_1;
  };
  protoOf($serializer_49).k4g = 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(), LongSerializer_getInstance()];
  };
  protoOf($serializer_49).s44 = function (decoder) {
    var tmp0_desc = this.jke_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 = new Long(0, 0);
    var tmp19_input = decoder.i48(tmp0_desc);
    if (tmp19_input.x48()) {
      tmp4_local0 = tmp19_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp19_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp19_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp19_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp19_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp19_input.n48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp19_input.p48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp19_input.k48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp19_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp19_input.n48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp19_input.o48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp19_input.o48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp19_input.n48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp19_input.o48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp19_input.o48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp19_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp19_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp19_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp19_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp19_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp19_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp19_input.n48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp19_input.p48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp19_input.k48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp19_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp19_input.n48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp19_input.o48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp19_input.o48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp19_input.n48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp19_input.o48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp19_input.o48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp19_input.j48(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, tmp18_local14, null);
  };
  protoOf($serializer_49).kke = function (encoder, value) {
    var tmp0_desc = this.jke_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.b8i_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.b8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.c8i_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.c8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.d8i_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.d8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.e8i_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.e8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.f8i_1.equals(get_UNSET_DISTANT_FUTURE())) {
      tmp1_output.s49(tmp0_desc, 4, value.f8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.g8i_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 5, value.g8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !equals(value.h8i_1, 0.0)) {
      tmp1_output.t49(tmp0_desc, 6, value.h8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.i8i_1 === true)) {
      tmp1_output.o49(tmp0_desc, 7, value.i8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.j8i_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.j8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.k8i_1 === 200)) {
      tmp1_output.r49(tmp0_desc, 9, value.k8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !value.l8i_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 10, value.l8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !value.m8i_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 11, value.m8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !(value.n8i_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 12, value.n8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !value.o8i_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 13, value.o8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 14) ? true : !value.p8i_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 14, value.p8i_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_49).r44 = function (encoder, value) {
    return this.kke(encoder, value instanceof ClazzEnrolment ? value : THROW_CCE());
  };
  var $serializer_instance_49;
  function $serializer_getInstance_49() {
    if ($serializer_instance_49 == null)
      new $serializer_49();
    return $serializer_instance_49;
  }
  function ClazzEnrolment_init_$Init$_0(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, clazzEnrolmentInviteUid, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_49().jke_1);
    }
    if (0 === (seen1 & 1))
      $this.b8i_1 = new Long(0, 0);
    else
      $this.b8i_1 = clazzEnrolmentUid;
    if (0 === (seen1 & 2))
      $this.c8i_1 = new Long(0, 0);
    else
      $this.c8i_1 = clazzEnrolmentPersonUid;
    if (0 === (seen1 & 4))
      $this.d8i_1 = new Long(0, 0);
    else
      $this.d8i_1 = clazzEnrolmentClazzUid;
    if (0 === (seen1 & 8))
      $this.e8i_1 = new Long(0, 0);
    else
      $this.e8i_1 = clazzEnrolmentDateJoined;
    if (0 === (seen1 & 16))
      $this.f8i_1 = get_UNSET_DISTANT_FUTURE();
    else
      $this.f8i_1 = clazzEnrolmentDateLeft;
    if (0 === (seen1 & 32))
      $this.g8i_1 = 0;
    else
      $this.g8i_1 = clazzEnrolmentRole;
    if (0 === (seen1 & 64))
      $this.h8i_1 = 0.0;
    else
      $this.h8i_1 = clazzEnrolmentAttendancePercentage;
    if (0 === (seen1 & 128))
      $this.i8i_1 = true;
    else
      $this.i8i_1 = clazzEnrolmentActive;
    if (0 === (seen1 & 256))
      $this.j8i_1 = new Long(0, 0);
    else
      $this.j8i_1 = clazzEnrolmentLeavingReasonUid;
    if (0 === (seen1 & 512))
      $this.k8i_1 = 200;
    else
      $this.k8i_1 = clazzEnrolmentOutcome;
    if (0 === (seen1 & 1024))
      $this.l8i_1 = new Long(0, 0);
    else
      $this.l8i_1 = clazzEnrolmentLocalChangeSeqNum;
    if (0 === (seen1 & 2048))
      $this.m8i_1 = new Long(0, 0);
    else
      $this.m8i_1 = clazzEnrolmentMasterChangeSeqNum;
    if (0 === (seen1 & 4096))
      $this.n8i_1 = 0;
    else
      $this.n8i_1 = clazzEnrolmentLastChangedBy;
    if (0 === (seen1 & 8192))
      $this.o8i_1 = new Long(0, 0);
    else
      $this.o8i_1 = clazzEnrolmentLct;
    if (0 === (seen1 & 16384))
      $this.p8i_1 = new Long(0, 0);
    else
      $this.p8i_1 = clazzEnrolmentInviteUid;
    return $this;
  }
  function ClazzEnrolment_init_$Create$_0(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, clazzEnrolmentInviteUid, serializationConstructorMarker) {
    return ClazzEnrolment_init_$Init$_0(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, clazzEnrolmentInviteUid, serializationConstructorMarker, objectCreate(protoOf(ClazzEnrolment)));
  }
  function ClazzEnrolment() {
    this.b8i_1 = new Long(0, 0);
    this.c8i_1 = new Long(0, 0);
    this.d8i_1 = new Long(0, 0);
    this.e8i_1 = new Long(0, 0);
    this.f8i_1 = get_UNSET_DISTANT_FUTURE();
    this.g8i_1 = 0;
    this.h8i_1 = 0.0;
    this.i8i_1 = true;
    this.j8i_1 = new Long(0, 0);
    this.k8i_1 = 200;
    this.l8i_1 = new Long(0, 0);
    this.m8i_1 = new Long(0, 0);
    this.n8i_1 = 0;
    this.o8i_1 = new Long(0, 0);
    this.p8i_1 = new Long(0, 0);
  }
  function Companion_53() {
  }
  protoOf(Companion_53).n4r = function () {
    return $serializer_getInstance_50();
  };
  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.ClazzEnrolmentWithLeavingReason', this, 17);
    tmp0_serialDesc.t4f('clazzEnrolmentUid', true);
    tmp0_serialDesc.t4f('clazzEnrolmentPersonUid', true);
    tmp0_serialDesc.t4f('clazzEnrolmentClazzUid', true);
    tmp0_serialDesc.t4f('clazzEnrolmentDateJoined', true);
    tmp0_serialDesc.t4f('clazzEnrolmentDateLeft', true);
    tmp0_serialDesc.t4f('clazzEnrolmentRole', true);
    tmp0_serialDesc.t4f('clazzEnrolmentAttendancePercentage', true);
    tmp0_serialDesc.t4f('clazzEnrolmentActive', true);
    tmp0_serialDesc.t4f('clazzEnrolmentLeavingReasonUid', true);
    tmp0_serialDesc.t4f('clazzEnrolmentOutcome', true);
    tmp0_serialDesc.t4f('clazzEnrolmentLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('clazzEnrolmentMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('clazzEnrolmentLastChangedBy', true);
    tmp0_serialDesc.t4f('clazzEnrolmentLct', true);
    tmp0_serialDesc.t4f('clazzEnrolmentInviteUid', true);
    tmp0_serialDesc.t4f('leavingReason', true);
    tmp0_serialDesc.t4f('timeZone', true);
    this.lke_1 = tmp0_serialDesc;
  }
  protoOf($serializer_50).q44 = function () {
    return this.lke_1;
  };
  protoOf($serializer_50).k4g = 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(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_92()), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_50).s44 = function (decoder) {
    var tmp0_desc = this.lke_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 = new Long(0, 0);
    var tmp19_local15 = null;
    var tmp20_local16 = null;
    var tmp21_input = decoder.i48(tmp0_desc);
    if (tmp21_input.x48()) {
      tmp4_local0 = tmp21_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp21_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp21_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp21_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp21_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp21_input.n48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp21_input.p48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp21_input.k48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp21_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp21_input.n48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp21_input.o48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp21_input.o48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp21_input.n48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp21_input.o48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp21_input.o48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp21_input.w48(tmp0_desc, 15, $serializer_getInstance_92(), tmp19_local15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp21_input.w48(tmp0_desc, 16, StringSerializer_getInstance(), tmp20_local16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp21_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp21_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp21_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp21_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp21_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp21_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp21_input.n48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp21_input.p48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp21_input.k48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp21_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp21_input.n48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp21_input.o48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp21_input.o48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp21_input.n48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp21_input.o48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp21_input.o48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp21_input.w48(tmp0_desc, 15, $serializer_getInstance_92(), tmp19_local15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp21_input.w48(tmp0_desc, 16, StringSerializer_getInstance(), tmp20_local16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp21_input.j48(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, tmp20_local16, null);
  };
  protoOf($serializer_50).mke = function (encoder, value) {
    var tmp0_desc = this.lke_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.b8i_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.b8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.c8i_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.c8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.d8i_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.d8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.e8i_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.e8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.f8i_1.equals(get_UNSET_DISTANT_FUTURE())) {
      tmp1_output.s49(tmp0_desc, 4, value.f8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.g8i_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 5, value.g8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !equals(value.h8i_1, 0.0)) {
      tmp1_output.t49(tmp0_desc, 6, value.h8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.i8i_1 === true)) {
      tmp1_output.o49(tmp0_desc, 7, value.i8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.j8i_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.j8i_1);
    }
    var tmp;
    if (tmp1_output.e4a(tmp0_desc, 9)) {
      tmp = true;
    } else {
      var tmp_0 = value.k8i_1;
      tmp = !(tmp_0 === 200);
    }
    if (tmp) {
      tmp1_output.r49(tmp0_desc, 9, value.k8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !value.l8i_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 10, value.l8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !value.m8i_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 11, value.m8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !(value.n8i_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 12, value.n8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !value.o8i_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 13, value.o8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 14) ? true : !value.p8i_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 14, value.p8i_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 15) ? true : !(value.r94_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 15, $serializer_getInstance_92(), value.r94_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 16) ? true : !(value.s94_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 16, StringSerializer_getInstance(), value.s94_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_50).r44 = function (encoder, value) {
    return this.mke(encoder, value instanceof ClazzEnrolmentWithLeavingReason ? value : THROW_CCE());
  };
  var $serializer_instance_50;
  function $serializer_getInstance_50() {
    if ($serializer_instance_50 == null)
      new $serializer_50();
    return $serializer_instance_50;
  }
  function ClazzEnrolmentWithLeavingReason_init_$Init$(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, clazzEnrolmentInviteUid, leavingReason, timeZone, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_50().lke_1);
    }
    ClazzEnrolment_init_$Init$_0(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, clazzEnrolmentInviteUid, serializationConstructorMarker, $this);
    if (0 === (seen1 & 32768))
      $this.r94_1 = null;
    else
      $this.r94_1 = leavingReason;
    if (0 === (seen1 & 65536))
      $this.s94_1 = null;
    else
      $this.s94_1 = timeZone;
    return $this;
  }
  function ClazzEnrolmentWithLeavingReason_init_$Create$(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, clazzEnrolmentInviteUid, leavingReason, timeZone, serializationConstructorMarker) {
    return ClazzEnrolmentWithLeavingReason_init_$Init$(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, clazzEnrolmentInviteUid, leavingReason, timeZone, serializationConstructorMarker, objectCreate(protoOf(ClazzEnrolmentWithLeavingReason)));
  }
  function ClazzEnrolmentWithLeavingReason() {
    ClazzEnrolment.call(this);
    this.r94_1 = null;
    this.s94_1 = null;
  }
  function Companion_54() {
    this.nke_1 = 521;
    this.oke_1 = 1;
    this.pke_1 = 2;
    this.qke_1 = 3;
    this.rke_1 = 0;
    this.ske_1 = 1;
    this.tke_1 = 2;
    this.uke_1 = 3;
  }
  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.ClazzInvite', this, 10);
    tmp0_serialDesc.t4f('ciUid', true);
    tmp0_serialDesc.t4f('ciPersonUid', true);
    tmp0_serialDesc.t4f('ciRoleId', true);
    tmp0_serialDesc.t4f('ciClazzUid', true);
    tmp0_serialDesc.t4f('inviteType', true);
    tmp0_serialDesc.t4f('inviteContact', true);
    tmp0_serialDesc.t4f('inviteToken', true);
    tmp0_serialDesc.t4f('inviteStatus', true);
    tmp0_serialDesc.t4f('inviteExpire', true);
    tmp0_serialDesc.t4f('inviteLct', true);
    this.vke_1 = tmp0_serialDesc;
  }
  protoOf($serializer_51).q44 = function () {
    return this.vke_1;
  };
  protoOf($serializer_51).k4g = 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(), StringSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_51).s44 = function (decoder) {
    var tmp0_desc = this.vke_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 = 0;
    var tmp9_local5 = null;
    var tmp10_local6 = null;
    var tmp11_local7 = 0;
    var tmp12_local8 = new Long(0, 0);
    var tmp13_local9 = new Long(0, 0);
    var tmp14_input = decoder.i48(tmp0_desc);
    if (tmp14_input.x48()) {
      tmp4_local0 = tmp14_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp14_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp14_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp14_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp14_input.n48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp14_input.s48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp14_input.s48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp14_input.n48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp14_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp14_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp14_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp14_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp14_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp14_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp14_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp14_input.n48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp14_input.s48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp14_input.s48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp14_input.n48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp14_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp14_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp14_input.j48(tmp0_desc);
    return ClazzInvite_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_51).wke = function (encoder, value) {
    var tmp0_desc = this.vke_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.c9n_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.c9n_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.d9n_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.d9n_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.e9n_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.e9n_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.f9n_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.f9n_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.g9n_1 === 1)) {
      tmp1_output.r49(tmp0_desc, 4, value.g9n_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.h9n_1 === '')) {
      tmp1_output.w49(tmp0_desc, 5, value.h9n_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.i9n_1 === '')) {
      tmp1_output.w49(tmp0_desc, 6, value.i9n_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.j9n_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 7, value.j9n_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.k9n_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.k9n_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !value.l9n_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 9, value.l9n_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_51).r44 = function (encoder, value) {
    return this.wke(encoder, value instanceof ClazzInvite ? value : THROW_CCE());
  };
  var $serializer_instance_51;
  function $serializer_getInstance_51() {
    if ($serializer_instance_51 == null)
      new $serializer_51();
    return $serializer_instance_51;
  }
  function ClazzInvite_init_$Init$(seen1, ciUid, ciPersonUid, ciRoleId, ciClazzUid, inviteType, inviteContact, inviteToken, inviteStatus, inviteExpire, inviteLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_51().vke_1);
    }
    if (0 === (seen1 & 1))
      $this.c9n_1 = new Long(0, 0);
    else
      $this.c9n_1 = ciUid;
    if (0 === (seen1 & 2))
      $this.d9n_1 = new Long(0, 0);
    else
      $this.d9n_1 = ciPersonUid;
    if (0 === (seen1 & 4))
      $this.e9n_1 = new Long(0, 0);
    else
      $this.e9n_1 = ciRoleId;
    if (0 === (seen1 & 8))
      $this.f9n_1 = new Long(0, 0);
    else
      $this.f9n_1 = ciClazzUid;
    if (0 === (seen1 & 16))
      $this.g9n_1 = 1;
    else
      $this.g9n_1 = inviteType;
    if (0 === (seen1 & 32))
      $this.h9n_1 = '';
    else
      $this.h9n_1 = inviteContact;
    if (0 === (seen1 & 64))
      $this.i9n_1 = '';
    else
      $this.i9n_1 = inviteToken;
    if (0 === (seen1 & 128))
      $this.j9n_1 = 0;
    else
      $this.j9n_1 = inviteStatus;
    if (0 === (seen1 & 256))
      $this.k9n_1 = new Long(0, 0);
    else
      $this.k9n_1 = inviteExpire;
    if (0 === (seen1 & 512))
      $this.l9n_1 = new Long(0, 0);
    else
      $this.l9n_1 = inviteLct;
    return $this;
  }
  function ClazzInvite_init_$Create$(seen1, ciUid, ciPersonUid, ciRoleId, ciClazzUid, inviteType, inviteContact, inviteToken, inviteStatus, inviteExpire, inviteLct, serializationConstructorMarker) {
    return ClazzInvite_init_$Init$(seen1, ciUid, ciPersonUid, ciRoleId, ciClazzUid, inviteType, inviteContact, inviteToken, inviteStatus, inviteExpire, inviteLct, serializationConstructorMarker, objectCreate(protoOf(ClazzInvite)));
  }
  function ClazzInvite(ciUid, ciPersonUid, ciRoleId, ciClazzUid, inviteType, inviteContact, inviteToken, inviteStatus, inviteExpire, inviteLct) {
    ciUid = ciUid === VOID ? new Long(0, 0) : ciUid;
    ciPersonUid = ciPersonUid === VOID ? new Long(0, 0) : ciPersonUid;
    ciRoleId = ciRoleId === VOID ? new Long(0, 0) : ciRoleId;
    ciClazzUid = ciClazzUid === VOID ? new Long(0, 0) : ciClazzUid;
    inviteType = inviteType === VOID ? 1 : inviteType;
    inviteContact = inviteContact === VOID ? '' : inviteContact;
    inviteToken = inviteToken === VOID ? '' : inviteToken;
    inviteStatus = inviteStatus === VOID ? 0 : inviteStatus;
    inviteExpire = inviteExpire === VOID ? new Long(0, 0) : inviteExpire;
    inviteLct = inviteLct === VOID ? new Long(0, 0) : inviteLct;
    this.c9n_1 = ciUid;
    this.d9n_1 = ciPersonUid;
    this.e9n_1 = ciRoleId;
    this.f9n_1 = ciClazzUid;
    this.g9n_1 = inviteType;
    this.h9n_1 = inviteContact;
    this.i9n_1 = inviteToken;
    this.j9n_1 = inviteStatus;
    this.k9n_1 = inviteExpire;
    this.l9n_1 = inviteLct;
  }
  protoOf(ClazzInvite).toString = function () {
    return 'ClazzInvite(ciUid=' + this.c9n_1.toString() + ', ciPersonUid=' + this.d9n_1.toString() + ', ciRoleId=' + this.e9n_1.toString() + ', ciClazzUid=' + this.f9n_1.toString() + ', inviteType=' + this.g9n_1 + ', inviteContact=' + this.h9n_1 + ', inviteToken=' + this.i9n_1 + ', inviteStatus=' + this.j9n_1 + ', inviteExpire=' + this.k9n_1.toString() + ', inviteLct=' + this.l9n_1.toString() + ')';
  };
  protoOf(ClazzInvite).hashCode = function () {
    var result = this.c9n_1.hashCode();
    result = imul(result, 31) + this.d9n_1.hashCode() | 0;
    result = imul(result, 31) + this.e9n_1.hashCode() | 0;
    result = imul(result, 31) + this.f9n_1.hashCode() | 0;
    result = imul(result, 31) + this.g9n_1 | 0;
    result = imul(result, 31) + getStringHashCode(this.h9n_1) | 0;
    result = imul(result, 31) + getStringHashCode(this.i9n_1) | 0;
    result = imul(result, 31) + this.j9n_1 | 0;
    result = imul(result, 31) + this.k9n_1.hashCode() | 0;
    result = imul(result, 31) + this.l9n_1.hashCode() | 0;
    return result;
  };
  protoOf(ClazzInvite).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ClazzInvite))
      return false;
    var tmp0_other_with_cast = other instanceof ClazzInvite ? other : THROW_CCE();
    if (!this.c9n_1.equals(tmp0_other_with_cast.c9n_1))
      return false;
    if (!this.d9n_1.equals(tmp0_other_with_cast.d9n_1))
      return false;
    if (!this.e9n_1.equals(tmp0_other_with_cast.e9n_1))
      return false;
    if (!this.f9n_1.equals(tmp0_other_with_cast.f9n_1))
      return false;
    if (!(this.g9n_1 === tmp0_other_with_cast.g9n_1))
      return false;
    if (!(this.h9n_1 === tmp0_other_with_cast.h9n_1))
      return false;
    if (!(this.i9n_1 === tmp0_other_with_cast.i9n_1))
      return false;
    if (!(this.j9n_1 === tmp0_other_with_cast.j9n_1))
      return false;
    if (!this.k9n_1.equals(tmp0_other_with_cast.k9n_1))
      return false;
    if (!this.l9n_1.equals(tmp0_other_with_cast.l9n_1))
      return false;
    return true;
  };
  function Companion_55() {
    this.xke_1 = 14;
    this.yke_1 = 0;
    this.zke_1 = 1;
    this.akf_1 = 2;
    this.bkf_1 = 4;
    this.ckf_1 = 8;
    this.dkf_1 = 16;
  }
  protoOf(Companion_55).n4r = 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.ClazzLog', this, 16);
    tmp0_serialDesc.t4f('clazzLogUid', true);
    tmp0_serialDesc.t4f('clazzLogClazzUid', true);
    tmp0_serialDesc.t4f('logDate', true);
    tmp0_serialDesc.t4f('timeRecorded', true);
    tmp0_serialDesc.t4f('clazzLogDone', true);
    tmp0_serialDesc.t4f('cancellationNote', true);
    tmp0_serialDesc.t4f('clazzLogCancelled', true);
    tmp0_serialDesc.t4f('clazzLogNumPresent', true);
    tmp0_serialDesc.t4f('clazzLogNumAbsent', true);
    tmp0_serialDesc.t4f('clazzLogNumPartial', true);
    tmp0_serialDesc.t4f('clazzLogScheduleUid', true);
    tmp0_serialDesc.t4f('clazzLogStatusFlag', true);
    tmp0_serialDesc.t4f('clazzLogMSQN', true);
    tmp0_serialDesc.t4f('clazzLogLCSN', true);
    tmp0_serialDesc.t4f('clazzLogLCB', true);
    tmp0_serialDesc.t4f('clazzLogLastChangedTime', true);
    this.ekf_1 = tmp0_serialDesc;
  }
  protoOf($serializer_52).q44 = function () {
    return this.ekf_1;
  };
  protoOf($serializer_52).k4g = 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_52).s44 = function (decoder) {
    var tmp0_desc = this.ekf_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.i48(tmp0_desc);
    if (tmp20_input.x48()) {
      tmp4_local0 = tmp20_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp20_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp20_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp20_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp20_input.k48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp20_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp20_input.k48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp20_input.n48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp20_input.n48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp20_input.n48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp20_input.o48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp20_input.n48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp20_input.o48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp20_input.o48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp20_input.n48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp20_input.o48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp20_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp20_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp20_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp20_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp20_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp20_input.k48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp20_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp20_input.k48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp20_input.n48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp20_input.n48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp20_input.n48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp20_input.o48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp20_input.n48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp20_input.o48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp20_input.o48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp20_input.n48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp20_input.o48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp20_input.j48(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_52).fkf = function (encoder, value) {
    var tmp0_desc = this.ekf_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.ga4_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.ga4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.ha4_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.ha4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.ia4_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.ia4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.ja4_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.ja4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.ka4_1 === false)) {
      tmp1_output.o49(tmp0_desc, 4, value.ka4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.la4_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.la4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.ma4_1 === false)) {
      tmp1_output.o49(tmp0_desc, 6, value.ma4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.na4_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 7, value.na4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.oa4_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 8, value.oa4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.pa4_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 9, value.pa4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !value.qa4_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 10, value.qa4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !(value.ra4_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 11, value.ra4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !value.sa4_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 12, value.sa4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !value.ta4_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 13, value.ta4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 14) ? true : !(value.ua4_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 14, value.ua4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 15) ? true : !value.va4_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 15, value.va4_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_52).r44 = function (encoder, value) {
    return this.fkf(encoder, value instanceof ClazzLog ? value : THROW_CCE());
  };
  var $serializer_instance_52;
  function $serializer_getInstance_52() {
    if ($serializer_instance_52 == null)
      new $serializer_52();
    return $serializer_instance_52;
  }
  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_52().ekf_1);
    }
    if (0 === (seen1 & 1))
      $this.ga4_1 = new Long(0, 0);
    else
      $this.ga4_1 = clazzLogUid;
    if (0 === (seen1 & 2))
      $this.ha4_1 = new Long(0, 0);
    else
      $this.ha4_1 = clazzLogClazzUid;
    if (0 === (seen1 & 4))
      $this.ia4_1 = new Long(0, 0);
    else
      $this.ia4_1 = logDate;
    if (0 === (seen1 & 8))
      $this.ja4_1 = new Long(0, 0);
    else
      $this.ja4_1 = timeRecorded;
    if (0 === (seen1 & 16))
      $this.ka4_1 = false;
    else
      $this.ka4_1 = clazzLogDone;
    if (0 === (seen1 & 32))
      $this.la4_1 = null;
    else
      $this.la4_1 = cancellationNote;
    if (0 === (seen1 & 64))
      $this.ma4_1 = false;
    else
      $this.ma4_1 = clazzLogCancelled;
    if (0 === (seen1 & 128))
      $this.na4_1 = 0;
    else
      $this.na4_1 = clazzLogNumPresent;
    if (0 === (seen1 & 256))
      $this.oa4_1 = 0;
    else
      $this.oa4_1 = clazzLogNumAbsent;
    if (0 === (seen1 & 512))
      $this.pa4_1 = 0;
    else
      $this.pa4_1 = clazzLogNumPartial;
    if (0 === (seen1 & 1024))
      $this.qa4_1 = new Long(0, 0);
    else
      $this.qa4_1 = clazzLogScheduleUid;
    if (0 === (seen1 & 2048))
      $this.ra4_1 = 0;
    else
      $this.ra4_1 = clazzLogStatusFlag;
    if (0 === (seen1 & 4096))
      $this.sa4_1 = new Long(0, 0);
    else
      $this.sa4_1 = clazzLogMSQN;
    if (0 === (seen1 & 8192))
      $this.ta4_1 = new Long(0, 0);
    else
      $this.ta4_1 = clazzLogLCSN;
    if (0 === (seen1 & 16384))
      $this.ua4_1 = 0;
    else
      $this.ua4_1 = clazzLogLCB;
    if (0 === (seen1 & 32768))
      $this.va4_1 = new Long(0, 0);
    else
      $this.va4_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.ga4_1 = new Long(0, 0);
    this.ha4_1 = new Long(0, 0);
    this.ia4_1 = new Long(0, 0);
    this.ja4_1 = new Long(0, 0);
    this.ka4_1 = false;
    this.la4_1 = null;
    this.ma4_1 = false;
    this.na4_1 = 0;
    this.oa4_1 = 0;
    this.pa4_1 = 0;
    this.qa4_1 = new Long(0, 0);
    this.ra4_1 = 0;
    this.sa4_1 = new Long(0, 0);
    this.ta4_1 = new Long(0, 0);
    this.ua4_1 = 0;
    this.va4_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.ga4_1.equals(other.ga4_1))
      return false;
    if (!this.ha4_1.equals(other.ha4_1))
      return false;
    if (!this.ia4_1.equals(other.ia4_1))
      return false;
    if (!this.ja4_1.equals(other.ja4_1))
      return false;
    if (!(this.ka4_1 === other.ka4_1))
      return false;
    if (!(this.la4_1 == other.la4_1))
      return false;
    if (!(this.ma4_1 === other.ma4_1))
      return false;
    if (!(this.na4_1 === other.na4_1))
      return false;
    if (!(this.oa4_1 === other.oa4_1))
      return false;
    if (!(this.pa4_1 === other.pa4_1))
      return false;
    if (!this.qa4_1.equals(other.qa4_1))
      return false;
    if (!(this.ra4_1 === other.ra4_1))
      return false;
    if (!this.sa4_1.equals(other.sa4_1))
      return false;
    if (!this.ta4_1.equals(other.ta4_1))
      return false;
    if (!(this.ua4_1 === other.ua4_1))
      return false;
    if (!this.va4_1.equals(other.va4_1))
      return false;
    return true;
  };
  protoOf(ClazzLog).hashCode = function () {
    var result = this.ga4_1.hashCode();
    result = imul(31, result) + this.ha4_1.hashCode() | 0;
    result = imul(31, result) + this.ia4_1.hashCode() | 0;
    result = imul(31, result) + this.ja4_1.hashCode() | 0;
    result = imul(31, result) + getBooleanHashCode(this.ka4_1) | 0;
    var tmp = imul(31, result);
    var tmp0_safe_receiver = this.la4_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.ma4_1) | 0;
    result = imul(31, result) + this.na4_1 | 0;
    result = imul(31, result) + this.oa4_1 | 0;
    result = imul(31, result) + this.pa4_1 | 0;
    result = imul(31, result) + this.qa4_1.hashCode() | 0;
    result = imul(31, result) + this.ra4_1 | 0;
    result = imul(31, result) + this.sa4_1.hashCode() | 0;
    result = imul(31, result) + this.ta4_1.hashCode() | 0;
    result = imul(31, result) + this.ua4_1 | 0;
    result = imul(31, result) + this.va4_1.hashCode() | 0;
    return result;
  };
  function Companion_56() {
    this.gkf_1 = 15;
    this.hkf_1 = 1;
    this.ikf_1 = 2;
    this.jkf_1 = 4;
    this.kkf_1 = 0.8;
    this.lkf_1 = 0.6;
  }
  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.ClazzLogAttendanceRecord', this, 8);
    tmp0_serialDesc.t4f('clazzLogAttendanceRecordUid', true);
    tmp0_serialDesc.t4f('clazzLogAttendanceRecordClazzLogUid', true);
    tmp0_serialDesc.t4f('clazzLogAttendanceRecordPersonUid', true);
    tmp0_serialDesc.t4f('attendanceStatus', true);
    tmp0_serialDesc.t4f('clazzLogAttendanceRecordMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('clazzLogAttendanceRecordLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('clazzLogAttendanceRecordLastChangedBy', true);
    tmp0_serialDesc.t4f('clazzLogAttendanceRecordLastChangedTime', true);
    this.mkf_1 = tmp0_serialDesc;
  }
  protoOf($serializer_53).q44 = function () {
    return this.mkf_1;
  };
  protoOf($serializer_53).k4g = 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_53).s44 = function (decoder) {
    var tmp0_desc = this.mkf_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.i48(tmp0_desc);
    if (tmp12_input.x48()) {
      tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.n48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.n48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.n48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.n48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.j48(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_53).nkf = function (encoder, value) {
    var tmp0_desc = this.mkf_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.a9z_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.a9z_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.b9z_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.b9z_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.c9z_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.c9z_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.d9z_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 3, value.d9z_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.e9z_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.e9z_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.f9z_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.f9z_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.g9z_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 6, value.g9z_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.h9z_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.h9z_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_53).r44 = function (encoder, value) {
    return this.nkf(encoder, value instanceof ClazzLogAttendanceRecord ? value : THROW_CCE());
  };
  var $serializer_instance_53;
  function $serializer_getInstance_53() {
    if ($serializer_instance_53 == null)
      new $serializer_53();
    return $serializer_instance_53;
  }
  function ClazzLogAttendanceRecord_init_$Init$(seen1, clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_53().mkf_1);
    }
    if (0 === (seen1 & 1))
      $this.a9z_1 = new Long(0, 0);
    else
      $this.a9z_1 = clazzLogAttendanceRecordUid;
    if (0 === (seen1 & 2))
      $this.b9z_1 = new Long(0, 0);
    else
      $this.b9z_1 = clazzLogAttendanceRecordClazzLogUid;
    if (0 === (seen1 & 4))
      $this.c9z_1 = new Long(0, 0);
    else
      $this.c9z_1 = clazzLogAttendanceRecordPersonUid;
    if (0 === (seen1 & 8))
      $this.d9z_1 = 0;
    else
      $this.d9z_1 = attendanceStatus;
    if (0 === (seen1 & 16))
      $this.e9z_1 = new Long(0, 0);
    else
      $this.e9z_1 = clazzLogAttendanceRecordMasterChangeSeqNum;
    if (0 === (seen1 & 32))
      $this.f9z_1 = new Long(0, 0);
    else
      $this.f9z_1 = clazzLogAttendanceRecordLocalChangeSeqNum;
    if (0 === (seen1 & 64))
      $this.g9z_1 = 0;
    else
      $this.g9z_1 = clazzLogAttendanceRecordLastChangedBy;
    if (0 === (seen1 & 128))
      $this.h9z_1 = new Long(0, 0);
    else
      $this.h9z_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.a9z_1 = new Long(0, 0);
    this.b9z_1 = new Long(0, 0);
    this.c9z_1 = new Long(0, 0);
    this.d9z_1 = 0;
    this.e9z_1 = new Long(0, 0);
    this.f9z_1 = new Long(0, 0);
    this.g9z_1 = 0;
    this.h9z_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.a9z_1.equals(other.a9z_1))
      return false;
    if (!this.b9z_1.equals(other.b9z_1))
      return false;
    if (!this.c9z_1.equals(other.c9z_1))
      return false;
    if (!(this.d9z_1 === other.d9z_1))
      return false;
    if (!this.e9z_1.equals(other.e9z_1))
      return false;
    if (!this.f9z_1.equals(other.f9z_1))
      return false;
    if (!(this.g9z_1 === other.g9z_1))
      return false;
    return true;
  };
  protoOf(ClazzLogAttendanceRecord).hashCode = function () {
    var result = this.a9z_1.hashCode();
    result = imul(31, result) + this.b9z_1.hashCode() | 0;
    result = imul(31, result) + this.c9z_1.hashCode() | 0;
    result = imul(31, result) + this.d9z_1 | 0;
    result = imul(31, result) + this.e9z_1.hashCode() | 0;
    result = imul(31, result) + this.f9z_1.hashCode() | 0;
    result = imul(31, result) + this.g9z_1 | 0;
    return result;
  };
  function Companion_57() {
  }
  protoOf(Companion_57).n4r = function () {
    return $serializer_getInstance_54();
  };
  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.ClazzWithHolidayCalendarAndAndTerminology', this, 28);
    tmp0_serialDesc.t4f('clazzUid', true);
    tmp0_serialDesc.t4f('clazzName', true);
    tmp0_serialDesc.t4f('clazzDesc', true);
    tmp0_serialDesc.t4f('attendanceAverage', true);
    tmp0_serialDesc.t4f('clazzHolidayUMCalendarUid', true);
    tmp0_serialDesc.t4f('clazzScheuleUMCalendarUid', true);
    tmp0_serialDesc.t4f('isClazzActive', true);
    tmp0_serialDesc.t4f('clazzLocationUid', true);
    tmp0_serialDesc.t4f('clazzStartTime', true);
    tmp0_serialDesc.t4f('clazzEndTime', true);
    tmp0_serialDesc.t4f('clazzFeatures', true);
    tmp0_serialDesc.t4f('clazzSchoolUid', true);
    tmp0_serialDesc.t4f('clazzEnrolmentPolicy', true);
    tmp0_serialDesc.t4f('clazzTerminologyUid', true);
    tmp0_serialDesc.t4f('clazzMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('clazzLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('clazzLastChangedBy', true);
    tmp0_serialDesc.t4f('clazzLct', true);
    tmp0_serialDesc.t4f('clazzTimeZone', true);
    tmp0_serialDesc.t4f('clazzStudentsPersonGroupUid', true);
    tmp0_serialDesc.t4f('clazzTeachersPersonGroupUid', true);
    tmp0_serialDesc.t4f('clazzPendingStudentsPersonGroupUid', true);
    tmp0_serialDesc.t4f('clazzParentsPersonGroupUid', true);
    tmp0_serialDesc.t4f('clazzCode', true);
    tmp0_serialDesc.t4f('clazzOwnerPersonUid', true);
    tmp0_serialDesc.t4f('holidayCalendar', true);
    tmp0_serialDesc.t4f('terminology', true);
    tmp0_serialDesc.t4f('coursePicture', true);
    this.okf_1 = tmp0_serialDesc;
  }
  protoOf($serializer_54).q44 = function () {
    return this.okf_1;
  };
  protoOf($serializer_54).k4g = 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_88()), get_nullable($serializer_getInstance_81()), get_nullable($serializer_getInstance_80())];
  };
  protoOf($serializer_54).s44 = function (decoder) {
    var tmp0_desc = this.okf_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.i48(tmp0_desc);
    if (tmp32_input.x48()) {
      tmp4_local0 = tmp32_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp32_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp32_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp32_input.p48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp32_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp32_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp32_input.k48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp32_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp32_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp32_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp32_input.o48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp32_input.o48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp32_input.n48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp32_input.o48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp32_input.o48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp32_input.o48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp32_input.n48(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp32_input.o48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp32_input.w48(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp32_input.o48(tmp0_desc, 19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp24_local20 = tmp32_input.o48(tmp0_desc, 20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp25_local21 = tmp32_input.o48(tmp0_desc, 21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp26_local22 = tmp32_input.o48(tmp0_desc, 22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
      tmp27_local23 = tmp32_input.w48(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23);
      tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
      tmp28_local24 = tmp32_input.o48(tmp0_desc, 24);
      tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
      tmp29_local25 = tmp32_input.w48(tmp0_desc, 25, $serializer_getInstance_88(), tmp29_local25);
      tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
      tmp30_local26 = tmp32_input.w48(tmp0_desc, 26, $serializer_getInstance_81(), tmp30_local26);
      tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
      tmp31_local27 = tmp32_input.w48(tmp0_desc, 27, $serializer_getInstance_80(), tmp31_local27);
      tmp3_bitMask0 = tmp3_bitMask0 | 134217728;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp32_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp32_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp32_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp32_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp32_input.p48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp32_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp32_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp32_input.k48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp32_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp32_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp32_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp32_input.o48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp32_input.o48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp32_input.n48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp32_input.o48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp32_input.o48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp32_input.o48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp32_input.n48(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp32_input.o48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp32_input.w48(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp32_input.o48(tmp0_desc, 19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp24_local20 = tmp32_input.o48(tmp0_desc, 20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp25_local21 = tmp32_input.o48(tmp0_desc, 21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp26_local22 = tmp32_input.o48(tmp0_desc, 22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          case 23:
            tmp27_local23 = tmp32_input.w48(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23);
            tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
            break;
          case 24:
            tmp28_local24 = tmp32_input.o48(tmp0_desc, 24);
            tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
            break;
          case 25:
            tmp29_local25 = tmp32_input.w48(tmp0_desc, 25, $serializer_getInstance_88(), tmp29_local25);
            tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
            break;
          case 26:
            tmp30_local26 = tmp32_input.w48(tmp0_desc, 26, $serializer_getInstance_81(), tmp30_local26);
            tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
            break;
          case 27:
            tmp31_local27 = tmp32_input.w48(tmp0_desc, 27, $serializer_getInstance_80(), tmp31_local27);
            tmp3_bitMask0 = tmp3_bitMask0 | 134217728;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp32_input.j48(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_54).pkf = function (encoder, value) {
    var tmp0_desc = this.okf_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.r8d_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.r8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.s8d_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.s8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.t8d_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.t8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !equals(value.u8d_1, -1.0)) {
      tmp1_output.t49(tmp0_desc, 3, value.u8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.v8d_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.v8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.w8d_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.w8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.x8d_1 === false)) {
      tmp1_output.o49(tmp0_desc, 6, value.x8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.y8d_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.y8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.z8d_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.z8d_1);
    }
    var tmp;
    if (tmp1_output.e4a(tmp0_desc, 9)) {
      tmp = true;
    } else {
      var tmp_0 = value.a8e_1;
      Companion_getInstance();
      tmp = !tmp_0.equals(new Long(-1, 2147483647));
    }
    if (tmp) {
      tmp1_output.s49(tmp0_desc, 9, value.a8e_1);
    }
    var tmp_1;
    if (tmp1_output.e4a(tmp0_desc, 10)) {
      tmp_1 = true;
    } else {
      var tmp_2 = value.b8e_1;
      Companion_getInstance_52();
      tmp_1 = !tmp_2.equals(new Long(1, 0));
    }
    if (tmp_1) {
      tmp1_output.s49(tmp0_desc, 10, value.b8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !value.c8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 11, value.c8e_1);
    }
    var tmp_3;
    if (tmp1_output.e4a(tmp0_desc, 12)) {
      tmp_3 = true;
    } else {
      var tmp_4 = value.d8e_1;
      Companion_getInstance_52();
      tmp_3 = !(tmp_4 === 102);
    }
    if (tmp_3) {
      tmp1_output.r49(tmp0_desc, 12, value.d8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !value.e8e_1.equals(new Long(25966, 0))) {
      tmp1_output.s49(tmp0_desc, 13, value.e8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 14) ? true : !value.f8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 14, value.f8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 15) ? true : !value.g8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 15, value.g8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 16) ? true : !(value.h8e_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 16, value.h8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 17) ? true : !value.i8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 17, value.i8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 18) ? true : !(value.j8e_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 18, StringSerializer_getInstance(), value.j8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 19) ? true : !value.k8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 19, value.k8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 20) ? true : !value.l8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 20, value.l8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 21) ? true : !value.m8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 21, value.m8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 22) ? true : !value.n8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 22, value.n8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 23) ? true : !(value.o8e_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 23, StringSerializer_getInstance(), value.o8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 24) ? true : !value.p8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 24, value.p8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 25) ? true : !(value.j8g_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 25, $serializer_getInstance_88(), value.j8g_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 26) ? true : !(value.k8g_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 26, $serializer_getInstance_81(), value.k8g_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 27) ? true : !(value.l8g_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 27, $serializer_getInstance_80(), value.l8g_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_54).r44 = function (encoder, value) {
    return this.pkf(encoder, value instanceof ClazzWithHolidayCalendarAndAndTerminology ? value : THROW_CCE());
  };
  var $serializer_instance_54;
  function $serializer_getInstance_54() {
    if ($serializer_instance_54 == null)
      new $serializer_54();
    return $serializer_instance_54;
  }
  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_54().okf_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.j8g_1 = null;
    else
      $this.j8g_1 = holidayCalendar;
    if (0 === (seen1 & 67108864))
      $this.k8g_1 = null;
    else
      $this.k8g_1 = terminology;
    if (0 === (seen1 & 134217728))
      $this.l8g_1 = null;
    else
      $this.l8g_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.j8g_1 = null;
    this.k8g_1 = null;
    this.l8g_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.j8g_1, other.j8g_1))
      return false;
    if (!equals(this.k8g_1, other.k8g_1))
      return false;
    return equals(this.l8g_1, other.l8g_1);
  };
  protoOf(ClazzWithHolidayCalendarAndAndTerminology).hashCode = function () {
    var result = protoOf(Clazz).hashCode.call(this);
    var tmp = imul(31, result);
    var tmp0_safe_receiver = this.j8g_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.k8g_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.l8g_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_58() {
  }
  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.ClazzWithListDisplayDetails', this, 32);
    tmp0_serialDesc.t4f('clazzUid', true);
    tmp0_serialDesc.t4f('clazzName', true);
    tmp0_serialDesc.t4f('clazzDesc', true);
    tmp0_serialDesc.t4f('attendanceAverage', true);
    tmp0_serialDesc.t4f('clazzHolidayUMCalendarUid', true);
    tmp0_serialDesc.t4f('clazzScheuleUMCalendarUid', true);
    tmp0_serialDesc.t4f('isClazzActive', true);
    tmp0_serialDesc.t4f('clazzLocationUid', true);
    tmp0_serialDesc.t4f('clazzStartTime', true);
    tmp0_serialDesc.t4f('clazzEndTime', true);
    tmp0_serialDesc.t4f('clazzFeatures', true);
    tmp0_serialDesc.t4f('clazzSchoolUid', true);
    tmp0_serialDesc.t4f('clazzEnrolmentPolicy', true);
    tmp0_serialDesc.t4f('clazzTerminologyUid', true);
    tmp0_serialDesc.t4f('clazzMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('clazzLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('clazzLastChangedBy', true);
    tmp0_serialDesc.t4f('clazzLct', true);
    tmp0_serialDesc.t4f('clazzTimeZone', true);
    tmp0_serialDesc.t4f('clazzStudentsPersonGroupUid', true);
    tmp0_serialDesc.t4f('clazzTeachersPersonGroupUid', true);
    tmp0_serialDesc.t4f('clazzPendingStudentsPersonGroupUid', true);
    tmp0_serialDesc.t4f('clazzParentsPersonGroupUid', true);
    tmp0_serialDesc.t4f('clazzCode', true);
    tmp0_serialDesc.t4f('clazzOwnerPersonUid', true);
    tmp0_serialDesc.t4f('numStudents', true);
    tmp0_serialDesc.t4f('numTeachers', true);
    tmp0_serialDesc.t4f('teacherNames', true);
    tmp0_serialDesc.t4f('lastRecorded', true);
    tmp0_serialDesc.t4f('clazzActiveEnrolment', true);
    tmp0_serialDesc.t4f('terminology', true);
    tmp0_serialDesc.t4f('coursePicture', true);
    this.qkf_1 = tmp0_serialDesc;
  }
  protoOf($serializer_55).q44 = function () {
    return this.qkf_1;
  };
  protoOf($serializer_55).k4g = 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_49()), get_nullable($serializer_getInstance_81()), get_nullable($serializer_getInstance_80())];
  };
  protoOf($serializer_55).s44 = function (decoder) {
    var tmp0_desc = this.qkf_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.i48(tmp0_desc);
    if (tmp37_input.x48()) {
      tmp5_local0 = tmp37_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp6_local1 = tmp37_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp6_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp7_local2 = tmp37_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp7_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp8_local3 = tmp37_input.p48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp9_local4 = tmp37_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp10_local5 = tmp37_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp11_local6 = tmp37_input.k48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp12_local7 = tmp37_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp13_local8 = tmp37_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp14_local9 = tmp37_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp15_local10 = tmp37_input.o48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp16_local11 = tmp37_input.o48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp17_local12 = tmp37_input.n48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp18_local13 = tmp37_input.o48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp19_local14 = tmp37_input.o48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp20_local15 = tmp37_input.o48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp21_local16 = tmp37_input.n48(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp22_local17 = tmp37_input.o48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp23_local18 = tmp37_input.w48(tmp0_desc, 18, StringSerializer_getInstance(), tmp23_local18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp24_local19 = tmp37_input.o48(tmp0_desc, 19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp25_local20 = tmp37_input.o48(tmp0_desc, 20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp26_local21 = tmp37_input.o48(tmp0_desc, 21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp27_local22 = tmp37_input.o48(tmp0_desc, 22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
      tmp28_local23 = tmp37_input.w48(tmp0_desc, 23, StringSerializer_getInstance(), tmp28_local23);
      tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
      tmp29_local24 = tmp37_input.o48(tmp0_desc, 24);
      tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
      tmp30_local25 = tmp37_input.n48(tmp0_desc, 25);
      tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
      tmp31_local26 = tmp37_input.n48(tmp0_desc, 26);
      tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
      tmp32_local27 = tmp37_input.w48(tmp0_desc, 27, StringSerializer_getInstance(), tmp32_local27);
      tmp3_bitMask0 = tmp3_bitMask0 | 134217728;
      tmp33_local28 = tmp37_input.o48(tmp0_desc, 28);
      tmp3_bitMask0 = tmp3_bitMask0 | 268435456;
      tmp34_local29 = tmp37_input.w48(tmp0_desc, 29, $serializer_getInstance_49(), tmp34_local29);
      tmp3_bitMask0 = tmp3_bitMask0 | 536870912;
      tmp35_local30 = tmp37_input.w48(tmp0_desc, 30, $serializer_getInstance_81(), tmp35_local30);
      tmp3_bitMask0 = tmp3_bitMask0 | 1073741824;
      tmp36_local31 = tmp37_input.w48(tmp0_desc, 31, $serializer_getInstance_80(), tmp36_local31);
      tmp3_bitMask0 = tmp3_bitMask0 | -2147483648;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp37_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp5_local0 = tmp37_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp6_local1 = tmp37_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp6_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp7_local2 = tmp37_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp7_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp8_local3 = tmp37_input.p48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp9_local4 = tmp37_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp10_local5 = tmp37_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp11_local6 = tmp37_input.k48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp12_local7 = tmp37_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp13_local8 = tmp37_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp14_local9 = tmp37_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp15_local10 = tmp37_input.o48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp16_local11 = tmp37_input.o48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp17_local12 = tmp37_input.n48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp18_local13 = tmp37_input.o48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp19_local14 = tmp37_input.o48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp20_local15 = tmp37_input.o48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp21_local16 = tmp37_input.n48(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp22_local17 = tmp37_input.o48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp23_local18 = tmp37_input.w48(tmp0_desc, 18, StringSerializer_getInstance(), tmp23_local18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp24_local19 = tmp37_input.o48(tmp0_desc, 19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp25_local20 = tmp37_input.o48(tmp0_desc, 20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp26_local21 = tmp37_input.o48(tmp0_desc, 21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp27_local22 = tmp37_input.o48(tmp0_desc, 22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          case 23:
            tmp28_local23 = tmp37_input.w48(tmp0_desc, 23, StringSerializer_getInstance(), tmp28_local23);
            tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
            break;
          case 24:
            tmp29_local24 = tmp37_input.o48(tmp0_desc, 24);
            tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
            break;
          case 25:
            tmp30_local25 = tmp37_input.n48(tmp0_desc, 25);
            tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
            break;
          case 26:
            tmp31_local26 = tmp37_input.n48(tmp0_desc, 26);
            tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
            break;
          case 27:
            tmp32_local27 = tmp37_input.w48(tmp0_desc, 27, StringSerializer_getInstance(), tmp32_local27);
            tmp3_bitMask0 = tmp3_bitMask0 | 134217728;
            break;
          case 28:
            tmp33_local28 = tmp37_input.o48(tmp0_desc, 28);
            tmp3_bitMask0 = tmp3_bitMask0 | 268435456;
            break;
          case 29:
            tmp34_local29 = tmp37_input.w48(tmp0_desc, 29, $serializer_getInstance_49(), tmp34_local29);
            tmp3_bitMask0 = tmp3_bitMask0 | 536870912;
            break;
          case 30:
            tmp35_local30 = tmp37_input.w48(tmp0_desc, 30, $serializer_getInstance_81(), tmp35_local30);
            tmp3_bitMask0 = tmp3_bitMask0 | 1073741824;
            break;
          case 31:
            tmp36_local31 = tmp37_input.w48(tmp0_desc, 31, $serializer_getInstance_80(), tmp36_local31);
            tmp3_bitMask0 = tmp3_bitMask0 | -2147483648;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp37_input.j48(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_55).rkf = function (encoder, value) {
    var tmp0_desc = this.qkf_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.r8d_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.r8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.s8d_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.s8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.t8d_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.t8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !equals(value.u8d_1, -1.0)) {
      tmp1_output.t49(tmp0_desc, 3, value.u8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.v8d_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.v8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.w8d_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.w8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.x8d_1 === false)) {
      tmp1_output.o49(tmp0_desc, 6, value.x8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.y8d_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.y8d_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.z8d_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.z8d_1);
    }
    var tmp;
    if (tmp1_output.e4a(tmp0_desc, 9)) {
      tmp = true;
    } else {
      var tmp_0 = value.a8e_1;
      Companion_getInstance();
      tmp = !tmp_0.equals(new Long(-1, 2147483647));
    }
    if (tmp) {
      tmp1_output.s49(tmp0_desc, 9, value.a8e_1);
    }
    var tmp_1;
    if (tmp1_output.e4a(tmp0_desc, 10)) {
      tmp_1 = true;
    } else {
      var tmp_2 = value.b8e_1;
      Companion_getInstance_52();
      tmp_1 = !tmp_2.equals(new Long(1, 0));
    }
    if (tmp_1) {
      tmp1_output.s49(tmp0_desc, 10, value.b8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !value.c8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 11, value.c8e_1);
    }
    var tmp_3;
    if (tmp1_output.e4a(tmp0_desc, 12)) {
      tmp_3 = true;
    } else {
      var tmp_4 = value.d8e_1;
      Companion_getInstance_52();
      tmp_3 = !(tmp_4 === 102);
    }
    if (tmp_3) {
      tmp1_output.r49(tmp0_desc, 12, value.d8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !value.e8e_1.equals(new Long(25966, 0))) {
      tmp1_output.s49(tmp0_desc, 13, value.e8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 14) ? true : !value.f8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 14, value.f8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 15) ? true : !value.g8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 15, value.g8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 16) ? true : !(value.h8e_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 16, value.h8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 17) ? true : !value.i8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 17, value.i8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 18) ? true : !(value.j8e_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 18, StringSerializer_getInstance(), value.j8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 19) ? true : !value.k8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 19, value.k8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 20) ? true : !value.l8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 20, value.l8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 21) ? true : !value.m8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 21, value.m8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 22) ? true : !value.n8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 22, value.n8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 23) ? true : !(value.o8e_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 23, StringSerializer_getInstance(), value.o8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 24) ? true : !value.p8e_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 24, value.p8e_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 25) ? true : !(value.u8h_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 25, value.u8h_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 26) ? true : !(value.v8h_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 26, value.v8h_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 27) ? true : !(value.w8h_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 27, StringSerializer_getInstance(), value.w8h_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 28) ? true : !value.x8h_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 28, value.x8h_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 29) ? true : !(value.y8h_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 29, $serializer_getInstance_49(), value.y8h_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 30) ? true : !(value.z8h_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 30, $serializer_getInstance_81(), value.z8h_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 31) ? true : !(value.a8i_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 31, $serializer_getInstance_80(), value.a8i_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_55).r44 = function (encoder, value) {
    return this.rkf(encoder, value instanceof ClazzWithListDisplayDetails ? value : THROW_CCE());
  };
  var $serializer_instance_55;
  function $serializer_getInstance_55() {
    if ($serializer_instance_55 == null)
      new $serializer_55();
    return $serializer_instance_55;
  }
  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_55().qkf_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.u8h_1 = 0;
    else
      $this.u8h_1 = numStudents;
    if (0 === (seen1 & 67108864))
      $this.v8h_1 = 0;
    else
      $this.v8h_1 = numTeachers;
    if (0 === (seen1 & 134217728))
      $this.w8h_1 = null;
    else
      $this.w8h_1 = teacherNames;
    if (0 === (seen1 & 268435456))
      $this.x8h_1 = new Long(0, 0);
    else
      $this.x8h_1 = lastRecorded;
    if (0 === (seen1 & 536870912))
      $this.y8h_1 = null;
    else
      $this.y8h_1 = clazzActiveEnrolment;
    if (0 === (seen1 & 1073741824))
      $this.z8h_1 = null;
    else
      $this.z8h_1 = terminology;
    if (0 === (seen1 & -2147483648))
      $this.a8i_1 = null;
    else
      $this.a8i_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.u8h_1 = 0;
    this.v8h_1 = 0;
    this.w8h_1 = null;
    this.x8h_1 = new Long(0, 0);
    this.y8h_1 = null;
    this.z8h_1 = null;
    this.a8i_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.u8h_1 === other.u8h_1))
      return false;
    if (!(this.v8h_1 === other.v8h_1))
      return false;
    if (!(this.w8h_1 == other.w8h_1))
      return false;
    if (!this.x8h_1.equals(other.x8h_1))
      return false;
    if (!equals(this.y8h_1, other.y8h_1))
      return false;
    if (!equals(this.z8h_1, other.z8h_1))
      return false;
    return equals(this.a8i_1, other.a8i_1);
  };
  protoOf(ClazzWithListDisplayDetails).hashCode = function () {
    var result = protoOf(Clazz).hashCode.call(this);
    result = imul(31, result) + this.u8h_1 | 0;
    result = imul(31, result) + this.v8h_1 | 0;
    var tmp = imul(31, result);
    var tmp0_safe_receiver = this.w8h_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.x8h_1.hashCode() | 0;
    var tmp_0 = imul(31, result);
    var tmp2_safe_receiver = this.y8h_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.z8h_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.a8i_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_59() {
    this.skf_1 = 208;
    this.tkf_1 = 0;
  }
  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.Comments', this, 11);
    tmp0_serialDesc.t4f('commentsUid', true);
    tmp0_serialDesc.t4f('commentsText', true);
    tmp0_serialDesc.t4f('commentsEntityUid', true);
    tmp0_serialDesc.t4f('commentsStatus', true);
    tmp0_serialDesc.t4f('commentsFromPersonUid', true);
    tmp0_serialDesc.t4f('commentsForSubmitterUid', true);
    tmp0_serialDesc.t4f('commentsFromSubmitterUid', true);
    tmp0_serialDesc.t4f('commentsFlagged', true);
    tmp0_serialDesc.t4f('commentsDeleted', true);
    tmp0_serialDesc.t4f('commentsDateTimeAdded', true);
    tmp0_serialDesc.t4f('commentsLct', true);
    this.ukf_1 = tmp0_serialDesc;
  }
  protoOf($serializer_56).q44 = function () {
    return this.ukf_1;
  };
  protoOf($serializer_56).k4g = 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_56).s44 = function (decoder) {
    var tmp0_desc = this.ukf_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.i48(tmp0_desc);
    if (tmp15_input.x48()) {
      tmp4_local0 = tmp15_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp15_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp15_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp15_input.n48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp15_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp15_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp15_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp15_input.k48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp15_input.k48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp15_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp15_input.o48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp15_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp15_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp15_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp15_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp15_input.n48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp15_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp15_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp15_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp15_input.k48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp15_input.k48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp15_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp15_input.o48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp15_input.j48(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_56).vkf = function (encoder, value) {
    var tmp0_desc = this.ukf_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.fad_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.fad_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.gad_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.gad_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.had_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.had_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.iad_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 3, value.iad_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.jad_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.jad_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.kad_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.kad_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.lad_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.lad_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.mad_1 === false)) {
      tmp1_output.o49(tmp0_desc, 7, value.mad_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.nad_1 === false)) {
      tmp1_output.o49(tmp0_desc, 8, value.nad_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !value.oad_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 9, value.oad_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !value.pad_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 10, value.pad_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_56).r44 = function (encoder, value) {
    return this.vkf(encoder, value instanceof Comments ? value : THROW_CCE());
  };
  var $serializer_instance_56;
  function $serializer_getInstance_56() {
    if ($serializer_instance_56 == null)
      new $serializer_56();
    return $serializer_instance_56;
  }
  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_56().ukf_1);
    }
    if (0 === (seen1 & 1))
      $this.fad_1 = new Long(0, 0);
    else
      $this.fad_1 = commentsUid;
    if (0 === (seen1 & 2))
      $this.gad_1 = null;
    else
      $this.gad_1 = commentsText;
    if (0 === (seen1 & 4))
      $this.had_1 = new Long(0, 0);
    else
      $this.had_1 = commentsEntityUid;
    if (0 === (seen1 & 8))
      $this.iad_1 = 0;
    else
      $this.iad_1 = commentsStatus;
    if (0 === (seen1 & 16))
      $this.jad_1 = new Long(0, 0);
    else
      $this.jad_1 = commentsFromPersonUid;
    if (0 === (seen1 & 32))
      $this.kad_1 = new Long(0, 0);
    else
      $this.kad_1 = commentsForSubmitterUid;
    if (0 === (seen1 & 64))
      $this.lad_1 = new Long(0, 0);
    else
      $this.lad_1 = commentsFromSubmitterUid;
    if (0 === (seen1 & 128))
      $this.mad_1 = false;
    else
      $this.mad_1 = commentsFlagged;
    if (0 === (seen1 & 256))
      $this.nad_1 = false;
    else
      $this.nad_1 = commentsDeleted;
    if (0 === (seen1 & 512))
      $this.oad_1 = new Long(0, 0);
    else
      $this.oad_1 = commentsDateTimeAdded;
    if (0 === (seen1 & 1024))
      $this.pad_1 = new Long(0, 0);
    else
      $this.pad_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.fad_1 = commentsUid;
    this.gad_1 = commentsText;
    this.had_1 = commentsEntityUid;
    this.iad_1 = commentsStatus;
    this.jad_1 = commentsFromPersonUid;
    this.kad_1 = commentsForSubmitterUid;
    this.lad_1 = commentsFromSubmitterUid;
    this.mad_1 = commentsFlagged;
    this.nad_1 = commentsDeleted;
    this.oad_1 = commentsDateTimeAdded;
    this.pad_1 = commentsLct;
  }
  protoOf(Comments).toString = function () {
    return 'Comments(commentsUid=' + this.fad_1.toString() + ', commentsText=' + this.gad_1 + ', commentsEntityUid=' + this.had_1.toString() + ', commentsStatus=' + this.iad_1 + ', commentsFromPersonUid=' + this.jad_1.toString() + ', commentsForSubmitterUid=' + this.kad_1.toString() + ', commentsFromSubmitterUid=' + this.lad_1.toString() + ', commentsFlagged=' + this.mad_1 + ', commentsDeleted=' + this.nad_1 + ', commentsDateTimeAdded=' + this.oad_1.toString() + ', commentsLct=' + this.pad_1.toString() + ')';
  };
  protoOf(Comments).hashCode = function () {
    var result = this.fad_1.hashCode();
    result = imul(result, 31) + (this.gad_1 == null ? 0 : getStringHashCode(this.gad_1)) | 0;
    result = imul(result, 31) + this.had_1.hashCode() | 0;
    result = imul(result, 31) + this.iad_1 | 0;
    result = imul(result, 31) + this.jad_1.hashCode() | 0;
    result = imul(result, 31) + this.kad_1.hashCode() | 0;
    result = imul(result, 31) + this.lad_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.mad_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.nad_1) | 0;
    result = imul(result, 31) + this.oad_1.hashCode() | 0;
    result = imul(result, 31) + this.pad_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.fad_1.equals(tmp0_other_with_cast.fad_1))
      return false;
    if (!(this.gad_1 == tmp0_other_with_cast.gad_1))
      return false;
    if (!this.had_1.equals(tmp0_other_with_cast.had_1))
      return false;
    if (!(this.iad_1 === tmp0_other_with_cast.iad_1))
      return false;
    if (!this.jad_1.equals(tmp0_other_with_cast.jad_1))
      return false;
    if (!this.kad_1.equals(tmp0_other_with_cast.kad_1))
      return false;
    if (!this.lad_1.equals(tmp0_other_with_cast.lad_1))
      return false;
    if (!(this.mad_1 === tmp0_other_with_cast.mad_1))
      return false;
    if (!(this.nad_1 === tmp0_other_with_cast.nad_1))
      return false;
    if (!this.oad_1.equals(tmp0_other_with_cast.oad_1))
      return false;
    if (!this.pad_1.equals(tmp0_other_with_cast.pad_1))
      return false;
    return true;
  };
  function Companion_60() {
    this.wkf_1 = 1;
  }
  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.ContentCategory', this, 7);
    tmp0_serialDesc.t4f('contentCategoryUid', true);
    tmp0_serialDesc.t4f('ctnCatContentCategorySchemaUid', true);
    tmp0_serialDesc.t4f('name', true);
    tmp0_serialDesc.t4f('contentCategoryLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('contentCategoryMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('contentCategoryLastChangedBy', true);
    tmp0_serialDesc.t4f('contentCategoryLct', true);
    this.xkf_1 = tmp0_serialDesc;
  }
  protoOf($serializer_57).q44 = function () {
    return this.xkf_1;
  };
  protoOf($serializer_57).k4g = 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_57).s44 = function (decoder) {
    var tmp0_desc = this.xkf_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.i48(tmp0_desc);
    if (tmp11_input.x48()) {
      tmp4_local0 = tmp11_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp11_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp11_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp11_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp11_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp11_input.n48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp11_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp11_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp11_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp11_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp11_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp11_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp11_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp11_input.n48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp11_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp11_input.j48(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_57).ykf = function (encoder, value) {
    var tmp0_desc = this.xkf_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.xan_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.xan_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.yan_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.yan_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.zan_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.zan_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.aao_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.aao_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.bao_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.bao_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.cao_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 5, value.cao_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.dao_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.dao_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_57).r44 = function (encoder, value) {
    return this.ykf(encoder, value instanceof ContentCategory ? value : THROW_CCE());
  };
  var $serializer_instance_57;
  function $serializer_getInstance_57() {
    if ($serializer_instance_57 == null)
      new $serializer_57();
    return $serializer_instance_57;
  }
  function ContentCategory_init_$Init$(seen1, contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_57().xkf_1);
    }
    if (0 === (seen1 & 1))
      $this.xan_1 = new Long(0, 0);
    else
      $this.xan_1 = contentCategoryUid;
    if (0 === (seen1 & 2))
      $this.yan_1 = new Long(0, 0);
    else
      $this.yan_1 = ctnCatContentCategorySchemaUid;
    if (0 === (seen1 & 4))
      $this.zan_1 = null;
    else
      $this.zan_1 = name;
    if (0 === (seen1 & 8))
      $this.aao_1 = new Long(0, 0);
    else
      $this.aao_1 = contentCategoryLocalChangeSeqNum;
    if (0 === (seen1 & 16))
      $this.bao_1 = new Long(0, 0);
    else
      $this.bao_1 = contentCategoryMasterChangeSeqNum;
    if (0 === (seen1 & 32))
      $this.cao_1 = 0;
    else
      $this.cao_1 = contentCategoryLastChangedBy;
    if (0 === (seen1 & 64))
      $this.dao_1 = new Long(0, 0);
    else
      $this.dao_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.xan_1 = new Long(0, 0);
    this.yan_1 = new Long(0, 0);
    this.zan_1 = null;
    this.aao_1 = new Long(0, 0);
    this.bao_1 = new Long(0, 0);
    this.cao_1 = 0;
    this.dao_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.xan_1.equals(ensureNotNull(category).xan_1))
      return false;
    if (!this.yan_1.equals(category.yan_1))
      return false;
    return !(this.zan_1 == null) ? this.zan_1 == category.zan_1 : category.zan_1 == null;
  };
  protoOf(ContentCategory).hashCode = function () {
    var result = this.xan_1.wc(this.xan_1.tc(32)).mb();
    result = imul(31, result) + this.yan_1.wc(this.yan_1.tc(32)).mb() | 0;
    result = imul(31, result) + (!(this.zan_1 == null) ? getStringHashCode(ensureNotNull(this.zan_1)) : 0) | 0;
    return result;
  };
  function Companion_61() {
    this.zkf_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.ContentCategorySchema', this, 7);
    tmp0_serialDesc.t4f('contentCategorySchemaUid', true);
    tmp0_serialDesc.t4f('schemaName', true);
    tmp0_serialDesc.t4f('schemaUrl', true);
    tmp0_serialDesc.t4f('contentCategorySchemaLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('contentCategorySchemaMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('contentCategorySchemaLastChangedBy', true);
    tmp0_serialDesc.t4f('contentCategorySchemaLct', true);
    this.akg_1 = tmp0_serialDesc;
  }
  protoOf($serializer_58).q44 = function () {
    return this.akg_1;
  };
  protoOf($serializer_58).k4g = 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_58).s44 = function (decoder) {
    var tmp0_desc = this.akg_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.i48(tmp0_desc);
    if (tmp11_input.x48()) {
      tmp4_local0 = tmp11_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp11_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp11_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp11_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp11_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp11_input.n48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp11_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp11_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp11_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp11_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp11_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp11_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp11_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp11_input.n48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp11_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp11_input.j48(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_58).bkg = function (encoder, value) {
    var tmp0_desc = this.akg_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.iaq_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.iaq_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.jaq_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.jaq_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.kaq_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.kaq_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.laq_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.laq_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.maq_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.maq_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.naq_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 5, value.naq_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.oaq_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.oaq_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_58).r44 = function (encoder, value) {
    return this.bkg(encoder, value instanceof ContentCategorySchema ? value : THROW_CCE());
  };
  var $serializer_instance_58;
  function $serializer_getInstance_58() {
    if ($serializer_instance_58 == null)
      new $serializer_58();
    return $serializer_instance_58;
  }
  function ContentCategorySchema_init_$Init$(seen1, contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_58().akg_1);
    }
    if (0 === (seen1 & 1))
      $this.iaq_1 = new Long(0, 0);
    else
      $this.iaq_1 = contentCategorySchemaUid;
    if (0 === (seen1 & 2))
      $this.jaq_1 = null;
    else
      $this.jaq_1 = schemaName;
    if (0 === (seen1 & 4))
      $this.kaq_1 = null;
    else
      $this.kaq_1 = schemaUrl;
    if (0 === (seen1 & 8))
      $this.laq_1 = new Long(0, 0);
    else
      $this.laq_1 = contentCategorySchemaLocalChangeSeqNum;
    if (0 === (seen1 & 16))
      $this.maq_1 = new Long(0, 0);
    else
      $this.maq_1 = contentCategorySchemaMasterChangeSeqNum;
    if (0 === (seen1 & 32))
      $this.naq_1 = 0;
    else
      $this.naq_1 = contentCategorySchemaLastChangedBy;
    if (0 === (seen1 & 64))
      $this.oaq_1 = new Long(0, 0);
    else
      $this.oaq_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.iaq_1 = new Long(0, 0);
    this.jaq_1 = null;
    this.kaq_1 = null;
    this.laq_1 = new Long(0, 0);
    this.maq_1 = new Long(0, 0);
    this.naq_1 = 0;
    this.oaq_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.iaq_1.equals(ensureNotNull(schema).iaq_1))
      return false;
    if (!(this.jaq_1 == null) ? !(this.jaq_1 == schema.jaq_1) : !(schema.jaq_1 == null))
      return false;
    return !(this.kaq_1 == null) ? this.kaq_1 == schema.kaq_1 : schema.kaq_1 == null;
  };
  protoOf(ContentCategorySchema).hashCode = function () {
    var result = this.iaq_1.wc(this.iaq_1.tc(32)).mb();
    result = imul(31, result) + (!(this.jaq_1 == null) ? getStringHashCode(ensureNotNull(this.jaq_1)) : 0) | 0;
    result = imul(31, result) + (!(this.kaq_1 == null) ? getStringHashCode(ensureNotNull(this.kaq_1)) : 0) | 0;
    return result;
  };
  function Companion_62() {
    this.ckg_1 = 42;
    this.dkg_1 = 0;
    this.ekg_1 = 1;
    this.fkg_1 = 2;
    this.gkg_1 = 3;
    this.hkg_1 = 4;
    this.ikg_1 = 5;
    this.jkg_1 = 6;
    this.kkg_1 = 7;
    this.lkg_1 = 8;
    this.mkg_1 = 10;
    this.nkg_1 = 11;
    this.okg_1 = 9;
    this.pkg_1 = 0;
    this.qkg_1 = 1;
    this.rkg_1 = 2;
    this.skg_1 = 3;
    this.tkg_1 = 4;
    this.ukg_1 = 5;
    this.vkg_1 = 6;
    this.wkg_1 = 7;
    this.xkg_1 = 8;
    this.ykg_1 = 1;
    this.zkg_1 = 0;
    this.akh_1 = 1;
    this.bkh_1 = 2;
    this.ckh_1 = 1;
    this.dkh_1 = 2;
  }
  protoOf(Companion_62).n4r = function () {
    return $serializer_getInstance_59();
  };
  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.ContentEntry', this, 27);
    tmp0_serialDesc.t4f('contentEntryUid', true);
    tmp0_serialDesc.t4f('title', true);
    tmp0_serialDesc.t4f('description', true);
    tmp0_serialDesc.t4f('entryId', true);
    tmp0_serialDesc.t4f('author', true);
    tmp0_serialDesc.t4f('publisher', true);
    tmp0_serialDesc.t4f('licenseType', true);
    tmp0_serialDesc.t4f('licenseName', true);
    tmp0_serialDesc.t4f('licenseUrl', true);
    tmp0_serialDesc.t4f('sourceUrl', true);
    tmp0_serialDesc.t4f('thumbnailUrl', true);
    tmp0_serialDesc.t4f('lastModified', true);
    tmp0_serialDesc.t4f('primaryLanguageUid', true);
    tmp0_serialDesc.t4f('languageVariantUid', true);
    tmp0_serialDesc.t4f('contentFlags', true);
    tmp0_serialDesc.t4f('leaf', true);
    tmp0_serialDesc.t4f('publik', true);
    tmp0_serialDesc.t4f('ceInactive', true);
    tmp0_serialDesc.t4f('completionCriteria', true);
    tmp0_serialDesc.t4f('minScore', true);
    tmp0_serialDesc.t4f('contentTypeFlag', true);
    tmp0_serialDesc.t4f('contentOwner', true);
    tmp0_serialDesc.t4f('contentOwnerType', true);
    tmp0_serialDesc.t4f('contentEntryLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('contentEntryMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('contentEntryLastChangedBy', true);
    tmp0_serialDesc.t4f('contentEntryLct', true);
    this.ekh_1 = tmp0_serialDesc;
  }
  protoOf($serializer_59).q44 = function () {
    return this.ekh_1;
  };
  protoOf($serializer_59).k4g = 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_59).s44 = function (decoder) {
    var tmp0_desc = this.ekh_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.i48(tmp0_desc);
    if (tmp31_input.x48()) {
      tmp4_local0 = tmp31_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp31_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp31_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp31_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp31_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp31_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp31_input.n48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp31_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp31_input.w48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp31_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp31_input.w48(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp31_input.o48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp31_input.o48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp31_input.o48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp31_input.n48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp31_input.k48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp31_input.k48(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp31_input.k48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp31_input.n48(tmp0_desc, 18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp31_input.n48(tmp0_desc, 19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp24_local20 = tmp31_input.n48(tmp0_desc, 20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp25_local21 = tmp31_input.o48(tmp0_desc, 21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp26_local22 = tmp31_input.n48(tmp0_desc, 22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
      tmp27_local23 = tmp31_input.o48(tmp0_desc, 23);
      tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
      tmp28_local24 = tmp31_input.o48(tmp0_desc, 24);
      tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
      tmp29_local25 = tmp31_input.n48(tmp0_desc, 25);
      tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
      tmp30_local26 = tmp31_input.o48(tmp0_desc, 26);
      tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp31_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp31_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp31_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp31_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp31_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp31_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp31_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp31_input.n48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp31_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp31_input.w48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp31_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp31_input.w48(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp31_input.o48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp31_input.o48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp31_input.o48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp31_input.n48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp31_input.k48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp31_input.k48(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp31_input.k48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp31_input.n48(tmp0_desc, 18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp31_input.n48(tmp0_desc, 19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp24_local20 = tmp31_input.n48(tmp0_desc, 20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp25_local21 = tmp31_input.o48(tmp0_desc, 21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp26_local22 = tmp31_input.n48(tmp0_desc, 22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          case 23:
            tmp27_local23 = tmp31_input.o48(tmp0_desc, 23);
            tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
            break;
          case 24:
            tmp28_local24 = tmp31_input.o48(tmp0_desc, 24);
            tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
            break;
          case 25:
            tmp29_local25 = tmp31_input.n48(tmp0_desc, 25);
            tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
            break;
          case 26:
            tmp30_local26 = tmp31_input.o48(tmp0_desc, 26);
            tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp31_input.j48(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_59).fkh = function (encoder, value) {
    var tmp0_desc = this.ekh_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.nav_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.nav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.oav_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.oav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.pav_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.pav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.qav_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.qav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.rav_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.rav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.sav_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.sav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.tav_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 6, value.tav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.uav_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 7, StringSerializer_getInstance(), value.uav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.vav_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 8, StringSerializer_getInstance(), value.vav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.wav_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 9, StringSerializer_getInstance(), value.wav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.xav_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 10, StringSerializer_getInstance(), value.xav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !value.yav_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 11, value.yav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !value.zav_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 12, value.zav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !value.aaw_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 13, value.aaw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 14) ? true : !(value.baw_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 14, value.baw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 15) ? true : !(value.caw_1 === false)) {
      tmp1_output.o49(tmp0_desc, 15, value.caw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 16) ? true : !(value.daw_1 === true)) {
      tmp1_output.o49(tmp0_desc, 16, value.daw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 17) ? true : !(value.eaw_1 === false)) {
      tmp1_output.o49(tmp0_desc, 17, value.eaw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 18) ? true : !(value.faw_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 18, value.faw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 19) ? true : !(value.gaw_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 19, value.gaw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 20) ? true : !(value.haw_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 20, value.haw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 21) ? true : !value.iaw_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 21, value.iaw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 22) ? true : !(value.jaw_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 22, value.jaw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 23) ? true : !value.kaw_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 23, value.kaw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 24) ? true : !value.law_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 24, value.law_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 25) ? true : !(value.maw_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 25, value.maw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 26) ? true : !value.naw_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 26, value.naw_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_59).r44 = function (encoder, value) {
    return this.fkh(encoder, value instanceof ContentEntry ? value : THROW_CCE());
  };
  var $serializer_instance_59;
  function $serializer_getInstance_59() {
    if ($serializer_instance_59 == null)
      new $serializer_59();
    return $serializer_instance_59;
  }
  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_59().ekh_1);
    }
    if (0 === (seen1 & 1))
      $this.nav_1 = new Long(0, 0);
    else
      $this.nav_1 = contentEntryUid;
    if (0 === (seen1 & 2))
      $this.oav_1 = null;
    else
      $this.oav_1 = title;
    if (0 === (seen1 & 4))
      $this.pav_1 = null;
    else
      $this.pav_1 = description;
    if (0 === (seen1 & 8))
      $this.qav_1 = null;
    else
      $this.qav_1 = entryId;
    if (0 === (seen1 & 16))
      $this.rav_1 = null;
    else
      $this.rav_1 = author;
    if (0 === (seen1 & 32))
      $this.sav_1 = null;
    else
      $this.sav_1 = publisher;
    if (0 === (seen1 & 64))
      $this.tav_1 = 0;
    else
      $this.tav_1 = licenseType;
    if (0 === (seen1 & 128))
      $this.uav_1 = null;
    else
      $this.uav_1 = licenseName;
    if (0 === (seen1 & 256))
      $this.vav_1 = null;
    else
      $this.vav_1 = licenseUrl;
    if (0 === (seen1 & 512))
      $this.wav_1 = null;
    else
      $this.wav_1 = sourceUrl;
    if (0 === (seen1 & 1024))
      $this.xav_1 = null;
    else
      $this.xav_1 = thumbnailUrl;
    if (0 === (seen1 & 2048))
      $this.yav_1 = new Long(0, 0);
    else
      $this.yav_1 = lastModified;
    if (0 === (seen1 & 4096))
      $this.zav_1 = new Long(0, 0);
    else
      $this.zav_1 = primaryLanguageUid;
    if (0 === (seen1 & 8192))
      $this.aaw_1 = new Long(0, 0);
    else
      $this.aaw_1 = languageVariantUid;
    if (0 === (seen1 & 16384))
      $this.baw_1 = 0;
    else
      $this.baw_1 = contentFlags;
    if (0 === (seen1 & 32768))
      $this.caw_1 = false;
    else
      $this.caw_1 = leaf;
    if (0 === (seen1 & 65536))
      $this.daw_1 = true;
    else
      $this.daw_1 = publik;
    if (0 === (seen1 & 131072))
      $this.eaw_1 = false;
    else
      $this.eaw_1 = ceInactive;
    if (0 === (seen1 & 262144))
      $this.faw_1 = 0;
    else
      $this.faw_1 = completionCriteria;
    if (0 === (seen1 & 524288))
      $this.gaw_1 = 0;
    else
      $this.gaw_1 = minScore;
    if (0 === (seen1 & 1048576))
      $this.haw_1 = 0;
    else
      $this.haw_1 = contentTypeFlag;
    if (0 === (seen1 & 2097152))
      $this.iaw_1 = new Long(0, 0);
    else
      $this.iaw_1 = contentOwner;
    if (0 === (seen1 & 4194304))
      $this.jaw_1 = 0;
    else
      $this.jaw_1 = contentOwnerType;
    if (0 === (seen1 & 8388608))
      $this.kaw_1 = new Long(0, 0);
    else
      $this.kaw_1 = contentEntryLocalChangeSeqNum;
    if (0 === (seen1 & 16777216))
      $this.law_1 = new Long(0, 0);
    else
      $this.law_1 = contentEntryMasterChangeSeqNum;
    if (0 === (seen1 & 33554432))
      $this.maw_1 = 0;
    else
      $this.maw_1 = contentEntryLastChangedBy;
    if (0 === (seen1 & 67108864))
      $this.naw_1 = new Long(0, 0);
    else
      $this.naw_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.nav_1 = new Long(0, 0);
    this.oav_1 = null;
    this.pav_1 = null;
    this.qav_1 = null;
    this.rav_1 = null;
    this.sav_1 = null;
    this.tav_1 = 0;
    this.uav_1 = null;
    this.vav_1 = null;
    this.wav_1 = null;
    this.xav_1 = null;
    this.yav_1 = new Long(0, 0);
    this.zav_1 = new Long(0, 0);
    this.aaw_1 = new Long(0, 0);
    this.baw_1 = 0;
    this.caw_1 = false;
    this.daw_1 = true;
    this.eaw_1 = false;
    this.faw_1 = 0;
    this.gaw_1 = 0;
    this.haw_1 = 0;
    this.iaw_1 = new Long(0, 0);
    this.jaw_1 = 0;
    this.kaw_1 = new Long(0, 0);
    this.law_1 = new Long(0, 0);
    this.maw_1 = 0;
    this.naw_1 = new Long(0, 0);
  }
  protoOf(ContentEntry).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof ContentEntry))
      return false;
    if (!this.nav_1.equals(other.nav_1))
      return false;
    if (!(this.oav_1 == other.oav_1))
      return false;
    if (!(this.pav_1 == other.pav_1))
      return false;
    if (!(this.qav_1 == other.qav_1))
      return false;
    if (!(this.rav_1 == other.rav_1))
      return false;
    if (!(this.sav_1 == other.sav_1))
      return false;
    if (!(this.tav_1 === other.tav_1))
      return false;
    if (!(this.uav_1 == other.uav_1))
      return false;
    if (!(this.vav_1 == other.vav_1))
      return false;
    if (!(this.wav_1 == other.wav_1))
      return false;
    if (!(this.xav_1 == other.xav_1))
      return false;
    if (!this.yav_1.equals(other.yav_1))
      return false;
    if (!this.zav_1.equals(other.zav_1))
      return false;
    if (!this.aaw_1.equals(other.aaw_1))
      return false;
    if (!(this.baw_1 === other.baw_1))
      return false;
    if (!(this.caw_1 === other.caw_1))
      return false;
    if (!(this.daw_1 === other.daw_1))
      return false;
    if (!(this.eaw_1 === other.eaw_1))
      return false;
    if (!(this.haw_1 === other.haw_1))
      return false;
    if (!(this.faw_1 === other.faw_1))
      return false;
    if (!(this.gaw_1 === other.gaw_1))
      return false;
    if (!this.kaw_1.equals(other.kaw_1))
      return false;
    if (!this.law_1.equals(other.law_1))
      return false;
    if (!(this.maw_1 === other.maw_1))
      return false;
    return true;
  };
  protoOf(ContentEntry).hashCode = function () {
    var result = this.nav_1.hashCode();
    var tmp = imul(31, result);
    var tmp0_safe_receiver = this.oav_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.pav_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.qav_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.rav_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.sav_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.tav_1 | 0;
    var tmp_4 = imul(31, result);
    var tmp10_safe_receiver = this.uav_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.vav_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.wav_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.xav_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.yav_1.hashCode() | 0;
    result = imul(31, result) + this.zav_1.hashCode() | 0;
    result = imul(31, result) + this.aaw_1.hashCode() | 0;
    result = imul(31, result) + this.baw_1 | 0;
    result = imul(31, result) + getBooleanHashCode(this.caw_1) | 0;
    result = imul(31, result) + getBooleanHashCode(this.daw_1) | 0;
    result = imul(31, result) + getBooleanHashCode(this.eaw_1) | 0;
    result = imul(31, result) + this.haw_1 | 0;
    result = imul(31, result) + this.faw_1 | 0;
    result = imul(31, result) + this.gaw_1 | 0;
    result = imul(31, result) + this.kaw_1.hashCode() | 0;
    result = imul(31, result) + this.law_1.hashCode() | 0;
    result = imul(31, result) + this.maw_1 | 0;
    return result;
  };
  function ContentEntryButtonModel() {
    this.gkh_1 = false;
    this.hkh_1 = false;
    this.ikh_1 = false;
    this.jkh_1 = false;
    this.kkh_1 = false;
  }
  function Companion_63() {
    this.lkh_1 = 3;
  }
  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.ContentEntryContentCategoryJoin', this, 7);
    tmp0_serialDesc.t4f('ceccjUid', true);
    tmp0_serialDesc.t4f('ceccjContentEntryUid', true);
    tmp0_serialDesc.t4f('ceccjContentCategoryUid', true);
    tmp0_serialDesc.t4f('ceccjLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('ceccjMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('ceccjLastChangedBy', true);
    tmp0_serialDesc.t4f('ceccjLct', true);
    this.mkh_1 = tmp0_serialDesc;
  }
  protoOf($serializer_60).q44 = function () {
    return this.mkh_1;
  };
  protoOf($serializer_60).k4g = 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_60).s44 = function (decoder) {
    var tmp0_desc = this.mkh_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.i48(tmp0_desc);
    if (tmp11_input.x48()) {
      tmp4_local0 = tmp11_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp11_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp11_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp11_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp11_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp11_input.n48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp11_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp11_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp11_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp11_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp11_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp11_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp11_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp11_input.n48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp11_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp11_input.j48(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_60).nkh = function (encoder, value) {
    var tmp0_desc = this.mkh_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.tas_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.tas_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.uas_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.uas_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.vas_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.vas_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.was_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.was_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.xas_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.xas_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.yas_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 5, value.yas_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.zas_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.zas_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_60).r44 = function (encoder, value) {
    return this.nkh(encoder, value instanceof ContentEntryContentCategoryJoin ? value : THROW_CCE());
  };
  var $serializer_instance_60;
  function $serializer_getInstance_60() {
    if ($serializer_instance_60 == null)
      new $serializer_60();
    return $serializer_instance_60;
  }
  function ContentEntryContentCategoryJoin_init_$Init$(seen1, ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_60().mkh_1);
    }
    if (0 === (seen1 & 1))
      $this.tas_1 = new Long(0, 0);
    else
      $this.tas_1 = ceccjUid;
    if (0 === (seen1 & 2))
      $this.uas_1 = new Long(0, 0);
    else
      $this.uas_1 = ceccjContentEntryUid;
    if (0 === (seen1 & 4))
      $this.vas_1 = new Long(0, 0);
    else
      $this.vas_1 = ceccjContentCategoryUid;
    if (0 === (seen1 & 8))
      $this.was_1 = new Long(0, 0);
    else
      $this.was_1 = ceccjLocalChangeSeqNum;
    if (0 === (seen1 & 16))
      $this.xas_1 = new Long(0, 0);
    else
      $this.xas_1 = ceccjMasterChangeSeqNum;
    if (0 === (seen1 & 32))
      $this.yas_1 = 0;
    else
      $this.yas_1 = ceccjLastChangedBy;
    if (0 === (seen1 & 64))
      $this.zas_1 = new Long(0, 0);
    else
      $this.zas_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.tas_1 = new Long(0, 0);
    this.uas_1 = new Long(0, 0);
    this.vas_1 = new Long(0, 0);
    this.was_1 = new Long(0, 0);
    this.xas_1 = new Long(0, 0);
    this.yas_1 = 0;
    this.zas_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.tas_1.equals(ensureNotNull(that).tas_1))
      return false;
    return !this.uas_1.equals(that.uas_1) ? false : this.vas_1.equals(that.vas_1);
  };
  protoOf(ContentEntryContentCategoryJoin).hashCode = function () {
    var result = this.tas_1.wc(this.tas_1.tc(32)).mb();
    result = imul(31, result) + this.uas_1.wc(this.uas_1.tc(32)).mb() | 0;
    result = imul(31, result) + this.vas_1.wc(this.vas_1.tc(32)).mb() | 0;
    return result;
  };
  function Companion_64() {
    this.okh_1 = 720;
    this.pkh_1 = 'subtitles';
  }
  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.ContentEntryImportJob', this, 20);
    tmp0_serialDesc.t4f('cjiUid', true);
    tmp0_serialDesc.t4f('sourceUri', true);
    tmp0_serialDesc.t4f('cjiOriginalFilename', true);
    tmp0_serialDesc.t4f('cjiContentEntryUid', true);
    tmp0_serialDesc.t4f('cjiParentContentEntryUid', true);
    tmp0_serialDesc.t4f('cjiContentEntryVersion', true);
    tmp0_serialDesc.t4f('cjiItemProgress', true);
    tmp0_serialDesc.t4f('cjiItemTotal', true);
    tmp0_serialDesc.t4f('cjiStatus', true);
    tmp0_serialDesc.t4f('cjiRecursiveStatus', true);
    tmp0_serialDesc.t4f('cjiPluginId', true);
    tmp0_serialDesc.t4f('cjiParentCjiUid', true);
    tmp0_serialDesc.t4f('cjiStartTime', true);
    tmp0_serialDesc.t4f('cjiFinishTime', true);
    tmp0_serialDesc.t4f('cjiContentDeletedOnCancellation', true);
    tmp0_serialDesc.t4f('cjiCompressionLevel', true);
    tmp0_serialDesc.t4f('cjiError', true);
    tmp0_serialDesc.t4f('cjiErrorDismissed', true);
    tmp0_serialDesc.t4f('cjiOwnerPersonUid', true);
    tmp0_serialDesc.t4f('cjiParams', true);
    this.qkh_1 = tmp0_serialDesc;
  }
  protoOf($serializer_61).q44 = function () {
    return this.qkh_1;
  };
  protoOf($serializer_61).k4g = 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_61).s44 = function (decoder) {
    var tmp0_desc = this.qkh_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.i48(tmp0_desc);
    if (tmp24_input.x48()) {
      tmp4_local0 = tmp24_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp24_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp24_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp24_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp24_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp24_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp24_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp24_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp24_input.n48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp24_input.n48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp24_input.n48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp24_input.o48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp24_input.o48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp24_input.o48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp24_input.k48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp24_input.n48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp24_input.w48(tmp0_desc, 16, StringSerializer_getInstance(), tmp20_local16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp24_input.k48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp24_input.o48(tmp0_desc, 18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp24_input.w48(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp24_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp24_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp24_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp24_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp24_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp24_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp24_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp24_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp24_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp24_input.n48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp24_input.n48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp24_input.n48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp24_input.o48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp24_input.o48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp24_input.o48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp24_input.k48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp24_input.n48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp24_input.w48(tmp0_desc, 16, StringSerializer_getInstance(), tmp20_local16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp24_input.k48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp24_input.o48(tmp0_desc, 18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp24_input.w48(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp24_input.j48(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_61).rkh = function (encoder, value) {
    var tmp0_desc = this.qkh_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.lbc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.lbc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.mbc_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.mbc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.nbc_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.nbc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.obc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.obc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.pbc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.pbc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.qbc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.qbc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.rbc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.rbc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.sbc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.sbc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.tbc_1 === 4)) {
      tmp1_output.r49(tmp0_desc, 8, value.tbc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.ubc_1 === 4)) {
      tmp1_output.r49(tmp0_desc, 9, value.ubc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.vbc_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 10, value.vbc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !value.wbc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 11, value.wbc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !value.xbc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 12, value.xbc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !value.ybc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 13, value.ybc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 14) ? true : !(value.zbc_1 === false)) {
      tmp1_output.o49(tmp0_desc, 14, value.zbc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 15) ? true : !(value.abd_1 === 3)) {
      tmp1_output.r49(tmp0_desc, 15, value.abd_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 16) ? true : !(value.bbd_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 16, StringSerializer_getInstance(), value.bbd_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 17) ? true : !(value.cbd_1 === false)) {
      tmp1_output.o49(tmp0_desc, 17, value.cbd_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 18) ? true : !value.dbd_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 18, value.dbd_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 19) ? true : !(value.ebd_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 19, StringSerializer_getInstance(), value.ebd_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_61).r44 = function (encoder, value) {
    return this.rkh(encoder, value instanceof ContentEntryImportJob ? value : THROW_CCE());
  };
  var $serializer_instance_61;
  function $serializer_getInstance_61() {
    if ($serializer_instance_61 == null)
      new $serializer_61();
    return $serializer_instance_61;
  }
  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_61().qkh_1);
    }
    if (0 === (seen1 & 1))
      $this.lbc_1 = new Long(0, 0);
    else
      $this.lbc_1 = cjiUid;
    if (0 === (seen1 & 2))
      $this.mbc_1 = null;
    else
      $this.mbc_1 = sourceUri;
    if (0 === (seen1 & 4))
      $this.nbc_1 = null;
    else
      $this.nbc_1 = cjiOriginalFilename;
    if (0 === (seen1 & 8))
      $this.obc_1 = new Long(0, 0);
    else
      $this.obc_1 = cjiContentEntryUid;
    if (0 === (seen1 & 16))
      $this.pbc_1 = new Long(0, 0);
    else
      $this.pbc_1 = cjiParentContentEntryUid;
    if (0 === (seen1 & 32))
      $this.qbc_1 = new Long(0, 0);
    else
      $this.qbc_1 = cjiContentEntryVersion;
    if (0 === (seen1 & 64))
      $this.rbc_1 = new Long(0, 0);
    else
      $this.rbc_1 = cjiItemProgress;
    if (0 === (seen1 & 128))
      $this.sbc_1 = new Long(0, 0);
    else
      $this.sbc_1 = cjiItemTotal;
    if (0 === (seen1 & 256))
      $this.tbc_1 = 4;
    else
      $this.tbc_1 = cjiStatus;
    if (0 === (seen1 & 512))
      $this.ubc_1 = 4;
    else
      $this.ubc_1 = cjiRecursiveStatus;
    if (0 === (seen1 & 1024))
      $this.vbc_1 = 0;
    else
      $this.vbc_1 = cjiPluginId;
    if (0 === (seen1 & 2048))
      $this.wbc_1 = new Long(0, 0);
    else
      $this.wbc_1 = cjiParentCjiUid;
    if (0 === (seen1 & 4096))
      $this.xbc_1 = new Long(0, 0);
    else
      $this.xbc_1 = cjiStartTime;
    if (0 === (seen1 & 8192))
      $this.ybc_1 = new Long(0, 0);
    else
      $this.ybc_1 = cjiFinishTime;
    if (0 === (seen1 & 16384))
      $this.zbc_1 = false;
    else
      $this.zbc_1 = cjiContentDeletedOnCancellation;
    if (0 === (seen1 & 32768))
      $this.abd_1 = 3;
    else
      $this.abd_1 = cjiCompressionLevel;
    if (0 === (seen1 & 65536))
      $this.bbd_1 = null;
    else
      $this.bbd_1 = cjiError;
    if (0 === (seen1 & 131072))
      $this.cbd_1 = false;
    else
      $this.cbd_1 = cjiErrorDismissed;
    if (0 === (seen1 & 262144))
      $this.dbd_1 = new Long(0, 0);
    else
      $this.dbd_1 = cjiOwnerPersonUid;
    if (0 === (seen1 & 524288))
      $this.ebd_1 = null;
    else
      $this.ebd_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.lbc_1 = cjiUid;
    this.mbc_1 = sourceUri;
    this.nbc_1 = cjiOriginalFilename;
    this.obc_1 = cjiContentEntryUid;
    this.pbc_1 = cjiParentContentEntryUid;
    this.qbc_1 = cjiContentEntryVersion;
    this.rbc_1 = cjiItemProgress;
    this.sbc_1 = cjiItemTotal;
    this.tbc_1 = cjiStatus;
    this.ubc_1 = cjiRecursiveStatus;
    this.vbc_1 = cjiPluginId;
    this.wbc_1 = cjiParentCjiUid;
    this.xbc_1 = cjiStartTime;
    this.ybc_1 = cjiFinishTime;
    this.zbc_1 = cjiContentDeletedOnCancellation;
    this.abd_1 = cjiCompressionLevel;
    this.bbd_1 = cjiError;
    this.cbd_1 = cjiErrorDismissed;
    this.dbd_1 = cjiOwnerPersonUid;
    this.ebd_1 = cjiParams;
  }
  protoOf(ContentEntryImportJob).skh = 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).tkh = 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.lbc_1 : cjiUid;
    sourceUri = sourceUri === VOID ? this.mbc_1 : sourceUri;
    cjiOriginalFilename = cjiOriginalFilename === VOID ? this.nbc_1 : cjiOriginalFilename;
    cjiContentEntryUid = cjiContentEntryUid === VOID ? this.obc_1 : cjiContentEntryUid;
    cjiParentContentEntryUid = cjiParentContentEntryUid === VOID ? this.pbc_1 : cjiParentContentEntryUid;
    cjiContentEntryVersion = cjiContentEntryVersion === VOID ? this.qbc_1 : cjiContentEntryVersion;
    cjiItemProgress = cjiItemProgress === VOID ? this.rbc_1 : cjiItemProgress;
    cjiItemTotal = cjiItemTotal === VOID ? this.sbc_1 : cjiItemTotal;
    cjiStatus = cjiStatus === VOID ? this.tbc_1 : cjiStatus;
    cjiRecursiveStatus = cjiRecursiveStatus === VOID ? this.ubc_1 : cjiRecursiveStatus;
    cjiPluginId = cjiPluginId === VOID ? this.vbc_1 : cjiPluginId;
    cjiParentCjiUid = cjiParentCjiUid === VOID ? this.wbc_1 : cjiParentCjiUid;
    cjiStartTime = cjiStartTime === VOID ? this.xbc_1 : cjiStartTime;
    cjiFinishTime = cjiFinishTime === VOID ? this.ybc_1 : cjiFinishTime;
    cjiContentDeletedOnCancellation = cjiContentDeletedOnCancellation === VOID ? this.zbc_1 : cjiContentDeletedOnCancellation;
    cjiCompressionLevel = cjiCompressionLevel === VOID ? this.abd_1 : cjiCompressionLevel;
    cjiError = cjiError === VOID ? this.bbd_1 : cjiError;
    cjiErrorDismissed = cjiErrorDismissed === VOID ? this.cbd_1 : cjiErrorDismissed;
    cjiOwnerPersonUid = cjiOwnerPersonUid === VOID ? this.dbd_1 : cjiOwnerPersonUid;
    cjiParams = cjiParams === VOID ? this.ebd_1 : cjiParams;
    return $super === VOID ? this.skh(cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams) : $super.skh.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.lbc_1.toString() + ', sourceUri=' + this.mbc_1 + ', cjiOriginalFilename=' + this.nbc_1 + ', cjiContentEntryUid=' + this.obc_1.toString() + ', cjiParentContentEntryUid=' + this.pbc_1.toString() + ', cjiContentEntryVersion=' + this.qbc_1.toString() + ', cjiItemProgress=' + this.rbc_1.toString() + ', cjiItemTotal=' + this.sbc_1.toString() + ', cjiStatus=' + this.tbc_1 + ', cjiRecursiveStatus=' + this.ubc_1 + ', cjiPluginId=' + this.vbc_1 + ', cjiParentCjiUid=' + this.wbc_1.toString() + ', cjiStartTime=' + this.xbc_1.toString() + ', cjiFinishTime=' + this.ybc_1.toString() + ', cjiContentDeletedOnCancellation=' + this.zbc_1 + ', cjiCompressionLevel=' + this.abd_1 + ', cjiError=' + this.bbd_1 + ', cjiErrorDismissed=' + this.cbd_1 + ', cjiOwnerPersonUid=' + this.dbd_1.toString() + ', cjiParams=' + this.ebd_1 + ')';
  };
  protoOf(ContentEntryImportJob).hashCode = function () {
    var result = this.lbc_1.hashCode();
    result = imul(result, 31) + (this.mbc_1 == null ? 0 : getStringHashCode(this.mbc_1)) | 0;
    result = imul(result, 31) + (this.nbc_1 == null ? 0 : getStringHashCode(this.nbc_1)) | 0;
    result = imul(result, 31) + this.obc_1.hashCode() | 0;
    result = imul(result, 31) + this.pbc_1.hashCode() | 0;
    result = imul(result, 31) + this.qbc_1.hashCode() | 0;
    result = imul(result, 31) + this.rbc_1.hashCode() | 0;
    result = imul(result, 31) + this.sbc_1.hashCode() | 0;
    result = imul(result, 31) + this.tbc_1 | 0;
    result = imul(result, 31) + this.ubc_1 | 0;
    result = imul(result, 31) + this.vbc_1 | 0;
    result = imul(result, 31) + this.wbc_1.hashCode() | 0;
    result = imul(result, 31) + this.xbc_1.hashCode() | 0;
    result = imul(result, 31) + this.ybc_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.zbc_1) | 0;
    result = imul(result, 31) + this.abd_1 | 0;
    result = imul(result, 31) + (this.bbd_1 == null ? 0 : getStringHashCode(this.bbd_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.cbd_1) | 0;
    result = imul(result, 31) + this.dbd_1.hashCode() | 0;
    result = imul(result, 31) + (this.ebd_1 == null ? 0 : getStringHashCode(this.ebd_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.lbc_1.equals(tmp0_other_with_cast.lbc_1))
      return false;
    if (!(this.mbc_1 == tmp0_other_with_cast.mbc_1))
      return false;
    if (!(this.nbc_1 == tmp0_other_with_cast.nbc_1))
      return false;
    if (!this.obc_1.equals(tmp0_other_with_cast.obc_1))
      return false;
    if (!this.pbc_1.equals(tmp0_other_with_cast.pbc_1))
      return false;
    if (!this.qbc_1.equals(tmp0_other_with_cast.qbc_1))
      return false;
    if (!this.rbc_1.equals(tmp0_other_with_cast.rbc_1))
      return false;
    if (!this.sbc_1.equals(tmp0_other_with_cast.sbc_1))
      return false;
    if (!(this.tbc_1 === tmp0_other_with_cast.tbc_1))
      return false;
    if (!(this.ubc_1 === tmp0_other_with_cast.ubc_1))
      return false;
    if (!(this.vbc_1 === tmp0_other_with_cast.vbc_1))
      return false;
    if (!this.wbc_1.equals(tmp0_other_with_cast.wbc_1))
      return false;
    if (!this.xbc_1.equals(tmp0_other_with_cast.xbc_1))
      return false;
    if (!this.ybc_1.equals(tmp0_other_with_cast.ybc_1))
      return false;
    if (!(this.zbc_1 === tmp0_other_with_cast.zbc_1))
      return false;
    if (!(this.abd_1 === tmp0_other_with_cast.abd_1))
      return false;
    if (!(this.bbd_1 == tmp0_other_with_cast.bbd_1))
      return false;
    if (!(this.cbd_1 === tmp0_other_with_cast.cbd_1))
      return false;
    if (!this.dbd_1.equals(tmp0_other_with_cast.dbd_1))
      return false;
    if (!(this.ebd_1 == tmp0_other_with_cast.ebd_1))
      return false;
    return true;
  };
  function Companion_65() {
    this.ukh_1 = 7;
  }
  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.ContentEntryParentChildJoin', this, 9);
    tmp0_serialDesc.t4f('cepcjParentContentEntryUid', true);
    tmp0_serialDesc.t4f('cepcjChildContentEntryUid', true);
    tmp0_serialDesc.t4f('childIndex', true);
    tmp0_serialDesc.t4f('cepcjUid', true);
    tmp0_serialDesc.t4f('cepcjLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('cepcjMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('cepcjLastChangedBy', true);
    tmp0_serialDesc.t4f('cepcjLct', true);
    tmp0_serialDesc.t4f('cepcjDeleted', true);
    this.vkh_1 = tmp0_serialDesc;
  }
  protoOf($serializer_62).q44 = function () {
    return this.vkh_1;
  };
  protoOf($serializer_62).k4g = 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_62).s44 = function (decoder) {
    var tmp0_desc = this.vkh_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.i48(tmp0_desc);
    if (tmp13_input.x48()) {
      tmp4_local0 = tmp13_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp13_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp13_input.n48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp13_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp13_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp13_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp13_input.n48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp13_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp13_input.k48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp13_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp13_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp13_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp13_input.n48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp13_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp13_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp13_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp13_input.n48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp13_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp13_input.k48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp13_input.j48(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_62).wkh = function (encoder, value) {
    var tmp0_desc = this.vkh_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.uay_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.uay_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.vay_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.vay_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.way_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 2, value.way_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.xay_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.xay_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.yay_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.yay_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.zay_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.zay_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.aaz_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 6, value.aaz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.baz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.baz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.caz_1 === false)) {
      tmp1_output.o49(tmp0_desc, 8, value.caz_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_62).r44 = function (encoder, value) {
    return this.wkh(encoder, value instanceof ContentEntryParentChildJoin ? value : THROW_CCE());
  };
  var $serializer_instance_62;
  function $serializer_getInstance_62() {
    if ($serializer_instance_62 == null)
      new $serializer_62();
    return $serializer_instance_62;
  }
  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_62().vkh_1);
    }
    if (0 === (seen1 & 1))
      $this.uay_1 = new Long(0, 0);
    else
      $this.uay_1 = cepcjParentContentEntryUid;
    if (0 === (seen1 & 2))
      $this.vay_1 = new Long(0, 0);
    else
      $this.vay_1 = cepcjChildContentEntryUid;
    if (0 === (seen1 & 4))
      $this.way_1 = 0;
    else
      $this.way_1 = childIndex;
    if (0 === (seen1 & 8))
      $this.xay_1 = new Long(0, 0);
    else
      $this.xay_1 = cepcjUid;
    if (0 === (seen1 & 16))
      $this.yay_1 = new Long(0, 0);
    else
      $this.yay_1 = cepcjLocalChangeSeqNum;
    if (0 === (seen1 & 32))
      $this.zay_1 = new Long(0, 0);
    else
      $this.zay_1 = cepcjMasterChangeSeqNum;
    if (0 === (seen1 & 64))
      $this.aaz_1 = 0;
    else
      $this.aaz_1 = cepcjLastChangedBy;
    if (0 === (seen1 & 128))
      $this.baz_1 = new Long(0, 0);
    else
      $this.baz_1 = cepcjLct;
    if (0 === (seen1 & 256))
      $this.caz_1 = false;
    else
      $this.caz_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.uay_1 = cepcjParentContentEntryUid;
    this.vay_1 = cepcjChildContentEntryUid;
    this.way_1 = childIndex;
    this.xay_1 = new Long(0, 0);
    this.yay_1 = new Long(0, 0);
    this.zay_1 = new Long(0, 0);
    this.aaz_1 = 0;
    this.baz_1 = new Long(0, 0);
    this.caz_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.xay_1.equals(other.xay_1))
      return false;
    if (!this.yay_1.equals(other.yay_1))
      return false;
    if (!this.zay_1.equals(other.zay_1))
      return false;
    if (!(this.aaz_1 === other.aaz_1))
      return false;
    if (!this.uay_1.equals(other.uay_1))
      return false;
    if (!this.vay_1.equals(other.vay_1))
      return false;
    if (!(this.way_1 === other.way_1))
      return false;
    return true;
  };
  protoOf(ContentEntryParentChildJoin).hashCode = function () {
    var result = this.xay_1.hashCode();
    result = imul(31, result) + this.yay_1.hashCode() | 0;
    result = imul(31, result) + this.zay_1.hashCode() | 0;
    result = imul(31, result) + this.aaz_1 | 0;
    result = imul(31, result) + this.uay_1.hashCode() | 0;
    result = imul(31, result) + this.vay_1.hashCode() | 0;
    result = imul(31, result) + this.way_1 | 0;
    return result;
  };
  function Companion_66() {
    this.xkh_1 = 138;
  }
  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.ContentEntryPicture', this, 8);
    tmp0_serialDesc.t4f('cepUid', true);
    tmp0_serialDesc.t4f('cepContentEntryUid', true);
    tmp0_serialDesc.t4f('cepUri', true);
    tmp0_serialDesc.t4f('cepMd5', true);
    tmp0_serialDesc.t4f('cepFileSize', true);
    tmp0_serialDesc.t4f('cepTimestamp', true);
    tmp0_serialDesc.t4f('cepMimeType', true);
    tmp0_serialDesc.t4f('cepActive', true);
    this.ykh_1 = tmp0_serialDesc;
  }
  protoOf($serializer_63).q44 = function () {
    return this.ykh_1;
  };
  protoOf($serializer_63).k4g = 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_63).s44 = function (decoder) {
    var tmp0_desc = this.ykh_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.i48(tmp0_desc);
    if (tmp12_input.x48()) {
      tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.n48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.k48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.n48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.k48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.j48(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_63).zkh = function (encoder, value) {
    var tmp0_desc = this.ykh_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.tbl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.tbl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.ubl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.ubl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.vbl_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.vbl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.wbl_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.wbl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.xbl_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 4, value.xbl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.ybl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.ybl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.zbl_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 6, StringSerializer_getInstance(), value.zbl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.abm_1 === true)) {
      tmp1_output.o49(tmp0_desc, 7, value.abm_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_63).r44 = function (encoder, value) {
    return this.zkh(encoder, value instanceof ContentEntryPicture ? value : THROW_CCE());
  };
  var $serializer_instance_63;
  function $serializer_getInstance_63() {
    if ($serializer_instance_63 == null)
      new $serializer_63();
    return $serializer_instance_63;
  }
  function ContentEntryPicture_init_$Init$(seen1, cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_63().ykh_1);
    }
    if (0 === (seen1 & 1))
      $this.tbl_1 = new Long(0, 0);
    else
      $this.tbl_1 = cepUid;
    if (0 === (seen1 & 2))
      $this.ubl_1 = new Long(0, 0);
    else
      $this.ubl_1 = cepContentEntryUid;
    if (0 === (seen1 & 4))
      $this.vbl_1 = null;
    else
      $this.vbl_1 = cepUri;
    if (0 === (seen1 & 8))
      $this.wbl_1 = null;
    else
      $this.wbl_1 = cepMd5;
    if (0 === (seen1 & 16))
      $this.xbl_1 = 0;
    else
      $this.xbl_1 = cepFileSize;
    if (0 === (seen1 & 32))
      $this.ybl_1 = new Long(0, 0);
    else
      $this.ybl_1 = cepTimestamp;
    if (0 === (seen1 & 64))
      $this.zbl_1 = null;
    else
      $this.zbl_1 = cepMimeType;
    if (0 === (seen1 & 128))
      $this.abm_1 = true;
    else
      $this.abm_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.tbl_1 = new Long(0, 0);
    this.ubl_1 = new Long(0, 0);
    this.vbl_1 = null;
    this.wbl_1 = null;
    this.xbl_1 = 0;
    this.ybl_1 = new Long(0, 0);
    this.zbl_1 = null;
    this.abm_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.tbl_1.equals(other.tbl_1))
      return false;
    if (!this.ubl_1.equals(other.ubl_1))
      return false;
    if (!(this.vbl_1 == other.vbl_1))
      return false;
    if (!(this.wbl_1 == other.wbl_1))
      return false;
    if (!(this.xbl_1 === other.xbl_1))
      return false;
    if (!this.ybl_1.equals(other.ybl_1))
      return false;
    if (!(this.zbl_1 == other.zbl_1))
      return false;
    if (!(this.abm_1 === other.abm_1))
      return false;
    return true;
  };
  protoOf(ContentEntryPicture).hashCode = function () {
    var result = this.tbl_1.hashCode();
    result = imul(31, result) + this.ubl_1.hashCode() | 0;
    var tmp = imul(31, result);
    var tmp0_safe_receiver = this.vbl_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.wbl_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.xbl_1 | 0;
    result = imul(31, result) + this.ybl_1.hashCode() | 0;
    var tmp_1 = imul(31, result);
    var tmp4_safe_receiver = this.zbl_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.abm_1) | 0;
    return result;
  };
  function Companion_67() {
    this.aki_1 = 6678;
  }
  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.ContentEntryPicture2', this, 4);
    tmp0_serialDesc.t4f('cepUid', true);
    tmp0_serialDesc.t4f('cepLct', true);
    tmp0_serialDesc.t4f('cepPictureUri', true);
    tmp0_serialDesc.t4f('cepThumbnailUri', true);
    this.bki_1 = tmp0_serialDesc;
  }
  protoOf($serializer_64).q44 = function () {
    return this.bki_1;
  };
  protoOf($serializer_64).k4g = 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_64).s44 = function (decoder) {
    var tmp0_desc = this.bki_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.i48(tmp0_desc);
    if (tmp8_input.x48()) {
      tmp4_local0 = tmp8_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.j48(tmp0_desc);
    return ContentEntryPicture2_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_64).cki = function (encoder, value) {
    var tmp0_desc = this.bki_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.dax_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.dax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.eax_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.eax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.fax_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.fax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.gax_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.gax_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_64).r44 = function (encoder, value) {
    return this.cki(encoder, value instanceof ContentEntryPicture2 ? value : THROW_CCE());
  };
  var $serializer_instance_64;
  function $serializer_getInstance_64() {
    if ($serializer_instance_64 == null)
      new $serializer_64();
    return $serializer_instance_64;
  }
  function ContentEntryPicture2_init_$Init$(seen1, cepUid, cepLct, cepPictureUri, cepThumbnailUri, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_64().bki_1);
    }
    if (0 === (seen1 & 1))
      $this.dax_1 = new Long(0, 0);
    else
      $this.dax_1 = cepUid;
    if (0 === (seen1 & 2))
      $this.eax_1 = new Long(0, 0);
    else
      $this.eax_1 = cepLct;
    if (0 === (seen1 & 4))
      $this.fax_1 = null;
    else
      $this.fax_1 = cepPictureUri;
    if (0 === (seen1 & 8))
      $this.gax_1 = null;
    else
      $this.gax_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.dax_1 = cepUid;
    this.eax_1 = cepLct;
    this.fax_1 = cepPictureUri;
    this.gax_1 = cepThumbnailUri;
  }
  protoOf(ContentEntryPicture2).dki = function (cepUid, cepLct, cepPictureUri, cepThumbnailUri) {
    return new ContentEntryPicture2(cepUid, cepLct, cepPictureUri, cepThumbnailUri);
  };
  protoOf(ContentEntryPicture2).eki = function (cepUid, cepLct, cepPictureUri, cepThumbnailUri, $super) {
    cepUid = cepUid === VOID ? this.dax_1 : cepUid;
    cepLct = cepLct === VOID ? this.eax_1 : cepLct;
    cepPictureUri = cepPictureUri === VOID ? this.fax_1 : cepPictureUri;
    cepThumbnailUri = cepThumbnailUri === VOID ? this.gax_1 : cepThumbnailUri;
    return $super === VOID ? this.dki(cepUid, cepLct, cepPictureUri, cepThumbnailUri) : $super.dki.call(this, cepUid, cepLct, cepPictureUri, cepThumbnailUri);
  };
  protoOf(ContentEntryPicture2).toString = function () {
    return 'ContentEntryPicture2(cepUid=' + this.dax_1.toString() + ', cepLct=' + this.eax_1.toString() + ', cepPictureUri=' + this.fax_1 + ', cepThumbnailUri=' + this.gax_1 + ')';
  };
  protoOf(ContentEntryPicture2).hashCode = function () {
    var result = this.dax_1.hashCode();
    result = imul(result, 31) + this.eax_1.hashCode() | 0;
    result = imul(result, 31) + (this.fax_1 == null ? 0 : getStringHashCode(this.fax_1)) | 0;
    result = imul(result, 31) + (this.gax_1 == null ? 0 : getStringHashCode(this.gax_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.dax_1.equals(tmp0_other_with_cast.dax_1))
      return false;
    if (!this.eax_1.equals(tmp0_other_with_cast.eax_1))
      return false;
    if (!(this.fax_1 == tmp0_other_with_cast.fax_1))
      return false;
    if (!(this.gax_1 == tmp0_other_with_cast.gax_1))
      return false;
    return true;
  };
  function Companion_68() {
    this.fki_1 = 8;
    this.gki_1 = 1;
    this.hki_1 = 2;
  }
  var Companion_instance_69;
  function Companion_getInstance_71() {
    return Companion_instance_69;
  }
  function $serializer_65() {
    $serializer_instance_65 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryRelatedEntryJoin', this, 10);
    tmp0_serialDesc.t4f('cerejUid', true);
    tmp0_serialDesc.t4f('cerejContentEntryUid', true);
    tmp0_serialDesc.t4f('cerejRelatedEntryUid', true);
    tmp0_serialDesc.t4f('cerejLastChangedBy', true);
    tmp0_serialDesc.t4f('relType', true);
    tmp0_serialDesc.t4f('comment', true);
    tmp0_serialDesc.t4f('cerejRelLanguageUid', true);
    tmp0_serialDesc.t4f('cerejLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('cerejMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('cerejLct', true);
    this.iki_1 = tmp0_serialDesc;
  }
  protoOf($serializer_65).q44 = function () {
    return this.iki_1;
  };
  protoOf($serializer_65).k4g = 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_65).s44 = function (decoder) {
    var tmp0_desc = this.iki_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.i48(tmp0_desc);
    if (tmp14_input.x48()) {
      tmp4_local0 = tmp14_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp14_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp14_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp14_input.n48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp14_input.n48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp14_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp14_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp14_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp14_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp14_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp14_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp14_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp14_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp14_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp14_input.n48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp14_input.n48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp14_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp14_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp14_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp14_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp14_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp14_input.j48(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_65).jki = function (encoder, value) {
    var tmp0_desc = this.iki_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.fbo_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.fbo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.gbo_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.gbo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.hbo_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.hbo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.ibo_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 3, value.ibo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.jbo_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 4, value.jbo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.kbo_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.kbo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.lbo_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.lbo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.mbo_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.mbo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.nbo_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.nbo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !value.obo_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 9, value.obo_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_65).r44 = function (encoder, value) {
    return this.jki(encoder, value instanceof ContentEntryRelatedEntryJoin ? value : THROW_CCE());
  };
  var $serializer_instance_65;
  function $serializer_getInstance_65() {
    if ($serializer_instance_65 == null)
      new $serializer_65();
    return $serializer_instance_65;
  }
  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_65().iki_1);
    }
    if (0 === (seen1 & 1))
      $this.fbo_1 = new Long(0, 0);
    else
      $this.fbo_1 = cerejUid;
    if (0 === (seen1 & 2))
      $this.gbo_1 = new Long(0, 0);
    else
      $this.gbo_1 = cerejContentEntryUid;
    if (0 === (seen1 & 4))
      $this.hbo_1 = new Long(0, 0);
    else
      $this.hbo_1 = cerejRelatedEntryUid;
    if (0 === (seen1 & 8))
      $this.ibo_1 = 0;
    else
      $this.ibo_1 = cerejLastChangedBy;
    if (0 === (seen1 & 16))
      $this.jbo_1 = 0;
    else
      $this.jbo_1 = relType;
    if (0 === (seen1 & 32))
      $this.kbo_1 = null;
    else
      $this.kbo_1 = comment;
    if (0 === (seen1 & 64))
      $this.lbo_1 = new Long(0, 0);
    else
      $this.lbo_1 = cerejRelLanguageUid;
    if (0 === (seen1 & 128))
      $this.mbo_1 = new Long(0, 0);
    else
      $this.mbo_1 = cerejLocalChangeSeqNum;
    if (0 === (seen1 & 256))
      $this.nbo_1 = new Long(0, 0);
    else
      $this.nbo_1 = cerejMasterChangeSeqNum;
    if (0 === (seen1 & 512))
      $this.obo_1 = new Long(0, 0);
    else
      $this.obo_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.fbo_1 = new Long(0, 0);
    this.gbo_1 = new Long(0, 0);
    this.hbo_1 = new Long(0, 0);
    this.ibo_1 = 0;
    this.jbo_1 = 0;
    this.kbo_1 = null;
    this.lbo_1 = new Long(0, 0);
    this.mbo_1 = new Long(0, 0);
    this.nbo_1 = new Long(0, 0);
    this.obo_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.fbo_1.equals(ensureNotNull(that).fbo_1))
      return false;
    if (!this.gbo_1.equals(that.gbo_1))
      return false;
    if (!this.hbo_1.equals(that.hbo_1))
      return false;
    if (!(this.jbo_1 === that.jbo_1))
      return false;
    if (!this.lbo_1.equals(that.lbo_1))
      return false;
    return !(this.kbo_1 == null) ? this.kbo_1 == that.kbo_1 : that.kbo_1 == null;
  };
  protoOf(ContentEntryRelatedEntryJoin).hashCode = function () {
    var result = this.fbo_1.wc(this.fbo_1.tc(32)).mb();
    result = imul(31, result) + this.gbo_1.wc(this.gbo_1.tc(32)).mb() | 0;
    result = imul(31, result) + this.hbo_1.wc(this.hbo_1.tc(32)).mb() | 0;
    result = imul(31, result) + this.jbo_1 | 0;
    result = imul(31, result) + (!(this.kbo_1 == null) ? getStringHashCode(ensureNotNull(this.kbo_1)) : 0) | 0;
    result = imul(31, result) + this.lbo_1.wc(this.lbo_1.tc(32)).mb() | 0;
    return result;
  };
  function Companion_69() {
  }
  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.ContentEntryRelatedEntryJoinWithLanguage', this, 11);
    tmp0_serialDesc.t4f('cerejUid', true);
    tmp0_serialDesc.t4f('cerejContentEntryUid', true);
    tmp0_serialDesc.t4f('cerejRelatedEntryUid', true);
    tmp0_serialDesc.t4f('cerejLastChangedBy', true);
    tmp0_serialDesc.t4f('relType', true);
    tmp0_serialDesc.t4f('comment', true);
    tmp0_serialDesc.t4f('cerejRelLanguageUid', true);
    tmp0_serialDesc.t4f('cerejLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('cerejMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('cerejLct', true);
    tmp0_serialDesc.t4f('language', true);
    this.kki_1 = tmp0_serialDesc;
  }
  protoOf($serializer_66).q44 = function () {
    return this.kki_1;
  };
  protoOf($serializer_66).k4g = 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_90())];
  };
  protoOf($serializer_66).s44 = function (decoder) {
    var tmp0_desc = this.kki_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.i48(tmp0_desc);
    if (tmp15_input.x48()) {
      tmp4_local0 = tmp15_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp15_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp15_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp15_input.n48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp15_input.n48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp15_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp15_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp15_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp15_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp15_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp15_input.w48(tmp0_desc, 10, $serializer_getInstance_90(), tmp14_local10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp15_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp15_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp15_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp15_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp15_input.n48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp15_input.n48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp15_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp15_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp15_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp15_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp15_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp15_input.w48(tmp0_desc, 10, $serializer_getInstance_90(), tmp14_local10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp15_input.j48(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_66).lki = function (encoder, value) {
    var tmp0_desc = this.kki_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.fbo_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.fbo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.gbo_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.gbo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.hbo_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.hbo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.ibo_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 3, value.ibo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.jbo_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 4, value.jbo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.kbo_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.kbo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.lbo_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.lbo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.mbo_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.mbo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.nbo_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.nbo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !value.obo_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 9, value.obo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.wki_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 10, $serializer_getInstance_90(), value.wki_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_66).r44 = function (encoder, value) {
    return this.lki(encoder, value instanceof ContentEntryRelatedEntryJoinWithLanguage ? value : THROW_CCE());
  };
  var $serializer_instance_66;
  function $serializer_getInstance_66() {
    if ($serializer_instance_66 == null)
      new $serializer_66();
    return $serializer_instance_66;
  }
  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_66().kki_1);
    }
    ContentEntryRelatedEntryJoin_init_$Init$(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, serializationConstructorMarker, $this);
    if (0 === (seen1 & 1024))
      $this.wki_1 = null;
    else
      $this.wki_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.wki_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.wki_1, other.wki_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.wki_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_70() {
  }
  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.ContentEntryStatementScoreProgress', this, 10);
    tmp0_serialDesc.t4f('resultScore', true);
    tmp0_serialDesc.t4f('resultMax', true);
    tmp0_serialDesc.t4f('resultScaled', true);
    tmp0_serialDesc.t4f('resultWeight', true);
    tmp0_serialDesc.t4f('contentComplete', true);
    tmp0_serialDesc.t4f('progress', true);
    tmp0_serialDesc.t4f('success', true);
    tmp0_serialDesc.t4f('penalty', true);
    tmp0_serialDesc.t4f('totalContent', true);
    tmp0_serialDesc.t4f('totalCompletedContent', true);
    this.xki_1 = tmp0_serialDesc;
  }
  protoOf($serializer_67).q44 = function () {
    return this.xki_1;
  };
  protoOf($serializer_67).k4g = 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_67).s44 = function (decoder) {
    var tmp0_desc = this.xki_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.i48(tmp0_desc);
    if (tmp14_input.x48()) {
      tmp4_local0 = tmp14_input.n48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp14_input.n48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp14_input.p48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp14_input.n48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp14_input.k48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp14_input.n48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp14_input.l48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp14_input.n48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp14_input.n48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp14_input.n48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp14_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp14_input.n48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp14_input.n48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp14_input.p48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp14_input.n48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp14_input.k48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp14_input.n48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp14_input.l48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp14_input.n48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp14_input.n48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp14_input.n48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp14_input.j48(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_67).yki = function (encoder, value) {
    var tmp0_desc = this.xki_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.zki_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 0, value.zki_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.akj_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 1, value.akj_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !equals(value.bkj_1, 0.0)) {
      tmp1_output.t49(tmp0_desc, 2, value.bkj_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.ckj_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 3, value.ckj_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.dkj_1 === false)) {
      tmp1_output.o49(tmp0_desc, 4, value.dkj_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.ekj_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 5, value.ekj_1);
    }
    var tmp;
    if (tmp1_output.e4a(tmp0_desc, 6)) {
      tmp = true;
    } else {
      var tmp_0 = value.fkj_1;
      tmp = !(tmp_0 === 0);
    }
    if (tmp) {
      tmp1_output.p49(tmp0_desc, 6, value.fkj_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.gkj_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 7, value.gkj_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.hkj_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 8, value.hkj_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.ikj_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 9, value.ikj_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_67).r44 = function (encoder, value) {
    return this.yki(encoder, value instanceof ContentEntryStatementScoreProgress ? value : THROW_CCE());
  };
  var $serializer_instance_67;
  function $serializer_getInstance_67() {
    if ($serializer_instance_67 == null)
      new $serializer_67();
    return $serializer_instance_67;
  }
  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_67().xki_1);
    }
    if (0 === (seen1 & 1))
      $this.zki_1 = 0;
    else
      $this.zki_1 = resultScore;
    if (0 === (seen1 & 2))
      $this.akj_1 = 0;
    else
      $this.akj_1 = resultMax;
    if (0 === (seen1 & 4))
      $this.bkj_1 = 0.0;
    else
      $this.bkj_1 = resultScaled;
    if (0 === (seen1 & 8))
      $this.ckj_1 = 0;
    else
      $this.ckj_1 = resultWeight;
    if (0 === (seen1 & 16))
      $this.dkj_1 = false;
    else
      $this.dkj_1 = contentComplete;
    if (0 === (seen1 & 32))
      $this.ekj_1 = 0;
    else
      $this.ekj_1 = progress;
    if (0 === (seen1 & 64)) {
      var tmp = $this;
      tmp.fkj_1 = 0;
    } else
      $this.fkj_1 = success;
    if (0 === (seen1 & 128))
      $this.gkj_1 = 0;
    else
      $this.gkj_1 = penalty;
    if (0 === (seen1 & 256))
      $this.hkj_1 = 0;
    else
      $this.hkj_1 = totalContent;
    if (0 === (seen1 & 512))
      $this.ikj_1 = 0;
    else
      $this.ikj_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.zki_1 = 0;
    this.akj_1 = 0;
    this.bkj_1 = 0.0;
    this.ckj_1 = 0;
    this.dkj_1 = false;
    this.ekj_1 = 0;
    var tmp = this;
    tmp.fkj_1 = 0;
    this.gkj_1 = 0;
    this.hkj_1 = 0;
    this.ikj_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.zki_1 === other.zki_1))
      return false;
    if (!(this.akj_1 === other.akj_1))
      return false;
    if (!(this.bkj_1 === other.bkj_1))
      return false;
    if (!(this.ckj_1 === other.ckj_1))
      return false;
    if (!(this.dkj_1 === other.dkj_1))
      return false;
    if (!(this.ekj_1 === other.ekj_1))
      return false;
    if (!(this.fkj_1 === other.fkj_1))
      return false;
    if (!(this.gkj_1 === other.gkj_1))
      return false;
    if (!(this.hkj_1 === other.hkj_1))
      return false;
    if (!(this.ikj_1 === other.ikj_1))
      return false;
    return true;
  };
  protoOf(ContentEntryStatementScoreProgress).hashCode = function () {
    var result = this.zki_1;
    result = imul(31, result) + this.akj_1 | 0;
    result = imul(31, result) + getNumberHashCode(this.bkj_1) | 0;
    result = imul(31, result) + this.ckj_1 | 0;
    result = imul(31, result) + getBooleanHashCode(this.dkj_1) | 0;
    result = imul(31, result) + this.ekj_1 | 0;
    result = imul(31, result) + this.fkj_1 | 0;
    result = imul(31, result) + this.gkj_1 | 0;
    result = imul(31, result) + this.hkj_1 | 0;
    result = imul(31, result) + this.ikj_1 | 0;
    return result;
  };
  function Companion_71() {
    this.jkj_1 = 'epub';
    this.kkj_1 = 'video';
    this.lkj_1 = 'pdf';
    this.mkj_1 = 'xapi';
    this.nkj_1 = 'api/content/';
    this.okj_1 = 738;
    this.pkj_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_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.ContentEntryVersion', this, 11);
    tmp0_serialDesc.t4f('cevUid', true);
    tmp0_serialDesc.t4f('cevContentEntryUid', true);
    tmp0_serialDesc.t4f('cevOpenUri', true);
    tmp0_serialDesc.t4f('cevContentType', true);
    tmp0_serialDesc.t4f('cevManifestUrl', true);
    tmp0_serialDesc.t4f('cevSize', true);
    tmp0_serialDesc.t4f('cevInActive', true);
    tmp0_serialDesc.t4f('cevLastModified', true);
    tmp0_serialDesc.t4f('cevLct', true);
    tmp0_serialDesc.t4f('cevStorageSize', true);
    tmp0_serialDesc.t4f('cevOriginalSize', true);
    this.qkj_1 = tmp0_serialDesc;
  }
  protoOf($serializer_68).q44 = function () {
    return this.qkj_1;
  };
  protoOf($serializer_68).k4g = 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_68).s44 = function (decoder) {
    var tmp0_desc = this.qkj_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.i48(tmp0_desc);
    if (tmp15_input.x48()) {
      tmp4_local0 = tmp15_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp15_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp15_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp15_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp15_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp15_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp15_input.k48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp15_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp15_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp15_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp15_input.o48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp15_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp15_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp15_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp15_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp15_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp15_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp15_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp15_input.k48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp15_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp15_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp15_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp15_input.o48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp15_input.j48(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_68).rkj = function (encoder, value) {
    var tmp0_desc = this.qkj_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.lax_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.lax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.max_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.max_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.nax_1 === '')) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.nax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.oax_1 === '')) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.oax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.pax_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.pax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.qax_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.qax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.rax_1 === false)) {
      tmp1_output.o49(tmp0_desc, 6, value.rax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.sax_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.sax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.tax_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.tax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !value.uax_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 9, value.uax_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !value.vax_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 10, value.vax_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_68).r44 = function (encoder, value) {
    return this.rkj(encoder, value instanceof ContentEntryVersion ? value : THROW_CCE());
  };
  var $serializer_instance_68;
  function $serializer_getInstance_68() {
    if ($serializer_instance_68 == null)
      new $serializer_68();
    return $serializer_instance_68;
  }
  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_68().qkj_1);
    }
    if (0 === (seen1 & 1))
      $this.lax_1 = new Long(0, 0);
    else
      $this.lax_1 = cevUid;
    if (0 === (seen1 & 2))
      $this.max_1 = new Long(0, 0);
    else
      $this.max_1 = cevContentEntryUid;
    if (0 === (seen1 & 4))
      $this.nax_1 = '';
    else
      $this.nax_1 = cevOpenUri;
    if (0 === (seen1 & 8))
      $this.oax_1 = '';
    else
      $this.oax_1 = cevContentType;
    if (0 === (seen1 & 16))
      $this.pax_1 = null;
    else
      $this.pax_1 = cevManifestUrl;
    if (0 === (seen1 & 32))
      $this.qax_1 = new Long(0, 0);
    else
      $this.qax_1 = cevSize;
    if (0 === (seen1 & 64))
      $this.rax_1 = false;
    else
      $this.rax_1 = cevInActive;
    if (0 === (seen1 & 128))
      $this.sax_1 = new Long(0, 0);
    else
      $this.sax_1 = cevLastModified;
    if (0 === (seen1 & 256))
      $this.tax_1 = new Long(0, 0);
    else
      $this.tax_1 = cevLct;
    if (0 === (seen1 & 512))
      $this.uax_1 = new Long(0, 0);
    else
      $this.uax_1 = cevStorageSize;
    if (0 === (seen1 & 1024))
      $this.vax_1 = new Long(0, 0);
    else
      $this.vax_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.lax_1 = cevUid;
    this.max_1 = cevContentEntryUid;
    this.nax_1 = cevOpenUri;
    this.oax_1 = cevContentType;
    this.pax_1 = cevManifestUrl;
    this.qax_1 = cevSize;
    this.rax_1 = cevInActive;
    this.sax_1 = cevLastModified;
    this.tax_1 = cevLct;
    this.uax_1 = cevStorageSize;
    this.vax_1 = cevOriginalSize;
  }
  protoOf(ContentEntryVersion).toString = function () {
    return 'ContentEntryVersion(cevUid=' + this.lax_1.toString() + ', cevContentEntryUid=' + this.max_1.toString() + ', cevOpenUri=' + this.nax_1 + ', cevContentType=' + this.oax_1 + ', cevManifestUrl=' + this.pax_1 + ', cevSize=' + this.qax_1.toString() + ', cevInActive=' + this.rax_1 + ', cevLastModified=' + this.sax_1.toString() + ', cevLct=' + this.tax_1.toString() + ', cevStorageSize=' + this.uax_1.toString() + ', cevOriginalSize=' + this.vax_1.toString() + ')';
  };
  protoOf(ContentEntryVersion).hashCode = function () {
    var result = this.lax_1.hashCode();
    result = imul(result, 31) + this.max_1.hashCode() | 0;
    result = imul(result, 31) + (this.nax_1 == null ? 0 : getStringHashCode(this.nax_1)) | 0;
    result = imul(result, 31) + (this.oax_1 == null ? 0 : getStringHashCode(this.oax_1)) | 0;
    result = imul(result, 31) + (this.pax_1 == null ? 0 : getStringHashCode(this.pax_1)) | 0;
    result = imul(result, 31) + this.qax_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.rax_1) | 0;
    result = imul(result, 31) + this.sax_1.hashCode() | 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;
    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.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 == tmp0_other_with_cast.nax_1))
      return false;
    if (!(this.oax_1 == tmp0_other_with_cast.oax_1))
      return false;
    if (!(this.pax_1 == tmp0_other_with_cast.pax_1))
      return false;
    if (!this.qax_1.equals(tmp0_other_with_cast.qax_1))
      return false;
    if (!(this.rax_1 === tmp0_other_with_cast.rax_1))
      return false;
    if (!this.sax_1.equals(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;
    return true;
  };
  function Companion_72() {
  }
  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.ContentEntryWithLanguage', this, 28);
    tmp0_serialDesc.t4f('contentEntryUid', true);
    tmp0_serialDesc.t4f('title', true);
    tmp0_serialDesc.t4f('description', true);
    tmp0_serialDesc.t4f('entryId', true);
    tmp0_serialDesc.t4f('author', true);
    tmp0_serialDesc.t4f('publisher', true);
    tmp0_serialDesc.t4f('licenseType', true);
    tmp0_serialDesc.t4f('licenseName', true);
    tmp0_serialDesc.t4f('licenseUrl', true);
    tmp0_serialDesc.t4f('sourceUrl', true);
    tmp0_serialDesc.t4f('thumbnailUrl', true);
    tmp0_serialDesc.t4f('lastModified', true);
    tmp0_serialDesc.t4f('primaryLanguageUid', true);
    tmp0_serialDesc.t4f('languageVariantUid', true);
    tmp0_serialDesc.t4f('contentFlags', true);
    tmp0_serialDesc.t4f('leaf', true);
    tmp0_serialDesc.t4f('publik', true);
    tmp0_serialDesc.t4f('ceInactive', true);
    tmp0_serialDesc.t4f('completionCriteria', true);
    tmp0_serialDesc.t4f('minScore', true);
    tmp0_serialDesc.t4f('contentTypeFlag', true);
    tmp0_serialDesc.t4f('contentOwner', true);
    tmp0_serialDesc.t4f('contentOwnerType', true);
    tmp0_serialDesc.t4f('contentEntryLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('contentEntryMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('contentEntryLastChangedBy', true);
    tmp0_serialDesc.t4f('contentEntryLct', true);
    tmp0_serialDesc.t4f('language', true);
    this.skj_1 = tmp0_serialDesc;
  }
  protoOf($serializer_69).q44 = function () {
    return this.skj_1;
  };
  protoOf($serializer_69).k4g = 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_90())];
  };
  protoOf($serializer_69).s44 = function (decoder) {
    var tmp0_desc = this.skj_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.i48(tmp0_desc);
    if (tmp32_input.x48()) {
      tmp4_local0 = tmp32_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp32_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp32_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp32_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp32_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp32_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp32_input.n48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp32_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp32_input.w48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp32_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp32_input.w48(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp32_input.o48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp32_input.o48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp32_input.o48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp32_input.n48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp32_input.k48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp32_input.k48(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp32_input.k48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp32_input.n48(tmp0_desc, 18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp32_input.n48(tmp0_desc, 19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp24_local20 = tmp32_input.n48(tmp0_desc, 20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp25_local21 = tmp32_input.o48(tmp0_desc, 21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp26_local22 = tmp32_input.n48(tmp0_desc, 22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
      tmp27_local23 = tmp32_input.o48(tmp0_desc, 23);
      tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
      tmp28_local24 = tmp32_input.o48(tmp0_desc, 24);
      tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
      tmp29_local25 = tmp32_input.n48(tmp0_desc, 25);
      tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
      tmp30_local26 = tmp32_input.o48(tmp0_desc, 26);
      tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
      tmp31_local27 = tmp32_input.w48(tmp0_desc, 27, $serializer_getInstance_90(), tmp31_local27);
      tmp3_bitMask0 = tmp3_bitMask0 | 134217728;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp32_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp32_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp32_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp32_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp32_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp32_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp32_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp32_input.n48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp32_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp32_input.w48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp32_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp32_input.w48(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp32_input.o48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp32_input.o48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp32_input.o48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp32_input.n48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp32_input.k48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp32_input.k48(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp32_input.k48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp32_input.n48(tmp0_desc, 18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp32_input.n48(tmp0_desc, 19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp24_local20 = tmp32_input.n48(tmp0_desc, 20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp25_local21 = tmp32_input.o48(tmp0_desc, 21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp26_local22 = tmp32_input.n48(tmp0_desc, 22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          case 23:
            tmp27_local23 = tmp32_input.o48(tmp0_desc, 23);
            tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
            break;
          case 24:
            tmp28_local24 = tmp32_input.o48(tmp0_desc, 24);
            tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
            break;
          case 25:
            tmp29_local25 = tmp32_input.n48(tmp0_desc, 25);
            tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
            break;
          case 26:
            tmp30_local26 = tmp32_input.o48(tmp0_desc, 26);
            tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
            break;
          case 27:
            tmp31_local27 = tmp32_input.w48(tmp0_desc, 27, $serializer_getInstance_90(), tmp31_local27);
            tmp3_bitMask0 = tmp3_bitMask0 | 134217728;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp32_input.j48(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_69).tkj = function (encoder, value) {
    var tmp0_desc = this.skj_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.nav_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.nav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.oav_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.oav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.pav_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.pav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.qav_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.qav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.rav_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.rav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.sav_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.sav_1);
    }
    var tmp;
    if (tmp1_output.e4a(tmp0_desc, 6)) {
      tmp = true;
    } else {
      var tmp_0 = value.tav_1;
      tmp = !(tmp_0 === 0);
    }
    if (tmp) {
      tmp1_output.r49(tmp0_desc, 6, value.tav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.uav_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 7, StringSerializer_getInstance(), value.uav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.vav_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 8, StringSerializer_getInstance(), value.vav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.wav_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 9, StringSerializer_getInstance(), value.wav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.xav_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 10, StringSerializer_getInstance(), value.xav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !value.yav_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 11, value.yav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !value.zav_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 12, value.zav_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !value.aaw_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 13, value.aaw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 14) ? true : !(value.baw_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 14, value.baw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 15) ? true : !(value.caw_1 === false)) {
      tmp1_output.o49(tmp0_desc, 15, value.caw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 16) ? true : !(value.daw_1 === true)) {
      tmp1_output.o49(tmp0_desc, 16, value.daw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 17) ? true : !(value.eaw_1 === false)) {
      tmp1_output.o49(tmp0_desc, 17, value.eaw_1);
    }
    var tmp_1;
    if (tmp1_output.e4a(tmp0_desc, 18)) {
      tmp_1 = true;
    } else {
      var tmp_2 = value.faw_1;
      tmp_1 = !(tmp_2 === 0);
    }
    if (tmp_1) {
      tmp1_output.r49(tmp0_desc, 18, value.faw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 19) ? true : !(value.gaw_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 19, value.gaw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 20) ? true : !(value.haw_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 20, value.haw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 21) ? true : !value.iaw_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 21, value.iaw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 22) ? true : !(value.jaw_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 22, value.jaw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 23) ? true : !value.kaw_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 23, value.kaw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 24) ? true : !value.law_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 24, value.law_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 25) ? true : !(value.maw_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 25, value.maw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 26) ? true : !value.naw_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 26, value.naw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 27) ? true : !(value.vkk_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 27, $serializer_getInstance_90(), value.vkk_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_69).r44 = function (encoder, value) {
    return this.tkj(encoder, value instanceof ContentEntryWithLanguage ? value : THROW_CCE());
  };
  var $serializer_instance_69;
  function $serializer_getInstance_69() {
    if ($serializer_instance_69 == null)
      new $serializer_69();
    return $serializer_instance_69;
  }
  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_69().skj_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.vkk_1 = null;
    else
      $this.vkk_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.vkk_1 = null;
  }
  function Companion_73() {
    this.wkk_1 = 702;
  }
  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.ContentJob', this, 8);
    tmp0_serialDesc.t4f('cjUid', true);
    tmp0_serialDesc.t4f('toUri', true);
    tmp0_serialDesc.t4f('cjProgress', true);
    tmp0_serialDesc.t4f('cjTotal', true);
    tmp0_serialDesc.t4f('cjNotificationTitle', true);
    tmp0_serialDesc.t4f('cjIsMeteredAllowed', true);
    tmp0_serialDesc.t4f('params', true);
    tmp0_serialDesc.t4f('cjLct', true);
    this.xkk_1 = tmp0_serialDesc;
  }
  protoOf($serializer_70).q44 = function () {
    return this.xkk_1;
  };
  protoOf($serializer_70).k4g = 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_70).s44 = function (decoder) {
    var tmp0_desc = this.xkk_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.i48(tmp0_desc);
    if (tmp12_input.x48()) {
      tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.k48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.k48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.j48(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_70).ykk = function (encoder, value) {
    var tmp0_desc = this.xkk_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.zkk_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.zkk_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.akl_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.akl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.bkl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.bkl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.ckl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.ckl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.dkl_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.dkl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.ekl_1 === false)) {
      tmp1_output.o49(tmp0_desc, 5, value.ekl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.fkl_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 6, StringSerializer_getInstance(), value.fkl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.gkl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.gkl_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_70).r44 = function (encoder, value) {
    return this.ykk(encoder, value instanceof ContentJob ? value : THROW_CCE());
  };
  var $serializer_instance_70;
  function $serializer_getInstance_70() {
    if ($serializer_instance_70 == null)
      new $serializer_70();
    return $serializer_instance_70;
  }
  function ContentJob_init_$Init$(seen1, cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_70().xkk_1);
    }
    if (0 === (seen1 & 1))
      $this.zkk_1 = new Long(0, 0);
    else
      $this.zkk_1 = cjUid;
    if (0 === (seen1 & 2))
      $this.akl_1 = null;
    else
      $this.akl_1 = toUri;
    if (0 === (seen1 & 4))
      $this.bkl_1 = new Long(0, 0);
    else
      $this.bkl_1 = cjProgress;
    if (0 === (seen1 & 8))
      $this.ckl_1 = new Long(0, 0);
    else
      $this.ckl_1 = cjTotal;
    if (0 === (seen1 & 16))
      $this.dkl_1 = null;
    else
      $this.dkl_1 = cjNotificationTitle;
    if (0 === (seen1 & 32))
      $this.ekl_1 = false;
    else
      $this.ekl_1 = cjIsMeteredAllowed;
    if (0 === (seen1 & 64))
      $this.fkl_1 = null;
    else
      $this.fkl_1 = params;
    if (0 === (seen1 & 128))
      $this.gkl_1 = new Long(0, 0);
    else
      $this.gkl_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.zkk_1 = cjUid;
    this.akl_1 = toUri;
    this.bkl_1 = cjProgress;
    this.ckl_1 = cjTotal;
    this.dkl_1 = cjNotificationTitle;
    this.ekl_1 = cjIsMeteredAllowed;
    this.fkl_1 = params;
    this.gkl_1 = cjLct;
  }
  protoOf(ContentJob).toString = function () {
    return 'ContentJob(cjUid=' + this.zkk_1.toString() + ', toUri=' + this.akl_1 + ', cjProgress=' + this.bkl_1.toString() + ', cjTotal=' + this.ckl_1.toString() + ', cjNotificationTitle=' + this.dkl_1 + ', cjIsMeteredAllowed=' + this.ekl_1 + ', params=' + this.fkl_1 + ', cjLct=' + this.gkl_1.toString() + ')';
  };
  protoOf(ContentJob).hashCode = function () {
    var result = this.zkk_1.hashCode();
    result = imul(result, 31) + (this.akl_1 == null ? 0 : getStringHashCode(this.akl_1)) | 0;
    result = imul(result, 31) + this.bkl_1.hashCode() | 0;
    result = imul(result, 31) + this.ckl_1.hashCode() | 0;
    result = imul(result, 31) + (this.dkl_1 == null ? 0 : getStringHashCode(this.dkl_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.ekl_1) | 0;
    result = imul(result, 31) + (this.fkl_1 == null ? 0 : getStringHashCode(this.fkl_1)) | 0;
    result = imul(result, 31) + this.gkl_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.zkk_1.equals(tmp0_other_with_cast.zkk_1))
      return false;
    if (!(this.akl_1 == tmp0_other_with_cast.akl_1))
      return false;
    if (!this.bkl_1.equals(tmp0_other_with_cast.bkl_1))
      return false;
    if (!this.ckl_1.equals(tmp0_other_with_cast.ckl_1))
      return false;
    if (!(this.dkl_1 == tmp0_other_with_cast.dkl_1))
      return false;
    if (!(this.ekl_1 === tmp0_other_with_cast.ekl_1))
      return false;
    if (!(this.fkl_1 == tmp0_other_with_cast.fkl_1))
      return false;
    if (!this.gkl_1.equals(tmp0_other_with_cast.gkl_1))
      return false;
    return true;
  };
  function Companion_74() {
    this.hkl_1 = 523;
  }
  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.CourseAssignmentMark', this, 11);
    tmp0_serialDesc.t4f('camUid', true);
    tmp0_serialDesc.t4f('camAssignmentUid', true);
    tmp0_serialDesc.t4f('camSubmitterUid', true);
    tmp0_serialDesc.t4f('camMarkerSubmitterUid', true);
    tmp0_serialDesc.t4f('camMarkerPersonUid', true);
    tmp0_serialDesc.t4f('camMarkerComment', true);
    tmp0_serialDesc.t4f('camMark', true);
    tmp0_serialDesc.t4f('camMaxMark', true);
    tmp0_serialDesc.t4f('camPenalty', true);
    tmp0_serialDesc.t4f('camLct', true);
    tmp0_serialDesc.t4f('camClazzUid', true);
    this.ikl_1 = tmp0_serialDesc;
  }
  protoOf($serializer_71).q44 = function () {
    return this.ikl_1;
  };
  protoOf($serializer_71).k4g = 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_71).s44 = function (decoder) {
    var tmp0_desc = this.ikl_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.i48(tmp0_desc);
    if (tmp15_input.x48()) {
      tmp4_local0 = tmp15_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp15_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp15_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp15_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp15_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp15_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp15_input.p48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp15_input.p48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp15_input.p48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp15_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp15_input.o48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp15_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp15_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp15_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp15_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp15_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp15_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp15_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp15_input.p48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp15_input.p48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp15_input.p48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp15_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp15_input.o48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp15_input.j48(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_71).jkl = function (encoder, value) {
    var tmp0_desc = this.ikl_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.fbw_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.fbw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.gbw_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.gbw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.hbw_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.hbw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.ibw_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.ibw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.jbw_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.jbw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.kbw_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.kbw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !equals(value.lbw_1, 0.0)) {
      tmp1_output.t49(tmp0_desc, 6, value.lbw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !equals(value.mbw_1, 1.0)) {
      tmp1_output.t49(tmp0_desc, 7, value.mbw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !equals(value.nbw_1, 0.0)) {
      tmp1_output.t49(tmp0_desc, 8, value.nbw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !value.obw_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 9, value.obw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !value.pbw_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 10, value.pbw_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_71).r44 = function (encoder, value) {
    return this.jkl(encoder, value instanceof CourseAssignmentMark ? value : THROW_CCE());
  };
  var $serializer_instance_71;
  function $serializer_getInstance_71() {
    if ($serializer_instance_71 == null)
      new $serializer_71();
    return $serializer_instance_71;
  }
  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_71().ikl_1);
    }
    if (0 === (seen1 & 1))
      $this.fbw_1 = new Long(0, 0);
    else
      $this.fbw_1 = camUid;
    if (0 === (seen1 & 2))
      $this.gbw_1 = new Long(0, 0);
    else
      $this.gbw_1 = camAssignmentUid;
    if (0 === (seen1 & 4))
      $this.hbw_1 = new Long(0, 0);
    else
      $this.hbw_1 = camSubmitterUid;
    if (0 === (seen1 & 8))
      $this.ibw_1 = new Long(0, 0);
    else
      $this.ibw_1 = camMarkerSubmitterUid;
    if (0 === (seen1 & 16))
      $this.jbw_1 = new Long(0, 0);
    else
      $this.jbw_1 = camMarkerPersonUid;
    if (0 === (seen1 & 32))
      $this.kbw_1 = null;
    else
      $this.kbw_1 = camMarkerComment;
    if (0 === (seen1 & 64))
      $this.lbw_1 = 0.0;
    else
      $this.lbw_1 = camMark;
    if (0 === (seen1 & 128))
      $this.mbw_1 = 1.0;
    else
      $this.mbw_1 = camMaxMark;
    if (0 === (seen1 & 256))
      $this.nbw_1 = 0.0;
    else
      $this.nbw_1 = camPenalty;
    if (0 === (seen1 & 512))
      $this.obw_1 = new Long(0, 0);
    else
      $this.obw_1 = camLct;
    if (0 === (seen1 & 1024))
      $this.pbw_1 = new Long(0, 0);
    else
      $this.pbw_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.fbw_1 = new Long(0, 0);
    this.gbw_1 = new Long(0, 0);
    this.hbw_1 = new Long(0, 0);
    this.ibw_1 = new Long(0, 0);
    this.jbw_1 = new Long(0, 0);
    this.kbw_1 = null;
    this.lbw_1 = 0.0;
    this.mbw_1 = 1.0;
    this.nbw_1 = 0.0;
    this.obw_1 = new Long(0, 0);
    this.pbw_1 = new Long(0, 0);
  }
  function Companion_75() {
    Companion_instance_76 = this;
    this.kkl_1 = 522;
    this.lkl_1 = new Long(-1, -1);
    this.mkl_1 = 1;
    this.nkl_1 = 2;
    this.okl_1 = 0;
    this.pkl_1 = 1;
    this.qkl_1 = 2;
    this.rkl_1 = 10000;
  }
  protoOf(Companion_75).n4r = 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.CourseAssignmentSubmission', this, 8);
    tmp0_serialDesc.t4f('casUid', true);
    tmp0_serialDesc.t4f('casAssignmentUid', true);
    tmp0_serialDesc.t4f('casSubmitterUid', true);
    tmp0_serialDesc.t4f('casSubmitterPersonUid', true);
    tmp0_serialDesc.t4f('casText', true);
    tmp0_serialDesc.t4f('casType', true);
    tmp0_serialDesc.t4f('casTimestamp', true);
    tmp0_serialDesc.t4f('casClazzUid', true);
    this.skl_1 = tmp0_serialDesc;
  }
  protoOf($serializer_72).q44 = function () {
    return this.skl_1;
  };
  protoOf($serializer_72).k4g = 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_72).s44 = function (decoder) {
    var tmp0_desc = this.skl_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.i48(tmp0_desc);
    if (tmp12_input.x48()) {
      tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.n48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.n48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.j48(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_72).tkl = function (encoder, value) {
    var tmp0_desc = this.skl_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.kc2_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.kc2_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.lc2_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.lc2_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.mc2_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.mc2_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.nc2_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.nc2_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.oc2_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.oc2_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.pc2_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 5, value.pc2_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.qc2_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.qc2_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.rc2_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.rc2_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_72).r44 = function (encoder, value) {
    return this.tkl(encoder, value instanceof CourseAssignmentSubmission ? value : THROW_CCE());
  };
  var $serializer_instance_72;
  function $serializer_getInstance_72() {
    if ($serializer_instance_72 == null)
      new $serializer_72();
    return $serializer_instance_72;
  }
  function CourseAssignmentSubmission_init_$Init$(seen1, casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_72().skl_1);
    }
    if (0 === (seen1 & 1))
      $this.kc2_1 = new Long(0, 0);
    else
      $this.kc2_1 = casUid;
    if (0 === (seen1 & 2))
      $this.lc2_1 = new Long(0, 0);
    else
      $this.lc2_1 = casAssignmentUid;
    if (0 === (seen1 & 4))
      $this.mc2_1 = new Long(0, 0);
    else
      $this.mc2_1 = casSubmitterUid;
    if (0 === (seen1 & 8))
      $this.nc2_1 = new Long(0, 0);
    else
      $this.nc2_1 = casSubmitterPersonUid;
    if (0 === (seen1 & 16))
      $this.oc2_1 = null;
    else
      $this.oc2_1 = casText;
    if (0 === (seen1 & 32))
      $this.pc2_1 = 0;
    else
      $this.pc2_1 = casType;
    if (0 === (seen1 & 64))
      $this.qc2_1 = new Long(0, 0);
    else
      $this.qc2_1 = casTimestamp;
    if (0 === (seen1 & 128))
      $this.rc2_1 = new Long(0, 0);
    else
      $this.rc2_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_78();
    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.kc2_1 = casUid;
    this.lc2_1 = casAssignmentUid;
    this.mc2_1 = casSubmitterUid;
    this.nc2_1 = casSubmitterPersonUid;
    this.oc2_1 = casText;
    this.pc2_1 = casType;
    this.qc2_1 = casTimestamp;
    this.rc2_1 = casClazzUid;
  }
  protoOf(CourseAssignmentSubmission).toString = function () {
    return 'CourseAssignmentSubmission(casUid=' + this.kc2_1.toString() + ', casAssignmentUid=' + this.lc2_1.toString() + ', casSubmitterUid=' + this.mc2_1.toString() + ', casSubmitterPersonUid=' + this.nc2_1.toString() + ', casText=' + this.oc2_1 + ', casType=' + this.pc2_1 + ', casTimestamp=' + this.qc2_1.toString() + ', casClazzUid=' + this.rc2_1.toString() + ')';
  };
  protoOf(CourseAssignmentSubmission).hashCode = function () {
    var result = this.kc2_1.hashCode();
    result = imul(result, 31) + this.lc2_1.hashCode() | 0;
    result = imul(result, 31) + this.mc2_1.hashCode() | 0;
    result = imul(result, 31) + this.nc2_1.hashCode() | 0;
    result = imul(result, 31) + (this.oc2_1 == null ? 0 : getStringHashCode(this.oc2_1)) | 0;
    result = imul(result, 31) + this.pc2_1 | 0;
    result = imul(result, 31) + this.qc2_1.hashCode() | 0;
    result = imul(result, 31) + this.rc2_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.kc2_1.equals(tmp0_other_with_cast.kc2_1))
      return false;
    if (!this.lc2_1.equals(tmp0_other_with_cast.lc2_1))
      return false;
    if (!this.mc2_1.equals(tmp0_other_with_cast.mc2_1))
      return false;
    if (!this.nc2_1.equals(tmp0_other_with_cast.nc2_1))
      return false;
    if (!(this.oc2_1 == tmp0_other_with_cast.oc2_1))
      return false;
    if (!(this.pc2_1 === tmp0_other_with_cast.pc2_1))
      return false;
    if (!this.qc2_1.equals(tmp0_other_with_cast.qc2_1))
      return false;
    if (!this.rc2_1.equals(tmp0_other_with_cast.rc2_1))
      return false;
    return true;
  };
  function Companion_76() {
    this.ukl_1 = 90;
  }
  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.CourseAssignmentSubmissionFile', this, 11);
    tmp0_serialDesc.t4f('casaUid', true);
    tmp0_serialDesc.t4f('casaSubmissionUid', true);
    tmp0_serialDesc.t4f('casaSubmitterUid', true);
    tmp0_serialDesc.t4f('casaCaUid', true);
    tmp0_serialDesc.t4f('casaClazzUid', true);
    tmp0_serialDesc.t4f('casaMimeType', true);
    tmp0_serialDesc.t4f('casaFileName', true);
    tmp0_serialDesc.t4f('casaUri', true);
    tmp0_serialDesc.t4f('casaSize', true);
    tmp0_serialDesc.t4f('casaTimestamp', true);
    tmp0_serialDesc.t4f('casaDeleted', true);
    this.vkl_1 = tmp0_serialDesc;
  }
  protoOf($serializer_73).q44 = function () {
    return this.vkl_1;
  };
  protoOf($serializer_73).k4g = 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_73).s44 = function (decoder) {
    var tmp0_desc = this.vkl_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.i48(tmp0_desc);
    if (tmp15_input.x48()) {
      tmp4_local0 = tmp15_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp15_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp15_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp15_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp15_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp15_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp15_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp15_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp15_input.n48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp15_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp15_input.k48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp15_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp15_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp15_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp15_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp15_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp15_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp15_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp15_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp15_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp15_input.n48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp15_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp15_input.k48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp15_input.j48(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_73).wkl = function (encoder, value) {
    var tmp0_desc = this.vkl_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.yca_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.yca_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.zca_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.zca_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.acb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.acb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.bcb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.bcb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.ccb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.ccb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.dcb_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.dcb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.ecb_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 6, StringSerializer_getInstance(), value.ecb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.fcb_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 7, StringSerializer_getInstance(), value.fcb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.gcb_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 8, value.gcb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !value.hcb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 9, value.hcb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.icb_1 === false)) {
      tmp1_output.o49(tmp0_desc, 10, value.icb_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_73).r44 = function (encoder, value) {
    return this.wkl(encoder, value instanceof CourseAssignmentSubmissionFile ? value : THROW_CCE());
  };
  var $serializer_instance_73;
  function $serializer_getInstance_73() {
    if ($serializer_instance_73 == null)
      new $serializer_73();
    return $serializer_instance_73;
  }
  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_73().vkl_1);
    }
    if (0 === (seen1 & 1))
      $this.yca_1 = new Long(0, 0);
    else
      $this.yca_1 = casaUid;
    if (0 === (seen1 & 2))
      $this.zca_1 = new Long(0, 0);
    else
      $this.zca_1 = casaSubmissionUid;
    if (0 === (seen1 & 4))
      $this.acb_1 = new Long(0, 0);
    else
      $this.acb_1 = casaSubmitterUid;
    if (0 === (seen1 & 8))
      $this.bcb_1 = new Long(0, 0);
    else
      $this.bcb_1 = casaCaUid;
    if (0 === (seen1 & 16))
      $this.ccb_1 = new Long(0, 0);
    else
      $this.ccb_1 = casaClazzUid;
    if (0 === (seen1 & 32))
      $this.dcb_1 = null;
    else
      $this.dcb_1 = casaMimeType;
    if (0 === (seen1 & 64))
      $this.ecb_1 = null;
    else
      $this.ecb_1 = casaFileName;
    if (0 === (seen1 & 128))
      $this.fcb_1 = null;
    else
      $this.fcb_1 = casaUri;
    if (0 === (seen1 & 256))
      $this.gcb_1 = 0;
    else
      $this.gcb_1 = casaSize;
    if (0 === (seen1 & 512))
      $this.hcb_1 = new Long(0, 0);
    else
      $this.hcb_1 = casaTimestamp;
    if (0 === (seen1 & 1024))
      $this.icb_1 = false;
    else
      $this.icb_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.yca_1 = casaUid;
    this.zca_1 = casaSubmissionUid;
    this.acb_1 = casaSubmitterUid;
    this.bcb_1 = casaCaUid;
    this.ccb_1 = casaClazzUid;
    this.dcb_1 = casaMimeType;
    this.ecb_1 = casaFileName;
    this.fcb_1 = casaUri;
    this.gcb_1 = casaSize;
    this.hcb_1 = casaTimestamp;
    this.icb_1 = casaDeleted;
  }
  protoOf(CourseAssignmentSubmissionFile).toString = function () {
    return 'CourseAssignmentSubmissionFile(casaUid=' + this.yca_1.toString() + ', casaSubmissionUid=' + this.zca_1.toString() + ', casaSubmitterUid=' + this.acb_1.toString() + ', casaCaUid=' + this.bcb_1.toString() + ', casaClazzUid=' + this.ccb_1.toString() + ', casaMimeType=' + this.dcb_1 + ', casaFileName=' + this.ecb_1 + ', casaUri=' + this.fcb_1 + ', casaSize=' + this.gcb_1 + ', casaTimestamp=' + this.hcb_1.toString() + ', casaDeleted=' + this.icb_1 + ')';
  };
  protoOf(CourseAssignmentSubmissionFile).hashCode = function () {
    var result = this.yca_1.hashCode();
    result = imul(result, 31) + this.zca_1.hashCode() | 0;
    result = imul(result, 31) + this.acb_1.hashCode() | 0;
    result = imul(result, 31) + this.bcb_1.hashCode() | 0;
    result = imul(result, 31) + this.ccb_1.hashCode() | 0;
    result = imul(result, 31) + (this.dcb_1 == null ? 0 : getStringHashCode(this.dcb_1)) | 0;
    result = imul(result, 31) + (this.ecb_1 == null ? 0 : getStringHashCode(this.ecb_1)) | 0;
    result = imul(result, 31) + (this.fcb_1 == null ? 0 : getStringHashCode(this.fcb_1)) | 0;
    result = imul(result, 31) + this.gcb_1 | 0;
    result = imul(result, 31) + this.hcb_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.icb_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.yca_1.equals(tmp0_other_with_cast.yca_1))
      return false;
    if (!this.zca_1.equals(tmp0_other_with_cast.zca_1))
      return false;
    if (!this.acb_1.equals(tmp0_other_with_cast.acb_1))
      return false;
    if (!this.bcb_1.equals(tmp0_other_with_cast.bcb_1))
      return false;
    if (!this.ccb_1.equals(tmp0_other_with_cast.ccb_1))
      return false;
    if (!(this.dcb_1 == tmp0_other_with_cast.dcb_1))
      return false;
    if (!(this.ecb_1 == tmp0_other_with_cast.ecb_1))
      return false;
    if (!(this.fcb_1 == tmp0_other_with_cast.fcb_1))
      return false;
    if (!(this.gcb_1 === tmp0_other_with_cast.gcb_1))
      return false;
    if (!this.hcb_1.equals(tmp0_other_with_cast.hcb_1))
      return false;
    if (!(this.icb_1 === tmp0_other_with_cast.icb_1))
      return false;
    return true;
  };
  function Companion_77() {
    this.xkl_1 = 124;
    this.ykl_1 = 100;
    this.zkl_1 = 102;
    this.akm_1 = 103;
    this.bkm_1 = 104;
    this.ckm_1 = 105;
    this.dkm_1 = 300;
  }
  protoOf(Companion_77).n4r = 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.CourseBlock', this, 23);
    tmp0_serialDesc.t4f('cbUid', true);
    tmp0_serialDesc.t4f('cbType', true);
    tmp0_serialDesc.t4f('cbIndentLevel', true);
    tmp0_serialDesc.t4f('cbModuleParentBlockUid', true);
    tmp0_serialDesc.t4f('cbTitle', true);
    tmp0_serialDesc.t4f('cbDescription', true);
    tmp0_serialDesc.t4f('cbCompletionCriteria', true);
    tmp0_serialDesc.t4f('cbHideUntilDate', true);
    tmp0_serialDesc.t4f('cbDeadlineDate', true);
    tmp0_serialDesc.t4f('cbLateSubmissionPenalty', true);
    tmp0_serialDesc.t4f('cbGracePeriodDate', true);
    tmp0_serialDesc.t4f('cbMaxPoints', true);
    tmp0_serialDesc.t4f('cbMinPoints', true);
    tmp0_serialDesc.t4f('cbIndex', true);
    tmp0_serialDesc.t4f('cbClazzUid', true);
    tmp0_serialDesc.t4f('cbClazzSourcedId', true);
    tmp0_serialDesc.t4f('cbActive', true);
    tmp0_serialDesc.t4f('cbHidden', true);
    tmp0_serialDesc.t4f('cbEntityUid', true);
    tmp0_serialDesc.t4f('cbLct', true);
    tmp0_serialDesc.t4f('cbSourcedId', true);
    tmp0_serialDesc.t4f('cbMetadata', true);
    tmp0_serialDesc.t4f('cbCreatedByAppId', true);
    this.ekm_1 = tmp0_serialDesc;
  }
  protoOf($serializer_74).q44 = function () {
    return this.ekm_1;
  };
  protoOf($serializer_74).k4g = 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_74).s44 = function (decoder) {
    var tmp0_desc = this.ekm_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.i48(tmp0_desc);
    if (tmp27_input.x48()) {
      tmp4_local0 = tmp27_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp27_input.n48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp27_input.n48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp27_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp27_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp27_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp27_input.n48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp27_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp27_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp27_input.n48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp27_input.o48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp27_input.w48(tmp0_desc, 11, FloatSerializer_getInstance(), tmp15_local11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp27_input.w48(tmp0_desc, 12, FloatSerializer_getInstance(), tmp16_local12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp27_input.n48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp27_input.o48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp27_input.w48(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp27_input.k48(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp27_input.k48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp27_input.o48(tmp0_desc, 18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp27_input.o48(tmp0_desc, 19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp24_local20 = tmp27_input.w48(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp25_local21 = tmp27_input.w48(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp26_local22 = tmp27_input.w48(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp27_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp27_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp27_input.n48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp27_input.n48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp27_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp27_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp27_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp27_input.n48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp27_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp27_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp27_input.n48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp27_input.o48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp27_input.w48(tmp0_desc, 11, FloatSerializer_getInstance(), tmp15_local11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp27_input.w48(tmp0_desc, 12, FloatSerializer_getInstance(), tmp16_local12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp27_input.n48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp27_input.o48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp27_input.w48(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp27_input.k48(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp27_input.k48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp27_input.o48(tmp0_desc, 18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp27_input.o48(tmp0_desc, 19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp24_local20 = tmp27_input.w48(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp25_local21 = tmp27_input.w48(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp26_local22 = tmp27_input.w48(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp27_input.j48(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_74).fkm = function (encoder, value) {
    var tmp0_desc = this.ekm_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.t7x_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.t7x_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.u7x_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 1, value.u7x_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.v7x_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 2, value.v7x_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.w7x_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.w7x_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.x7x_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.x7x_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.y7x_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.y7x_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.z7x_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 6, value.z7x_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.a7y_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.a7y_1);
    }
    var tmp;
    if (tmp1_output.e4a(tmp0_desc, 8)) {
      tmp = true;
    } else {
      var tmp_0 = value.b7y_1;
      Companion_getInstance();
      tmp = !tmp_0.equals(new Long(-1, 2147483647));
    }
    if (tmp) {
      tmp1_output.s49(tmp0_desc, 8, value.b7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.c7y_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 9, value.c7y_1);
    }
    var tmp_1;
    if (tmp1_output.e4a(tmp0_desc, 10)) {
      tmp_1 = true;
    } else {
      var tmp_2 = value.d7y_1;
      Companion_getInstance();
      tmp_1 = !tmp_2.equals(new Long(-1, 2147483647));
    }
    if (tmp_1) {
      tmp1_output.s49(tmp0_desc, 10, value.d7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !(value.e7y_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 11, FloatSerializer_getInstance(), value.e7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !(value.f7y_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 12, FloatSerializer_getInstance(), value.f7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !(value.g7y_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 13, value.g7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 14) ? true : !value.h7y_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 14, value.h7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 15) ? true : !(value.i7y_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 15, StringSerializer_getInstance(), value.i7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 16) ? true : !(value.j7y_1 === true)) {
      tmp1_output.o49(tmp0_desc, 16, value.j7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 17) ? true : !(value.k7y_1 === false)) {
      tmp1_output.o49(tmp0_desc, 17, value.k7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 18) ? true : !value.l7y_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 18, value.l7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 19) ? true : !value.m7y_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 19, value.m7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 20) ? true : !(value.n7y_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 20, StringSerializer_getInstance(), value.n7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 21) ? true : !(value.o7y_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 21, StringSerializer_getInstance(), value.o7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 22) ? true : !(value.p7y_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 22, StringSerializer_getInstance(), value.p7y_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_74).r44 = function (encoder, value) {
    return this.fkm(encoder, value instanceof CourseBlock ? value : THROW_CCE());
  };
  var $serializer_instance_74;
  function $serializer_getInstance_74() {
    if ($serializer_instance_74 == null)
      new $serializer_74();
    return $serializer_instance_74;
  }
  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_74().ekm_1);
    }
    if (0 === (seen1 & 1))
      $this.t7x_1 = new Long(0, 0);
    else
      $this.t7x_1 = cbUid;
    if (0 === (seen1 & 2))
      $this.u7x_1 = 0;
    else
      $this.u7x_1 = cbType;
    if (0 === (seen1 & 4))
      $this.v7x_1 = 0;
    else
      $this.v7x_1 = cbIndentLevel;
    if (0 === (seen1 & 8))
      $this.w7x_1 = new Long(0, 0);
    else
      $this.w7x_1 = cbModuleParentBlockUid;
    if (0 === (seen1 & 16))
      $this.x7x_1 = null;
    else
      $this.x7x_1 = cbTitle;
    if (0 === (seen1 & 32))
      $this.y7x_1 = null;
    else
      $this.y7x_1 = cbDescription;
    if (0 === (seen1 & 64))
      $this.z7x_1 = 0;
    else
      $this.z7x_1 = cbCompletionCriteria;
    if (0 === (seen1 & 128))
      $this.a7y_1 = new Long(0, 0);
    else
      $this.a7y_1 = cbHideUntilDate;
    if (0 === (seen1 & 256)) {
      var tmp = $this;
      Companion_getInstance();
      tmp.b7y_1 = new Long(-1, 2147483647);
    } else
      $this.b7y_1 = cbDeadlineDate;
    if (0 === (seen1 & 512))
      $this.c7y_1 = 0;
    else
      $this.c7y_1 = cbLateSubmissionPenalty;
    if (0 === (seen1 & 1024)) {
      var tmp_0 = $this;
      Companion_getInstance();
      tmp_0.d7y_1 = new Long(-1, 2147483647);
    } else
      $this.d7y_1 = cbGracePeriodDate;
    if (0 === (seen1 & 2048))
      $this.e7y_1 = null;
    else
      $this.e7y_1 = cbMaxPoints;
    if (0 === (seen1 & 4096))
      $this.f7y_1 = null;
    else
      $this.f7y_1 = cbMinPoints;
    if (0 === (seen1 & 8192))
      $this.g7y_1 = 0;
    else
      $this.g7y_1 = cbIndex;
    if (0 === (seen1 & 16384))
      $this.h7y_1 = new Long(0, 0);
    else
      $this.h7y_1 = cbClazzUid;
    if (0 === (seen1 & 32768))
      $this.i7y_1 = null;
    else
      $this.i7y_1 = cbClazzSourcedId;
    if (0 === (seen1 & 65536))
      $this.j7y_1 = true;
    else
      $this.j7y_1 = cbActive;
    if (0 === (seen1 & 131072))
      $this.k7y_1 = false;
    else
      $this.k7y_1 = cbHidden;
    if (0 === (seen1 & 262144))
      $this.l7y_1 = new Long(0, 0);
    else
      $this.l7y_1 = cbEntityUid;
    if (0 === (seen1 & 524288))
      $this.m7y_1 = new Long(0, 0);
    else
      $this.m7y_1 = cbLct;
    if (0 === (seen1 & 1048576))
      $this.n7y_1 = null;
    else
      $this.n7y_1 = cbSourcedId;
    if (0 === (seen1 & 2097152))
      $this.o7y_1 = null;
    else
      $this.o7y_1 = cbMetadata;
    if (0 === (seen1 & 4194304))
      $this.p7y_1 = null;
    else
      $this.p7y_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.t7x_1 = cbUid;
    this.u7x_1 = cbType;
    this.v7x_1 = cbIndentLevel;
    this.w7x_1 = cbModuleParentBlockUid;
    this.x7x_1 = cbTitle;
    this.y7x_1 = cbDescription;
    this.z7x_1 = cbCompletionCriteria;
    this.a7y_1 = cbHideUntilDate;
    this.b7y_1 = cbDeadlineDate;
    this.c7y_1 = cbLateSubmissionPenalty;
    this.d7y_1 = cbGracePeriodDate;
    this.e7y_1 = cbMaxPoints;
    this.f7y_1 = cbMinPoints;
    this.g7y_1 = cbIndex;
    this.h7y_1 = cbClazzUid;
    this.i7y_1 = cbClazzSourcedId;
    this.j7y_1 = cbActive;
    this.k7y_1 = cbHidden;
    this.l7y_1 = cbEntityUid;
    this.m7y_1 = cbLct;
    this.n7y_1 = cbSourcedId;
    this.o7y_1 = cbMetadata;
    this.p7y_1 = cbCreatedByAppId;
  }
  protoOf(CourseBlock).gkm = 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).hkm = 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.t7x_1 : cbUid;
    cbType = cbType === VOID ? this.u7x_1 : cbType;
    cbIndentLevel = cbIndentLevel === VOID ? this.v7x_1 : cbIndentLevel;
    cbModuleParentBlockUid = cbModuleParentBlockUid === VOID ? this.w7x_1 : cbModuleParentBlockUid;
    cbTitle = cbTitle === VOID ? this.x7x_1 : cbTitle;
    cbDescription = cbDescription === VOID ? this.y7x_1 : cbDescription;
    cbCompletionCriteria = cbCompletionCriteria === VOID ? this.z7x_1 : cbCompletionCriteria;
    cbHideUntilDate = cbHideUntilDate === VOID ? this.a7y_1 : cbHideUntilDate;
    cbDeadlineDate = cbDeadlineDate === VOID ? this.b7y_1 : cbDeadlineDate;
    cbLateSubmissionPenalty = cbLateSubmissionPenalty === VOID ? this.c7y_1 : cbLateSubmissionPenalty;
    cbGracePeriodDate = cbGracePeriodDate === VOID ? this.d7y_1 : cbGracePeriodDate;
    cbMaxPoints = cbMaxPoints === VOID ? this.e7y_1 : cbMaxPoints;
    cbMinPoints = cbMinPoints === VOID ? this.f7y_1 : cbMinPoints;
    cbIndex = cbIndex === VOID ? this.g7y_1 : cbIndex;
    cbClazzUid = cbClazzUid === VOID ? this.h7y_1 : cbClazzUid;
    cbClazzSourcedId = cbClazzSourcedId === VOID ? this.i7y_1 : cbClazzSourcedId;
    cbActive = cbActive === VOID ? this.j7y_1 : cbActive;
    cbHidden = cbHidden === VOID ? this.k7y_1 : cbHidden;
    cbEntityUid = cbEntityUid === VOID ? this.l7y_1 : cbEntityUid;
    cbLct = cbLct === VOID ? this.m7y_1 : cbLct;
    cbSourcedId = cbSourcedId === VOID ? this.n7y_1 : cbSourcedId;
    cbMetadata = cbMetadata === VOID ? this.o7y_1 : cbMetadata;
    cbCreatedByAppId = cbCreatedByAppId === VOID ? this.p7y_1 : cbCreatedByAppId;
    return $super === VOID ? this.gkm(cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) : $super.gkm.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.t7x_1.toString() + ', cbType=' + this.u7x_1 + ', cbIndentLevel=' + this.v7x_1 + ', cbModuleParentBlockUid=' + this.w7x_1.toString() + ', cbTitle=' + this.x7x_1 + ', cbDescription=' + this.y7x_1 + ', cbCompletionCriteria=' + this.z7x_1 + ', cbHideUntilDate=' + this.a7y_1.toString() + ', cbDeadlineDate=' + this.b7y_1.toString() + ', cbLateSubmissionPenalty=' + this.c7y_1 + ', cbGracePeriodDate=' + this.d7y_1.toString() + ', cbMaxPoints=' + this.e7y_1 + ', cbMinPoints=' + this.f7y_1 + ', cbIndex=' + this.g7y_1 + ', cbClazzUid=' + this.h7y_1.toString() + ', cbClazzSourcedId=' + this.i7y_1 + ', cbActive=' + this.j7y_1 + ', cbHidden=' + this.k7y_1 + ', cbEntityUid=' + this.l7y_1.toString() + ', cbLct=' + this.m7y_1.toString() + ', cbSourcedId=' + this.n7y_1 + ', cbMetadata=' + this.o7y_1 + ', cbCreatedByAppId=' + this.p7y_1 + ')';
  };
  protoOf(CourseBlock).hashCode = function () {
    var result = this.t7x_1.hashCode();
    result = imul(result, 31) + this.u7x_1 | 0;
    result = imul(result, 31) + this.v7x_1 | 0;
    result = imul(result, 31) + this.w7x_1.hashCode() | 0;
    result = imul(result, 31) + (this.x7x_1 == null ? 0 : getStringHashCode(this.x7x_1)) | 0;
    result = imul(result, 31) + (this.y7x_1 == null ? 0 : getStringHashCode(this.y7x_1)) | 0;
    result = imul(result, 31) + this.z7x_1 | 0;
    result = imul(result, 31) + this.a7y_1.hashCode() | 0;
    result = imul(result, 31) + this.b7y_1.hashCode() | 0;
    result = imul(result, 31) + this.c7y_1 | 0;
    result = imul(result, 31) + this.d7y_1.hashCode() | 0;
    result = imul(result, 31) + (this.e7y_1 == null ? 0 : getNumberHashCode(this.e7y_1)) | 0;
    result = imul(result, 31) + (this.f7y_1 == null ? 0 : getNumberHashCode(this.f7y_1)) | 0;
    result = imul(result, 31) + this.g7y_1 | 0;
    result = imul(result, 31) + this.h7y_1.hashCode() | 0;
    result = imul(result, 31) + (this.i7y_1 == null ? 0 : getStringHashCode(this.i7y_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.j7y_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.k7y_1) | 0;
    result = imul(result, 31) + this.l7y_1.hashCode() | 0;
    result = imul(result, 31) + this.m7y_1.hashCode() | 0;
    result = imul(result, 31) + (this.n7y_1 == null ? 0 : getStringHashCode(this.n7y_1)) | 0;
    result = imul(result, 31) + (this.o7y_1 == null ? 0 : getStringHashCode(this.o7y_1)) | 0;
    result = imul(result, 31) + (this.p7y_1 == null ? 0 : getStringHashCode(this.p7y_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.t7x_1.equals(tmp0_other_with_cast.t7x_1))
      return false;
    if (!(this.u7x_1 === tmp0_other_with_cast.u7x_1))
      return false;
    if (!(this.v7x_1 === tmp0_other_with_cast.v7x_1))
      return false;
    if (!this.w7x_1.equals(tmp0_other_with_cast.w7x_1))
      return false;
    if (!(this.x7x_1 == tmp0_other_with_cast.x7x_1))
      return false;
    if (!(this.y7x_1 == tmp0_other_with_cast.y7x_1))
      return false;
    if (!(this.z7x_1 === 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.equals(tmp0_other_with_cast.b7y_1))
      return false;
    if (!(this.c7y_1 === tmp0_other_with_cast.c7y_1))
      return false;
    if (!this.d7y_1.equals(tmp0_other_with_cast.d7y_1))
      return false;
    if (!equals(this.e7y_1, tmp0_other_with_cast.e7y_1))
      return false;
    if (!equals(this.f7y_1, tmp0_other_with_cast.f7y_1))
      return false;
    if (!(this.g7y_1 === tmp0_other_with_cast.g7y_1))
      return false;
    if (!this.h7y_1.equals(tmp0_other_with_cast.h7y_1))
      return false;
    if (!(this.i7y_1 == tmp0_other_with_cast.i7y_1))
      return false;
    if (!(this.j7y_1 === tmp0_other_with_cast.j7y_1))
      return false;
    if (!(this.k7y_1 === tmp0_other_with_cast.k7y_1))
      return false;
    if (!this.l7y_1.equals(tmp0_other_with_cast.l7y_1))
      return false;
    if (!this.m7y_1.equals(tmp0_other_with_cast.m7y_1))
      return false;
    if (!(this.n7y_1 == tmp0_other_with_cast.n7y_1))
      return false;
    if (!(this.o7y_1 == tmp0_other_with_cast.o7y_1))
      return false;
    if (!(this.p7y_1 == tmp0_other_with_cast.p7y_1))
      return false;
    return true;
  };
  function Companion_78() {
    this.ikm_1 = 6677;
  }
  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.CourseBlockPicture', this, 4);
    tmp0_serialDesc.t4f('cbpUid', true);
    tmp0_serialDesc.t4f('cbpLct', true);
    tmp0_serialDesc.t4f('cbpPictureUri', true);
    tmp0_serialDesc.t4f('cbpThumbnailUri', true);
    this.jkm_1 = tmp0_serialDesc;
  }
  protoOf($serializer_75).q44 = function () {
    return this.jkm_1;
  };
  protoOf($serializer_75).k4g = 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_75).s44 = function (decoder) {
    var tmp0_desc = this.jkm_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.i48(tmp0_desc);
    if (tmp8_input.x48()) {
      tmp4_local0 = tmp8_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.j48(tmp0_desc);
    return CourseBlockPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_75).kkm = function (encoder, value) {
    var tmp0_desc = this.jkm_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.w7y_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.w7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.x7y_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.x7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.y7y_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.y7y_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.z7y_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.z7y_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_75).r44 = function (encoder, value) {
    return this.kkm(encoder, value instanceof CourseBlockPicture ? value : THROW_CCE());
  };
  var $serializer_instance_75;
  function $serializer_getInstance_75() {
    if ($serializer_instance_75 == null)
      new $serializer_75();
    return $serializer_instance_75;
  }
  function CourseBlockPicture_init_$Init$(seen1, cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_75().jkm_1);
    }
    if (0 === (seen1 & 1))
      $this.w7y_1 = new Long(0, 0);
    else
      $this.w7y_1 = cbpUid;
    if (0 === (seen1 & 2))
      $this.x7y_1 = new Long(0, 0);
    else
      $this.x7y_1 = cbpLct;
    if (0 === (seen1 & 4))
      $this.y7y_1 = null;
    else
      $this.y7y_1 = cbpPictureUri;
    if (0 === (seen1 & 8))
      $this.z7y_1 = null;
    else
      $this.z7y_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.w7y_1 = cbpUid;
    this.x7y_1 = cbpLct;
    this.y7y_1 = cbpPictureUri;
    this.z7y_1 = cbpThumbnailUri;
  }
  protoOf(CourseBlockPicture).dki = function (cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) {
    return new CourseBlockPicture(cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri);
  };
  protoOf(CourseBlockPicture).lkm = function (cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri, $super) {
    cbpUid = cbpUid === VOID ? this.w7y_1 : cbpUid;
    cbpLct = cbpLct === VOID ? this.x7y_1 : cbpLct;
    cbpPictureUri = cbpPictureUri === VOID ? this.y7y_1 : cbpPictureUri;
    cbpThumbnailUri = cbpThumbnailUri === VOID ? this.z7y_1 : cbpThumbnailUri;
    return $super === VOID ? this.dki(cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) : $super.dki.call(this, cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri);
  };
  protoOf(CourseBlockPicture).toString = function () {
    return 'CourseBlockPicture(cbpUid=' + this.w7y_1.toString() + ', cbpLct=' + this.x7y_1.toString() + ', cbpPictureUri=' + this.y7y_1 + ', cbpThumbnailUri=' + this.z7y_1 + ')';
  };
  protoOf(CourseBlockPicture).hashCode = function () {
    var result = this.w7y_1.hashCode();
    result = imul(result, 31) + this.x7y_1.hashCode() | 0;
    result = imul(result, 31) + (this.y7y_1 == null ? 0 : getStringHashCode(this.y7y_1)) | 0;
    result = imul(result, 31) + (this.z7y_1 == null ? 0 : getStringHashCode(this.z7y_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.w7y_1.equals(tmp0_other_with_cast.w7y_1))
      return false;
    if (!this.x7y_1.equals(tmp0_other_with_cast.x7y_1))
      return false;
    if (!(this.y7y_1 == tmp0_other_with_cast.y7y_1))
      return false;
    if (!(this.z7y_1 == tmp0_other_with_cast.z7y_1))
      return false;
    return true;
  };
  function Companion_79() {
    this.mkm_1 = 243;
  }
  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.CourseGroupMember', this, 5);
    tmp0_serialDesc.t4f('cgmUid', true);
    tmp0_serialDesc.t4f('cgmSetUid', true);
    tmp0_serialDesc.t4f('cgmGroupNumber', true);
    tmp0_serialDesc.t4f('cgmPersonUid', true);
    tmp0_serialDesc.t4f('cgmLct', true);
    this.nkm_1 = tmp0_serialDesc;
  }
  protoOf($serializer_76).q44 = function () {
    return this.nkm_1;
  };
  protoOf($serializer_76).k4g = 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_76).s44 = function (decoder) {
    var tmp0_desc = this.nkm_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.i48(tmp0_desc);
    if (tmp9_input.x48()) {
      tmp4_local0 = tmp9_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp9_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp9_input.n48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp9_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp9_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp9_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp9_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp9_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp9_input.n48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp9_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp9_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp9_input.j48(tmp0_desc);
    return CourseGroupMember_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
  };
  protoOf($serializer_76).okm = function (encoder, value) {
    var tmp0_desc = this.nkm_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.pd4_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.pd4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.qd4_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.qd4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.rd4_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 2, value.rd4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.sd4_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.sd4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.td4_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.td4_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_76).r44 = function (encoder, value) {
    return this.okm(encoder, value instanceof CourseGroupMember ? value : THROW_CCE());
  };
  var $serializer_instance_76;
  function $serializer_getInstance_76() {
    if ($serializer_instance_76 == null)
      new $serializer_76();
    return $serializer_instance_76;
  }
  function CourseGroupMember_init_$Init$(seen1, cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_76().nkm_1);
    }
    if (0 === (seen1 & 1))
      $this.pd4_1 = new Long(0, 0);
    else
      $this.pd4_1 = cgmUid;
    if (0 === (seen1 & 2))
      $this.qd4_1 = new Long(0, 0);
    else
      $this.qd4_1 = cgmSetUid;
    if (0 === (seen1 & 4))
      $this.rd4_1 = 0;
    else
      $this.rd4_1 = cgmGroupNumber;
    if (0 === (seen1 & 8))
      $this.sd4_1 = new Long(0, 0);
    else
      $this.sd4_1 = cgmPersonUid;
    if (0 === (seen1 & 16))
      $this.td4_1 = new Long(0, 0);
    else
      $this.td4_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.pd4_1 = cgmUid;
    this.qd4_1 = cgmSetUid;
    this.rd4_1 = cgmGroupNumber;
    this.sd4_1 = cgmPersonUid;
    this.td4_1 = cgmLct;
  }
  protoOf(CourseGroupMember).toString = function () {
    return 'CourseGroupMember(cgmUid=' + this.pd4_1.toString() + ', cgmSetUid=' + this.qd4_1.toString() + ', cgmGroupNumber=' + this.rd4_1 + ', cgmPersonUid=' + this.sd4_1.toString() + ', cgmLct=' + this.td4_1.toString() + ')';
  };
  protoOf(CourseGroupMember).hashCode = function () {
    var result = this.pd4_1.hashCode();
    result = imul(result, 31) + this.qd4_1.hashCode() | 0;
    result = imul(result, 31) + this.rd4_1 | 0;
    result = imul(result, 31) + this.sd4_1.hashCode() | 0;
    result = imul(result, 31) + this.td4_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.pd4_1.equals(tmp0_other_with_cast.pd4_1))
      return false;
    if (!this.qd4_1.equals(tmp0_other_with_cast.qd4_1))
      return false;
    if (!(this.rd4_1 === tmp0_other_with_cast.rd4_1))
      return false;
    if (!this.sd4_1.equals(tmp0_other_with_cast.sd4_1))
      return false;
    if (!this.td4_1.equals(tmp0_other_with_cast.td4_1))
      return false;
    return true;
  };
  function Companion_80() {
  }
  protoOf(Companion_80).n4r = function () {
    return $serializer_getInstance_77();
  };
  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.CourseGroupMemberAndName', this, 5);
    tmp0_serialDesc.t4f('cgm', true);
    tmp0_serialDesc.t4f('name', true);
    tmp0_serialDesc.t4f('personUid', true);
    tmp0_serialDesc.t4f('enrolmentIsActive', true);
    tmp0_serialDesc.t4f('pictureUri', true);
    this.pkm_1 = tmp0_serialDesc;
  }
  protoOf($serializer_77).q44 = function () {
    return this.pkm_1;
  };
  protoOf($serializer_77).k4g = 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()), LongSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
  };
  protoOf($serializer_77).s44 = function (decoder) {
    var tmp0_desc = this.pkm_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.i48(tmp0_desc);
    if (tmp9_input.x48()) {
      tmp4_local0 = tmp9_input.w48(tmp0_desc, 0, $serializer_getInstance_76(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp9_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp9_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp9_input.k48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp9_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp9_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp9_input.w48(tmp0_desc, 0, $serializer_getInstance_76(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp9_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp9_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp9_input.k48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp9_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp9_input.j48(tmp0_desc);
    return CourseGroupMemberAndName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
  };
  protoOf($serializer_77).qkm = function (encoder, value) {
    var tmp0_desc = this.pkm_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.hd5_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_76(), value.hd5_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.id5_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.id5_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.jd5_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.jd5_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.kd5_1 === false)) {
      tmp1_output.o49(tmp0_desc, 3, value.kd5_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.ld5_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.ld5_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_77).r44 = function (encoder, value) {
    return this.qkm(encoder, value instanceof CourseGroupMemberAndName ? value : THROW_CCE());
  };
  var $serializer_instance_77;
  function $serializer_getInstance_77() {
    if ($serializer_instance_77 == null)
      new $serializer_77();
    return $serializer_instance_77;
  }
  function CourseGroupMemberAndName_init_$Init$(seen1, cgm, name, personUid, enrolmentIsActive, pictureUri, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_77().pkm_1);
    }
    if (0 === (seen1 & 1))
      $this.hd5_1 = null;
    else
      $this.hd5_1 = cgm;
    if (0 === (seen1 & 2))
      $this.id5_1 = null;
    else
      $this.id5_1 = name;
    if (0 === (seen1 & 4))
      $this.jd5_1 = new Long(0, 0);
    else
      $this.jd5_1 = personUid;
    if (0 === (seen1 & 8))
      $this.kd5_1 = false;
    else
      $this.kd5_1 = enrolmentIsActive;
    if (0 === (seen1 & 16))
      $this.ld5_1 = null;
    else
      $this.ld5_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.hd5_1 = cgm;
    this.id5_1 = name;
    this.jd5_1 = personUid;
    this.kd5_1 = enrolmentIsActive;
    this.ld5_1 = pictureUri;
  }
  protoOf(CourseGroupMemberAndName).rkm = function (cgm, name, personUid, enrolmentIsActive, pictureUri) {
    return new CourseGroupMemberAndName(cgm, name, personUid, enrolmentIsActive, pictureUri);
  };
  protoOf(CourseGroupMemberAndName).skm = function (cgm, name, personUid, enrolmentIsActive, pictureUri, $super) {
    cgm = cgm === VOID ? this.hd5_1 : cgm;
    name = name === VOID ? this.id5_1 : name;
    personUid = personUid === VOID ? this.jd5_1 : personUid;
    enrolmentIsActive = enrolmentIsActive === VOID ? this.kd5_1 : enrolmentIsActive;
    pictureUri = pictureUri === VOID ? this.ld5_1 : pictureUri;
    return $super === VOID ? this.rkm(cgm, name, personUid, enrolmentIsActive, pictureUri) : $super.rkm.call(this, cgm, name, personUid, enrolmentIsActive, pictureUri);
  };
  protoOf(CourseGroupMemberAndName).toString = function () {
    return 'CourseGroupMemberAndName(cgm=' + this.hd5_1 + ', name=' + this.id5_1 + ', personUid=' + this.jd5_1.toString() + ', enrolmentIsActive=' + this.kd5_1 + ', pictureUri=' + this.ld5_1 + ')';
  };
  protoOf(CourseGroupMemberAndName).hashCode = function () {
    var result = this.hd5_1 == null ? 0 : this.hd5_1.hashCode();
    result = imul(result, 31) + (this.id5_1 == null ? 0 : getStringHashCode(this.id5_1)) | 0;
    result = imul(result, 31) + this.jd5_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.kd5_1) | 0;
    result = imul(result, 31) + (this.ld5_1 == null ? 0 : getStringHashCode(this.ld5_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.hd5_1, tmp0_other_with_cast.hd5_1))
      return false;
    if (!(this.id5_1 == tmp0_other_with_cast.id5_1))
      return false;
    if (!this.jd5_1.equals(tmp0_other_with_cast.jd5_1))
      return false;
    if (!(this.kd5_1 === tmp0_other_with_cast.kd5_1))
      return false;
    if (!(this.ld5_1 == tmp0_other_with_cast.ld5_1))
      return false;
    return true;
  };
  function Companion_81() {
    this.tkm_1 = 242;
  }
  protoOf(Companion_81).n4r = function () {
    return $serializer_getInstance_78();
  };
  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.CourseGroupSet', this, 6);
    tmp0_serialDesc.t4f('cgsUid', true);
    tmp0_serialDesc.t4f('cgsName', true);
    tmp0_serialDesc.t4f('cgsTotalGroups', true);
    tmp0_serialDesc.t4f('cgsActive', true);
    tmp0_serialDesc.t4f('cgsClazzUid', true);
    tmp0_serialDesc.t4f('cgsLct', true);
    this.ukm_1 = tmp0_serialDesc;
  }
  protoOf($serializer_78).q44 = function () {
    return this.ukm_1;
  };
  protoOf($serializer_78).k4g = 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_78).s44 = function (decoder) {
    var tmp0_desc = this.ukm_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.i48(tmp0_desc);
    if (tmp10_input.x48()) {
      tmp4_local0 = tmp10_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.n48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.k48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.n48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.k48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.j48(tmp0_desc);
    return CourseGroupSet_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_78).vkm = function (encoder, value) {
    var tmp0_desc = this.ukm_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.a7z_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.a7z_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.b7z_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.b7z_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.c7z_1 === 4)) {
      tmp1_output.r49(tmp0_desc, 2, value.c7z_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.d7z_1 === true)) {
      tmp1_output.o49(tmp0_desc, 3, value.d7z_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.e7z_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.e7z_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.f7z_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.f7z_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_78).r44 = function (encoder, value) {
    return this.vkm(encoder, value instanceof CourseGroupSet ? value : THROW_CCE());
  };
  var $serializer_instance_78;
  function $serializer_getInstance_78() {
    if ($serializer_instance_78 == null)
      new $serializer_78();
    return $serializer_instance_78;
  }
  function CourseGroupSet_init_$Init$(seen1, cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_78().ukm_1);
    }
    if (0 === (seen1 & 1))
      $this.a7z_1 = new Long(0, 0);
    else
      $this.a7z_1 = cgsUid;
    if (0 === (seen1 & 2))
      $this.b7z_1 = null;
    else
      $this.b7z_1 = cgsName;
    if (0 === (seen1 & 4))
      $this.c7z_1 = 4;
    else
      $this.c7z_1 = cgsTotalGroups;
    if (0 === (seen1 & 8))
      $this.d7z_1 = true;
    else
      $this.d7z_1 = cgsActive;
    if (0 === (seen1 & 16))
      $this.e7z_1 = new Long(0, 0);
    else
      $this.e7z_1 = cgsClazzUid;
    if (0 === (seen1 & 32))
      $this.f7z_1 = new Long(0, 0);
    else
      $this.f7z_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.a7z_1 = new Long(0, 0);
    this.b7z_1 = null;
    this.c7z_1 = 4;
    this.d7z_1 = true;
    this.e7z_1 = new Long(0, 0);
    this.f7z_1 = new Long(0, 0);
  }
  function Companion_82() {
    Companion_instance_83 = this;
    this.wkm_1 = 10012;
    this.xkm_1 = new Long(8703, 0);
    this.ykm_1 = new Long(8193, 0);
  }
  protoOf(Companion_82).n4r = function () {
    return $serializer_getInstance_79();
  };
  var Companion_instance_83;
  function Companion_getInstance_85() {
    if (Companion_instance_83 == null)
      new Companion_82();
    return Companion_instance_83;
  }
  function $serializer_79() {
    $serializer_instance_79 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CoursePermission', this, 8);
    tmp0_serialDesc.t4f('cpUid', true);
    tmp0_serialDesc.t4f('cpLastModified', true);
    tmp0_serialDesc.t4f('cpClazzUid', true);
    tmp0_serialDesc.t4f('cpToEnrolmentRole', true);
    tmp0_serialDesc.t4f('cpToPersonUid', true);
    tmp0_serialDesc.t4f('cpToGroupUid', true);
    tmp0_serialDesc.t4f('cpPermissionsFlag', true);
    tmp0_serialDesc.t4f('cpIsDeleted', true);
    this.zkm_1 = tmp0_serialDesc;
  }
  protoOf($serializer_79).q44 = function () {
    return this.zkm_1;
  };
  protoOf($serializer_79).k4g = 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_79).s44 = function (decoder) {
    var tmp0_desc = this.zkm_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.i48(tmp0_desc);
    if (tmp12_input.x48()) {
      tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.n48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.k48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.n48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.k48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.j48(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_79).akn = function (encoder, value) {
    var tmp0_desc = this.zkm_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.zdk_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.zdk_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.adl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.adl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.bdl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.bdl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.cdl_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 3, value.cdl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.ddl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.ddl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.edl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.edl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.fdl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.fdl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.gdl_1 === false)) {
      tmp1_output.o49(tmp0_desc, 7, value.gdl_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_79).r44 = function (encoder, value) {
    return this.akn(encoder, value instanceof CoursePermission ? value : THROW_CCE());
  };
  var $serializer_instance_79;
  function $serializer_getInstance_79() {
    if ($serializer_instance_79 == null)
      new $serializer_79();
    return $serializer_instance_79;
  }
  function CoursePermission_init_$Init$(seen1, cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_79().zkm_1);
    }
    if (0 === (seen1 & 1))
      $this.zdk_1 = new Long(0, 0);
    else
      $this.zdk_1 = cpUid;
    if (0 === (seen1 & 2))
      $this.adl_1 = new Long(0, 0);
    else
      $this.adl_1 = cpLastModified;
    if (0 === (seen1 & 4))
      $this.bdl_1 = new Long(0, 0);
    else
      $this.bdl_1 = cpClazzUid;
    if (0 === (seen1 & 8))
      $this.cdl_1 = 0;
    else
      $this.cdl_1 = cpToEnrolmentRole;
    if (0 === (seen1 & 16))
      $this.ddl_1 = new Long(0, 0);
    else
      $this.ddl_1 = cpToPersonUid;
    if (0 === (seen1 & 32))
      $this.edl_1 = new Long(0, 0);
    else
      $this.edl_1 = cpToGroupUid;
    if (0 === (seen1 & 64))
      $this.fdl_1 = new Long(0, 0);
    else
      $this.fdl_1 = cpPermissionsFlag;
    if (0 === (seen1 & 128))
      $this.gdl_1 = false;
    else
      $this.gdl_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_85();
    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.zdk_1 = cpUid;
    this.adl_1 = cpLastModified;
    this.bdl_1 = cpClazzUid;
    this.cdl_1 = cpToEnrolmentRole;
    this.ddl_1 = cpToPersonUid;
    this.edl_1 = cpToGroupUid;
    this.fdl_1 = cpPermissionsFlag;
    this.gdl_1 = cpIsDeleted;
  }
  protoOf(CoursePermission).bkn = function (cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) {
    return new CoursePermission(cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted);
  };
  protoOf(CoursePermission).ckn = function (cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted, $super) {
    cpUid = cpUid === VOID ? this.zdk_1 : cpUid;
    cpLastModified = cpLastModified === VOID ? this.adl_1 : cpLastModified;
    cpClazzUid = cpClazzUid === VOID ? this.bdl_1 : cpClazzUid;
    cpToEnrolmentRole = cpToEnrolmentRole === VOID ? this.cdl_1 : cpToEnrolmentRole;
    cpToPersonUid = cpToPersonUid === VOID ? this.ddl_1 : cpToPersonUid;
    cpToGroupUid = cpToGroupUid === VOID ? this.edl_1 : cpToGroupUid;
    cpPermissionsFlag = cpPermissionsFlag === VOID ? this.fdl_1 : cpPermissionsFlag;
    cpIsDeleted = cpIsDeleted === VOID ? this.gdl_1 : cpIsDeleted;
    return $super === VOID ? this.bkn(cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) : $super.bkn.call(this, cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted);
  };
  protoOf(CoursePermission).toString = function () {
    return 'CoursePermission(cpUid=' + this.zdk_1.toString() + ', cpLastModified=' + this.adl_1.toString() + ', cpClazzUid=' + this.bdl_1.toString() + ', cpToEnrolmentRole=' + this.cdl_1 + ', cpToPersonUid=' + this.ddl_1.toString() + ', cpToGroupUid=' + this.edl_1.toString() + ', cpPermissionsFlag=' + this.fdl_1.toString() + ', cpIsDeleted=' + this.gdl_1 + ')';
  };
  protoOf(CoursePermission).hashCode = function () {
    var result = this.zdk_1.hashCode();
    result = imul(result, 31) + this.adl_1.hashCode() | 0;
    result = imul(result, 31) + this.bdl_1.hashCode() | 0;
    result = imul(result, 31) + this.cdl_1 | 0;
    result = imul(result, 31) + this.ddl_1.hashCode() | 0;
    result = imul(result, 31) + this.edl_1.hashCode() | 0;
    result = imul(result, 31) + this.fdl_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.gdl_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.zdk_1.equals(tmp0_other_with_cast.zdk_1))
      return false;
    if (!this.adl_1.equals(tmp0_other_with_cast.adl_1))
      return false;
    if (!this.bdl_1.equals(tmp0_other_with_cast.bdl_1))
      return false;
    if (!(this.cdl_1 === tmp0_other_with_cast.cdl_1))
      return false;
    if (!this.ddl_1.equals(tmp0_other_with_cast.ddl_1))
      return false;
    if (!this.edl_1.equals(tmp0_other_with_cast.edl_1))
      return false;
    if (!this.fdl_1.equals(tmp0_other_with_cast.fdl_1))
      return false;
    if (!(this.gdl_1 === tmp0_other_with_cast.gdl_1))
      return false;
    return true;
  };
  function Companion_83() {
    this.dkn_1 = 125;
  }
  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.CoursePicture', this, 5);
    tmp0_serialDesc.t4f('coursePictureUid', true);
    tmp0_serialDesc.t4f('coursePictureLct', true);
    tmp0_serialDesc.t4f('coursePictureUri', true);
    tmp0_serialDesc.t4f('coursePictureThumbnailUri', true);
    tmp0_serialDesc.t4f('coursePictureActive', true);
    this.ekn_1 = tmp0_serialDesc;
  }
  protoOf($serializer_80).q44 = function () {
    return this.ekn_1;
  };
  protoOf($serializer_80).k4g = 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_80).s44 = function (decoder) {
    var tmp0_desc = this.ekn_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.i48(tmp0_desc);
    if (tmp9_input.x48()) {
      tmp4_local0 = tmp9_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp9_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp9_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp9_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp9_input.k48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp9_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp9_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp9_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp9_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp9_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp9_input.k48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp9_input.j48(tmp0_desc);
    return CoursePicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
  };
  protoOf($serializer_80).fkn = function (encoder, value) {
    var tmp0_desc = this.ekn_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.q8g_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.q8g_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.r8g_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.r8g_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.s8g_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.s8g_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.t8g_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.t8g_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.u8g_1 === true)) {
      tmp1_output.o49(tmp0_desc, 4, value.u8g_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_80).r44 = function (encoder, value) {
    return this.fkn(encoder, value instanceof CoursePicture ? value : THROW_CCE());
  };
  var $serializer_instance_80;
  function $serializer_getInstance_80() {
    if ($serializer_instance_80 == null)
      new $serializer_80();
    return $serializer_instance_80;
  }
  function CoursePicture_init_$Init$(seen1, coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_80().ekn_1);
    }
    if (0 === (seen1 & 1))
      $this.q8g_1 = new Long(0, 0);
    else
      $this.q8g_1 = coursePictureUid;
    if (0 === (seen1 & 2))
      $this.r8g_1 = new Long(0, 0);
    else
      $this.r8g_1 = coursePictureLct;
    if (0 === (seen1 & 4))
      $this.s8g_1 = null;
    else
      $this.s8g_1 = coursePictureUri;
    if (0 === (seen1 & 8))
      $this.t8g_1 = null;
    else
      $this.t8g_1 = coursePictureThumbnailUri;
    if (0 === (seen1 & 16))
      $this.u8g_1 = true;
    else
      $this.u8g_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.q8g_1 = coursePictureUid;
    this.r8g_1 = coursePictureLct;
    this.s8g_1 = coursePictureUri;
    this.t8g_1 = coursePictureThumbnailUri;
    this.u8g_1 = coursePictureActive;
  }
  protoOf(CoursePicture).gkn = function (coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) {
    return new CoursePicture(coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive);
  };
  protoOf(CoursePicture).hkn = function (coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive, $super) {
    coursePictureUid = coursePictureUid === VOID ? this.q8g_1 : coursePictureUid;
    coursePictureLct = coursePictureLct === VOID ? this.r8g_1 : coursePictureLct;
    coursePictureUri = coursePictureUri === VOID ? this.s8g_1 : coursePictureUri;
    coursePictureThumbnailUri = coursePictureThumbnailUri === VOID ? this.t8g_1 : coursePictureThumbnailUri;
    coursePictureActive = coursePictureActive === VOID ? this.u8g_1 : coursePictureActive;
    return $super === VOID ? this.gkn(coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) : $super.gkn.call(this, coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive);
  };
  protoOf(CoursePicture).toString = function () {
    return 'CoursePicture(coursePictureUid=' + this.q8g_1.toString() + ', coursePictureLct=' + this.r8g_1.toString() + ', coursePictureUri=' + this.s8g_1 + ', coursePictureThumbnailUri=' + this.t8g_1 + ', coursePictureActive=' + this.u8g_1 + ')';
  };
  protoOf(CoursePicture).hashCode = function () {
    var result = this.q8g_1.hashCode();
    result = imul(result, 31) + this.r8g_1.hashCode() | 0;
    result = imul(result, 31) + (this.s8g_1 == null ? 0 : getStringHashCode(this.s8g_1)) | 0;
    result = imul(result, 31) + (this.t8g_1 == null ? 0 : getStringHashCode(this.t8g_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.u8g_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.q8g_1.equals(tmp0_other_with_cast.q8g_1))
      return false;
    if (!this.r8g_1.equals(tmp0_other_with_cast.r8g_1))
      return false;
    if (!(this.s8g_1 == tmp0_other_with_cast.s8g_1))
      return false;
    if (!(this.t8g_1 == tmp0_other_with_cast.t8g_1))
      return false;
    if (!(this.u8g_1 === tmp0_other_with_cast.u8g_1))
      return false;
    return true;
  };
  function Companion_84() {
    this.ikn_1 = 450;
  }
  protoOf(Companion_84).n4r = function () {
    return $serializer_getInstance_81();
  };
  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.CourseTerminology', this, 4);
    tmp0_serialDesc.t4f('ctUid', true);
    tmp0_serialDesc.t4f('ctTitle', true);
    tmp0_serialDesc.t4f('ctTerminology', true);
    tmp0_serialDesc.t4f('ctLct', true);
    this.jkn_1 = tmp0_serialDesc;
  }
  protoOf($serializer_81).q44 = function () {
    return this.jkn_1;
  };
  protoOf($serializer_81).k4g = 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_81).s44 = function (decoder) {
    var tmp0_desc = this.jkn_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.i48(tmp0_desc);
    if (tmp8_input.x48()) {
      tmp4_local0 = tmp8_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.j48(tmp0_desc);
    return CourseTerminology_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_81).kkn = function (encoder, value) {
    var tmp0_desc = this.jkn_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.m8g_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.m8g_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.n8g_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.n8g_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.o8g_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.o8g_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.p8g_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.p8g_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_81).r44 = function (encoder, value) {
    return this.kkn(encoder, value instanceof CourseTerminology ? value : THROW_CCE());
  };
  var $serializer_instance_81;
  function $serializer_getInstance_81() {
    if ($serializer_instance_81 == null)
      new $serializer_81();
    return $serializer_instance_81;
  }
  function CourseTerminology_init_$Init$(seen1, ctUid, ctTitle, ctTerminology, ctLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_81().jkn_1);
    }
    if (0 === (seen1 & 1))
      $this.m8g_1 = new Long(0, 0);
    else
      $this.m8g_1 = ctUid;
    if (0 === (seen1 & 2))
      $this.n8g_1 = null;
    else
      $this.n8g_1 = ctTitle;
    if (0 === (seen1 & 4))
      $this.o8g_1 = null;
    else
      $this.o8g_1 = ctTerminology;
    if (0 === (seen1 & 8))
      $this.p8g_1 = new Long(0, 0);
    else
      $this.p8g_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.m8g_1 = new Long(0, 0);
    this.n8g_1 = null;
    this.o8g_1 = null;
    this.p8g_1 = new Long(0, 0);
  }
  function Companion_85() {
    this.lkn_1 = 999;
    this.mkn_1 = 1;
    this.nkn_1 = 2;
    this.okn_1 = 3;
  }
  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.DeletedItem', this, 10);
    tmp0_serialDesc.t4f('delItemUid', true);
    tmp0_serialDesc.t4f('delItemName', true);
    tmp0_serialDesc.t4f('delItemIconUri', true);
    tmp0_serialDesc.t4f('delItemLastModTime', true);
    tmp0_serialDesc.t4f('delItemTimeDeleted', true);
    tmp0_serialDesc.t4f('delItemEntityTable', true);
    tmp0_serialDesc.t4f('delItemEntityUid', true);
    tmp0_serialDesc.t4f('delItemDeletedByPersonUid', true);
    tmp0_serialDesc.t4f('delItemStatus', true);
    tmp0_serialDesc.t4f('delItemIsFolder', true);
    this.pkn_1 = tmp0_serialDesc;
  }
  protoOf($serializer_82).q44 = function () {
    return this.pkn_1;
  };
  protoOf($serializer_82).k4g = 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_82).s44 = function (decoder) {
    var tmp0_desc = this.pkn_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.i48(tmp0_desc);
    if (tmp14_input.x48()) {
      tmp4_local0 = tmp14_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp14_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp14_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp14_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp14_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp14_input.n48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp14_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp14_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp14_input.n48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp14_input.k48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp14_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp14_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp14_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp14_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp14_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp14_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp14_input.n48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp14_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp14_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp14_input.n48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp14_input.k48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp14_input.j48(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_82).qkn = function (encoder, value) {
    var tmp0_desc = this.pkn_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.feg_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.feg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.geg_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.geg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.heg_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.heg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.ieg_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.ieg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.jeg_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.jeg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.keg_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 5, value.keg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.leg_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.leg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.meg_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.meg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.neg_1 === 1)) {
      tmp1_output.r49(tmp0_desc, 8, value.neg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.oeg_1 === false)) {
      tmp1_output.o49(tmp0_desc, 9, value.oeg_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_82).r44 = function (encoder, value) {
    return this.qkn(encoder, value instanceof DeletedItem ? value : THROW_CCE());
  };
  var $serializer_instance_82;
  function $serializer_getInstance_82() {
    if ($serializer_instance_82 == null)
      new $serializer_82();
    return $serializer_instance_82;
  }
  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_82().pkn_1);
    }
    if (0 === (seen1 & 1))
      $this.feg_1 = new Long(0, 0);
    else
      $this.feg_1 = delItemUid;
    if (0 === (seen1 & 2))
      $this.geg_1 = null;
    else
      $this.geg_1 = delItemName;
    if (0 === (seen1 & 4))
      $this.heg_1 = null;
    else
      $this.heg_1 = delItemIconUri;
    if (0 === (seen1 & 8))
      $this.ieg_1 = new Long(0, 0);
    else
      $this.ieg_1 = delItemLastModTime;
    if (0 === (seen1 & 16))
      $this.jeg_1 = new Long(0, 0);
    else
      $this.jeg_1 = delItemTimeDeleted;
    if (0 === (seen1 & 32))
      $this.keg_1 = 0;
    else
      $this.keg_1 = delItemEntityTable;
    if (0 === (seen1 & 64))
      $this.leg_1 = new Long(0, 0);
    else
      $this.leg_1 = delItemEntityUid;
    if (0 === (seen1 & 128))
      $this.meg_1 = new Long(0, 0);
    else
      $this.meg_1 = delItemDeletedByPersonUid;
    if (0 === (seen1 & 256))
      $this.neg_1 = 1;
    else
      $this.neg_1 = delItemStatus;
    if (0 === (seen1 & 512))
      $this.oeg_1 = false;
    else
      $this.oeg_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.feg_1 = delItemUid;
    this.geg_1 = delItemName;
    this.heg_1 = delItemIconUri;
    this.ieg_1 = delItemLastModTime;
    this.jeg_1 = delItemTimeDeleted;
    this.keg_1 = delItemEntityTable;
    this.leg_1 = delItemEntityUid;
    this.meg_1 = delItemDeletedByPersonUid;
    this.neg_1 = delItemStatus;
    this.oeg_1 = delItemIsFolder;
  }
  protoOf(DeletedItem).toString = function () {
    return 'DeletedItem(delItemUid=' + this.feg_1.toString() + ', delItemName=' + this.geg_1 + ', delItemIconUri=' + this.heg_1 + ', delItemLastModTime=' + this.ieg_1.toString() + ', delItemTimeDeleted=' + this.jeg_1.toString() + ', delItemEntityTable=' + this.keg_1 + ', delItemEntityUid=' + this.leg_1.toString() + ', delItemDeletedByPersonUid=' + this.meg_1.toString() + ', delItemStatus=' + this.neg_1 + ', delItemIsFolder=' + this.oeg_1 + ')';
  };
  protoOf(DeletedItem).hashCode = function () {
    var result = this.feg_1.hashCode();
    result = imul(result, 31) + (this.geg_1 == null ? 0 : getStringHashCode(this.geg_1)) | 0;
    result = imul(result, 31) + (this.heg_1 == null ? 0 : getStringHashCode(this.heg_1)) | 0;
    result = imul(result, 31) + this.ieg_1.hashCode() | 0;
    result = imul(result, 31) + this.jeg_1.hashCode() | 0;
    result = imul(result, 31) + this.keg_1 | 0;
    result = imul(result, 31) + this.leg_1.hashCode() | 0;
    result = imul(result, 31) + this.meg_1.hashCode() | 0;
    result = imul(result, 31) + this.neg_1 | 0;
    result = imul(result, 31) + getBooleanHashCode(this.oeg_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.feg_1.equals(tmp0_other_with_cast.feg_1))
      return false;
    if (!(this.geg_1 == tmp0_other_with_cast.geg_1))
      return false;
    if (!(this.heg_1 == tmp0_other_with_cast.heg_1))
      return false;
    if (!this.ieg_1.equals(tmp0_other_with_cast.ieg_1))
      return false;
    if (!this.jeg_1.equals(tmp0_other_with_cast.jeg_1))
      return false;
    if (!(this.keg_1 === tmp0_other_with_cast.keg_1))
      return false;
    if (!this.leg_1.equals(tmp0_other_with_cast.leg_1))
      return false;
    if (!this.meg_1.equals(tmp0_other_with_cast.meg_1))
      return false;
    if (!(this.neg_1 === tmp0_other_with_cast.neg_1))
      return false;
    if (!(this.oeg_1 === tmp0_other_with_cast.oeg_1))
      return false;
    return true;
  };
  function Companion_86() {
    this.rkn_1 = 132;
  }
  protoOf(Companion_86).n4r = function () {
    return $serializer_getInstance_83();
  };
  var Companion_instance_87;
  function Companion_getInstance_89() {
    return Companion_instance_87;
  }
  function $serializer_83() {
    $serializer_instance_83 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.DiscussionPost', this, 12);
    tmp0_serialDesc.t4f('discussionPostUid', true);
    tmp0_serialDesc.t4f('discussionPostReplyToPostUid', true);
    tmp0_serialDesc.t4f('discussionPostTitle', true);
    tmp0_serialDesc.t4f('discussionPostMessage', true);
    tmp0_serialDesc.t4f('discussionPostStartDate', true);
    tmp0_serialDesc.t4f('discussionPostCourseBlockUid', true);
    tmp0_serialDesc.t4f('dpDeleted', true);
    tmp0_serialDesc.t4f('discussionPostStartedPersonUid', true);
    tmp0_serialDesc.t4f('discussionPostClazzUid', true);
    tmp0_serialDesc.t4f('discussionPostLct', true);
    tmp0_serialDesc.t4f('discussionPostVisible', true);
    tmp0_serialDesc.t4f('discussionPostArchive', true);
    this.skn_1 = tmp0_serialDesc;
  }
  protoOf($serializer_83).q44 = function () {
    return this.skn_1;
  };
  protoOf($serializer_83).k4g = 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_83).s44 = function (decoder) {
    var tmp0_desc = this.skn_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.i48(tmp0_desc);
    if (tmp16_input.x48()) {
      tmp4_local0 = tmp16_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp16_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp16_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp16_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp16_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp16_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp16_input.k48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp16_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp16_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp16_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp16_input.k48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp16_input.k48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp16_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp16_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp16_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp16_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp16_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp16_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp16_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp16_input.k48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp16_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp16_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp16_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp16_input.k48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp16_input.k48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp16_input.j48(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_83).tkn = function (encoder, value) {
    var tmp0_desc = this.skn_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.nem_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.nem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.oem_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.oem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.pem_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.pem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.qem_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.qem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.rem_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.rem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.sem_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.sem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.tem_1 === false)) {
      tmp1_output.o49(tmp0_desc, 6, value.tem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.uem_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.uem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.vem_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.vem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !value.wem_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 9, value.wem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.xem_1 === false)) {
      tmp1_output.o49(tmp0_desc, 10, value.xem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !(value.yem_1 === false)) {
      tmp1_output.o49(tmp0_desc, 11, value.yem_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_83).r44 = function (encoder, value) {
    return this.tkn(encoder, value instanceof DiscussionPost ? value : THROW_CCE());
  };
  var $serializer_instance_83;
  function $serializer_getInstance_83() {
    if ($serializer_instance_83 == null)
      new $serializer_83();
    return $serializer_instance_83;
  }
  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_83().skn_1);
    }
    if (0 === (seen1 & 1))
      $this.nem_1 = new Long(0, 0);
    else
      $this.nem_1 = discussionPostUid;
    if (0 === (seen1 & 2))
      $this.oem_1 = new Long(0, 0);
    else
      $this.oem_1 = discussionPostReplyToPostUid;
    if (0 === (seen1 & 4))
      $this.pem_1 = null;
    else
      $this.pem_1 = discussionPostTitle;
    if (0 === (seen1 & 8))
      $this.qem_1 = null;
    else
      $this.qem_1 = discussionPostMessage;
    if (0 === (seen1 & 16))
      $this.rem_1 = new Long(0, 0);
    else
      $this.rem_1 = discussionPostStartDate;
    if (0 === (seen1 & 32))
      $this.sem_1 = new Long(0, 0);
    else
      $this.sem_1 = discussionPostCourseBlockUid;
    if (0 === (seen1 & 64))
      $this.tem_1 = false;
    else
      $this.tem_1 = dpDeleted;
    if (0 === (seen1 & 128))
      $this.uem_1 = new Long(0, 0);
    else
      $this.uem_1 = discussionPostStartedPersonUid;
    if (0 === (seen1 & 256))
      $this.vem_1 = new Long(0, 0);
    else
      $this.vem_1 = discussionPostClazzUid;
    if (0 === (seen1 & 512))
      $this.wem_1 = new Long(0, 0);
    else
      $this.wem_1 = discussionPostLct;
    if (0 === (seen1 & 1024))
      $this.xem_1 = false;
    else
      $this.xem_1 = discussionPostVisible;
    if (0 === (seen1 & 2048))
      $this.yem_1 = false;
    else
      $this.yem_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.nem_1 = new Long(0, 0);
    this.oem_1 = new Long(0, 0);
    this.pem_1 = null;
    this.qem_1 = null;
    this.rem_1 = new Long(0, 0);
    this.sem_1 = new Long(0, 0);
    this.tem_1 = false;
    this.uem_1 = new Long(0, 0);
    this.vem_1 = new Long(0, 0);
    this.wem_1 = new Long(0, 0);
    this.xem_1 = false;
    this.yem_1 = false;
  }
  function Companion_87() {
  }
  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.DiscussionPostWithDetails', this, 18);
    tmp0_serialDesc.t4f('discussionPostUid', true);
    tmp0_serialDesc.t4f('discussionPostReplyToPostUid', true);
    tmp0_serialDesc.t4f('discussionPostTitle', true);
    tmp0_serialDesc.t4f('discussionPostMessage', true);
    tmp0_serialDesc.t4f('discussionPostStartDate', true);
    tmp0_serialDesc.t4f('discussionPostCourseBlockUid', true);
    tmp0_serialDesc.t4f('dpDeleted', true);
    tmp0_serialDesc.t4f('discussionPostStartedPersonUid', true);
    tmp0_serialDesc.t4f('discussionPostClazzUid', true);
    tmp0_serialDesc.t4f('discussionPostLct', true);
    tmp0_serialDesc.t4f('discussionPostVisible', true);
    tmp0_serialDesc.t4f('discussionPostArchive', true);
    tmp0_serialDesc.t4f('authorPersonFirstNames', true);
    tmp0_serialDesc.t4f('authorPersonLastName', true);
    tmp0_serialDesc.t4f('authorPictureUri', true);
    tmp0_serialDesc.t4f('postLatestMessage', true);
    tmp0_serialDesc.t4f('postRepliesCount', true);
    tmp0_serialDesc.t4f('postLatestMessageTimestamp', true);
    this.ukn_1 = tmp0_serialDesc;
  }
  protoOf($serializer_84).q44 = function () {
    return this.ukn_1;
  };
  protoOf($serializer_84).k4g = 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_84).s44 = function (decoder) {
    var tmp0_desc = this.ukn_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.i48(tmp0_desc);
    if (tmp22_input.x48()) {
      tmp4_local0 = tmp22_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp22_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp22_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp22_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp22_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp22_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp22_input.k48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp22_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp22_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp22_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp22_input.k48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp22_input.k48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp22_input.w48(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp22_input.w48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp22_input.w48(tmp0_desc, 14, StringSerializer_getInstance(), tmp18_local14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp22_input.w48(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp22_input.n48(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp22_input.o48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp22_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp22_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp22_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp22_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp22_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp22_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp22_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp22_input.k48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp22_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp22_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp22_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp22_input.k48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp22_input.k48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp22_input.w48(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp22_input.w48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp22_input.w48(tmp0_desc, 14, StringSerializer_getInstance(), tmp18_local14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp22_input.w48(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp22_input.n48(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp22_input.o48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp22_input.j48(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_84).vkn = function (encoder, value) {
    var tmp0_desc = this.ukn_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.nem_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.nem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.oem_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.oem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.pem_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.pem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.qem_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.qem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.rem_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.rem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.sem_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.sem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.tem_1 === false)) {
      tmp1_output.o49(tmp0_desc, 6, value.tem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.uem_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.uem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.vem_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.vem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !value.wem_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 9, value.wem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.xem_1 === false)) {
      tmp1_output.o49(tmp0_desc, 10, value.xem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !(value.yem_1 === false)) {
      tmp1_output.o49(tmp0_desc, 11, value.yem_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !(value.yen_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 12, StringSerializer_getInstance(), value.yen_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !(value.zen_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 13, StringSerializer_getInstance(), value.zen_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 14) ? true : !(value.aeo_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 14, StringSerializer_getInstance(), value.aeo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 15) ? true : !(value.beo_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 15, StringSerializer_getInstance(), value.beo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 16) ? true : !(value.ceo_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 16, value.ceo_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 17) ? true : !value.deo_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 17, value.deo_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_84).r44 = function (encoder, value) {
    return this.vkn(encoder, value instanceof DiscussionPostWithDetails ? value : THROW_CCE());
  };
  var $serializer_instance_84;
  function $serializer_getInstance_84() {
    if ($serializer_instance_84 == null)
      new $serializer_84();
    return $serializer_instance_84;
  }
  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_84().ukn_1);
    }
    DiscussionPost_init_$Init$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, serializationConstructorMarker, $this);
    if (0 === (seen1 & 4096))
      $this.yen_1 = null;
    else
      $this.yen_1 = authorPersonFirstNames;
    if (0 === (seen1 & 8192))
      $this.zen_1 = null;
    else
      $this.zen_1 = authorPersonLastName;
    if (0 === (seen1 & 16384))
      $this.aeo_1 = null;
    else
      $this.aeo_1 = authorPictureUri;
    if (0 === (seen1 & 32768))
      $this.beo_1 = null;
    else
      $this.beo_1 = postLatestMessage;
    if (0 === (seen1 & 65536))
      $this.ceo_1 = 0;
    else
      $this.ceo_1 = postRepliesCount;
    if (0 === (seen1 & 131072))
      $this.deo_1 = new Long(0, 0);
    else
      $this.deo_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.yen_1 = null;
    this.zen_1 = null;
    this.aeo_1 = null;
    this.beo_1 = null;
    this.ceo_1 = 0;
    this.deo_1 = new Long(0, 0);
  }
  function Companion_88() {
    this.wkn_1 = 1;
    this.xkn_1 = 2;
    this.ykn_1 = 3;
    this.zkn_1 = 4;
    this.ako_1 = 10070;
  }
  var Companion_instance_89;
  function Companion_getInstance_91() {
    return Companion_instance_89;
  }
  function $serializer_85() {
    $serializer_instance_85 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.EnrolmentRequest', this, 14);
    tmp0_serialDesc.t4f('erUid', true);
    tmp0_serialDesc.t4f('erClazzUid', true);
    tmp0_serialDesc.t4f('erClazzName', true);
    tmp0_serialDesc.t4f('erPersonUid', true);
    tmp0_serialDesc.t4f('erPersonFullname', true);
    tmp0_serialDesc.t4f('erPersonPictureUri', true);
    tmp0_serialDesc.t4f('erPersonUsername', true);
    tmp0_serialDesc.t4f('erRole', true);
    tmp0_serialDesc.t4f('erRequestTime', true);
    tmp0_serialDesc.t4f('erStatus', true);
    tmp0_serialDesc.t4f('erStatusSetByPersonUid', true);
    tmp0_serialDesc.t4f('erDeleted', true);
    tmp0_serialDesc.t4f('erStatusSetAuth', true);
    tmp0_serialDesc.t4f('erLastModified', true);
    this.bko_1 = tmp0_serialDesc;
  }
  protoOf($serializer_85).q44 = function () {
    return this.bko_1;
  };
  protoOf($serializer_85).k4g = 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_85).s44 = function (decoder) {
    var tmp0_desc = this.bko_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.i48(tmp0_desc);
    if (tmp18_input.x48()) {
      tmp4_local0 = tmp18_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp18_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp18_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp18_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp18_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp18_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp18_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp18_input.n48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp18_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp18_input.n48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp18_input.o48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp18_input.k48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp18_input.w48(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp18_input.o48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp18_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp18_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp18_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp18_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp18_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp18_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp18_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp18_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp18_input.n48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp18_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp18_input.n48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp18_input.o48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp18_input.k48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp18_input.w48(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp18_input.o48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp18_input.j48(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_85).cko = function (encoder, value) {
    var tmp0_desc = this.bko_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.key_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.key_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.ley_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.ley_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.mey_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.mey_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.ney_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.ney_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.oey_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.oey_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.pey_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.pey_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.qey_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 6, StringSerializer_getInstance(), value.qey_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.rey_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 7, value.rey_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.sey_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.sey_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.tey_1 === 1)) {
      tmp1_output.r49(tmp0_desc, 9, value.tey_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !value.uey_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 10, value.uey_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !(value.vey_1 === false)) {
      tmp1_output.o49(tmp0_desc, 11, value.vey_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !(value.wey_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 12, StringSerializer_getInstance(), value.wey_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !value.xey_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 13, value.xey_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_85).r44 = function (encoder, value) {
    return this.cko(encoder, value instanceof EnrolmentRequest ? value : THROW_CCE());
  };
  var $serializer_instance_85;
  function $serializer_getInstance_85() {
    if ($serializer_instance_85 == null)
      new $serializer_85();
    return $serializer_instance_85;
  }
  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_85().bko_1);
    }
    if (0 === (seen1 & 1))
      $this.key_1 = new Long(0, 0);
    else
      $this.key_1 = erUid;
    if (0 === (seen1 & 2))
      $this.ley_1 = new Long(0, 0);
    else
      $this.ley_1 = erClazzUid;
    if (0 === (seen1 & 4))
      $this.mey_1 = null;
    else
      $this.mey_1 = erClazzName;
    if (0 === (seen1 & 8))
      $this.ney_1 = new Long(0, 0);
    else
      $this.ney_1 = erPersonUid;
    if (0 === (seen1 & 16))
      $this.oey_1 = null;
    else
      $this.oey_1 = erPersonFullname;
    if (0 === (seen1 & 32))
      $this.pey_1 = null;
    else
      $this.pey_1 = erPersonPictureUri;
    if (0 === (seen1 & 64))
      $this.qey_1 = null;
    else
      $this.qey_1 = erPersonUsername;
    if (0 === (seen1 & 128))
      $this.rey_1 = 0;
    else
      $this.rey_1 = erRole;
    if (0 === (seen1 & 256))
      $this.sey_1 = new Long(0, 0);
    else
      $this.sey_1 = erRequestTime;
    if (0 === (seen1 & 512))
      $this.tey_1 = 1;
    else
      $this.tey_1 = erStatus;
    if (0 === (seen1 & 1024))
      $this.uey_1 = new Long(0, 0);
    else
      $this.uey_1 = erStatusSetByPersonUid;
    if (0 === (seen1 & 2048))
      $this.vey_1 = false;
    else
      $this.vey_1 = erDeleted;
    if (0 === (seen1 & 4096))
      $this.wey_1 = null;
    else
      $this.wey_1 = erStatusSetAuth;
    if (0 === (seen1 & 8192))
      $this.xey_1 = new Long(0, 0);
    else
      $this.xey_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.key_1 = erUid;
    this.ley_1 = erClazzUid;
    this.mey_1 = erClazzName;
    this.ney_1 = erPersonUid;
    this.oey_1 = erPersonFullname;
    this.pey_1 = erPersonPictureUri;
    this.qey_1 = erPersonUsername;
    this.rey_1 = erRole;
    this.sey_1 = erRequestTime;
    this.tey_1 = erStatus;
    this.uey_1 = erStatusSetByPersonUid;
    this.vey_1 = erDeleted;
    this.wey_1 = erStatusSetAuth;
    this.xey_1 = erLastModified;
  }
  protoOf(EnrolmentRequest).toString = function () {
    return 'EnrolmentRequest(erUid=' + this.key_1.toString() + ', erClazzUid=' + this.ley_1.toString() + ', erClazzName=' + this.mey_1 + ', erPersonUid=' + this.ney_1.toString() + ', erPersonFullname=' + this.oey_1 + ', erPersonPictureUri=' + this.pey_1 + ', erPersonUsername=' + this.qey_1 + ', erRole=' + this.rey_1 + ', erRequestTime=' + this.sey_1.toString() + ', erStatus=' + this.tey_1 + ', erStatusSetByPersonUid=' + this.uey_1.toString() + ', erDeleted=' + this.vey_1 + ', erStatusSetAuth=' + this.wey_1 + ', erLastModified=' + this.xey_1.toString() + ')';
  };
  protoOf(EnrolmentRequest).hashCode = function () {
    var result = this.key_1.hashCode();
    result = imul(result, 31) + this.ley_1.hashCode() | 0;
    result = imul(result, 31) + (this.mey_1 == null ? 0 : getStringHashCode(this.mey_1)) | 0;
    result = imul(result, 31) + this.ney_1.hashCode() | 0;
    result = imul(result, 31) + (this.oey_1 == null ? 0 : getStringHashCode(this.oey_1)) | 0;
    result = imul(result, 31) + (this.pey_1 == null ? 0 : getStringHashCode(this.pey_1)) | 0;
    result = imul(result, 31) + (this.qey_1 == null ? 0 : getStringHashCode(this.qey_1)) | 0;
    result = imul(result, 31) + this.rey_1 | 0;
    result = imul(result, 31) + this.sey_1.hashCode() | 0;
    result = imul(result, 31) + this.tey_1 | 0;
    result = imul(result, 31) + this.uey_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.vey_1) | 0;
    result = imul(result, 31) + (this.wey_1 == null ? 0 : getStringHashCode(this.wey_1)) | 0;
    result = imul(result, 31) + this.xey_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.key_1.equals(tmp0_other_with_cast.key_1))
      return false;
    if (!this.ley_1.equals(tmp0_other_with_cast.ley_1))
      return false;
    if (!(this.mey_1 == tmp0_other_with_cast.mey_1))
      return false;
    if (!this.ney_1.equals(tmp0_other_with_cast.ney_1))
      return false;
    if (!(this.oey_1 == tmp0_other_with_cast.oey_1))
      return false;
    if (!(this.pey_1 == tmp0_other_with_cast.pey_1))
      return false;
    if (!(this.qey_1 == tmp0_other_with_cast.qey_1))
      return false;
    if (!(this.rey_1 === tmp0_other_with_cast.rey_1))
      return false;
    if (!this.sey_1.equals(tmp0_other_with_cast.sey_1))
      return false;
    if (!(this.tey_1 === tmp0_other_with_cast.tey_1))
      return false;
    if (!this.uey_1.equals(tmp0_other_with_cast.uey_1))
      return false;
    if (!(this.vey_1 === tmp0_other_with_cast.vey_1))
      return false;
    if (!(this.wey_1 == tmp0_other_with_cast.wey_1))
      return false;
    if (!this.xey_1.equals(tmp0_other_with_cast.xey_1))
      return false;
    return true;
  };
  function ErrorReport() {
    this.cf7_1 = new Long(0, 0);
    this.df7_1 = new Long(0, 0);
    this.ef7_1 = new Long(0, 0);
    this.ff7_1 = 0;
    this.gf7_1 = new Long(0, 0);
    this.hf7_1 = 0;
    this.if7_1 = new Long(0, 0);
    this.jf7_1 = null;
    this.kf7_1 = null;
    this.lf7_1 = 0;
    this.mf7_1 = 0;
    this.nf7_1 = null;
    this.of7_1 = null;
    this.pf7_1 = null;
    this.qf7_1 = null;
  }
  function Companion_89() {
  }
  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.ExternalAppPermission', this, 7);
    tmp0_serialDesc.t4f('eapUid', true);
    tmp0_serialDesc.t4f('eapPersonUid', true);
    tmp0_serialDesc.t4f('eapPackageId', true);
    tmp0_serialDesc.t4f('eapStartTime', true);
    tmp0_serialDesc.t4f('eapExpireTime', true);
    tmp0_serialDesc.t4f('eapAuthToken', true);
    tmp0_serialDesc.t4f('eapAndroidAccountName', true);
    this.dko_1 = tmp0_serialDesc;
  }
  protoOf($serializer_86).q44 = function () {
    return this.dko_1;
  };
  protoOf($serializer_86).k4g = 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_86).s44 = function (decoder) {
    var tmp0_desc = this.dko_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.i48(tmp0_desc);
    if (tmp11_input.x48()) {
      tmp4_local0 = tmp11_input.n48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp11_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp11_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp11_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp11_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp11_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp11_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp11_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp11_input.n48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp11_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp11_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp11_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp11_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp11_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp11_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp11_input.j48(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_86).eko = function (encoder, value) {
    var tmp0_desc = this.dko_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.cf8_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 0, value.cf8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.df8_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.df8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.ef8_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.ef8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.ff8_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.ff8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.gf8_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.gf8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.hf8_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.hf8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.if8_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 6, StringSerializer_getInstance(), value.if8_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_86).r44 = function (encoder, value) {
    return this.eko(encoder, value instanceof ExternalAppPermission ? value : THROW_CCE());
  };
  var $serializer_instance_86;
  function $serializer_getInstance_86() {
    if ($serializer_instance_86 == null)
      new $serializer_86();
    return $serializer_instance_86;
  }
  function ExternalAppPermission_init_$Init$(seen1, eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_86().dko_1);
    }
    if (0 === (seen1 & 1))
      $this.cf8_1 = 0;
    else
      $this.cf8_1 = eapUid;
    if (0 === (seen1 & 2))
      $this.df8_1 = new Long(0, 0);
    else
      $this.df8_1 = eapPersonUid;
    if (0 === (seen1 & 4))
      $this.ef8_1 = null;
    else
      $this.ef8_1 = eapPackageId;
    if (0 === (seen1 & 8))
      $this.ff8_1 = new Long(0, 0);
    else
      $this.ff8_1 = eapStartTime;
    if (0 === (seen1 & 16))
      $this.gf8_1 = new Long(0, 0);
    else
      $this.gf8_1 = eapExpireTime;
    if (0 === (seen1 & 32))
      $this.hf8_1 = null;
    else
      $this.hf8_1 = eapAuthToken;
    if (0 === (seen1 & 64))
      $this.if8_1 = null;
    else
      $this.if8_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.cf8_1 = eapUid;
    this.df8_1 = eapPersonUid;
    this.ef8_1 = eapPackageId;
    this.ff8_1 = eapStartTime;
    this.gf8_1 = eapExpireTime;
    this.hf8_1 = eapAuthToken;
    this.if8_1 = eapAndroidAccountName;
  }
  protoOf(ExternalAppPermission).toString = function () {
    return 'ExternalAppPermission(eapUid=' + this.cf8_1 + ', eapPersonUid=' + this.df8_1.toString() + ', eapPackageId=' + this.ef8_1 + ', eapStartTime=' + this.ff8_1.toString() + ', eapExpireTime=' + this.gf8_1.toString() + ', eapAuthToken=' + this.hf8_1 + ', eapAndroidAccountName=' + this.if8_1 + ')';
  };
  protoOf(ExternalAppPermission).hashCode = function () {
    var result = this.cf8_1;
    result = imul(result, 31) + this.df8_1.hashCode() | 0;
    result = imul(result, 31) + (this.ef8_1 == null ? 0 : getStringHashCode(this.ef8_1)) | 0;
    result = imul(result, 31) + this.ff8_1.hashCode() | 0;
    result = imul(result, 31) + this.gf8_1.hashCode() | 0;
    result = imul(result, 31) + (this.hf8_1 == null ? 0 : getStringHashCode(this.hf8_1)) | 0;
    result = imul(result, 31) + (this.if8_1 == null ? 0 : getStringHashCode(this.if8_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.cf8_1 === tmp0_other_with_cast.cf8_1))
      return false;
    if (!this.df8_1.equals(tmp0_other_with_cast.df8_1))
      return false;
    if (!(this.ef8_1 == tmp0_other_with_cast.ef8_1))
      return false;
    if (!this.ff8_1.equals(tmp0_other_with_cast.ff8_1))
      return false;
    if (!this.gf8_1.equals(tmp0_other_with_cast.gf8_1))
      return false;
    if (!(this.hf8_1 == tmp0_other_with_cast.hf8_1))
      return false;
    if (!(this.if8_1 == tmp0_other_with_cast.if8_1))
      return false;
    return true;
  };
  function Companion_90() {
    this.fko_1 = 99;
  }
  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.Holiday', this, 10);
    tmp0_serialDesc.t4f('holUid', true);
    tmp0_serialDesc.t4f('holMasterCsn', true);
    tmp0_serialDesc.t4f('holLocalCsn', true);
    tmp0_serialDesc.t4f('holLastModBy', true);
    tmp0_serialDesc.t4f('holLct', true);
    tmp0_serialDesc.t4f('holActive', true);
    tmp0_serialDesc.t4f('holHolidayCalendarUid', true);
    tmp0_serialDesc.t4f('holStartTime', true);
    tmp0_serialDesc.t4f('holEndTime', true);
    tmp0_serialDesc.t4f('holName', true);
    this.gko_1 = tmp0_serialDesc;
  }
  protoOf($serializer_87).q44 = function () {
    return this.gko_1;
  };
  protoOf($serializer_87).k4g = 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_87).s44 = function (decoder) {
    var tmp0_desc = this.gko_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.i48(tmp0_desc);
    if (tmp14_input.x48()) {
      tmp4_local0 = tmp14_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp14_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp14_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp14_input.n48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp14_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp14_input.k48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp14_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp14_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp14_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp14_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp14_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp14_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp14_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp14_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp14_input.n48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp14_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp14_input.k48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp14_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp14_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp14_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp14_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp14_input.j48(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_87).hko = function (encoder, value) {
    var tmp0_desc = this.gko_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.efb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.efb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.ffb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.ffb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.gfb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.gfb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.hfb_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 3, value.hfb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.ifb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.ifb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.jfb_1 === true)) {
      tmp1_output.o49(tmp0_desc, 5, value.jfb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.kfb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.kfb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.lfb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.lfb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.mfb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.mfb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.nfb_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 9, StringSerializer_getInstance(), value.nfb_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_87).r44 = function (encoder, value) {
    return this.hko(encoder, value instanceof Holiday ? value : THROW_CCE());
  };
  var $serializer_instance_87;
  function $serializer_getInstance_87() {
    if ($serializer_instance_87 == null)
      new $serializer_87();
    return $serializer_instance_87;
  }
  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_87().gko_1);
    }
    if (0 === (seen1 & 1))
      $this.efb_1 = new Long(0, 0);
    else
      $this.efb_1 = holUid;
    if (0 === (seen1 & 2))
      $this.ffb_1 = new Long(0, 0);
    else
      $this.ffb_1 = holMasterCsn;
    if (0 === (seen1 & 4))
      $this.gfb_1 = new Long(0, 0);
    else
      $this.gfb_1 = holLocalCsn;
    if (0 === (seen1 & 8))
      $this.hfb_1 = 0;
    else
      $this.hfb_1 = holLastModBy;
    if (0 === (seen1 & 16))
      $this.ifb_1 = new Long(0, 0);
    else
      $this.ifb_1 = holLct;
    if (0 === (seen1 & 32))
      $this.jfb_1 = true;
    else
      $this.jfb_1 = holActive;
    if (0 === (seen1 & 64))
      $this.kfb_1 = new Long(0, 0);
    else
      $this.kfb_1 = holHolidayCalendarUid;
    if (0 === (seen1 & 128))
      $this.lfb_1 = new Long(0, 0);
    else
      $this.lfb_1 = holStartTime;
    if (0 === (seen1 & 256))
      $this.mfb_1 = new Long(0, 0);
    else
      $this.mfb_1 = holEndTime;
    if (0 === (seen1 & 512))
      $this.nfb_1 = null;
    else
      $this.nfb_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.efb_1 = new Long(0, 0);
    this.ffb_1 = new Long(0, 0);
    this.gfb_1 = new Long(0, 0);
    this.hfb_1 = 0;
    this.ifb_1 = new Long(0, 0);
    this.jfb_1 = true;
    this.kfb_1 = new Long(0, 0);
    this.lfb_1 = new Long(0, 0);
    this.mfb_1 = new Long(0, 0);
    this.nfb_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.efb_1.equals(other.efb_1))
      return false;
    if (!this.ffb_1.equals(other.ffb_1))
      return false;
    if (!this.gfb_1.equals(other.gfb_1))
      return false;
    if (!(this.hfb_1 === other.hfb_1))
      return false;
    if (!(this.jfb_1 === other.jfb_1))
      return false;
    if (!this.kfb_1.equals(other.kfb_1))
      return false;
    if (!this.lfb_1.equals(other.lfb_1))
      return false;
    if (!this.mfb_1.equals(other.mfb_1))
      return false;
    if (!(this.nfb_1 == other.nfb_1))
      return false;
    return true;
  };
  protoOf(Holiday).hashCode = function () {
    var result = this.efb_1.hashCode();
    result = imul(31, result) + this.ffb_1.hashCode() | 0;
    result = imul(31, result) + this.gfb_1.hashCode() | 0;
    result = imul(31, result) + this.hfb_1 | 0;
    result = imul(31, result) + getBooleanHashCode(this.jfb_1) | 0;
    result = imul(31, result) + this.kfb_1.hashCode() | 0;
    result = imul(31, result) + this.lfb_1.hashCode() | 0;
    result = imul(31, result) + this.mfb_1.hashCode() | 0;
    var tmp = imul(31, result);
    var tmp0_safe_receiver = this.nfb_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_91() {
    this.iko_1 = 28;
    this.jko_1 = 1;
  }
  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.HolidayCalendar', this, 8);
    tmp0_serialDesc.t4f('umCalendarUid', true);
    tmp0_serialDesc.t4f('umCalendarName', true);
    tmp0_serialDesc.t4f('umCalendarCategory', true);
    tmp0_serialDesc.t4f('umCalendarActive', true);
    tmp0_serialDesc.t4f('umCalendarMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('umCalendarLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('umCalendarLastChangedBy', true);
    tmp0_serialDesc.t4f('umCalendarLct', true);
    this.kko_1 = tmp0_serialDesc;
  }
  protoOf($serializer_88).q44 = function () {
    return this.kko_1;
  };
  protoOf($serializer_88).k4g = 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_88).s44 = function (decoder) {
    var tmp0_desc = this.kko_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.i48(tmp0_desc);
    if (tmp12_input.x48()) {
      tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.n48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.k48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.n48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.n48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.k48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.n48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.j48(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_88).lko = function (encoder, value) {
    var tmp0_desc = this.kko_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.c8f_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.c8f_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.d8f_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.d8f_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.e8f_1 === 1)) {
      tmp1_output.r49(tmp0_desc, 2, value.e8f_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.f8f_1 === true)) {
      tmp1_output.o49(tmp0_desc, 3, value.f8f_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.g8f_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.g8f_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.h8f_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.h8f_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.i8f_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 6, value.i8f_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.j8f_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.j8f_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_88).r44 = function (encoder, value) {
    return this.lko(encoder, value instanceof HolidayCalendar ? value : THROW_CCE());
  };
  var $serializer_instance_88;
  function $serializer_getInstance_88() {
    if ($serializer_instance_88 == null)
      new $serializer_88();
    return $serializer_instance_88;
  }
  function HolidayCalendar_init_$Init$(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_88().kko_1);
    }
    if (0 === (seen1 & 1))
      $this.c8f_1 = new Long(0, 0);
    else
      $this.c8f_1 = umCalendarUid;
    if (0 === (seen1 & 2))
      $this.d8f_1 = null;
    else
      $this.d8f_1 = umCalendarName;
    if (0 === (seen1 & 4))
      $this.e8f_1 = 1;
    else
      $this.e8f_1 = umCalendarCategory;
    if (0 === (seen1 & 8))
      $this.f8f_1 = true;
    else
      $this.f8f_1 = umCalendarActive;
    if (0 === (seen1 & 16))
      $this.g8f_1 = new Long(0, 0);
    else
      $this.g8f_1 = umCalendarMasterChangeSeqNum;
    if (0 === (seen1 & 32))
      $this.h8f_1 = new Long(0, 0);
    else
      $this.h8f_1 = umCalendarLocalChangeSeqNum;
    if (0 === (seen1 & 64))
      $this.i8f_1 = 0;
    else
      $this.i8f_1 = umCalendarLastChangedBy;
    if (0 === (seen1 & 128))
      $this.j8f_1 = new Long(0, 0);
    else
      $this.j8f_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.c8f_1 = new Long(0, 0);
    this.d8f_1 = null;
    this.e8f_1 = 1;
    this.f8f_1 = true;
    this.g8f_1 = new Long(0, 0);
    this.h8f_1 = new Long(0, 0);
    this.i8f_1 = 0;
    this.j8f_1 = new Long(0, 0);
  }
  function Companion_92() {
  }
  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.HolidayCalendarWithNumEntries', this, 9);
    tmp0_serialDesc.t4f('umCalendarUid', true);
    tmp0_serialDesc.t4f('umCalendarName', true);
    tmp0_serialDesc.t4f('umCalendarCategory', true);
    tmp0_serialDesc.t4f('umCalendarActive', true);
    tmp0_serialDesc.t4f('umCalendarMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('umCalendarLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('umCalendarLastChangedBy', true);
    tmp0_serialDesc.t4f('umCalendarLct', true);
    tmp0_serialDesc.t4f('numEntries', true);
    this.mko_1 = tmp0_serialDesc;
  }
  protoOf($serializer_89).q44 = function () {
    return this.mko_1;
  };
  protoOf($serializer_89).k4g = 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_89).s44 = function (decoder) {
    var tmp0_desc = this.mko_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.i48(tmp0_desc);
    if (tmp13_input.x48()) {
      tmp4_local0 = tmp13_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp13_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp13_input.n48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp13_input.k48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp13_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp13_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp13_input.n48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp13_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp13_input.n48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp13_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp13_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp13_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp13_input.n48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp13_input.k48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp13_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp13_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp13_input.n48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp13_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp13_input.n48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp13_input.j48(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_89).nko = function (encoder, value) {
    var tmp0_desc = this.mko_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.c8f_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.c8f_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.d8f_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.d8f_1);
    }
    var tmp;
    if (tmp1_output.e4a(tmp0_desc, 2)) {
      tmp = true;
    } else {
      var tmp_0 = value.e8f_1;
      tmp = !(tmp_0 === 1);
    }
    if (tmp) {
      tmp1_output.r49(tmp0_desc, 2, value.e8f_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.f8f_1 === true)) {
      tmp1_output.o49(tmp0_desc, 3, value.f8f_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.g8f_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.g8f_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.h8f_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.h8f_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.i8f_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 6, value.i8f_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.j8f_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.j8f_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.wko_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 8, value.wko_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_89).r44 = function (encoder, value) {
    return this.nko(encoder, value instanceof HolidayCalendarWithNumEntries ? value : THROW_CCE());
  };
  var $serializer_instance_89;
  function $serializer_getInstance_89() {
    if ($serializer_instance_89 == null)
      new $serializer_89();
    return $serializer_instance_89;
  }
  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_89().mko_1);
    }
    HolidayCalendar_init_$Init$(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, serializationConstructorMarker, $this);
    if (0 === (seen1 & 256))
      $this.wko_1 = 0;
    else
      $this.wko_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.wko_1 = 0;
  }
  function Companion_93() {
    Companion_instance_94 = this;
    this.xko_1 = 13;
    this.yko_1 = new Long(10000, 0);
    this.zko_1 = new Long(10001, 0);
    this.akp_1 = new Long(10002, 0);
    this.bkp_1 = new Long(10003, 0);
    this.ckp_1 = new Long(10004, 0);
    this.dkp_1 = new Long(10005, 0);
    this.ekp_1 = new Long(10006, 0);
    this.fkp_1 = new Long(10007, 0);
    this.gkp_1 = new Long(10008, 0);
    this.hkp_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.pcn_1 = 'English';
    this_0.ocn_1 = new Long(10000, 0);
    this_0.qcn_1 = 'en';
    this_0.rcn_1 = 'eng';
    this_0.scn_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.pcn_1 = '\u0627\u0644\u0639\u0631\u0628\u064A\u0629';
    this_1.ocn_1 = new Long(10001, 0);
    this_1.qcn_1 = 'ar';
    this_1.rcn_1 = 'ara';
    this_1.scn_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.pcn_1 = '\u09AC\u09BE\u0982\u09B2\u09BE';
    this_2.ocn_1 = new Long(10002, 0);
    this_2.qcn_1 = 'bn';
    this_2.rcn_1 = 'ben';
    this_2.scn_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.pcn_1 = '\u1019\u103C\u1014\u103A\u1019\u102C';
    this_3.ocn_1 = new Long(10003, 0);
    this_3.qcn_1 = 'my';
    this_3.rcn_1 = 'bur';
    this_3.scn_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.pcn_1 = 'Ikinyarwanda';
    this_4.ocn_1 = new Long(10004, 0);
    this_4.qcn_1 = 'rw';
    this_4.rcn_1 = 'kin';
    this_4.scn_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.pcn_1 = '\u0928\u0947\u092A\u093E\u0932\u0940';
    this_5.ocn_1 = new Long(10005, 0);
    this_5.qcn_1 = 'ne';
    this_5.rcn_1 = 'nep';
    this_5.scn_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.pcn_1 = '\u067E\u069A\u062A\u0648';
    this_6.ocn_1 = new Long(10006, 0);
    this_6.qcn_1 = 'ps';
    this_6.rcn_1 = 'pus';
    this_6.scn_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.pcn_1 = '\u0641\u0627\u0631\u0633\u06CC';
    this_7.ocn_1 = new Long(10007, 0);
    this_7.qcn_1 = 'fa';
    this_7.rcn_1 = 'per';
    this_7.scn_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.pcn_1 = '\u0440\u0443\u0441\u0441\u043A\u0438\u0439';
    this_8.ocn_1 = new Long(10008, 0);
    this_8.qcn_1 = 'ru';
    this_8.rcn_1 = 'rus';
    this_8.scn_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.pcn_1 = '\u0422\u043E\u04B7\u0438\u043A\u04E3';
    this_9.ocn_1 = new Long(10009, 0);
    this_9.qcn_1 = 'tg';
    this_9.rcn_1 = 'tgk';
    this_9.scn_1 = 'tgk';
    tmp.ikp_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_94;
  function Companion_getInstance_96() {
    if (Companion_instance_94 == null)
      new Companion_93();
    return Companion_instance_94;
  }
  function $serializer_90() {
    $serializer_instance_90 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Language', this, 11);
    tmp0_serialDesc.t4f('langUid', true);
    tmp0_serialDesc.t4f('name', true);
    tmp0_serialDesc.t4f('iso_639_1_standard', true);
    tmp0_serialDesc.t4f('iso_639_2_standard', true);
    tmp0_serialDesc.t4f('iso_639_3_standard', true);
    tmp0_serialDesc.t4f('Language_Type', true);
    tmp0_serialDesc.t4f('languageActive', true);
    tmp0_serialDesc.t4f('langLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('langMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('langLastChangedBy', true);
    tmp0_serialDesc.t4f('langLct', true);
    this.jkp_1 = tmp0_serialDesc;
  }
  protoOf($serializer_90).q44 = function () {
    return this.jkp_1;
  };
  protoOf($serializer_90).k4g = 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_90).s44 = function (decoder) {
    var tmp0_desc = this.jkp_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.i48(tmp0_desc);
    if (tmp15_input.x48()) {
      tmp4_local0 = tmp15_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp15_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp15_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp15_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp15_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp15_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp15_input.k48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp15_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp15_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp15_input.n48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp15_input.o48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp15_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp15_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp15_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp15_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp15_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp15_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp15_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp15_input.k48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp15_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp15_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp15_input.n48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp15_input.o48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp15_input.j48(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_90).kkp = function (encoder, value) {
    var tmp0_desc = this.jkp_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.ocn_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.ocn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.pcn_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.pcn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.qcn_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.qcn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.rcn_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.rcn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.scn_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.scn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.tcn_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.tcn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.ucn_1 === true)) {
      tmp1_output.o49(tmp0_desc, 6, value.ucn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.vcn_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.vcn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.wcn_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.wcn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.xcn_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 9, value.xcn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !value.ycn_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 10, value.ycn_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_90).r44 = function (encoder, value) {
    return this.kkp(encoder, value instanceof Language ? value : THROW_CCE());
  };
  var $serializer_instance_90;
  function $serializer_getInstance_90() {
    if ($serializer_instance_90 == null)
      new $serializer_90();
    return $serializer_instance_90;
  }
  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_90().jkp_1);
    }
    if (0 === (seen1 & 1))
      $this.ocn_1 = new Long(0, 0);
    else
      $this.ocn_1 = langUid;
    if (0 === (seen1 & 2))
      $this.pcn_1 = null;
    else
      $this.pcn_1 = name;
    if (0 === (seen1 & 4))
      $this.qcn_1 = null;
    else
      $this.qcn_1 = iso_639_1_standard;
    if (0 === (seen1 & 8))
      $this.rcn_1 = null;
    else
      $this.rcn_1 = iso_639_2_standard;
    if (0 === (seen1 & 16))
      $this.scn_1 = null;
    else
      $this.scn_1 = iso_639_3_standard;
    if (0 === (seen1 & 32))
      $this.tcn_1 = null;
    else
      $this.tcn_1 = Language_Type;
    if (0 === (seen1 & 64))
      $this.ucn_1 = true;
    else
      $this.ucn_1 = languageActive;
    if (0 === (seen1 & 128))
      $this.vcn_1 = new Long(0, 0);
    else
      $this.vcn_1 = langLocalChangeSeqNum;
    if (0 === (seen1 & 256))
      $this.wcn_1 = new Long(0, 0);
    else
      $this.wcn_1 = langMasterChangeSeqNum;
    if (0 === (seen1 & 512))
      $this.xcn_1 = 0;
    else
      $this.xcn_1 = langLastChangedBy;
    if (0 === (seen1 & 1024))
      $this.ycn_1 = new Long(0, 0);
    else
      $this.ycn_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_96();
    this.ocn_1 = new Long(0, 0);
    this.pcn_1 = null;
    this.qcn_1 = null;
    this.rcn_1 = null;
    this.scn_1 = null;
    this.tcn_1 = null;
    this.ucn_1 = true;
    this.vcn_1 = new Long(0, 0);
    this.wcn_1 = new Long(0, 0);
    this.xcn_1 = 0;
    this.ycn_1 = new Long(0, 0);
  }
  protoOf(Language).toString = function () {
    return toString(this.pcn_1);
  };
  protoOf(Language).equals = function (other) {
    if (this === other)
      return true;
    var language = (other == null ? true : other instanceof Language) ? other : THROW_CCE();
    if (!this.ocn_1.equals(ensureNotNull(language).ocn_1))
      return false;
    if (!(this.pcn_1 == null) ? !(this.pcn_1 == language.pcn_1) : !(language.pcn_1 == null))
      return false;
    if (!(this.qcn_1 == null) ? !(this.qcn_1 == language.qcn_1) : !(language.qcn_1 == null))
      return false;
    if (!(this.rcn_1 == null) ? !(this.rcn_1 == language.rcn_1) : !(language.rcn_1 == null))
      return false;
    return !(this.scn_1 == null) ? this.scn_1 == language.scn_1 : language.scn_1 == null;
  };
  protoOf(Language).hashCode = function () {
    var result = this.ocn_1.wc(this.ocn_1.tc(32)).mb();
    result = imul(31, result) + (!(this.pcn_1 == null) ? getStringHashCode(ensureNotNull(this.pcn_1)) : 0) | 0;
    result = imul(31, result) + (!(this.qcn_1 == null) ? getStringHashCode(ensureNotNull(this.qcn_1)) : 0) | 0;
    result = imul(31, result) + (!(this.rcn_1 == null) ? getStringHashCode(ensureNotNull(this.rcn_1)) : 0) | 0;
    result = imul(31, result) + (!(this.scn_1 == null) ? getStringHashCode(ensureNotNull(this.scn_1)) : 0) | 0;
    return result;
  };
  function Companion_94() {
    this.lkp_1 = 10;
  }
  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.LanguageVariant', this, 8);
    tmp0_serialDesc.t4f('langVariantUid', true);
    tmp0_serialDesc.t4f('langUid', true);
    tmp0_serialDesc.t4f('countryCode', true);
    tmp0_serialDesc.t4f('name', true);
    tmp0_serialDesc.t4f('langVariantLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('langVariantMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('langVariantLastChangedBy', true);
    tmp0_serialDesc.t4f('langVariantLct', true);
    this.mkp_1 = tmp0_serialDesc;
  }
  protoOf($serializer_91).q44 = function () {
    return this.mkp_1;
  };
  protoOf($serializer_91).k4g = 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_91).s44 = function (decoder) {
    var tmp0_desc = this.mkp_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.i48(tmp0_desc);
    if (tmp12_input.x48()) {
      tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.n48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.n48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.j48(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_91).nkp = function (encoder, value) {
    var tmp0_desc = this.mkp_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.zff_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.zff_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.afg_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.afg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.bfg_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.bfg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.cfg_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.cfg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.dfg_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.dfg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.efg_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.efg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.ffg_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 6, value.ffg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.gfg_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.gfg_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_91).r44 = function (encoder, value) {
    return this.nkp(encoder, value instanceof LanguageVariant ? value : THROW_CCE());
  };
  var $serializer_instance_91;
  function $serializer_getInstance_91() {
    if ($serializer_instance_91 == null)
      new $serializer_91();
    return $serializer_instance_91;
  }
  function LanguageVariant_init_$Init$(seen1, langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_91().mkp_1);
    }
    if (0 === (seen1 & 1))
      $this.zff_1 = new Long(0, 0);
    else
      $this.zff_1 = langVariantUid;
    if (0 === (seen1 & 2))
      $this.afg_1 = new Long(0, 0);
    else
      $this.afg_1 = langUid;
    if (0 === (seen1 & 4))
      $this.bfg_1 = null;
    else
      $this.bfg_1 = countryCode;
    if (0 === (seen1 & 8))
      $this.cfg_1 = null;
    else
      $this.cfg_1 = name;
    if (0 === (seen1 & 16))
      $this.dfg_1 = new Long(0, 0);
    else
      $this.dfg_1 = langVariantLocalChangeSeqNum;
    if (0 === (seen1 & 32))
      $this.efg_1 = new Long(0, 0);
    else
      $this.efg_1 = langVariantMasterChangeSeqNum;
    if (0 === (seen1 & 64))
      $this.ffg_1 = 0;
    else
      $this.ffg_1 = langVariantLastChangedBy;
    if (0 === (seen1 & 128))
      $this.gfg_1 = new Long(0, 0);
    else
      $this.gfg_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.zff_1 = new Long(0, 0);
    this.afg_1 = new Long(0, 0);
    this.bfg_1 = null;
    this.cfg_1 = null;
    this.dfg_1 = new Long(0, 0);
    this.efg_1 = new Long(0, 0);
    this.ffg_1 = 0;
    this.gfg_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.zff_1.equals(ensureNotNull(that).zff_1))
      return false;
    if (!this.afg_1.equals(that.afg_1))
      return false;
    if (!(this.bfg_1 == null) ? !(this.bfg_1 == that.bfg_1) : !(that.bfg_1 == null))
      return false;
    return !(this.cfg_1 == null) ? this.cfg_1 == that.cfg_1 : that.cfg_1 == null;
  };
  protoOf(LanguageVariant).hashCode = function () {
    var result = this.zff_1.wc(this.zff_1.tc(32)).mb();
    result = imul(31, result) + this.afg_1.wc(this.afg_1.tc(32)).mb() | 0;
    result = imul(31, result) + (!(this.bfg_1 == null) ? getStringHashCode(ensureNotNull(this.bfg_1)) : 0) | 0;
    result = imul(31, result) + (!(this.cfg_1 == null) ? getStringHashCode(ensureNotNull(this.cfg_1)) : 0) | 0;
    return result;
  };
  function Companion_95() {
    Companion_instance_96 = this;
    this.okp_1 = 410;
    this.pkp_1 = 'Moved';
    this.qkp_1 = new Long(10000, 0);
    this.rkp_1 = 'Medical';
    this.skp_1 = new Long(10001, 0);
    this.tkp_1 = 'Transportation problem';
    this.ukp_1 = new Long(10002, 0);
    this.vkp_1 = 'Family economic problem';
    this.wkp_1 = new Long(10003, 0);
    this.xkp_1 = 'Failed test';
    this.ykp_1 = new Long(10004, 0);
    this.zkp_1 = 'Passed test';
    this.akq_1 = new Long(10005, 0);
    this.bkq_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_95).n4r = function () {
    return $serializer_getInstance_92();
  };
  var Companion_instance_96;
  function Companion_getInstance_98() {
    if (Companion_instance_96 == null)
      new Companion_95();
    return Companion_instance_96;
  }
  function $serializer_92() {
    $serializer_instance_92 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.LeavingReason', this, 6);
    tmp0_serialDesc.t4f('leavingReasonUid', true);
    tmp0_serialDesc.t4f('leavingReasonTitle', true);
    tmp0_serialDesc.t4f('leavingReasonMCSN', true);
    tmp0_serialDesc.t4f('leavingReasonCSN', true);
    tmp0_serialDesc.t4f('leavingReasonLCB', true);
    tmp0_serialDesc.t4f('leavingReasonLct', true);
    this.ckq_1 = tmp0_serialDesc;
  }
  protoOf($serializer_92).q44 = function () {
    return this.ckq_1;
  };
  protoOf($serializer_92).k4g = 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_92).s44 = function (decoder) {
    var tmp0_desc = this.ckq_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.i48(tmp0_desc);
    if (tmp10_input.x48()) {
      tmp4_local0 = tmp10_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.n48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.n48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.j48(tmp0_desc);
    return LeavingReason_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_92).dkq = function (encoder, value) {
    var tmp0_desc = this.ckq_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.t94_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.t94_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.u94_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.u94_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.v94_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.v94_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.w94_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.w94_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.x94_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 4, value.x94_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.y94_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.y94_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_92).r44 = function (encoder, value) {
    return this.dkq(encoder, value instanceof LeavingReason ? value : THROW_CCE());
  };
  var $serializer_instance_92;
  function $serializer_getInstance_92() {
    if ($serializer_instance_92 == null)
      new $serializer_92();
    return $serializer_instance_92;
  }
  function LeavingReason_init_$Init$(seen1, leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_92().ckq_1);
    }
    if (0 === (seen1 & 1))
      $this.t94_1 = new Long(0, 0);
    else
      $this.t94_1 = leavingReasonUid;
    if (0 === (seen1 & 2))
      $this.u94_1 = null;
    else
      $this.u94_1 = leavingReasonTitle;
    if (0 === (seen1 & 4))
      $this.v94_1 = new Long(0, 0);
    else
      $this.v94_1 = leavingReasonMCSN;
    if (0 === (seen1 & 8))
      $this.w94_1 = new Long(0, 0);
    else
      $this.w94_1 = leavingReasonCSN;
    if (0 === (seen1 & 16))
      $this.x94_1 = 0;
    else
      $this.x94_1 = leavingReasonLCB;
    if (0 === (seen1 & 32))
      $this.y94_1 = new Long(0, 0);
    else
      $this.y94_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_98();
    this.t94_1 = new Long(0, 0);
    this.u94_1 = null;
    this.v94_1 = new Long(0, 0);
    this.w94_1 = new Long(0, 0);
    this.x94_1 = 0;
    this.y94_1 = new Long(0, 0);
  }
  function Companion_96() {
    this.ekq_1 = 126;
  }
  var Companion_instance_97;
  function Companion_getInstance_99() {
    return Companion_instance_97;
  }
  function $serializer_93() {
    $serializer_instance_93 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Message', this, 6);
    tmp0_serialDesc.t4f('messageUid', true);
    tmp0_serialDesc.t4f('messageSenderPersonUid', true);
    tmp0_serialDesc.t4f('messageToPersonUid', true);
    tmp0_serialDesc.t4f('messageText', true);
    tmp0_serialDesc.t4f('messageTimestamp', true);
    tmp0_serialDesc.t4f('messageLct', true);
    this.fkq_1 = tmp0_serialDesc;
  }
  protoOf($serializer_93).q44 = function () {
    return this.fkq_1;
  };
  protoOf($serializer_93).k4g = 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_93).s44 = function (decoder) {
    var tmp0_desc = this.fkq_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.i48(tmp0_desc);
    if (tmp10_input.x48()) {
      tmp4_local0 = tmp10_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.j48(tmp0_desc);
    return Message_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_93).gkq = function (encoder, value) {
    var tmp0_desc = this.fkq_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.rfl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.rfl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.sfl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.sfl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.tfl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.tfl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.ufl_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.ufl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.vfl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.vfl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.wfl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.wfl_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_93).r44 = function (encoder, value) {
    return this.gkq(encoder, value instanceof Message ? value : THROW_CCE());
  };
  var $serializer_instance_93;
  function $serializer_getInstance_93() {
    if ($serializer_instance_93 == null)
      new $serializer_93();
    return $serializer_instance_93;
  }
  function Message_init_$Init$(seen1, messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_93().fkq_1);
    }
    if (0 === (seen1 & 1))
      $this.rfl_1 = new Long(0, 0);
    else
      $this.rfl_1 = messageUid;
    if (0 === (seen1 & 2))
      $this.sfl_1 = new Long(0, 0);
    else
      $this.sfl_1 = messageSenderPersonUid;
    if (0 === (seen1 & 4))
      $this.tfl_1 = new Long(0, 0);
    else
      $this.tfl_1 = messageToPersonUid;
    if (0 === (seen1 & 8))
      $this.ufl_1 = null;
    else
      $this.ufl_1 = messageText;
    if (0 === (seen1 & 16))
      $this.vfl_1 = new Long(0, 0);
    else
      $this.vfl_1 = messageTimestamp;
    if (0 === (seen1 & 32))
      $this.wfl_1 = new Long(0, 0);
    else
      $this.wfl_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.rfl_1 = messageUid;
    this.sfl_1 = messageSenderPersonUid;
    this.tfl_1 = messageToPersonUid;
    this.ufl_1 = messageText;
    this.vfl_1 = messageTimestamp;
    this.wfl_1 = messageLct;
  }
  protoOf(Message).toString = function () {
    return 'Message(messageUid=' + this.rfl_1.toString() + ', messageSenderPersonUid=' + this.sfl_1.toString() + ', messageToPersonUid=' + this.tfl_1.toString() + ', messageText=' + this.ufl_1 + ', messageTimestamp=' + this.vfl_1.toString() + ', messageLct=' + this.wfl_1.toString() + ')';
  };
  protoOf(Message).hashCode = function () {
    var result = this.rfl_1.hashCode();
    result = imul(result, 31) + this.sfl_1.hashCode() | 0;
    result = imul(result, 31) + this.tfl_1.hashCode() | 0;
    result = imul(result, 31) + (this.ufl_1 == null ? 0 : getStringHashCode(this.ufl_1)) | 0;
    result = imul(result, 31) + this.vfl_1.hashCode() | 0;
    result = imul(result, 31) + this.wfl_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.rfl_1.equals(tmp0_other_with_cast.rfl_1))
      return false;
    if (!this.sfl_1.equals(tmp0_other_with_cast.sfl_1))
      return false;
    if (!this.tfl_1.equals(tmp0_other_with_cast.tfl_1))
      return false;
    if (!(this.ufl_1 == tmp0_other_with_cast.ufl_1))
      return false;
    if (!this.vfl_1.equals(tmp0_other_with_cast.vfl_1))
      return false;
    if (!this.wfl_1.equals(tmp0_other_with_cast.wfl_1))
      return false;
    return true;
  };
  function Companion_97() {
    this.hkq_1 = 971;
  }
  var Companion_instance_98;
  function Companion_getInstance_100() {
    return Companion_instance_98;
  }
  function $serializer_94() {
    $serializer_instance_94 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.OfflineItem', this, 7);
    tmp0_serialDesc.t4f('oiUid', true);
    tmp0_serialDesc.t4f('oiNodeId', true);
    tmp0_serialDesc.t4f('oiClazzUid', true);
    tmp0_serialDesc.t4f('oiCourseBlockUid', true);
    tmp0_serialDesc.t4f('oiContentEntryUid', true);
    tmp0_serialDesc.t4f('oiActive', true);
    tmp0_serialDesc.t4f('oiLct', true);
    this.ikq_1 = tmp0_serialDesc;
  }
  protoOf($serializer_94).q44 = function () {
    return this.ikq_1;
  };
  protoOf($serializer_94).k4g = 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_94).s44 = function (decoder) {
    var tmp0_desc = this.ikq_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.i48(tmp0_desc);
    if (tmp11_input.x48()) {
      tmp4_local0 = tmp11_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp11_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp11_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp11_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp11_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp11_input.k48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp11_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp11_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp11_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp11_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp11_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp11_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp11_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp11_input.k48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp11_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp11_input.j48(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_94).jkq = function (encoder, value) {
    var tmp0_desc = this.ikq_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.jfr_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.jfr_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.kfr_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.kfr_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.lfr_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.lfr_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.mfr_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.mfr_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.nfr_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.nfr_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.ofr_1 === true)) {
      tmp1_output.o49(tmp0_desc, 5, value.ofr_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.pfr_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.pfr_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_94).r44 = function (encoder, value) {
    return this.jkq(encoder, value instanceof OfflineItem ? value : THROW_CCE());
  };
  var $serializer_instance_94;
  function $serializer_getInstance_94() {
    if ($serializer_instance_94 == null)
      new $serializer_94();
    return $serializer_instance_94;
  }
  function OfflineItem_init_$Init$(seen1, oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_94().ikq_1);
    }
    if (0 === (seen1 & 1))
      $this.jfr_1 = new Long(0, 0);
    else
      $this.jfr_1 = oiUid;
    if (0 === (seen1 & 2))
      $this.kfr_1 = new Long(0, 0);
    else
      $this.kfr_1 = oiNodeId;
    if (0 === (seen1 & 4))
      $this.lfr_1 = new Long(0, 0);
    else
      $this.lfr_1 = oiClazzUid;
    if (0 === (seen1 & 8))
      $this.mfr_1 = new Long(0, 0);
    else
      $this.mfr_1 = oiCourseBlockUid;
    if (0 === (seen1 & 16))
      $this.nfr_1 = new Long(0, 0);
    else
      $this.nfr_1 = oiContentEntryUid;
    if (0 === (seen1 & 32))
      $this.ofr_1 = true;
    else
      $this.ofr_1 = oiActive;
    if (0 === (seen1 & 64))
      $this.pfr_1 = new Long(0, 0);
    else
      $this.pfr_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.jfr_1 = oiUid;
    this.kfr_1 = oiNodeId;
    this.lfr_1 = oiClazzUid;
    this.mfr_1 = oiCourseBlockUid;
    this.nfr_1 = oiContentEntryUid;
    this.ofr_1 = oiActive;
    this.pfr_1 = oiLct;
  }
  protoOf(OfflineItem).toString = function () {
    return 'OfflineItem(oiUid=' + this.jfr_1.toString() + ', oiNodeId=' + this.kfr_1.toString() + ', oiClazzUid=' + this.lfr_1.toString() + ', oiCourseBlockUid=' + this.mfr_1.toString() + ', oiContentEntryUid=' + this.nfr_1.toString() + ', oiActive=' + this.ofr_1 + ', oiLct=' + this.pfr_1.toString() + ')';
  };
  protoOf(OfflineItem).hashCode = function () {
    var result = this.jfr_1.hashCode();
    result = imul(result, 31) + this.kfr_1.hashCode() | 0;
    result = imul(result, 31) + this.lfr_1.hashCode() | 0;
    result = imul(result, 31) + this.mfr_1.hashCode() | 0;
    result = imul(result, 31) + this.nfr_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.ofr_1) | 0;
    result = imul(result, 31) + this.pfr_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.jfr_1.equals(tmp0_other_with_cast.jfr_1))
      return false;
    if (!this.kfr_1.equals(tmp0_other_with_cast.kfr_1))
      return false;
    if (!this.lfr_1.equals(tmp0_other_with_cast.lfr_1))
      return false;
    if (!this.mfr_1.equals(tmp0_other_with_cast.mfr_1))
      return false;
    if (!this.nfr_1.equals(tmp0_other_with_cast.nfr_1))
      return false;
    if (!(this.ofr_1 === tmp0_other_with_cast.ofr_1))
      return false;
    if (!this.pfr_1.equals(tmp0_other_with_cast.pfr_1))
      return false;
    return true;
  };
  function Companion_98() {
    this.kkq_1 = 140;
  }
  protoOf(Companion_98).n4r = function () {
    return $serializer_getInstance_95();
  };
  var Companion_instance_99;
  function Companion_getInstance_101() {
    return Companion_instance_99;
  }
  function $serializer_95() {
    $serializer_instance_95 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PeerReviewerAllocation', this, 6);
    tmp0_serialDesc.t4f('praUid', true);
    tmp0_serialDesc.t4f('praMarkerSubmitterUid', true);
    tmp0_serialDesc.t4f('praToMarkerSubmitterUid', true);
    tmp0_serialDesc.t4f('praAssignmentUid', true);
    tmp0_serialDesc.t4f('praActive', true);
    tmp0_serialDesc.t4f('praLct', true);
    this.lkq_1 = tmp0_serialDesc;
  }
  protoOf($serializer_95).q44 = function () {
    return this.lkq_1;
  };
  protoOf($serializer_95).k4g = 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_95).s44 = function (decoder) {
    var tmp0_desc = this.lkq_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.i48(tmp0_desc);
    if (tmp10_input.x48()) {
      tmp4_local0 = tmp10_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.k48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.k48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.j48(tmp0_desc);
    return PeerReviewerAllocation_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_95).mkq = function (encoder, value) {
    var tmp0_desc = this.lkq_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.nfu_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.nfu_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.ofu_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.ofu_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.pfu_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.pfu_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.qfu_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.qfu_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.rfu_1 === true)) {
      tmp1_output.o49(tmp0_desc, 4, value.rfu_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.sfu_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.sfu_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_95).r44 = function (encoder, value) {
    return this.mkq(encoder, value instanceof PeerReviewerAllocation ? value : THROW_CCE());
  };
  var $serializer_instance_95;
  function $serializer_getInstance_95() {
    if ($serializer_instance_95 == null)
      new $serializer_95();
    return $serializer_instance_95;
  }
  function PeerReviewerAllocation_init_$Init$(seen1, praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_95().lkq_1);
    }
    if (0 === (seen1 & 1))
      $this.nfu_1 = new Long(0, 0);
    else
      $this.nfu_1 = praUid;
    if (0 === (seen1 & 2))
      $this.ofu_1 = new Long(0, 0);
    else
      $this.ofu_1 = praMarkerSubmitterUid;
    if (0 === (seen1 & 4))
      $this.pfu_1 = new Long(0, 0);
    else
      $this.pfu_1 = praToMarkerSubmitterUid;
    if (0 === (seen1 & 8))
      $this.qfu_1 = new Long(0, 0);
    else
      $this.qfu_1 = praAssignmentUid;
    if (0 === (seen1 & 16))
      $this.rfu_1 = true;
    else
      $this.rfu_1 = praActive;
    if (0 === (seen1 & 32))
      $this.sfu_1 = new Long(0, 0);
    else
      $this.sfu_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.nfu_1 = praUid;
    this.ofu_1 = praMarkerSubmitterUid;
    this.pfu_1 = praToMarkerSubmitterUid;
    this.qfu_1 = praAssignmentUid;
    this.rfu_1 = praActive;
    this.sfu_1 = praLct;
  }
  protoOf(PeerReviewerAllocation).nkq = function (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) {
    return new PeerReviewerAllocation(praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct);
  };
  protoOf(PeerReviewerAllocation).okq = function (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct, $super) {
    praUid = praUid === VOID ? this.nfu_1 : praUid;
    praMarkerSubmitterUid = praMarkerSubmitterUid === VOID ? this.ofu_1 : praMarkerSubmitterUid;
    praToMarkerSubmitterUid = praToMarkerSubmitterUid === VOID ? this.pfu_1 : praToMarkerSubmitterUid;
    praAssignmentUid = praAssignmentUid === VOID ? this.qfu_1 : praAssignmentUid;
    praActive = praActive === VOID ? this.rfu_1 : praActive;
    praLct = praLct === VOID ? this.sfu_1 : praLct;
    return $super === VOID ? this.nkq(praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) : $super.nkq.call(this, praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct);
  };
  protoOf(PeerReviewerAllocation).toString = function () {
    return 'PeerReviewerAllocation(praUid=' + this.nfu_1.toString() + ', praMarkerSubmitterUid=' + this.ofu_1.toString() + ', praToMarkerSubmitterUid=' + this.pfu_1.toString() + ', praAssignmentUid=' + this.qfu_1.toString() + ', praActive=' + this.rfu_1 + ', praLct=' + this.sfu_1.toString() + ')';
  };
  protoOf(PeerReviewerAllocation).hashCode = function () {
    var result = this.nfu_1.hashCode();
    result = imul(result, 31) + this.ofu_1.hashCode() | 0;
    result = imul(result, 31) + this.pfu_1.hashCode() | 0;
    result = imul(result, 31) + this.qfu_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.rfu_1) | 0;
    result = imul(result, 31) + this.sfu_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.nfu_1.equals(tmp0_other_with_cast.nfu_1))
      return false;
    if (!this.ofu_1.equals(tmp0_other_with_cast.ofu_1))
      return false;
    if (!this.pfu_1.equals(tmp0_other_with_cast.pfu_1))
      return false;
    if (!this.qfu_1.equals(tmp0_other_with_cast.qfu_1))
      return false;
    if (!(this.rfu_1 === tmp0_other_with_cast.rfu_1))
      return false;
    if (!this.sfu_1.equals(tmp0_other_with_cast.sfu_1))
      return false;
    return true;
  };
  function Companion_99() {
    this.pkq_1 = 9;
    this.qkq_1 = 0;
    this.rkq_1 = 1;
    this.skq_1 = 2;
    this.tkq_1 = 4;
    this.ukq_1 = 0;
    this.vkq_1 = 1;
    this.wkq_1 = 2;
    this.xkq_1 = '\n            JOIN ScopedGrant\n                 ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n                    AND (ScopedGrant.sgPermissions &';
    this.ykq_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.zkq_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_99).n4r = function () {
    return $serializer_getInstance_96();
  };
  var Companion_instance_100;
  function Companion_getInstance_102() {
    return Companion_instance_100;
  }
  function $serializer_96() {
    $serializer_instance_96 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Person', this, 25);
    tmp0_serialDesc.t4f('personUid', true);
    tmp0_serialDesc.t4f('username', true);
    tmp0_serialDesc.t4f('firstNames', true);
    tmp0_serialDesc.t4f('lastName', true);
    tmp0_serialDesc.t4f('emailAddr', true);
    tmp0_serialDesc.t4f('phoneNum', true);
    tmp0_serialDesc.t4f('gender', true);
    tmp0_serialDesc.t4f('active', true);
    tmp0_serialDesc.t4f('isPersonalAccount', true);
    tmp0_serialDesc.t4f('dateOfBirth', true);
    tmp0_serialDesc.t4f('personAddress', true);
    tmp0_serialDesc.t4f('personOrgId', true);
    tmp0_serialDesc.t4f('personGroupUid', true);
    tmp0_serialDesc.t4f('personLct', true);
    tmp0_serialDesc.t4f('personCountry', true);
    tmp0_serialDesc.t4f('personType', true);
    tmp0_serialDesc.t4f('personMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('personLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('personLastChangedBy', true);
    tmp0_serialDesc.t4f('admin', true);
    tmp0_serialDesc.t4f('personNotes', true);
    tmp0_serialDesc.t4f('fatherName', true);
    tmp0_serialDesc.t4f('fatherNumber', true);
    tmp0_serialDesc.t4f('motherName', true);
    tmp0_serialDesc.t4f('motherNum', true);
    this.akr_1 = tmp0_serialDesc;
  }
  protoOf($serializer_96).q44 = function () {
    return this.akr_1;
  };
  protoOf($serializer_96).k4g = 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(), 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_96).s44 = function (decoder) {
    var tmp0_desc = this.akr_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 = false;
    var tmp13_local9 = new Long(0, 0);
    var tmp14_local10 = null;
    var tmp15_local11 = null;
    var tmp16_local12 = new Long(0, 0);
    var tmp17_local13 = new Long(0, 0);
    var tmp18_local14 = null;
    var tmp19_local15 = 0;
    var tmp20_local16 = new Long(0, 0);
    var tmp21_local17 = new Long(0, 0);
    var tmp22_local18 = 0;
    var tmp23_local19 = false;
    var tmp24_local20 = null;
    var tmp25_local21 = null;
    var tmp26_local22 = null;
    var tmp27_local23 = null;
    var tmp28_local24 = null;
    var tmp29_input = decoder.i48(tmp0_desc);
    if (tmp29_input.x48()) {
      tmp4_local0 = tmp29_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp29_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp29_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp29_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp29_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp29_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp29_input.n48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp29_input.k48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp29_input.k48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp29_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp29_input.w48(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp29_input.w48(tmp0_desc, 11, StringSerializer_getInstance(), tmp15_local11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp29_input.o48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp29_input.o48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp29_input.w48(tmp0_desc, 14, StringSerializer_getInstance(), tmp18_local14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp29_input.n48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp29_input.o48(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp29_input.o48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp29_input.n48(tmp0_desc, 18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp29_input.k48(tmp0_desc, 19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp24_local20 = tmp29_input.w48(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp25_local21 = tmp29_input.w48(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp26_local22 = tmp29_input.w48(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
      tmp27_local23 = tmp29_input.w48(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23);
      tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
      tmp28_local24 = tmp29_input.w48(tmp0_desc, 24, StringSerializer_getInstance(), tmp28_local24);
      tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp29_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp29_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp29_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp29_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp29_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp29_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp29_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp29_input.n48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp29_input.k48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp29_input.k48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp29_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp29_input.w48(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp29_input.w48(tmp0_desc, 11, StringSerializer_getInstance(), tmp15_local11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp29_input.o48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp29_input.o48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp29_input.w48(tmp0_desc, 14, StringSerializer_getInstance(), tmp18_local14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp29_input.n48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp29_input.o48(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp29_input.o48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp29_input.n48(tmp0_desc, 18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp29_input.k48(tmp0_desc, 19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp24_local20 = tmp29_input.w48(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp25_local21 = tmp29_input.w48(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp26_local22 = tmp29_input.w48(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          case 23:
            tmp27_local23 = tmp29_input.w48(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23);
            tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
            break;
          case 24:
            tmp28_local24 = tmp29_input.w48(tmp0_desc, 24, StringSerializer_getInstance(), tmp28_local24);
            tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp29_input.j48(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, tmp28_local24, null);
  };
  protoOf($serializer_96).bkr = function (encoder, value) {
    var tmp0_desc = this.akr_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.f96_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.f96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.g96_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.g96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.h96_1 === '')) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.h96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.i96_1 === '')) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.i96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.j96_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.j96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.k96_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.k96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.l96_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 6, value.l96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.m96_1 === true)) {
      tmp1_output.o49(tmp0_desc, 7, value.m96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.n96_1 === false)) {
      tmp1_output.o49(tmp0_desc, 8, value.n96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !value.o96_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 9, value.o96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.p96_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 10, StringSerializer_getInstance(), value.p96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !(value.q96_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 11, StringSerializer_getInstance(), value.q96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !value.r96_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 12, value.r96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !value.s96_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 13, value.s96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 14) ? true : !(value.t96_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 14, StringSerializer_getInstance(), value.t96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 15) ? true : !(value.u96_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 15, value.u96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 16) ? true : !value.v96_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 16, value.v96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 17) ? true : !value.w96_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 17, value.w96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 18) ? true : !(value.x96_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 18, value.x96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 19) ? true : !(value.y96_1 === false)) {
      tmp1_output.o49(tmp0_desc, 19, value.y96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 20) ? true : !(value.z96_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 20, StringSerializer_getInstance(), value.z96_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 21) ? true : !(value.a97_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 21, StringSerializer_getInstance(), value.a97_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 22) ? true : !(value.b97_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 22, StringSerializer_getInstance(), value.b97_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 23) ? true : !(value.c97_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 23, StringSerializer_getInstance(), value.c97_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 24) ? true : !(value.d97_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 24, StringSerializer_getInstance(), value.d97_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_96).r44 = function (encoder, value) {
    return this.bkr(encoder, value instanceof Person ? value : THROW_CCE());
  };
  var $serializer_instance_96;
  function $serializer_getInstance_96() {
    if ($serializer_instance_96 == null)
      new $serializer_96();
    return $serializer_instance_96;
  }
  function Person_init_$Init$(seen1, personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, isPersonalAccount, 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_96().akr_1);
    }
    if (0 === (seen1 & 1))
      $this.f96_1 = new Long(0, 0);
    else
      $this.f96_1 = personUid;
    if (0 === (seen1 & 2))
      $this.g96_1 = null;
    else
      $this.g96_1 = username;
    if (0 === (seen1 & 4))
      $this.h96_1 = '';
    else
      $this.h96_1 = firstNames;
    if (0 === (seen1 & 8))
      $this.i96_1 = '';
    else
      $this.i96_1 = lastName;
    if (0 === (seen1 & 16))
      $this.j96_1 = null;
    else
      $this.j96_1 = emailAddr;
    if (0 === (seen1 & 32))
      $this.k96_1 = null;
    else
      $this.k96_1 = phoneNum;
    if (0 === (seen1 & 64))
      $this.l96_1 = 0;
    else
      $this.l96_1 = gender;
    if (0 === (seen1 & 128))
      $this.m96_1 = true;
    else
      $this.m96_1 = active;
    if (0 === (seen1 & 256))
      $this.n96_1 = false;
    else
      $this.n96_1 = isPersonalAccount;
    if (0 === (seen1 & 512))
      $this.o96_1 = new Long(0, 0);
    else
      $this.o96_1 = dateOfBirth;
    if (0 === (seen1 & 1024))
      $this.p96_1 = null;
    else
      $this.p96_1 = personAddress;
    if (0 === (seen1 & 2048))
      $this.q96_1 = null;
    else
      $this.q96_1 = personOrgId;
    if (0 === (seen1 & 4096))
      $this.r96_1 = new Long(0, 0);
    else
      $this.r96_1 = personGroupUid;
    if (0 === (seen1 & 8192))
      $this.s96_1 = new Long(0, 0);
    else
      $this.s96_1 = personLct;
    if (0 === (seen1 & 16384))
      $this.t96_1 = null;
    else
      $this.t96_1 = personCountry;
    if (0 === (seen1 & 32768))
      $this.u96_1 = 0;
    else
      $this.u96_1 = personType;
    if (0 === (seen1 & 65536))
      $this.v96_1 = new Long(0, 0);
    else
      $this.v96_1 = personMasterChangeSeqNum;
    if (0 === (seen1 & 131072))
      $this.w96_1 = new Long(0, 0);
    else
      $this.w96_1 = personLocalChangeSeqNum;
    if (0 === (seen1 & 262144))
      $this.x96_1 = 0;
    else
      $this.x96_1 = personLastChangedBy;
    if (0 === (seen1 & 524288))
      $this.y96_1 = false;
    else
      $this.y96_1 = admin;
    if (0 === (seen1 & 1048576))
      $this.z96_1 = null;
    else
      $this.z96_1 = personNotes;
    if (0 === (seen1 & 2097152))
      $this.a97_1 = null;
    else
      $this.a97_1 = fatherName;
    if (0 === (seen1 & 4194304))
      $this.b97_1 = null;
    else
      $this.b97_1 = fatherNumber;
    if (0 === (seen1 & 8388608))
      $this.c97_1 = null;
    else
      $this.c97_1 = motherName;
    if (0 === (seen1 & 16777216))
      $this.d97_1 = null;
    else
      $this.d97_1 = motherNum;
    return $this;
  }
  function Person_init_$Create$(seen1, personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, isPersonalAccount, 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, isPersonalAccount, 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, isPersonalAccount, 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;
    isPersonalAccount = isPersonalAccount === VOID ? false : isPersonalAccount;
    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.f96_1 = personUid;
    this.g96_1 = username;
    this.h96_1 = firstNames;
    this.i96_1 = lastName;
    this.j96_1 = emailAddr;
    this.k96_1 = phoneNum;
    this.l96_1 = gender;
    this.m96_1 = active;
    this.n96_1 = isPersonalAccount;
    this.o96_1 = dateOfBirth;
    this.p96_1 = personAddress;
    this.q96_1 = personOrgId;
    this.r96_1 = personGroupUid;
    this.s96_1 = personLct;
    this.t96_1 = personCountry;
    this.u96_1 = personType;
    this.v96_1 = personMasterChangeSeqNum;
    this.w96_1 = personLocalChangeSeqNum;
    this.x96_1 = personLastChangedBy;
    this.y96_1 = admin;
    this.z96_1 = personNotes;
    this.a97_1 = fatherName;
    this.b97_1 = fatherNumber;
    this.c97_1 = motherName;
    this.d97_1 = motherNum;
  }
  protoOf(Person).ckr = 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.h96_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.h96_1 == null) ? !(this.i96_1 == null) : false) {
      this_0.y5(' ');
    }
    var tmp1_safe_receiver = this.i96_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).dkr = function (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, isPersonalAccount, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) {
    return new Person(personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, isPersonalAccount, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum);
  };
  protoOf(Person).ekr = function (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, isPersonalAccount, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum, $super) {
    personUid = personUid === VOID ? this.f96_1 : personUid;
    username = username === VOID ? this.g96_1 : username;
    firstNames = firstNames === VOID ? this.h96_1 : firstNames;
    lastName = lastName === VOID ? this.i96_1 : lastName;
    emailAddr = emailAddr === VOID ? this.j96_1 : emailAddr;
    phoneNum = phoneNum === VOID ? this.k96_1 : phoneNum;
    gender = gender === VOID ? this.l96_1 : gender;
    active = active === VOID ? this.m96_1 : active;
    isPersonalAccount = isPersonalAccount === VOID ? this.n96_1 : isPersonalAccount;
    dateOfBirth = dateOfBirth === VOID ? this.o96_1 : dateOfBirth;
    personAddress = personAddress === VOID ? this.p96_1 : personAddress;
    personOrgId = personOrgId === VOID ? this.q96_1 : personOrgId;
    personGroupUid = personGroupUid === VOID ? this.r96_1 : personGroupUid;
    personLct = personLct === VOID ? this.s96_1 : personLct;
    personCountry = personCountry === VOID ? this.t96_1 : personCountry;
    personType = personType === VOID ? this.u96_1 : personType;
    personMasterChangeSeqNum = personMasterChangeSeqNum === VOID ? this.v96_1 : personMasterChangeSeqNum;
    personLocalChangeSeqNum = personLocalChangeSeqNum === VOID ? this.w96_1 : personLocalChangeSeqNum;
    personLastChangedBy = personLastChangedBy === VOID ? this.x96_1 : personLastChangedBy;
    admin = admin === VOID ? this.y96_1 : admin;
    personNotes = personNotes === VOID ? this.z96_1 : personNotes;
    fatherName = fatherName === VOID ? this.a97_1 : fatherName;
    fatherNumber = fatherNumber === VOID ? this.b97_1 : fatherNumber;
    motherName = motherName === VOID ? this.c97_1 : motherName;
    motherNum = motherNum === VOID ? this.d97_1 : motherNum;
    return $super === VOID ? this.dkr(personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, isPersonalAccount, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) : $super.dkr.call(this, personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, isPersonalAccount, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum);
  };
  protoOf(Person).toString = function () {
    return 'Person(personUid=' + this.f96_1.toString() + ', username=' + this.g96_1 + ', firstNames=' + this.h96_1 + ', lastName=' + this.i96_1 + ', emailAddr=' + this.j96_1 + ', phoneNum=' + this.k96_1 + ', gender=' + this.l96_1 + ', active=' + this.m96_1 + ', isPersonalAccount=' + this.n96_1 + ', dateOfBirth=' + this.o96_1.toString() + ', personAddress=' + this.p96_1 + ', personOrgId=' + this.q96_1 + ', personGroupUid=' + this.r96_1.toString() + ', personLct=' + this.s96_1.toString() + ', personCountry=' + this.t96_1 + ', personType=' + this.u96_1 + ', personMasterChangeSeqNum=' + this.v96_1.toString() + ', personLocalChangeSeqNum=' + this.w96_1.toString() + ', personLastChangedBy=' + this.x96_1 + ', admin=' + this.y96_1 + ', personNotes=' + this.z96_1 + ', fatherName=' + this.a97_1 + ', fatherNumber=' + this.b97_1 + ', motherName=' + this.c97_1 + ', motherNum=' + this.d97_1 + ')';
  };
  protoOf(Person).hashCode = function () {
    var result = this.f96_1.hashCode();
    result = imul(result, 31) + (this.g96_1 == null ? 0 : getStringHashCode(this.g96_1)) | 0;
    result = imul(result, 31) + (this.h96_1 == null ? 0 : getStringHashCode(this.h96_1)) | 0;
    result = imul(result, 31) + (this.i96_1 == null ? 0 : getStringHashCode(this.i96_1)) | 0;
    result = imul(result, 31) + (this.j96_1 == null ? 0 : getStringHashCode(this.j96_1)) | 0;
    result = imul(result, 31) + (this.k96_1 == null ? 0 : getStringHashCode(this.k96_1)) | 0;
    result = imul(result, 31) + this.l96_1 | 0;
    result = imul(result, 31) + getBooleanHashCode(this.m96_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.n96_1) | 0;
    result = imul(result, 31) + this.o96_1.hashCode() | 0;
    result = imul(result, 31) + (this.p96_1 == null ? 0 : getStringHashCode(this.p96_1)) | 0;
    result = imul(result, 31) + (this.q96_1 == null ? 0 : getStringHashCode(this.q96_1)) | 0;
    result = imul(result, 31) + this.r96_1.hashCode() | 0;
    result = imul(result, 31) + this.s96_1.hashCode() | 0;
    result = imul(result, 31) + (this.t96_1 == null ? 0 : getStringHashCode(this.t96_1)) | 0;
    result = imul(result, 31) + this.u96_1 | 0;
    result = imul(result, 31) + this.v96_1.hashCode() | 0;
    result = imul(result, 31) + this.w96_1.hashCode() | 0;
    result = imul(result, 31) + this.x96_1 | 0;
    result = imul(result, 31) + getBooleanHashCode(this.y96_1) | 0;
    result = imul(result, 31) + (this.z96_1 == null ? 0 : getStringHashCode(this.z96_1)) | 0;
    result = imul(result, 31) + (this.a97_1 == null ? 0 : getStringHashCode(this.a97_1)) | 0;
    result = imul(result, 31) + (this.b97_1 == null ? 0 : getStringHashCode(this.b97_1)) | 0;
    result = imul(result, 31) + (this.c97_1 == null ? 0 : getStringHashCode(this.c97_1)) | 0;
    result = imul(result, 31) + (this.d97_1 == null ? 0 : getStringHashCode(this.d97_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.f96_1.equals(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;
    if (!(this.j96_1 == tmp0_other_with_cast.j96_1))
      return false;
    if (!(this.k96_1 == tmp0_other_with_cast.k96_1))
      return false;
    if (!(this.l96_1 === tmp0_other_with_cast.l96_1))
      return false;
    if (!(this.m96_1 === tmp0_other_with_cast.m96_1))
      return false;
    if (!(this.n96_1 === tmp0_other_with_cast.n96_1))
      return false;
    if (!this.o96_1.equals(tmp0_other_with_cast.o96_1))
      return false;
    if (!(this.p96_1 == tmp0_other_with_cast.p96_1))
      return false;
    if (!(this.q96_1 == tmp0_other_with_cast.q96_1))
      return false;
    if (!this.r96_1.equals(tmp0_other_with_cast.r96_1))
      return false;
    if (!this.s96_1.equals(tmp0_other_with_cast.s96_1))
      return false;
    if (!(this.t96_1 == tmp0_other_with_cast.t96_1))
      return false;
    if (!(this.u96_1 === tmp0_other_with_cast.u96_1))
      return false;
    if (!this.v96_1.equals(tmp0_other_with_cast.v96_1))
      return false;
    if (!this.w96_1.equals(tmp0_other_with_cast.w96_1))
      return false;
    if (!(this.x96_1 === tmp0_other_with_cast.x96_1))
      return false;
    if (!(this.y96_1 === tmp0_other_with_cast.y96_1))
      return false;
    if (!(this.z96_1 == tmp0_other_with_cast.z96_1))
      return false;
    if (!(this.a97_1 == tmp0_other_with_cast.a97_1))
      return false;
    if (!(this.b97_1 == tmp0_other_with_cast.b97_1))
      return false;
    if (!(this.c97_1 == tmp0_other_with_cast.c97_1))
      return false;
    if (!(this.d97_1 == tmp0_other_with_cast.d97_1))
      return false;
    return true;
  };
  function Companion_100() {
  }
  var Companion_instance_101;
  function Companion_getInstance_103() {
    return Companion_instance_101;
  }
  function $serializer_97() {
    $serializer_instance_97 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonAndDisplayDetail', this, 4);
    tmp0_serialDesc.t4f('person', true);
    tmp0_serialDesc.t4f('parentJoin', true);
    tmp0_serialDesc.t4f('personPicture', true);
    tmp0_serialDesc.t4f('personPictureTransferJobItem', true);
    this.fkr_1 = tmp0_serialDesc;
  }
  protoOf($serializer_97).q44 = function () {
    return this.fkr_1;
  };
  protoOf($serializer_97).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_96()), get_nullable($serializer_getInstance_102()), get_nullable($serializer_getInstance_105()), get_nullable($serializer_getInstance_117())];
  };
  protoOf($serializer_97).s44 = function (decoder) {
    var tmp0_desc = this.fkr_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.i48(tmp0_desc);
    if (tmp8_input.x48()) {
      tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, $serializer_getInstance_96(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, $serializer_getInstance_102(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, $serializer_getInstance_105(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, $serializer_getInstance_117(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, $serializer_getInstance_96(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, $serializer_getInstance_102(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, $serializer_getInstance_105(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, $serializer_getInstance_117(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.j48(tmp0_desc);
    return PersonAndDisplayDetail_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_97).gkr = function (encoder, value) {
    var tmp0_desc = this.fkr_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.vg7_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_96(), value.vg7_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.wg7_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_102(), value.wg7_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.xg7_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_105(), value.xg7_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.yg7_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, $serializer_getInstance_117(), value.yg7_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_97).r44 = function (encoder, value) {
    return this.gkr(encoder, value instanceof PersonAndDisplayDetail ? value : THROW_CCE());
  };
  var $serializer_instance_97;
  function $serializer_getInstance_97() {
    if ($serializer_instance_97 == null)
      new $serializer_97();
    return $serializer_instance_97;
  }
  function PersonAndDisplayDetail_init_$Init$(seen1, person, parentJoin, personPicture, personPictureTransferJobItem, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_97().fkr_1);
    }
    if (0 === (seen1 & 1))
      $this.vg7_1 = null;
    else
      $this.vg7_1 = person;
    if (0 === (seen1 & 2))
      $this.wg7_1 = null;
    else
      $this.wg7_1 = parentJoin;
    if (0 === (seen1 & 4))
      $this.xg7_1 = null;
    else
      $this.xg7_1 = personPicture;
    if (0 === (seen1 & 8))
      $this.yg7_1 = null;
    else
      $this.yg7_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.vg7_1 = person;
    this.wg7_1 = parentJoin;
    this.xg7_1 = personPicture;
    this.yg7_1 = personPictureTransferJobItem;
  }
  protoOf(PersonAndDisplayDetail).toString = function () {
    return 'PersonAndDisplayDetail(person=' + this.vg7_1 + ', parentJoin=' + this.wg7_1 + ', personPicture=' + this.xg7_1 + ', personPictureTransferJobItem=' + this.yg7_1 + ')';
  };
  protoOf(PersonAndDisplayDetail).hashCode = function () {
    var result = this.vg7_1 == null ? 0 : this.vg7_1.hashCode();
    result = imul(result, 31) + (this.wg7_1 == null ? 0 : this.wg7_1.hashCode()) | 0;
    result = imul(result, 31) + (this.xg7_1 == null ? 0 : this.xg7_1.hashCode()) | 0;
    result = imul(result, 31) + (this.yg7_1 == null ? 0 : this.yg7_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.vg7_1, tmp0_other_with_cast.vg7_1))
      return false;
    if (!equals(this.wg7_1, tmp0_other_with_cast.wg7_1))
      return false;
    if (!equals(this.xg7_1, tmp0_other_with_cast.xg7_1))
      return false;
    if (!equals(this.yg7_1, tmp0_other_with_cast.yg7_1))
      return false;
    return true;
  };
  function Companion_101() {
    this.hkr_1 = 1;
    this.ikr_1 = 0;
  }
  var Companion_instance_102;
  function Companion_getInstance_104() {
    return Companion_instance_102;
  }
  function $serializer_98() {
    $serializer_instance_98 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonAuth', this, 3);
    tmp0_serialDesc.t4f('personAuthUid', true);
    tmp0_serialDesc.t4f('passwordHash', true);
    tmp0_serialDesc.t4f('personAuthStatus', true);
    this.jkr_1 = tmp0_serialDesc;
  }
  protoOf($serializer_98).q44 = function () {
    return this.jkr_1;
  };
  protoOf($serializer_98).k4g = 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_98).s44 = function (decoder) {
    var tmp0_desc = this.jkr_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.i48(tmp0_desc);
    if (tmp7_input.x48()) {
      tmp4_local0 = tmp7_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp7_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp7_input.n48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp7_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp7_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp7_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp7_input.n48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp7_input.j48(tmp0_desc);
    return PersonAuth_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
  };
  protoOf($serializer_98).kkr = function (encoder, value) {
    var tmp0_desc = this.jkr_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.vg3_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.vg3_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.wg3_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.wg3_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.xg3_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 2, value.xg3_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_98).r44 = function (encoder, value) {
    return this.kkr(encoder, value instanceof PersonAuth ? value : THROW_CCE());
  };
  var $serializer_instance_98;
  function $serializer_getInstance_98() {
    if ($serializer_instance_98 == null)
      new $serializer_98();
    return $serializer_instance_98;
  }
  function PersonAuth_init_$Init$(seen1, personAuthUid, passwordHash, personAuthStatus, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_98().jkr_1);
    }
    if (0 === (seen1 & 1))
      $this.vg3_1 = new Long(0, 0);
    else
      $this.vg3_1 = personAuthUid;
    if (0 === (seen1 & 2))
      $this.wg3_1 = null;
    else
      $this.wg3_1 = passwordHash;
    if (0 === (seen1 & 4))
      $this.xg3_1 = 0;
    else
      $this.xg3_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.vg3_1 = new Long(0, 0);
    this.wg3_1 = null;
    this.xg3_1 = 0;
  }
  function Companion_102() {
    this.lkr_1 = 'PBKDF2x2';
    this.mkr_1 = 678;
  }
  var Companion_instance_103;
  function Companion_getInstance_105() {
    return Companion_instance_103;
  }
  function $serializer_99() {
    $serializer_instance_99 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonAuth2', this, 7);
    tmp0_serialDesc.t4f('pauthUid', true);
    tmp0_serialDesc.t4f('pauthMechanism', true);
    tmp0_serialDesc.t4f('pauthAuth', true);
    tmp0_serialDesc.t4f('pauthLcsn', true);
    tmp0_serialDesc.t4f('pauthPcsn', true);
    tmp0_serialDesc.t4f('pauthLcb', true);
    tmp0_serialDesc.t4f('pauthLct', true);
    this.nkr_1 = tmp0_serialDesc;
  }
  protoOf($serializer_99).q44 = function () {
    return this.nkr_1;
  };
  protoOf($serializer_99).k4g = 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()];
  };
  protoOf($serializer_99).s44 = function (decoder) {
    var tmp0_desc = this.nkr_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_input = decoder.i48(tmp0_desc);
    if (tmp11_input.x48()) {
      tmp4_local0 = tmp11_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp11_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp11_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp11_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp11_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp11_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp11_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp11_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp11_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp11_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp11_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp11_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp11_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp11_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp11_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp11_input.j48(tmp0_desc);
    return PersonAuth2_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null);
  };
  protoOf($serializer_99).okr = function (encoder, value) {
    var tmp0_desc = this.nkr_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.cg0_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.cg0_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.dg0_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.dg0_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.eg0_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.eg0_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.fg0_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.fg0_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.gg0_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.gg0_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.hg0_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.hg0_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.ig0_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.ig0_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_99).r44 = function (encoder, value) {
    return this.okr(encoder, value instanceof PersonAuth2 ? value : THROW_CCE());
  };
  var $serializer_instance_99;
  function $serializer_getInstance_99() {
    if ($serializer_instance_99 == null)
      new $serializer_99();
    return $serializer_instance_99;
  }
  function PersonAuth2_init_$Init$(seen1, pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_99().nkr_1);
    }
    if (0 === (seen1 & 1))
      $this.cg0_1 = new Long(0, 0);
    else
      $this.cg0_1 = pauthUid;
    if (0 === (seen1 & 2))
      $this.dg0_1 = null;
    else
      $this.dg0_1 = pauthMechanism;
    if (0 === (seen1 & 4))
      $this.eg0_1 = null;
    else
      $this.eg0_1 = pauthAuth;
    if (0 === (seen1 & 8))
      $this.fg0_1 = new Long(0, 0);
    else
      $this.fg0_1 = pauthLcsn;
    if (0 === (seen1 & 16))
      $this.gg0_1 = new Long(0, 0);
    else
      $this.gg0_1 = pauthPcsn;
    if (0 === (seen1 & 32))
      $this.hg0_1 = new Long(0, 0);
    else
      $this.hg0_1 = pauthLcb;
    if (0 === (seen1 & 64))
      $this.ig0_1 = new Long(0, 0);
    else
      $this.ig0_1 = pauthLct;
    return $this;
  }
  function PersonAuth2_init_$Create$(seen1, pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct, serializationConstructorMarker) {
    return PersonAuth2_init_$Init$(seen1, pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct, serializationConstructorMarker, objectCreate(protoOf(PersonAuth2)));
  }
  function PersonAuth2() {
    this.cg0_1 = new Long(0, 0);
    this.dg0_1 = null;
    this.eg0_1 = null;
    this.fg0_1 = new Long(0, 0);
    this.gg0_1 = new Long(0, 0);
    this.hg0_1 = new Long(0, 0);
    this.ig0_1 = new Long(0, 0);
  }
  function Companion_103() {
    this.pkr_1 = 43;
    this.qkr_1 = 0;
    this.rkr_1 = 1;
    this.skr_1 = 2;
    this.tkr_1 = 4;
    this.ukr_1 = 8;
    this.vkr_1 = 16;
  }
  var Companion_instance_104;
  function Companion_getInstance_106() {
    return Companion_instance_104;
  }
  function $serializer_100() {
    $serializer_instance_100 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonGroup', this, 8);
    tmp0_serialDesc.t4f('groupUid', true);
    tmp0_serialDesc.t4f('groupMasterCsn', true);
    tmp0_serialDesc.t4f('groupLocalCsn', true);
    tmp0_serialDesc.t4f('groupLastChangedBy', true);
    tmp0_serialDesc.t4f('groupLct', true);
    tmp0_serialDesc.t4f('groupName', true);
    tmp0_serialDesc.t4f('groupActive', true);
    tmp0_serialDesc.t4f('personGroupFlag', true);
    this.wkr_1 = tmp0_serialDesc;
  }
  protoOf($serializer_100).q44 = function () {
    return this.wkr_1;
  };
  protoOf($serializer_100).k4g = 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_100).s44 = function (decoder) {
    var tmp0_desc = this.wkr_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.i48(tmp0_desc);
    if (tmp12_input.x48()) {
      tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.n48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.k48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.n48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.n48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.k48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.n48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.j48(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_100).xkr = function (encoder, value) {
    var tmp0_desc = this.wkr_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.cga_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.cga_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.dga_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.dga_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.ega_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.ega_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.fga_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 3, value.fga_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.gga_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.gga_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.hga_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.hga_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.iga_1 === true)) {
      tmp1_output.o49(tmp0_desc, 6, value.iga_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.jga_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 7, value.jga_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_100).r44 = function (encoder, value) {
    return this.xkr(encoder, value instanceof PersonGroup ? value : THROW_CCE());
  };
  var $serializer_instance_100;
  function $serializer_getInstance_100() {
    if ($serializer_instance_100 == null)
      new $serializer_100();
    return $serializer_instance_100;
  }
  function PersonGroup_init_$Init$(seen1, groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_100().wkr_1);
    }
    if (0 === (seen1 & 1))
      $this.cga_1 = new Long(0, 0);
    else
      $this.cga_1 = groupUid;
    if (0 === (seen1 & 2))
      $this.dga_1 = new Long(0, 0);
    else
      $this.dga_1 = groupMasterCsn;
    if (0 === (seen1 & 4))
      $this.ega_1 = new Long(0, 0);
    else
      $this.ega_1 = groupLocalCsn;
    if (0 === (seen1 & 8))
      $this.fga_1 = 0;
    else
      $this.fga_1 = groupLastChangedBy;
    if (0 === (seen1 & 16))
      $this.gga_1 = new Long(0, 0);
    else
      $this.gga_1 = groupLct;
    if (0 === (seen1 & 32))
      $this.hga_1 = null;
    else
      $this.hga_1 = groupName;
    if (0 === (seen1 & 64))
      $this.iga_1 = true;
    else
      $this.iga_1 = groupActive;
    if (0 === (seen1 & 128))
      $this.jga_1 = 0;
    else
      $this.jga_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.cga_1 = new Long(0, 0);
    this.dga_1 = new Long(0, 0);
    this.ega_1 = new Long(0, 0);
    this.fga_1 = 0;
    this.gga_1 = new Long(0, 0);
    this.hga_1 = null;
    this.iga_1 = true;
    this.jga_1 = 0;
  }
  function PersonGroupMember_init_$Init$(personUid, groupUid, $this) {
    PersonGroupMember.call($this);
    $this.pga_1 = personUid;
    $this.qga_1 = groupUid;
    return $this;
  }
  function PersonGroupMember_init_$Create$(personUid, groupUid) {
    return PersonGroupMember_init_$Init$(personUid, groupUid, objectCreate(protoOf(PersonGroupMember)));
  }
  function Companion_104() {
    this.ykr_1 = 44;
  }
  var Companion_instance_105;
  function Companion_getInstance_107() {
    return Companion_instance_105;
  }
  function $serializer_101() {
    $serializer_instance_101 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonGroupMember', this, 8);
    tmp0_serialDesc.t4f('groupMemberUid', true);
    tmp0_serialDesc.t4f('groupMemberActive', true);
    tmp0_serialDesc.t4f('groupMemberPersonUid', true);
    tmp0_serialDesc.t4f('groupMemberGroupUid', true);
    tmp0_serialDesc.t4f('groupMemberMasterCsn', true);
    tmp0_serialDesc.t4f('groupMemberLocalCsn', true);
    tmp0_serialDesc.t4f('groupMemberLastChangedBy', true);
    tmp0_serialDesc.t4f('groupMemberLct', true);
    this.zkr_1 = tmp0_serialDesc;
  }
  protoOf($serializer_101).q44 = function () {
    return this.zkr_1;
  };
  protoOf($serializer_101).k4g = 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_101).s44 = function (decoder) {
    var tmp0_desc = this.zkr_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.i48(tmp0_desc);
    if (tmp12_input.x48()) {
      tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.k48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.n48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.k48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.n48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.j48(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_101).aks = function (encoder, value) {
    var tmp0_desc = this.zkr_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.nga_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.nga_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.oga_1 === true)) {
      tmp1_output.o49(tmp0_desc, 1, value.oga_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.pga_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.pga_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.qga_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.qga_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.rga_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.rga_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.sga_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.sga_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.tga_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 6, value.tga_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.uga_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.uga_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_101).r44 = function (encoder, value) {
    return this.aks(encoder, value instanceof PersonGroupMember ? value : THROW_CCE());
  };
  var $serializer_instance_101;
  function $serializer_getInstance_101() {
    if ($serializer_instance_101 == null)
      new $serializer_101();
    return $serializer_instance_101;
  }
  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_101().zkr_1);
    }
    if (0 === (seen1 & 1))
      $this.nga_1 = new Long(0, 0);
    else
      $this.nga_1 = groupMemberUid;
    if (0 === (seen1 & 2))
      $this.oga_1 = true;
    else
      $this.oga_1 = groupMemberActive;
    if (0 === (seen1 & 4))
      $this.pga_1 = new Long(0, 0);
    else
      $this.pga_1 = groupMemberPersonUid;
    if (0 === (seen1 & 8))
      $this.qga_1 = new Long(0, 0);
    else
      $this.qga_1 = groupMemberGroupUid;
    if (0 === (seen1 & 16))
      $this.rga_1 = new Long(0, 0);
    else
      $this.rga_1 = groupMemberMasterCsn;
    if (0 === (seen1 & 32))
      $this.sga_1 = new Long(0, 0);
    else
      $this.sga_1 = groupMemberLocalCsn;
    if (0 === (seen1 & 64))
      $this.tga_1 = 0;
    else
      $this.tga_1 = groupMemberLastChangedBy;
    if (0 === (seen1 & 128))
      $this.uga_1 = new Long(0, 0);
    else
      $this.uga_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.nga_1 = new Long(0, 0);
    this.oga_1 = true;
    this.pga_1 = new Long(0, 0);
    this.qga_1 = new Long(0, 0);
    this.rga_1 = new Long(0, 0);
    this.sga_1 = new Long(0, 0);
    this.tga_1 = 0;
    this.uga_1 = new Long(0, 0);
  }
  function Companion_105() {
    this.bks_1 = 512;
    this.cks_1 = 0;
    this.dks_1 = 1;
    this.eks_1 = 2;
    this.fks_1 = 1;
    this.gks_1 = 2;
    this.hks_1 = 4;
    this.iks_1 = 8;
    this.jks_1 = 5;
  }
  var Companion_instance_106;
  function Companion_getInstance_108() {
    return Companion_instance_106;
  }
  function $serializer_102() {
    $serializer_instance_102 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonParentJoin', this, 14);
    tmp0_serialDesc.t4f('ppjUid', true);
    tmp0_serialDesc.t4f('ppjPcsn', true);
    tmp0_serialDesc.t4f('ppjLcsn', true);
    tmp0_serialDesc.t4f('ppjLcb', true);
    tmp0_serialDesc.t4f('ppjLct', true);
    tmp0_serialDesc.t4f('ppjParentPersonUid', true);
    tmp0_serialDesc.t4f('ppjMinorPersonUid', true);
    tmp0_serialDesc.t4f('ppjRelationship', true);
    tmp0_serialDesc.t4f('ppjEmail', true);
    tmp0_serialDesc.t4f('ppjPhone', true);
    tmp0_serialDesc.t4f('ppjInactive', true);
    tmp0_serialDesc.t4f('ppjStatus', true);
    tmp0_serialDesc.t4f('ppjApprovalTiemstamp', true);
    tmp0_serialDesc.t4f('ppjApprovalIpAddr', true);
    this.kks_1 = tmp0_serialDesc;
  }
  protoOf($serializer_102).q44 = function () {
    return this.kks_1;
  };
  protoOf($serializer_102).k4g = 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_102).s44 = function (decoder) {
    var tmp0_desc = this.kks_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.i48(tmp0_desc);
    if (tmp18_input.x48()) {
      tmp4_local0 = tmp18_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp18_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp18_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp18_input.n48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp18_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp18_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp18_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp18_input.n48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp18_input.w48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp18_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp18_input.k48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp18_input.n48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp18_input.o48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp18_input.w48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp18_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp18_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp18_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp18_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp18_input.n48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp18_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp18_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp18_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp18_input.n48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp18_input.w48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp18_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp18_input.k48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp18_input.n48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp18_input.o48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp18_input.w48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp18_input.j48(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_102).lks = function (encoder, value) {
    var tmp0_desc = this.kks_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.zg7_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.zg7_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.ag8_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.ag8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.bg8_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.bg8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.cg8_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 3, value.cg8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.dg8_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.dg8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.eg8_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.eg8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.fg8_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.fg8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.gg8_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 7, value.gg8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.hg8_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 8, StringSerializer_getInstance(), value.hg8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.ig8_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 9, StringSerializer_getInstance(), value.ig8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.jg8_1 === false)) {
      tmp1_output.o49(tmp0_desc, 10, value.jg8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !(value.kg8_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 11, value.kg8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !value.lg8_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 12, value.lg8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !(value.mg8_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 13, StringSerializer_getInstance(), value.mg8_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_102).r44 = function (encoder, value) {
    return this.lks(encoder, value instanceof PersonParentJoin ? value : THROW_CCE());
  };
  var $serializer_instance_102;
  function $serializer_getInstance_102() {
    if ($serializer_instance_102 == null)
      new $serializer_102();
    return $serializer_instance_102;
  }
  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_102().kks_1);
    }
    if (0 === (seen1 & 1))
      $this.zg7_1 = new Long(0, 0);
    else
      $this.zg7_1 = ppjUid;
    if (0 === (seen1 & 2))
      $this.ag8_1 = new Long(0, 0);
    else
      $this.ag8_1 = ppjPcsn;
    if (0 === (seen1 & 4))
      $this.bg8_1 = new Long(0, 0);
    else
      $this.bg8_1 = ppjLcsn;
    if (0 === (seen1 & 8))
      $this.cg8_1 = 0;
    else
      $this.cg8_1 = ppjLcb;
    if (0 === (seen1 & 16))
      $this.dg8_1 = new Long(0, 0);
    else
      $this.dg8_1 = ppjLct;
    if (0 === (seen1 & 32))
      $this.eg8_1 = new Long(0, 0);
    else
      $this.eg8_1 = ppjParentPersonUid;
    if (0 === (seen1 & 64))
      $this.fg8_1 = new Long(0, 0);
    else
      $this.fg8_1 = ppjMinorPersonUid;
    if (0 === (seen1 & 128))
      $this.gg8_1 = 0;
    else
      $this.gg8_1 = ppjRelationship;
    if (0 === (seen1 & 256))
      $this.hg8_1 = null;
    else
      $this.hg8_1 = ppjEmail;
    if (0 === (seen1 & 512))
      $this.ig8_1 = null;
    else
      $this.ig8_1 = ppjPhone;
    if (0 === (seen1 & 1024))
      $this.jg8_1 = false;
    else
      $this.jg8_1 = ppjInactive;
    if (0 === (seen1 & 2048))
      $this.kg8_1 = 0;
    else
      $this.kg8_1 = ppjStatus;
    if (0 === (seen1 & 4096))
      $this.lg8_1 = new Long(0, 0);
    else
      $this.lg8_1 = ppjApprovalTiemstamp;
    if (0 === (seen1 & 8192))
      $this.mg8_1 = null;
    else
      $this.mg8_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.zg7_1 = ppjUid;
    this.ag8_1 = ppjPcsn;
    this.bg8_1 = ppjLcsn;
    this.cg8_1 = ppjLcb;
    this.dg8_1 = ppjLct;
    this.eg8_1 = ppjParentPersonUid;
    this.fg8_1 = ppjMinorPersonUid;
    this.gg8_1 = ppjRelationship;
    this.hg8_1 = ppjEmail;
    this.ig8_1 = ppjPhone;
    this.jg8_1 = ppjInactive;
    this.kg8_1 = ppjStatus;
    this.lg8_1 = ppjApprovalTiemstamp;
    this.mg8_1 = ppjApprovalIpAddr;
  }
  protoOf(PersonParentJoin).toString = function () {
    return 'PersonParentJoin(ppjUid=' + this.zg7_1.toString() + ', ppjPcsn=' + this.ag8_1.toString() + ', ppjLcsn=' + this.bg8_1.toString() + ', ppjLcb=' + this.cg8_1 + ', ppjLct=' + this.dg8_1.toString() + ', ppjParentPersonUid=' + this.eg8_1.toString() + ', ppjMinorPersonUid=' + this.fg8_1.toString() + ', ppjRelationship=' + this.gg8_1 + ', ppjEmail=' + this.hg8_1 + ', ppjPhone=' + this.ig8_1 + ', ppjInactive=' + this.jg8_1 + ', ppjStatus=' + this.kg8_1 + ', ppjApprovalTiemstamp=' + this.lg8_1.toString() + ', ppjApprovalIpAddr=' + this.mg8_1 + ')';
  };
  protoOf(PersonParentJoin).hashCode = function () {
    var result = this.zg7_1.hashCode();
    result = imul(result, 31) + this.ag8_1.hashCode() | 0;
    result = imul(result, 31) + this.bg8_1.hashCode() | 0;
    result = imul(result, 31) + this.cg8_1 | 0;
    result = imul(result, 31) + this.dg8_1.hashCode() | 0;
    result = imul(result, 31) + this.eg8_1.hashCode() | 0;
    result = imul(result, 31) + this.fg8_1.hashCode() | 0;
    result = imul(result, 31) + this.gg8_1 | 0;
    result = imul(result, 31) + (this.hg8_1 == null ? 0 : getStringHashCode(this.hg8_1)) | 0;
    result = imul(result, 31) + (this.ig8_1 == null ? 0 : getStringHashCode(this.ig8_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.jg8_1) | 0;
    result = imul(result, 31) + this.kg8_1 | 0;
    result = imul(result, 31) + this.lg8_1.hashCode() | 0;
    result = imul(result, 31) + (this.mg8_1 == null ? 0 : getStringHashCode(this.mg8_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.zg7_1.equals(tmp0_other_with_cast.zg7_1))
      return false;
    if (!this.ag8_1.equals(tmp0_other_with_cast.ag8_1))
      return false;
    if (!this.bg8_1.equals(tmp0_other_with_cast.bg8_1))
      return false;
    if (!(this.cg8_1 === tmp0_other_with_cast.cg8_1))
      return false;
    if (!this.dg8_1.equals(tmp0_other_with_cast.dg8_1))
      return false;
    if (!this.eg8_1.equals(tmp0_other_with_cast.eg8_1))
      return false;
    if (!this.fg8_1.equals(tmp0_other_with_cast.fg8_1))
      return false;
    if (!(this.gg8_1 === tmp0_other_with_cast.gg8_1))
      return false;
    if (!(this.hg8_1 == tmp0_other_with_cast.hg8_1))
      return false;
    if (!(this.ig8_1 == tmp0_other_with_cast.ig8_1))
      return false;
    if (!(this.jg8_1 === tmp0_other_with_cast.jg8_1))
      return false;
    if (!(this.kg8_1 === tmp0_other_with_cast.kg8_1))
      return false;
    if (!this.lg8_1.equals(tmp0_other_with_cast.lg8_1))
      return false;
    if (!(this.mg8_1 == tmp0_other_with_cast.mg8_1))
      return false;
    return true;
  };
  function Companion_106() {
  }
  protoOf(Companion_106).n4r = function () {
    return $serializer_getInstance_103();
  };
  var Companion_instance_107;
  function Companion_getInstance_109() {
    return Companion_instance_107;
  }
  function $serializer_103() {
    $serializer_instance_103 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonParentJoinAndMinorPerson', this, 2);
    tmp0_serialDesc.t4f('personParentJoin', true);
    tmp0_serialDesc.t4f('minorPerson', true);
    this.mks_1 = tmp0_serialDesc;
  }
  protoOf($serializer_103).q44 = function () {
    return this.mks_1;
  };
  protoOf($serializer_103).k4g = function () {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    return [get_nullable($serializer_getInstance_102()), get_nullable($serializer_getInstance_96())];
  };
  protoOf($serializer_103).s44 = function (decoder) {
    var tmp0_desc = this.mks_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_102(), tmp4_local0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_96(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, $serializer_getInstance_102(), tmp4_local0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, $serializer_getInstance_96(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return PersonParentJoinAndMinorPerson_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_103).nks = function (encoder, value) {
    var tmp0_desc = this.mks_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.dgu_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_102(), value.dgu_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.egu_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_96(), value.egu_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_103).r44 = function (encoder, value) {
    return this.nks(encoder, value instanceof PersonParentJoinAndMinorPerson ? value : THROW_CCE());
  };
  var $serializer_instance_103;
  function $serializer_getInstance_103() {
    if ($serializer_instance_103 == null)
      new $serializer_103();
    return $serializer_instance_103;
  }
  function PersonParentJoinAndMinorPerson_init_$Init$(seen1, personParentJoin, minorPerson, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_103().mks_1);
    }
    if (0 === (seen1 & 1))
      $this.dgu_1 = null;
    else
      $this.dgu_1 = personParentJoin;
    if (0 === (seen1 & 2))
      $this.egu_1 = null;
    else
      $this.egu_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.dgu_1 = personParentJoin;
    this.egu_1 = minorPerson;
  }
  protoOf(PersonParentJoinAndMinorPerson).oks = function (personParentJoin, minorPerson) {
    return new PersonParentJoinAndMinorPerson(personParentJoin, minorPerson);
  };
  protoOf(PersonParentJoinAndMinorPerson).pks = function (personParentJoin, minorPerson, $super) {
    personParentJoin = personParentJoin === VOID ? this.dgu_1 : personParentJoin;
    minorPerson = minorPerson === VOID ? this.egu_1 : minorPerson;
    return $super === VOID ? this.oks(personParentJoin, minorPerson) : $super.oks.call(this, personParentJoin, minorPerson);
  };
  protoOf(PersonParentJoinAndMinorPerson).toString = function () {
    return 'PersonParentJoinAndMinorPerson(personParentJoin=' + this.dgu_1 + ', minorPerson=' + this.egu_1 + ')';
  };
  protoOf(PersonParentJoinAndMinorPerson).hashCode = function () {
    var result = this.dgu_1 == null ? 0 : this.dgu_1.hashCode();
    result = imul(result, 31) + (this.egu_1 == null ? 0 : this.egu_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.dgu_1, tmp0_other_with_cast.dgu_1))
      return false;
    if (!equals(this.egu_1, tmp0_other_with_cast.egu_1))
      return false;
    return true;
  };
  function Companion_107() {
    this.qks_1 = 892;
    this.rks_1 = 0;
    this.sks_1 = 1;
  }
  var Companion_instance_108;
  function Companion_getInstance_110() {
    return Companion_instance_108;
  }
  function $serializer_104() {
    $serializer_instance_104 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonPasskey', this, 10);
    tmp0_serialDesc.t4f('personPasskeyUid', true);
    tmp0_serialDesc.t4f('ppPersonUid', true);
    tmp0_serialDesc.t4f('ppAttestationObj', true);
    tmp0_serialDesc.t4f('ppClientDataJson', true);
    tmp0_serialDesc.t4f('ppOriginString', true);
    tmp0_serialDesc.t4f('ppId', true);
    tmp0_serialDesc.t4f('ppChallengeString', true);
    tmp0_serialDesc.t4f('ppPublicKey', true);
    tmp0_serialDesc.t4f('isRevoked', true);
    tmp0_serialDesc.t4f('ppPasskeyLct', true);
    this.tks_1 = tmp0_serialDesc;
  }
  protoOf($serializer_104).q44 = function () {
    return this.tks_1;
  };
  protoOf($serializer_104).k4g = 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()), IntSerializer_getInstance(), LongSerializer_getInstance()];
  };
  protoOf($serializer_104).s44 = function (decoder) {
    var tmp0_desc = this.tks_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 = 0;
    var tmp13_local9 = new Long(0, 0);
    var tmp14_input = decoder.i48(tmp0_desc);
    if (tmp14_input.x48()) {
      tmp4_local0 = tmp14_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp14_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp14_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp14_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp14_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp14_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp14_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp14_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp14_input.n48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp14_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp14_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp14_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp14_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp14_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp14_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp14_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp14_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp14_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp14_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp14_input.n48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp14_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp14_input.j48(tmp0_desc);
    return PersonPasskey_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_104).uks = function (encoder, value) {
    var tmp0_desc = this.tks_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.jh0_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.jh0_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.kh0_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.kh0_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.lh0_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.lh0_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.mh0_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.mh0_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.nh0_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.nh0_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.oh0_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.oh0_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.ph0_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 6, StringSerializer_getInstance(), value.ph0_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.qh0_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 7, StringSerializer_getInstance(), value.qh0_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.rh0_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 8, value.rh0_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !value.sh0_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 9, value.sh0_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_104).r44 = function (encoder, value) {
    return this.uks(encoder, value instanceof PersonPasskey ? value : THROW_CCE());
  };
  var $serializer_instance_104;
  function $serializer_getInstance_104() {
    if ($serializer_instance_104 == null)
      new $serializer_104();
    return $serializer_instance_104;
  }
  function PersonPasskey_init_$Init$(seen1, personPasskeyUid, ppPersonUid, ppAttestationObj, ppClientDataJson, ppOriginString, ppId, ppChallengeString, ppPublicKey, isRevoked, ppPasskeyLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_104().tks_1);
    }
    if (0 === (seen1 & 1))
      $this.jh0_1 = new Long(0, 0);
    else
      $this.jh0_1 = personPasskeyUid;
    if (0 === (seen1 & 2))
      $this.kh0_1 = new Long(0, 0);
    else
      $this.kh0_1 = ppPersonUid;
    if (0 === (seen1 & 4))
      $this.lh0_1 = null;
    else
      $this.lh0_1 = ppAttestationObj;
    if (0 === (seen1 & 8))
      $this.mh0_1 = null;
    else
      $this.mh0_1 = ppClientDataJson;
    if (0 === (seen1 & 16))
      $this.nh0_1 = null;
    else
      $this.nh0_1 = ppOriginString;
    if (0 === (seen1 & 32))
      $this.oh0_1 = null;
    else
      $this.oh0_1 = ppId;
    if (0 === (seen1 & 64))
      $this.ph0_1 = null;
    else
      $this.ph0_1 = ppChallengeString;
    if (0 === (seen1 & 128))
      $this.qh0_1 = null;
    else
      $this.qh0_1 = ppPublicKey;
    if (0 === (seen1 & 256))
      $this.rh0_1 = 0;
    else
      $this.rh0_1 = isRevoked;
    if (0 === (seen1 & 512))
      $this.sh0_1 = new Long(0, 0);
    else
      $this.sh0_1 = ppPasskeyLct;
    return $this;
  }
  function PersonPasskey_init_$Create$(seen1, personPasskeyUid, ppPersonUid, ppAttestationObj, ppClientDataJson, ppOriginString, ppId, ppChallengeString, ppPublicKey, isRevoked, ppPasskeyLct, serializationConstructorMarker) {
    return PersonPasskey_init_$Init$(seen1, personPasskeyUid, ppPersonUid, ppAttestationObj, ppClientDataJson, ppOriginString, ppId, ppChallengeString, ppPublicKey, isRevoked, ppPasskeyLct, serializationConstructorMarker, objectCreate(protoOf(PersonPasskey)));
  }
  function PersonPasskey(personPasskeyUid, ppPersonUid, ppAttestationObj, ppClientDataJson, ppOriginString, ppId, ppChallengeString, ppPublicKey, isRevoked, ppPasskeyLct) {
    personPasskeyUid = personPasskeyUid === VOID ? new Long(0, 0) : personPasskeyUid;
    ppPersonUid = ppPersonUid === VOID ? new Long(0, 0) : ppPersonUid;
    ppAttestationObj = ppAttestationObj === VOID ? null : ppAttestationObj;
    ppClientDataJson = ppClientDataJson === VOID ? null : ppClientDataJson;
    ppOriginString = ppOriginString === VOID ? null : ppOriginString;
    ppId = ppId === VOID ? null : ppId;
    ppChallengeString = ppChallengeString === VOID ? null : ppChallengeString;
    ppPublicKey = ppPublicKey === VOID ? null : ppPublicKey;
    isRevoked = isRevoked === VOID ? 0 : isRevoked;
    ppPasskeyLct = ppPasskeyLct === VOID ? new Long(0, 0) : ppPasskeyLct;
    this.jh0_1 = personPasskeyUid;
    this.kh0_1 = ppPersonUid;
    this.lh0_1 = ppAttestationObj;
    this.mh0_1 = ppClientDataJson;
    this.nh0_1 = ppOriginString;
    this.oh0_1 = ppId;
    this.ph0_1 = ppChallengeString;
    this.qh0_1 = ppPublicKey;
    this.rh0_1 = isRevoked;
    this.sh0_1 = ppPasskeyLct;
  }
  protoOf(PersonPasskey).toString = function () {
    return 'PersonPasskey(personPasskeyUid=' + this.jh0_1.toString() + ', ppPersonUid=' + this.kh0_1.toString() + ', ppAttestationObj=' + this.lh0_1 + ', ppClientDataJson=' + this.mh0_1 + ', ppOriginString=' + this.nh0_1 + ', ppId=' + this.oh0_1 + ', ppChallengeString=' + this.ph0_1 + ', ppPublicKey=' + this.qh0_1 + ', isRevoked=' + this.rh0_1 + ', ppPasskeyLct=' + this.sh0_1.toString() + ')';
  };
  protoOf(PersonPasskey).hashCode = function () {
    var result = this.jh0_1.hashCode();
    result = imul(result, 31) + this.kh0_1.hashCode() | 0;
    result = imul(result, 31) + (this.lh0_1 == null ? 0 : getStringHashCode(this.lh0_1)) | 0;
    result = imul(result, 31) + (this.mh0_1 == null ? 0 : getStringHashCode(this.mh0_1)) | 0;
    result = imul(result, 31) + (this.nh0_1 == null ? 0 : getStringHashCode(this.nh0_1)) | 0;
    result = imul(result, 31) + (this.oh0_1 == null ? 0 : getStringHashCode(this.oh0_1)) | 0;
    result = imul(result, 31) + (this.ph0_1 == null ? 0 : getStringHashCode(this.ph0_1)) | 0;
    result = imul(result, 31) + (this.qh0_1 == null ? 0 : getStringHashCode(this.qh0_1)) | 0;
    result = imul(result, 31) + this.rh0_1 | 0;
    result = imul(result, 31) + this.sh0_1.hashCode() | 0;
    return result;
  };
  protoOf(PersonPasskey).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof PersonPasskey))
      return false;
    var tmp0_other_with_cast = other instanceof PersonPasskey ? other : THROW_CCE();
    if (!this.jh0_1.equals(tmp0_other_with_cast.jh0_1))
      return false;
    if (!this.kh0_1.equals(tmp0_other_with_cast.kh0_1))
      return false;
    if (!(this.lh0_1 == tmp0_other_with_cast.lh0_1))
      return false;
    if (!(this.mh0_1 == tmp0_other_with_cast.mh0_1))
      return false;
    if (!(this.nh0_1 == tmp0_other_with_cast.nh0_1))
      return false;
    if (!(this.oh0_1 == tmp0_other_with_cast.oh0_1))
      return false;
    if (!(this.ph0_1 == tmp0_other_with_cast.ph0_1))
      return false;
    if (!(this.qh0_1 == tmp0_other_with_cast.qh0_1))
      return false;
    if (!(this.rh0_1 === tmp0_other_with_cast.rh0_1))
      return false;
    if (!this.sh0_1.equals(tmp0_other_with_cast.sh0_1))
      return false;
    return true;
  };
  function Companion_108() {
    this.vks_1 = 50;
  }
  protoOf(Companion_108).n4r = function () {
    return $serializer_getInstance_105();
  };
  var Companion_instance_109;
  function Companion_getInstance_111() {
    return Companion_instance_109;
  }
  function $serializer_105() {
    $serializer_instance_105 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonPicture', this, 6);
    tmp0_serialDesc.t4f('personPictureUid', true);
    tmp0_serialDesc.t4f('personPictureLct', true);
    tmp0_serialDesc.t4f('personPictureUri', true);
    tmp0_serialDesc.t4f('personPictureThumbnailUri', true);
    tmp0_serialDesc.t4f('fileSize', true);
    tmp0_serialDesc.t4f('personPictureActive', true);
    this.wks_1 = tmp0_serialDesc;
  }
  protoOf($serializer_105).q44 = function () {
    return this.wks_1;
  };
  protoOf($serializer_105).k4g = 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_105).s44 = function (decoder) {
    var tmp0_desc = this.wks_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.i48(tmp0_desc);
    if (tmp10_input.x48()) {
      tmp4_local0 = tmp10_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.n48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.k48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.n48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.k48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.j48(tmp0_desc);
    return PersonPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_105).xks = function (encoder, value) {
    var tmp0_desc = this.wks_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.e97_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.e97_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.f97_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.f97_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.g97_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.g97_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.h97_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.h97_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.i97_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 4, value.i97_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.j97_1 === true)) {
      tmp1_output.o49(tmp0_desc, 5, value.j97_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_105).r44 = function (encoder, value) {
    return this.xks(encoder, value instanceof PersonPicture ? value : THROW_CCE());
  };
  var $serializer_instance_105;
  function $serializer_getInstance_105() {
    if ($serializer_instance_105 == null)
      new $serializer_105();
    return $serializer_instance_105;
  }
  function PersonPicture_init_$Init$(seen1, personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_105().wks_1);
    }
    if (0 === (seen1 & 1))
      $this.e97_1 = new Long(0, 0);
    else
      $this.e97_1 = personPictureUid;
    if (0 === (seen1 & 2))
      $this.f97_1 = new Long(0, 0);
    else
      $this.f97_1 = personPictureLct;
    if (0 === (seen1 & 4))
      $this.g97_1 = null;
    else
      $this.g97_1 = personPictureUri;
    if (0 === (seen1 & 8))
      $this.h97_1 = null;
    else
      $this.h97_1 = personPictureThumbnailUri;
    if (0 === (seen1 & 16))
      $this.i97_1 = 0;
    else
      $this.i97_1 = fileSize;
    if (0 === (seen1 & 32))
      $this.j97_1 = true;
    else
      $this.j97_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.e97_1 = personPictureUid;
    this.f97_1 = personPictureLct;
    this.g97_1 = personPictureUri;
    this.h97_1 = personPictureThumbnailUri;
    this.i97_1 = fileSize;
    this.j97_1 = personPictureActive;
  }
  protoOf(PersonPicture).toString = function () {
    return 'PersonPicture(personPictureUid=' + this.e97_1.toString() + ', personPictureLct=' + this.f97_1.toString() + ', personPictureUri=' + this.g97_1 + ', personPictureThumbnailUri=' + this.h97_1 + ', fileSize=' + this.i97_1 + ', personPictureActive=' + this.j97_1 + ')';
  };
  protoOf(PersonPicture).hashCode = function () {
    var result = this.e97_1.hashCode();
    result = imul(result, 31) + this.f97_1.hashCode() | 0;
    result = imul(result, 31) + (this.g97_1 == null ? 0 : getStringHashCode(this.g97_1)) | 0;
    result = imul(result, 31) + (this.h97_1 == null ? 0 : getStringHashCode(this.h97_1)) | 0;
    result = imul(result, 31) + this.i97_1 | 0;
    result = imul(result, 31) + getBooleanHashCode(this.j97_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.e97_1.equals(tmp0_other_with_cast.e97_1))
      return false;
    if (!this.f97_1.equals(tmp0_other_with_cast.f97_1))
      return false;
    if (!(this.g97_1 == tmp0_other_with_cast.g97_1))
      return false;
    if (!(this.h97_1 == tmp0_other_with_cast.h97_1))
      return false;
    if (!(this.i97_1 === tmp0_other_with_cast.i97_1))
      return false;
    if (!(this.j97_1 === tmp0_other_with_cast.j97_1))
      return false;
    return true;
  };
  function Companion_109() {
    Companion_instance_110 = this;
    this.yks_1 = 101;
    this.zks_1 = 300;
    this.akt_1 = 301;
    this.bkt_1 = 302;
    this.ckt_1 = 304;
    this.dkt_1 = 306;
    this.ekt_1 = 307;
    this.fkt_1 = 308;
    this.gkt_1 = 309;
    this.hkt_1 = 0;
    this.ikt_1 = 800;
    this.jkt_1 = 801;
    this.kkt_1 = 802;
    this.lkt_1 = 803;
    this.mkt_1 = 804;
    this.nkt_1 = 805;
    this.okt_1 = new Long(100000, 0);
    this.pkt_1 = new Long(100001, 0);
    this.qkt_1 = new Long(100002, 0);
    this.rkt_1 = new Long(100003, 0);
    this.skt_1 = new Long(100004, 0);
    this.tkt_1 = new Long(100005, 0);
    this.ukt_1 = 1;
    this.vkt_1 = 2;
    this.wkt_1 = 3;
    this.xkt_1 = 4;
    this.ykt_1 = 5;
    this.zkt_1 = 6;
    this.aku_1 = 7;
    this.bku_1 = 8;
    this.cku_1 = 9;
    this.dku_1 = 10;
    this.eku_1 = 11;
    this.fku_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.ghb_1 = new Long(100000, 0);
    this_0.shb_1 = 'Blank report';
    this_0.thb_1 = 'Start ';
    this_0.whb_1 = true;
    this_0.xhb_1 = 0;
    this_0.yhb_1 = 1;
    this_0.zhb_1 = 2;
    var tmp_0 = this_0;
    Companion_getInstance_114();
    Companion_getInstance_114();
    Companion_getInstance_114();
    tmp_0.uhb_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.ghb_1 = new Long(100001, 0);
    this_1.shb_1 = 'Content usage over time';
    this_1.thb_1 = 'Total content ';
    this_1.ihb_1 = 306;
    this_1.whb_1 = true;
    this_1.yhb_1 = 3;
    this_1.zhb_1 = 4;
    var tmp_2 = this_1;
    Companion_getInstance_114();
    Companion_getInstance_114();
    Companion_getInstance_114();
    tmp_2.uhb_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.ghb_1 = new Long(100002, 0);
    this_2.shb_1 = 'Unique content users over time';
    this_2.thb_1 = 'Number of active users over time';
    this_2.ihb_1 = 302;
    this_2.whb_1 = true;
    this_2.yhb_1 = 5;
    this_2.zhb_1 = 6;
    var tmp_4 = this_2;
    Companion_getInstance_114();
    Companion_getInstance_114();
    Companion_getInstance_114();
    tmp_4.uhb_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.ghb_1 = new Long(100003, 0);
    this_3.shb_1 = 'Attendance over time by class';
    this_3.thb_1 = 'Percentage of students attending over time';
    this_3.whb_1 = true;
    this_3.ihb_1 = 307;
    this_3.yhb_1 = 7;
    this_3.zhb_1 = 8;
    var tmp_6 = this_3;
    Companion_getInstance_114();
    Companion_getInstance_114();
    Companion_getInstance_114();
    tmp_6.uhb_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.ghb_1 = new Long(100004, 0);
    this_4.shb_1 = 'Content usage by class';
    this_4.thb_1 = 'Total content usage duration subgroup by class';
    this_4.ihb_1 = 307;
    this_4.whb_1 = true;
    this_4.yhb_1 = 9;
    this_4.zhb_1 = 10;
    var tmp_8 = this_4;
    Companion_getInstance_114();
    Companion_getInstance_114();
    Companion_getInstance_114();
    tmp_8.uhb_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.ghb_1 = new Long(100005, 0);
    this_5.shb_1 = 'Content completion';
    this_5.thb_1 = 'Number of students who have completed selected content';
    this_5.whb_1 = true;
    this_5.ihb_1 = 304;
    this_5.yhb_1 = 11;
    this_5.zhb_1 = 12;
    var tmp_10 = this_5;
    Companion_getInstance_114();
    Companion_getInstance_114();
    Companion_getInstance_114();
    tmp_10.uhb_1 = trimIndent('\n                            [{\n                                "reportSeriesUid": 0,\n                                "reportSeriesName": "Series 1",\n                                "reportSeriesYAxis": ' + 206 + ',\n                                "reportSeriesVisualType": ' + 100 + ',\n                                "reportSeriesSubGroup": ' + 0 + '\n                            }]\n                            ');
    tmp.gku_1 = listOf_0([tmp_1, tmp_3, tmp_5, tmp_7, tmp_9, this_5]);
  }
  var Companion_instance_110;
  function Companion_getInstance_112() {
    if (Companion_instance_110 == null)
      new Companion_109();
    return Companion_instance_110;
  }
  function $serializer_106() {
    $serializer_instance_106 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Report', this, 24);
    tmp0_serialDesc.t4f('reportUid', true);
    tmp0_serialDesc.t4f('reportOwnerUid', true);
    tmp0_serialDesc.t4f('xAxis', true);
    tmp0_serialDesc.t4f('reportDateRangeSelection', true);
    tmp0_serialDesc.t4f('fromDate', true);
    tmp0_serialDesc.t4f('fromRelTo', true);
    tmp0_serialDesc.t4f('fromRelOffSet', true);
    tmp0_serialDesc.t4f('fromRelUnit', true);
    tmp0_serialDesc.t4f('toDate', true);
    tmp0_serialDesc.t4f('toRelTo', true);
    tmp0_serialDesc.t4f('toRelOffSet', true);
    tmp0_serialDesc.t4f('toRelUnit', true);
    tmp0_serialDesc.t4f('reportTitle', true);
    tmp0_serialDesc.t4f('reportDescription', true);
    tmp0_serialDesc.t4f('reportSeries', true);
    tmp0_serialDesc.t4f('reportInactive', true);
    tmp0_serialDesc.t4f('isTemplate', true);
    tmp0_serialDesc.t4f('priority', true);
    tmp0_serialDesc.t4f('reportTitleId', true);
    tmp0_serialDesc.t4f('reportDescId', true);
    tmp0_serialDesc.t4f('reportMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('reportLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('reportLastChangedBy', true);
    tmp0_serialDesc.t4f('reportLct', true);
    this.hku_1 = tmp0_serialDesc;
  }
  protoOf($serializer_106).q44 = function () {
    return this.hku_1;
  };
  protoOf($serializer_106).k4g = 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_106).s44 = function (decoder) {
    var tmp0_desc = this.hku_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.i48(tmp0_desc);
    if (tmp28_input.x48()) {
      tmp4_local0 = tmp28_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp28_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp28_input.n48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp28_input.n48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp28_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp28_input.n48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp28_input.n48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp28_input.n48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp28_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp28_input.n48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp28_input.n48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp28_input.n48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp28_input.w48(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp28_input.w48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp28_input.w48(tmp0_desc, 14, StringSerializer_getInstance(), tmp18_local14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp28_input.k48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp28_input.k48(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp28_input.n48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp28_input.n48(tmp0_desc, 18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp28_input.n48(tmp0_desc, 19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp24_local20 = tmp28_input.o48(tmp0_desc, 20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp25_local21 = tmp28_input.o48(tmp0_desc, 21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp26_local22 = tmp28_input.n48(tmp0_desc, 22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
      tmp27_local23 = tmp28_input.o48(tmp0_desc, 23);
      tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp28_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp28_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp28_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp28_input.n48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp28_input.n48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp28_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp28_input.n48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp28_input.n48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp28_input.n48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp28_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp28_input.n48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp28_input.n48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp28_input.n48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp28_input.w48(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp28_input.w48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp28_input.w48(tmp0_desc, 14, StringSerializer_getInstance(), tmp18_local14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp28_input.k48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp28_input.k48(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp28_input.n48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp28_input.n48(tmp0_desc, 18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp28_input.n48(tmp0_desc, 19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp24_local20 = tmp28_input.o48(tmp0_desc, 20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp25_local21 = tmp28_input.o48(tmp0_desc, 21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp26_local22 = tmp28_input.n48(tmp0_desc, 22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          case 23:
            tmp27_local23 = tmp28_input.o48(tmp0_desc, 23);
            tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp28_input.j48(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_106).iku = function (encoder, value) {
    var tmp0_desc = this.hku_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.ghb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.ghb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.hhb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.hhb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.ihb_1 === 300)) {
      tmp1_output.r49(tmp0_desc, 2, value.ihb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.jhb_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 3, value.jhb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.khb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.khb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.lhb_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 5, value.lhb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.mhb_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 6, value.mhb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.nhb_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 7, value.nhb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.ohb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.ohb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.phb_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 9, value.phb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.qhb_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 10, value.qhb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !(value.rhb_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 11, value.rhb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !(value.shb_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 12, StringSerializer_getInstance(), value.shb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !(value.thb_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 13, StringSerializer_getInstance(), value.thb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 14) ? true : !(value.uhb_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 14, StringSerializer_getInstance(), value.uhb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 15) ? true : !(value.vhb_1 === false)) {
      tmp1_output.o49(tmp0_desc, 15, value.vhb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 16) ? true : !(value.whb_1 === false)) {
      tmp1_output.o49(tmp0_desc, 16, value.whb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 17) ? true : !(value.xhb_1 === 1)) {
      tmp1_output.r49(tmp0_desc, 17, value.xhb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 18) ? true : !(value.yhb_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 18, value.yhb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 19) ? true : !(value.zhb_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 19, value.zhb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 20) ? true : !value.ahc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 20, value.ahc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 21) ? true : !value.bhc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 21, value.bhc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 22) ? true : !(value.chc_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 22, value.chc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 23) ? true : !value.dhc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 23, value.dhc_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_106).r44 = function (encoder, value) {
    return this.iku(encoder, value instanceof Report ? value : THROW_CCE());
  };
  var $serializer_instance_106;
  function $serializer_getInstance_106() {
    if ($serializer_instance_106 == null)
      new $serializer_106();
    return $serializer_instance_106;
  }
  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_106().hku_1);
    }
    if (0 === (seen1 & 1))
      $this.ghb_1 = new Long(0, 0);
    else
      $this.ghb_1 = reportUid;
    if (0 === (seen1 & 2))
      $this.hhb_1 = new Long(0, 0);
    else
      $this.hhb_1 = reportOwnerUid;
    if (0 === (seen1 & 4))
      $this.ihb_1 = 300;
    else
      $this.ihb_1 = xAxis;
    if (0 === (seen1 & 8))
      $this.jhb_1 = 0;
    else
      $this.jhb_1 = reportDateRangeSelection;
    if (0 === (seen1 & 16))
      $this.khb_1 = new Long(0, 0);
    else
      $this.khb_1 = fromDate;
    if (0 === (seen1 & 32))
      $this.lhb_1 = 0;
    else
      $this.lhb_1 = fromRelTo;
    if (0 === (seen1 & 64))
      $this.mhb_1 = 0;
    else
      $this.mhb_1 = fromRelOffSet;
    if (0 === (seen1 & 128))
      $this.nhb_1 = 0;
    else
      $this.nhb_1 = fromRelUnit;
    if (0 === (seen1 & 256))
      $this.ohb_1 = new Long(0, 0);
    else
      $this.ohb_1 = toDate;
    if (0 === (seen1 & 512))
      $this.phb_1 = 0;
    else
      $this.phb_1 = toRelTo;
    if (0 === (seen1 & 1024))
      $this.qhb_1 = 0;
    else
      $this.qhb_1 = toRelOffSet;
    if (0 === (seen1 & 2048))
      $this.rhb_1 = 0;
    else
      $this.rhb_1 = toRelUnit;
    if (0 === (seen1 & 4096))
      $this.shb_1 = null;
    else
      $this.shb_1 = reportTitle;
    if (0 === (seen1 & 8192))
      $this.thb_1 = null;
    else
      $this.thb_1 = reportDescription;
    if (0 === (seen1 & 16384))
      $this.uhb_1 = null;
    else
      $this.uhb_1 = reportSeries;
    if (0 === (seen1 & 32768))
      $this.vhb_1 = false;
    else
      $this.vhb_1 = reportInactive;
    if (0 === (seen1 & 65536))
      $this.whb_1 = false;
    else
      $this.whb_1 = isTemplate;
    if (0 === (seen1 & 131072))
      $this.xhb_1 = 1;
    else
      $this.xhb_1 = priority;
    if (0 === (seen1 & 262144))
      $this.yhb_1 = 0;
    else
      $this.yhb_1 = reportTitleId;
    if (0 === (seen1 & 524288))
      $this.zhb_1 = 0;
    else
      $this.zhb_1 = reportDescId;
    if (0 === (seen1 & 1048576))
      $this.ahc_1 = new Long(0, 0);
    else
      $this.ahc_1 = reportMasterChangeSeqNum;
    if (0 === (seen1 & 2097152))
      $this.bhc_1 = new Long(0, 0);
    else
      $this.bhc_1 = reportLocalChangeSeqNum;
    if (0 === (seen1 & 4194304))
      $this.chc_1 = 0;
    else
      $this.chc_1 = reportLastChangedBy;
    if (0 === (seen1 & 8388608))
      $this.dhc_1 = new Long(0, 0);
    else
      $this.dhc_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_112();
    this.ghb_1 = new Long(0, 0);
    this.hhb_1 = new Long(0, 0);
    this.ihb_1 = 300;
    this.jhb_1 = 0;
    this.khb_1 = new Long(0, 0);
    this.lhb_1 = 0;
    this.mhb_1 = 0;
    this.nhb_1 = 0;
    this.ohb_1 = new Long(0, 0);
    this.phb_1 = 0;
    this.qhb_1 = 0;
    this.rhb_1 = 0;
    this.shb_1 = null;
    this.thb_1 = null;
    this.uhb_1 = null;
    this.vhb_1 = false;
    this.whb_1 = false;
    this.xhb_1 = 1;
    this.yhb_1 = 0;
    this.zhb_1 = 0;
    this.ahc_1 = new Long(0, 0);
    this.bhc_1 = new Long(0, 0);
    this.chc_1 = 0;
    this.dhc_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.ghb_1.equals(other.ghb_1))
      return false;
    if (!this.hhb_1.equals(other.hhb_1))
      return false;
    if (!(this.ihb_1 === other.ihb_1))
      return false;
    if (!this.khb_1.equals(other.khb_1))
      return false;
    if (!(this.lhb_1 === other.lhb_1))
      return false;
    if (!(this.mhb_1 === other.mhb_1))
      return false;
    if (!(this.nhb_1 === other.nhb_1))
      return false;
    if (!this.ohb_1.equals(other.ohb_1))
      return false;
    if (!(this.phb_1 === other.phb_1))
      return false;
    if (!(this.qhb_1 === other.qhb_1))
      return false;
    if (!(this.rhb_1 === other.rhb_1))
      return false;
    if (!(this.shb_1 == other.shb_1))
      return false;
    if (!(this.thb_1 == other.thb_1))
      return false;
    if (!(this.uhb_1 == other.uhb_1))
      return false;
    if (!(this.vhb_1 === other.vhb_1))
      return false;
    if (!(this.whb_1 === other.whb_1))
      return false;
    if (!(this.xhb_1 === other.xhb_1))
      return false;
    if (!this.ahc_1.equals(other.ahc_1))
      return false;
    if (!this.bhc_1.equals(other.bhc_1))
      return false;
    if (!(this.chc_1 === other.chc_1))
      return false;
    return true;
  };
  protoOf(Report).hashCode = function () {
    var result = this.ghb_1.hashCode();
    result = imul(31, result) + this.hhb_1.hashCode() | 0;
    result = imul(31, result) + this.ihb_1 | 0;
    result = imul(31, result) + this.khb_1.hashCode() | 0;
    result = imul(31, result) + this.lhb_1 | 0;
    result = imul(31, result) + this.mhb_1 | 0;
    result = imul(31, result) + this.nhb_1 | 0;
    result = imul(31, result) + this.ohb_1.hashCode() | 0;
    result = imul(31, result) + this.phb_1 | 0;
    result = imul(31, result) + this.qhb_1 | 0;
    result = imul(31, result) + this.rhb_1 | 0;
    var tmp = imul(31, result);
    var tmp0_safe_receiver = this.shb_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.thb_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.uhb_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.vhb_1) | 0;
    result = imul(31, result) + getBooleanHashCode(this.whb_1) | 0;
    result = imul(31, result) + this.xhb_1 | 0;
    result = imul(31, result) + this.ahc_1.hashCode() | 0;
    result = imul(31, result) + this.bhc_1.hashCode() | 0;
    result = imul(31, result) + this.chc_1 | 0;
    return result;
  };
  function Companion_110() {
    this.jku_1 = 100;
    this.kku_1 = 101;
    this.lku_1 = 102;
    this.mku_1 = 103;
    this.nku_1 = 104;
    this.oku_1 = 105;
    this.pku_1 = 106;
    this.qku_1 = 107;
    this.rku_1 = 200;
    this.sku_1 = 201;
    this.tku_1 = 202;
    this.uku_1 = 203;
    this.vku_1 = 205;
    this.wku_1 = 206;
    this.xku_1 = 207;
  }
  var Companion_instance_111;
  function Companion_getInstance_113() {
    return Companion_instance_111;
  }
  function $serializer_107() {
    $serializer_instance_107 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ReportFilter', this, 8);
    tmp0_serialDesc.t4f('reportFilterUid', true);
    tmp0_serialDesc.t4f('reportFilterSeriesUid', true);
    tmp0_serialDesc.t4f('reportFilterField', true);
    tmp0_serialDesc.t4f('reportFilterCondition', true);
    tmp0_serialDesc.t4f('reportFilterValue', true);
    tmp0_serialDesc.t4f('reportFilterDropDownValue', true);
    tmp0_serialDesc.t4f('reportFilterValueBetweenX', true);
    tmp0_serialDesc.t4f('reportFilterValueBetweenY', true);
    this.yku_1 = tmp0_serialDesc;
  }
  protoOf($serializer_107).q44 = function () {
    return this.yku_1;
  };
  protoOf($serializer_107).k4g = 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_107).s44 = function (decoder) {
    var tmp0_desc = this.yku_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.i48(tmp0_desc);
    if (tmp12_input.x48()) {
      tmp4_local0 = tmp12_input.n48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.n48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.n48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.n48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.n48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.n48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.n48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.n48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.n48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.n48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.j48(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_107).zku = function (encoder, value) {
    var tmp0_desc = this.yku_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.rk1_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 0, value.rk1_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.sk1_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 1, value.sk1_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.tk1_1 === 100)) {
      tmp1_output.r49(tmp0_desc, 2, value.tk1_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.uk1_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 3, value.uk1_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.vk1_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.vk1_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.wk1_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 5, value.wk1_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.xk1_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 6, StringSerializer_getInstance(), value.xk1_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.yk1_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 7, StringSerializer_getInstance(), value.yk1_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_107).r44 = function (encoder, value) {
    return this.zku(encoder, value instanceof ReportFilter ? value : THROW_CCE());
  };
  var $serializer_instance_107;
  function $serializer_getInstance_107() {
    if ($serializer_instance_107 == null)
      new $serializer_107();
    return $serializer_instance_107;
  }
  function ReportFilter_init_$Init$(seen1, reportFilterUid, reportFilterSeriesUid, reportFilterField, reportFilterCondition, reportFilterValue, reportFilterDropDownValue, reportFilterValueBetweenX, reportFilterValueBetweenY, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_107().yku_1);
    }
    if (0 === (seen1 & 1))
      $this.rk1_1 = 0;
    else
      $this.rk1_1 = reportFilterUid;
    if (0 === (seen1 & 2))
      $this.sk1_1 = 0;
    else
      $this.sk1_1 = reportFilterSeriesUid;
    if (0 === (seen1 & 4))
      $this.tk1_1 = 100;
    else
      $this.tk1_1 = reportFilterField;
    if (0 === (seen1 & 8))
      $this.uk1_1 = 0;
    else
      $this.uk1_1 = reportFilterCondition;
    if (0 === (seen1 & 16))
      $this.vk1_1 = null;
    else
      $this.vk1_1 = reportFilterValue;
    if (0 === (seen1 & 32))
      $this.wk1_1 = 0;
    else
      $this.wk1_1 = reportFilterDropDownValue;
    if (0 === (seen1 & 64))
      $this.xk1_1 = null;
    else
      $this.xk1_1 = reportFilterValueBetweenX;
    if (0 === (seen1 & 128))
      $this.yk1_1 = null;
    else
      $this.yk1_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.rk1_1 = 0;
    this.sk1_1 = 0;
    this.tk1_1 = 100;
    this.uk1_1 = 0;
    this.vk1_1 = null;
    this.wk1_1 = 0;
    this.xk1_1 = null;
    this.yk1_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.rk1_1 === other.rk1_1))
      return false;
    if (!(this.sk1_1 === other.sk1_1))
      return false;
    if (!(this.tk1_1 === other.tk1_1))
      return false;
    if (!(this.uk1_1 === other.uk1_1))
      return false;
    if (!(this.vk1_1 == other.vk1_1))
      return false;
    if (!(this.wk1_1 === other.wk1_1))
      return false;
    if (!(this.xk1_1 == other.xk1_1))
      return false;
    if (!(this.yk1_1 == other.yk1_1))
      return false;
    return true;
  };
  protoOf(ReportFilter).hashCode = function () {
    var result = this.rk1_1;
    result = imul(31, result) + this.sk1_1 | 0;
    result = imul(31, result) + this.tk1_1 | 0;
    result = imul(31, result) + this.uk1_1 | 0;
    var tmp = imul(31, result);
    var tmp0_safe_receiver = this.vk1_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.wk1_1 | 0;
    var tmp_0 = imul(31, result);
    var tmp2_safe_receiver = this.xk1_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.yk1_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_111() {
    Companion_instance_112 = this;
    var tmp = this;
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    tmp.akv_1 = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_107())];
    this.bkv_1 = 100;
    this.ckv_1 = 101;
    this.dkv_1 = 100;
    this.ekv_1 = 101;
    this.fkv_1 = 200;
    this.gkv_1 = 201;
    this.hkv_1 = 202;
    this.ikv_1 = 203;
    this.jkv_1 = 204;
    this.kkv_1 = 205;
    this.lkv_1 = 206;
    this.mkv_1 = 207;
    this.nkv_1 = 208;
    this.okv_1 = 209;
    this.pkv_1 = 210;
    this.qkv_1 = 211;
    this.rkv_1 = 212;
    this.skv_1 = 213;
    this.tkv_1 = 214;
    this.ukv_1 = 0;
  }
  var Companion_instance_112;
  function Companion_getInstance_114() {
    if (Companion_instance_112 == null)
      new Companion_111();
    return Companion_instance_112;
  }
  function Companion_112() {
    this.vkv_1 = 21;
    this.wkv_1 = 1;
    this.xkv_1 = 2;
    this.ykv_1 = 3;
    this.zkv_1 = 4;
    this.akw_1 = 5;
    this.bkw_1 = 1;
    this.ckw_1 = 2;
    this.dkw_1 = 3;
    this.ekw_1 = 4;
    this.fkw_1 = 5;
    this.gkw_1 = 6;
    this.hkw_1 = 7;
    this.ikw_1 = 1;
    this.jkw_1 = 2;
    this.kkw_1 = 3;
    this.lkw_1 = 4;
    this.mkw_1 = 5;
    this.nkw_1 = 6;
    this.okw_1 = 7;
    this.pkw_1 = 8;
    this.qkw_1 = 9;
    this.rkw_1 = 10;
    this.skw_1 = 11;
    this.tkw_1 = 12;
  }
  protoOf(Companion_112).n4r = function () {
    return $serializer_getInstance_108();
  };
  var Companion_instance_113;
  function Companion_getInstance_115() {
    return Companion_instance_113;
  }
  function $serializer_108() {
    $serializer_instance_108 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Schedule', this, 13);
    tmp0_serialDesc.t4f('scheduleUid', true);
    tmp0_serialDesc.t4f('sceduleStartTime', true);
    tmp0_serialDesc.t4f('scheduleEndTime', true);
    tmp0_serialDesc.t4f('scheduleDay', true);
    tmp0_serialDesc.t4f('scheduleMonth', true);
    tmp0_serialDesc.t4f('scheduleFrequency', true);
    tmp0_serialDesc.t4f('umCalendarUid', true);
    tmp0_serialDesc.t4f('scheduleClazzUid', true);
    tmp0_serialDesc.t4f('scheduleMasterChangeSeqNum', true);
    tmp0_serialDesc.t4f('scheduleLocalChangeSeqNum', true);
    tmp0_serialDesc.t4f('scheduleLastChangedBy', true);
    tmp0_serialDesc.t4f('scheduleLastChangedTime', true);
    tmp0_serialDesc.t4f('scheduleActive', true);
    this.ukw_1 = tmp0_serialDesc;
  }
  protoOf($serializer_108).q44 = function () {
    return this.ukw_1;
  };
  protoOf($serializer_108).k4g = 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_108).s44 = function (decoder) {
    var tmp0_desc = this.ukw_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.i48(tmp0_desc);
    if (tmp17_input.x48()) {
      tmp4_local0 = tmp17_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp17_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp17_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp17_input.n48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp17_input.n48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp17_input.n48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp17_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp17_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp17_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp17_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp17_input.n48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp17_input.o48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp17_input.k48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp17_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp17_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp17_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp17_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp17_input.n48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp17_input.n48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp17_input.n48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp17_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp17_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp17_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp17_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp17_input.n48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp17_input.o48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp17_input.k48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp17_input.j48(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_108).vkw = function (encoder, value) {
    var tmp0_desc = this.ukw_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.uhe_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.uhe_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.vhe_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.vhe_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.whe_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.whe_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.xhe_1 === Companion_instance_113.bkw_1)) {
      tmp1_output.r49(tmp0_desc, 3, value.xhe_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.yhe_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 4, value.yhe_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.zhe_1 === Companion_instance_113.xkv_1)) {
      tmp1_output.r49(tmp0_desc, 5, value.zhe_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.ahf_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.ahf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.bhf_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.bhf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.chf_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.chf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !value.dhf_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 9, value.dhf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.ehf_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 10, value.ehf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !value.fhf_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 11, value.fhf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !(value.ghf_1 === true)) {
      tmp1_output.o49(tmp0_desc, 12, value.ghf_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_108).r44 = function (encoder, value) {
    return this.vkw(encoder, value instanceof Schedule ? value : THROW_CCE());
  };
  var $serializer_instance_108;
  function $serializer_getInstance_108() {
    if ($serializer_instance_108 == null)
      new $serializer_108();
    return $serializer_instance_108;
  }
  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_108().ukw_1);
    }
    if (0 === (seen1 & 1))
      $this.uhe_1 = new Long(0, 0);
    else
      $this.uhe_1 = scheduleUid;
    if (0 === (seen1 & 2))
      $this.vhe_1 = new Long(0, 0);
    else
      $this.vhe_1 = sceduleStartTime;
    if (0 === (seen1 & 4))
      $this.whe_1 = new Long(0, 0);
    else
      $this.whe_1 = scheduleEndTime;
    if (0 === (seen1 & 8))
      $this.xhe_1 = Companion_instance_113.bkw_1;
    else
      $this.xhe_1 = scheduleDay;
    if (0 === (seen1 & 16))
      $this.yhe_1 = 0;
    else
      $this.yhe_1 = scheduleMonth;
    if (0 === (seen1 & 32))
      $this.zhe_1 = Companion_instance_113.xkv_1;
    else
      $this.zhe_1 = scheduleFrequency;
    if (0 === (seen1 & 64))
      $this.ahf_1 = new Long(0, 0);
    else
      $this.ahf_1 = umCalendarUid;
    if (0 === (seen1 & 128))
      $this.bhf_1 = new Long(0, 0);
    else
      $this.bhf_1 = scheduleClazzUid;
    if (0 === (seen1 & 256))
      $this.chf_1 = new Long(0, 0);
    else
      $this.chf_1 = scheduleMasterChangeSeqNum;
    if (0 === (seen1 & 512))
      $this.dhf_1 = new Long(0, 0);
    else
      $this.dhf_1 = scheduleLocalChangeSeqNum;
    if (0 === (seen1 & 1024))
      $this.ehf_1 = 0;
    else
      $this.ehf_1 = scheduleLastChangedBy;
    if (0 === (seen1 & 2048))
      $this.fhf_1 = new Long(0, 0);
    else
      $this.fhf_1 = scheduleLastChangedTime;
    if (0 === (seen1 & 4096))
      $this.ghf_1 = true;
    else
      $this.ghf_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.uhe_1 = new Long(0, 0);
    this.vhe_1 = new Long(0, 0);
    this.whe_1 = new Long(0, 0);
    this.xhe_1 = Companion_instance_113.bkw_1;
    this.yhe_1 = 0;
    this.zhe_1 = Companion_instance_113.xkv_1;
    this.ahf_1 = new Long(0, 0);
    this.bhf_1 = new Long(0, 0);
    this.chf_1 = new Long(0, 0);
    this.dhf_1 = new Long(0, 0);
    this.ehf_1 = 0;
    this.fhf_1 = new Long(0, 0);
    this.ghf_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.uhe_1.equals(other.uhe_1))
      return false;
    if (!this.vhe_1.equals(other.vhe_1))
      return false;
    if (!this.whe_1.equals(other.whe_1))
      return false;
    if (!(this.xhe_1 === other.xhe_1))
      return false;
    if (!(this.yhe_1 === other.yhe_1))
      return false;
    if (!(this.zhe_1 === other.zhe_1))
      return false;
    if (!this.ahf_1.equals(other.ahf_1))
      return false;
    if (!this.bhf_1.equals(other.bhf_1))
      return false;
    if (!this.chf_1.equals(other.chf_1))
      return false;
    if (!this.dhf_1.equals(other.dhf_1))
      return false;
    if (!(this.ehf_1 === other.ehf_1))
      return false;
    if (!(this.ghf_1 === other.ghf_1))
      return false;
    return true;
  };
  protoOf(Schedule).hashCode = function () {
    var result = this.uhe_1.hashCode();
    result = imul(31, result) + this.vhe_1.hashCode() | 0;
    result = imul(31, result) + this.whe_1.hashCode() | 0;
    result = imul(31, result) + this.xhe_1 | 0;
    result = imul(31, result) + this.yhe_1 | 0;
    result = imul(31, result) + this.zhe_1 | 0;
    result = imul(31, result) + this.ahf_1.hashCode() | 0;
    result = imul(31, result) + this.bhf_1.hashCode() | 0;
    result = imul(31, result) + this.chf_1.hashCode() | 0;
    result = imul(31, result) + this.dhf_1.hashCode() | 0;
    result = imul(31, result) + this.ehf_1 | 0;
    result = imul(31, result) + getBooleanHashCode(this.ghf_1) | 0;
    return result;
  };
  function Companion_113() {
    Companion_instance_114 = this;
    this.wkw_1 = 48;
    this.xkw_1 = -2;
    this.ykw_1 = new Long(-2, -1);
  }
  var Companion_instance_114;
  function Companion_getInstance_116() {
    if (Companion_instance_114 == null)
      new Companion_113();
    return Companion_instance_114;
  }
  function $serializer_109() {
    $serializer_instance_109 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ScopedGrant', this, 11);
    tmp0_serialDesc.t4f('sgUid', true);
    tmp0_serialDesc.t4f('sgPcsn', true);
    tmp0_serialDesc.t4f('sgLcsn', true);
    tmp0_serialDesc.t4f('sgLcb', true);
    tmp0_serialDesc.t4f('sgLct', true);
    tmp0_serialDesc.t4f('sgTableId', true);
    tmp0_serialDesc.t4f('sgEntityUid', true);
    tmp0_serialDesc.t4f('sgPermissions', true);
    tmp0_serialDesc.t4f('sgGroupUid', true);
    tmp0_serialDesc.t4f('sgIndex', true);
    tmp0_serialDesc.t4f('sgFlags', true);
    this.zkw_1 = tmp0_serialDesc;
  }
  protoOf($serializer_109).q44 = function () {
    return this.zkw_1;
  };
  protoOf($serializer_109).k4g = 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_109).s44 = function (decoder) {
    var tmp0_desc = this.zkw_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.i48(tmp0_desc);
    if (tmp15_input.x48()) {
      tmp4_local0 = tmp15_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp15_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp15_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp15_input.n48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp15_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp15_input.n48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp15_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp15_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp15_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp15_input.n48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp15_input.n48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp15_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp15_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp15_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp15_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp15_input.n48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp15_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp15_input.n48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp15_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp15_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp15_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp15_input.n48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp15_input.n48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp15_input.j48(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_109).akx = function (encoder, value) {
    var tmp0_desc = this.zkw_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.lhl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.lhl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.mhl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.mhl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.nhl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.nhl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.ohl_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 3, value.ohl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.phl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.phl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.qhl_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 5, value.qhl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.rhl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.rhl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.shl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.shl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.thl_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.thl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.uhl_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 9, value.uhl_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.vhl_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 10, value.vhl_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_109).r44 = function (encoder, value) {
    return this.akx(encoder, value instanceof ScopedGrant ? value : THROW_CCE());
  };
  var $serializer_instance_109;
  function $serializer_getInstance_109() {
    if ($serializer_instance_109 == null)
      new $serializer_109();
    return $serializer_instance_109;
  }
  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_109().zkw_1);
    }
    if (0 === (seen1 & 1))
      $this.lhl_1 = new Long(0, 0);
    else
      $this.lhl_1 = sgUid;
    if (0 === (seen1 & 2))
      $this.mhl_1 = new Long(0, 0);
    else
      $this.mhl_1 = sgPcsn;
    if (0 === (seen1 & 4))
      $this.nhl_1 = new Long(0, 0);
    else
      $this.nhl_1 = sgLcsn;
    if (0 === (seen1 & 8))
      $this.ohl_1 = 0;
    else
      $this.ohl_1 = sgLcb;
    if (0 === (seen1 & 16))
      $this.phl_1 = new Long(0, 0);
    else
      $this.phl_1 = sgLct;
    if (0 === (seen1 & 32))
      $this.qhl_1 = 0;
    else
      $this.qhl_1 = sgTableId;
    if (0 === (seen1 & 64))
      $this.rhl_1 = new Long(0, 0);
    else
      $this.rhl_1 = sgEntityUid;
    if (0 === (seen1 & 128))
      $this.shl_1 = new Long(0, 0);
    else
      $this.shl_1 = sgPermissions;
    if (0 === (seen1 & 256))
      $this.thl_1 = new Long(0, 0);
    else
      $this.thl_1 = sgGroupUid;
    if (0 === (seen1 & 512))
      $this.uhl_1 = 0;
    else
      $this.uhl_1 = sgIndex;
    if (0 === (seen1 & 1024))
      $this.vhl_1 = 0;
    else
      $this.vhl_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_116();
    this.lhl_1 = new Long(0, 0);
    this.mhl_1 = new Long(0, 0);
    this.nhl_1 = new Long(0, 0);
    this.ohl_1 = 0;
    this.phl_1 = new Long(0, 0);
    this.qhl_1 = 0;
    this.rhl_1 = new Long(0, 0);
    this.shl_1 = new Long(0, 0);
    this.thl_1 = new Long(0, 0);
    this.uhl_1 = 0;
    this.vhl_1 = 0;
  }
  function Companion_114() {
    this.bkx_1 = 189;
  }
  protoOf(Companion_114).n4r = function () {
    return $serializer_getInstance_110();
  };
  var Companion_instance_115;
  function Companion_getInstance_117() {
    return Companion_instance_115;
  }
  function $serializer_110() {
    $serializer_instance_110 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Site', this, 9);
    tmp0_serialDesc.t4f('siteUid', true);
    tmp0_serialDesc.t4f('sitePcsn', true);
    tmp0_serialDesc.t4f('siteLcsn', true);
    tmp0_serialDesc.t4f('siteLcb', true);
    tmp0_serialDesc.t4f('siteLct', true);
    tmp0_serialDesc.t4f('siteName', true);
    tmp0_serialDesc.t4f('guestLogin', true);
    tmp0_serialDesc.t4f('registrationAllowed', true);
    tmp0_serialDesc.t4f('authSalt', true);
    this.ckx_1 = tmp0_serialDesc;
  }
  protoOf($serializer_110).q44 = function () {
    return this.ckx_1;
  };
  protoOf($serializer_110).k4g = 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_110).s44 = function (decoder) {
    var tmp0_desc = this.ckx_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.i48(tmp0_desc);
    if (tmp13_input.x48()) {
      tmp4_local0 = tmp13_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp13_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp13_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp13_input.n48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp13_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp13_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp13_input.k48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp13_input.k48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp13_input.w48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp13_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp13_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp13_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp13_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp13_input.n48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp13_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp13_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp13_input.k48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp13_input.k48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp13_input.w48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp13_input.j48(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_110).dkx = function (encoder, value) {
    var tmp0_desc = this.ckx_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.qhn_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.qhn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.rhn_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.rhn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.shn_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.shn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.thn_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 3, value.thn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.uhn_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.uhn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.vhn_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.vhn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.whn_1 === true)) {
      tmp1_output.o49(tmp0_desc, 6, value.whn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.xhn_1 === true)) {
      tmp1_output.o49(tmp0_desc, 7, value.xhn_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.yhn_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 8, StringSerializer_getInstance(), value.yhn_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_110).r44 = function (encoder, value) {
    return this.dkx(encoder, value instanceof Site ? value : THROW_CCE());
  };
  var $serializer_instance_110;
  function $serializer_getInstance_110() {
    if ($serializer_instance_110 == null)
      new $serializer_110();
    return $serializer_instance_110;
  }
  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_110().ckx_1);
    }
    if (0 === (seen1 & 1))
      $this.qhn_1 = new Long(0, 0);
    else
      $this.qhn_1 = siteUid;
    if (0 === (seen1 & 2))
      $this.rhn_1 = new Long(0, 0);
    else
      $this.rhn_1 = sitePcsn;
    if (0 === (seen1 & 4))
      $this.shn_1 = new Long(0, 0);
    else
      $this.shn_1 = siteLcsn;
    if (0 === (seen1 & 8))
      $this.thn_1 = 0;
    else
      $this.thn_1 = siteLcb;
    if (0 === (seen1 & 16))
      $this.uhn_1 = new Long(0, 0);
    else
      $this.uhn_1 = siteLct;
    if (0 === (seen1 & 32))
      $this.vhn_1 = null;
    else
      $this.vhn_1 = siteName;
    if (0 === (seen1 & 64))
      $this.whn_1 = true;
    else
      $this.whn_1 = guestLogin;
    if (0 === (seen1 & 128))
      $this.xhn_1 = true;
    else
      $this.xhn_1 = registrationAllowed;
    if (0 === (seen1 & 256))
      $this.yhn_1 = null;
    else
      $this.yhn_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.qhn_1 = new Long(0, 0);
    this.rhn_1 = new Long(0, 0);
    this.shn_1 = new Long(0, 0);
    this.thn_1 = 0;
    this.uhn_1 = new Long(0, 0);
    this.vhn_1 = null;
    this.whn_1 = true;
    this.xhn_1 = true;
    this.yhn_1 = null;
  }
  function Companion_115() {
    this.ekx_1 = 272;
  }
  protoOf(Companion_115).n4r = function () {
    return $serializer_getInstance_111();
  };
  var Companion_instance_116;
  function Companion_getInstance_118() {
    return Companion_instance_116;
  }
  function $serializer_111() {
    $serializer_instance_111 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.SiteTerms', this, 9);
    tmp0_serialDesc.t4f('sTermsUid', true);
    tmp0_serialDesc.t4f('termsHtml', true);
    tmp0_serialDesc.t4f('sTermsLang', true);
    tmp0_serialDesc.t4f('sTermsLangUid', true);
    tmp0_serialDesc.t4f('sTermsActive', true);
    tmp0_serialDesc.t4f('sTermsLastChangedBy', true);
    tmp0_serialDesc.t4f('sTermsPrimaryCsn', true);
    tmp0_serialDesc.t4f('sTermsLocalCsn', true);
    tmp0_serialDesc.t4f('sTermsLct', true);
    this.fkx_1 = tmp0_serialDesc;
  }
  protoOf($serializer_111).q44 = function () {
    return this.fkx_1;
  };
  protoOf($serializer_111).k4g = 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_111).s44 = function (decoder) {
    var tmp0_desc = this.fkx_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.i48(tmp0_desc);
    if (tmp13_input.x48()) {
      tmp4_local0 = tmp13_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp13_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp13_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp13_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp13_input.k48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp13_input.n48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp13_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp13_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp13_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp13_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp13_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp13_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp13_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp13_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp13_input.k48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp13_input.n48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp13_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp13_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp13_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp13_input.j48(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_111).gkx = function (encoder, value) {
    var tmp0_desc = this.fkx_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.dht_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.dht_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.eht_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.eht_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.fht_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.fht_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.ght_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.ght_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.hht_1 === true)) {
      tmp1_output.o49(tmp0_desc, 4, value.hht_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.iht_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 5, value.iht_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.jht_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.jht_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.kht_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.kht_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.lht_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.lht_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_111).r44 = function (encoder, value) {
    return this.gkx(encoder, value instanceof SiteTerms ? value : THROW_CCE());
  };
  var $serializer_instance_111;
  function $serializer_getInstance_111() {
    if ($serializer_instance_111 == null)
      new $serializer_111();
    return $serializer_instance_111;
  }
  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_111().fkx_1);
    }
    if (0 === (seen1 & 1))
      $this.dht_1 = new Long(0, 0);
    else
      $this.dht_1 = sTermsUid;
    if (0 === (seen1 & 2))
      $this.eht_1 = null;
    else
      $this.eht_1 = termsHtml;
    if (0 === (seen1 & 4))
      $this.fht_1 = null;
    else
      $this.fht_1 = sTermsLang;
    if (0 === (seen1 & 8))
      $this.ght_1 = new Long(0, 0);
    else
      $this.ght_1 = sTermsLangUid;
    if (0 === (seen1 & 16))
      $this.hht_1 = true;
    else
      $this.hht_1 = sTermsActive;
    if (0 === (seen1 & 32))
      $this.iht_1 = 0;
    else
      $this.iht_1 = sTermsLastChangedBy;
    if (0 === (seen1 & 64))
      $this.jht_1 = new Long(0, 0);
    else
      $this.jht_1 = sTermsPrimaryCsn;
    if (0 === (seen1 & 128))
      $this.kht_1 = new Long(0, 0);
    else
      $this.kht_1 = sTermsLocalCsn;
    if (0 === (seen1 & 256))
      $this.lht_1 = new Long(0, 0);
    else
      $this.lht_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.dht_1 = new Long(0, 0);
    this.eht_1 = null;
    this.fht_1 = null;
    this.ght_1 = new Long(0, 0);
    this.hht_1 = true;
    this.iht_1 = 0;
    this.jht_1 = new Long(0, 0);
    this.kht_1 = new Long(0, 0);
    this.lht_1 = new Long(0, 0);
  }
  function Companion_116() {
  }
  var Companion_instance_117;
  function Companion_getInstance_119() {
    return Companion_instance_117;
  }
  function $serializer_112() {
    $serializer_instance_112 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.SiteTermsWithLanguage', this, 10);
    tmp0_serialDesc.t4f('sTermsUid', true);
    tmp0_serialDesc.t4f('termsHtml', true);
    tmp0_serialDesc.t4f('sTermsLang', true);
    tmp0_serialDesc.t4f('sTermsLangUid', true);
    tmp0_serialDesc.t4f('sTermsActive', true);
    tmp0_serialDesc.t4f('sTermsLastChangedBy', true);
    tmp0_serialDesc.t4f('sTermsPrimaryCsn', true);
    tmp0_serialDesc.t4f('sTermsLocalCsn', true);
    tmp0_serialDesc.t4f('sTermsLct', true);
    tmp0_serialDesc.t4f('stLanguage', true);
    this.hkx_1 = tmp0_serialDesc;
  }
  protoOf($serializer_112).q44 = function () {
    return this.hkx_1;
  };
  protoOf($serializer_112).k4g = 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_90())];
  };
  protoOf($serializer_112).s44 = function (decoder) {
    var tmp0_desc = this.hkx_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.i48(tmp0_desc);
    if (tmp14_input.x48()) {
      tmp4_local0 = tmp14_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp14_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp14_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp14_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp14_input.k48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp14_input.n48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp14_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp14_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp14_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp14_input.w48(tmp0_desc, 9, $serializer_getInstance_90(), tmp13_local9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp14_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp14_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp14_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp14_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp14_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp14_input.k48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp14_input.n48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp14_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp14_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp14_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp14_input.w48(tmp0_desc, 9, $serializer_getInstance_90(), tmp13_local9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp14_input.j48(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_112).ikx = function (encoder, value) {
    var tmp0_desc = this.hkx_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.dht_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.dht_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.eht_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.eht_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.fht_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.fht_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.ght_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.ght_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.hht_1 === true)) {
      tmp1_output.o49(tmp0_desc, 4, value.hht_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.iht_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 5, value.iht_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.jht_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.jht_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.kht_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.kht_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.lht_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.lht_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.skx_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 9, $serializer_getInstance_90(), value.skx_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_112).r44 = function (encoder, value) {
    return this.ikx(encoder, value instanceof SiteTermsWithLanguage ? value : THROW_CCE());
  };
  var $serializer_instance_112;
  function $serializer_getInstance_112() {
    if ($serializer_instance_112 == null)
      new $serializer_112();
    return $serializer_instance_112;
  }
  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_112().hkx_1);
    }
    SiteTerms_init_$Init$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, serializationConstructorMarker, $this);
    if (0 === (seen1 & 512))
      $this.skx_1 = null;
    else
      $this.skx_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.skx_1 = null;
  }
  function Companion_117() {
    this.tkx_1 = 471;
  }
  var Companion_instance_118;
  function Companion_getInstance_120() {
    return Companion_instance_118;
  }
  function $serializer_113() {
    $serializer_instance_113 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.StudentResult', this, 21);
    tmp0_serialDesc.t4f('srUid', true);
    tmp0_serialDesc.t4f('srSourcedId', true);
    tmp0_serialDesc.t4f('srCourseBlockUid', true);
    tmp0_serialDesc.t4f('srLineItemSourcedId', true);
    tmp0_serialDesc.t4f('srLineItemHref', true);
    tmp0_serialDesc.t4f('srClazzUid', true);
    tmp0_serialDesc.t4f('srAssignmentUid', true);
    tmp0_serialDesc.t4f('srStatus', true);
    tmp0_serialDesc.t4f('srMetaData', true);
    tmp0_serialDesc.t4f('srStudentPersonUid', true);
    tmp0_serialDesc.t4f('srStudentPersonSourcedId', true);
    tmp0_serialDesc.t4f('srStudentGroupId', true);
    tmp0_serialDesc.t4f('srMarkerPersonUid', true);
    tmp0_serialDesc.t4f('srMarkerGroupId', true);
    tmp0_serialDesc.t4f('srScoreStatus', true);
    tmp0_serialDesc.t4f('srScore', true);
    tmp0_serialDesc.t4f('srScoreDate', true);
    tmp0_serialDesc.t4f('srLastModified', true);
    tmp0_serialDesc.t4f('srComment', true);
    tmp0_serialDesc.t4f('srAppId', true);
    tmp0_serialDesc.t4f('srDeleted', true);
    this.ukx_1 = tmp0_serialDesc;
  }
  protoOf($serializer_113).q44 = function () {
    return this.ukx_1;
  };
  protoOf($serializer_113).k4g = 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_113).s44 = function (decoder) {
    var tmp0_desc = this.ukx_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.i48(tmp0_desc);
    if (tmp25_input.x48()) {
      tmp4_local0 = tmp25_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp25_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp25_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp25_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp25_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp25_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp25_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp25_input.n48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp25_input.w48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp25_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp25_input.w48(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp25_input.n48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp25_input.o48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp25_input.n48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp25_input.n48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp25_input.p48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp25_input.o48(tmp0_desc, 16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp25_input.o48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp25_input.w48(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp23_local19 = tmp25_input.w48(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp24_local20 = tmp25_input.k48(tmp0_desc, 20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp25_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp25_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp25_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp25_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp25_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp25_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp25_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp25_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp25_input.n48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp25_input.w48(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp25_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp25_input.w48(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp25_input.n48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp25_input.o48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp25_input.n48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp25_input.n48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp25_input.p48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp25_input.o48(tmp0_desc, 16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp25_input.o48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp25_input.w48(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp23_local19 = tmp25_input.w48(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp24_local20 = tmp25_input.k48(tmp0_desc, 20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp25_input.j48(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_113).vkx = function (encoder, value) {
    var tmp0_desc = this.ukx_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.jhz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.jhz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.khz_1 === '')) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.khz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.lhz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.lhz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.mhz_1 === '')) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.mhz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.nhz_1 === '')) {
      tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.nhz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.ohz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.ohz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.phz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.phz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.qhz_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 7, value.qhz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.rhz_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 8, StringSerializer_getInstance(), value.rhz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !value.shz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 9, value.shz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.thz_1 === '')) {
      tmp1_output.a4a(tmp0_desc, 10, StringSerializer_getInstance(), value.thz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !(value.uhz_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 11, value.uhz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !value.vhz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 12, value.vhz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !(value.whz_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 13, value.whz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 14) ? true : !(value.xhz_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 14, value.xhz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 15) ? true : !equals(value.yhz_1, 0.0)) {
      tmp1_output.t49(tmp0_desc, 15, value.yhz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 16) ? true : !value.zhz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 16, value.zhz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 17) ? true : !value.ai0_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 17, value.ai0_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 18) ? true : !(value.bi0_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 18, StringSerializer_getInstance(), value.bi0_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 19) ? true : !(value.ci0_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 19, StringSerializer_getInstance(), value.ci0_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 20) ? true : !(value.di0_1 === false)) {
      tmp1_output.o49(tmp0_desc, 20, value.di0_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_113).r44 = function (encoder, value) {
    return this.vkx(encoder, value instanceof StudentResult ? value : THROW_CCE());
  };
  var $serializer_instance_113;
  function $serializer_getInstance_113() {
    if ($serializer_instance_113 == null)
      new $serializer_113();
    return $serializer_instance_113;
  }
  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_113().ukx_1);
    }
    if (0 === (seen1 & 1))
      $this.jhz_1 = new Long(0, 0);
    else
      $this.jhz_1 = srUid;
    if (0 === (seen1 & 2))
      $this.khz_1 = '';
    else
      $this.khz_1 = srSourcedId;
    if (0 === (seen1 & 4))
      $this.lhz_1 = new Long(0, 0);
    else
      $this.lhz_1 = srCourseBlockUid;
    if (0 === (seen1 & 8))
      $this.mhz_1 = '';
    else
      $this.mhz_1 = srLineItemSourcedId;
    if (0 === (seen1 & 16))
      $this.nhz_1 = '';
    else
      $this.nhz_1 = srLineItemHref;
    if (0 === (seen1 & 32))
      $this.ohz_1 = new Long(0, 0);
    else
      $this.ohz_1 = srClazzUid;
    if (0 === (seen1 & 64))
      $this.phz_1 = new Long(0, 0);
    else
      $this.phz_1 = srAssignmentUid;
    if (0 === (seen1 & 128))
      $this.qhz_1 = 0;
    else
      $this.qhz_1 = srStatus;
    if (0 === (seen1 & 256))
      $this.rhz_1 = null;
    else
      $this.rhz_1 = srMetaData;
    if (0 === (seen1 & 512))
      $this.shz_1 = new Long(0, 0);
    else
      $this.shz_1 = srStudentPersonUid;
    if (0 === (seen1 & 1024))
      $this.thz_1 = '';
    else
      $this.thz_1 = srStudentPersonSourcedId;
    if (0 === (seen1 & 2048))
      $this.uhz_1 = 0;
    else
      $this.uhz_1 = srStudentGroupId;
    if (0 === (seen1 & 4096))
      $this.vhz_1 = new Long(0, 0);
    else
      $this.vhz_1 = srMarkerPersonUid;
    if (0 === (seen1 & 8192))
      $this.whz_1 = 0;
    else
      $this.whz_1 = srMarkerGroupId;
    if (0 === (seen1 & 16384))
      $this.xhz_1 = 0;
    else
      $this.xhz_1 = srScoreStatus;
    if (0 === (seen1 & 32768))
      $this.yhz_1 = 0.0;
    else
      $this.yhz_1 = srScore;
    if (0 === (seen1 & 65536))
      $this.zhz_1 = new Long(0, 0);
    else
      $this.zhz_1 = srScoreDate;
    if (0 === (seen1 & 131072))
      $this.ai0_1 = new Long(0, 0);
    else
      $this.ai0_1 = srLastModified;
    if (0 === (seen1 & 262144))
      $this.bi0_1 = null;
    else
      $this.bi0_1 = srComment;
    if (0 === (seen1 & 524288))
      $this.ci0_1 = null;
    else
      $this.ci0_1 = srAppId;
    if (0 === (seen1 & 1048576))
      $this.di0_1 = false;
    else
      $this.di0_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.jhz_1 = srUid;
    this.khz_1 = srSourcedId;
    this.lhz_1 = srCourseBlockUid;
    this.mhz_1 = srLineItemSourcedId;
    this.nhz_1 = srLineItemHref;
    this.ohz_1 = srClazzUid;
    this.phz_1 = srAssignmentUid;
    this.qhz_1 = srStatus;
    this.rhz_1 = srMetaData;
    this.shz_1 = srStudentPersonUid;
    this.thz_1 = srStudentPersonSourcedId;
    this.uhz_1 = srStudentGroupId;
    this.vhz_1 = srMarkerPersonUid;
    this.whz_1 = srMarkerGroupId;
    this.xhz_1 = srScoreStatus;
    this.yhz_1 = srScore;
    this.zhz_1 = srScoreDate;
    this.ai0_1 = srLastModified;
    this.bi0_1 = srComment;
    this.ci0_1 = srAppId;
    this.di0_1 = srDeleted;
  }
  protoOf(StudentResult).toString = function () {
    return 'StudentResult(srUid=' + this.jhz_1.toString() + ', srSourcedId=' + this.khz_1 + ', srCourseBlockUid=' + this.lhz_1.toString() + ', srLineItemSourcedId=' + this.mhz_1 + ', srLineItemHref=' + this.nhz_1 + ', srClazzUid=' + this.ohz_1.toString() + ', srAssignmentUid=' + this.phz_1.toString() + ', srStatus=' + this.qhz_1 + ', srMetaData=' + this.rhz_1 + ', srStudentPersonUid=' + this.shz_1.toString() + ', srStudentPersonSourcedId=' + this.thz_1 + ', srStudentGroupId=' + this.uhz_1 + ', srMarkerPersonUid=' + this.vhz_1.toString() + ', srMarkerGroupId=' + this.whz_1 + ', srScoreStatus=' + this.xhz_1 + ', srScore=' + this.yhz_1 + ', srScoreDate=' + this.zhz_1.toString() + ', srLastModified=' + this.ai0_1.toString() + ', srComment=' + this.bi0_1 + ', srAppId=' + this.ci0_1 + ', srDeleted=' + this.di0_1 + ')';
  };
  protoOf(StudentResult).hashCode = function () {
    var result = this.jhz_1.hashCode();
    result = imul(result, 31) + (this.khz_1 == null ? 0 : getStringHashCode(this.khz_1)) | 0;
    result = imul(result, 31) + this.lhz_1.hashCode() | 0;
    result = imul(result, 31) + (this.mhz_1 == null ? 0 : getStringHashCode(this.mhz_1)) | 0;
    result = imul(result, 31) + (this.nhz_1 == null ? 0 : getStringHashCode(this.nhz_1)) | 0;
    result = imul(result, 31) + this.ohz_1.hashCode() | 0;
    result = imul(result, 31) + this.phz_1.hashCode() | 0;
    result = imul(result, 31) + this.qhz_1 | 0;
    result = imul(result, 31) + (this.rhz_1 == null ? 0 : getStringHashCode(this.rhz_1)) | 0;
    result = imul(result, 31) + this.shz_1.hashCode() | 0;
    result = imul(result, 31) + (this.thz_1 == null ? 0 : getStringHashCode(this.thz_1)) | 0;
    result = imul(result, 31) + this.uhz_1 | 0;
    result = imul(result, 31) + this.vhz_1.hashCode() | 0;
    result = imul(result, 31) + this.whz_1 | 0;
    result = imul(result, 31) + this.xhz_1 | 0;
    result = imul(result, 31) + getNumberHashCode(this.yhz_1) | 0;
    result = imul(result, 31) + this.zhz_1.hashCode() | 0;
    result = imul(result, 31) + this.ai0_1.hashCode() | 0;
    result = imul(result, 31) + (this.bi0_1 == null ? 0 : getStringHashCode(this.bi0_1)) | 0;
    result = imul(result, 31) + (this.ci0_1 == null ? 0 : getStringHashCode(this.ci0_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.di0_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.jhz_1.equals(tmp0_other_with_cast.jhz_1))
      return false;
    if (!(this.khz_1 == tmp0_other_with_cast.khz_1))
      return false;
    if (!this.lhz_1.equals(tmp0_other_with_cast.lhz_1))
      return false;
    if (!(this.mhz_1 == tmp0_other_with_cast.mhz_1))
      return false;
    if (!(this.nhz_1 == tmp0_other_with_cast.nhz_1))
      return false;
    if (!this.ohz_1.equals(tmp0_other_with_cast.ohz_1))
      return false;
    if (!this.phz_1.equals(tmp0_other_with_cast.phz_1))
      return false;
    if (!(this.qhz_1 === tmp0_other_with_cast.qhz_1))
      return false;
    if (!(this.rhz_1 == tmp0_other_with_cast.rhz_1))
      return false;
    if (!this.shz_1.equals(tmp0_other_with_cast.shz_1))
      return false;
    if (!(this.thz_1 == tmp0_other_with_cast.thz_1))
      return false;
    if (!(this.uhz_1 === tmp0_other_with_cast.uhz_1))
      return false;
    if (!this.vhz_1.equals(tmp0_other_with_cast.vhz_1))
      return false;
    if (!(this.whz_1 === tmp0_other_with_cast.whz_1))
      return false;
    if (!(this.xhz_1 === tmp0_other_with_cast.xhz_1))
      return false;
    if (!equals(this.yhz_1, tmp0_other_with_cast.yhz_1))
      return false;
    if (!this.zhz_1.equals(tmp0_other_with_cast.zhz_1))
      return false;
    if (!this.ai0_1.equals(tmp0_other_with_cast.ai0_1))
      return false;
    if (!(this.bi0_1 == tmp0_other_with_cast.bi0_1))
      return false;
    if (!(this.ci0_1 == tmp0_other_with_cast.ci0_1))
      return false;
    if (!(this.di0_1 === tmp0_other_with_cast.di0_1))
      return false;
    return true;
  };
  function Companion_118() {
    Companion_instance_119 = this;
    this.wkx_1 = new Long(0, 0);
    this.xkx_1 = 10011;
  }
  protoOf(Companion_118).n4r = function () {
    return $serializer_getInstance_114();
  };
  var Companion_instance_119;
  function Companion_getInstance_121() {
    if (Companion_instance_119 == null)
      new Companion_118();
    return Companion_instance_119;
  }
  function $serializer_114() {
    $serializer_instance_114 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.SystemPermission', this, 6);
    tmp0_serialDesc.t4f('spUid', true);
    tmp0_serialDesc.t4f('spToPersonUid', true);
    tmp0_serialDesc.t4f('spToGroupUid', true);
    tmp0_serialDesc.t4f('spPermissionsFlag', true);
    tmp0_serialDesc.t4f('spLastModified', true);
    tmp0_serialDesc.t4f('spIsDeleted', true);
    this.ykx_1 = tmp0_serialDesc;
  }
  protoOf($serializer_114).q44 = function () {
    return this.ykx_1;
  };
  protoOf($serializer_114).k4g = 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_114).s44 = function (decoder) {
    var tmp0_desc = this.ykx_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.i48(tmp0_desc);
    if (tmp10_input.x48()) {
      tmp4_local0 = tmp10_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.k48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.k48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.j48(tmp0_desc);
    return SystemPermission_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_114).zkx = function (encoder, value) {
    var tmp0_desc = this.ykx_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.ni1_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.ni1_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.oi1_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.oi1_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.pi1_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.pi1_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.qi1_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.qi1_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.ri1_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.ri1_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.si1_1 === false)) {
      tmp1_output.o49(tmp0_desc, 5, value.si1_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_114).r44 = function (encoder, value) {
    return this.zkx(encoder, value instanceof SystemPermission ? value : THROW_CCE());
  };
  var $serializer_instance_114;
  function $serializer_getInstance_114() {
    if ($serializer_instance_114 == null)
      new $serializer_114();
    return $serializer_instance_114;
  }
  function SystemPermission_init_$Init$(seen1, spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_114().ykx_1);
    }
    if (0 === (seen1 & 1))
      $this.ni1_1 = new Long(0, 0);
    else
      $this.ni1_1 = spUid;
    if (0 === (seen1 & 2))
      $this.oi1_1 = new Long(0, 0);
    else
      $this.oi1_1 = spToPersonUid;
    if (0 === (seen1 & 4))
      $this.pi1_1 = new Long(0, 0);
    else
      $this.pi1_1 = spToGroupUid;
    if (0 === (seen1 & 8))
      $this.qi1_1 = new Long(0, 0);
    else
      $this.qi1_1 = spPermissionsFlag;
    if (0 === (seen1 & 16))
      $this.ri1_1 = new Long(0, 0);
    else
      $this.ri1_1 = spLastModified;
    if (0 === (seen1 & 32))
      $this.si1_1 = false;
    else
      $this.si1_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_121();
    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.ni1_1 = spUid;
    this.oi1_1 = spToPersonUid;
    this.pi1_1 = spToGroupUid;
    this.qi1_1 = spPermissionsFlag;
    this.ri1_1 = spLastModified;
    this.si1_1 = spIsDeleted;
  }
  protoOf(SystemPermission).aky = function (spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) {
    return new SystemPermission(spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted);
  };
  protoOf(SystemPermission).bky = function (spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted, $super) {
    spUid = spUid === VOID ? this.ni1_1 : spUid;
    spToPersonUid = spToPersonUid === VOID ? this.oi1_1 : spToPersonUid;
    spToGroupUid = spToGroupUid === VOID ? this.pi1_1 : spToGroupUid;
    spPermissionsFlag = spPermissionsFlag === VOID ? this.qi1_1 : spPermissionsFlag;
    spLastModified = spLastModified === VOID ? this.ri1_1 : spLastModified;
    spIsDeleted = spIsDeleted === VOID ? this.si1_1 : spIsDeleted;
    return $super === VOID ? this.aky(spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) : $super.aky.call(this, spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted);
  };
  protoOf(SystemPermission).toString = function () {
    return 'SystemPermission(spUid=' + this.ni1_1.toString() + ', spToPersonUid=' + this.oi1_1.toString() + ', spToGroupUid=' + this.pi1_1.toString() + ', spPermissionsFlag=' + this.qi1_1.toString() + ', spLastModified=' + this.ri1_1.toString() + ', spIsDeleted=' + this.si1_1 + ')';
  };
  protoOf(SystemPermission).hashCode = function () {
    var result = this.ni1_1.hashCode();
    result = imul(result, 31) + this.oi1_1.hashCode() | 0;
    result = imul(result, 31) + this.pi1_1.hashCode() | 0;
    result = imul(result, 31) + this.qi1_1.hashCode() | 0;
    result = imul(result, 31) + this.ri1_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.si1_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.ni1_1.equals(tmp0_other_with_cast.ni1_1))
      return false;
    if (!this.oi1_1.equals(tmp0_other_with_cast.oi1_1))
      return false;
    if (!this.pi1_1.equals(tmp0_other_with_cast.pi1_1))
      return false;
    if (!this.qi1_1.equals(tmp0_other_with_cast.qi1_1))
      return false;
    if (!this.ri1_1.equals(tmp0_other_with_cast.ri1_1))
      return false;
    if (!(this.si1_1 === tmp0_other_with_cast.si1_1))
      return false;
    return true;
  };
  function Companion_119() {
    this.cky_1 = 1081;
    this.dky_1 = 1;
    this.eky_1 = 2;
    this.fky_1 = 1;
    this.gky_1 = 2;
  }
  var Companion_instance_120;
  function Companion_getInstance_122() {
    return Companion_instance_120;
  }
  function $serializer_115() {
    $serializer_instance_115 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.TransferJob', this, 10);
    tmp0_serialDesc.t4f('tjUid', true);
    tmp0_serialDesc.t4f('tjType', true);
    tmp0_serialDesc.t4f('tjStatus', true);
    tmp0_serialDesc.t4f('tjName', true);
    tmp0_serialDesc.t4f('tjUuid', true);
    tmp0_serialDesc.t4f('tjTableId', true);
    tmp0_serialDesc.t4f('tjEntityUid', true);
    tmp0_serialDesc.t4f('tjTimeCreated', true);
    tmp0_serialDesc.t4f('tjCreationType', true);
    tmp0_serialDesc.t4f('tjOiUid', true);
    this.hky_1 = tmp0_serialDesc;
  }
  protoOf($serializer_115).q44 = function () {
    return this.hky_1;
  };
  protoOf($serializer_115).k4g = 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_115).s44 = function (decoder) {
    var tmp0_desc = this.hky_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.i48(tmp0_desc);
    if (tmp14_input.x48()) {
      tmp4_local0 = tmp14_input.n48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp14_input.n48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp14_input.n48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp14_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp14_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp14_input.n48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp14_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp14_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp14_input.n48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp14_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp14_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp14_input.n48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp14_input.n48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp14_input.n48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp14_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp14_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp14_input.n48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp14_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp14_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp14_input.n48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp14_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp14_input.j48(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_115).iky = function (encoder, value) {
    var tmp0_desc = this.hky_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.ufr_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 0, value.ufr_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.vfr_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 1, value.vfr_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.wfr_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 2, value.wfr_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.xfr_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.xfr_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.yfr_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.yfr_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.zfr_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 5, value.zfr_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.afs_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.afs_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.bfs_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.bfs_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.cfs_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 8, value.cfs_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !value.dfs_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 9, value.dfs_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_115).r44 = function (encoder, value) {
    return this.iky(encoder, value instanceof TransferJob ? value : THROW_CCE());
  };
  var $serializer_instance_115;
  function $serializer_getInstance_115() {
    if ($serializer_instance_115 == null)
      new $serializer_115();
    return $serializer_instance_115;
  }
  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_115().hky_1);
    }
    if (0 === (seen1 & 1))
      $this.ufr_1 = 0;
    else
      $this.ufr_1 = tjUid;
    if (0 === (seen1 & 2))
      $this.vfr_1 = 0;
    else
      $this.vfr_1 = tjType;
    if (0 === (seen1 & 4))
      $this.wfr_1 = 0;
    else
      $this.wfr_1 = tjStatus;
    if (0 === (seen1 & 8))
      $this.xfr_1 = null;
    else
      $this.xfr_1 = tjName;
    if (0 === (seen1 & 16))
      $this.yfr_1 = null;
    else
      $this.yfr_1 = tjUuid;
    if (0 === (seen1 & 32))
      $this.zfr_1 = 0;
    else
      $this.zfr_1 = tjTableId;
    if (0 === (seen1 & 64))
      $this.afs_1 = new Long(0, 0);
    else
      $this.afs_1 = tjEntityUid;
    if (0 === (seen1 & 128))
      $this.bfs_1 = new Long(0, 0);
    else
      $this.bfs_1 = tjTimeCreated;
    if (0 === (seen1 & 256))
      $this.cfs_1 = 0;
    else
      $this.cfs_1 = tjCreationType;
    if (0 === (seen1 & 512))
      $this.dfs_1 = new Long(0, 0);
    else
      $this.dfs_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.ufr_1 = tjUid;
    this.vfr_1 = tjType;
    this.wfr_1 = tjStatus;
    this.xfr_1 = tjName;
    this.yfr_1 = tjUuid;
    this.zfr_1 = tjTableId;
    this.afs_1 = tjEntityUid;
    this.bfs_1 = tjTimeCreated;
    this.cfs_1 = tjCreationType;
    this.dfs_1 = tjOiUid;
  }
  protoOf(TransferJob).toString = function () {
    return 'TransferJob(tjUid=' + this.ufr_1 + ', tjType=' + this.vfr_1 + ', tjStatus=' + this.wfr_1 + ', tjName=' + this.xfr_1 + ', tjUuid=' + this.yfr_1 + ', tjTableId=' + this.zfr_1 + ', tjEntityUid=' + this.afs_1.toString() + ', tjTimeCreated=' + this.bfs_1.toString() + ', tjCreationType=' + this.cfs_1 + ', tjOiUid=' + this.dfs_1.toString() + ')';
  };
  protoOf(TransferJob).hashCode = function () {
    var result = this.ufr_1;
    result = imul(result, 31) + this.vfr_1 | 0;
    result = imul(result, 31) + this.wfr_1 | 0;
    result = imul(result, 31) + (this.xfr_1 == null ? 0 : getStringHashCode(this.xfr_1)) | 0;
    result = imul(result, 31) + (this.yfr_1 == null ? 0 : getStringHashCode(this.yfr_1)) | 0;
    result = imul(result, 31) + this.zfr_1 | 0;
    result = imul(result, 31) + this.afs_1.hashCode() | 0;
    result = imul(result, 31) + this.bfs_1.hashCode() | 0;
    result = imul(result, 31) + this.cfs_1 | 0;
    result = imul(result, 31) + this.dfs_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.ufr_1 === tmp0_other_with_cast.ufr_1))
      return false;
    if (!(this.vfr_1 === tmp0_other_with_cast.vfr_1))
      return false;
    if (!(this.wfr_1 === tmp0_other_with_cast.wfr_1))
      return false;
    if (!(this.xfr_1 == tmp0_other_with_cast.xfr_1))
      return false;
    if (!(this.yfr_1 == tmp0_other_with_cast.yfr_1))
      return false;
    if (!(this.zfr_1 === tmp0_other_with_cast.zfr_1))
      return false;
    if (!this.afs_1.equals(tmp0_other_with_cast.afs_1))
      return false;
    if (!this.bfs_1.equals(tmp0_other_with_cast.bfs_1))
      return false;
    if (!(this.cfs_1 === tmp0_other_with_cast.cfs_1))
      return false;
    if (!this.dfs_1.equals(tmp0_other_with_cast.dfs_1))
      return false;
    return true;
  };
  function Companion_120() {
  }
  var Companion_instance_121;
  function Companion_getInstance_123() {
    return Companion_instance_121;
  }
  function $serializer_116() {
    $serializer_instance_116 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.TransferJobError', this, 5);
    tmp0_serialDesc.t4f('tjeId', true);
    tmp0_serialDesc.t4f('tjeTjUid', true);
    tmp0_serialDesc.t4f('tjeTime', true);
    tmp0_serialDesc.t4f('tjeErrorStr', true);
    tmp0_serialDesc.t4f('tjeDismissed', true);
    this.jky_1 = tmp0_serialDesc;
  }
  protoOf($serializer_116).q44 = function () {
    return this.jky_1;
  };
  protoOf($serializer_116).k4g = 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_116).s44 = function (decoder) {
    var tmp0_desc = this.jky_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.i48(tmp0_desc);
    if (tmp9_input.x48()) {
      tmp4_local0 = tmp9_input.n48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp9_input.n48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp9_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp9_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp9_input.k48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp9_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp9_input.n48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp9_input.n48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp9_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp9_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp9_input.k48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp9_input.j48(tmp0_desc);
    return TransferJobError_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
  };
  protoOf($serializer_116).kky = function (encoder, value) {
    var tmp0_desc = this.jky_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.pie_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 0, value.pie_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.qie_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 1, value.qie_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.rie_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.rie_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.sie_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.sie_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.tie_1 === false)) {
      tmp1_output.o49(tmp0_desc, 4, value.tie_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_116).r44 = function (encoder, value) {
    return this.kky(encoder, value instanceof TransferJobError ? value : THROW_CCE());
  };
  var $serializer_instance_116;
  function $serializer_getInstance_116() {
    if ($serializer_instance_116 == null)
      new $serializer_116();
    return $serializer_instance_116;
  }
  function TransferJobError_init_$Init$(seen1, tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_116().jky_1);
    }
    if (0 === (seen1 & 1))
      $this.pie_1 = 0;
    else
      $this.pie_1 = tjeId;
    if (0 === (seen1 & 2))
      $this.qie_1 = 0;
    else
      $this.qie_1 = tjeTjUid;
    if (0 === (seen1 & 4))
      $this.rie_1 = new Long(0, 0);
    else
      $this.rie_1 = tjeTime;
    if (0 === (seen1 & 8))
      $this.sie_1 = null;
    else
      $this.sie_1 = tjeErrorStr;
    if (0 === (seen1 & 16))
      $this.tie_1 = false;
    else
      $this.tie_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.pie_1 = tjeId;
    this.qie_1 = tjeTjUid;
    this.rie_1 = tjeTime;
    this.sie_1 = tjeErrorStr;
    this.tie_1 = tjeDismissed;
  }
  protoOf(TransferJobError).toString = function () {
    return 'TransferJobError(tjeId=' + this.pie_1 + ', tjeTjUid=' + this.qie_1 + ', tjeTime=' + this.rie_1.toString() + ', tjeErrorStr=' + this.sie_1 + ', tjeDismissed=' + this.tie_1 + ')';
  };
  protoOf(TransferJobError).hashCode = function () {
    var result = this.pie_1;
    result = imul(result, 31) + this.qie_1 | 0;
    result = imul(result, 31) + this.rie_1.hashCode() | 0;
    result = imul(result, 31) + (this.sie_1 == null ? 0 : getStringHashCode(this.sie_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.tie_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.pie_1 === tmp0_other_with_cast.pie_1))
      return false;
    if (!(this.qie_1 === tmp0_other_with_cast.qie_1))
      return false;
    if (!this.rie_1.equals(tmp0_other_with_cast.rie_1))
      return false;
    if (!(this.sie_1 == tmp0_other_with_cast.sie_1))
      return false;
    if (!(this.tie_1 === tmp0_other_with_cast.tie_1))
      return false;
    return true;
  };
  function Companion_121() {
  }
  var Companion_instance_122;
  function Companion_getInstance_124() {
    return Companion_instance_122;
  }
  function $serializer_117() {
    $serializer_instance_117 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.TransferJobItem', this, 14);
    tmp0_serialDesc.t4f('tjiUid', true);
    tmp0_serialDesc.t4f('tjiTjUid', true);
    tmp0_serialDesc.t4f('tjTotalSize', true);
    tmp0_serialDesc.t4f('tjTransferred', true);
    tmp0_serialDesc.t4f('tjAttemptCount', true);
    tmp0_serialDesc.t4f('tjiSrc', true);
    tmp0_serialDesc.t4f('tjiDest', true);
    tmp0_serialDesc.t4f('tjiType', true);
    tmp0_serialDesc.t4f('tjiStatus', true);
    tmp0_serialDesc.t4f('tjiTableId', true);
    tmp0_serialDesc.t4f('tjiEntityUid', true);
    tmp0_serialDesc.t4f('tjiEntityEtag', true);
    tmp0_serialDesc.t4f('tjiLockIdToRelease', true);
    tmp0_serialDesc.t4f('tjiPartialTmpFile', true);
    this.lky_1 = tmp0_serialDesc;
  }
  protoOf($serializer_117).q44 = function () {
    return this.lky_1;
  };
  protoOf($serializer_117).k4g = 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_117).s44 = function (decoder) {
    var tmp0_desc = this.lky_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.i48(tmp0_desc);
    if (tmp18_input.x48()) {
      tmp4_local0 = tmp18_input.n48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp18_input.n48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp18_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp18_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp18_input.n48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp18_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp18_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp18_input.n48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp18_input.n48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp18_input.n48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp18_input.o48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp18_input.o48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp18_input.o48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp18_input.w48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp18_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp18_input.n48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp18_input.n48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp18_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp18_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp18_input.n48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp18_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp18_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp18_input.n48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp18_input.n48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp18_input.n48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp18_input.o48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp18_input.o48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp18_input.o48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp18_input.w48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp18_input.j48(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_117).mky = function (encoder, value) {
    var tmp0_desc = this.lky_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.ycb_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 0, value.ycb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.zcb_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 1, value.zcb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.acc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.acc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.bcc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.bcc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.ccc_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 4, value.ccc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.dcc_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.dcc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.ecc_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 6, StringSerializer_getInstance(), value.ecc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.fcc_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 7, value.fcc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.gcc_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 8, value.gcc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.hcc_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 9, value.hcc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !value.icc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 10, value.icc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !value.jcc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 11, value.jcc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !value.kcc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 12, value.kcc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !(value.lcc_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 13, StringSerializer_getInstance(), value.lcc_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_117).r44 = function (encoder, value) {
    return this.mky(encoder, value instanceof TransferJobItem ? value : THROW_CCE());
  };
  var $serializer_instance_117;
  function $serializer_getInstance_117() {
    if ($serializer_instance_117 == null)
      new $serializer_117();
    return $serializer_instance_117;
  }
  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_117().lky_1);
    }
    if (0 === (seen1 & 1))
      $this.ycb_1 = 0;
    else
      $this.ycb_1 = tjiUid;
    if (0 === (seen1 & 2))
      $this.zcb_1 = 0;
    else
      $this.zcb_1 = tjiTjUid;
    if (0 === (seen1 & 4))
      $this.acc_1 = new Long(0, 0);
    else
      $this.acc_1 = tjTotalSize;
    if (0 === (seen1 & 8))
      $this.bcc_1 = new Long(0, 0);
    else
      $this.bcc_1 = tjTransferred;
    if (0 === (seen1 & 16))
      $this.ccc_1 = 0;
    else
      $this.ccc_1 = tjAttemptCount;
    if (0 === (seen1 & 32))
      $this.dcc_1 = null;
    else
      $this.dcc_1 = tjiSrc;
    if (0 === (seen1 & 64))
      $this.ecc_1 = null;
    else
      $this.ecc_1 = tjiDest;
    if (0 === (seen1 & 128))
      $this.fcc_1 = 0;
    else
      $this.fcc_1 = tjiType;
    if (0 === (seen1 & 256))
      $this.gcc_1 = 0;
    else
      $this.gcc_1 = tjiStatus;
    if (0 === (seen1 & 512))
      $this.hcc_1 = 0;
    else
      $this.hcc_1 = tjiTableId;
    if (0 === (seen1 & 1024))
      $this.icc_1 = new Long(0, 0);
    else
      $this.icc_1 = tjiEntityUid;
    if (0 === (seen1 & 2048))
      $this.jcc_1 = new Long(0, 0);
    else
      $this.jcc_1 = tjiEntityEtag;
    if (0 === (seen1 & 4096))
      $this.kcc_1 = new Long(0, 0);
    else
      $this.kcc_1 = tjiLockIdToRelease;
    if (0 === (seen1 & 8192))
      $this.lcc_1 = null;
    else
      $this.lcc_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.ycb_1 = tjiUid;
    this.zcb_1 = tjiTjUid;
    this.acc_1 = tjTotalSize;
    this.bcc_1 = tjTransferred;
    this.ccc_1 = tjAttemptCount;
    this.dcc_1 = tjiSrc;
    this.ecc_1 = tjiDest;
    this.fcc_1 = tjiType;
    this.gcc_1 = tjiStatus;
    this.hcc_1 = tjiTableId;
    this.icc_1 = tjiEntityUid;
    this.jcc_1 = tjiEntityEtag;
    this.kcc_1 = tjiLockIdToRelease;
    this.lcc_1 = tjiPartialTmpFile;
  }
  protoOf(TransferJobItem).nky = 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).oky = function (tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile, $super) {
    tjiUid = tjiUid === VOID ? this.ycb_1 : tjiUid;
    tjiTjUid = tjiTjUid === VOID ? this.zcb_1 : tjiTjUid;
    tjTotalSize = tjTotalSize === VOID ? this.acc_1 : tjTotalSize;
    tjTransferred = tjTransferred === VOID ? this.bcc_1 : tjTransferred;
    tjAttemptCount = tjAttemptCount === VOID ? this.ccc_1 : tjAttemptCount;
    tjiSrc = tjiSrc === VOID ? this.dcc_1 : tjiSrc;
    tjiDest = tjiDest === VOID ? this.ecc_1 : tjiDest;
    tjiType = tjiType === VOID ? this.fcc_1 : tjiType;
    tjiStatus = tjiStatus === VOID ? this.gcc_1 : tjiStatus;
    tjiTableId = tjiTableId === VOID ? this.hcc_1 : tjiTableId;
    tjiEntityUid = tjiEntityUid === VOID ? this.icc_1 : tjiEntityUid;
    tjiEntityEtag = tjiEntityEtag === VOID ? this.jcc_1 : tjiEntityEtag;
    tjiLockIdToRelease = tjiLockIdToRelease === VOID ? this.kcc_1 : tjiLockIdToRelease;
    tjiPartialTmpFile = tjiPartialTmpFile === VOID ? this.lcc_1 : tjiPartialTmpFile;
    return $super === VOID ? this.nky(tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile) : $super.nky.call(this, tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile);
  };
  protoOf(TransferJobItem).toString = function () {
    return 'TransferJobItem(tjiUid=' + this.ycb_1 + ', tjiTjUid=' + this.zcb_1 + ', tjTotalSize=' + this.acc_1.toString() + ', tjTransferred=' + this.bcc_1.toString() + ', tjAttemptCount=' + this.ccc_1 + ', tjiSrc=' + this.dcc_1 + ', tjiDest=' + this.ecc_1 + ', tjiType=' + this.fcc_1 + ', tjiStatus=' + this.gcc_1 + ', tjiTableId=' + this.hcc_1 + ', tjiEntityUid=' + this.icc_1.toString() + ', tjiEntityEtag=' + this.jcc_1.toString() + ', tjiLockIdToRelease=' + this.kcc_1.toString() + ', tjiPartialTmpFile=' + this.lcc_1 + ')';
  };
  protoOf(TransferJobItem).hashCode = function () {
    var result = this.ycb_1;
    result = imul(result, 31) + this.zcb_1 | 0;
    result = imul(result, 31) + this.acc_1.hashCode() | 0;
    result = imul(result, 31) + this.bcc_1.hashCode() | 0;
    result = imul(result, 31) + this.ccc_1 | 0;
    result = imul(result, 31) + (this.dcc_1 == null ? 0 : getStringHashCode(this.dcc_1)) | 0;
    result = imul(result, 31) + (this.ecc_1 == null ? 0 : getStringHashCode(this.ecc_1)) | 0;
    result = imul(result, 31) + this.fcc_1 | 0;
    result = imul(result, 31) + this.gcc_1 | 0;
    result = imul(result, 31) + this.hcc_1 | 0;
    result = imul(result, 31) + this.icc_1.hashCode() | 0;
    result = imul(result, 31) + this.jcc_1.hashCode() | 0;
    result = imul(result, 31) + this.kcc_1.hashCode() | 0;
    result = imul(result, 31) + (this.lcc_1 == null ? 0 : getStringHashCode(this.lcc_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.ycb_1 === tmp0_other_with_cast.ycb_1))
      return false;
    if (!(this.zcb_1 === tmp0_other_with_cast.zcb_1))
      return false;
    if (!this.acc_1.equals(tmp0_other_with_cast.acc_1))
      return false;
    if (!this.bcc_1.equals(tmp0_other_with_cast.bcc_1))
      return false;
    if (!(this.ccc_1 === tmp0_other_with_cast.ccc_1))
      return false;
    if (!(this.dcc_1 == tmp0_other_with_cast.dcc_1))
      return false;
    if (!(this.ecc_1 == tmp0_other_with_cast.ecc_1))
      return false;
    if (!(this.fcc_1 === tmp0_other_with_cast.fcc_1))
      return false;
    if (!(this.gcc_1 === tmp0_other_with_cast.gcc_1))
      return false;
    if (!(this.hcc_1 === tmp0_other_with_cast.hcc_1))
      return false;
    if (!this.icc_1.equals(tmp0_other_with_cast.icc_1))
      return false;
    if (!this.jcc_1.equals(tmp0_other_with_cast.jcc_1))
      return false;
    if (!this.kcc_1.equals(tmp0_other_with_cast.kcc_1))
      return false;
    if (!(this.lcc_1 == tmp0_other_with_cast.lcc_1))
      return false;
    return true;
  };
  function Companion_122() {
  }
  var Companion_instance_123;
  function Companion_getInstance_125() {
    return Companion_instance_123;
  }
  function $serializer_118() {
    $serializer_instance_118 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.UidAndLabel', this, 2);
    tmp0_serialDesc.t4f('uid', true);
    tmp0_serialDesc.t4f('labelName', true);
    this.pky_1 = tmp0_serialDesc;
  }
  protoOf($serializer_118).q44 = function () {
    return this.pky_1;
  };
  protoOf($serializer_118).k4g = 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_118).s44 = function (decoder) {
    var tmp0_desc = this.pky_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.i48(tmp0_desc);
    if (tmp6_input.x48()) {
      tmp4_local0 = tmp6_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp6_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp6_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp6_input.j48(tmp0_desc);
    return UidAndLabel_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
  };
  protoOf($serializer_118).qky = function (encoder, value) {
    var tmp0_desc = this.pky_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.rky_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.rky_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.sky_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.sky_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_118).r44 = function (encoder, value) {
    return this.qky(encoder, value instanceof UidAndLabel ? value : THROW_CCE());
  };
  var $serializer_instance_118;
  function $serializer_getInstance_118() {
    if ($serializer_instance_118 == null)
      new $serializer_118();
    return $serializer_instance_118;
  }
  function UidAndLabel_init_$Init$(seen1, uid, labelName, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_118().pky_1);
    }
    if (0 === (seen1 & 1))
      $this.rky_1 = new Long(0, 0);
    else
      $this.rky_1 = uid;
    if (0 === (seen1 & 2))
      $this.sky_1 = null;
    else
      $this.sky_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.rky_1 = new Long(0, 0);
    this.sky_1 = null;
  }
  function Companion_123() {
  }
  var Companion_instance_124;
  function Companion_getInstance_126() {
    return Companion_instance_124;
  }
  function $serializer_119() {
    $serializer_instance_119 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.UmAccount', this, 8);
    tmp0_serialDesc.t4f('personUid', false);
    tmp0_serialDesc.t4f('username', true);
    tmp0_serialDesc.t4f('auth', true);
    tmp0_serialDesc.t4f('endpointUrl', true);
    tmp0_serialDesc.t4f('firstName', true);
    tmp0_serialDesc.t4f('lastName', true);
    tmp0_serialDesc.t4f('admin', true);
    tmp0_serialDesc.t4f('isPersonalAccount', true);
    this.tky_1 = tmp0_serialDesc;
  }
  protoOf($serializer_119).q44 = function () {
    return this.tky_1;
  };
  protoOf($serializer_119).k4g = 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(), BooleanSerializer_getInstance()];
  };
  protoOf($serializer_119).s44 = function (decoder) {
    var tmp0_desc = this.tky_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 = false;
    var tmp12_input = decoder.i48(tmp0_desc);
    if (tmp12_input.x48()) {
      tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp12_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp12_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp12_input.s48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp12_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp12_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp12_input.k48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp12_input.k48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp12_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp12_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp12_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp12_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp12_input.s48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp12_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp12_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp12_input.k48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp12_input.k48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp12_input.j48(tmp0_desc);
    return UmAccount_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
  };
  protoOf($serializer_119).uky = function (encoder, value) {
    var tmp0_desc = this.tky_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    tmp1_output.s49(tmp0_desc, 0, value.vky_1);
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.wky_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.wky_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.xky_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.xky_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.yky_1 === '')) {
      tmp1_output.w49(tmp0_desc, 3, value.yky_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.zky_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.zky_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.akz_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.akz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.bkz_1 === false)) {
      tmp1_output.o49(tmp0_desc, 6, value.bkz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.ckz_1 === false)) {
      tmp1_output.o49(tmp0_desc, 7, value.ckz_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_119).r44 = function (encoder, value) {
    return this.uky(encoder, value instanceof UmAccount ? value : THROW_CCE());
  };
  var $serializer_instance_119;
  function $serializer_getInstance_119() {
    if ($serializer_instance_119 == null)
      new $serializer_119();
    return $serializer_instance_119;
  }
  function UmAccount_init_$Init$(seen1, personUid, username, auth, endpointUrl, firstName, lastName, admin, isPersonalAccount, serializationConstructorMarker, $this) {
    if (!(1 === (1 & seen1))) {
      throwMissingFieldException(seen1, 1, $serializer_getInstance_119().tky_1);
    }
    $this.vky_1 = personUid;
    if (0 === (seen1 & 2))
      $this.wky_1 = null;
    else
      $this.wky_1 = username;
    if (0 === (seen1 & 4))
      $this.xky_1 = null;
    else
      $this.xky_1 = auth;
    if (0 === (seen1 & 8))
      $this.yky_1 = '';
    else
      $this.yky_1 = endpointUrl;
    if (0 === (seen1 & 16))
      $this.zky_1 = null;
    else
      $this.zky_1 = firstName;
    if (0 === (seen1 & 32))
      $this.akz_1 = null;
    else
      $this.akz_1 = lastName;
    if (0 === (seen1 & 64))
      $this.bkz_1 = false;
    else
      $this.bkz_1 = admin;
    if (0 === (seen1 & 128))
      $this.ckz_1 = false;
    else
      $this.ckz_1 = isPersonalAccount;
    return $this;
  }
  function UmAccount_init_$Create$(seen1, personUid, username, auth, endpointUrl, firstName, lastName, admin, isPersonalAccount, serializationConstructorMarker) {
    return UmAccount_init_$Init$(seen1, personUid, username, auth, endpointUrl, firstName, lastName, admin, isPersonalAccount, serializationConstructorMarker, objectCreate(protoOf(UmAccount)));
  }
  function UmAccount(personUid, username, auth, endpointUrl, firstName, lastName, admin, isPersonalAccount) {
    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;
    isPersonalAccount = isPersonalAccount === VOID ? false : isPersonalAccount;
    this.vky_1 = personUid;
    this.wky_1 = username;
    this.xky_1 = auth;
    this.yky_1 = endpointUrl;
    this.zky_1 = firstName;
    this.akz_1 = lastName;
    this.bkz_1 = admin;
    this.ckz_1 = isPersonalAccount;
  }
  protoOf(UmAccount).dkz = function () {
    var account = this;
    // Inline function 'kotlin.apply' call
    var this_0 = new Person();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'com.ustadmobile.lib.db.entities.UmAccount.toPerson.<anonymous>' call
    this_0.f96_1 = account.vky_1;
    this_0.g96_1 = account.wky_1;
    this_0.h96_1 = account.zky_1;
    this_0.i96_1 = account.akz_1;
    this_0.y96_1 = account.bkz_1;
    this_0.n96_1 = account.ckz_1;
    return this_0;
  };
  protoOf(UmAccount).toString = function () {
    return 'UmAccount(personUid=' + this.vky_1.toString() + ', username=' + this.wky_1 + ', auth=' + this.xky_1 + ', endpointUrl=' + this.yky_1 + ', firstName=' + this.zky_1 + ', lastName=' + this.akz_1 + ', admin=' + this.bkz_1 + ', isPersonalAccount=' + this.ckz_1 + ')';
  };
  protoOf(UmAccount).hashCode = function () {
    var result = this.vky_1.hashCode();
    result = imul(result, 31) + (this.wky_1 == null ? 0 : getStringHashCode(this.wky_1)) | 0;
    result = imul(result, 31) + (this.xky_1 == null ? 0 : getStringHashCode(this.xky_1)) | 0;
    result = imul(result, 31) + getStringHashCode(this.yky_1) | 0;
    result = imul(result, 31) + (this.zky_1 == null ? 0 : getStringHashCode(this.zky_1)) | 0;
    result = imul(result, 31) + (this.akz_1 == null ? 0 : getStringHashCode(this.akz_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.bkz_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.ckz_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.vky_1.equals(tmp0_other_with_cast.vky_1))
      return false;
    if (!(this.wky_1 == tmp0_other_with_cast.wky_1))
      return false;
    if (!(this.xky_1 == tmp0_other_with_cast.xky_1))
      return false;
    if (!(this.yky_1 === tmp0_other_with_cast.yky_1))
      return false;
    if (!(this.zky_1 == tmp0_other_with_cast.zky_1))
      return false;
    if (!(this.akz_1 == tmp0_other_with_cast.akz_1))
      return false;
    if (!(this.bkz_1 === tmp0_other_with_cast.bkz_1))
      return false;
    if (!(this.ckz_1 === tmp0_other_with_cast.ckz_1))
      return false;
    return true;
  };
  function Companion_124() {
    this.ekz_1 = 679;
    this.fkz_1 = 1;
    this.gkz_1 = 2;
    this.hkz_1 = 4;
    this.ikz_1 = 8;
    this.jkz_1 = 1;
    this.kkz_1 = 2;
    this.lkz_1 = 4;
    this.mkz_1 = 1;
    this.nkz_1 = 2;
    this.okz_1 = 3;
  }
  var Companion_instance_125;
  function Companion_getInstance_127() {
    return Companion_instance_125;
  }
  function $serializer_120() {
    $serializer_instance_120 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.UserSession', this, 13);
    tmp0_serialDesc.t4f('usUid', true);
    tmp0_serialDesc.t4f('usPcsn', true);
    tmp0_serialDesc.t4f('usLcsn', true);
    tmp0_serialDesc.t4f('usLcb', true);
    tmp0_serialDesc.t4f('usLct', true);
    tmp0_serialDesc.t4f('usPersonUid', true);
    tmp0_serialDesc.t4f('usClientNodeId', true);
    tmp0_serialDesc.t4f('usStartTime', true);
    tmp0_serialDesc.t4f('usEndTime', true);
    tmp0_serialDesc.t4f('usStatus', true);
    tmp0_serialDesc.t4f('usReason', true);
    tmp0_serialDesc.t4f('usAuth', true);
    tmp0_serialDesc.t4f('usSessionType', true);
    this.pkz_1 = tmp0_serialDesc;
  }
  protoOf($serializer_120).q44 = function () {
    return this.pkz_1;
  };
  protoOf($serializer_120).k4g = 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_120).s44 = function (decoder) {
    var tmp0_desc = this.pkz_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.i48(tmp0_desc);
    if (tmp17_input.x48()) {
      tmp4_local0 = tmp17_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp17_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp17_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp17_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp17_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp17_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp17_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp17_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp17_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp17_input.n48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp17_input.n48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp17_input.w48(tmp0_desc, 11, StringSerializer_getInstance(), tmp15_local11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp17_input.n48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp17_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp17_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp17_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp17_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp17_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp17_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp17_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp17_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp17_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp17_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp17_input.n48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp17_input.n48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp17_input.w48(tmp0_desc, 11, StringSerializer_getInstance(), tmp15_local11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp17_input.n48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp17_input.j48(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_120).qkz = function (encoder, value) {
    var tmp0_desc = this.pkz_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.rij_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.rij_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.sij_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.sij_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.tij_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.tij_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.uij_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.uij_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.vij_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.vij_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.wij_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.wij_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.xij_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.xij_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.yij_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.yij_1);
    }
    var tmp;
    if (tmp1_output.e4a(tmp0_desc, 8)) {
      tmp = true;
    } else {
      var tmp_0 = value.zij_1;
      Companion_getInstance();
      tmp = !tmp_0.equals(new Long(-1, 2147483647));
    }
    if (tmp) {
      tmp1_output.s49(tmp0_desc, 8, value.zij_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.aik_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 9, value.aik_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.bik_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 10, value.bik_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !(value.cik_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 11, StringSerializer_getInstance(), value.cik_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !(value.dik_1 === 1)) {
      tmp1_output.r49(tmp0_desc, 12, value.dik_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_120).r44 = function (encoder, value) {
    return this.qkz(encoder, value instanceof UserSession ? value : THROW_CCE());
  };
  var $serializer_instance_120;
  function $serializer_getInstance_120() {
    if ($serializer_instance_120 == null)
      new $serializer_120();
    return $serializer_instance_120;
  }
  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_120().pkz_1);
    }
    if (0 === (seen1 & 1))
      $this.rij_1 = new Long(0, 0);
    else
      $this.rij_1 = usUid;
    if (0 === (seen1 & 2))
      $this.sij_1 = new Long(0, 0);
    else
      $this.sij_1 = usPcsn;
    if (0 === (seen1 & 4))
      $this.tij_1 = new Long(0, 0);
    else
      $this.tij_1 = usLcsn;
    if (0 === (seen1 & 8))
      $this.uij_1 = new Long(0, 0);
    else
      $this.uij_1 = usLcb;
    if (0 === (seen1 & 16))
      $this.vij_1 = new Long(0, 0);
    else
      $this.vij_1 = usLct;
    if (0 === (seen1 & 32))
      $this.wij_1 = new Long(0, 0);
    else
      $this.wij_1 = usPersonUid;
    if (0 === (seen1 & 64))
      $this.xij_1 = new Long(0, 0);
    else
      $this.xij_1 = usClientNodeId;
    if (0 === (seen1 & 128))
      $this.yij_1 = new Long(0, 0);
    else
      $this.yij_1 = usStartTime;
    if (0 === (seen1 & 256)) {
      var tmp = $this;
      Companion_getInstance();
      tmp.zij_1 = new Long(-1, 2147483647);
    } else
      $this.zij_1 = usEndTime;
    if (0 === (seen1 & 512))
      $this.aik_1 = 0;
    else
      $this.aik_1 = usStatus;
    if (0 === (seen1 & 1024))
      $this.bik_1 = 0;
    else
      $this.bik_1 = usReason;
    if (0 === (seen1 & 2048))
      $this.cik_1 = null;
    else
      $this.cik_1 = usAuth;
    if (0 === (seen1 & 4096))
      $this.dik_1 = 1;
    else
      $this.dik_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.rij_1 = new Long(0, 0);
    this.sij_1 = new Long(0, 0);
    this.tij_1 = new Long(0, 0);
    this.uij_1 = new Long(0, 0);
    this.vij_1 = new Long(0, 0);
    this.wij_1 = new Long(0, 0);
    this.xij_1 = new Long(0, 0);
    this.yij_1 = new Long(0, 0);
    var tmp = this;
    Companion_getInstance();
    tmp.zij_1 = new Long(-1, 2147483647);
    this.aik_1 = 0;
    this.bik_1 = 0;
    this.cik_1 = null;
    this.dik_1 = 1;
  }
  function UserSessionAndPerson(person, personPicture, userSession) {
    person = person === VOID ? null : person;
    personPicture = personPicture === VOID ? null : personPicture;
    userSession = userSession === VOID ? null : userSession;
    this.eik_1 = person;
    this.fik_1 = personPicture;
    this.gik_1 = userSession;
  }
  protoOf(UserSessionAndPerson).toString = function () {
    return 'UserSessionAndPerson(person=' + this.eik_1 + ', personPicture=' + this.fik_1 + ', userSession=' + this.gik_1 + ')';
  };
  protoOf(UserSessionAndPerson).hashCode = function () {
    var result = this.eik_1 == null ? 0 : this.eik_1.hashCode();
    result = imul(result, 31) + (this.fik_1 == null ? 0 : this.fik_1.hashCode()) | 0;
    result = imul(result, 31) + (this.gik_1 == null ? 0 : hashCode(this.gik_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.eik_1, tmp0_other_with_cast.eik_1))
      return false;
    if (!equals(this.fik_1, tmp0_other_with_cast.fik_1))
      return false;
    if (!equals(this.gik_1, tmp0_other_with_cast.gik_1))
      return false;
    return true;
  };
  function Companion_125() {
    this.rkz_1 = 0;
    this.skz_1 = 1;
    this.tkz_1 = 2;
    this.ukz_1 = 3;
    this.vkz_1 = 4;
    this.wkz_1 = 5;
    this.xkz_1 = 6;
    this.ykz_1 = 7;
    this.zkz_1 = 8;
    this.al0_1 = 9;
    this.bl0_1 = 10;
    this.cl0_1 = 64;
  }
  var Companion_instance_126;
  function Companion_getInstance_128() {
    return Companion_instance_126;
  }
  function $serializer_121() {
    $serializer_instance_121 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.ActivityEntity', this, 7);
    tmp0_serialDesc.t4f('actUid', true);
    tmp0_serialDesc.t4f('actIdIri', true);
    tmp0_serialDesc.t4f('actType', true);
    tmp0_serialDesc.t4f('actMoreInfo', true);
    tmp0_serialDesc.t4f('actInteractionType', true);
    tmp0_serialDesc.t4f('actCorrectResponsePatterns', true);
    tmp0_serialDesc.t4f('actLct', true);
    this.dl0_1 = tmp0_serialDesc;
  }
  protoOf($serializer_121).q44 = function () {
    return this.dl0_1;
  };
  protoOf($serializer_121).k4g = 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_121).s44 = function (decoder) {
    var tmp0_desc = this.dl0_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.i48(tmp0_desc);
    if (tmp11_input.x48()) {
      tmp4_local0 = tmp11_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp11_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp11_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp11_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp11_input.n48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp11_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp11_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp11_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp11_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp11_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp11_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp11_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp11_input.n48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp11_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp11_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp11_input.j48(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_121).el0 = function (encoder, value) {
    var tmp0_desc = this.dl0_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.uip_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.uip_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.vip_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.vip_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.wip_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.wip_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.xip_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.xip_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.yip_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 4, value.yip_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.zip_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.zip_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.aiq_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.aiq_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_121).r44 = function (encoder, value) {
    return this.el0(encoder, value instanceof ActivityEntity ? value : THROW_CCE());
  };
  var $serializer_instance_121;
  function $serializer_getInstance_121() {
    if ($serializer_instance_121 == null)
      new $serializer_121();
    return $serializer_instance_121;
  }
  function ActivityEntity_init_$Init$(seen1, actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_121().dl0_1);
    }
    if (0 === (seen1 & 1))
      $this.uip_1 = new Long(0, 0);
    else
      $this.uip_1 = actUid;
    if (0 === (seen1 & 2))
      $this.vip_1 = null;
    else
      $this.vip_1 = actIdIri;
    if (0 === (seen1 & 4))
      $this.wip_1 = null;
    else
      $this.wip_1 = actType;
    if (0 === (seen1 & 8))
      $this.xip_1 = null;
    else
      $this.xip_1 = actMoreInfo;
    if (0 === (seen1 & 16))
      $this.yip_1 = 0;
    else
      $this.yip_1 = actInteractionType;
    if (0 === (seen1 & 32))
      $this.zip_1 = null;
    else
      $this.zip_1 = actCorrectResponsePatterns;
    if (0 === (seen1 & 64))
      $this.aiq_1 = new Long(0, 0);
    else
      $this.aiq_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.uip_1 = actUid;
    this.vip_1 = actIdIri;
    this.wip_1 = actType;
    this.xip_1 = actMoreInfo;
    this.yip_1 = actInteractionType;
    this.zip_1 = actCorrectResponsePatterns;
    this.aiq_1 = actLct;
  }
  protoOf(ActivityEntity).fl0 = function (actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) {
    return new ActivityEntity(actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct);
  };
  protoOf(ActivityEntity).gl0 = function (actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, $super) {
    actUid = actUid === VOID ? this.uip_1 : actUid;
    actIdIri = actIdIri === VOID ? this.vip_1 : actIdIri;
    actType = actType === VOID ? this.wip_1 : actType;
    actMoreInfo = actMoreInfo === VOID ? this.xip_1 : actMoreInfo;
    actInteractionType = actInteractionType === VOID ? this.yip_1 : actInteractionType;
    actCorrectResponsePatterns = actCorrectResponsePatterns === VOID ? this.zip_1 : actCorrectResponsePatterns;
    actLct = actLct === VOID ? this.aiq_1 : actLct;
    return $super === VOID ? this.fl0(actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) : $super.fl0.call(this, actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct);
  };
  protoOf(ActivityEntity).toString = function () {
    return 'ActivityEntity(actUid=' + this.uip_1.toString() + ', actIdIri=' + this.vip_1 + ', actType=' + this.wip_1 + ', actMoreInfo=' + this.xip_1 + ', actInteractionType=' + this.yip_1 + ', actCorrectResponsePatterns=' + this.zip_1 + ', actLct=' + this.aiq_1.toString() + ')';
  };
  protoOf(ActivityEntity).hashCode = function () {
    var result = this.uip_1.hashCode();
    result = imul(result, 31) + (this.vip_1 == null ? 0 : getStringHashCode(this.vip_1)) | 0;
    result = imul(result, 31) + (this.wip_1 == null ? 0 : getStringHashCode(this.wip_1)) | 0;
    result = imul(result, 31) + (this.xip_1 == null ? 0 : getStringHashCode(this.xip_1)) | 0;
    result = imul(result, 31) + this.yip_1 | 0;
    result = imul(result, 31) + (this.zip_1 == null ? 0 : getStringHashCode(this.zip_1)) | 0;
    result = imul(result, 31) + this.aiq_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.uip_1.equals(tmp0_other_with_cast.uip_1))
      return false;
    if (!(this.vip_1 == tmp0_other_with_cast.vip_1))
      return false;
    if (!(this.wip_1 == tmp0_other_with_cast.wip_1))
      return false;
    if (!(this.xip_1 == tmp0_other_with_cast.xip_1))
      return false;
    if (!(this.yip_1 === tmp0_other_with_cast.yip_1))
      return false;
    if (!(this.zip_1 == tmp0_other_with_cast.zip_1))
      return false;
    if (!this.aiq_1.equals(tmp0_other_with_cast.aiq_1))
      return false;
    return true;
  };
  function Companion_126() {
    this.hl0_1 = 6405;
  }
  var Companion_instance_127;
  function Companion_getInstance_129() {
    return Companion_instance_127;
  }
  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.ciu_1 = aeeActivityUid;
    this.diu_1 = aeeKeyHash;
    this.eiu_1 = aeeKey;
    this.fiu_1 = aeeJson;
    this.giu_1 = aeeLastMod;
    this.hiu_1 = aeeIsDeleted;
  }
  protoOf(ActivityExtensionEntity).toString = function () {
    return 'ActivityExtensionEntity(aeeActivityUid=' + this.ciu_1.toString() + ', aeeKeyHash=' + this.diu_1.toString() + ', aeeKey=' + this.eiu_1 + ', aeeJson=' + this.fiu_1 + ', aeeLastMod=' + this.giu_1.toString() + ', aeeIsDeleted=' + this.hiu_1 + ')';
  };
  protoOf(ActivityExtensionEntity).hashCode = function () {
    var result = this.ciu_1.hashCode();
    result = imul(result, 31) + this.diu_1.hashCode() | 0;
    result = imul(result, 31) + (this.eiu_1 == null ? 0 : getStringHashCode(this.eiu_1)) | 0;
    result = imul(result, 31) + (this.fiu_1 == null ? 0 : getStringHashCode(this.fiu_1)) | 0;
    result = imul(result, 31) + this.giu_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.hiu_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.ciu_1.equals(tmp0_other_with_cast.ciu_1))
      return false;
    if (!this.diu_1.equals(tmp0_other_with_cast.diu_1))
      return false;
    if (!(this.eiu_1 == tmp0_other_with_cast.eiu_1))
      return false;
    if (!(this.fiu_1 == tmp0_other_with_cast.fiu_1))
      return false;
    if (!this.giu_1.equals(tmp0_other_with_cast.giu_1))
      return false;
    if (!(this.hiu_1 === tmp0_other_with_cast.hiu_1))
      return false;
    return true;
  };
  function Companion_127() {
    this.il0_1 = 1;
    this.jl0_1 = 2;
    this.kl0_1 = 3;
    this.ll0_1 = 4;
    this.ml0_1 = 5;
    this.nl0_1 = 6401;
  }
  var Companion_instance_128;
  function Companion_getInstance_130() {
    return Companion_instance_128;
  }
  function $serializer_122() {
    $serializer_instance_122 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.ActivityInteractionEntity', this, 6);
    tmp0_serialDesc.t4f('aieActivityUid', true);
    tmp0_serialDesc.t4f('aieHash', true);
    tmp0_serialDesc.t4f('aieProp', true);
    tmp0_serialDesc.t4f('aieId', true);
    tmp0_serialDesc.t4f('aieLastMod', true);
    tmp0_serialDesc.t4f('aieIsDeleted', true);
    this.ol0_1 = tmp0_serialDesc;
  }
  protoOf($serializer_122).q44 = function () {
    return this.ol0_1;
  };
  protoOf($serializer_122).k4g = 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_122).s44 = function (decoder) {
    var tmp0_desc = this.ol0_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.i48(tmp0_desc);
    if (tmp10_input.x48()) {
      tmp4_local0 = tmp10_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp10_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp10_input.n48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp10_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp10_input.k48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp10_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp10_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp10_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp10_input.n48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp10_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp10_input.k48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp10_input.j48(tmp0_desc);
    return ActivityInteractionEntity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
  };
  protoOf($serializer_122).pl0 = function (encoder, value) {
    var tmp0_desc = this.ol0_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.hiv_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.hiv_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.iiv_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.iiv_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.jiv_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 2, value.jiv_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.kiv_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.kiv_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.liv_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.liv_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.miv_1 === false)) {
      tmp1_output.o49(tmp0_desc, 5, value.miv_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_122).r44 = function (encoder, value) {
    return this.pl0(encoder, value instanceof ActivityInteractionEntity ? value : THROW_CCE());
  };
  var $serializer_instance_122;
  function $serializer_getInstance_122() {
    if ($serializer_instance_122 == null)
      new $serializer_122();
    return $serializer_instance_122;
  }
  function ActivityInteractionEntity_init_$Init$(seen1, aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_122().ol0_1);
    }
    if (0 === (seen1 & 1))
      $this.hiv_1 = new Long(0, 0);
    else
      $this.hiv_1 = aieActivityUid;
    if (0 === (seen1 & 2))
      $this.iiv_1 = new Long(0, 0);
    else
      $this.iiv_1 = aieHash;
    if (0 === (seen1 & 4))
      $this.jiv_1 = 0;
    else
      $this.jiv_1 = aieProp;
    if (0 === (seen1 & 8))
      $this.kiv_1 = null;
    else
      $this.kiv_1 = aieId;
    if (0 === (seen1 & 16))
      $this.liv_1 = new Long(0, 0);
    else
      $this.liv_1 = aieLastMod;
    if (0 === (seen1 & 32))
      $this.miv_1 = false;
    else
      $this.miv_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.hiv_1 = aieActivityUid;
    this.iiv_1 = aieHash;
    this.jiv_1 = aieProp;
    this.kiv_1 = aieId;
    this.liv_1 = aieLastMod;
    this.miv_1 = aieIsDeleted;
  }
  protoOf(ActivityInteractionEntity).toString = function () {
    return 'ActivityInteractionEntity(aieActivityUid=' + this.hiv_1.toString() + ', aieHash=' + this.iiv_1.toString() + ', aieProp=' + this.jiv_1 + ', aieId=' + this.kiv_1 + ', aieLastMod=' + this.liv_1.toString() + ', aieIsDeleted=' + this.miv_1 + ')';
  };
  protoOf(ActivityInteractionEntity).hashCode = function () {
    var result = this.hiv_1.hashCode();
    result = imul(result, 31) + this.iiv_1.hashCode() | 0;
    result = imul(result, 31) + this.jiv_1 | 0;
    result = imul(result, 31) + (this.kiv_1 == null ? 0 : getStringHashCode(this.kiv_1)) | 0;
    result = imul(result, 31) + this.liv_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.miv_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.hiv_1.equals(tmp0_other_with_cast.hiv_1))
      return false;
    if (!this.iiv_1.equals(tmp0_other_with_cast.iiv_1))
      return false;
    if (!(this.jiv_1 === tmp0_other_with_cast.jiv_1))
      return false;
    if (!(this.kiv_1 == tmp0_other_with_cast.kiv_1))
      return false;
    if (!this.liv_1.equals(tmp0_other_with_cast.liv_1))
      return false;
    if (!(this.miv_1 === tmp0_other_with_cast.miv_1))
      return false;
    return true;
  };
  function Companion_128() {
    this.ql0_1 = 6442;
    this.rl0_1 = 'name';
    this.sl0_1 = 'description';
  }
  var Companion_instance_129;
  function Companion_getInstance_131() {
    return Companion_instance_129;
  }
  function $serializer_123() {
    $serializer_instance_123 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.ActivityLangMapEntry', this, 7);
    tmp0_serialDesc.t4f('almeActivityUid', true);
    tmp0_serialDesc.t4f('almeHash', true);
    tmp0_serialDesc.t4f('almeLangCode', true);
    tmp0_serialDesc.t4f('almePropName', true);
    tmp0_serialDesc.t4f('almeValue', true);
    tmp0_serialDesc.t4f('almeAieHash', true);
    tmp0_serialDesc.t4f('almeLastMod', true);
    this.tl0_1 = tmp0_serialDesc;
  }
  protoOf($serializer_123).q44 = function () {
    return this.tl0_1;
  };
  protoOf($serializer_123).k4g = 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(), LongSerializer_getInstance()];
  };
  protoOf($serializer_123).s44 = function (decoder) {
    var tmp0_desc = this.tl0_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 = new Long(0, 0);
    var tmp11_input = decoder.i48(tmp0_desc);
    if (tmp11_input.x48()) {
      tmp4_local0 = tmp11_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp11_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp11_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp11_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp11_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp11_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp11_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp11_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp11_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp11_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp11_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp11_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp11_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp11_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp11_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp11_input.j48(tmp0_desc);
    return ActivityLangMapEntry_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null);
  };
  protoOf($serializer_123).ul0 = function (encoder, value) {
    var tmp0_desc = this.tl0_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.iix_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.iix_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.jix_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.jix_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.kix_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.kix_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.lix_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.lix_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.mix_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.mix_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.nix_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.nix_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.oix_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.oix_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_123).r44 = function (encoder, value) {
    return this.ul0(encoder, value instanceof ActivityLangMapEntry ? value : THROW_CCE());
  };
  var $serializer_instance_123;
  function $serializer_getInstance_123() {
    if ($serializer_instance_123 == null)
      new $serializer_123();
    return $serializer_instance_123;
  }
  function ActivityLangMapEntry_init_$Init$(seen1, almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_123().tl0_1);
    }
    if (0 === (seen1 & 1))
      $this.iix_1 = new Long(0, 0);
    else
      $this.iix_1 = almeActivityUid;
    if (0 === (seen1 & 2))
      $this.jix_1 = new Long(0, 0);
    else
      $this.jix_1 = almeHash;
    if (0 === (seen1 & 4))
      $this.kix_1 = null;
    else
      $this.kix_1 = almeLangCode;
    if (0 === (seen1 & 8))
      $this.lix_1 = null;
    else
      $this.lix_1 = almePropName;
    if (0 === (seen1 & 16))
      $this.mix_1 = null;
    else
      $this.mix_1 = almeValue;
    if (0 === (seen1 & 32))
      $this.nix_1 = new Long(0, 0);
    else
      $this.nix_1 = almeAieHash;
    if (0 === (seen1 & 64))
      $this.oix_1 = new Long(0, 0);
    else
      $this.oix_1 = almeLastMod;
    return $this;
  }
  function ActivityLangMapEntry_init_$Create$(seen1, almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod, serializationConstructorMarker) {
    return ActivityLangMapEntry_init_$Init$(seen1, almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod, serializationConstructorMarker, objectCreate(protoOf(ActivityLangMapEntry)));
  }
  function ActivityLangMapEntry(almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod) {
    almeActivityUid = almeActivityUid === VOID ? new Long(0, 0) : almeActivityUid;
    almeHash = almeHash === VOID ? new Long(0, 0) : almeHash;
    almeLangCode = almeLangCode === VOID ? null : almeLangCode;
    almePropName = almePropName === VOID ? null : almePropName;
    almeValue = almeValue === VOID ? null : almeValue;
    almeAieHash = almeAieHash === VOID ? new Long(0, 0) : almeAieHash;
    almeLastMod = almeLastMod === VOID ? new Long(0, 0) : almeLastMod;
    this.iix_1 = almeActivityUid;
    this.jix_1 = almeHash;
    this.kix_1 = almeLangCode;
    this.lix_1 = almePropName;
    this.mix_1 = almeValue;
    this.nix_1 = almeAieHash;
    this.oix_1 = almeLastMod;
  }
  protoOf(ActivityLangMapEntry).toString = function () {
    return 'ActivityLangMapEntry(almeActivityUid=' + this.iix_1.toString() + ', almeHash=' + this.jix_1.toString() + ', almeLangCode=' + this.kix_1 + ', almePropName=' + this.lix_1 + ', almeValue=' + this.mix_1 + ', almeAieHash=' + this.nix_1.toString() + ', almeLastMod=' + this.oix_1.toString() + ')';
  };
  protoOf(ActivityLangMapEntry).hashCode = function () {
    var result = this.iix_1.hashCode();
    result = imul(result, 31) + this.jix_1.hashCode() | 0;
    result = imul(result, 31) + (this.kix_1 == null ? 0 : getStringHashCode(this.kix_1)) | 0;
    result = imul(result, 31) + (this.lix_1 == null ? 0 : getStringHashCode(this.lix_1)) | 0;
    result = imul(result, 31) + (this.mix_1 == null ? 0 : getStringHashCode(this.mix_1)) | 0;
    result = imul(result, 31) + this.nix_1.hashCode() | 0;
    result = imul(result, 31) + this.oix_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.iix_1.equals(tmp0_other_with_cast.iix_1))
      return false;
    if (!this.jix_1.equals(tmp0_other_with_cast.jix_1))
      return false;
    if (!(this.kix_1 == tmp0_other_with_cast.kix_1))
      return false;
    if (!(this.lix_1 == tmp0_other_with_cast.lix_1))
      return false;
    if (!(this.mix_1 == 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.equals(tmp0_other_with_cast.oix_1))
      return false;
    return true;
  };
  function Companion_129() {
    this.vl0_1 = 68;
  }
  var Companion_instance_130;
  function Companion_getInstance_132() {
    return Companion_instance_130;
  }
  function $serializer_124() {
    $serializer_instance_124 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.ActorEntity', this, 11);
    tmp0_serialDesc.t4f('actorUid', true);
    tmp0_serialDesc.t4f('actorPersonUid', true);
    tmp0_serialDesc.t4f('actorName', true);
    tmp0_serialDesc.t4f('actorMbox', true);
    tmp0_serialDesc.t4f('actorMbox_sha1sum', true);
    tmp0_serialDesc.t4f('actorOpenid', true);
    tmp0_serialDesc.t4f('actorAccountName', true);
    tmp0_serialDesc.t4f('actorAccountHomePage', true);
    tmp0_serialDesc.t4f('actorEtag', true);
    tmp0_serialDesc.t4f('actorLct', true);
    tmp0_serialDesc.t4f('actorObjectType', true);
    this.wl0_1 = tmp0_serialDesc;
  }
  protoOf($serializer_124).q44 = function () {
    return this.wl0_1;
  };
  protoOf($serializer_124).k4g = 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_124).s44 = function (decoder) {
    var tmp0_desc = this.wl0_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.i48(tmp0_desc);
    if (tmp15_input.x48()) {
      tmp4_local0 = tmp15_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp15_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp15_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp15_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp15_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp15_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp15_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp15_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp15_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp15_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp15_input.n48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp15_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp15_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp15_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp15_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp15_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp15_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp15_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp15_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp15_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp15_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp15_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp15_input.n48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp15_input.j48(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_124).xl0 = function (encoder, value) {
    var tmp0_desc = this.wl0_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.uj3_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.uj3_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.vj3_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.vj3_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.wj3_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.wj3_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.xj3_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.xj3_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.yj3_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.yj3_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.zj3_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.zj3_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.aj4_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 6, StringSerializer_getInstance(), value.aj4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.bj4_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 7, StringSerializer_getInstance(), value.bj4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.cj4_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.cj4_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !value.dj4_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 9, value.dj4_1);
    }
    var tmp;
    if (tmp1_output.e4a(tmp0_desc, 10)) {
      tmp = true;
    } else {
      var tmp_0 = value.ej4_1;
      tmp = !(tmp_0 === 1);
    }
    if (tmp) {
      tmp1_output.r49(tmp0_desc, 10, value.ej4_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_124).r44 = function (encoder, value) {
    return this.xl0(encoder, value instanceof ActorEntity ? value : THROW_CCE());
  };
  var $serializer_instance_124;
  function $serializer_getInstance_124() {
    if ($serializer_instance_124 == null)
      new $serializer_124();
    return $serializer_instance_124;
  }
  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_124().wl0_1);
    }
    if (0 === (seen1 & 1))
      $this.uj3_1 = new Long(0, 0);
    else
      $this.uj3_1 = actorUid;
    if (0 === (seen1 & 2))
      $this.vj3_1 = new Long(0, 0);
    else
      $this.vj3_1 = actorPersonUid;
    if (0 === (seen1 & 4))
      $this.wj3_1 = null;
    else
      $this.wj3_1 = actorName;
    if (0 === (seen1 & 8))
      $this.xj3_1 = null;
    else
      $this.xj3_1 = actorMbox;
    if (0 === (seen1 & 16))
      $this.yj3_1 = null;
    else
      $this.yj3_1 = actorMbox_sha1sum;
    if (0 === (seen1 & 32))
      $this.zj3_1 = null;
    else
      $this.zj3_1 = actorOpenid;
    if (0 === (seen1 & 64))
      $this.aj4_1 = null;
    else
      $this.aj4_1 = actorAccountName;
    if (0 === (seen1 & 128))
      $this.bj4_1 = null;
    else
      $this.bj4_1 = actorAccountHomePage;
    if (0 === (seen1 & 256))
      $this.cj4_1 = new Long(0, 0);
    else
      $this.cj4_1 = actorEtag;
    if (0 === (seen1 & 512))
      $this.dj4_1 = new Long(0, 0);
    else
      $this.dj4_1 = actorLct;
    if (0 === (seen1 & 1024)) {
      var tmp = $this;
      tmp.ej4_1 = 1;
    } else
      $this.ej4_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.uj3_1 = actorUid;
    this.vj3_1 = actorPersonUid;
    this.wj3_1 = actorName;
    this.xj3_1 = actorMbox;
    this.yj3_1 = actorMbox_sha1sum;
    this.zj3_1 = actorOpenid;
    this.aj4_1 = actorAccountName;
    this.bj4_1 = actorAccountHomePage;
    this.cj4_1 = actorEtag;
    this.dj4_1 = actorLct;
    this.ej4_1 = actorObjectType;
  }
  protoOf(ActorEntity).toString = function () {
    return 'ActorEntity(actorUid=' + this.uj3_1.toString() + ', actorPersonUid=' + this.vj3_1.toString() + ', actorName=' + this.wj3_1 + ', actorMbox=' + this.xj3_1 + ', actorMbox_sha1sum=' + this.yj3_1 + ', actorOpenid=' + this.zj3_1 + ', actorAccountName=' + this.aj4_1 + ', actorAccountHomePage=' + this.bj4_1 + ', actorEtag=' + this.cj4_1.toString() + ', actorLct=' + this.dj4_1.toString() + ', actorObjectType=' + this.ej4_1 + ')';
  };
  protoOf(ActorEntity).hashCode = function () {
    var result = this.uj3_1.hashCode();
    result = imul(result, 31) + this.vj3_1.hashCode() | 0;
    result = imul(result, 31) + (this.wj3_1 == null ? 0 : getStringHashCode(this.wj3_1)) | 0;
    result = imul(result, 31) + (this.xj3_1 == null ? 0 : getStringHashCode(this.xj3_1)) | 0;
    result = imul(result, 31) + (this.yj3_1 == null ? 0 : getStringHashCode(this.yj3_1)) | 0;
    result = imul(result, 31) + (this.zj3_1 == null ? 0 : getStringHashCode(this.zj3_1)) | 0;
    result = imul(result, 31) + (this.aj4_1 == null ? 0 : getStringHashCode(this.aj4_1)) | 0;
    result = imul(result, 31) + (this.bj4_1 == null ? 0 : getStringHashCode(this.bj4_1)) | 0;
    result = imul(result, 31) + this.cj4_1.hashCode() | 0;
    result = imul(result, 31) + this.dj4_1.hashCode() | 0;
    result = imul(result, 31) + this.ej4_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.uj3_1.equals(tmp0_other_with_cast.uj3_1))
      return false;
    if (!this.vj3_1.equals(tmp0_other_with_cast.vj3_1))
      return false;
    if (!(this.wj3_1 == tmp0_other_with_cast.wj3_1))
      return false;
    if (!(this.xj3_1 == tmp0_other_with_cast.xj3_1))
      return false;
    if (!(this.yj3_1 == tmp0_other_with_cast.yj3_1))
      return false;
    if (!(this.zj3_1 == tmp0_other_with_cast.zj3_1))
      return false;
    if (!(this.aj4_1 == tmp0_other_with_cast.aj4_1))
      return false;
    if (!(this.bj4_1 == tmp0_other_with_cast.bj4_1))
      return false;
    if (!this.cj4_1.equals(tmp0_other_with_cast.cj4_1))
      return false;
    if (!this.dj4_1.equals(tmp0_other_with_cast.dj4_1))
      return false;
    if (!(this.ej4_1 === tmp0_other_with_cast.ej4_1))
      return false;
    return true;
  };
  function Companion_130() {
    this.yl0_1 = 4232;
  }
  var Companion_instance_131;
  function Companion_getInstance_133() {
    return Companion_instance_131;
  }
  function $serializer_125() {
    $serializer_instance_125 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.GroupMemberActorJoin', this, 3);
    tmp0_serialDesc.t4f('gmajGroupActorUid', true);
    tmp0_serialDesc.t4f('gmajMemberActorUid', true);
    tmp0_serialDesc.t4f('gmajLastMod', true);
    this.zl0_1 = tmp0_serialDesc;
  }
  protoOf($serializer_125).q44 = function () {
    return this.zl0_1;
  };
  protoOf($serializer_125).k4g = 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_125).s44 = function (decoder) {
    var tmp0_desc = this.zl0_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.i48(tmp0_desc);
    if (tmp7_input.x48()) {
      tmp4_local0 = tmp7_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp7_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp7_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp7_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp7_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp7_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp7_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp7_input.j48(tmp0_desc);
    return GroupMemberActorJoin_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
  };
  protoOf($serializer_125).al1 = function (encoder, value) {
    var tmp0_desc = this.zl0_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.rj8_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.rj8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.sj8_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.sj8_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.tj8_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.tj8_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_125).r44 = function (encoder, value) {
    return this.al1(encoder, value instanceof GroupMemberActorJoin ? value : THROW_CCE());
  };
  var $serializer_instance_125;
  function $serializer_getInstance_125() {
    if ($serializer_instance_125 == null)
      new $serializer_125();
    return $serializer_instance_125;
  }
  function GroupMemberActorJoin_init_$Init$(seen1, gmajGroupActorUid, gmajMemberActorUid, gmajLastMod, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_125().zl0_1);
    }
    if (0 === (seen1 & 1))
      $this.rj8_1 = new Long(0, 0);
    else
      $this.rj8_1 = gmajGroupActorUid;
    if (0 === (seen1 & 2))
      $this.sj8_1 = new Long(0, 0);
    else
      $this.sj8_1 = gmajMemberActorUid;
    if (0 === (seen1 & 4))
      $this.tj8_1 = new Long(0, 0);
    else
      $this.tj8_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.rj8_1 = gmajGroupActorUid;
    this.sj8_1 = gmajMemberActorUid;
    this.tj8_1 = gmajLastMod;
  }
  protoOf(GroupMemberActorJoin).bl1 = function (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) {
    return new GroupMemberActorJoin(gmajGroupActorUid, gmajMemberActorUid, gmajLastMod);
  };
  protoOf(GroupMemberActorJoin).cl1 = function (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod, $super) {
    gmajGroupActorUid = gmajGroupActorUid === VOID ? this.rj8_1 : gmajGroupActorUid;
    gmajMemberActorUid = gmajMemberActorUid === VOID ? this.sj8_1 : gmajMemberActorUid;
    gmajLastMod = gmajLastMod === VOID ? this.tj8_1 : gmajLastMod;
    return $super === VOID ? this.bl1(gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) : $super.bl1.call(this, gmajGroupActorUid, gmajMemberActorUid, gmajLastMod);
  };
  protoOf(GroupMemberActorJoin).toString = function () {
    return 'GroupMemberActorJoin(gmajGroupActorUid=' + this.rj8_1.toString() + ', gmajMemberActorUid=' + this.sj8_1.toString() + ', gmajLastMod=' + this.tj8_1.toString() + ')';
  };
  protoOf(GroupMemberActorJoin).hashCode = function () {
    var result = this.rj8_1.hashCode();
    result = imul(result, 31) + this.sj8_1.hashCode() | 0;
    result = imul(result, 31) + this.tj8_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.rj8_1.equals(tmp0_other_with_cast.rj8_1))
      return false;
    if (!this.sj8_1.equals(tmp0_other_with_cast.sj8_1))
      return false;
    if (!this.tj8_1.equals(tmp0_other_with_cast.tj8_1))
      return false;
    return true;
  };
  function Companion_131() {
    this.dl1_1 = 121422;
  }
  var Companion_instance_132;
  function Companion_getInstance_134() {
    return Companion_instance_132;
  }
  function $serializer_126() {
    $serializer_instance_126 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.StateDeleteCommand', this, 7);
    tmp0_serialDesc.t4f('sdcActorUid', true);
    tmp0_serialDesc.t4f('sdcHash', true);
    tmp0_serialDesc.t4f('sdcActivityUid', true);
    tmp0_serialDesc.t4f('sdcStateId', true);
    tmp0_serialDesc.t4f('sdcLastMod', true);
    tmp0_serialDesc.t4f('sdcRegistrationHi', true);
    tmp0_serialDesc.t4f('sdcRegistrationLo', true);
    this.el1_1 = tmp0_serialDesc;
  }
  protoOf($serializer_126).q44 = function () {
    return this.el1_1;
  };
  protoOf($serializer_126).k4g = 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_126).s44 = function (decoder) {
    var tmp0_desc = this.el1_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.i48(tmp0_desc);
    if (tmp11_input.x48()) {
      tmp4_local0 = tmp11_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp11_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp11_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp11_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp11_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp11_input.w48(tmp0_desc, 5, LongSerializer_getInstance(), tmp9_local5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp11_input.w48(tmp0_desc, 6, LongSerializer_getInstance(), tmp10_local6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp11_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp11_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp11_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp11_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp11_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp11_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp11_input.w48(tmp0_desc, 5, LongSerializer_getInstance(), tmp9_local5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp11_input.w48(tmp0_desc, 6, LongSerializer_getInstance(), tmp10_local6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp11_input.j48(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_126).fl1 = function (encoder, value) {
    var tmp0_desc = this.el1_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.tjb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.tjb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.ujb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.ujb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.vjb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.vjb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.wjb_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.wjb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.xjb_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.xjb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.yjb_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 5, LongSerializer_getInstance(), value.yjb_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.zjb_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 6, LongSerializer_getInstance(), value.zjb_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_126).r44 = function (encoder, value) {
    return this.fl1(encoder, value instanceof StateDeleteCommand ? value : THROW_CCE());
  };
  var $serializer_instance_126;
  function $serializer_getInstance_126() {
    if ($serializer_instance_126 == null)
      new $serializer_126();
    return $serializer_instance_126;
  }
  function StateDeleteCommand_init_$Init$(seen1, sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_126().el1_1);
    }
    if (0 === (seen1 & 1))
      $this.tjb_1 = new Long(0, 0);
    else
      $this.tjb_1 = sdcActorUid;
    if (0 === (seen1 & 2))
      $this.ujb_1 = new Long(0, 0);
    else
      $this.ujb_1 = sdcHash;
    if (0 === (seen1 & 4))
      $this.vjb_1 = new Long(0, 0);
    else
      $this.vjb_1 = sdcActivityUid;
    if (0 === (seen1 & 8))
      $this.wjb_1 = null;
    else
      $this.wjb_1 = sdcStateId;
    if (0 === (seen1 & 16))
      $this.xjb_1 = new Long(0, 0);
    else
      $this.xjb_1 = sdcLastMod;
    if (0 === (seen1 & 32))
      $this.yjb_1 = null;
    else
      $this.yjb_1 = sdcRegistrationHi;
    if (0 === (seen1 & 64))
      $this.zjb_1 = null;
    else
      $this.zjb_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.tjb_1 = sdcActorUid;
    this.ujb_1 = sdcHash;
    this.vjb_1 = sdcActivityUid;
    this.wjb_1 = sdcStateId;
    this.xjb_1 = sdcLastMod;
    this.yjb_1 = sdcRegistrationHi;
    this.zjb_1 = sdcRegistrationLo;
  }
  protoOf(StateDeleteCommand).toString = function () {
    return 'StateDeleteCommand(sdcActorUid=' + this.tjb_1.toString() + ', sdcHash=' + this.ujb_1.toString() + ', sdcActivityUid=' + this.vjb_1.toString() + ', sdcStateId=' + this.wjb_1 + ', sdcLastMod=' + this.xjb_1.toString() + ', sdcRegistrationHi=' + toString(this.yjb_1) + ', sdcRegistrationLo=' + toString(this.zjb_1) + ')';
  };
  protoOf(StateDeleteCommand).hashCode = function () {
    var result = this.tjb_1.hashCode();
    result = imul(result, 31) + this.ujb_1.hashCode() | 0;
    result = imul(result, 31) + this.vjb_1.hashCode() | 0;
    result = imul(result, 31) + (this.wjb_1 == null ? 0 : getStringHashCode(this.wjb_1)) | 0;
    result = imul(result, 31) + this.xjb_1.hashCode() | 0;
    result = imul(result, 31) + (this.yjb_1 == null ? 0 : this.yjb_1.hashCode()) | 0;
    result = imul(result, 31) + (this.zjb_1 == null ? 0 : this.zjb_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.tjb_1.equals(tmp0_other_with_cast.tjb_1))
      return false;
    if (!this.ujb_1.equals(tmp0_other_with_cast.ujb_1))
      return false;
    if (!this.vjb_1.equals(tmp0_other_with_cast.vjb_1))
      return false;
    if (!(this.wjb_1 == tmp0_other_with_cast.wjb_1))
      return false;
    if (!this.xjb_1.equals(tmp0_other_with_cast.xjb_1))
      return false;
    if (!equals(this.yjb_1, tmp0_other_with_cast.yjb_1))
      return false;
    if (!equals(this.zjb_1, tmp0_other_with_cast.zjb_1))
      return false;
    return true;
  };
  function Companion_132() {
    this.gl1_1 = 3289;
  }
  var Companion_instance_133;
  function Companion_getInstance_135() {
    return Companion_instance_133;
  }
  function $serializer_127() {
    $serializer_instance_127 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.StateEntity', this, 14);
    tmp0_serialDesc.t4f('seActorUid', true);
    tmp0_serialDesc.t4f('seHash', true);
    tmp0_serialDesc.t4f('seActivityUid', true);
    tmp0_serialDesc.t4f('seStateId', true);
    tmp0_serialDesc.t4f('seLastMod', true);
    tmp0_serialDesc.t4f('seTimeStored', true);
    tmp0_serialDesc.t4f('seContentType', true);
    tmp0_serialDesc.t4f('seCompressed', true);
    tmp0_serialDesc.t4f('seContent', true);
    tmp0_serialDesc.t4f('seDeleted', true);
    tmp0_serialDesc.t4f('seRegistrationHi', true);
    tmp0_serialDesc.t4f('seRegistrationLo', true);
    tmp0_serialDesc.t4f('seH5PPreloaded', true);
    tmp0_serialDesc.t4f('seH5PSubContentId', true);
    this.hl1_1 = tmp0_serialDesc;
  }
  protoOf($serializer_127).q44 = function () {
    return this.hl1_1;
  };
  protoOf($serializer_127).k4g = 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_127).s44 = function (decoder) {
    var tmp0_desc = this.hl1_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.i48(tmp0_desc);
    if (tmp18_input.x48()) {
      tmp4_local0 = tmp18_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp18_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp18_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp18_input.s48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp18_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp18_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp18_input.s48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp18_input.n48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp18_input.s48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp18_input.k48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp18_input.w48(tmp0_desc, 10, LongSerializer_getInstance(), tmp14_local10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp18_input.w48(tmp0_desc, 11, LongSerializer_getInstance(), tmp15_local11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp18_input.k48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp18_input.w48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp18_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp18_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp18_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp18_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp18_input.s48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp18_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp18_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp18_input.s48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp18_input.n48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp18_input.s48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp18_input.k48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp18_input.w48(tmp0_desc, 10, LongSerializer_getInstance(), tmp14_local10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp18_input.w48(tmp0_desc, 11, LongSerializer_getInstance(), tmp15_local11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp18_input.k48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp18_input.w48(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp18_input.j48(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_127).il1 = function (encoder, value) {
    var tmp0_desc = this.hl1_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.njc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.njc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.ojc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.ojc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.pjc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.pjc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.qjc_1 === '')) {
      tmp1_output.w49(tmp0_desc, 3, value.qjc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.rjc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.rjc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.sjc_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.sjc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.tjc_1 === '')) {
      tmp1_output.w49(tmp0_desc, 6, value.tjc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.ujc_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 7, value.ujc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.vjc_1 === '')) {
      tmp1_output.w49(tmp0_desc, 8, value.vjc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.wjc_1 === false)) {
      tmp1_output.o49(tmp0_desc, 9, value.wjc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.xjc_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 10, LongSerializer_getInstance(), value.xjc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !(value.yjc_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 11, LongSerializer_getInstance(), value.yjc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !(value.zjc_1 === false)) {
      tmp1_output.o49(tmp0_desc, 12, value.zjc_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !(value.ajd_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 13, StringSerializer_getInstance(), value.ajd_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_127).r44 = function (encoder, value) {
    return this.il1(encoder, value instanceof StateEntity ? value : THROW_CCE());
  };
  var $serializer_instance_127;
  function $serializer_getInstance_127() {
    if ($serializer_instance_127 == null)
      new $serializer_127();
    return $serializer_instance_127;
  }
  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_127().hl1_1);
    }
    if (0 === (seen1 & 1))
      $this.njc_1 = new Long(0, 0);
    else
      $this.njc_1 = seActorUid;
    if (0 === (seen1 & 2))
      $this.ojc_1 = new Long(0, 0);
    else
      $this.ojc_1 = seHash;
    if (0 === (seen1 & 4))
      $this.pjc_1 = new Long(0, 0);
    else
      $this.pjc_1 = seActivityUid;
    if (0 === (seen1 & 8))
      $this.qjc_1 = '';
    else
      $this.qjc_1 = seStateId;
    if (0 === (seen1 & 16))
      $this.rjc_1 = new Long(0, 0);
    else
      $this.rjc_1 = seLastMod;
    if (0 === (seen1 & 32))
      $this.sjc_1 = new Long(0, 0);
    else
      $this.sjc_1 = seTimeStored;
    if (0 === (seen1 & 64))
      $this.tjc_1 = '';
    else
      $this.tjc_1 = seContentType;
    if (0 === (seen1 & 128))
      $this.ujc_1 = 0;
    else
      $this.ujc_1 = seCompressed;
    if (0 === (seen1 & 256))
      $this.vjc_1 = '';
    else
      $this.vjc_1 = seContent;
    if (0 === (seen1 & 512))
      $this.wjc_1 = false;
    else
      $this.wjc_1 = seDeleted;
    if (0 === (seen1 & 1024))
      $this.xjc_1 = null;
    else
      $this.xjc_1 = seRegistrationHi;
    if (0 === (seen1 & 2048))
      $this.yjc_1 = null;
    else
      $this.yjc_1 = seRegistrationLo;
    if (0 === (seen1 & 4096))
      $this.zjc_1 = false;
    else
      $this.zjc_1 = seH5PPreloaded;
    if (0 === (seen1 & 8192))
      $this.ajd_1 = null;
    else
      $this.ajd_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.njc_1 = seActorUid;
    this.ojc_1 = seHash;
    this.pjc_1 = seActivityUid;
    this.qjc_1 = seStateId;
    this.rjc_1 = seLastMod;
    this.sjc_1 = seTimeStored;
    this.tjc_1 = seContentType;
    this.ujc_1 = seCompressed;
    this.vjc_1 = seContent;
    this.wjc_1 = seDeleted;
    this.xjc_1 = seRegistrationHi;
    this.yjc_1 = seRegistrationLo;
    this.zjc_1 = seH5PPreloaded;
    this.ajd_1 = seH5PSubContentId;
  }
  protoOf(StateEntity).toString = function () {
    return 'StateEntity(seActorUid=' + this.njc_1.toString() + ', seHash=' + this.ojc_1.toString() + ', seActivityUid=' + this.pjc_1.toString() + ', seStateId=' + this.qjc_1 + ', seLastMod=' + this.rjc_1.toString() + ', seTimeStored=' + this.sjc_1.toString() + ', seContentType=' + this.tjc_1 + ', seCompressed=' + this.ujc_1 + ', seContent=' + this.vjc_1 + ', seDeleted=' + this.wjc_1 + ', seRegistrationHi=' + toString(this.xjc_1) + ', seRegistrationLo=' + toString(this.yjc_1) + ', seH5PPreloaded=' + this.zjc_1 + ', seH5PSubContentId=' + this.ajd_1 + ')';
  };
  protoOf(StateEntity).hashCode = function () {
    var result = this.njc_1.hashCode();
    result = imul(result, 31) + this.ojc_1.hashCode() | 0;
    result = imul(result, 31) + this.pjc_1.hashCode() | 0;
    result = imul(result, 31) + getStringHashCode(this.qjc_1) | 0;
    result = imul(result, 31) + this.rjc_1.hashCode() | 0;
    result = imul(result, 31) + this.sjc_1.hashCode() | 0;
    result = imul(result, 31) + getStringHashCode(this.tjc_1) | 0;
    result = imul(result, 31) + this.ujc_1 | 0;
    result = imul(result, 31) + getStringHashCode(this.vjc_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.wjc_1) | 0;
    result = imul(result, 31) + (this.xjc_1 == null ? 0 : this.xjc_1.hashCode()) | 0;
    result = imul(result, 31) + (this.yjc_1 == null ? 0 : this.yjc_1.hashCode()) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.zjc_1) | 0;
    result = imul(result, 31) + (this.ajd_1 == null ? 0 : getStringHashCode(this.ajd_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.njc_1.equals(tmp0_other_with_cast.njc_1))
      return false;
    if (!this.ojc_1.equals(tmp0_other_with_cast.ojc_1))
      return false;
    if (!this.pjc_1.equals(tmp0_other_with_cast.pjc_1))
      return false;
    if (!(this.qjc_1 === tmp0_other_with_cast.qjc_1))
      return false;
    if (!this.rjc_1.equals(tmp0_other_with_cast.rjc_1))
      return false;
    if (!this.sjc_1.equals(tmp0_other_with_cast.sjc_1))
      return false;
    if (!(this.tjc_1 === tmp0_other_with_cast.tjc_1))
      return false;
    if (!(this.ujc_1 === tmp0_other_with_cast.ujc_1))
      return false;
    if (!(this.vjc_1 === tmp0_other_with_cast.vjc_1))
      return false;
    if (!(this.wjc_1 === tmp0_other_with_cast.wjc_1))
      return false;
    if (!equals(this.xjc_1, tmp0_other_with_cast.xjc_1))
      return false;
    if (!equals(this.yjc_1, tmp0_other_with_cast.yjc_1))
      return false;
    if (!(this.zjc_1 === tmp0_other_with_cast.zjc_1))
      return false;
    if (!(this.ajd_1 == tmp0_other_with_cast.ajd_1))
      return false;
    return true;
  };
  function Companion_133() {
    this.jl1_1 = 1;
    this.kl1_1 = 2;
    this.ll1_1 = 3;
    this.ml1_1 = 4;
    this.nl1_1 = 44044;
  }
  var Companion_instance_134;
  function Companion_getInstance_136() {
    return Companion_instance_134;
  }
  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.pjd_1 = scajFromStatementIdHi;
    this.qjd_1 = scajFromStatementIdLo;
    this.rjd_1 = scajToHash;
    this.sjd_1 = scajContextType;
    this.tjd_1 = scajToActivityUid;
    this.ujd_1 = scajToActivityId;
    this.vjd_1 = scajEtag;
  }
  protoOf(StatementContextActivityJoin).toString = function () {
    return 'StatementContextActivityJoin(scajFromStatementIdHi=' + this.pjd_1.toString() + ', scajFromStatementIdLo=' + this.qjd_1.toString() + ', scajToHash=' + this.rjd_1.toString() + ', scajContextType=' + this.sjd_1 + ', scajToActivityUid=' + this.tjd_1.toString() + ', scajToActivityId=' + this.ujd_1 + ', scajEtag=' + this.vjd_1.toString() + ')';
  };
  protoOf(StatementContextActivityJoin).hashCode = function () {
    var result = this.pjd_1.hashCode();
    result = imul(result, 31) + this.qjd_1.hashCode() | 0;
    result = imul(result, 31) + this.rjd_1.hashCode() | 0;
    result = imul(result, 31) + this.sjd_1 | 0;
    result = imul(result, 31) + this.tjd_1.hashCode() | 0;
    result = imul(result, 31) + (this.ujd_1 == null ? 0 : getStringHashCode(this.ujd_1)) | 0;
    result = imul(result, 31) + this.vjd_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.pjd_1.equals(tmp0_other_with_cast.pjd_1))
      return false;
    if (!this.qjd_1.equals(tmp0_other_with_cast.qjd_1))
      return false;
    if (!this.rjd_1.equals(tmp0_other_with_cast.rjd_1))
      return false;
    if (!(this.sjd_1 === tmp0_other_with_cast.sjd_1))
      return false;
    if (!this.tjd_1.equals(tmp0_other_with_cast.tjd_1))
      return false;
    if (!(this.ujd_1 == tmp0_other_with_cast.ujd_1))
      return false;
    if (!this.vjd_1.equals(tmp0_other_with_cast.vjd_1))
      return false;
    return true;
  };
  function Companion_134() {
    this.ol1_1 = 60;
    this.pl1_1 = 0;
    this.ql1_1 = 2;
    this.rl1_1 = 1;
    this.sl1_1 = 100;
    this.tl1_1 = 101;
    this.ul1_1 = 102;
    this.vl1_1 = 103;
  }
  var Companion_instance_135;
  function Companion_getInstance_137() {
    return Companion_instance_135;
  }
  function $serializer_128() {
    $serializer_instance_128 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.StatementEntity', this, 35);
    tmp0_serialDesc.t4f('statementIdHi', true);
    tmp0_serialDesc.t4f('statementIdLo', true);
    tmp0_serialDesc.t4f('statementActorPersonUid', true);
    tmp0_serialDesc.t4f('statementVerbUid', true);
    tmp0_serialDesc.t4f('statementObjectType', true);
    tmp0_serialDesc.t4f('statementObjectUid1', true);
    tmp0_serialDesc.t4f('statementObjectUid2', true);
    tmp0_serialDesc.t4f('statementActorUid', true);
    tmp0_serialDesc.t4f('authorityActorUid', true);
    tmp0_serialDesc.t4f('teamUid', true);
    tmp0_serialDesc.t4f('resultCompletion', true);
    tmp0_serialDesc.t4f('resultSuccess', true);
    tmp0_serialDesc.t4f('resultScoreScaled', true);
    tmp0_serialDesc.t4f('resultScoreRaw', true);
    tmp0_serialDesc.t4f('resultScoreMin', true);
    tmp0_serialDesc.t4f('resultScoreMax', true);
    tmp0_serialDesc.t4f('resultDuration', true);
    tmp0_serialDesc.t4f('resultResponse', true);
    tmp0_serialDesc.t4f('timestamp', true);
    tmp0_serialDesc.t4f('stored', true);
    tmp0_serialDesc.t4f('contextRegistrationHi', true);
    tmp0_serialDesc.t4f('contextRegistrationLo', true);
    tmp0_serialDesc.t4f('contextPlatform', true);
    tmp0_serialDesc.t4f('contextStatementRefIdHi', true);
    tmp0_serialDesc.t4f('contextStatementRefIdLo', true);
    tmp0_serialDesc.t4f('contextInstructorActorUid', true);
    tmp0_serialDesc.t4f('statementLct', true);
    tmp0_serialDesc.t4f('extensionProgress', true);
    tmp0_serialDesc.t4f('completionOrProgress', true);
    tmp0_serialDesc.t4f('statementContentEntryUid', true);
    tmp0_serialDesc.t4f('statementLearnerGroupUid', true);
    tmp0_serialDesc.t4f('statementClazzUid', true);
    tmp0_serialDesc.t4f('statementCbUid', true);
    tmp0_serialDesc.t4f('statementDoorNode', true);
    tmp0_serialDesc.t4f('isSubStatement', true);
    this.wl1_1 = tmp0_serialDesc;
  }
  protoOf($serializer_128).q44 = function () {
    return this.wl1_1;
  };
  protoOf($serializer_128).k4g = 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_128).s44 = function (decoder) {
    var tmp0_desc = this.wl1_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.i48(tmp0_desc);
    if (tmp40_input.x48()) {
      tmp5_local0 = tmp40_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp6_local1 = tmp40_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp7_local2 = tmp40_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp8_local3 = tmp40_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp9_local4 = tmp40_input.n48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp10_local5 = tmp40_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp11_local6 = tmp40_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp12_local7 = tmp40_input.o48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp13_local8 = tmp40_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp14_local9 = tmp40_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp15_local10 = tmp40_input.w48(tmp0_desc, 10, BooleanSerializer_getInstance(), tmp15_local10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp16_local11 = tmp40_input.w48(tmp0_desc, 11, BooleanSerializer_getInstance(), tmp16_local11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp17_local12 = tmp40_input.w48(tmp0_desc, 12, FloatSerializer_getInstance(), tmp17_local12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp18_local13 = tmp40_input.w48(tmp0_desc, 13, FloatSerializer_getInstance(), tmp18_local13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp19_local14 = tmp40_input.w48(tmp0_desc, 14, FloatSerializer_getInstance(), tmp19_local14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp20_local15 = tmp40_input.w48(tmp0_desc, 15, FloatSerializer_getInstance(), tmp20_local15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp21_local16 = tmp40_input.w48(tmp0_desc, 16, LongSerializer_getInstance(), tmp21_local16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp22_local17 = tmp40_input.w48(tmp0_desc, 17, StringSerializer_getInstance(), tmp22_local17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp23_local18 = tmp40_input.o48(tmp0_desc, 18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
      tmp24_local19 = tmp40_input.o48(tmp0_desc, 19);
      tmp3_bitMask0 = tmp3_bitMask0 | 524288;
      tmp25_local20 = tmp40_input.o48(tmp0_desc, 20);
      tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
      tmp26_local21 = tmp40_input.o48(tmp0_desc, 21);
      tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
      tmp27_local22 = tmp40_input.w48(tmp0_desc, 22, StringSerializer_getInstance(), tmp27_local22);
      tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
      tmp28_local23 = tmp40_input.o48(tmp0_desc, 23);
      tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
      tmp29_local24 = tmp40_input.o48(tmp0_desc, 24);
      tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
      tmp30_local25 = tmp40_input.o48(tmp0_desc, 25);
      tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
      tmp31_local26 = tmp40_input.o48(tmp0_desc, 26);
      tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
      tmp32_local27 = tmp40_input.w48(tmp0_desc, 27, IntSerializer_getInstance(), tmp32_local27);
      tmp3_bitMask0 = tmp3_bitMask0 | 134217728;
      tmp33_local28 = tmp40_input.k48(tmp0_desc, 28);
      tmp3_bitMask0 = tmp3_bitMask0 | 268435456;
      tmp34_local29 = tmp40_input.o48(tmp0_desc, 29);
      tmp3_bitMask0 = tmp3_bitMask0 | 536870912;
      tmp35_local30 = tmp40_input.o48(tmp0_desc, 30);
      tmp3_bitMask0 = tmp3_bitMask0 | 1073741824;
      tmp36_local31 = tmp40_input.o48(tmp0_desc, 31);
      tmp3_bitMask0 = tmp3_bitMask0 | -2147483648;
      tmp37_local32 = tmp40_input.o48(tmp0_desc, 32);
      tmp4_bitMask1 = tmp4_bitMask1 | 1;
      tmp38_local33 = tmp40_input.o48(tmp0_desc, 33);
      tmp4_bitMask1 = tmp4_bitMask1 | 2;
      tmp39_local34 = tmp40_input.k48(tmp0_desc, 34);
      tmp4_bitMask1 = tmp4_bitMask1 | 4;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp40_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp5_local0 = tmp40_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp6_local1 = tmp40_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp7_local2 = tmp40_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp8_local3 = tmp40_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp9_local4 = tmp40_input.n48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp10_local5 = tmp40_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp11_local6 = tmp40_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp12_local7 = tmp40_input.o48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp13_local8 = tmp40_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp14_local9 = tmp40_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp15_local10 = tmp40_input.w48(tmp0_desc, 10, BooleanSerializer_getInstance(), tmp15_local10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp16_local11 = tmp40_input.w48(tmp0_desc, 11, BooleanSerializer_getInstance(), tmp16_local11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp17_local12 = tmp40_input.w48(tmp0_desc, 12, FloatSerializer_getInstance(), tmp17_local12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp18_local13 = tmp40_input.w48(tmp0_desc, 13, FloatSerializer_getInstance(), tmp18_local13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp19_local14 = tmp40_input.w48(tmp0_desc, 14, FloatSerializer_getInstance(), tmp19_local14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp20_local15 = tmp40_input.w48(tmp0_desc, 15, FloatSerializer_getInstance(), tmp20_local15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp21_local16 = tmp40_input.w48(tmp0_desc, 16, LongSerializer_getInstance(), tmp21_local16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp22_local17 = tmp40_input.w48(tmp0_desc, 17, StringSerializer_getInstance(), tmp22_local17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp23_local18 = tmp40_input.o48(tmp0_desc, 18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          case 19:
            tmp24_local19 = tmp40_input.o48(tmp0_desc, 19);
            tmp3_bitMask0 = tmp3_bitMask0 | 524288;
            break;
          case 20:
            tmp25_local20 = tmp40_input.o48(tmp0_desc, 20);
            tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
            break;
          case 21:
            tmp26_local21 = tmp40_input.o48(tmp0_desc, 21);
            tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
            break;
          case 22:
            tmp27_local22 = tmp40_input.w48(tmp0_desc, 22, StringSerializer_getInstance(), tmp27_local22);
            tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
            break;
          case 23:
            tmp28_local23 = tmp40_input.o48(tmp0_desc, 23);
            tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
            break;
          case 24:
            tmp29_local24 = tmp40_input.o48(tmp0_desc, 24);
            tmp3_bitMask0 = tmp3_bitMask0 | 16777216;
            break;
          case 25:
            tmp30_local25 = tmp40_input.o48(tmp0_desc, 25);
            tmp3_bitMask0 = tmp3_bitMask0 | 33554432;
            break;
          case 26:
            tmp31_local26 = tmp40_input.o48(tmp0_desc, 26);
            tmp3_bitMask0 = tmp3_bitMask0 | 67108864;
            break;
          case 27:
            tmp32_local27 = tmp40_input.w48(tmp0_desc, 27, IntSerializer_getInstance(), tmp32_local27);
            tmp3_bitMask0 = tmp3_bitMask0 | 134217728;
            break;
          case 28:
            tmp33_local28 = tmp40_input.k48(tmp0_desc, 28);
            tmp3_bitMask0 = tmp3_bitMask0 | 268435456;
            break;
          case 29:
            tmp34_local29 = tmp40_input.o48(tmp0_desc, 29);
            tmp3_bitMask0 = tmp3_bitMask0 | 536870912;
            break;
          case 30:
            tmp35_local30 = tmp40_input.o48(tmp0_desc, 30);
            tmp3_bitMask0 = tmp3_bitMask0 | 1073741824;
            break;
          case 31:
            tmp36_local31 = tmp40_input.o48(tmp0_desc, 31);
            tmp3_bitMask0 = tmp3_bitMask0 | -2147483648;
            break;
          case 32:
            tmp37_local32 = tmp40_input.o48(tmp0_desc, 32);
            tmp4_bitMask1 = tmp4_bitMask1 | 1;
            break;
          case 33:
            tmp38_local33 = tmp40_input.o48(tmp0_desc, 33);
            tmp4_bitMask1 = tmp4_bitMask1 | 2;
            break;
          case 34:
            tmp39_local34 = tmp40_input.k48(tmp0_desc, 34);
            tmp4_bitMask1 = tmp4_bitMask1 | 4;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp40_input.j48(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_128).xl1 = function (encoder, value) {
    var tmp0_desc = this.wl1_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.wje_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.wje_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.xje_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.xje_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.yje_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.yje_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.zje_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.zje_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.ajf_1 === 0)) {
      tmp1_output.r49(tmp0_desc, 4, value.ajf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.bjf_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.bjf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.cjf_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.cjf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.djf_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 7, value.djf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.ejf_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.ejf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !value.fjf_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 9, value.fjf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.gjf_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 10, BooleanSerializer_getInstance(), value.gjf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !(value.hjf_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 11, BooleanSerializer_getInstance(), value.hjf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !(value.ijf_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 12, FloatSerializer_getInstance(), value.ijf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !(value.jjf_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 13, FloatSerializer_getInstance(), value.jjf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 14) ? true : !(value.kjf_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 14, FloatSerializer_getInstance(), value.kjf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 15) ? true : !(value.ljf_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 15, FloatSerializer_getInstance(), value.ljf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 16) ? true : !(value.mjf_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 16, LongSerializer_getInstance(), value.mjf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 17) ? true : !(value.njf_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 17, StringSerializer_getInstance(), value.njf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 18) ? true : !value.ojf_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 18, value.ojf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 19) ? true : !value.pjf_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 19, value.pjf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 20) ? true : !value.qjf_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 20, value.qjf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 21) ? true : !value.rjf_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 21, value.rjf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 22) ? true : !(value.sjf_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 22, StringSerializer_getInstance(), value.sjf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 23) ? true : !value.tjf_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 23, value.tjf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 24) ? true : !value.ujf_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 24, value.ujf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 25) ? true : !value.vjf_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 25, value.vjf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 26) ? true : !value.wjf_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 26, value.wjf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 27) ? true : !(value.xjf_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 27, IntSerializer_getInstance(), value.xjf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 28) ? true : !(value.yjf_1 === false)) {
      tmp1_output.o49(tmp0_desc, 28, value.yjf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 29) ? true : !value.zjf_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 29, value.zjf_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 30) ? true : !value.ajg_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 30, value.ajg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 31) ? true : !value.bjg_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 31, value.bjg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 32) ? true : !value.cjg_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 32, value.cjg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 33) ? true : !value.djg_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 33, value.djg_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 34) ? true : !(value.ejg_1 === false)) {
      tmp1_output.o49(tmp0_desc, 34, value.ejg_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_128).r44 = function (encoder, value) {
    return this.xl1(encoder, value instanceof StatementEntity ? value : THROW_CCE());
  };
  var $serializer_instance_128;
  function $serializer_getInstance_128() {
    if ($serializer_instance_128 == null)
      new $serializer_128();
    return $serializer_instance_128;
  }
  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_128().wl1_1);
    }
    if (0 === (seen1 & 1))
      $this.wje_1 = new Long(0, 0);
    else
      $this.wje_1 = statementIdHi;
    if (0 === (seen1 & 2))
      $this.xje_1 = new Long(0, 0);
    else
      $this.xje_1 = statementIdLo;
    if (0 === (seen1 & 4))
      $this.yje_1 = new Long(0, 0);
    else
      $this.yje_1 = statementActorPersonUid;
    if (0 === (seen1 & 8))
      $this.zje_1 = new Long(0, 0);
    else
      $this.zje_1 = statementVerbUid;
    if (0 === (seen1 & 16))
      $this.ajf_1 = 0;
    else
      $this.ajf_1 = statementObjectType;
    if (0 === (seen1 & 32))
      $this.bjf_1 = new Long(0, 0);
    else
      $this.bjf_1 = statementObjectUid1;
    if (0 === (seen1 & 64))
      $this.cjf_1 = new Long(0, 0);
    else
      $this.cjf_1 = statementObjectUid2;
    if (0 === (seen1 & 128))
      $this.djf_1 = new Long(0, 0);
    else
      $this.djf_1 = statementActorUid;
    if (0 === (seen1 & 256))
      $this.ejf_1 = new Long(0, 0);
    else
      $this.ejf_1 = authorityActorUid;
    if (0 === (seen1 & 512))
      $this.fjf_1 = new Long(0, 0);
    else
      $this.fjf_1 = teamUid;
    if (0 === (seen1 & 1024))
      $this.gjf_1 = null;
    else
      $this.gjf_1 = resultCompletion;
    if (0 === (seen1 & 2048))
      $this.hjf_1 = null;
    else
      $this.hjf_1 = resultSuccess;
    if (0 === (seen1 & 4096))
      $this.ijf_1 = null;
    else
      $this.ijf_1 = resultScoreScaled;
    if (0 === (seen1 & 8192))
      $this.jjf_1 = null;
    else
      $this.jjf_1 = resultScoreRaw;
    if (0 === (seen1 & 16384))
      $this.kjf_1 = null;
    else
      $this.kjf_1 = resultScoreMin;
    if (0 === (seen1 & 32768))
      $this.ljf_1 = null;
    else
      $this.ljf_1 = resultScoreMax;
    if (0 === (seen1 & 65536))
      $this.mjf_1 = null;
    else
      $this.mjf_1 = resultDuration;
    if (0 === (seen1 & 131072))
      $this.njf_1 = null;
    else
      $this.njf_1 = resultResponse;
    if (0 === (seen1 & 262144))
      $this.ojf_1 = new Long(0, 0);
    else
      $this.ojf_1 = timestamp;
    if (0 === (seen1 & 524288))
      $this.pjf_1 = new Long(0, 0);
    else
      $this.pjf_1 = stored;
    if (0 === (seen1 & 1048576))
      $this.qjf_1 = new Long(0, 0);
    else
      $this.qjf_1 = contextRegistrationHi;
    if (0 === (seen1 & 2097152))
      $this.rjf_1 = new Long(0, 0);
    else
      $this.rjf_1 = contextRegistrationLo;
    if (0 === (seen1 & 4194304))
      $this.sjf_1 = null;
    else
      $this.sjf_1 = contextPlatform;
    if (0 === (seen1 & 8388608))
      $this.tjf_1 = new Long(0, 0);
    else
      $this.tjf_1 = contextStatementRefIdHi;
    if (0 === (seen1 & 16777216))
      $this.ujf_1 = new Long(0, 0);
    else
      $this.ujf_1 = contextStatementRefIdLo;
    if (0 === (seen1 & 33554432))
      $this.vjf_1 = new Long(0, 0);
    else
      $this.vjf_1 = contextInstructorActorUid;
    if (0 === (seen1 & 67108864))
      $this.wjf_1 = new Long(0, 0);
    else
      $this.wjf_1 = statementLct;
    if (0 === (seen1 & 134217728))
      $this.xjf_1 = null;
    else
      $this.xjf_1 = extensionProgress;
    if (0 === (seen1 & 268435456))
      $this.yjf_1 = false;
    else
      $this.yjf_1 = completionOrProgress;
    if (0 === (seen1 & 536870912))
      $this.zjf_1 = new Long(0, 0);
    else
      $this.zjf_1 = statementContentEntryUid;
    if (0 === (seen1 & 1073741824))
      $this.ajg_1 = new Long(0, 0);
    else
      $this.ajg_1 = statementLearnerGroupUid;
    if (0 === (seen1 & -2147483648))
      $this.bjg_1 = new Long(0, 0);
    else
      $this.bjg_1 = statementClazzUid;
    if (0 === (seen2 & 1))
      $this.cjg_1 = new Long(0, 0);
    else
      $this.cjg_1 = statementCbUid;
    if (0 === (seen2 & 2))
      $this.djg_1 = new Long(0, 0);
    else
      $this.djg_1 = statementDoorNode;
    if (0 === (seen2 & 4))
      $this.ejg_1 = false;
    else
      $this.ejg_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.wje_1 = statementIdHi;
    this.xje_1 = statementIdLo;
    this.yje_1 = statementActorPersonUid;
    this.zje_1 = statementVerbUid;
    this.ajf_1 = statementObjectType;
    this.bjf_1 = statementObjectUid1;
    this.cjf_1 = statementObjectUid2;
    this.djf_1 = statementActorUid;
    this.ejf_1 = authorityActorUid;
    this.fjf_1 = teamUid;
    this.gjf_1 = resultCompletion;
    this.hjf_1 = resultSuccess;
    this.ijf_1 = resultScoreScaled;
    this.jjf_1 = resultScoreRaw;
    this.kjf_1 = resultScoreMin;
    this.ljf_1 = resultScoreMax;
    this.mjf_1 = resultDuration;
    this.njf_1 = resultResponse;
    this.ojf_1 = timestamp;
    this.pjf_1 = stored;
    this.qjf_1 = contextRegistrationHi;
    this.rjf_1 = contextRegistrationLo;
    this.sjf_1 = contextPlatform;
    this.tjf_1 = contextStatementRefIdHi;
    this.ujf_1 = contextStatementRefIdLo;
    this.vjf_1 = contextInstructorActorUid;
    this.wjf_1 = statementLct;
    this.xjf_1 = extensionProgress;
    this.yjf_1 = completionOrProgress;
    this.zjf_1 = statementContentEntryUid;
    this.ajg_1 = statementLearnerGroupUid;
    this.bjg_1 = statementClazzUid;
    this.cjg_1 = statementCbUid;
    this.djg_1 = statementDoorNode;
    this.ejg_1 = isSubStatement;
  }
  protoOf(StatementEntity).toString = function () {
    return 'StatementEntity(statementIdHi=' + this.wje_1.toString() + ', statementIdLo=' + this.xje_1.toString() + ', statementActorPersonUid=' + this.yje_1.toString() + ', statementVerbUid=' + this.zje_1.toString() + ', statementObjectType=' + this.ajf_1 + ', statementObjectUid1=' + this.bjf_1.toString() + ', statementObjectUid2=' + this.cjf_1.toString() + ', statementActorUid=' + this.djf_1.toString() + ', authorityActorUid=' + this.ejf_1.toString() + ', teamUid=' + this.fjf_1.toString() + ', resultCompletion=' + this.gjf_1 + ', resultSuccess=' + this.hjf_1 + ', resultScoreScaled=' + this.ijf_1 + ', resultScoreRaw=' + this.jjf_1 + ', resultScoreMin=' + this.kjf_1 + ', resultScoreMax=' + this.ljf_1 + ', resultDuration=' + toString(this.mjf_1) + ', resultResponse=' + this.njf_1 + ', timestamp=' + this.ojf_1.toString() + ', stored=' + this.pjf_1.toString() + ', contextRegistrationHi=' + this.qjf_1.toString() + ', contextRegistrationLo=' + this.rjf_1.toString() + ', contextPlatform=' + this.sjf_1 + ', contextStatementRefIdHi=' + this.tjf_1.toString() + ', contextStatementRefIdLo=' + this.ujf_1.toString() + ', contextInstructorActorUid=' + this.vjf_1.toString() + ', statementLct=' + this.wjf_1.toString() + ', extensionProgress=' + this.xjf_1 + ', completionOrProgress=' + this.yjf_1 + ', statementContentEntryUid=' + this.zjf_1.toString() + ', statementLearnerGroupUid=' + this.ajg_1.toString() + ', statementClazzUid=' + this.bjg_1.toString() + ', statementCbUid=' + this.cjg_1.toString() + ', statementDoorNode=' + this.djg_1.toString() + ', isSubStatement=' + this.ejg_1 + ')';
  };
  protoOf(StatementEntity).hashCode = function () {
    var result = this.wje_1.hashCode();
    result = imul(result, 31) + this.xje_1.hashCode() | 0;
    result = imul(result, 31) + this.yje_1.hashCode() | 0;
    result = imul(result, 31) + this.zje_1.hashCode() | 0;
    result = imul(result, 31) + this.ajf_1 | 0;
    result = imul(result, 31) + this.bjf_1.hashCode() | 0;
    result = imul(result, 31) + this.cjf_1.hashCode() | 0;
    result = imul(result, 31) + this.djf_1.hashCode() | 0;
    result = imul(result, 31) + this.ejf_1.hashCode() | 0;
    result = imul(result, 31) + this.fjf_1.hashCode() | 0;
    result = imul(result, 31) + (this.gjf_1 == null ? 0 : getBooleanHashCode(this.gjf_1)) | 0;
    result = imul(result, 31) + (this.hjf_1 == null ? 0 : getBooleanHashCode(this.hjf_1)) | 0;
    result = imul(result, 31) + (this.ijf_1 == null ? 0 : getNumberHashCode(this.ijf_1)) | 0;
    result = imul(result, 31) + (this.jjf_1 == null ? 0 : getNumberHashCode(this.jjf_1)) | 0;
    result = imul(result, 31) + (this.kjf_1 == null ? 0 : getNumberHashCode(this.kjf_1)) | 0;
    result = imul(result, 31) + (this.ljf_1 == null ? 0 : getNumberHashCode(this.ljf_1)) | 0;
    result = imul(result, 31) + (this.mjf_1 == null ? 0 : this.mjf_1.hashCode()) | 0;
    result = imul(result, 31) + (this.njf_1 == null ? 0 : getStringHashCode(this.njf_1)) | 0;
    result = imul(result, 31) + this.ojf_1.hashCode() | 0;
    result = imul(result, 31) + this.pjf_1.hashCode() | 0;
    result = imul(result, 31) + this.qjf_1.hashCode() | 0;
    result = imul(result, 31) + this.rjf_1.hashCode() | 0;
    result = imul(result, 31) + (this.sjf_1 == null ? 0 : getStringHashCode(this.sjf_1)) | 0;
    result = imul(result, 31) + this.tjf_1.hashCode() | 0;
    result = imul(result, 31) + this.ujf_1.hashCode() | 0;
    result = imul(result, 31) + this.vjf_1.hashCode() | 0;
    result = imul(result, 31) + this.wjf_1.hashCode() | 0;
    result = imul(result, 31) + (this.xjf_1 == null ? 0 : this.xjf_1) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.yjf_1) | 0;
    result = imul(result, 31) + this.zjf_1.hashCode() | 0;
    result = imul(result, 31) + this.ajg_1.hashCode() | 0;
    result = imul(result, 31) + this.bjg_1.hashCode() | 0;
    result = imul(result, 31) + this.cjg_1.hashCode() | 0;
    result = imul(result, 31) + this.djg_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.ejg_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.wje_1.equals(tmp0_other_with_cast.wje_1))
      return false;
    if (!this.xje_1.equals(tmp0_other_with_cast.xje_1))
      return false;
    if (!this.yje_1.equals(tmp0_other_with_cast.yje_1))
      return false;
    if (!this.zje_1.equals(tmp0_other_with_cast.zje_1))
      return false;
    if (!(this.ajf_1 === tmp0_other_with_cast.ajf_1))
      return false;
    if (!this.bjf_1.equals(tmp0_other_with_cast.bjf_1))
      return false;
    if (!this.cjf_1.equals(tmp0_other_with_cast.cjf_1))
      return false;
    if (!this.djf_1.equals(tmp0_other_with_cast.djf_1))
      return false;
    if (!this.ejf_1.equals(tmp0_other_with_cast.ejf_1))
      return false;
    if (!this.fjf_1.equals(tmp0_other_with_cast.fjf_1))
      return false;
    if (!(this.gjf_1 == tmp0_other_with_cast.gjf_1))
      return false;
    if (!(this.hjf_1 == tmp0_other_with_cast.hjf_1))
      return false;
    if (!equals(this.ijf_1, tmp0_other_with_cast.ijf_1))
      return false;
    if (!equals(this.jjf_1, tmp0_other_with_cast.jjf_1))
      return false;
    if (!equals(this.kjf_1, tmp0_other_with_cast.kjf_1))
      return false;
    if (!equals(this.ljf_1, tmp0_other_with_cast.ljf_1))
      return false;
    if (!equals(this.mjf_1, tmp0_other_with_cast.mjf_1))
      return false;
    if (!(this.njf_1 == tmp0_other_with_cast.njf_1))
      return false;
    if (!this.ojf_1.equals(tmp0_other_with_cast.ojf_1))
      return false;
    if (!this.pjf_1.equals(tmp0_other_with_cast.pjf_1))
      return false;
    if (!this.qjf_1.equals(tmp0_other_with_cast.qjf_1))
      return false;
    if (!this.rjf_1.equals(tmp0_other_with_cast.rjf_1))
      return false;
    if (!(this.sjf_1 == tmp0_other_with_cast.sjf_1))
      return false;
    if (!this.tjf_1.equals(tmp0_other_with_cast.tjf_1))
      return false;
    if (!this.ujf_1.equals(tmp0_other_with_cast.ujf_1))
      return false;
    if (!this.vjf_1.equals(tmp0_other_with_cast.vjf_1))
      return false;
    if (!this.wjf_1.equals(tmp0_other_with_cast.wjf_1))
      return false;
    if (!(this.xjf_1 == tmp0_other_with_cast.xjf_1))
      return false;
    if (!(this.yjf_1 === tmp0_other_with_cast.yjf_1))
      return false;
    if (!this.zjf_1.equals(tmp0_other_with_cast.zjf_1))
      return false;
    if (!this.ajg_1.equals(tmp0_other_with_cast.ajg_1))
      return false;
    if (!this.bjg_1.equals(tmp0_other_with_cast.bjg_1))
      return false;
    if (!this.cjg_1.equals(tmp0_other_with_cast.cjg_1))
      return false;
    if (!this.djg_1.equals(tmp0_other_with_cast.djg_1))
      return false;
    if (!(this.ejg_1 === tmp0_other_with_cast.ejg_1))
      return false;
    return true;
  };
  function Companion_135() {
    this.yl1_1 = 602;
  }
  var Companion_instance_136;
  function Companion_getInstance_138() {
    return Companion_instance_136;
  }
  function $serializer_129() {
    $serializer_instance_129 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.StatementEntityJson', this, 4);
    tmp0_serialDesc.t4f('stmtJsonIdHi', true);
    tmp0_serialDesc.t4f('stmtJsonIdLo', true);
    tmp0_serialDesc.t4f('stmtEtag', true);
    tmp0_serialDesc.t4f('fullStatement', true);
    this.zl1_1 = tmp0_serialDesc;
  }
  protoOf($serializer_129).q44 = function () {
    return this.zl1_1;
  };
  protoOf($serializer_129).k4g = 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_129).s44 = function (decoder) {
    var tmp0_desc = this.zl1_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.i48(tmp0_desc);
    if (tmp8_input.x48()) {
      tmp4_local0 = tmp8_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.j48(tmp0_desc);
    return StatementEntityJson_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_129).al2 = function (encoder, value) {
    var tmp0_desc = this.zl1_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.kjw_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.kjw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.ljw_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.ljw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.mjw_1.equals(new Long(1, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.mjw_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.njw_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.njw_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_129).r44 = function (encoder, value) {
    return this.al2(encoder, value instanceof StatementEntityJson ? value : THROW_CCE());
  };
  var $serializer_instance_129;
  function $serializer_getInstance_129() {
    if ($serializer_instance_129 == null)
      new $serializer_129();
    return $serializer_instance_129;
  }
  function StatementEntityJson_init_$Init$(seen1, stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_129().zl1_1);
    }
    if (0 === (seen1 & 1))
      $this.kjw_1 = new Long(0, 0);
    else
      $this.kjw_1 = stmtJsonIdHi;
    if (0 === (seen1 & 2))
      $this.ljw_1 = new Long(0, 0);
    else
      $this.ljw_1 = stmtJsonIdLo;
    if (0 === (seen1 & 4))
      $this.mjw_1 = new Long(1, 0);
    else
      $this.mjw_1 = stmtEtag;
    if (0 === (seen1 & 8))
      $this.njw_1 = null;
    else
      $this.njw_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.kjw_1 = stmtJsonIdHi;
    this.ljw_1 = stmtJsonIdLo;
    this.mjw_1 = stmtEtag;
    this.njw_1 = fullStatement;
  }
  protoOf(StatementEntityJson).toString = function () {
    return 'StatementEntityJson(stmtJsonIdHi=' + this.kjw_1.toString() + ', stmtJsonIdLo=' + this.ljw_1.toString() + ', stmtEtag=' + this.mjw_1.toString() + ', fullStatement=' + this.njw_1 + ')';
  };
  protoOf(StatementEntityJson).hashCode = function () {
    var result = this.kjw_1.hashCode();
    result = imul(result, 31) + this.ljw_1.hashCode() | 0;
    result = imul(result, 31) + this.mjw_1.hashCode() | 0;
    result = imul(result, 31) + (this.njw_1 == null ? 0 : getStringHashCode(this.njw_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.kjw_1.equals(tmp0_other_with_cast.kjw_1))
      return false;
    if (!this.ljw_1.equals(tmp0_other_with_cast.ljw_1))
      return false;
    if (!this.mjw_1.equals(tmp0_other_with_cast.mjw_1))
      return false;
    if (!(this.njw_1 == tmp0_other_with_cast.njw_1))
      return false;
    return true;
  };
  function Companion_136() {
    this.bl2_1 = 62;
    this.cl2_1 = 'http://adlnet.gov/expapi/verbs/completed';
    this.dl2_1 = 'http://adlnet.gov/expapi/verbs/passed';
    this.el2_1 = 'http://adlnet.gov/expapi/verbs/failed';
    this.fl2_1 = 'http://adlnet.gov/expapi/verbs/experienced';
  }
  var Companion_instance_137;
  function Companion_getInstance_139() {
    return Companion_instance_137;
  }
  function $serializer_130() {
    $serializer_instance_130 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.VerbEntity', this, 4);
    tmp0_serialDesc.t4f('verbUid', true);
    tmp0_serialDesc.t4f('verbUrlId', true);
    tmp0_serialDesc.t4f('verbDeleted', true);
    tmp0_serialDesc.t4f('verbLct', true);
    this.gl2_1 = tmp0_serialDesc;
  }
  protoOf($serializer_130).q44 = function () {
    return this.gl2_1;
  };
  protoOf($serializer_130).k4g = 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_130).s44 = function (decoder) {
    var tmp0_desc = this.gl2_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.i48(tmp0_desc);
    if (tmp8_input.x48()) {
      tmp4_local0 = tmp8_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp8_input.k48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp8_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp8_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp8_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp8_input.k48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp8_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp8_input.j48(tmp0_desc);
    return VerbEntity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
  };
  protoOf($serializer_130).hl2 = function (encoder, value) {
    var tmp0_desc = this.gl2_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.tjj_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.tjj_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.ujj_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.ujj_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.vjj_1 === false)) {
      tmp1_output.o49(tmp0_desc, 2, value.vjj_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.wjj_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.wjj_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_130).r44 = function (encoder, value) {
    return this.hl2(encoder, value instanceof VerbEntity ? value : THROW_CCE());
  };
  var $serializer_instance_130;
  function $serializer_getInstance_130() {
    if ($serializer_instance_130 == null)
      new $serializer_130();
    return $serializer_instance_130;
  }
  function VerbEntity_init_$Init$(seen1, verbUid, verbUrlId, verbDeleted, verbLct, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_130().gl2_1);
    }
    if (0 === (seen1 & 1))
      $this.tjj_1 = new Long(0, 0);
    else
      $this.tjj_1 = verbUid;
    if (0 === (seen1 & 2))
      $this.ujj_1 = null;
    else
      $this.ujj_1 = verbUrlId;
    if (0 === (seen1 & 4))
      $this.vjj_1 = false;
    else
      $this.vjj_1 = verbDeleted;
    if (0 === (seen1 & 8))
      $this.wjj_1 = new Long(0, 0);
    else
      $this.wjj_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) {
    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.tjj_1 = verbUid;
    this.ujj_1 = verbUrlId;
    this.vjj_1 = verbDeleted;
    this.wjj_1 = verbLct;
  }
  protoOf(VerbEntity).toString = function () {
    return 'VerbEntity(verbUid=' + this.tjj_1.toString() + ', verbUrlId=' + this.ujj_1 + ', verbDeleted=' + this.vjj_1 + ', verbLct=' + this.wjj_1.toString() + ')';
  };
  protoOf(VerbEntity).hashCode = function () {
    var result = this.tjj_1.hashCode();
    result = imul(result, 31) + (this.ujj_1 == null ? 0 : getStringHashCode(this.ujj_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.vjj_1) | 0;
    result = imul(result, 31) + this.wjj_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.tjj_1.equals(tmp0_other_with_cast.tjj_1))
      return false;
    if (!(this.ujj_1 == tmp0_other_with_cast.ujj_1))
      return false;
    if (!(this.vjj_1 === tmp0_other_with_cast.vjj_1))
      return false;
    if (!this.wjj_1.equals(tmp0_other_with_cast.wjj_1))
      return false;
    return true;
  };
  function Companion_137() {
    this.il2_1 = 620;
  }
  var Companion_instance_138;
  function Companion_getInstance_140() {
    return Companion_instance_138;
  }
  function $serializer_131() {
    $serializer_instance_131 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.VerbLangMapEntry', this, 5);
    tmp0_serialDesc.t4f('vlmeVerbUid', true);
    tmp0_serialDesc.t4f('vlmeLangHash', true);
    tmp0_serialDesc.t4f('vlmeLangCode', true);
    tmp0_serialDesc.t4f('vlmeEntryString', true);
    tmp0_serialDesc.t4f('vlmeLastModified', true);
    this.jl2_1 = tmp0_serialDesc;
  }
  protoOf($serializer_131).q44 = function () {
    return this.jl2_1;
  };
  protoOf($serializer_131).k4g = 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_131).s44 = function (decoder) {
    var tmp0_desc = this.jl2_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.i48(tmp0_desc);
    if (tmp9_input.x48()) {
      tmp4_local0 = tmp9_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp9_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp9_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp9_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp9_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp9_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp9_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp9_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp9_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp9_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp9_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp9_input.j48(tmp0_desc);
    return VerbLangMapEntry_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
  };
  protoOf($serializer_131).kl2 = function (encoder, value) {
    var tmp0_desc = this.jl2_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.xjj_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.xjj_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.yjj_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.yjj_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.zjj_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.zjj_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.ajk_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.ajk_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.bjk_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.bjk_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_131).r44 = function (encoder, value) {
    return this.kl2(encoder, value instanceof VerbLangMapEntry ? value : THROW_CCE());
  };
  var $serializer_instance_131;
  function $serializer_getInstance_131() {
    if ($serializer_instance_131 == null)
      new $serializer_131();
    return $serializer_instance_131;
  }
  function VerbLangMapEntry_init_$Init$(seen1, vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified, serializationConstructorMarker, $this) {
    if (!(0 === (0 & seen1))) {
      throwMissingFieldException(seen1, 0, $serializer_getInstance_131().jl2_1);
    }
    if (0 === (seen1 & 1))
      $this.xjj_1 = new Long(0, 0);
    else
      $this.xjj_1 = vlmeVerbUid;
    if (0 === (seen1 & 2))
      $this.yjj_1 = new Long(0, 0);
    else
      $this.yjj_1 = vlmeLangHash;
    if (0 === (seen1 & 4))
      $this.zjj_1 = null;
    else
      $this.zjj_1 = vlmeLangCode;
    if (0 === (seen1 & 8))
      $this.ajk_1 = null;
    else
      $this.ajk_1 = vlmeEntryString;
    if (0 === (seen1 & 16))
      $this.bjk_1 = new Long(0, 0);
    else
      $this.bjk_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.xjj_1 = vlmeVerbUid;
    this.yjj_1 = vlmeLangHash;
    this.zjj_1 = vlmeLangCode;
    this.ajk_1 = vlmeEntryString;
    this.bjk_1 = vlmeLastModified;
  }
  protoOf(VerbLangMapEntry).toString = function () {
    return 'VerbLangMapEntry(vlmeVerbUid=' + this.xjj_1.toString() + ', vlmeLangHash=' + this.yjj_1.toString() + ', vlmeLangCode=' + this.zjj_1 + ', vlmeEntryString=' + this.ajk_1 + ', vlmeLastModified=' + this.bjk_1.toString() + ')';
  };
  protoOf(VerbLangMapEntry).hashCode = function () {
    var result = this.xjj_1.hashCode();
    result = imul(result, 31) + this.yjj_1.hashCode() | 0;
    result = imul(result, 31) + (this.zjj_1 == null ? 0 : getStringHashCode(this.zjj_1)) | 0;
    result = imul(result, 31) + (this.ajk_1 == null ? 0 : getStringHashCode(this.ajk_1)) | 0;
    result = imul(result, 31) + this.bjk_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.xjj_1.equals(tmp0_other_with_cast.xjj_1))
      return false;
    if (!this.yjj_1.equals(tmp0_other_with_cast.yjj_1))
      return false;
    if (!(this.zjj_1 == tmp0_other_with_cast.zjj_1))
      return false;
    if (!(this.ajk_1 == tmp0_other_with_cast.ajk_1))
      return false;
    if (!this.bjk_1.equals(tmp0_other_with_cast.bjk_1))
      return false;
    return true;
  };
  function XapiEntityObjectTypeFlags() {
    this.ll2_1 = 1;
    this.ml2_1 = 2;
    this.nl2_1 = 3;
    this.ol2_1 = 4;
    this.pl2_1 = 5;
    this.ql2_1 = 6;
  }
  var XapiEntityObjectTypeFlags_instance;
  function XapiEntityObjectTypeFlags_getInstance() {
    return XapiEntityObjectTypeFlags_instance;
  }
  function Companion_138() {
    this.rl2_1 = 400122;
  }
  var Companion_instance_139;
  function Companion_getInstance_141() {
    return Companion_instance_139;
  }
  function $serializer_132() {
    $serializer_instance_132 = this;
    var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.XapiSessionEntity', this, 19);
    tmp0_serialDesc.t4f('xseUid', true);
    tmp0_serialDesc.t4f('xseLastMod', true);
    tmp0_serialDesc.t4f('xseRegistrationHi', true);
    tmp0_serialDesc.t4f('xseRegistrationLo', true);
    tmp0_serialDesc.t4f('xseUsUid', true);
    tmp0_serialDesc.t4f('xseAccountPersonUid', true);
    tmp0_serialDesc.t4f('xseActorUid', true);
    tmp0_serialDesc.t4f('xseAccountUsername', true);
    tmp0_serialDesc.t4f('xseClazzUid', true);
    tmp0_serialDesc.t4f('xseCbUid', true);
    tmp0_serialDesc.t4f('xseContentEntryUid', true);
    tmp0_serialDesc.t4f('xseContentEntryVersionUid', true);
    tmp0_serialDesc.t4f('xseRootActivityId', true);
    tmp0_serialDesc.t4f('xseRootActivityUid', true);
    tmp0_serialDesc.t4f('xseStartTime', true);
    tmp0_serialDesc.t4f('xseExpireTime', true);
    tmp0_serialDesc.t4f('xseAuth', true);
    tmp0_serialDesc.t4f('xseCompleted', true);
    tmp0_serialDesc.t4f('knownActorUidToPersonUids', true);
    this.sl2_1 = tmp0_serialDesc;
  }
  protoOf($serializer_132).q44 = function () {
    return this.sl2_1;
  };
  protoOf($serializer_132).k4g = 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_132).s44 = function (decoder) {
    var tmp0_desc = this.sl2_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.i48(tmp0_desc);
    if (tmp23_input.x48()) {
      tmp4_local0 = tmp23_input.o48(tmp0_desc, 0);
      tmp3_bitMask0 = tmp3_bitMask0 | 1;
      tmp5_local1 = tmp23_input.o48(tmp0_desc, 1);
      tmp3_bitMask0 = tmp3_bitMask0 | 2;
      tmp6_local2 = tmp23_input.o48(tmp0_desc, 2);
      tmp3_bitMask0 = tmp3_bitMask0 | 4;
      tmp7_local3 = tmp23_input.o48(tmp0_desc, 3);
      tmp3_bitMask0 = tmp3_bitMask0 | 8;
      tmp8_local4 = tmp23_input.o48(tmp0_desc, 4);
      tmp3_bitMask0 = tmp3_bitMask0 | 16;
      tmp9_local5 = tmp23_input.o48(tmp0_desc, 5);
      tmp3_bitMask0 = tmp3_bitMask0 | 32;
      tmp10_local6 = tmp23_input.o48(tmp0_desc, 6);
      tmp3_bitMask0 = tmp3_bitMask0 | 64;
      tmp11_local7 = tmp23_input.s48(tmp0_desc, 7);
      tmp3_bitMask0 = tmp3_bitMask0 | 128;
      tmp12_local8 = tmp23_input.o48(tmp0_desc, 8);
      tmp3_bitMask0 = tmp3_bitMask0 | 256;
      tmp13_local9 = tmp23_input.o48(tmp0_desc, 9);
      tmp3_bitMask0 = tmp3_bitMask0 | 512;
      tmp14_local10 = tmp23_input.o48(tmp0_desc, 10);
      tmp3_bitMask0 = tmp3_bitMask0 | 1024;
      tmp15_local11 = tmp23_input.o48(tmp0_desc, 11);
      tmp3_bitMask0 = tmp3_bitMask0 | 2048;
      tmp16_local12 = tmp23_input.s48(tmp0_desc, 12);
      tmp3_bitMask0 = tmp3_bitMask0 | 4096;
      tmp17_local13 = tmp23_input.o48(tmp0_desc, 13);
      tmp3_bitMask0 = tmp3_bitMask0 | 8192;
      tmp18_local14 = tmp23_input.o48(tmp0_desc, 14);
      tmp3_bitMask0 = tmp3_bitMask0 | 16384;
      tmp19_local15 = tmp23_input.o48(tmp0_desc, 15);
      tmp3_bitMask0 = tmp3_bitMask0 | 32768;
      tmp20_local16 = tmp23_input.w48(tmp0_desc, 16, StringSerializer_getInstance(), tmp20_local16);
      tmp3_bitMask0 = tmp3_bitMask0 | 65536;
      tmp21_local17 = tmp23_input.k48(tmp0_desc, 17);
      tmp3_bitMask0 = tmp3_bitMask0 | 131072;
      tmp22_local18 = tmp23_input.s48(tmp0_desc, 18);
      tmp3_bitMask0 = tmp3_bitMask0 | 262144;
    } else
      while (tmp1_flag) {
        tmp2_index = tmp23_input.y48(tmp0_desc);
        switch (tmp2_index) {
          case -1:
            tmp1_flag = false;
            break;
          case 0:
            tmp4_local0 = tmp23_input.o48(tmp0_desc, 0);
            tmp3_bitMask0 = tmp3_bitMask0 | 1;
            break;
          case 1:
            tmp5_local1 = tmp23_input.o48(tmp0_desc, 1);
            tmp3_bitMask0 = tmp3_bitMask0 | 2;
            break;
          case 2:
            tmp6_local2 = tmp23_input.o48(tmp0_desc, 2);
            tmp3_bitMask0 = tmp3_bitMask0 | 4;
            break;
          case 3:
            tmp7_local3 = tmp23_input.o48(tmp0_desc, 3);
            tmp3_bitMask0 = tmp3_bitMask0 | 8;
            break;
          case 4:
            tmp8_local4 = tmp23_input.o48(tmp0_desc, 4);
            tmp3_bitMask0 = tmp3_bitMask0 | 16;
            break;
          case 5:
            tmp9_local5 = tmp23_input.o48(tmp0_desc, 5);
            tmp3_bitMask0 = tmp3_bitMask0 | 32;
            break;
          case 6:
            tmp10_local6 = tmp23_input.o48(tmp0_desc, 6);
            tmp3_bitMask0 = tmp3_bitMask0 | 64;
            break;
          case 7:
            tmp11_local7 = tmp23_input.s48(tmp0_desc, 7);
            tmp3_bitMask0 = tmp3_bitMask0 | 128;
            break;
          case 8:
            tmp12_local8 = tmp23_input.o48(tmp0_desc, 8);
            tmp3_bitMask0 = tmp3_bitMask0 | 256;
            break;
          case 9:
            tmp13_local9 = tmp23_input.o48(tmp0_desc, 9);
            tmp3_bitMask0 = tmp3_bitMask0 | 512;
            break;
          case 10:
            tmp14_local10 = tmp23_input.o48(tmp0_desc, 10);
            tmp3_bitMask0 = tmp3_bitMask0 | 1024;
            break;
          case 11:
            tmp15_local11 = tmp23_input.o48(tmp0_desc, 11);
            tmp3_bitMask0 = tmp3_bitMask0 | 2048;
            break;
          case 12:
            tmp16_local12 = tmp23_input.s48(tmp0_desc, 12);
            tmp3_bitMask0 = tmp3_bitMask0 | 4096;
            break;
          case 13:
            tmp17_local13 = tmp23_input.o48(tmp0_desc, 13);
            tmp3_bitMask0 = tmp3_bitMask0 | 8192;
            break;
          case 14:
            tmp18_local14 = tmp23_input.o48(tmp0_desc, 14);
            tmp3_bitMask0 = tmp3_bitMask0 | 16384;
            break;
          case 15:
            tmp19_local15 = tmp23_input.o48(tmp0_desc, 15);
            tmp3_bitMask0 = tmp3_bitMask0 | 32768;
            break;
          case 16:
            tmp20_local16 = tmp23_input.w48(tmp0_desc, 16, StringSerializer_getInstance(), tmp20_local16);
            tmp3_bitMask0 = tmp3_bitMask0 | 65536;
            break;
          case 17:
            tmp21_local17 = tmp23_input.k48(tmp0_desc, 17);
            tmp3_bitMask0 = tmp3_bitMask0 | 131072;
            break;
          case 18:
            tmp22_local18 = tmp23_input.s48(tmp0_desc, 18);
            tmp3_bitMask0 = tmp3_bitMask0 | 262144;
            break;
          default:
            throw UnknownFieldException_init_$Create$(tmp2_index);
        }
      }
    tmp23_input.j48(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_132).tl2 = function (encoder, value) {
    var tmp0_desc = this.sl2_1;
    var tmp1_output = encoder.i48(tmp0_desc);
    if (tmp1_output.e4a(tmp0_desc, 0) ? true : !value.ijz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 0, value.ijz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.jjz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 1, value.jjz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.kjz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 2, value.kjz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 3) ? true : !value.ljz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 3, value.ljz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.mjz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 4, value.mjz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 5) ? true : !value.njz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 5, value.njz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 6) ? true : !value.ojz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 6, value.ojz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.pjz_1 === '')) {
      tmp1_output.w49(tmp0_desc, 7, value.pjz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 8) ? true : !value.qjz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 8, value.qjz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 9) ? true : !value.rjz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 9, value.rjz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 10) ? true : !value.sjz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 10, value.sjz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 11) ? true : !value.tjz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 11, value.tjz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 12) ? true : !(value.ujz_1 === '')) {
      tmp1_output.w49(tmp0_desc, 12, value.ujz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 13) ? true : !value.vjz_1.equals(new Long(0, 0))) {
      tmp1_output.s49(tmp0_desc, 13, value.vjz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 14) ? true : !value.wjz_1.equals(systemTimeInMillis())) {
      tmp1_output.s49(tmp0_desc, 14, value.wjz_1);
    }
    var tmp;
    if (tmp1_output.e4a(tmp0_desc, 15)) {
      tmp = true;
    } else {
      var tmp_0 = value.xjz_1;
      Companion_getInstance();
      tmp = !tmp_0.equals(new Long(-1, 2147483647));
    }
    if (tmp) {
      tmp1_output.s49(tmp0_desc, 15, value.xjz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 16) ? true : !(value.yjz_1 == null)) {
      tmp1_output.a4a(tmp0_desc, 16, StringSerializer_getInstance(), value.yjz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 17) ? true : !(value.zjz_1 === false)) {
      tmp1_output.o49(tmp0_desc, 17, value.zjz_1);
    }
    if (tmp1_output.e4a(tmp0_desc, 18) ? true : !(value.ak0_1 === '')) {
      tmp1_output.w49(tmp0_desc, 18, value.ak0_1);
    }
    tmp1_output.j48(tmp0_desc);
  };
  protoOf($serializer_132).r44 = function (encoder, value) {
    return this.tl2(encoder, value instanceof XapiSessionEntity ? value : THROW_CCE());
  };
  var $serializer_instance_132;
  function $serializer_getInstance_132() {
    if ($serializer_instance_132 == null)
      new $serializer_132();
    return $serializer_instance_132;
  }
  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_132().sl2_1);
    }
    if (0 === (seen1 & 1))
      $this.ijz_1 = new Long(0, 0);
    else
      $this.ijz_1 = xseUid;
    if (0 === (seen1 & 2))
      $this.jjz_1 = new Long(0, 0);
    else
      $this.jjz_1 = xseLastMod;
    if (0 === (seen1 & 4))
      $this.kjz_1 = new Long(0, 0);
    else
      $this.kjz_1 = xseRegistrationHi;
    if (0 === (seen1 & 8))
      $this.ljz_1 = new Long(0, 0);
    else
      $this.ljz_1 = xseRegistrationLo;
    if (0 === (seen1 & 16))
      $this.mjz_1 = new Long(0, 0);
    else
      $this.mjz_1 = xseUsUid;
    if (0 === (seen1 & 32))
      $this.njz_1 = new Long(0, 0);
    else
      $this.njz_1 = xseAccountPersonUid;
    if (0 === (seen1 & 64))
      $this.ojz_1 = new Long(0, 0);
    else
      $this.ojz_1 = xseActorUid;
    if (0 === (seen1 & 128))
      $this.pjz_1 = '';
    else
      $this.pjz_1 = xseAccountUsername;
    if (0 === (seen1 & 256))
      $this.qjz_1 = new Long(0, 0);
    else
      $this.qjz_1 = xseClazzUid;
    if (0 === (seen1 & 512))
      $this.rjz_1 = new Long(0, 0);
    else
      $this.rjz_1 = xseCbUid;
    if (0 === (seen1 & 1024))
      $this.sjz_1 = new Long(0, 0);
    else
      $this.sjz_1 = xseContentEntryUid;
    if (0 === (seen1 & 2048))
      $this.tjz_1 = new Long(0, 0);
    else
      $this.tjz_1 = xseContentEntryVersionUid;
    if (0 === (seen1 & 4096))
      $this.ujz_1 = '';
    else
      $this.ujz_1 = xseRootActivityId;
    if (0 === (seen1 & 8192))
      $this.vjz_1 = new Long(0, 0);
    else
      $this.vjz_1 = xseRootActivityUid;
    if (0 === (seen1 & 16384))
      $this.wjz_1 = systemTimeInMillis();
    else
      $this.wjz_1 = xseStartTime;
    if (0 === (seen1 & 32768)) {
      var tmp = $this;
      Companion_getInstance();
      tmp.xjz_1 = new Long(-1, 2147483647);
    } else
      $this.xjz_1 = xseExpireTime;
    if (0 === (seen1 & 65536))
      $this.yjz_1 = null;
    else
      $this.yjz_1 = xseAuth;
    if (0 === (seen1 & 131072))
      $this.zjz_1 = false;
    else
      $this.zjz_1 = xseCompleted;
    if (0 === (seen1 & 262144))
      $this.ak0_1 = '';
    else
      $this.ak0_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.ijz_1 = xseUid;
    this.jjz_1 = xseLastMod;
    this.kjz_1 = xseRegistrationHi;
    this.ljz_1 = xseRegistrationLo;
    this.mjz_1 = xseUsUid;
    this.njz_1 = xseAccountPersonUid;
    this.ojz_1 = xseActorUid;
    this.pjz_1 = xseAccountUsername;
    this.qjz_1 = xseClazzUid;
    this.rjz_1 = xseCbUid;
    this.sjz_1 = xseContentEntryUid;
    this.tjz_1 = xseContentEntryVersionUid;
    this.ujz_1 = xseRootActivityId;
    this.vjz_1 = xseRootActivityUid;
    this.wjz_1 = xseStartTime;
    this.xjz_1 = xseExpireTime;
    this.yjz_1 = xseAuth;
    this.zjz_1 = xseCompleted;
    this.ak0_1 = knownActorUidToPersonUids;
  }
  protoOf(XapiSessionEntity).toString = function () {
    return 'XapiSessionEntity(xseUid=' + this.ijz_1.toString() + ', xseLastMod=' + this.jjz_1.toString() + ', xseRegistrationHi=' + this.kjz_1.toString() + ', xseRegistrationLo=' + this.ljz_1.toString() + ', xseUsUid=' + this.mjz_1.toString() + ', xseAccountPersonUid=' + this.njz_1.toString() + ', xseActorUid=' + this.ojz_1.toString() + ', xseAccountUsername=' + this.pjz_1 + ', xseClazzUid=' + this.qjz_1.toString() + ', xseCbUid=' + this.rjz_1.toString() + ', xseContentEntryUid=' + this.sjz_1.toString() + ', xseContentEntryVersionUid=' + this.tjz_1.toString() + ', xseRootActivityId=' + this.ujz_1 + ', xseRootActivityUid=' + this.vjz_1.toString() + ', xseStartTime=' + this.wjz_1.toString() + ', xseExpireTime=' + this.xjz_1.toString() + ', xseAuth=' + this.yjz_1 + ', xseCompleted=' + this.zjz_1 + ', knownActorUidToPersonUids=' + this.ak0_1 + ')';
  };
  protoOf(XapiSessionEntity).hashCode = function () {
    var result = this.ijz_1.hashCode();
    result = imul(result, 31) + this.jjz_1.hashCode() | 0;
    result = imul(result, 31) + this.kjz_1.hashCode() | 0;
    result = imul(result, 31) + this.ljz_1.hashCode() | 0;
    result = imul(result, 31) + this.mjz_1.hashCode() | 0;
    result = imul(result, 31) + this.njz_1.hashCode() | 0;
    result = imul(result, 31) + this.ojz_1.hashCode() | 0;
    result = imul(result, 31) + getStringHashCode(this.pjz_1) | 0;
    result = imul(result, 31) + this.qjz_1.hashCode() | 0;
    result = imul(result, 31) + this.rjz_1.hashCode() | 0;
    result = imul(result, 31) + this.sjz_1.hashCode() | 0;
    result = imul(result, 31) + this.tjz_1.hashCode() | 0;
    result = imul(result, 31) + getStringHashCode(this.ujz_1) | 0;
    result = imul(result, 31) + this.vjz_1.hashCode() | 0;
    result = imul(result, 31) + this.wjz_1.hashCode() | 0;
    result = imul(result, 31) + this.xjz_1.hashCode() | 0;
    result = imul(result, 31) + (this.yjz_1 == null ? 0 : getStringHashCode(this.yjz_1)) | 0;
    result = imul(result, 31) + getBooleanHashCode(this.zjz_1) | 0;
    result = imul(result, 31) + getStringHashCode(this.ak0_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.ijz_1.equals(tmp0_other_with_cast.ijz_1))
      return false;
    if (!this.jjz_1.equals(tmp0_other_with_cast.jjz_1))
      return false;
    if (!this.kjz_1.equals(tmp0_other_with_cast.kjz_1))
      return false;
    if (!this.ljz_1.equals(tmp0_other_with_cast.ljz_1))
      return false;
    if (!this.mjz_1.equals(tmp0_other_with_cast.mjz_1))
      return false;
    if (!this.njz_1.equals(tmp0_other_with_cast.njz_1))
      return false;
    if (!this.ojz_1.equals(tmp0_other_with_cast.ojz_1))
      return false;
    if (!(this.pjz_1 === tmp0_other_with_cast.pjz_1))
      return false;
    if (!this.qjz_1.equals(tmp0_other_with_cast.qjz_1))
      return false;
    if (!this.rjz_1.equals(tmp0_other_with_cast.rjz_1))
      return false;
    if (!this.sjz_1.equals(tmp0_other_with_cast.sjz_1))
      return false;
    if (!this.tjz_1.equals(tmp0_other_with_cast.tjz_1))
      return false;
    if (!(this.ujz_1 === tmp0_other_with_cast.ujz_1))
      return false;
    if (!this.vjz_1.equals(tmp0_other_with_cast.vjz_1))
      return false;
    if (!this.wjz_1.equals(tmp0_other_with_cast.wjz_1))
      return false;
    if (!this.xjz_1.equals(tmp0_other_with_cast.xjz_1))
      return false;
    if (!(this.yjz_1 == tmp0_other_with_cast.yjz_1))
      return false;
    if (!(this.zjz_1 === tmp0_other_with_cast.zjz_1))
      return false;
    if (!(this.ak0_1 === tmp0_other_with_cast.ak0_1))
      return false;
    return true;
  };
  function addSyncCallback(_this__u8e3s4, nodeIdAndAuth) {
    _this__u8e3s4.o72(new SyncNodeIdCallback(nodeIdAndAuth.q64_1));
    return _this__u8e3s4;
  }
  //region block: post-declaration
  protoOf($serializer).l4g = typeParametersSerializers;
  protoOf($serializer_0).l4g = typeParametersSerializers;
  protoOf($serializer_1).l4g = typeParametersSerializers;
  protoOf($serializer_2).l4g = typeParametersSerializers;
  protoOf($serializer_3).l4g = typeParametersSerializers;
  protoOf($serializer_4).l4g = typeParametersSerializers;
  protoOf($serializer_5).l4g = typeParametersSerializers;
  protoOf($serializer_6).l4g = typeParametersSerializers;
  protoOf($serializer_7).l4g = typeParametersSerializers;
  protoOf($serializer_8).l4g = typeParametersSerializers;
  protoOf($serializer_9).l4g = typeParametersSerializers;
  protoOf($serializer_10).l4g = typeParametersSerializers;
  protoOf($serializer_11).l4g = typeParametersSerializers;
  protoOf($serializer_12).l4g = typeParametersSerializers;
  protoOf($serializer_13).l4g = typeParametersSerializers;
  protoOf($serializer_14).l4g = typeParametersSerializers;
  protoOf($serializer_15).l4g = typeParametersSerializers;
  protoOf($serializer_16).l4g = typeParametersSerializers;
  protoOf($serializer_17).l4g = typeParametersSerializers;
  protoOf($serializer_18).l4g = typeParametersSerializers;
  protoOf($serializer_19).l4g = typeParametersSerializers;
  protoOf($serializer_20).l4g = typeParametersSerializers;
  protoOf($serializer_21).l4g = typeParametersSerializers;
  protoOf($serializer_22).l4g = typeParametersSerializers;
  protoOf($serializer_23).l4g = typeParametersSerializers;
  protoOf($serializer_24).l4g = typeParametersSerializers;
  protoOf($serializer_25).l4g = typeParametersSerializers;
  protoOf($serializer_26).l4g = typeParametersSerializers;
  protoOf($serializer_27).l4g = typeParametersSerializers;
  protoOf($serializer_28).l4g = typeParametersSerializers;
  protoOf($serializer_29).l4g = typeParametersSerializers;
  protoOf($serializer_30).l4g = typeParametersSerializers;
  protoOf($serializer_31).l4g = typeParametersSerializers;
  protoOf($serializer_32).l4g = typeParametersSerializers;
  protoOf($serializer_33).l4g = typeParametersSerializers;
  protoOf($serializer_34).l4g = typeParametersSerializers;
  protoOf($serializer_35).l4g = typeParametersSerializers;
  protoOf($serializer_36).l4g = typeParametersSerializers;
  protoOf($serializer_37).l4g = typeParametersSerializers;
  protoOf($serializer_38).l4g = typeParametersSerializers;
  protoOf($serializer_39).l4g = typeParametersSerializers;
  protoOf($serializer_40).l4g = typeParametersSerializers;
  protoOf($serializer_41).l4g = typeParametersSerializers;
  protoOf($serializer_42).l4g = typeParametersSerializers;
  protoOf($serializer_43).l4g = typeParametersSerializers;
  protoOf($serializer_44).l4g = typeParametersSerializers;
  protoOf($serializer_45).l4g = typeParametersSerializers;
  protoOf($serializer_46).l4g = typeParametersSerializers;
  protoOf($serializer_47).l4g = typeParametersSerializers;
  protoOf($serializer_48).l4g = typeParametersSerializers;
  protoOf($serializer_49).l4g = typeParametersSerializers;
  protoOf($serializer_50).l4g = typeParametersSerializers;
  protoOf($serializer_51).l4g = typeParametersSerializers;
  protoOf($serializer_52).l4g = typeParametersSerializers;
  protoOf($serializer_53).l4g = typeParametersSerializers;
  protoOf($serializer_54).l4g = typeParametersSerializers;
  protoOf($serializer_55).l4g = typeParametersSerializers;
  protoOf($serializer_56).l4g = typeParametersSerializers;
  protoOf($serializer_57).l4g = typeParametersSerializers;
  protoOf($serializer_58).l4g = typeParametersSerializers;
  protoOf($serializer_59).l4g = typeParametersSerializers;
  protoOf($serializer_60).l4g = typeParametersSerializers;
  protoOf($serializer_61).l4g = typeParametersSerializers;
  protoOf($serializer_62).l4g = typeParametersSerializers;
  protoOf($serializer_63).l4g = typeParametersSerializers;
  protoOf($serializer_64).l4g = typeParametersSerializers;
  protoOf($serializer_65).l4g = typeParametersSerializers;
  protoOf($serializer_66).l4g = typeParametersSerializers;
  protoOf($serializer_67).l4g = typeParametersSerializers;
  protoOf($serializer_68).l4g = typeParametersSerializers;
  protoOf($serializer_69).l4g = typeParametersSerializers;
  protoOf($serializer_70).l4g = typeParametersSerializers;
  protoOf($serializer_71).l4g = typeParametersSerializers;
  protoOf($serializer_72).l4g = typeParametersSerializers;
  protoOf($serializer_73).l4g = typeParametersSerializers;
  protoOf($serializer_74).l4g = typeParametersSerializers;
  protoOf($serializer_75).l4g = typeParametersSerializers;
  protoOf($serializer_76).l4g = typeParametersSerializers;
  protoOf($serializer_77).l4g = typeParametersSerializers;
  protoOf($serializer_78).l4g = typeParametersSerializers;
  protoOf($serializer_79).l4g = typeParametersSerializers;
  protoOf($serializer_80).l4g = typeParametersSerializers;
  protoOf($serializer_81).l4g = typeParametersSerializers;
  protoOf($serializer_82).l4g = typeParametersSerializers;
  protoOf($serializer_83).l4g = typeParametersSerializers;
  protoOf($serializer_84).l4g = typeParametersSerializers;
  protoOf($serializer_85).l4g = typeParametersSerializers;
  protoOf($serializer_86).l4g = typeParametersSerializers;
  protoOf($serializer_87).l4g = typeParametersSerializers;
  protoOf($serializer_88).l4g = typeParametersSerializers;
  protoOf($serializer_89).l4g = typeParametersSerializers;
  protoOf($serializer_90).l4g = typeParametersSerializers;
  protoOf($serializer_91).l4g = typeParametersSerializers;
  protoOf($serializer_92).l4g = typeParametersSerializers;
  protoOf($serializer_93).l4g = typeParametersSerializers;
  protoOf($serializer_94).l4g = typeParametersSerializers;
  protoOf($serializer_95).l4g = typeParametersSerializers;
  protoOf($serializer_96).l4g = typeParametersSerializers;
  protoOf($serializer_97).l4g = typeParametersSerializers;
  protoOf($serializer_98).l4g = typeParametersSerializers;
  protoOf($serializer_99).l4g = typeParametersSerializers;
  protoOf($serializer_100).l4g = typeParametersSerializers;
  protoOf($serializer_101).l4g = typeParametersSerializers;
  protoOf($serializer_102).l4g = typeParametersSerializers;
  protoOf($serializer_103).l4g = typeParametersSerializers;
  protoOf($serializer_104).l4g = typeParametersSerializers;
  protoOf($serializer_105).l4g = typeParametersSerializers;
  protoOf($serializer_106).l4g = typeParametersSerializers;
  protoOf($serializer_107).l4g = typeParametersSerializers;
  protoOf($serializer_108).l4g = typeParametersSerializers;
  protoOf($serializer_109).l4g = typeParametersSerializers;
  protoOf($serializer_110).l4g = typeParametersSerializers;
  protoOf($serializer_111).l4g = typeParametersSerializers;
  protoOf($serializer_112).l4g = typeParametersSerializers;
  protoOf($serializer_113).l4g = typeParametersSerializers;
  protoOf($serializer_114).l4g = typeParametersSerializers;
  protoOf($serializer_115).l4g = typeParametersSerializers;
  protoOf($serializer_116).l4g = typeParametersSerializers;
  protoOf($serializer_117).l4g = typeParametersSerializers;
  protoOf($serializer_118).l4g = typeParametersSerializers;
  protoOf($serializer_119).l4g = typeParametersSerializers;
  protoOf($serializer_120).l4g = typeParametersSerializers;
  protoOf($serializer_121).l4g = typeParametersSerializers;
  protoOf($serializer_122).l4g = typeParametersSerializers;
  protoOf($serializer_123).l4g = typeParametersSerializers;
  protoOf($serializer_124).l4g = typeParametersSerializers;
  protoOf($serializer_125).l4g = typeParametersSerializers;
  protoOf($serializer_126).l4g = typeParametersSerializers;
  protoOf($serializer_127).l4g = typeParametersSerializers;
  protoOf($serializer_128).l4g = typeParametersSerializers;
  protoOf($serializer_129).l4g = typeParametersSerializers;
  protoOf($serializer_130).l4g = typeParametersSerializers;
  protoOf($serializer_131).l4g = typeParametersSerializers;
  protoOf($serializer_132).l4g = 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_18 = new Companion_17();
  Companion_instance_19 = new Companion_18();
  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_35 = new Companion_34();
  Companion_instance_36 = new Companion_35();
  AttemptsPersonListConst_instance = new AttemptsPersonListConst();
  Companion_instance_37 = new Companion_36();
  Companion_instance_40 = new Companion_39();
  Companion_instance_41 = new Companion_40();
  Companion_instance_42 = new Companion_41();
  SessionTimeAndProgressInfoConst_instance = new SessionTimeAndProgressInfoConst();
  Companion_instance_43 = new Companion_42();
  StatementConst_instance = new StatementConst();
  Companion_instance_44 = new Companion_43();
  Companion_instance_45 = new Companion_44();
  Companion_instance_47 = new Companion_46();
  Companion_instance_48 = new Companion_47();
  Companion_instance_49 = new Companion_48();
  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_69 = new Companion_68();
  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_84 = new Companion_83();
  Companion_instance_85 = new Companion_84();
  Companion_instance_86 = new Companion_85();
  Companion_instance_87 = new Companion_86();
  Companion_instance_88 = new Companion_87();
  Companion_instance_89 = new Companion_88();
  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_95 = new Companion_94();
  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_102 = new Companion_101();
  Companion_instance_103 = new Companion_102();
  Companion_instance_104 = new Companion_103();
  Companion_instance_105 = new Companion_104();
  Companion_instance_106 = new Companion_105();
  Companion_instance_107 = new Companion_106();
  Companion_instance_108 = new Companion_107();
  Companion_instance_109 = new Companion_108();
  Companion_instance_111 = new Companion_110();
  Companion_instance_113 = new Companion_112();
  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_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_129 = new Companion_128();
  Companion_instance_130 = new Companion_129();
  Companion_instance_131 = new Companion_130();
  Companion_instance_132 = new Companion_131();
  Companion_instance_133 = new Companion_132();
  Companion_instance_134 = new Companion_133();
  Companion_instance_135 = new Companion_134();
  Companion_instance_136 = new Companion_135();
  Companion_instance_137 = new Companion_136();
  Companion_instance_138 = new Companion_137();
  XapiEntityObjectTypeFlags_instance = new XapiEntityObjectTypeFlags();
  Companion_instance_139 = new Companion_138();
  //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_MIGRATE_USERNAME_CLIENT;
  _.$_$.i = get_UNSET_DISTANT_FUTURE;
  _.$_$.j = UmAppDataLayer;
  _.$_$.k = UmAppDatabase;
  _.$_$.l = AssignmentPermissionAndActiveUserSubmitterUid;
  _.$_$.m = BlockStatus;
  _.$_$.n = ClazzAndDetailPermissions;
  _.$_$.o = ClazzAndDisplayDetails;
  _.$_$.p = ClazzInviteAndClazz;
  _.$_$.q = ClazzNameAndTerminology;
  _.$_$.r = CommentsAndName;
  _.$_$.s = ContentEntryAndContentJob;
  _.$_$.t = ContentEntryAndDetail;
  _.$_$.u = ContentEntryAndListDetail;
  _.$_$.v = CourseAssignmentMarkAndMarkerName;
  _.$_$.w = CourseBlockAndAssignment;
  _.$_$.x = CourseBlockAndEditEntities;
  _.$_$.y = CourseBlockAndPicture;
  _.$_$.z = DiscussionPostAndPosterNames;
  _.$_$.a1 = EditAndViewPermission;
  _.$_$.b1 = MessageAndOtherPerson;
  _.$_$.c1 = OfflineItemAndState;
  _.$_$.d1 = PermissionPair;
  _.$_$.e1 = PermissionTriple;
  _.$_$.f1 = PersonAndClazzLogAttendanceRecord;
  _.$_$.g1 = PersonAndListDisplayDetails;
  _.$_$.h1 = PersonAndPicture;
  _.$_$.i1 = PersonNames;
  _.$_$.j1 = SiteTermsAndLangName;
  _.$_$.k1 = StudentAndBlockStatuses;
  _.$_$.l1 = SubmissionAndFiles;
  _.$_$.m1 = shallowCopy_12;
  _.$_$.n1 = shallowCopy_17;
  _.$_$.o1 = shallowCopy_0;
  _.$_$.p1 = shallowCopy_19;
  _.$_$.q1 = shallowCopy_1;
  _.$_$.r1 = shallowCopy_9;
  _.$_$.s1 = shallowCopy_6;
  _.$_$.t1 = shallowCopy_10;
  _.$_$.u1 = shallowCopy_7;
  _.$_$.v1 = shallowCopy_16;
  _.$_$.w1 = shallowCopy_11;
  _.$_$.x1 = shallowCopy_15;
  _.$_$.y1 = shallowCopy_5;
  _.$_$.z1 = shallowCopy_4;
  _.$_$.a2 = shallowCopy_2;
  _.$_$.b2 = shallowCopy_18;
  _.$_$.c2 = shallowCopy;
  _.$_$.d2 = shallowCopy_20;
  _.$_$.e2 = shallowCopy_14;
  _.$_$.f2 = shallowCopy_8;
  _.$_$.g2 = shallowCopy_3;
  _.$_$.h2 = shallowCopy_13;
  _.$_$.i2 = ActivityEntity;
  _.$_$.j2 = ActivityExtensionEntity;
  _.$_$.k2 = ActivityInteractionEntity;
  _.$_$.l2 = ActivityLangMapEntry;
  _.$_$.m2 = ActorEntity;
  _.$_$.n2 = GroupMemberActorJoin;
  _.$_$.o2 = StatementContextActivityJoin;
  _.$_$.p2 = StatementEntityJson;
  _.$_$.q2 = StatementEntity;
  _.$_$.r2 = VerbEntity;
  _.$_$.s2 = VerbLangMapEntry;
  _.$_$.t2 = XapiSessionEntity;
  _.$_$.u2 = AssignmentProgressSummary;
  _.$_$.v2 = AssignmentSubmitterAndAllocations;
  _.$_$.w2 = AssignmentSubmitterSummary;
  _.$_$.x2 = AverageCourseAssignmentMark;
  _.$_$.y2 = ClazzAssignmentCourseBlockAndSubmitterUid;
  _.$_$.z2 = ClazzAssignment;
  _.$_$.a3 = ClazzEnrolmentWithLeavingReason;
  _.$_$.b3 = ClazzLogAttendanceRecord;
  _.$_$.c3 = ClazzLog;
  _.$_$.d3 = ClazzWithHolidayCalendarAndAndTerminology;
  _.$_$.e3 = Clazz;
  _.$_$.f3 = Comments;
  _.$_$.g3 = ContentEntryButtonModel;
  _.$_$.h3 = ContentEntryImportJob;
  _.$_$.i3 = ContentEntryParentChildJoin;
  _.$_$.j3 = ContentEntryPicture2;
  _.$_$.k3 = ContentEntryRelatedEntryJoinWithLanguage;
  _.$_$.l3 = ContentEntryStatementScoreProgress;
  _.$_$.m3 = ContentEntryVersion;
  _.$_$.n3 = ContentEntry;
  _.$_$.o3 = CourseAssignmentMark;
  _.$_$.p3 = CourseAssignmentSubmissionFile;
  _.$_$.q3 = CourseAssignmentSubmission;
  _.$_$.r3 = CourseBlockPicture;
  _.$_$.s3 = CourseBlock;
  _.$_$.t3 = CourseGroupMemberAndName;
  _.$_$.u3 = CourseGroupMember;
  _.$_$.v3 = CourseGroupSet;
  _.$_$.w3 = CoursePermission;
  _.$_$.x3 = CoursePicture;
  _.$_$.y3 = CourseTerminology;
  _.$_$.z3 = DiscussionPost;
  _.$_$.a4 = EnrolmentRequest;
  _.$_$.b4 = ErrorReport;
  _.$_$.c4 = HolidayCalendarWithNumEntries;
  _.$_$.d4 = HolidayCalendar;
  _.$_$.e4 = Holiday;
  _.$_$.f4 = Language;
  _.$_$.g4 = LeavingReason;
  _.$_$.h4 = Message;
  _.$_$.i4 = PeerReviewerAllocation;
  _.$_$.j4 = PersonAndDisplayDetail;
  _.$_$.k4 = PersonAuth2;
  _.$_$.l4 = PersonGroup;
  _.$_$.m4 = PersonParentJoinAndMinorPerson;
  _.$_$.n4 = PersonParentJoin;
  _.$_$.o4 = PersonPasskey;
  _.$_$.p4 = PersonPicture;
  _.$_$.q4 = Person;
  _.$_$.r4 = Schedule;
  _.$_$.s4 = ScopedGrant;
  _.$_$.t4 = SiteTermsWithLanguage;
  _.$_$.u4 = SiteTerms;
  _.$_$.v4 = Site;
  _.$_$.w4 = SystemPermission;
  _.$_$.x4 = TransferJobItem;
  _.$_$.y4 = TransferJob;
  _.$_$.z4 = UidAndLabel;
  _.$_$.a5 = UmAccount;
  _.$_$.b5 = UserSession;
  _.$_$.c5 = TransferJobItemStatus_COMPLETE_getInstance;
  _.$_$.d5 = TransferJobItemStatus_FAILED_getInstance;
  _.$_$.e5 = TransferJobItemStatus_IN_PROGRESS_getInstance;
  _.$_$.f5 = deactivateByUids_1;
  _.$_$.g5 = deactivateByUids;
  _.$_$.h5 = deactivateByUids_0;
  _.$_$.i5 = ClazzEnrolment_init_$Create$;
  _.$_$.j5 = PersonGroupMember_init_$Create$;
  _.$_$.k5 = ClazzAssignmentDaoCommon_instance;
  _.$_$.l5 = ClazzDaoCommon_instance;
  _.$_$.m5 = ClazzEnrolmentDaoCommon_instance;
  _.$_$.n5 = ContentEntryDaoCommon_instance;
  _.$_$.o5 = CourseAssignmentMarkDaoCommon_instance;
  _.$_$.p5 = CourseGroupSetDaoConstants_instance;
  _.$_$.q5 = LanguageDaoCommon_instance;
  _.$_$.r5 = PersonDaoCommon_instance;
  _.$_$.s5 = PermissionFlags_getInstance;
  _.$_$.t5 = UmAppDatabaseJsImplementations_getInstance;
  _.$_$.u5 = SessionTimeAndProgressInfoConst_instance;
  _.$_$.v5 = StatementConst_instance;
  _.$_$.w5 = AttemptsPersonListConst_instance;
  _.$_$.x5 = Companion_instance_11;
  _.$_$.y5 = Companion_instance_14;
  _.$_$.z5 = $serializer_getInstance_18;
  _.$_$.a6 = Companion_getInstance_22;
  _.$_$.b6 = Companion_instance_33;
  _.$_$.c6 = Companion_instance_41;
  _.$_$.d6 = Companion_instance_126;
  _.$_$.e6 = Companion_instance_128;
  _.$_$.f6 = Companion_instance_129;
  _.$_$.g6 = Companion_instance_130;
  _.$_$.h6 = Companion_instance_134;
  _.$_$.i6 = Companion_instance_135;
  _.$_$.j6 = XapiEntityObjectTypeFlags_instance;
  _.$_$.k6 = $serializer_getInstance_132;
  _.$_$.l6 = Companion_instance_139;
  _.$_$.m6 = Companion_getInstance_48;
  _.$_$.n6 = Companion_getInstance_52;
  _.$_$.o6 = Companion_instance_51;
  _.$_$.p6 = Companion_instance_53;
  _.$_$.q6 = Companion_instance_54;
  _.$_$.r6 = Companion_instance_55;
  _.$_$.s6 = Companion_instance_56;
  _.$_$.t6 = Companion_instance_57;
  _.$_$.u6 = $serializer_getInstance_54;
  _.$_$.v6 = Companion_instance_58;
  _.$_$.w6 = Companion_instance_63;
  _.$_$.x6 = $serializer_getInstance_61;
  _.$_$.y6 = Companion_instance_65;
  _.$_$.z6 = Companion_instance_66;
  _.$_$.a7 = $serializer_getInstance_64;
  _.$_$.b7 = Companion_instance_68;
  _.$_$.c7 = Companion_instance_72;
  _.$_$.d7 = $serializer_getInstance_69;
  _.$_$.e7 = Companion_getInstance_78;
  _.$_$.f7 = Companion_instance_77;
  _.$_$.g7 = Companion_instance_78;
  _.$_$.h7 = Companion_instance_79;
  _.$_$.i7 = Companion_instance_80;
  _.$_$.j7 = Companion_instance_81;
  _.$_$.k7 = Companion_instance_82;
  _.$_$.l7 = Companion_getInstance_85;
  _.$_$.m7 = Companion_instance_84;
  _.$_$.n7 = $serializer_getInstance_81;
  _.$_$.o7 = Companion_instance_85;
  _.$_$.p7 = Companion_instance_86;
  _.$_$.q7 = Companion_instance_87;
  _.$_$.r7 = Companion_instance_89;
  _.$_$.s7 = Companion_getInstance_98;
  _.$_$.t7 = Companion_instance_99;
  _.$_$.u7 = $serializer_getInstance_96;
  _.$_$.v7 = Companion_instance_100;
  _.$_$.w7 = Companion_instance_103;
  _.$_$.x7 = Companion_instance_104;
  _.$_$.y7 = $serializer_getInstance_102;
  _.$_$.z7 = Companion_instance_106;
  _.$_$.a8 = Companion_instance_107;
  _.$_$.b8 = $serializer_getInstance_105;
  _.$_$.c8 = Companion_instance_109;
  _.$_$.d8 = Companion_instance_111;
  _.$_$.e8 = $serializer_getInstance_108;
  _.$_$.f8 = Companion_instance_113;
  _.$_$.g8 = Companion_instance_115;
  _.$_$.h8 = Companion_instance_116;
  _.$_$.i8 = Companion_getInstance_121;
  _.$_$.j8 = Companion_instance_120;
  _.$_$.k8 = $serializer_getInstance_120;
  _.$_$.l8 = Companion_instance_125;
  //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
