@loro-dev/flock 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1006,8 +1006,8 @@ const zxch3n$flock$sorted_map$$range$46$tuple$47$2972 = { _0: true, _1: true };
1006
1006
  const zxch3n$flock$flock$$from_string$46$42$bind$124$598 = ",";
1007
1007
  const zxch3n$flock$flock$$zero$46$record$47$3050 = { physical_time: 0, logical_counter: 0 };
1008
1008
  const zxch3n$flock$flock$$new$46$42$bind$47$3233 = { physical_time: 0, logical_counter: 0 };
1009
- const zxch3n$flock$flock$$import_json$46$inner$46$constr$47$3484 = new Source$Import("import_json");
1010
- const zxch3n$flock$flock$$newFlock$46$42$bind$47$3593 = { physical_time: 0, logical_counter: 0 };
1009
+ const zxch3n$flock$flock$$import_json$46$inner$46$constr$47$3485 = new Source$Import("import_json");
1010
+ const zxch3n$flock$flock$$newFlock$46$42$bind$47$3594 = { physical_time: 0, logical_counter: 0 };
1011
1011
  (() => {
1012
1012
  Yoorkin$jmop$$ffi_init(Yoorkin$jmop$$convert_thrown_error);
1013
1013
  })();
@@ -1087,7 +1087,7 @@ function moonbitlang$core$bytes$$BytesView$at(self, index) {
1087
1087
  $bound_check(_tmp, _tmp$2);
1088
1088
  return _tmp[_tmp$2];
1089
1089
  } else {
1090
- return moonbitlang$core$abort$$abort$13$(`index out of bounds: the len is from 0 to ${moonbitlang$core$builtin$$Show$to_string$19$(self.end - self.start | 0)} but the index is ${moonbitlang$core$builtin$$Show$to_string$19$(index)}`);
1090
+ return moonbitlang$core$abort$$abort$14$(`index out of bounds: the len is from 0 to ${moonbitlang$core$builtin$$Show$to_string$19$(self.end - self.start | 0)} but the index is ${moonbitlang$core$builtin$$Show$to_string$19$(index)}`);
1091
1091
  }
1092
1092
  }
