'use strict';
var $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee = require("./internal-dce91b54b95045401f0e6cc062cdc27ff895d6ee.js");
function $p_Lio_github_edadma_petradb_client_JSSession__toJS__Lio_github_edadma_petradb_Value__sjs_js_Any($thiz, v) {
  if ((v instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_NumberValue)) {
    var x36 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_NumberValue(v);
    var this$2 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x36);
    var x38 = this$2.Lio_github_edadma_petradb_NumberValue__f_typ;
    var this$3 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x36);
    var x39 = this$3.Lio_github_edadma_petradb_NumberValue__f_value;
    var x = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_dal_IntType$();
    if ((x === x38)) {
      var value = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$dp_intValue__I($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x39));
      return value;
    }
    var x$3 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_dal_DoubleType$();
    if ((x$3 === x38)) {
      var value$1 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$dp_doubleValue__D($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x39));
      return value$1;
    }
    var x$5 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_dal_BigDecType$();
    if ((x$5 === x38)) {
      var value$2 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$dp_doubleValue__D($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x39));
      return value$2;
    }
  }
  if ((v instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_TextValue)) {
    var x25 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_TextValue(v);
    var this$8 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x25);
    var x27 = this$8.Lio_github_edadma_petradb_TextValue__f_s;
    return x27;
  }
  if ((v instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_BooleanValue)) {
    var x22 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_BooleanValue(v);
    var this$11 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x22);
    var x24 = this$11.Lio_github_edadma_petradb_BooleanValue__f_b;
    return x24;
  }
  if ((v instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_UUIDValue)) {
    var x19 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_UUIDValue(v);
    $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_petradb_UUIDValue$();
    var this$14 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x19);
    var x21 = this$14.Lio_github_edadma_petradb_UUIDValue__f_id;
    return x21;
  }
  if ((v instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_EnumValue)) {
    var x15 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_EnumValue(v);
    $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x15);
    $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x15);
    var s = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(v).string__T();
    return s;
  }
  if ((v instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_NullValue)) {
    $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_NullValue(v);
    return null;
  }
  if ((v instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_ArrayValue)) {
    var x11 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_ArrayValue(v);
    var this$21 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x11);
    var x13 = this$21.Lio_github_edadma_petradb_ArrayValue__f_data;
    var col = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_sc_IterableOnce($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x13).map__F1__O(new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_sr_AbstractFunction1_$$Lambda$70e1780b84463d18653aacefee3ab989ac625f28(((v$2) => {
      var v$1 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_Value(v$2);
      return $p_Lio_github_edadma_petradb_client_JSSession__toJS__Lio_github_edadma_petradb_Value__sjs_js_Any($thiz, v$1);
    }))));
    return $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_sjs_js_JSConverters$JSRichIterableOnce$().toJSArray$extension__sc_IterableOnce__sjs_js_Array(col);
  }
  if ((v instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_ObjectValue)) {
    var x8 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_ObjectValue(v);
    var this$25 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x8);
    var x10 = this$25.Lio_github_edadma_petradb_ObjectValue__f_properties;
    var map = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_sc_IterableOnceOps($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x10).map__F1__O(new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_sr_AbstractFunction1_$$Lambda$70e1780b84463d18653aacefee3ab989ac625f28(((x$1$2) => {
      var x$1 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_T2(x$1$2);
      if ((x$1 !== null)) {
        var k = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_T($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x$1)._1__O());
        var v$3 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_Value($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x$1)._2__O());
        var y = $p_Lio_github_edadma_petradb_client_JSSession__toJS__Lio_github_edadma_petradb_Value__sjs_js_Any($thiz, v$3);
        return $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$ct_T2__O__O__(new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_T2(), k, y);
      }
      throw new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_s_MatchError(x$1);
    }))))).toMap__s_$less$colon$less__sci_Map($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_$less$colon$less$().s_$less$colon$less$__f_singleton);
    var result = ({});
    $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(map).foreach__F1__V(new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_sr_AbstractFunction1_$$Lambda$70e1780b84463d18653aacefee3ab989ac625f28(((x0$1$2$2) => {
      var x0$1$2 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_T2(x0$1$2$2);
      if ((x0$1$2 !== null)) {
        var key = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_T($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x0$1$2)._1__O());
        var value$3 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x0$1$2)._2__O();
        result[key] = value$3;
      } else {
        throw new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_s_MatchError(x0$1$2);
      }
    })));
    return result;
  }
  if ((v instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_TimestampValue)) {
    var x5 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_TimestampValue(v);
    var this$35 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x5);
    var x7 = this$35.Lio_github_edadma_petradb_TimestampValue__f_t;
    return new Date($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x7).toString__T());
  }
  throw new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_s_MatchError(v);
}
function $p_Lio_github_edadma_petradb_client_JSSession__typeString__Lio_github_edadma_petradb_Type__T($thiz, typ) {
  var x = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_petradb_SerialType$();
  if ((x === typ)) {
    return "serial";
  } else {
    var x$3 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_petradb_BigSerialType$();
    if ((x$3 === typ)) {
      return "bigserial";
    } else {
      var x$5 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_petradb_IntegerType$();
      if ((x$5 === typ)) {
        return "int";
      } else {
        var x$7 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_petradb_BigintType$();
        if ((x$7 === typ)) {
          return "bigint";
        } else {
          var x$9 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_petradb_DoubleType$();
          if ((x$9 === typ)) {
            return "double";
          } else if ((typ instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_NumericType)) {
            var x42 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_NumericType(typ);
            $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x42);
            $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x42);
            return "numeric";
          } else {
            var x$11 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_petradb_TextType$();
            if ((x$11 === typ)) {
              return "text";
            } else {
              var x$13 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_petradb_BooleanType$();
              if ((x$13 === typ)) {
                return "boolean";
              } else {
                var x$15 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_petradb_UUIDType$();
                if ((x$15 === typ)) {
                  return "uuid";
                } else {
                  var x$17 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_petradb_TimestampType$();
                  if ((x$17 === typ)) {
                    return "timestamp";
                  } else {
                    var x$19 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_petradb_JSONType$();
                    if ((x$19 === typ)) {
                      return "json";
                    } else {
                      var x$21 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_petradb_ArrayType$();
                      if ((x$21 === typ)) {
                        return "array";
                      } else if ((typ instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_EnumType)) {
                        $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_EnumType(typ);
                        return "enum";
                      } else {
                        var x$23 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_petradb_NumberType$();
                        if ((x$23 === typ)) {
                          return "number";
                        } else {
                          return "unknown";
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
function $p_Lio_github_edadma_petradb_client_JSSession__buildQueryResult__Lio_github_edadma_petradb_TableValue__T__sjs_js_Any($thiz, table, rowMode) {
  var columns = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(table).Lio_github_edadma_petradb_TableValue__f_meta).Lio_github_edadma_petradb_Metadata__f_columns;
  var col$1 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_sc_IterableOnce($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(columns).map__F1__O(new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_sr_AbstractFunction1_$$Lambda$70e1780b84463d18653aacefee3ab989ac625f28(((col$2) => {
    var col = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_ColumnMetadata(col$2);
    var s = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(col).Lio_github_edadma_petradb_ColumnMetadata__f_name;
    var s$1 = $p_Lio_github_edadma_petradb_client_JSSession__typeString__Lio_github_edadma_petradb_Type__T($thiz, $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(col).Lio_github_edadma_petradb_ColumnMetadata__f_typ);
    return ({
      "name": s,
      "dataType": s$1
    });
  }))));
  var fields = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_sjs_js_JSConverters$JSRichIterableOnce$().toJSArray$extension__sc_IterableOnce__sjs_js_Array(col$1);
  if ((rowMode === "array")) {
    var col$4 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_sc_IterableOnce($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(table).Lio_github_edadma_petradb_TableValue__f_data).map__F1__O(new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_sr_AbstractFunction1_$$Lambda$70e1780b84463d18653aacefee3ab989ac625f28(((row$2) => {
      var row = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_Row(row$2);
      var col$3 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_sc_IterableOnce($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(row).Lio_github_edadma_petradb_Row__f_data).map__F1__O(new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_sr_AbstractFunction1_$$Lambda$70e1780b84463d18653aacefee3ab989ac625f28(((v$2) => {
        var v = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_Value(v$2);
        return $p_Lio_github_edadma_petradb_client_JSSession__toJS__Lio_github_edadma_petradb_Value__sjs_js_Any($thiz, v);
      }))));
      return $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_sjs_js_JSConverters$JSRichIterableOnce$().toJSArray$extension__sc_IterableOnce__sjs_js_Array(col$3);
    }))));
    var rows = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_sjs_js_JSConverters$JSRichIterableOnce$().toJSArray$extension__sc_IterableOnce__sjs_js_Array(col$4);
  } else {
    var col$6 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_sc_IterableOnce($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(table).Lio_github_edadma_petradb_TableValue__f_data).map__F1__O(new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_sr_AbstractFunction1_$$Lambda$70e1780b84463d18653aacefee3ab989ac625f28(((row$2$1) => {
      var row$1 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_Row(row$2$1);
      var obj = ({});
      $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_sc_IterableOnceOps($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(columns).zipWithIndex__O())).foreach__F1__V(new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_sr_AbstractFunction1_$$Lambda$70e1780b84463d18653aacefee3ab989ac625f28(((x$1$3) => {
        var x$1 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_T2(x$1$3);
        matchResult4: {
          if ((x$1 !== null)) {
            var col$5 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_ColumnMetadata($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x$1)._1__O());
            var i = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$uI($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x$1)._2__O());
            obj[$j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(col$5).Lio_github_edadma_petradb_ColumnMetadata__f_name] = $p_Lio_github_edadma_petradb_client_JSSession__toJS__Lio_github_edadma_petradb_Value__sjs_js_Any($thiz, $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_Value($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(row$1).Lio_github_edadma_petradb_Row__f_data).apply__I__O(i)));
            break matchResult4;
          }
          throw new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_s_MatchError(x$1);
        }
      })));
      return obj;
    }))));
    var rows = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_sjs_js_JSConverters$JSRichIterableOnce$().toJSArray$extension__sc_IterableOnce__sjs_js_Array(col$6);
  }
  return ({
    "command": "select",
    "rows": rows,
    "fields": fields
  });
}
function $p_Lio_github_edadma_petradb_client_JSSession__resultToJS__Lio_github_edadma_petradb_Result__T__sjs_js_Any($thiz, result, rowMode) {
  if ((result instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_CreateTableResult)) {
    var x101 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_CreateTableResult(result);
    var this$2 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x101);
    var x103 = this$2.Lio_github_edadma_petradb_CreateTableResult__f_table;
    return ({
      "command": "create table",
      "table": x103
    });
  }
  if ((result instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_InsertResult)) {
    var x97 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_InsertResult(result);
    var this$12 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x97);
    var x99 = this$12.Lio_github_edadma_petradb_InsertResult__f_obj;
    var this$13 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x97);
    var x100 = this$13.Lio_github_edadma_petradb_InsertResult__f_table;
    var this$14 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x99);
    var this$16 = new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_sc_MapView$Id(this$14);
    var f = new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_sr_AbstractFunction1_$$Lambda$70e1780b84463d18653aacefee3ab989ac625f28(((v$2) => {
      var v = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_Value(v$2);
      return $p_Lio_github_edadma_petradb_client_JSSession__toJS__Lio_github_edadma_petradb_Value__sjs_js_Any($thiz, v);
    }));
    var this$17 = new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_sc_MapView$MapValues(this$16, f);
    var map = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_sci_Map$().from__sc_IterableOnce__sci_Map(this$17);
    var result$1 = ({});
    $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(map).foreach__F1__V(new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_sr_AbstractFunction1_$$Lambda$70e1780b84463d18653aacefee3ab989ac625f28(((x0$1$2$2) => {
      var x0$1$2 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_T2(x0$1$2$2);
      if ((x0$1$2 !== null)) {
        var key = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_T($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x0$1$2)._1__O());
        var value = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x0$1$2)._2__O();
        result$1[key] = value;
      } else {
        throw new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_s_MatchError(x0$1$2);
      }
    })));
    var queryResult = $p_Lio_github_edadma_petradb_client_JSSession__buildQueryResult__Lio_github_edadma_petradb_TableValue__T__sjs_js_Any($thiz, x100, rowMode);
    var rows = queryResult.rows;
    var fields = queryResult.fields;
    return ({
      "command": "insert",
      "result": result$1,
      "rows": rows,
      "fields": fields
    });
  }
  if ((result instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_QueryResult)) {
    var x94 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_QueryResult(result);
    var this$32 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x94);
    var x96 = this$32.Lio_github_edadma_petradb_QueryResult__f_table;
    return $p_Lio_github_edadma_petradb_client_JSSession__buildQueryResult__Lio_github_edadma_petradb_TableValue__T__sjs_js_Any($thiz, x96, rowMode);
  }
  if ((result instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_UpdateResult)) {
    var x91 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_UpdateResult(result);
    var this$34 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x91);
    var x93 = this$34.Lio_github_edadma_petradb_UpdateResult__f_rows;
    return ({
      "command": "update",
      "rowCount": x93
    });
  }
  if ((result instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_DeleteResult)) {
    var x88 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_DeleteResult(result);
    var this$44 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x88);
    var x90 = this$44.Lio_github_edadma_petradb_DeleteResult__f_rows;
    return ({
      "command": "delete",
      "rowCount": x90
    });
  }
  if ((result instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_DropTableResult)) {
    var x85 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_DropTableResult(result);
    var this$54 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x85);
    var x87 = this$54.Lio_github_edadma_petradb_DropTableResult__f_table;
    return ({
      "command": "drop table",
      "table": x87
    });
  }
  if ((result instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_CreateTypeResult)) {
    var x82 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_CreateTypeResult(result);
    var this$64 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x82);
    var x84 = this$64.Lio_github_edadma_petradb_CreateTypeResult__f_typ;
    return ({
      "command": "create type",
      "type": x84
    });
  }
  if ((result instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_DropTypeResult)) {
    var x79 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_DropTypeResult(result);
    var this$74 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x79);
    var x81 = this$74.Lio_github_edadma_petradb_DropTypeResult__f_name;
    return ({
      "command": "drop type",
      "type": x81
    });
  }
  if ((result instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_CreateIndexResult)) {
    var x76 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_CreateIndexResult(result);
    var this$84 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x76);
    var x78 = this$84.Lio_github_edadma_petradb_CreateIndexResult__f_name;
    return ({
      "command": "create index",
      "index": x78
    });
  }
  if ((result instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_DropIndexResult)) {
    var x73 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_DropIndexResult(result);
    var this$94 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x73);
    var x75 = this$94.Lio_github_edadma_petradb_DropIndexResult__f_name;
    return ({
      "command": "drop index",
      "index": x75
    });
  }
  if ((result instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_TruncateResult)) {
    var x70 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_TruncateResult(result);
    var this$104 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x70);
    var x72 = this$104.Lio_github_edadma_petradb_TruncateResult__f_table;
    return ({
      "command": "truncate table",
      "table": x72
    });
  }
  if ((result instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_AlterTableResult)) {
    $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_AlterTableResult(result);
    return ({
      "command": "alter table"
    });
  }
  if ((result instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_ExplainResult)) {
    var x66 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_ExplainResult(result);
    var this$120 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x66);
    var x68 = this$120.Lio_github_edadma_petradb_ExplainResult__f_plan;
    return ({
      "command": "explain",
      "plan": x68
    });
  }
  if ((result instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_CreateViewResult)) {
    var x63 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_CreateViewResult(result);
    var this$130 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x63);
    var x65 = this$130.Lio_github_edadma_petradb_CreateViewResult__f_name;
    return ({
      "command": "create view",
      "view": x65
    });
  }
  if ((result instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_DropViewResult)) {
    var x60 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_DropViewResult(result);
    var this$140 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x60);
    var x62 = this$140.Lio_github_edadma_petradb_DropViewResult__f_name;
    return ({
      "command": "drop view",
      "view": x62
    });
  }
  if ((result instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_CopyResult)) {
    var x57 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_CopyResult(result);
    var this$150 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x57);
    var x59 = this$150.Lio_github_edadma_petradb_CopyResult__f_rows;
    return ({
      "command": "copy",
      "rowCount": x59
    });
  }
  if ((result instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_PrepareResult)) {
    var x54 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_PrepareResult(result);
    var this$160 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x54);
    var x56 = this$160.Lio_github_edadma_petradb_PrepareResult__f_name;
    return ({
      "command": "prepare",
      "name": x56
    });
  }
  if ((result instanceof $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_DeallocateResult)) {
    var x51 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_DeallocateResult(result);
    var this$170 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(x51);
    var x53 = this$170.Lio_github_edadma_petradb_DeallocateResult__f_name;
    return ({
      "command": "deallocate",
      "name": x53
    });
  }
  var x = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_petradb_BeginResult$();
  if ((x === result)) {
    return ({
      "command": "begin"
    });
  }
  var x$3 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_petradb_CommitResult$();
  if ((x$3 === result)) {
    return ({
      "command": "commit"
    });
  }
  var x$5 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_petradb_RollbackResult$();
  if ((x$5 === result)) {
    return ({
      "command": "rollback"
    });
  }
  throw new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_s_MatchError(result);
}
/** @constructor */
function $c_Lio_github_edadma_petradb_client_JSSession(options) {
  this.Lio_github_edadma_petradb_client_JSSession__f_session = null;
  this.Lio_github_edadma_petradb_client_JSSession__f_defaultRowMode = null;
  var opts = ((options === (void 0)) ? $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_None$() : new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_s_Some(options));
  if (opts.isEmpty__Z()) {
    var this$11 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_None$();
  } else {
    var x0 = opts.get__O();
    var x = x0.host;
    var this$11 = ((x === (void 0)) ? $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_None$() : new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_s_Some(x));
  }
  var host = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_T((this$11.isEmpty__Z() ? "localhost" : this$11.get__O()));
  if (opts.isEmpty__Z()) {
    var this$17 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_None$();
  } else {
    var x0$1 = opts.get__O();
    var x$1 = x0$1.port;
    var this$17 = ((x$1 === (void 0)) ? $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_None$() : new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_s_Some(x$1));
  }
  var port = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$uI((this$17.isEmpty__Z() ? $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_Lio_github_edadma_petradb_constants$package$().Lio_github_edadma_petradb_constants$package$__f_DefaultPort : this$17.get__O()));
  if (opts.isEmpty__Z()) {
    var username = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_None$();
  } else {
    var x0$2 = opts.get__O();
    var x$2 = x0$2.username;
    var username = ((x$2 === (void 0)) ? $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_None$() : new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_s_Some(x$2));
  }
  if (opts.isEmpty__Z()) {
    var password = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_None$();
  } else {
    var x0$3 = opts.get__O();
    var x$3 = x0$3.password;
    var password = ((x$3 === (void 0)) ? $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_None$() : new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_s_Some(x$3));
  }
  this.Lio_github_edadma_petradb_client_JSSession__f_session = new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_client_Session(new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_Lio_github_edadma_petradb_client_SessionOptions(host, port, username, password));
  if (opts.isEmpty__Z()) {
    var this$34 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_None$();
  } else {
    var x0$4 = opts.get__O();
    var x$4 = x0$4.rowMode;
    var this$34 = ((x$4 === (void 0)) ? $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_None$() : new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_s_Some(x$4));
  }
  this.Lio_github_edadma_petradb_client_JSSession__f_defaultRowMode = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_T((this$34.isEmpty__Z() ? "object" : this$34.get__O()));
}
$c_Lio_github_edadma_petradb_client_JSSession.prototype = new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$h_O();
$c_Lio_github_edadma_petradb_client_JSSession.prototype.constructor = $c_Lio_github_edadma_petradb_client_JSSession;
/** @constructor */
function $h_Lio_github_edadma_petradb_client_JSSession() {
}
$h_Lio_github_edadma_petradb_client_JSSession.prototype = $c_Lio_github_edadma_petradb_client_JSSession.prototype;
$c_Lio_github_edadma_petradb_client_JSSession.prototype.connect__sjs_js_Promise = (function() {
  var f = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(this.Lio_github_edadma_petradb_client_JSSession__f_session).connect__s_concurrent_ExecutionContext__s_concurrent_Future($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor());
  return $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_sjs_js_JSConverters$JSRichFuture$().toJSPromise$extension__s_concurrent_Future__s_concurrent_ExecutionContext__sjs_js_Promise(f, $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor());
});
$c_Lio_github_edadma_petradb_client_JSSession.prototype.execute__T__O__sjs_js_Promise = (function(sql, options) {
  var this$6 = ((options === (void 0)) ? $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_None$() : new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_s_Some(options));
  if (this$6.isEmpty__Z()) {
    var this$12 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_None$();
  } else {
    var x0 = this$6.get__O();
    var x = x0.rowMode;
    var this$12 = ((x === (void 0)) ? $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_None$() : new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_s_Some(x));
  }
  var rowMode = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_T((this$12.isEmpty__Z() ? this.Lio_github_edadma_petradb_client_JSSession__f_defaultRowMode : this$12.get__O()));
  var f = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(this.Lio_github_edadma_petradb_client_JSSession__f_session).execute__T__s_concurrent_ExecutionContext__s_concurrent_Future(sql, $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor())).map__F1__s_concurrent_ExecutionContext__s_concurrent_Future(new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_sr_AbstractFunction1_$$Lambda$70e1780b84463d18653aacefee3ab989ac625f28(((results$2) => {
    var results = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_sci_Seq(results$2);
    var col = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_sc_IterableOnce($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(results).map__F1__O(new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$c_sr_AbstractFunction1_$$Lambda$70e1780b84463d18653aacefee3ab989ac625f28(((r$2) => {
      var r = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_Lio_github_edadma_petradb_Result(r$2);
      return $p_Lio_github_edadma_petradb_client_JSSession__resultToJS__Lio_github_edadma_petradb_Result__T__sjs_js_Any(this, r, rowMode);
    }))));
    return $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_sjs_js_JSConverters$JSRichIterableOnce$().toJSArray$extension__sc_IterableOnce__sjs_js_Array(col);
  })), $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor());
  return $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_sjs_js_JSConverters$JSRichFuture$().toJSPromise$extension__s_concurrent_Future__s_concurrent_ExecutionContext__sjs_js_Promise(f, $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor());
});
$c_Lio_github_edadma_petradb_client_JSSession.prototype.close__sjs_js_Promise = (function() {
  var f = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(this.Lio_github_edadma_petradb_client_JSSession__f_session).close__s_concurrent_ExecutionContext__s_concurrent_Future($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor());
  return $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_sjs_js_JSConverters$JSRichFuture$().toJSPromise$extension__s_concurrent_Future__s_concurrent_ExecutionContext__sjs_js_Promise(f, $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor());
});
$c_Lio_github_edadma_petradb_client_JSSession.prototype.close = (function() {
  return this.close__sjs_js_Promise();
});
$c_Lio_github_edadma_petradb_client_JSSession.prototype.connect = (function() {
  return this.connect__sjs_js_Promise();
});
$c_Lio_github_edadma_petradb_client_JSSession.prototype.execute = (function(arg, ...rest) {
  var prep0 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_T(arg);
  var prep1 = ((rest[0] === (void 0)) ? (void 0) : rest[0]);
  return this.execute__T__O__sjs_js_Promise(prep0, prep1);
});
var $d_Lio_github_edadma_petradb_client_JSSession = new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$TypeData().initClass($c_Lio_github_edadma_petradb_client_JSSession, "io.github.edadma.petradb.client.JSSession", ({
  Lio_github_edadma_petradb_client_JSSession: 1
}));
exports.Session = (function(...rest) {
  var prep0 = ((rest[0] === (void 0)) ? (void 0) : rest[0]);
  return new $c_Lio_github_edadma_petradb_client_JSSession(prep0);
});