1093
1093
  function moonbitlang$core$bytes$$Bytes$sub$46$inner(self, start, end) {
@@ -1156,10 +1156,10 @@ function moonbitlang$core$bytes$$BytesView$iterator(self) {
1156
1156
  return _p;
1157
1157
  }
1158
1158
  function moonbitlang$core$bytes$$Bytes$from_array(arr) {
1159
- return moonbitlang$core$bytes$$Bytes$makei$20$(arr.end - arr.start | 0, (i) => moonbitlang$core$array$$ArrayView$at$13$(arr, i));
1159
+ return moonbitlang$core$bytes$$Bytes$makei$20$(arr.end - arr.start | 0, (i) => moonbitlang$core$array$$ArrayView$at$14$(arr, i));
1160
1160
  }
1161
1161
  function moonbitlang$core$bytes$$Bytes$from_iter(iter) {
1162
- const _bind = moonbitlang$core$builtin$$Iter$collect$13$(iter);
1162
+ const _bind = moonbitlang$core$builtin$$Iter$collect$14$(iter);
1163
1163
  return moonbitlang$core$bytes$$Bytes$from_array({ buf: _bind, start: 0, end: _bind.length });
1164
1164
  }
1165
1165
  function moonbitlang$core$builtin$$Hash$hash_combine$2$(self, hasher) {
@@ -1478,7 +1478,7 @@ function moonbitlang$core$strconv$$range_err$22$() {
1478
1478
  function moonbitlang$core$strconv$$range_err$3$() {
1479
1479
  return new Result$Err$2$(new Error$moonbitlang$47$core$47$strconv$46$StrConvError$46$StrConvError(moonbitlang$core$strconv$$range_err_str));
1480
1480
  }
1481
- function moonbitlang$core$strconv$$syntax_err$12$() {
1481
+ function moonbitlang$core$strconv$$syntax_err$13$() {
1482
1482
  return new Result$Err$3$(new Error$moonbitlang$47$core$47$strconv$46$StrConvError$46$StrConvError(moonbitlang$core$strconv$$syntax_err_str));
1483
1483
  }
1484
1484
  function moonbitlang$core$strconv$$syntax_err$22$() {
@@ -1698,7 +1698,7 @@ function moonbitlang$core$strconv$$parse_int64$46$inner(str, base) {
1698
1698
  if (c$2 >= 65 && c$2 <= 90) {
1699
1699
  d = c$2 + -55 | 0;
1700
1700
  } else {
1701
- const _bind$4 = moonbitlang$core$strconv$$syntax_err$12$();
1701
+ const _bind$4 = moonbitlang$core$strconv$$syntax_err$13$();
1702
1702
  if (_bind$4.$tag === 1) {
1703
1703
  const _ok = _bind$4;
1704
1704
  d = _ok._0;
@@ -4204,7 +4204,7 @@ function moonbitlang$core$json$$offset_to_position(input, offset) {
4204
4204
  }
4205
4205
  return { line: line, column: column };
4206
4206
  }
4207
- function moonbitlang$core$json$$ParseContext$invalid_char$46$inner$14$(ctx, shift) {
4207
+ function moonbitlang$core$json$$ParseContext$invalid_char$46$inner$12$(ctx, shift) {
4208
4208
  const offset = ctx.offset + shift | 0;
4209
4209
  const _p = moonbitlang$core$string$$StringView$get_char(ctx.input, offset);
4210
4210
  const _p$2 = 65533;
@@ -4228,7 +4228,7 @@ function moonbitlang$core$json$$ParseContext$invalid_char$46$inner$30$(ctx, shif
4228
4228
  const _p$2 = 65533;
4229
4229
  return new Result$Err$12$(new Error$moonbitlang$47$core$47$json$46$ParseError$46$InvalidChar(moonbitlang$core$json$$offset_to_position(ctx.input, offset), _p === -1 ? _p$2 : _p));
4230
4230
  }
4231
- function moonbitlang$core$builtin$$Show$output$14$(self, logger) {
4231
+ function moonbitlang$core$builtin$$Show$output$12$(self, logger) {
4232
4232
  switch (self.$tag) {
4233
4233
  case 0: {
4234
4234
  logger.method_0(logger.self, "Null");
@@ -5281,7 +5281,7 @@ function moonbitlang$core$json$$ParseContext$parse_value2(ctx, tok) {
5281
5281
  }
5282
5282
  }
5283
5283
  }
5284
- return new Result$Ok$9$(moonbitlang$core$abort$$abort$14$("unreachable"));
5284
+ return new Result$Ok$9$(moonbitlang$core$abort$$abort$12$("unreachable"));
5285
5285
  }
5286
5286
  function moonbitlang$core$json$$ParseContext$parse_array(ctx) {
5287
5287
  if (ctx.remaining_available_depth <= 0) {
@@ -5314,7 +5314,7 @@ function moonbitlang$core$json$$ParseContext$parse_array(ctx) {
5314
5314
  } else {
5315
5315
  return _bind$2;
5316
5316
  }
5317
- moonbitlang$core$array$$Array$push$14$(vec, _tmp$4);
5317
+ moonbitlang$core$array$$Array$push$12$(vec, _tmp$4);
5318
5318
  const _bind$3 = moonbitlang$core$json$$ParseContext$lex_after_array_value(ctx);
5319
5319
  let tok2;
5320
5320
  if (_bind$3.$tag === 1) {
@@ -5340,7 +5340,7 @@ function moonbitlang$core$json$$ParseContext$parse_array(ctx) {
5340
5340
  break _L;
5341
5341
  }
5342
5342
  default: {
5343
- _tmp = moonbitlang$core$abort$$abort$14$("unreachable");
5343
+ _tmp = moonbitlang$core$abort$$abort$12$("unreachable");
5344
5344
  break _L;
5345
5345
  }
5346
5346
  }
@@ -5416,13 +5416,13 @@ function moonbitlang$core$json$$ParseContext$parse_object(ctx) {
5416
5416
  break _L;
5417
5417
  }
5418
5418
  default: {
5419
- _tmp = moonbitlang$core$abort$$abort$14$("unreachable");
5419
+ _tmp = moonbitlang$core$abort$$abort$12$("unreachable");
5420
5420
  break _L;
5421
5421
  }
5422
5422
  }
5423
5423
  }
5424
5424
  default: {
5425
- _tmp = moonbitlang$core$abort$$abort$14$("unreachable");
5425
+ _tmp = moonbitlang$core$abort$$abort$12$("unreachable");
5426
5426
  break _L;
5427
5427
  }
5428
5428
  }
@@ -5440,7 +5440,7 @@ function moonbitlang$core$json$$parse$46$inner(input, max_nesting_depth) {
5440
5440
  return _bind;
5441
5441
  }
5442
5442
  moonbitlang$core$json$$ParseContext$lex_skip_whitespace(ctx);
5443
- return ctx.offset >= ctx.end_offset ? new Result$Ok$9$(val) : moonbitlang$core$json$$ParseContext$invalid_char$46$inner$14$(ctx, 0);
5443
+ return ctx.offset >= ctx.end_offset ? new Result$Ok$9$(val) : moonbitlang$core$json$$ParseContext$invalid_char$46$inner$12$(ctx, 0);
5444
5444
  }
5445
5445
  function moonbitlang$core$json$$escape(str, escape_slash) {
5446
5446
  const buf = moonbitlang$core$builtin$$StringBuilder$new$46$inner(str.length);
@@ -5560,7 +5560,7 @@ function moonbitlang$core$json$$Json$stringify$46$inner(self, escape_slash, inde
5560
5560
  const _arr = _Array._0;
5561
5561
  const _i = _Array._1;
5562
5562
  if (_i < _arr.length) {
5563
- const element = moonbitlang$core$array$$Array$at$14$(_arr, _i);
5563
+ const element = moonbitlang$core$array$$Array$at$12$(_arr, _i);
5564
5564
  _Array._1 = _i + 1 | 0;
5565
5565
  if (_i > 0) {
5566
5566
  moonbitlang$core$builtin$$Logger$write_char$35$(buf, 44);
@@ -5768,10 +5768,10 @@ function moonbitlang$core$array$$ArrayView$join$7$(self, separator) {
5768
5768
  return buf.val;
5769
5769
  }
5770
5770
  }
5771
- function moonbitlang$core$array$$FixedArray$copy$13$(self) {
5771
+ function moonbitlang$core$array$$FixedArray$copy$14$(self) {
5772
5772
  return moonbitlang$core$array$$JSArray$copy(self);
5773
5773
  }
5774
- function moonbitlang$core$array$$Array$copy$14$(self) {
5774
+ function moonbitlang$core$array$$Array$copy$12$(self) {
5775
5775
  return moonbitlang$core$array$$JSArray$copy(self);
5776
5776
  }
5777
5777
  function moonbitlang$core$array$$Array$push_iter$41$(self, iter) {
@@ -5850,7 +5850,7 @@ function moonbitlang$core$double$internal$ryu$$pow5Factor(value) {
5850
5850
  break;
5851
5851
  }
5852
5852
  }
5853
- return moonbitlang$core$abort$$abort$12$(`IllegalArgumentException ${moonbitlang$core$builtin$$Show$to_string$28$(value$2)}`);
5853
+ return moonbitlang$core$abort$$abort$13$(`IllegalArgumentException ${moonbitlang$core$builtin$$Show$to_string$28$(value$2)}`);
5854
5854
  }
5855
5855
  function moonbitlang$core$double$internal$ryu$$multipleOfPowerOf5(value, p) {
5856
5856
  return moonbitlang$core$double$internal$ryu$$pow5Factor(value) >= p;
@@ -6441,7 +6441,7 @@ function moonbitlang$core$buffer$$Buffer$grow_if_necessary(self, required) {
6441
6441
  }
6442
6442
  if (enough_space !== self.data.length) {
6443
6443
  const new_data = $makebytes(enough_space, 0);
6444
- moonbitlang$core$array$$FixedArray$unsafe_blit$13$(new_data, 0, self.data, 0, self.len);
6444
+ moonbitlang$core$array$$FixedArray$unsafe_blit$14$(new_data, 0, self.data, 0, self.len);
6445
6445
  self.data = new_data;
6446
6446
  return;
6447
6447
  } else {
@@ -6457,7 +6457,7 @@ function moonbitlang$core$buffer$$Buffer$write_byte(self, value) {
6457
6457
  self.len = self.len + 1 | 0;
6458
6458
  }
6459
6459
  function moonbitlang$core$buffer$$Buffer$contents(self) {
6460
- return moonbitlang$core$bytes$$Bytes$from_array(moonbitlang$core$array$$FixedArray$sub$46$inner$13$(self.data, 0, self.len));
6460
+ return moonbitlang$core$bytes$$Bytes$from_array(moonbitlang$core$array$$FixedArray$sub$46$inner$14$(self.data, 0, self.len));
6461
6461
  }
6462
6462
  function moonbitlang$core$buffer$$new$46$inner(size_hint) {
6463
6463
  const initial = size_hint < 1 ? 1 : size_hint;
@@ -6478,10 +6478,10 @@ function moonbitlang$core$builtin$$Logger$write_char$43$(self, value) {
6478
6478
  function moonbitlang$core$builtin$$Logger$write_object$7$(self, obj) {
6479
6479
  moonbitlang$core$builtin$$Show$output$7$(obj, self);
6480
6480
  }
6481
- function moonbitlang$core$builtin$$Logger$write_object$14$(self, obj) {
6482
- moonbitlang$core$builtin$$Show$output$14$(obj, self);
6481
+ function moonbitlang$core$builtin$$Logger$write_object$12$(self, obj) {
6482
+ moonbitlang$core$builtin$$Show$output$12$(obj, self);
6483
6483
  }
6484
- function moonbitlang$core$array$$FixedArray$unsafe_blit$13$(dst, dst_offset, src, src_offset, len) {
6484
+ function moonbitlang$core$array$$FixedArray$unsafe_blit$14$(dst, dst_offset, src, src_offset, len) {
6485
6485
  if (dst === src && dst_offset < src_offset) {
6486
6486
  let _tmp = 0;
6487
6487
  while (true) {
@@ -6542,8 +6542,8 @@ function moonbitlang$core$builtin$$op_notequal$6$(x, y) {
6542
6542
  function moonbitlang$core$builtin$$op_notequal$44$(x, y) {
6543
6543
  return !moonbitlang$core$builtin$$Eq$equal$45$(x, y);
6544
6544
  }
6545
- function moonbitlang$core$builtin$$op_notequal$14$(x, y) {
6546
- return !moonbitlang$core$builtin$$Eq$equal$14$(x, y);
6545
+ function moonbitlang$core$builtin$$op_notequal$12$(x, y) {
6546
+ return !moonbitlang$core$builtin$$Eq$equal$12$(x, y);
6547
6547
  }
6548
6548
  function moonbitlang$core$builtin$$op_notequal$46$(x, y) {
6549
6549
  return !moonbitlang$core$builtin$$Eq$equal$47$(x, y);
@@ -6584,7 +6584,7 @@ function moonbitlang$core$array$$Array$at$42$(self, index) {
6584
6584
  return $panic();
6585
6585
  }
6586
6586
  }
6587
- function moonbitlang$core$array$$Array$at$14$(self, index) {
6587
+ function moonbitlang$core$array$$Array$at$12$(self, index) {
6588
6588
  const len = self.length;
6589
6589
  if (index >= 0 && index < len) {
6590
6590
  $bound_check(self, index);
@@ -6611,7 +6611,7 @@ function moonbitlang$core$array$$Array$at$17$(self, index) {
6611
6611
  return $panic();
6612
6612
  }
6613
6613
  }
6614
- function moonbitlang$core$array$$Array$at$13$(self, index) {
6614
+ function moonbitlang$core$array$$Array$at$14$(self, index) {
6615
6615
  const len = self.length;
6616
6616
  if (index >= 0 && index < len) {
6617
6617
  $bound_check(self, index);
@@ -6657,8 +6657,8 @@ function moonbitlang$core$builtin$$Hasher$combine$7$(self, value) {
6657
6657
  function moonbitlang$core$builtin$$Hasher$combine$6$(self, value) {
6658
6658
  moonbitlang$core$builtin$$Hash$hash_combine$6$(value, self);
6659
6659
  }
6660
- function moonbitlang$core$builtin$$Hasher$combine$12$(self, value) {
6661
- moonbitlang$core$builtin$$Hash$hash_combine$12$(value, self);
6660
+ function moonbitlang$core$builtin$$Hasher$combine$13$(self, value) {
6661
+ moonbitlang$core$builtin$$Hash$hash_combine$13$(value, self);
6662
6662
  }
6663
6663
  function moonbitlang$core$builtin$$Hasher$combine$11$(self, value) {
6664
6664
  moonbitlang$core$builtin$$Hash$hash_combine$11$(value, self);
@@ -6742,17 +6742,17 @@ function moonbitlang$core$builtin$$Hash$hash$57$(self) {
6742
6742
  }
6743
6743
  function moonbitlang$core$builtin$$Hash$hash$19$(self) {
6744
6744
  const _self = moonbitlang$core$builtin$$Hasher$new(undefined);
6745
- moonbitlang$core$builtin$$Hasher$combine$12$(_self, self);
6745
+ moonbitlang$core$builtin$$Hasher$combine$13$(_self, self);
6746
6746
  return moonbitlang$core$builtin$$Hasher$finalize(_self);
6747
6747
  }
6748
6748
  function moonbitlang$core$builtin$$Show$to_string$60$(self) {
6749
6749
  const logger = moonbitlang$core$builtin$$StringBuilder$new$46$inner(0);
6750
- moonbitlang$core$builtin$$Show$output$14$(self, { self: logger, method_0: moonbitlang$core$builtin$$Logger$write_string$35$, method_1: moonbitlang$core$builtin$$Logger$write_substring$35$, method_2: moonbitlang$core$builtin$$Logger$write_char$35$ });
6750
+ moonbitlang$core$builtin$$Show$output$12$(self, { self: logger, method_0: moonbitlang$core$builtin$$Logger$write_string$35$, method_1: moonbitlang$core$builtin$$Logger$write_substring$35$, method_2: moonbitlang$core$builtin$$Logger$write_char$35$ });
6751
6751
  return logger.val;
6752
6752
  }
6753
6753
  function moonbitlang$core$builtin$$Show$to_string$19$(self) {
6754
6754
  const logger = moonbitlang$core$builtin$$StringBuilder$new$46$inner(0);
6755
- moonbitlang$core$builtin$$Show$output$12$(self, { self: logger, method_0: moonbitlang$core$builtin$$Logger$write_string$35$, method_1: moonbitlang$core$builtin$$Logger$write_substring$35$, method_2: moonbitlang$core$builtin$$Logger$write_char$35$ });
6755
+ moonbitlang$core$builtin$$Show$output$13$(self, { self: logger, method_0: moonbitlang$core$builtin$$Logger$write_string$35$, method_1: moonbitlang$core$builtin$$Logger$write_substring$35$, method_2: moonbitlang$core$builtin$$Logger$write_char$35$ });
6756
6756
  return logger.val;
6757
6757
  }
6758
6758
  function moonbitlang$core$builtin$$Show$to_string$61$(self) {
@@ -6765,11 +6765,11 @@ function moonbitlang$core$builtin$$Show$to_string$28$(self) {
6765
6765
  moonbitlang$core$builtin$$Show$output$0$(self, { self: logger, method_0: moonbitlang$core$builtin$$Logger$write_string$35$, method_1: moonbitlang$core$builtin$$Logger$write_substring$35$, method_2: moonbitlang$core$builtin$$Logger$write_char$35$ });
6766
6766
  return logger.val;
6767
6767
  }
6768
- function moonbitlang$core$builtin$$Logger$write_iter$46$inner$14$(self, iter, prefix, suffix, sep, trailing) {
6768
+ function moonbitlang$core$builtin$$Logger$write_iter$46$inner$12$(self, iter, prefix, suffix, sep, trailing) {
6769
6769
  self.method_0(self.self, prefix);
6770
6770
  if (trailing) {
6771
6771
  iter((x) => {
6772
- moonbitlang$core$builtin$$Logger$write_object$14$(self, x);
6772
+ moonbitlang$core$builtin$$Logger$write_object$12$(self, x);
6773
6773
  self.method_0(self.self, sep);
6774
6774
  return 1;
6775
6775
  });
@@ -6781,7 +6781,7 @@ function moonbitlang$core$builtin$$Logger$write_iter$46$inner$14$(self, iter, pr
6781
6781
  } else {
6782
6782
  self.method_0(self.self, sep);
6783
6783
  }
6784
- moonbitlang$core$builtin$$Logger$write_object$14$(self, x);
6784
+ moonbitlang$core$builtin$$Logger$write_object$12$(self, x);
6785
6785
  return 1;
6786
6786
  });
6787
6787
  }
@@ -6799,7 +6799,7 @@ function moonbitlang$core$string$$StringView$at(self, index) {
6799
6799
  const _tmp$2 = self.start + index | 0;
6800
6800
  return _tmp.charCodeAt(_tmp$2);
6801
6801
  } else {
6802
- return moonbitlang$core$abort$$abort$12$("Index out of bounds");
6802
+ return moonbitlang$core$abort$$abort$13$("Index out of bounds");
6803
6803
  }
6804
6804
  }
6805
6805
  function moonbitlang$core$string$$StringView$view$46$inner(self, start_offset, end_offset) {
@@ -7316,7 +7316,7 @@ function moonbitlang$core$string$$String$repeat(self, n) {
7316
7316
  }
7317
7317
  }
7318
7318
  }
7319
- function moonbitlang$core$array$$Array$new$46$inner$14$(capacity) {
7319
+ function moonbitlang$core$array$$Array$new$46$inner$12$(capacity) {
7320
7320
  return [];
7321
7321
  }
7322
7322
  function moonbitlang$core$array$$Array$new$46$inner$51$(capacity) {
@@ -7328,7 +7328,7 @@ function moonbitlang$core$array$$Array$new$46$inner$50$(capacity) {
7328
7328
  function moonbitlang$core$array$$Array$new$46$inner$52$(capacity) {
7329
7329
  return [];
7330
7330
  }
7331
- function moonbitlang$core$array$$Array$new$46$inner$13$(capacity) {
7331
+ function moonbitlang$core$array$$Array$new$46$inner$14$(capacity) {
7332
7332
  return [];
7333
7333
  }
7334
7334
  function moonbitlang$core$array$$Array$new$46$inner$62$(capacity) {
@@ -7337,7 +7337,7 @@ function moonbitlang$core$array$$Array$new$46$inner$62$(capacity) {
7337
7337
  function moonbitlang$core$array$$Array$new$46$inner$40$(capacity) {
7338
7338
  return [];
7339
7339
  }
7340
- function moonbitlang$core$array$$Array$push$14$(self, value) {
7340
+ function moonbitlang$core$array$$Array$push$12$(self, value) {
7341
7341
  moonbitlang$core$builtin$$JSArray$push(self, value);
7342
7342
  }
7343
7343
  function moonbitlang$core$array$$Array$push$50$(self, value) {
@@ -7355,7 +7355,7 @@ function moonbitlang$core$array$$Array$push$62$(self, value) {
7355
7355
  function moonbitlang$core$array$$Array$push$42$(self, value) {
7356
7356
  moonbitlang$core$builtin$$JSArray$push(self, value);
7357
7357
  }
7358
- function moonbitlang$core$array$$Array$push$13$(self, value) {
7358
+ function moonbitlang$core$array$$Array$push$14$(self, value) {
7359
7359
  moonbitlang$core$builtin$$JSArray$push(self, value);
7360
7360
  }
7361
7361
  function moonbitlang$core$array$$Array$push$52$(self, value) {
@@ -7480,10 +7480,10 @@ function moonbitlang$core$builtin$$Iter$collect$15$(self) {
7480
7480
  });
7481
7481
  return result;
7482
7482
  }
7483
- function moonbitlang$core$builtin$$Iter$collect$13$(self) {
7483
+ function moonbitlang$core$builtin$$Iter$collect$14$(self) {
7484
7484
  const result = [];
7485
7485
  moonbitlang$core$builtin$$Iter$each$64$(self, (e) => {
7486
- moonbitlang$core$array$$Array$push$13$(result, e);
7486
+ moonbitlang$core$array$$Array$push$14$(result, e);
7487
7487
  });
7488
7488
  return result;
7489
7489
  }
@@ -7541,11 +7541,11 @@ function moonbitlang$core$builtin$$Iterator$next$38$(self) {
7541
7541
  const _func = self;
7542
7542
  return _func();
7543
7543
  }
7544
- function moonbitlang$core$builtin$$Iterator$next$13$(self) {
7544
+ function moonbitlang$core$builtin$$Iterator$next$14$(self) {
7545
7545
  const _func = self;
7546
7546
  return _func();
7547
7547
  }
7548
- function moonbitlang$core$builtin$$Show$output$12$(self, logger) {
7548
+ function moonbitlang$core$builtin$$Show$output$13$(self, logger) {
7549
7549
  logger.method_0(logger.self, moonbitlang$core$int$$Int$to_string$46$inner(self, 10));
7550
7550
  }
7551
7551
  function moonbitlang$core$builtin$$Show$output$0$(self, logger) {
@@ -7564,7 +7564,7 @@ function moonbitlang$core$builtin$$Show$output$31$(self, logger) {
7564
7564
  return;
7565
7565
  }
7566
7566
  }
7567
- function moonbitlang$core$array$$Array$iter$14$(self) {
7567
+ function moonbitlang$core$array$$Array$iter$12$(self) {
7568
7568
  const _p = (yield_) => {
7569
7569
  const _len = self.length;
7570
7570
  let _tmp = 0;
@@ -7609,7 +7609,7 @@ function moonbitlang$core$array$$Array$iter$41$(self) {
7609
7609
  return _p;
7610
7610
  }
7611
7611
  function moonbitlang$core$builtin$$Show$output$32$(self, logger) {
7612
- moonbitlang$core$builtin$$Logger$write_iter$46$inner$14$(logger, moonbitlang$core$array$$Array$iter$14$(self), "[", "]", ", ", false);
7612
+ moonbitlang$core$builtin$$Logger$write_iter$46$inner$12$(logger, moonbitlang$core$array$$Array$iter$12$(self), "[", "]", ", ", false);
7613
7613
  }
7614
7614
  function moonbitlang$core$array$$FixedArray$from_array$53$(array) {
7615
7615
  const _p = array.end - array.start | 0;
@@ -7633,7 +7633,7 @@ function moonbitlang$core$array$$FixedArray$from_array$53$(array) {
7633
7633
  return _p$3;
7634
7634
  }
7635
7635
  }
7636
- function moonbitlang$core$array$$FixedArray$sub$46$inner$13$(self, start, end) {
7636
+ function moonbitlang$core$array$$FixedArray$sub$46$inner$14$(self, start, end) {
7637
7637
  const len = self.length;
7638
7638
  let end$2;
7639
7639
  if (end === undefined) {
@@ -7657,7 +7657,7 @@ function moonbitlang$core$builtin$$Eq$equal$45$(self, other) {
7657
7657
  } else {
7658
7658
  const _Some$2 = other;
7659
7659
  const _y = _Some$2;
7660
- return moonbitlang$core$builtin$$Eq$equal$14$(_x, _y);
7660
+ return moonbitlang$core$builtin$$Eq$equal$12$(_x, _y);
7661
7661
  }
7662
7662
  }
7663
7663
  }
@@ -8285,7 +8285,7 @@ function moonbitlang$core$builtin$$Map$contains_kv$37$(self, key, value) {
8285
8285
  } else {
8286
8286
  const _Some = _bind;
8287
8287
  const _entry = _Some;
8288
- if (_entry.hash === hash && (_entry.key === key && moonbitlang$core$builtin$$Eq$equal$14$(_entry.value, value))) {
8288
+ if (_entry.hash === hash && (_entry.key === key && moonbitlang$core$builtin$$Eq$equal$12$(_entry.value, value))) {
8289
8289
  return true;
8290
8290
  }
8291
8291
  if (i > _entry.psl) {
@@ -8410,7 +8410,7 @@ function moonbitlang$core$builtin$$Show$output$33$(self, logger) {
8410
8410
  }
8411
8411
  moonbitlang$core$builtin$$Logger$write_object$7$(logger, _key);
8412
8412
  logger.method_0(logger.self, ": ");
8413
- moonbitlang$core$builtin$$Logger$write_object$14$(logger, _value);
8413
+ moonbitlang$core$builtin$$Logger$write_object$12$(logger, _value);
8414
8414
  _tmp = _param_0 + 1 | 0;
8415
8415
  _tmp$2 = _next;
8416
8416
  continue;
@@ -8569,7 +8569,7 @@ function moonbitlang$core$builtin$$Map$copy$71$(self) {
8569
8569
  return other;
8570
8570
  }
8571
8571
  }
8572
- function moonbitlang$core$builtin$$Eq$equal$14$(a, b) {
8572
+ function moonbitlang$core$builtin$$Eq$equal$12$(a, b) {
8573
8573
  switch (a.$tag) {
8574
8574
  case 0: {
8575
8575
  if (b.$tag === 0) {
@@ -8638,7 +8638,7 @@ function moonbitlang$core$builtin$$Eq$equal$14$(a, b) {
8638
8638
  }
8639
8639
  }
8640
8640
  }
8641
- function moonbitlang$core$builtin$$ToJson$to_json$12$(self) {
8641
+ function moonbitlang$core$builtin$$ToJson$to_json$13$(self) {
8642
8642
  const _p = self + 0;
8643
8643
  const _p$2 = undefined;
8644
8644
  return new $64$moonbitlang$47$core$47$builtin$46$Json$Number(_p, _p$2);
@@ -9025,7 +9025,7 @@ function moonbitlang$core$builtin$$Hasher$combine_string(self, value) {
9025
9025
  function moonbitlang$core$builtin$$Hash$hash_combine$7$(self, hasher) {
9026
9026
  moonbitlang$core$builtin$$Hasher$combine_string(hasher, self);
9027
9027
  }
9028
- function moonbitlang$core$builtin$$Hash$hash_combine$12$(self, hasher) {
9028
+ function moonbitlang$core$builtin$$Hash$hash_combine$13$(self, hasher) {
9029
9029
  moonbitlang$core$builtin$$Hasher$combine_int(hasher, self);
9030
9030
  }
9031
9031
  function moonbitlang$core$builtin$$Hash$hash_combine$11$(self, hasher) {
@@ -9098,7 +9098,7 @@ function moonbitlang$core$array$$FixedArray$blit_from_bytes(self, bytes_offset,
9098
9098
  const len1 = self.length;
9099
9099
  const len2 = src.length;
9100
9100
  if (length >= 0 && (bytes_offset >= 0 && (e1 < len1 && (src_offset >= 0 && e2 < len2)))) {
9101
- moonbitlang$core$array$$FixedArray$unsafe_blit$13$(self, bytes_offset, src, src_offset, length);
9101
+ moonbitlang$core$array$$FixedArray$unsafe_blit$14$(self, bytes_offset, src, src_offset, length);
9102
9102
  return;
9103
9103
  } else {
9104
9104
  $panic();
@@ -9138,7 +9138,7 @@ function moonbitlang$core$array$$FixedArray$set_utf16le_char(self, offset, value
9138
9138
  self[_tmp$3] = _p$4 & 255;
9139
9139
  return 4;
9140
9140
  } else {
9141
- return moonbitlang$core$abort$$abort$12$("Char out of range");
9141
+ return moonbitlang$core$abort$$abort$13$("Char out of range");
9142
9142
  }
9143
9143
  }
9144
9144
  }
@@ -9165,17 +9165,17 @@ function moonbitlang$core$builtin$$Eq$equal$2$(self, other) {
9165
9165
  }
9166
9166
  }
9167
9167
  }
9168
- function moonbitlang$core$builtin$$Shr$shr$13$(self, count) {
9168
+ function moonbitlang$core$builtin$$Shr$shr$14$(self, count) {
9169
9169
  return (self >>> count | 0) & 255;
9170
9170
  }
9171
- function moonbitlang$core$array$$ArrayView$at$13$(self, index) {
9171
+ function moonbitlang$core$array$$ArrayView$at$14$(self, index) {
9172
9172
  if (index >= 0 && index < (self.end - self.start | 0)) {
9173
9173
  const _tmp = self.buf;
9174
9174
  const _tmp$2 = self.start + index | 0;
9175
9175
  $bound_check(_tmp, _tmp$2);
9176
9176
  return _tmp[_tmp$2];
9177
9177
  } else {
9178
- return moonbitlang$core$abort$$abort$13$(`index out of bounds: the len is from 0 to ${moonbitlang$core$builtin$$Show$to_string$19$(self.end - self.start | 0)} but the index is ${moonbitlang$core$builtin$$Show$to_string$19$(index)}`);
9178
+ return moonbitlang$core$abort$$abort$14$(`index out of bounds: the len is from 0 to ${moonbitlang$core$builtin$$Show$to_string$19$(self.end - self.start | 0)} but the index is ${moonbitlang$core$builtin$$Show$to_string$19$(index)}`);
9179
9179
  }
9180
9180
  }
9181
9181
  function moonbitlang$core$array$$Array$unsafe_pop$39$(self) {
@@ -9198,7 +9198,7 @@ function moonbitlang$core$array$$Array$insert$42$(self, index, value) {
9198
9198
  return;
9199
9199
  }
9200
9200
  }
9201
- function moonbitlang$core$array$$Array$set$13$(self, index, value) {
9201
+ function moonbitlang$core$array$$Array$set$14$(self, index, value) {
9202
9202
  const len = self.length;
9203
9203
  if (index >= 0 && index < len) {
9204
9204
  $bound_check(self, index);
@@ -9228,7 +9228,7 @@ function moonbitlang$core$builtin$$Eq$equal$32$(self, other) {
9228
9228
  while (true) {
9229
9229
  const i = _tmp;
9230
9230
  if (i < self_len) {
9231
- if (moonbitlang$core$builtin$$Eq$equal$14$(self[i], other[i])) {
9231
+ if (moonbitlang$core$builtin$$Eq$equal$12$(self[i], other[i])) {
9232
9232
  } else {
9233
9233
  return false;
9234
9234
  }
@@ -9242,7 +9242,7 @@ function moonbitlang$core$builtin$$Eq$equal$32$(self, other) {
9242
9242
  return false;
9243
9243
  }
9244
9244
  }
9245
- function moonbitlang$core$array$$Array$rev$13$(self) {
9245
+ function moonbitlang$core$array$$Array$rev$14$(self) {
9246
9246
  const len = self.length;
9247
9247
  const arr = new Array(len);
9248
9248
  let _tmp = 0;
@@ -9674,7 +9674,7 @@ function zxch3n$flock$leb128$$encode_uint64(value) {
9674
9674
  const _p$2 = 128;
9675
9675
  byte = (_p | _p$2) & 255;
9676
9676
  }
9677
- moonbitlang$core$array$$Array$push$13$(result, byte);
9677
+ moonbitlang$core$array$$Array$push$14$(result, byte);
9678
9678
  if (moonbitlang$core$builtin$$Eq$equal$0$(val, $0L)) {
9679
9679
  break;
9680
9680
  }
@@ -9719,7 +9719,7 @@ function zxch3n$flock$leb128$$encode_int64(value) {
9719
9719
  byte = (_p | _p$2) & 255;
9720
9720
  }
9721
9721
  }
9722
- moonbitlang$core$array$$Array$push$13$(result, byte);
9722
+ moonbitlang$core$array$$Array$push$14$(result, byte);
9723
9723
  continue;
9724
9724
  } else {
9725
9725
  break;
@@ -9887,7 +9887,7 @@ function moonbitlang$core$builtin$$Hash$hash_combine$6$(_x_157, _x_158) {
9887
9887
  moonbitlang$core$builtin$$Hash$hash_combine$2$(_x_157, _x_158);
9888
9888
  }
9889
9889
  function zxch3n$flock$types$$string_to_utf8(str) {
9890
- const bytes = moonbitlang$core$array$$Array$new$46$inner$13$(0);
9890
+ const bytes = moonbitlang$core$array$$Array$new$46$inner$14$(0);
9891
9891
  let i = 0;
9892
9892
  while (true) {
9893
9893
  if (i < str.length) {
@@ -9900,27 +9900,27 @@ function zxch3n$flock$types$$string_to_utf8(str) {
9900
9900
  const low = str.charCodeAt(_tmp$2);
9901
9901
  if (low >= 56320 && low <= 57343) {
9902
9902
  const code_point = (65536 + (code - 55296 << 10) | 0) + (low - 56320 | 0) | 0;
9903
- moonbitlang$core$array$$Array$push$13$(bytes, (240 | code_point >> 18) & 255);
9904
- moonbitlang$core$array$$Array$push$13$(bytes, (128 | code_point >> 12 & 63) & 255);
9905
- moonbitlang$core$array$$Array$push$13$(bytes, (128 | code_point >> 6 & 63) & 255);
9906
- moonbitlang$core$array$$Array$push$13$(bytes, (128 | code_point & 63) & 255);
9903
+ moonbitlang$core$array$$Array$push$14$(bytes, (240 | code_point >> 18) & 255);
9904
+ moonbitlang$core$array$$Array$push$14$(bytes, (128 | code_point >> 12 & 63) & 255);
9905
+ moonbitlang$core$array$$Array$push$14$(bytes, (128 | code_point >> 6 & 63) & 255);
9906
+ moonbitlang$core$array$$Array$push$14$(bytes, (128 | code_point & 63) & 255);
9907
9907
  i = i + 1 | 0;
9908
9908
  } else {
9909
- moonbitlang$core$array$$Array$push$13$(bytes, (224 | code >> 12) & 255);
9910
- moonbitlang$core$array$$Array$push$13$(bytes, (128 | code >> 6 & 63) & 255);
9911
- moonbitlang$core$array$$Array$push$13$(bytes, (128 | code & 63) & 255);
9909
+ moonbitlang$core$array$$Array$push$14$(bytes, (224 | code >> 12) & 255);
9910
+ moonbitlang$core$array$$Array$push$14$(bytes, (128 | code >> 6 & 63) & 255);
9911
+ moonbitlang$core$array$$Array$push$14$(bytes, (128 | code & 63) & 255);
9912
9912
  }
9913
9913
  } else {
9914
9914
  if (code < 128) {
9915
- moonbitlang$core$array$$Array$push$13$(bytes, code & 255);
9915
+ moonbitlang$core$array$$Array$push$14$(bytes, code & 255);
9916
9916
  } else {
9917
9917
  if (code < 2048) {
9918
- moonbitlang$core$array$$Array$push$13$(bytes, (192 | code >> 6) & 255);
9919
- moonbitlang$core$array$$Array$push$13$(bytes, (128 | code & 63) & 255);
9918
+ moonbitlang$core$array$$Array$push$14$(bytes, (192 | code >> 6) & 255);
9919
+ moonbitlang$core$array$$Array$push$14$(bytes, (128 | code & 63) & 255);
9920
9920
  } else {
9921
- moonbitlang$core$array$$Array$push$13$(bytes, (224 | code >> 12) & 255);
9922
- moonbitlang$core$array$$Array$push$13$(bytes, (128 | code >> 6 & 63) & 255);
9923
- moonbitlang$core$array$$Array$push$13$(bytes, (128 | code & 63) & 255);
9921
+ moonbitlang$core$array$$Array$push$14$(bytes, (224 | code >> 12) & 255);
9922
+ moonbitlang$core$array$$Array$push$14$(bytes, (128 | code >> 6 & 63) & 255);
9923
+ moonbitlang$core$array$$Array$push$14$(bytes, (128 | code & 63) & 255);
9924
9924
  }
9925
9925
  }
9926
9926
  }
@@ -10199,15 +10199,15 @@ function zxch3n$flock$memcomparable$$double_from_bits(bits) {
10199
10199
  return moonbitlang$core$uint64$$UInt64$reinterpret_as_double(bits);
10200
10200
  }
10201
10201
  function zxch3n$flock$memcomparable$$uint64_to_be_bytes(n) {
10202
- const bytes = moonbitlang$core$array$$Array$new$46$inner$13$(0);
10203
- moonbitlang$core$array$$Array$push$13$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 56), $255L)));
10204
- moonbitlang$core$array$$Array$push$13$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 48), $255L)));
10205
- moonbitlang$core$array$$Array$push$13$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 40), $255L)));
10206
- moonbitlang$core$array$$Array$push$13$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 32), $255L)));
10207
- moonbitlang$core$array$$Array$push$13$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 24), $255L)));
10208
- moonbitlang$core$array$$Array$push$13$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 16), $255L)));
10209
- moonbitlang$core$array$$Array$push$13$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 8), $255L)));
10210
- moonbitlang$core$array$$Array$push$13$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(n, $255L)));
10202
+ const bytes = moonbitlang$core$array$$Array$new$46$inner$14$(0);
10203
+ moonbitlang$core$array$$Array$push$14$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 56), $255L)));
10204
+ moonbitlang$core$array$$Array$push$14$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 48), $255L)));
10205
+ moonbitlang$core$array$$Array$push$14$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 40), $255L)));
10206
+ moonbitlang$core$array$$Array$push$14$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 32), $255L)));
10207
+ moonbitlang$core$array$$Array$push$14$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 24), $255L)));
10208
+ moonbitlang$core$array$$Array$push$14$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 16), $255L)));
10209
+ moonbitlang$core$array$$Array$push$14$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 8), $255L)));
10210
+ moonbitlang$core$array$$Array$push$14$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(n, $255L)));
10211
10211
  return moonbitlang$core$bytes$$Bytes$from_array({ buf: bytes, start: 0, end: bytes.length });
10212
10212
  }
10213
10213
  function zxch3n$flock$memcomparable$$uint64_from_be_bytes(bytes) {
@@ -10276,7 +10276,7 @@ function zxch3n$flock$memcomparable$$encode_bytes(bytes, output) {
10276
10276
  moonbitlang$core$buffer$$Buffer$write_byte(output, 1);
10277
10277
  const _it = moonbitlang$core$bytes$$BytesView$iterator(bytes);
10278
10278
  while (true) {
10279
- const _bind = moonbitlang$core$builtin$$Iterator$next$13$(_it);
10279
+ const _bind = moonbitlang$core$builtin$$Iterator$next$14$(_it);
10280
10280
  if (_bind === -1) {
10281
10281
  break;
10282
10282
  } else {
@@ -10339,14 +10339,14 @@ function zxch3n$flock$memcomparable$$biguint_to_be_bytes(n) {
10339
10339
  while (true) {
10340
10340
  if (moonbitlang$core$builtin$$Compare$op_gt$58$(x, 0n)) {
10341
10341
  const byte = moonbitlang$core$bigint$$BigInt$to_int(moonbitlang$core$builtin$$Mod$mod$21$(x, 256n));
10342
- moonbitlang$core$array$$Array$push$13$(bytes, byte & 255);
10342
+ moonbitlang$core$array$$Array$push$14$(bytes, byte & 255);
10343
10343
  x = moonbitlang$core$builtin$$Div$div$21$(x, 256n);
10344
10344
  continue;
10345
10345
  } else {
10346
10346
  break;
10347
10347
  }
10348
10348
  }
10349
- const _bind = moonbitlang$core$array$$Array$rev$13$(bytes);
10349
+ const _bind = moonbitlang$core$array$$Array$rev$14$(bytes);
10350
10350
  return moonbitlang$core$bytes$$Bytes$from_array({ buf: _bind, start: 0, end: _bind.length });
10351
10351
  }
10352
10352
  function zxch3n$flock$memcomparable$$bigint_to_be_bytes(n, output) {
@@ -10617,12 +10617,12 @@ function zxch3n$flock$memcomparable$$decode_float(bytes, start) {
10617
10617
  if ((start + 8 | 0) > (bytes.end - bytes.start | 0)) {
10618
10618
  return new Result$Err$27$(Error$zxch3n$47$flock$47$memcomparable$46$KeyError$46$UnexpectedEOF);
10619
10619
  }
10620
- const data = moonbitlang$core$array$$Array$new$46$inner$13$(0);
10620
+ const data = moonbitlang$core$array$$Array$new$46$inner$14$(0);
10621
10621
  let _tmp = 0;
10622
10622
  while (true) {
10623
10623
  const i = _tmp;
10624
10624
  if (i < 8) {
10625
- moonbitlang$core$array$$Array$push$13$(data, moonbitlang$core$bytes$$BytesView$at(bytes, start + i | 0));
10625
+ moonbitlang$core$array$$Array$push$14$(data, moonbitlang$core$bytes$$BytesView$at(bytes, start + i | 0));
10626
10626
  _tmp = i + 1 | 0;
10627
10627
  continue;
10628
10628
  } else {
@@ -10828,7 +10828,7 @@ function zxch3n$flock$memcomparable$$decode_key_to_json(bytes) {
10828
10828
  }
10829
10829
  key = moonbitlang$core$abort$$abort$10$("Failed to decode key");
10830
10830
  }
10831
- const parts = moonbitlang$core$array$$Array$new$46$inner$14$(0);
10831
+ const parts = moonbitlang$core$array$$Array$new$46$inner$12$(0);
10832
10832
  const _arr = key.parts;
10833
10833
  const _len = _arr.length;
10834
10834
  let _tmp = 0;
@@ -10844,7 +10844,7 @@ function zxch3n$flock$memcomparable$$decode_key_to_json(bytes) {
10844
10844
  const _p$2 = _p;
10845
10845
  _tmp$2 = _p$2;
10846
10846
  }
10847
- moonbitlang$core$array$$Array$push$14$(parts, _tmp$2);
10847
+ moonbitlang$core$array$$Array$push$12$(parts, _tmp$2);
10848
10848
  _tmp = _i + 1 | 0;
10849
10849
  continue;
10850
10850
  } else {
@@ -11553,7 +11553,7 @@ function zxch3n$flock$flock$$bytes_to_hex(bytes) {
11553
11553
  if (i < bytes.length) {
11554
11554
  $bound_check(bytes, i);
11555
11555
  const byte = bytes[i];
11556
- const _p = moonbitlang$core$builtin$$Shr$shr$13$(byte, 4);
11556
+ const _p = moonbitlang$core$builtin$$Shr$shr$14$(byte, 4);
11557
11557
  const _p$2 = 15;
11558
11558
  const hi = _p & _p$2 & 255;
11559
11559
  const _p$3 = 15;
@@ -11611,7 +11611,7 @@ function zxch3n$flock$flock$$bytes_from_hex(hex) {
11611
11611
  }
11612
11612
  }
11613
11613
  }
11614
- moonbitlang$core$array$$Array$push$13$(bytes, value & 255);
11614
+ moonbitlang$core$array$$Array$push$14$(bytes, value & 255);
11615
11615
  _tmp = i + 2 | 0;
11616
11616
  continue;
11617
11617
  } else {
@@ -11870,7 +11870,7 @@ function zxch3n$flock$flock$$DigestWriter$write_json(self, value) {
11870
11870
  while (true) {
11871
11871
  const i = _tmp;
11872
11872
  if (i < _arr.length) {
11873
- zxch3n$flock$flock$$DigestWriter$write_json(self, moonbitlang$core$array$$Array$at$14$(_arr, i));
11873
+ zxch3n$flock$flock$$DigestWriter$write_json(self, moonbitlang$core$array$$Array$at$12$(_arr, i));
11874
11874
  _tmp = i + 1 | 0;
11875
11875
  continue;
11876
11876
  } else {
@@ -12399,12 +12399,12 @@ function zxch3n$flock$flock$$prefix_upper_bound_bytes(bytes) {
12399
12399
  if ((bytes.end - bytes.start | 0) === 0) {
12400
12400
  return undefined;
12401
12401
  }
12402
- const data = moonbitlang$core$array$$Array$new$46$inner$13$(bytes.end - bytes.start | 0);
12402
+ const data = moonbitlang$core$array$$Array$new$46$inner$14$(bytes.end - bytes.start | 0);
12403
12403
  let _tmp = 0;
12404
12404
  while (true) {
12405
12405
  const i = _tmp;
12406
12406
  if (i < (bytes.end - bytes.start | 0)) {
12407
- moonbitlang$core$array$$Array$push$13$(data, moonbitlang$core$bytes$$BytesView$at(bytes, i));
12407
+ moonbitlang$core$array$$Array$push$14$(data, moonbitlang$core$bytes$$BytesView$at(bytes, i));
12408
12408
  _tmp = i + 1 | 0;
12409
12409
  continue;
12410
12410
  } else {
@@ -12415,15 +12415,15 @@ function zxch3n$flock$flock$$prefix_upper_bound_bytes(bytes) {
12415
12415
  while (true) {
12416
12416
  const i = _tmp$2;
12417
12417
  if (i >= 0) {
12418
- const current = moonbitlang$core$array$$Array$at$13$(data, i);
12418
+ const current = moonbitlang$core$array$$Array$at$14$(data, i);
12419
12419
  if (current < 255) {
12420
- moonbitlang$core$array$$Array$set$13$(data, i, (current + 1 | 0) & 255);
12421
- const truncated = moonbitlang$core$array$$Array$new$46$inner$13$(i + 1 | 0);
12420
+ moonbitlang$core$array$$Array$set$14$(data, i, (current + 1 | 0) & 255);
12421
+ const truncated = moonbitlang$core$array$$Array$new$46$inner$14$(i + 1 | 0);
12422
12422
  let _tmp$3 = 0;
12423
12423
  while (true) {
12424
12424
  const j = _tmp$3;
12425
12425
  if (j <= i) {
12426
- moonbitlang$core$array$$Array$push$13$(truncated, moonbitlang$core$array$$Array$at$13$(data, j));
12426
+ moonbitlang$core$array$$Array$push$14$(truncated, moonbitlang$core$array$$Array$at$14$(data, j));
12427
12427
  _tmp$3 = j + 1 | 0;
12428
12428
  continue;
12429
12429
  } else {
@@ -12493,14 +12493,14 @@ function zxch3n$flock$flock$$scan$46$inner$46$apply_upper$124$392(_env, bytes, i
12493
12493
  }
12494
12494
  }
12495
12495
  function zxch3n$flock$flock$$Flock$scan$46$inner(self, start, end, prefix) {
12496
- const prefix_filter = { val: moonbitlang$core$array$$Array$new$46$inner$14$(0) };
12496
+ const prefix_filter = { val: moonbitlang$core$array$$Array$new$46$inner$12$(0) };
12497
12497
  const has_prefix_filter = { val: false };
12498
12498
  let prefix_bytes = undefined;
12499
12499
  let prefix_upper_bytes = undefined;
12500
12500
  if (prefix.$tag === 1) {
12501
12501
  const _Some = prefix;
12502
12502
  const _p = _Some._0;
12503
- prefix_filter.val = moonbitlang$core$array$$Array$copy$14$(_p);
12503
+ prefix_filter.val = moonbitlang$core$array$$Array$copy$12$(_p);
12504
12504
  has_prefix_filter.val = true;
12505
12505
  const _bind = zxch3n$flock$memcomparable$$encode_json_key(_p);
12506
12506
  if (_bind === undefined) {
@@ -12654,7 +12654,7 @@ function zxch3n$flock$flock$$Flock$scan$46$inner(self, start, end, prefix) {
12654
12654
  while (true) {
12655
12655
  const i = _tmp;
12656
12656
  if (i < prefix_filter.val.length) {
12657
- if (moonbitlang$core$builtin$$op_notequal$14$(moonbitlang$core$array$$Array$at$14$(prefix_filter.val, i), moonbitlang$core$array$$Array$at$14$(key_json, i))) {
12657
+ if (moonbitlang$core$builtin$$op_notequal$12$(moonbitlang$core$array$$Array$at$12$(prefix_filter.val, i), moonbitlang$core$array$$Array$at$12$(key_json, i))) {
12658
12658
  matches = false;
12659
12659
  break;
12660
12660
  }
@@ -12739,7 +12739,8 @@ function zxch3n$flock$flock$$Flock$export_json$46$inner(self, from, prune_tombst
12739
12739
  let index;
12740
12740
  if (_bind$3.$tag === 1) {
12741
12741
  const _Ok = _bind$3;
12742
- index = _Ok._0;
12742
+ const _index = _Ok._0;
12743
+ index = _index + 1 | 0;
12743
12744
  } else {
12744
12745
  const _Err = _bind$3;
12745
12746
  index = _Err._0;
@@ -12918,12 +12919,12 @@ function zxch3n$flock$flock$$Flock$import_json$46$inner(self, json, hooks) {
12918
12919
  if (key_json.$tag === 5) {
12919
12920
  const _Array = key_json;
12920
12921
  const _parts = _Array._0;
12921
- const key_parts = moonbitlang$core$array$$Array$new$46$inner$14$(0);
12922
+ const key_parts = moonbitlang$core$array$$Array$new$46$inner$12$(0);
12922
12923
  let _tmp = 0;
12923
12924
  while (true) {
12924
12925
  const i = _tmp;
12925
12926
  if (i < _parts.length) {
12926
- moonbitlang$core$array$$Array$push$14$(key_parts, moonbitlang$core$array$$Array$at$14$(_parts, i));
12927
+ moonbitlang$core$array$$Array$push$12$(key_parts, moonbitlang$core$array$$Array$at$12$(_parts, i));
12927
12928
  _tmp = i + 1 | 0;
12928
12929
  continue;
12929
12930
  } else {
@@ -12952,7 +12953,7 @@ function zxch3n$flock$flock$$Flock$import_json$46$inner(self, json, hooks) {
12952
12953
  } else {
12953
12954
  const _Skip = _bind$4;
12954
12955
  const _reason = _Skip._0;
12955
- moonbitlang$core$array$$Array$push$50$(skipped_entries, { key: moonbitlang$core$array$$Array$copy$14$(key_parts), reason: _reason });
12956
+ moonbitlang$core$array$$Array$push$50$(skipped_entries, { key: moonbitlang$core$array$$Array$copy$12$(key_parts), reason: _reason });
12956
12957
  return 1;
12957
12958
  }
12958
12959
  }
@@ -13020,7 +13021,7 @@ function zxch3n$flock$flock$$Flock$import_json$46$inner(self, json, hooks) {
13020
13021
  const _Some = _bind$2;
13021
13022
  const _events = _Some._0;
13022
13023
  if (_events.length > 0) {
13023
- zxch3n$flock$flock$$SubscriberSet$notify$81$(self.subscribers, { by: zxch3n$flock$flock$$import_json$46$inner$46$constr$47$3484, events: _events });
13024
+ zxch3n$flock$flock$$SubscriberSet$notify$81$(self.subscribers, { by: zxch3n$flock$flock$$import_json$46$inner$46$constr$47$3485, events: _events });
13024
13025
  }
13025
13026
  }
13026
13027
  return new Result$Ok$37$({ accepted: accepted.val, skipped: skipped_entries });
@@ -13119,7 +13120,7 @@ function zxch3n$flock$flock$$Flock$put_mvr$46$inner(self, key, value, now) {
13119
13120
  $panic();
13120
13121
  }
13121
13122
  }
13122
- const key$2 = moonbitlang$core$array$$Array$copy$14$(key);
13123
+ const key$2 = moonbitlang$core$array$$Array$copy$12$(key);
13123
13124
  _L: {
13124
13125
  _L$2: {
13125
13126
  switch (value.$tag) {
@@ -13137,7 +13138,7 @@ function zxch3n$flock$flock$$Flock$put_mvr$46$inner(self, key, value, now) {
13137
13138
  }
13138
13139
  return new Result$Err$32$(new Error$zxch3n$47$flock$47$flock$46$PutError$46$InvalidValueForMvr(value));
13139
13140
  }
13140
- moonbitlang$core$array$$Array$push$14$(key$2, value);
13141
+ moonbitlang$core$array$$Array$push$12$(key$2, value);
13141
13142
  const _p = true;
13142
13143
  const _tmp$2 = _p ? $64$moonbitlang$47$core$47$builtin$46$Json$True : $64$moonbitlang$47$core$47$builtin$46$Json$False;
13143
13144
  return zxch3n$flock$flock$$Flock$put_inner(self, key$2, _tmp$2, Option$None$33$, now, Option$None$34$);
@@ -13158,8 +13159,8 @@ function zxch3n$flock$flock$$Flock$get_mvr(self, key) {
13158
13159
  if (_tmp) {
13159
13160
  return 1;
13160
13161
  }
13161
- const value = moonbitlang$core$array$$Array$at$14$(k, key.length);
13162
- moonbitlang$core$array$$Array$push$14$(ans, value);
13162
+ const value = moonbitlang$core$array$$Array$at$12$(k, key.length);
13163
+ moonbitlang$core$array$$Array$push$12$(ans, value);
13163
13164
  return 1;
13164
13165
  });
13165
13166
  const _tmp = _foreach_result;
@@ -13192,7 +13193,7 @@ function zxch3n$flock$flock$$Flock$newFlock(peer_id) {
13192
13193
  const _bind$3 = zxch3n$flock$sorted_map$$SortedMap$new$80$();
13193
13194
  const _bind$4 = zxch3n$flock$flock$$SubscriberSet$new$81$();
13194
13195
  const _bind$5 = undefined;
13195
- return { peer_id: peer_id, max_hlc: zxch3n$flock$flock$$newFlock$46$42$bind$47$3593, vv: _bind, kv: _bind$2, updates: _bind$3, subscribers: _bind$4, digest: _bind$5 };
13196
+ return { peer_id: peer_id, max_hlc: zxch3n$flock$flock$$newFlock$46$42$bind$47$3594, vv: _bind, kv: _bind$2, updates: _bind$3, subscribers: _bind$4, digest: _bind$5 };
13196
13197
  }
13197
13198
  function zxch3n$flock$flock$$json_stringify_value(value) {
13198
13199
  return zxch3n$flock$flock$$ffi_json_stringify_value(value);
@@ -13228,53 +13229,59 @@ function zxch3n$flock$flock$$Flock$put_ffi(self, key, value, now) {
13228
13229
  _try_err = _tmp;
13229
13230
  break _L;
13230
13231
  }
13231
- const _bind$2 = Yoorkin$jmop$$Any$unwrap_value(value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:23:31-23:51");
13232
- let _tmp;
13233
- if (_bind$2.$tag === 1) {
13234
- const _ok = _bind$2;
13235
- _tmp = _ok._0;
13236
- } else {
13237
- const _err = _bind$2;
13238
- const _tmp$2 = _err._0;
13239
- _try_err = _tmp$2;
13240
- break _L;
13232
+ let value$2;
13233
+ let _try_err$2;
13234
+ _L$2: {
13235
+ _L$3: {
13236
+ const _bind$2 = moonbitlang$core$json$$parse$46$inner({ str: value, start: 0, end: value.length }, 1024);
13237
+ if (_bind$2.$tag === 1) {
13238
+ const _ok = _bind$2;
13239
+ value$2 = _ok._0;
13240
+ } else {
13241
+ const _err = _bind$2;
13242
+ const _tmp = _err._0;
13243
+ _try_err$2 = _tmp;
13244
+ break _L$3;
13245
+ }
13246
+ break _L$2;
13247
+ }
13248
+ value$2 = $panic();
13241
13249
  }
13242
- const value$2 = zxch3n$flock$flock$$value_to_json(_tmp);
13243
- const _bind$3 = Yoorkin$jmop$$Value$to_array$76$(key$2, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:24:40-24:54");
13250
+ const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key$2, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:24:40-24:54");
13244
13251
  let key_arr;
13245
- if (_bind$3.$tag === 1) {
13246
- const _ok = _bind$3;
13252
+ if (_bind$2.$tag === 1) {
13253
+ const _ok = _bind$2;
13247
13254
  key_arr = _ok._0;
13248
13255
  } else {
13249
- const _err = _bind$3;
13250
- const _tmp$2 = _err._0;
13251
- _try_err = _tmp$2;
13256
+ const _err = _bind$2;
13257
+ const _tmp = _err._0;
13258
+ _try_err = _tmp;
13252
13259
  break _L;
13253
13260
  }
13254
13261
  const _p = new Array(key_arr.length);
13255
13262
  const _p$2 = key_arr.length;
13256
- let _tmp$2 = 0;
13263
+ let _tmp = 0;
13257
13264
  while (true) {
13258
- const _p$3 = _tmp$2;
13265
+ const _p$3 = _tmp;
13259
13266
  if (_p$3 < _p$2) {
13260
13267
  const _p$4 = key_arr[_p$3];
13261
13268
  _p[_p$3] = zxch3n$flock$flock$$value_to_json(_p$4);
13262
- _tmp$2 = _p$3 + 1 | 0;
13269
+ _tmp = _p$3 + 1 | 0;
13263
13270
  continue;
13264
13271
  } else {
13265
13272
  break;
13266
13273
  }
13267
13274
  }
13268
13275
  const key_arr$2 = _p;
13269
- const _bind$4 = zxch3n$flock$flock$$Flock$put_inner(self, key_arr$2, value$2, Option$None$33$, new Option$Some$8$(now), Option$None$34$);
13270
- if (_bind$4.$tag === 1) {
13271
- const _ok = _bind$4;
13276
+ const _bind$3 = zxch3n$flock$flock$$Flock$put_inner(self, key_arr$2, value$2, Option$None$33$, new Option$Some$8$(now), Option$None$34$);
13277
+ if (_bind$3.$tag === 1) {
13278
+ const _ok = _bind$3;
13272
13279
  _ok._0;
13273
13280
  return;
13274
13281
  } else {
13275
- const _err = _bind$4;
13276
- const _tmp$3 = _err._0;
13277
- _try_err = _tmp$3;
13282
+ const _err = _bind$3;
13283
+ const _tmp$2 = _err._0;
13284
+ _try_err = _tmp$2;
13278
13285
  break _L;
13279
13286
  }
13280
13287
  }
@@ -13400,8 +13407,8 @@ function zxch3n$flock$flock$$json_to_version_vector(json) {
13400
13407
  const _Array = raw_clock;
13401
13408
  const _parts = _Array._0;
13402
13409
  if (_parts.length >= 2) {
13403
- const physical_time = moonbitlang$core$option$$Option$unwrap$24$(moonbitlang$core$json$$Json$as_number(moonbitlang$core$array$$Array$at$14$(_parts, 0)));
13404
- const logical_counter = moonbitlang$core$double$$Double$to_int(moonbitlang$core$option$$Option$unwrap$24$(moonbitlang$core$json$$Json$as_number(moonbitlang$core$array$$Array$at$14$(_parts, 1))));
13410
+ const physical_time = moonbitlang$core$option$$Option$unwrap$24$(moonbitlang$core$json$$Json$as_number(moonbitlang$core$array$$Array$at$12$(_parts, 0)));
13411
+ const logical_counter = moonbitlang$core$double$$Double$to_int(moonbitlang$core$option$$Option$unwrap$24$(moonbitlang$core$json$$Json$as_number(moonbitlang$core$array$$Array$at$12$(_parts, 1))));
13405
13412
  moonbitlang$core$builtin$$Map$set$71$(vv, peer, { physical_time: physical_time, logical_counter: logical_counter });
13406
13413
  } else {
13407
13414
  break _L$2;
@@ -13486,7 +13493,7 @@ function zxch3n$flock$flock$$Flock$import_json_ffi(self, json) {
13486
13493
  let _try_err;
13487
13494
  _L: {
13488
13495
  if (!(zxch3n$flock$flock$$any_is_undefined(json) || zxch3n$flock$flock$$any_is_null(json))) {
13489
- const _bind = Yoorkin$jmop$$Any$unwrap_value(json, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:109:32-109:51");
13496
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(json, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:106:32-106:51");
13490
13497
  let _tmp;
13491
13498
  if (_bind.$tag === 1) {
13492
13499
  const _ok = _bind;
@@ -13516,7 +13523,7 @@ function zxch3n$flock$flock$$Flock$import_json_ffi(self, json) {
13516
13523
  }
13517
13524
  report = $panic();
13518
13525
  }
13519
- const skipped_rows = moonbitlang$core$array$$Array$new$46$inner$14$(0);
13526
+ const skipped_rows = moonbitlang$core$array$$Array$new$46$inner$12$(0);
13520
13527
  let _tmp$2 = 0;
13521
13528
  while (true) {
13522
13529
  const i = _tmp$2;
@@ -13526,7 +13533,7 @@ function zxch3n$flock$flock$$Flock$import_json_ffi(self, json) {
13526
13533
  moonbitlang$core$builtin$$Map$set$37$(obj, "key", moonbitlang$core$builtin$$ToJson$to_json$32$(skipped.key));
13527
13534
  const _p = skipped.reason;
13528
13535
  moonbitlang$core$builtin$$Map$set$37$(obj, "reason", new $64$moonbitlang$47$core$47$builtin$46$Json$String(_p));
13529
- moonbitlang$core$array$$Array$push$14$(skipped_rows, moonbitlang$core$builtin$$ToJson$to_json$33$(obj));
13536
+ moonbitlang$core$array$$Array$push$12$(skipped_rows, moonbitlang$core$builtin$$ToJson$to_json$33$(obj));
13530
13537
  _tmp$2 = i + 1 | 0;
13531
13538
  continue;
13532
13539
  } else {
@@ -13534,7 +13541,7 @@ function zxch3n$flock$flock$$Flock$import_json_ffi(self, json) {
13534
13541
  }
13535
13542
  }
13536
13543
  const report_obj = moonbitlang$core$builtin$$Map$new$46$inner$37$(8);
13537
- moonbitlang$core$builtin$$Map$set$37$(report_obj, "accepted", moonbitlang$core$builtin$$ToJson$to_json$12$(report.accepted));
13544
+ moonbitlang$core$builtin$$Map$set$37$(report_obj, "accepted", moonbitlang$core$builtin$$ToJson$to_json$13$(report.accepted));
13538
13545
  moonbitlang$core$builtin$$Map$set$37$(report_obj, "skipped", moonbitlang$core$builtin$$ToJson$to_json$32$(skipped_rows));
13539
13546
  const _p = zxch3n$flock$flock$$json_to_value(moonbitlang$core$builtin$$ToJson$to_json$33$(report_obj));
13540
13547
  return _p;
@@ -13548,7 +13555,7 @@ function zxch3n$flock$flock$$version_vector_to_json(vv) {
13548
13555
  const result = moonbitlang$core$builtin$$Map$new$46$inner$37$(8);
13549
13556
  const _bind = moonbitlang$core$builtin$$Map$iter2$71$(vv);
13550
13557
  _bind((peer, clock) => {
13551
- const entry = [moonbitlang$core$builtin$$ToJson$to_json$24$(clock.physical_time), moonbitlang$core$builtin$$ToJson$to_json$12$(clock.logical_counter)];
13558
+ const entry = [moonbitlang$core$builtin$$ToJson$to_json$24$(clock.physical_time), moonbitlang$core$builtin$$ToJson$to_json$13$(clock.logical_counter)];
13552
13559
  moonbitlang$core$builtin$$Map$set$37$(result, zxch3n$flock$flock$$bytes_to_hex(peer), moonbitlang$core$builtin$$ToJson$to_json$32$(entry));
13553
13560
  return 1;
13554
13561
  });
@@ -13608,7 +13615,7 @@ function zxch3n$flock$flock$$bound_from_json(json) {
13608
13615
  if (_x.$tag === 5) {
13609
13616
  const _Array = _x;
13610
13617
  const _arr = _Array._0;
13611
- key = moonbitlang$core$array$$Array$copy$14$(_arr);
13618
+ key = moonbitlang$core$array$$Array$copy$12$(_arr);
13612
13619
  } else {
13613
13620
  break _L$3;
13614
13621
  }
@@ -13631,7 +13638,7 @@ function zxch3n$flock$flock$$Flock$check_invariants_ffi(self) {
13631
13638
  function zxch3n$flock$flock$$Flock$put_json_ffi(self, key, value, now) {
13632
13639
  let _try_err;
13633
13640
  _L: {
13634
- const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:224:21-224:39");
13641
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:221:21-221:39");
13635
13642
  let key_value;
13636
13643
  if (_bind.$tag === 1) {
13637
13644
  const _ok = _bind;
@@ -13642,7 +13649,7 @@ function zxch3n$flock$flock$$Flock$put_json_ffi(self, key, value, now) {
13642
13649
  _try_err = _tmp;
13643
13650
  break _L;
13644
13651
  }
13645
- const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:225:40-225:60");
13652
+ const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:222:40-222:60");
13646
13653
  let key_arr;
13647
13654
  if (_bind$2.$tag === 1) {
13648
13655
  const _ok = _bind$2;
@@ -13668,23 +13675,40 @@ function zxch3n$flock$flock$$Flock$put_json_ffi(self, key, value, now) {
13668
13675
  }
13669
13676
  }
13670
13677
  const key_json = _p;
13671
- const _bind$3 = Yoorkin$jmop$$Any$unwrap_value(value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:227:36-227:56");
13672
- let _tmp$2;
13673
- if (_bind$3.$tag === 1) {
13674
- const _ok = _bind$3;
13675
- _tmp$2 = _ok._0;
13676
- } else {
13677
- const _err = _bind$3;
13678
- const _tmp$3 = _err._0;
13679
- _try_err = _tmp$3;
13680
- break _L;
13678
+ let value_json;
13679
+ let _try_err$2;
13680
+ _L$2: {
13681
+ _L$3: {
13682
+ const _bind$3 = moonbitlang$core$json$$parse$46$inner({ str: value, start: 0, end: value.length }, 1024);
13683
+ if (_bind$3.$tag === 1) {
13684
+ const _ok = _bind$3;
13685
+ value_json = _ok._0;
13686
+ } else {
13687
+ const _err = _bind$3;
13688
+ const _tmp$2 = _err._0;
13689
+ _try_err$2 = _tmp$2;
13690
+ break _L$3;
13691
+ }
13692
+ break _L$2;
13693
+ }
13694
+ value_json = $panic();
13681
13695
  }
13682
- const value_json = zxch3n$flock$flock$$value_to_json(_tmp$2);
13683
13696
  let now_value;
13684
13697
  if (zxch3n$flock$flock$$any_is_undefined(now) || zxch3n$flock$flock$$any_is_null(now)) {
13685
13698
  now_value = Option$None$8$;
13686
13699
  } else {
13687
- const _bind$4 = Yoorkin$jmop$$Any$unwrap_value(now, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:231:12-231:30");
13700
+ const _bind$3 = Yoorkin$jmop$$Any$unwrap_value(now, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:228:12-228:30");
13701
+ let _tmp$2;
13702
+ if (_bind$3.$tag === 1) {
13703
+ const _ok = _bind$3;
13704
+ _tmp$2 = _ok._0;
13705
+ } else {
13706
+ const _err = _bind$3;
13707
+ const _tmp$3 = _err._0;
13708
+ _try_err = _tmp$3;
13709
+ break _L;
13710
+ }
13711
+ const _bind$4 = Yoorkin$jmop$$Value$to_number(_tmp$2, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:228:12-228:42");
13688
13712
  let _tmp$3;
13689
13713
  if (_bind$4.$tag === 1) {
13690
13714
  const _ok = _bind$4;
@@ -13695,28 +13719,17 @@ function zxch3n$flock$flock$$Flock$put_json_ffi(self, key, value, now) {
13695
13719
  _try_err = _tmp$4;
13696
13720
  break _L;
13697
13721
  }
13698
- const _bind$5 = Yoorkin$jmop$$Value$to_number(_tmp$3, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:231:12-231:42");
13699
- let _tmp$4;
13700
- if (_bind$5.$tag === 1) {
13701
- const _ok = _bind$5;
13702
- _tmp$4 = _ok._0;
13703
- } else {
13704
- const _err = _bind$5;
13705
- const _tmp$5 = _err._0;
13706
- _try_err = _tmp$5;
13707
- break _L;
13708
- }
13709
- now_value = new Option$Some$8$(_tmp$4);
13722
+ now_value = new Option$Some$8$(_tmp$3);
13710
13723
  }
13711
- const _bind$4 = zxch3n$flock$flock$$Flock$put$46$inner(self, key_json, value_json, now_value);
13712
- if (_bind$4.$tag === 1) {
13713
- const _ok = _bind$4;
13724
+ const _bind$3 = zxch3n$flock$flock$$Flock$put$46$inner(self, key_json, value_json, now_value);
13725
+ if (_bind$3.$tag === 1) {
13726
+ const _ok = _bind$3;
13714
13727
  _ok._0;
13715
13728
  return;
13716
13729
  } else {
13717
- const _err = _bind$4;
13718
- const _tmp$3 = _err._0;
13719
- _try_err = _tmp$3;
13730
+ const _err = _bind$3;
13731
+ const _tmp$2 = _err._0;
13732
+ _try_err = _tmp$2;
13720
13733
  break _L;
13721
13734
  }
13722
13735
  }
@@ -13725,7 +13738,7 @@ function zxch3n$flock$flock$$Flock$put_json_ffi(self, key, value, now) {
13725
13738
  function zxch3n$flock$flock$$Flock$put_with_meta_ffi(self, key, value, metadata, now) {
13726
13739
  let _try_err;
13727
13740
  _L: {
13728
- const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:246:21-246:39");
13741
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:243:21-243:39");
13729
13742
  let key_value;
13730
13743
  if (_bind.$tag === 1) {
13731
13744
  const _ok = _bind;
@@ -13736,7 +13749,7 @@ function zxch3n$flock$flock$$Flock$put_with_meta_ffi(self, key, value, metadata,
13736
13749
  _try_err = _tmp;
13737
13750
  break _L;
13738
13751
  }
13739
- const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:247:40-247:60");
13752
+ const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:244:40-244:60");
13740
13753
  let key_arr;
13741
13754
  if (_bind$2.$tag === 1) {
13742
13755
  const _ok = _bind$2;
@@ -13762,41 +13775,58 @@ function zxch3n$flock$flock$$Flock$put_with_meta_ffi(self, key, value, metadata,
13762
13775
  }
13763
13776
  }
13764
13777
  const key_json = _p;
13765
- const _bind$3 = Yoorkin$jmop$$Any$unwrap_value(value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:249:36-249:56");
13766
- let _tmp$2;
13767
- if (_bind$3.$tag === 1) {
13768
- const _ok = _bind$3;
13769
- _tmp$2 = _ok._0;
13770
- } else {
13771
- const _err = _bind$3;
13772
- const _tmp$3 = _err._0;
13773
- _try_err = _tmp$3;
13774
- break _L;
13778
+ let value_json;
13779
+ let _try_err$2;
13780
+ _L$2: {
13781
+ _L$3: {
13782
+ const _bind$3 = moonbitlang$core$json$$parse$46$inner({ str: value, start: 0, end: value.length }, 1024);
13783
+ if (_bind$3.$tag === 1) {
13784
+ const _ok = _bind$3;
13785
+ value_json = _ok._0;
13786
+ } else {
13787
+ const _err = _bind$3;
13788
+ const _tmp$2 = _err._0;
13789
+ _try_err$2 = _tmp$2;
13790
+ break _L$3;
13791
+ }
13792
+ break _L$2;
13793
+ }
13794
+ value_json = $panic();
13775
13795
  }
13776
- const value_json = zxch3n$flock$flock$$value_to_json(_tmp$2);
13777
13796
  let metadata_value;
13778
13797
  if (zxch3n$flock$flock$$any_is_undefined(metadata) || zxch3n$flock$flock$$any_is_null(metadata)) {
13779
13798
  metadata_value = undefined;
13780
13799
  } else {
13781
- const _bind$4 = Yoorkin$jmop$$Any$unwrap_value(metadata, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:253:41-253:64");
13782
- let _tmp$3;
13783
- if (_bind$4.$tag === 1) {
13784
- const _ok = _bind$4;
13785
- _tmp$3 = _ok._0;
13800
+ const _bind$3 = Yoorkin$jmop$$Any$unwrap_value(metadata, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:250:41-250:64");
13801
+ let _tmp$2;
13802
+ if (_bind$3.$tag === 1) {
13803
+ const _ok = _bind$3;
13804
+ _tmp$2 = _ok._0;
13786
13805
  } else {
13787
- const _err = _bind$4;
13788
- const _tmp$4 = _err._0;
13789
- _try_err = _tmp$4;
13806
+ const _err = _bind$3;
13807
+ const _tmp$3 = _err._0;
13808
+ _try_err = _tmp$3;
13790
13809
  break _L;
13791
13810
  }
13792
- const metadata_json = zxch3n$flock$flock$$value_to_json(_tmp$3);
13811
+ const metadata_json = zxch3n$flock$flock$$value_to_json(_tmp$2);
13793
13812
  metadata_value = zxch3n$flock$flock$$json_to_metadata(metadata_json);
13794
13813
  }
13795
13814
  let now_value;
13796
13815
  if (zxch3n$flock$flock$$any_is_undefined(now) || zxch3n$flock$flock$$any_is_null(now)) {
13797
13816
  now_value = Option$None$8$;
13798
13817
  } else {
13799
- const _bind$4 = Yoorkin$jmop$$Any$unwrap_value(now, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:259:12-259:30");
13818
+ const _bind$3 = Yoorkin$jmop$$Any$unwrap_value(now, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:256:12-256:30");
13819
+ let _tmp$2;
13820
+ if (_bind$3.$tag === 1) {
13821
+ const _ok = _bind$3;
13822
+ _tmp$2 = _ok._0;
13823
+ } else {
13824
+ const _err = _bind$3;
13825
+ const _tmp$3 = _err._0;
13826
+ _try_err = _tmp$3;
13827
+ break _L;
13828
+ }
13829
+ const _bind$4 = Yoorkin$jmop$$Value$to_number(_tmp$2, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:256:12-256:42");
13800
13830
  let _tmp$3;
13801
13831
  if (_bind$4.$tag === 1) {
13802
13832
  const _ok = _bind$4;
@@ -13807,43 +13837,32 @@ function zxch3n$flock$flock$$Flock$put_with_meta_ffi(self, key, value, metadata,
13807
13837
  _try_err = _tmp$4;
13808
13838
  break _L;
13809
13839
  }
13810
- const _bind$5 = Yoorkin$jmop$$Value$to_number(_tmp$3, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:259:12-259:42");
13811
- let _tmp$4;
13812
- if (_bind$5.$tag === 1) {
13813
- const _ok = _bind$5;
13814
- _tmp$4 = _ok._0;
13815
- } else {
13816
- const _err = _bind$5;
13817
- const _tmp$5 = _err._0;
13818
- _try_err = _tmp$5;
13819
- break _L;
13820
- }
13821
- now_value = new Option$Some$8$(_tmp$4);
13840
+ now_value = new Option$Some$8$(_tmp$3);
13822
13841
  }
13823
13842
  if (metadata_value === undefined) {
13824
- const _bind$4 = zxch3n$flock$flock$$Flock$put_with_meta(self, key_json, value_json, Option$None$33$, now_value, Option$None$34$);
13825
- if (_bind$4.$tag === 1) {
13826
- const _ok = _bind$4;
13843
+ const _bind$3 = zxch3n$flock$flock$$Flock$put_with_meta(self, key_json, value_json, Option$None$33$, now_value, Option$None$34$);
13844
+ if (_bind$3.$tag === 1) {
13845
+ const _ok = _bind$3;
13827
13846
  _ok._0;
13828
13847
  return;
13829
13848
  } else {
13830
- const _err = _bind$4;
13831
- const _tmp$3 = _err._0;
13832
- _try_err = _tmp$3;
13849
+ const _err = _bind$3;
13850
+ const _tmp$2 = _err._0;
13851
+ _try_err = _tmp$2;
13833
13852
  break _L;
13834
13853
  }
13835
13854
  } else {
13836
13855
  const _Some = metadata_value;
13837
13856
  const _meta = _Some;
13838
- const _bind$4 = zxch3n$flock$flock$$Flock$put_with_meta(self, key_json, value_json, new Option$Some$33$(_meta), now_value, Option$None$34$);
13839
- if (_bind$4.$tag === 1) {
13840
- const _ok = _bind$4;
13857
+ const _bind$3 = zxch3n$flock$flock$$Flock$put_with_meta(self, key_json, value_json, new Option$Some$33$(_meta), now_value, Option$None$34$);
13858
+ if (_bind$3.$tag === 1) {
13859
+ const _ok = _bind$3;
13841
13860
  _ok._0;
13842
13861
  return;
13843
13862
  } else {
13844
- const _err = _bind$4;
13845
- const _tmp$3 = _err._0;
13846
- _try_err = _tmp$3;
13863
+ const _err = _bind$3;
13864
+ const _tmp$2 = _err._0;
13865
+ _try_err = _tmp$2;
13847
13866
  break _L;
13848
13867
  }
13849
13868
  }
@@ -13853,7 +13872,7 @@ function zxch3n$flock$flock$$Flock$put_with_meta_ffi(self, key, value, metadata,
13853
13872
  function zxch3n$flock$flock$$Flock$delete_ffi(self, key, now) {
13854
13873
  let _try_err;
13855
13874
  _L: {
13856
- const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:281:21-281:39");
13875
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:278:21-278:39");
13857
13876
  let key_value;
13858
13877
  if (_bind.$tag === 1) {
13859
13878
  const _ok = _bind;
@@ -13864,7 +13883,7 @@ function zxch3n$flock$flock$$Flock$delete_ffi(self, key, now) {
13864
13883
  _try_err = _tmp;
13865
13884
  break _L;
13866
13885
  }
13867
- const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:282:40-282:60");
13886
+ const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:279:40-279:60");
13868
13887
  let key_arr;
13869
13888
  if (_bind$2.$tag === 1) {
13870
13889
  const _ok = _bind$2;
@@ -13894,7 +13913,7 @@ function zxch3n$flock$flock$$Flock$delete_ffi(self, key, now) {
13894
13913
  if (zxch3n$flock$flock$$any_is_undefined(now) || zxch3n$flock$flock$$any_is_null(now)) {
13895
13914
  now_value = Option$None$8$;
13896
13915
  } else {
13897
- const _bind$3 = Yoorkin$jmop$$Any$unwrap_value(now, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:287:12-287:30");
13916
+ const _bind$3 = Yoorkin$jmop$$Any$unwrap_value(now, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:284:12-284:30");
13898
13917
  let _tmp$2;
13899
13918
  if (_bind$3.$tag === 1) {
13900
13919
  const _ok = _bind$3;
@@ -13905,7 +13924,7 @@ function zxch3n$flock$flock$$Flock$delete_ffi(self, key, now) {
13905
13924
  _try_err = _tmp$3;
13906
13925
  break _L;
13907
13926
  }
13908
- const _bind$4 = Yoorkin$jmop$$Value$to_number(_tmp$2, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:287:12-287:42");
13927
+ const _bind$4 = Yoorkin$jmop$$Value$to_number(_tmp$2, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:284:12-284:42");
13909
13928
  let _tmp$3;
13910
13929
  if (_bind$4.$tag === 1) {
13911
13930
  const _ok = _bind$4;
@@ -13945,10 +13964,10 @@ function zxch3n$flock$flock$$Flock$kv_to_json_ffi(self) {
13945
13964
  return _p;
13946
13965
  }
13947
13966
  function zxch3n$flock$flock$$FlockDigest$copy(self) {
13948
- return { bytes: moonbitlang$core$array$$FixedArray$copy$13$(self.bytes) };
13967
+ return { bytes: moonbitlang$core$array$$FixedArray$copy$14$(self.bytes) };
13949
13968
  }
13950
13969
  function zxch3n$flock$flock$$FlockDigest$xor(self, digest) {
13951
- const bytes = moonbitlang$core$array$$FixedArray$copy$13$(self.bytes);
13970
+ const bytes = moonbitlang$core$array$$FixedArray$copy$14$(self.bytes);
13952
13971
  const digest_bytes = digest.bytes;
13953
13972
  let _tmp = 0;
13954
13973
  while (true) {
@@ -14071,7 +14090,7 @@ function zxch3n$flock$flock$$Flock$digest_hex_ffi(self) {
14071
14090
  function zxch3n$flock$flock$$Flock$put_mvr_ffi(self, key, value, now) {
14072
14091
  let _try_err;
14073
14092
  _L: {
14074
- const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:321:21-321:39");
14093
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:318:21-318:39");
14075
14094
  let key_value;
14076
14095
  if (_bind.$tag === 1) {
14077
14096
  const _ok = _bind;
@@ -14082,7 +14101,7 @@ function zxch3n$flock$flock$$Flock$put_mvr_ffi(self, key, value, now) {
14082
14101
  _try_err = _tmp;
14083
14102
  break _L;
14084
14103
  }
14085
- const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:322:40-322:60");
14104
+ const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:319:40-319:60");
14086
14105
  let key_arr;
14087
14106
  if (_bind$2.$tag === 1) {
14088
14107
  const _ok = _bind$2;
@@ -14108,23 +14127,40 @@ function zxch3n$flock$flock$$Flock$put_mvr_ffi(self, key, value, now) {
14108
14127
  }
14109
14128
  }
14110
14129
  const key_json = _p;
14111
- const _bind$3 = Yoorkin$jmop$$Any$unwrap_value(value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:324:36-324:56");
14112
- let _tmp$2;
14113
- if (_bind$3.$tag === 1) {
14114
- const _ok = _bind$3;
14115
- _tmp$2 = _ok._0;
14116
- } else {
14117
- const _err = _bind$3;
14118
- const _tmp$3 = _err._0;
14119
- _try_err = _tmp$3;
14120
- break _L;
14130
+ let value_json;
14131
+ let _try_err$2;
14132
+ _L$2: {
14133
+ _L$3: {
14134
+ const _bind$3 = moonbitlang$core$json$$parse$46$inner({ str: value, start: 0, end: value.length }, 1024);
14135
+ if (_bind$3.$tag === 1) {
14136
+ const _ok = _bind$3;
14137
+ value_json = _ok._0;
14138
+ } else {
14139
+ const _err = _bind$3;
14140
+ const _tmp$2 = _err._0;
14141
+ _try_err$2 = _tmp$2;
14142
+ break _L$3;
14143
+ }
14144
+ break _L$2;
14145
+ }
14146
+ value_json = $panic();
14121
14147
  }
14122
- const value_json = zxch3n$flock$flock$$value_to_json(_tmp$2);
14123
14148
  let now_value;
14124
14149
  if (zxch3n$flock$flock$$any_is_undefined(now) || zxch3n$flock$flock$$any_is_null(now)) {
14125
14150
  now_value = Option$None$8$;
14126
14151
  } else {
14127
- const _bind$4 = Yoorkin$jmop$$Any$unwrap_value(now, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:328:12-328:30");
14152
+ const _bind$3 = Yoorkin$jmop$$Any$unwrap_value(now, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:325:12-325:30");
14153
+ let _tmp$2;
14154
+ if (_bind$3.$tag === 1) {
14155
+ const _ok = _bind$3;
14156
+ _tmp$2 = _ok._0;
14157
+ } else {
14158
+ const _err = _bind$3;
14159
+ const _tmp$3 = _err._0;
14160
+ _try_err = _tmp$3;
14161
+ break _L;
14162
+ }
14163
+ const _bind$4 = Yoorkin$jmop$$Value$to_number(_tmp$2, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:325:12-325:42");
14128
14164
  let _tmp$3;
14129
14165
  if (_bind$4.$tag === 1) {
14130
14166
  const _ok = _bind$4;
@@ -14135,28 +14171,17 @@ function zxch3n$flock$flock$$Flock$put_mvr_ffi(self, key, value, now) {
14135
14171
  _try_err = _tmp$4;
14136
14172
  break _L;
14137
14173
  }
14138
- const _bind$5 = Yoorkin$jmop$$Value$to_number(_tmp$3, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:328:12-328:42");
14139
- let _tmp$4;
14140
- if (_bind$5.$tag === 1) {
14141
- const _ok = _bind$5;
14142
- _tmp$4 = _ok._0;
14143
- } else {
14144
- const _err = _bind$5;
14145
- const _tmp$5 = _err._0;
14146
- _try_err = _tmp$5;
14147
- break _L;
14148
- }
14149
- now_value = new Option$Some$8$(_tmp$4);
14174
+ now_value = new Option$Some$8$(_tmp$3);
14150
14175
  }
14151
- const _bind$4 = zxch3n$flock$flock$$Flock$put_mvr$46$inner(self, key_json, value_json, now_value);
14152
- if (_bind$4.$tag === 1) {
14153
- const _ok = _bind$4;
14176
+ const _bind$3 = zxch3n$flock$flock$$Flock$put_mvr$46$inner(self, key_json, value_json, now_value);
14177
+ if (_bind$3.$tag === 1) {
14178
+ const _ok = _bind$3;
14154
14179
  _ok._0;
14155
14180
  return;
14156
14181
  } else {
14157
- const _err = _bind$4;
14158
- const _tmp$3 = _err._0;
14159
- _try_err = _tmp$3;
14182
+ const _err = _bind$3;
14183
+ const _tmp$2 = _err._0;
14184
+ _try_err = _tmp$2;
14160
14185
  break _L;
14161
14186
  }
14162
14187
  }
@@ -14165,7 +14190,7 @@ function zxch3n$flock$flock$$Flock$put_mvr_ffi(self, key, value, now) {
14165
14190
  function zxch3n$flock$flock$$Flock$get_mvr_ffi(self, key) {
14166
14191
  let _try_err;
14167
14192
  _L: {
14168
- const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:337:21-337:39");
14193
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:334:21-334:39");
14169
14194
  let key_value;
14170
14195
  if (_bind.$tag === 1) {
14171
14196
  const _ok = _bind;
@@ -14176,7 +14201,7 @@ function zxch3n$flock$flock$$Flock$get_mvr_ffi(self, key) {
14176
14201
  _try_err = _tmp;
14177
14202
  break _L;
14178
14203
  }
14179
- const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:338:40-338:60");
14204
+ const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:335:40-335:60");
14180
14205
  let key_arr;
14181
14206
  if (_bind$2.$tag === 1) {
14182
14207
  const _ok = _bind$2;
@@ -14211,7 +14236,7 @@ function zxch3n$flock$flock$$Flock$get_mvr_ffi(self, key) {
14211
14236
  function zxch3n$flock$flock$$from_json_ffi(json, peer_id) {
14212
14237
  let _try_err;
14213
14238
  _L: {
14214
- const _bind = Yoorkin$jmop$$Any$unwrap_value(json, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:348:22-348:41");
14239
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(json, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:345:22-345:41");
14215
14240
  let json_value;
14216
14241
  if (_bind.$tag === 1) {
14217
14242
  const _ok = _bind;
@@ -14223,7 +14248,7 @@ function zxch3n$flock$flock$$from_json_ffi(json, peer_id) {
14223
14248
  break _L;
14224
14249
  }
14225
14250
  const parsed = zxch3n$flock$flock$$value_to_json(json_value);
14226
- const _bind$2 = Yoorkin$jmop$$Any$unwrap_value(peer_id, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:350:22-350:44");
14251
+ const _bind$2 = Yoorkin$jmop$$Any$unwrap_value(peer_id, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:347:22-347:44");
14227
14252
  let peer_value;
14228
14253
  if (_bind$2.$tag === 1) {
14229
14254
  const _ok = _bind$2;
@@ -14234,7 +14259,7 @@ function zxch3n$flock$flock$$from_json_ffi(json, peer_id) {
14234
14259
  _try_err = _tmp;
14235
14260
  break _L;
14236
14261
  }
14237
- const _bind$3 = Yoorkin$jmop$$Value$to_string(peer_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:351:20-351:42");
14262
+ const _bind$3 = Yoorkin$jmop$$Value$to_string(peer_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:348:20-348:42");
14238
14263
  let peer_hex;
14239
14264
  if (_bind$3.$tag === 1) {
14240
14265
  const _ok = _bind$3;
@@ -14265,7 +14290,7 @@ function zxch3n$flock$flock$$Flock$scan_ffi(self, start, end, prefix) {
14265
14290
  if (zxch3n$flock$flock$$any_is_undefined(start) || zxch3n$flock$flock$$any_is_null(start)) {
14266
14291
  start_bound = $64$zxch3n$47$flock$47$sorted_map$46$Bound$Unbounded$29$;
14267
14292
  } else {
14268
- const _bind = Yoorkin$jmop$$Any$unwrap_value(start, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:367:25-367:45");
14293
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(start, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:364:25-364:45");
14269
14294
  let start_value;
14270
14295
  if (_bind.$tag === 1) {
14271
14296
  const _ok = _bind;
@@ -14282,7 +14307,7 @@ function zxch3n$flock$flock$$Flock$scan_ffi(self, start, end, prefix) {
14282
14307
  if (zxch3n$flock$flock$$any_is_undefined(end) || zxch3n$flock$flock$$any_is_null(end)) {
14283
14308
  end_bound = $64$zxch3n$47$flock$47$sorted_map$46$Bound$Unbounded$29$;
14284
14309
  } else {
14285
- const _bind = Yoorkin$jmop$$Any$unwrap_value(end, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:373:23-373:41");
14310
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(end, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:370:23-370:41");
14286
14311
  let end_value;
14287
14312
  if (_bind.$tag === 1) {
14288
14313
  const _ok = _bind;
@@ -14299,7 +14324,7 @@ function zxch3n$flock$flock$$Flock$scan_ffi(self, start, end, prefix) {
14299
14324
  if (zxch3n$flock$flock$$any_is_undefined(prefix) || zxch3n$flock$flock$$any_is_null(prefix)) {
14300
14325
  prefix_filter = Option$None$29$;
14301
14326
  } else {
14302
- const _bind = Yoorkin$jmop$$Any$unwrap_value(prefix, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:379:26-379:47");
14327
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(prefix, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:376:26-376:47");
14303
14328
  let prefix_value;
14304
14329
  if (_bind.$tag === 1) {
14305
14330
  const _ok = _bind;
@@ -14310,7 +14335,7 @@ function zxch3n$flock$flock$$Flock$scan_ffi(self, start, end, prefix) {
14310
14335
  _try_err = _tmp;
14311
14336
  break _L;
14312
14337
  }
14313
- const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(prefix_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:380:45-380:68");
14338
+ const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(prefix_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:377:45-377:68");
14314
14339
  let prefix_arr;
14315
14340
  if (_bind$2.$tag === 1) {
14316
14341
  const _ok = _bind$2;
@@ -14337,7 +14362,7 @@ function zxch3n$flock$flock$$Flock$scan_ffi(self, start, end, prefix) {
14337
14362
  }
14338
14363
  prefix_filter = new Option$Some$29$(_p);
14339
14364
  }
14340
- const rows = moonbitlang$core$array$$Array$new$46$inner$14$(0);
14365
+ const rows = moonbitlang$core$array$$Array$new$46$inner$12$(0);
14341
14366
  let scan_iter;
14342
14367
  if (prefix_filter.$tag === 1) {
14343
14368
  const _Some = prefix_filter;
@@ -14357,7 +14382,7 @@ function zxch3n$flock$flock$$Flock$scan_ffi(self, start, end, prefix) {
14357
14382
  const _data = _Some;
14358
14383
  moonbitlang$core$builtin$$Map$set$37$(obj, "value", _data);
14359
14384
  }
14360
- moonbitlang$core$array$$Array$push$14$(rows, moonbitlang$core$builtin$$ToJson$to_json$33$(obj));
14385
+ moonbitlang$core$array$$Array$push$12$(rows, moonbitlang$core$builtin$$ToJson$to_json$33$(obj));
14361
14386
  return 1;
14362
14387
  });
14363
14388
  const _p = zxch3n$flock$flock$$json_to_value(moonbitlang$core$builtin$$ToJson$to_json$32$(rows));
@@ -14406,7 +14431,7 @@ function zxch3n$flock$flock$$raw_value_payload_to_json(value) {
14406
14431
  function zxch3n$flock$flock$$Flock$subscribe_ffi(self, listener) {
14407
14432
  let _try_err;
14408
14433
  _L: {
14409
- const _bind = Yoorkin$jmop$$Any$unwrap_value(listener, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:429:26-429:49");
14434
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(listener, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:426:26-426:49");
14410
14435
  let listener_value;
14411
14436
  if (_bind.$tag === 1) {
14412
14437
  const _ok = _bind;
@@ -14418,7 +14443,7 @@ function zxch3n$flock$flock$$Flock$subscribe_ffi(self, listener) {
14418
14443
  break _L;
14419
14444
  }
14420
14445
  const unsubscribe = zxch3n$flock$flock$$Flock$subscribe(self, (batch) => {
14421
- const events = moonbitlang$core$array$$Array$new$46$inner$14$(0);
14446
+ const events = moonbitlang$core$array$$Array$new$46$inner$12$(0);
14422
14447
  let _tmp = 0;
14423
14448
  while (true) {
14424
14449
  const i = _tmp;
@@ -14443,7 +14468,7 @@ function zxch3n$flock$flock$$Flock$subscribe_ffi(self, listener) {
14443
14468
  moonbitlang$core$builtin$$Map$set$37$(obj, "metadata", zxch3n$flock$flock$$metadata_map_to_json(_meta));
14444
14469
  }
14445
14470
  moonbitlang$core$builtin$$Map$set$37$(obj, "payload", zxch3n$flock$flock$$raw_value_payload_to_json(_value));
14446
- moonbitlang$core$array$$Array$push$14$(events, moonbitlang$core$builtin$$ToJson$to_json$33$(obj));
14471
+ moonbitlang$core$array$$Array$push$12$(events, moonbitlang$core$builtin$$ToJson$to_json$33$(obj));
14447
14472
  _tmp = i + 1 | 0;
14448
14473
  continue;
14449
14474
  } else {