@powerlines/deepkit 0.5.3 → 0.5.4

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.
Files changed (45) hide show
  1. package/dist/capnp.cjs +47 -49
  2. package/dist/capnp.js +2 -4
  3. package/dist/chunk-23YNDVRG.js +34 -0
  4. package/dist/chunk-5MYRXRS2.cjs +2191 -0
  5. package/dist/{chunk-MSO7PT57.cjs → chunk-7FXYDYVQ.cjs} +128 -128
  6. package/dist/{chunk-B47NLUDW.cjs → chunk-7QZGCBH7.cjs} +2 -2
  7. package/dist/{chunk-47WBQTA6.js → chunk-ALM6UMVU.js} +1 -1
  8. package/dist/chunk-BLLXF42T.cjs +41 -0
  9. package/dist/{chunk-3PKIT7K2.cjs → chunk-CJMS4ES3.cjs} +4 -4
  10. package/dist/{chunk-JSH5MVQG.js → chunk-EJIBYA23.js} +2 -2
  11. package/dist/{chunk-GVS5O43Z.js → chunk-JE36RI7U.js} +2 -2
  12. package/dist/chunk-KGCRCOJQ.cjs +22 -0
  13. package/dist/chunk-SHUYVCID.js +4 -0
  14. package/dist/{chunk-XI47ZADG.js → chunk-TDYIUJGY.js} +9 -9
  15. package/dist/chunk-USNT2KNT.cjs +6 -0
  16. package/dist/chunk-WL27D7L7.js +2183 -0
  17. package/dist/chunk-XHSSGKUT.js +16 -0
  18. package/dist/{chunk-KDKCOXXC.cjs → chunk-YAEE7DDW.cjs} +5 -5
  19. package/dist/esbuild-plugin.cjs +5 -6
  20. package/dist/esbuild-plugin.js +4 -5
  21. package/dist/index.cjs +66 -68
  22. package/dist/index.js +8 -10
  23. package/dist/reflect-type.cjs +6 -8
  24. package/dist/reflect-type.js +5 -7
  25. package/dist/resolve-reflections.cjs +3 -3
  26. package/dist/resolve-reflections.js +2 -2
  27. package/dist/transformer.cjs +4 -5
  28. package/dist/transformer.js +2 -3
  29. package/dist/transpile.cjs +4 -5
  30. package/dist/transpile.js +3 -4
  31. package/dist/utilities.cjs +9 -11
  32. package/dist/utilities.js +2 -4
  33. package/package.json +4 -4
  34. package/dist/chunk-35PNVYKI.js +0 -187
  35. package/dist/chunk-3GQAWCBQ.js +0 -10
  36. package/dist/chunk-3GRTJOID.cjs +0 -193
  37. package/dist/chunk-4UQ4UDET.cjs +0 -19685
  38. package/dist/chunk-5NPGWGPO.cjs +0 -109
  39. package/dist/chunk-BGYQAVKQ.cjs +0 -13
  40. package/dist/chunk-F5QUFY7D.cjs +0 -135
  41. package/dist/chunk-KWUXT6EF.js +0 -127
  42. package/dist/chunk-O2LKJ62Q.cjs +0 -2863
  43. package/dist/chunk-U7WEV6HK.js +0 -19678
  44. package/dist/chunk-W423FBJ2.js +0 -2854
  45. package/dist/chunk-XU55W26B.js +0 -109
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunk4UQ4UDET_cjs = require('./chunk-4UQ4UDET.cjs');
4
- var chunkBGYQAVKQ_cjs = require('./chunk-BGYQAVKQ.cjs');
3
+ var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
4
+ var type = require('@powerlines/deepkit/vendor/type');
5
5
  var typeChecks = require('@stryke/type-checks');
6
6
  var $ = require('@stryke/capnp');
7
7
 
@@ -26,14 +26,14 @@ function _interopNamespace(e) {
26
26
  var $__namespace = /*#__PURE__*/_interopNamespace($);
27
27
 
28
28
  BigInt("0xae3c363dcecf2729");
29
- var ReflectionVisibility2 = {
29
+ var ReflectionVisibility = {
30
30
  PUBLIC: 0,
31
31
  PROTECTED: 1,
32
32
  PRIVATE: 2
33
33
  };
34
34
  var TagsReflection = class extends $__namespace.Struct {
35
35
  static {
36
- chunkBGYQAVKQ_cjs.__name(this, "TagsReflection");
36
+ chunkUSNT2KNT_cjs.__name(this, "TagsReflection");
37
37
  }
38
38
  static _capnp = {
39
39
  displayName: "TagsReflection",
@@ -125,7 +125,7 @@ var DefaultValueReflection_Value_Which = {
125
125
  };
126
126
  var DefaultValueReflection_Value = class extends $__namespace.Struct {
127
127
  static {
128
- chunkBGYQAVKQ_cjs.__name(this, "DefaultValueReflection_Value");
128
+ chunkUSNT2KNT_cjs.__name(this, "DefaultValueReflection_Value");
129
129
  }
130
130
  static UNDEFINED = DefaultValueReflection_Value_Which.UNDEFINED;
131
131
  static BOOLEAN = DefaultValueReflection_Value_Which.BOOLEAN;
@@ -196,7 +196,7 @@ var DefaultValueReflection_Value = class extends $__namespace.Struct {
196
196
  };
197
197
  var DefaultValueReflection = class extends $__namespace.Struct {
198
198
  static {
199
- chunkBGYQAVKQ_cjs.__name(this, "DefaultValueReflection");
199
+ chunkUSNT2KNT_cjs.__name(this, "DefaultValueReflection");
200
200
  }
201
201
  static _capnp = {
202
202
  displayName: "DefaultValueReflection",
@@ -215,7 +215,7 @@ var DefaultValueReflection = class extends $__namespace.Struct {
215
215
  };
216
216
  var SerializedTypeReference = class extends $__namespace.Struct {
217
217
  static {
218
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeReference");
218
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeReference");
219
219
  }
220
220
  static _capnp = {
221
221
  displayName: "SerializedTypeReference",
@@ -234,7 +234,7 @@ var SerializedTypeReference = class extends $__namespace.Struct {
234
234
  };
235
235
  var IndexAccessOrigin = class extends $__namespace.Struct {
236
236
  static {
237
- chunkBGYQAVKQ_cjs.__name(this, "IndexAccessOrigin");
237
+ chunkUSNT2KNT_cjs.__name(this, "IndexAccessOrigin");
238
238
  }
239
239
  static _capnp = {
240
240
  displayName: "IndexAccessOrigin",
@@ -283,7 +283,7 @@ var IndexAccessOrigin = class extends $__namespace.Struct {
283
283
  };
284
284
  var EntityOptions_EntityIndexOptions = class extends $__namespace.Struct {
285
285
  static {
286
- chunkBGYQAVKQ_cjs.__name(this, "EntityOptions_EntityIndexOptions");
286
+ chunkUSNT2KNT_cjs.__name(this, "EntityOptions_EntityIndexOptions");
287
287
  }
288
288
  static _capnp = {
289
289
  displayName: "EntityIndexOptions",
@@ -324,7 +324,7 @@ var EntityOptions_EntityIndexOptions = class extends $__namespace.Struct {
324
324
  };
325
325
  var EntityOptions = class _EntityOptions extends $__namespace.Struct {
326
326
  static {
327
- chunkBGYQAVKQ_cjs.__name(this, "EntityOptions");
327
+ chunkUSNT2KNT_cjs.__name(this, "EntityOptions");
328
328
  }
329
329
  static EntityIndexOptions = EntityOptions_EntityIndexOptions;
330
330
  static _capnp = {
@@ -387,7 +387,7 @@ var EntityOptions = class _EntityOptions extends $__namespace.Struct {
387
387
  };
388
388
  var SerializedTypeObjectLiteral = class _SerializedTypeObjectLiteral extends $__namespace.Struct {
389
389
  static {
390
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeObjectLiteral");
390
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeObjectLiteral");
391
391
  }
392
392
  static _capnp = {
393
393
  displayName: "SerializedTypeObjectLiteral",
@@ -505,7 +505,7 @@ var SerializedTypeObjectLiteral = class _SerializedTypeObjectLiteral extends $__
505
505
  };
506
506
  var SerializedTypeClassType = class _SerializedTypeClassType extends $__namespace.Struct {
507
507
  static {
508
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeClassType");
508
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeClassType");
509
509
  }
510
510
  static _capnp = {
511
511
  displayName: "SerializedTypeClassType",
@@ -697,7 +697,7 @@ var SerializedTypeClassType = class _SerializedTypeClassType extends $__namespac
697
697
  };
698
698
  var SerializedTypeParameter = class _SerializedTypeParameter extends $__namespace.Struct {
699
699
  static {
700
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeParameter");
700
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeParameter");
701
701
  }
702
702
  static _capnp = {
703
703
  displayName: "SerializedTypeParameter",
@@ -856,7 +856,7 @@ var SerializedTypeParameter = class _SerializedTypeParameter extends $__namespac
856
856
  };
857
857
  var SerializedTypeMethod = class _SerializedTypeMethod extends $__namespace.Struct {
858
858
  static {
859
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeMethod");
859
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeMethod");
860
860
  }
861
861
  static _capnp = {
862
862
  displayName: "SerializedTypeMethod",
@@ -1022,7 +1022,7 @@ var SerializedTypeMethod = class _SerializedTypeMethod extends $__namespace.Stru
1022
1022
  };
1023
1023
  var SerializedTypeProperty = class _SerializedTypeProperty extends $__namespace.Struct {
1024
1024
  static {
1025
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeProperty");
1025
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeProperty");
1026
1026
  }
1027
1027
  static _capnp = {
1028
1028
  displayName: "SerializedTypeProperty",
@@ -1193,7 +1193,7 @@ var SerializedTypeProperty = class _SerializedTypeProperty extends $__namespace.
1193
1193
  };
1194
1194
  var SerializedTypeFunction = class _SerializedTypeFunction extends $__namespace.Struct {
1195
1195
  static {
1196
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeFunction");
1196
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeFunction");
1197
1197
  }
1198
1198
  static _capnp = {
1199
1199
  displayName: "SerializedTypeFunction",
@@ -1359,7 +1359,7 @@ var SerializedTypeFunction = class _SerializedTypeFunction extends $__namespace.
1359
1359
  };
1360
1360
  var SerializedTypePromise = class _SerializedTypePromise extends $__namespace.Struct {
1361
1361
  static {
1362
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypePromise");
1362
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypePromise");
1363
1363
  }
1364
1364
  static _capnp = {
1365
1365
  displayName: "SerializedTypePromise",
@@ -1446,7 +1446,7 @@ var SerializedTypePromise = class _SerializedTypePromise extends $__namespace.St
1446
1446
  };
1447
1447
  var SerializedTypeEnumEntry = class extends $__namespace.Struct {
1448
1448
  static {
1449
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeEnumEntry");
1449
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeEnumEntry");
1450
1450
  }
1451
1451
  static _capnp = {
1452
1452
  displayName: "SerializedTypeEnumEntry",
@@ -1471,7 +1471,7 @@ var SerializedTypeEnumEntry = class extends $__namespace.Struct {
1471
1471
  };
1472
1472
  var SerializedTypeEnum = class _SerializedTypeEnum extends $__namespace.Struct {
1473
1473
  static {
1474
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeEnum");
1474
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeEnum");
1475
1475
  }
1476
1476
  static _capnp = {
1477
1477
  displayName: "SerializedTypeEnum",
@@ -1625,7 +1625,7 @@ var SerializedTypeEnum = class _SerializedTypeEnum extends $__namespace.Struct {
1625
1625
  };
1626
1626
  var SerializedTypeUnion = class _SerializedTypeUnion extends $__namespace.Struct {
1627
1627
  static {
1628
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeUnion");
1628
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeUnion");
1629
1629
  }
1630
1630
  static _capnp = {
1631
1631
  displayName: "SerializedTypeUnion",
@@ -1725,7 +1725,7 @@ var SerializedTypeUnion = class _SerializedTypeUnion extends $__namespace.Struct
1725
1725
  };
1726
1726
  var SerializedTypeIntersection = class _SerializedTypeIntersection extends $__namespace.Struct {
1727
1727
  static {
1728
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeIntersection");
1728
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeIntersection");
1729
1729
  }
1730
1730
  static _capnp = {
1731
1731
  displayName: "SerializedTypeIntersection",
@@ -1825,7 +1825,7 @@ var SerializedTypeIntersection = class _SerializedTypeIntersection extends $__na
1825
1825
  };
1826
1826
  var SerializedTypeArray = class _SerializedTypeArray extends $__namespace.Struct {
1827
1827
  static {
1828
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeArray");
1828
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeArray");
1829
1829
  }
1830
1830
  static _capnp = {
1831
1831
  displayName: "SerializedTypeArray",
@@ -1942,7 +1942,7 @@ var SerializedTypeArray = class _SerializedTypeArray extends $__namespace.Struct
1942
1942
  };
1943
1943
  var SerializedTypeIndexSignature = class _SerializedTypeIndexSignature extends $__namespace.Struct {
1944
1944
  static {
1945
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeIndexSignature");
1945
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeIndexSignature");
1946
1946
  }
1947
1947
  static _capnp = {
1948
1948
  displayName: "SerializedTypeIndexSignature",
@@ -2059,7 +2059,7 @@ var SerializedTypeIndexSignature = class _SerializedTypeIndexSignature extends $
2059
2059
  };
2060
2060
  var SerializedTypePropertySignature = class _SerializedTypePropertySignature extends $__namespace.Struct {
2061
2061
  static {
2062
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypePropertySignature");
2062
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypePropertySignature");
2063
2063
  }
2064
2064
  static _capnp = {
2065
2065
  displayName: "SerializedTypePropertySignature",
@@ -2218,7 +2218,7 @@ var SerializedTypePropertySignature = class _SerializedTypePropertySignature ext
2218
2218
  };
2219
2219
  var SerializedTypeMethodSignature = class _SerializedTypeMethodSignature extends $__namespace.Struct {
2220
2220
  static {
2221
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeMethodSignature");
2221
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeMethodSignature");
2222
2222
  }
2223
2223
  static _capnp = {
2224
2224
  displayName: "SerializedTypeMethodSignature",
@@ -2366,7 +2366,7 @@ var SerializedTypeMethodSignature = class _SerializedTypeMethodSignature extends
2366
2366
  };
2367
2367
  var SerializedTypeTypeParameter = class _SerializedTypeTypeParameter extends $__namespace.Struct {
2368
2368
  static {
2369
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeTypeParameter");
2369
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeTypeParameter");
2370
2370
  }
2371
2371
  static _capnp = {
2372
2372
  displayName: "SerializedTypeTypeParameter",
@@ -2453,7 +2453,7 @@ var SerializedTypeTypeParameter = class _SerializedTypeTypeParameter extends $__
2453
2453
  };
2454
2454
  var SerializedTypeInfer = class _SerializedTypeInfer extends $__namespace.Struct {
2455
2455
  static {
2456
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeInfer");
2456
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeInfer");
2457
2457
  }
2458
2458
  static _capnp = {
2459
2459
  displayName: "SerializedTypeInfer",
@@ -2534,7 +2534,7 @@ var SerializedTypeInfer = class _SerializedTypeInfer extends $__namespace.Struct
2534
2534
  };
2535
2535
  var SerializedTypeTupleMember = class _SerializedTypeTupleMember extends $__namespace.Struct {
2536
2536
  static {
2537
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeTupleMember");
2537
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeTupleMember");
2538
2538
  }
2539
2539
  static _capnp = {
2540
2540
  displayName: "SerializedTypeTupleMember",
@@ -2645,7 +2645,7 @@ var SerializedTypeTupleMember = class _SerializedTypeTupleMember extends $__name
2645
2645
  };
2646
2646
  var SerializedTypeTuple = class _SerializedTypeTuple extends $__namespace.Struct {
2647
2647
  static {
2648
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeTuple");
2648
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeTuple");
2649
2649
  }
2650
2650
  static _capnp = {
2651
2651
  displayName: "SerializedTypeTuple",
@@ -2745,7 +2745,7 @@ var SerializedTypeTuple = class _SerializedTypeTuple extends $__namespace.Struct
2745
2745
  };
2746
2746
  var SerializedTypeRest = class _SerializedTypeRest extends $__namespace.Struct {
2747
2747
  static {
2748
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeRest");
2748
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeRest");
2749
2749
  }
2750
2750
  static _capnp = {
2751
2751
  displayName: "SerializedTypeRest",
@@ -2844,7 +2844,7 @@ var SerializedTypeRest = class _SerializedTypeRest extends $__namespace.Struct {
2844
2844
  };
2845
2845
  var SimpleSerializedType = class _SimpleSerializedType extends $__namespace.Struct {
2846
2846
  static {
2847
- chunkBGYQAVKQ_cjs.__name(this, "SimpleSerializedType");
2847
+ chunkUSNT2KNT_cjs.__name(this, "SimpleSerializedType");
2848
2848
  }
2849
2849
  static _capnp = {
2850
2850
  displayName: "SimpleSerializedType",
@@ -2943,7 +2943,7 @@ var SimpleSerializedType = class _SimpleSerializedType extends $__namespace.Stru
2943
2943
  };
2944
2944
  var SerializedTypeLiteralSymbol = class extends $__namespace.Struct {
2945
2945
  static {
2946
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeLiteralSymbol");
2946
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeLiteralSymbol");
2947
2947
  }
2948
2948
  static _capnp = {
2949
2949
  displayName: "SerializedTypeLiteralSymbol",
@@ -2972,7 +2972,7 @@ var SerializedTypeLiteralSymbol = class extends $__namespace.Struct {
2972
2972
  };
2973
2973
  var SerializedTypeLiteralBigInt = class extends $__namespace.Struct {
2974
2974
  static {
2975
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeLiteralBigInt");
2975
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeLiteralBigInt");
2976
2976
  }
2977
2977
  static _capnp = {
2978
2978
  displayName: "SerializedTypeLiteralBigInt",
@@ -3001,7 +3001,7 @@ var SerializedTypeLiteralBigInt = class extends $__namespace.Struct {
3001
3001
  };
3002
3002
  var SerializedTypeLiteralRegex = class extends $__namespace.Struct {
3003
3003
  static {
3004
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeLiteralRegex");
3004
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeLiteralRegex");
3005
3005
  }
3006
3006
  static _capnp = {
3007
3007
  displayName: "SerializedTypeLiteralRegex",
@@ -3038,7 +3038,7 @@ var SerializedTypeLiteral_Literal_Which = {
3038
3038
  };
3039
3039
  var SerializedTypeLiteral_Literal = class extends $__namespace.Struct {
3040
3040
  static {
3041
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeLiteral_Literal");
3041
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeLiteral_Literal");
3042
3042
  }
3043
3043
  static SYMBOL = SerializedTypeLiteral_Literal_Which.SYMBOL;
3044
3044
  static STRING = SerializedTypeLiteral_Literal_Which.STRING;
@@ -3168,7 +3168,7 @@ var SerializedTypeLiteral_Literal = class extends $__namespace.Struct {
3168
3168
  };
3169
3169
  var SerializedTypeLiteral = class _SerializedTypeLiteral extends $__namespace.Struct {
3170
3170
  static {
3171
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeLiteral");
3171
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeLiteral");
3172
3172
  }
3173
3173
  static _capnp = {
3174
3174
  displayName: "SerializedTypeLiteral",
@@ -3255,7 +3255,7 @@ var SerializedTypeLiteral = class _SerializedTypeLiteral extends $__namespace.St
3255
3255
  };
3256
3256
  var SerializedTypeTemplateLiteral = class _SerializedTypeTemplateLiteral extends $__namespace.Struct {
3257
3257
  static {
3258
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeTemplateLiteral");
3258
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeTemplateLiteral");
3259
3259
  }
3260
3260
  static _capnp = {
3261
3261
  displayName: "SerializedTypeTemplateLiteral",
@@ -3355,7 +3355,7 @@ var SerializedTypeTemplateLiteral = class _SerializedTypeTemplateLiteral extends
3355
3355
  };
3356
3356
  var SerializedTypeOther = class extends $__namespace.Struct {
3357
3357
  static {
3358
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypeOther");
3358
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypeOther");
3359
3359
  }
3360
3360
  static _capnp = {
3361
3361
  displayName: "SerializedTypeOther",
@@ -3409,7 +3409,7 @@ var SerializedType_Type_Which = {
3409
3409
  };
3410
3410
  var SerializedType_Type = class extends $__namespace.Struct {
3411
3411
  static {
3412
- chunkBGYQAVKQ_cjs.__name(this, "SerializedType_Type");
3412
+ chunkUSNT2KNT_cjs.__name(this, "SerializedType_Type");
3413
3413
  }
3414
3414
  static SIMPLE = SerializedType_Type_Which.SIMPLE;
3415
3415
  static LITERAL = SerializedType_Type_Which.LITERAL;
@@ -4027,7 +4027,7 @@ var SerializedType_Type = class extends $__namespace.Struct {
4027
4027
  };
4028
4028
  var SerializedType = class extends $__namespace.Struct {
4029
4029
  static {
4030
- chunkBGYQAVKQ_cjs.__name(this, "SerializedType");
4030
+ chunkUSNT2KNT_cjs.__name(this, "SerializedType");
4031
4031
  }
4032
4032
  static _capnp = {
4033
4033
  displayName: "SerializedType",
@@ -4046,7 +4046,7 @@ var SerializedType = class extends $__namespace.Struct {
4046
4046
  };
4047
4047
  var SerializedTypes = class _SerializedTypes extends $__namespace.Struct {
4048
4048
  static {
4049
- chunkBGYQAVKQ_cjs.__name(this, "SerializedTypes");
4049
+ chunkUSNT2KNT_cjs.__name(this, "SerializedTypes");
4050
4050
  }
4051
4051
  static _capnp = {
4052
4052
  displayName: "SerializedTypes",
@@ -4148,7 +4148,7 @@ function convertToCapnp(serializedTypes, result) {
4148
4148
  });
4149
4149
  return result;
4150
4150
  }
4151
- chunkBGYQAVKQ_cjs.__name(convertToCapnp, "convertToCapnp");
4151
+ chunkUSNT2KNT_cjs.__name(convertToCapnp, "convertToCapnp");
4152
4152
  function convertFromCapnp(serializedTypes) {
4153
4153
  if (!serializedTypes) {
4154
4154
  throw new Error("Invalid serialized type provided for conversion.");
@@ -4160,7 +4160,7 @@ function convertFromCapnp(serializedTypes) {
4160
4160
  });
4161
4161
  return result;
4162
4162
  }
4163
- chunkBGYQAVKQ_cjs.__name(convertFromCapnp, "convertFromCapnp");
4163
+ chunkUSNT2KNT_cjs.__name(convertFromCapnp, "convertFromCapnp");
4164
4164
  function convertToCapnpTagsReflection(result, serializedType) {
4165
4165
  if (serializedType?.alias?.length) {
4166
4166
  const alias = result._initAlias(serializedType.alias.length);
@@ -4186,7 +4186,7 @@ function convertToCapnpTagsReflection(result, serializedType) {
4186
4186
  }
4187
4187
  return result;
4188
4188
  }
4189
- chunkBGYQAVKQ_cjs.__name(convertToCapnpTagsReflection, "convertToCapnpTagsReflection");
4189
+ chunkUSNT2KNT_cjs.__name(convertToCapnpTagsReflection, "convertToCapnpTagsReflection");
4190
4190
  function convertFromCapnpTagsReflection(serializedType) {
4191
4191
  return serializedType._hasTags() ? {
4192
4192
  alias: serializedType.tags?.alias?.length ? serializedType.tags?.alias.map((value) => value) : void 0,
@@ -4199,7 +4199,7 @@ function convertFromCapnpTagsReflection(serializedType) {
4199
4199
  permission: serializedType.tags?.permission?.length ? serializedType.tags?.permission?.map((value) => value) : void 0
4200
4200
  } : void 0;
4201
4201
  }
4202
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpTagsReflection, "convertFromCapnpTagsReflection");
4202
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpTagsReflection, "convertFromCapnpTagsReflection");
4203
4203
  function convertToCapnpIndexAccessOrigin(result, serializedType) {
4204
4204
  const indexAccessOriginIndex = result._initIndex();
4205
4205
  indexAccessOriginIndex.id = serializedType?.index ?? 0;
@@ -4207,64 +4207,64 @@ function convertToCapnpIndexAccessOrigin(result, serializedType) {
4207
4207
  indexAccessOriginContainer.id = serializedType?.container ?? 0;
4208
4208
  return result;
4209
4209
  }
4210
- chunkBGYQAVKQ_cjs.__name(convertToCapnpIndexAccessOrigin, "convertToCapnpIndexAccessOrigin");
4210
+ chunkUSNT2KNT_cjs.__name(convertToCapnpIndexAccessOrigin, "convertToCapnpIndexAccessOrigin");
4211
4211
  function convertFromCapnpIndexAccessOrigin(serializedType) {
4212
4212
  return serializedType._hasIndexAccessOrigin() ? {
4213
4213
  container: Number(serializedType.indexAccessOrigin?.container.id),
4214
4214
  index: Number(serializedType.indexAccessOrigin?.index.id)
4215
4215
  } : void 0;
4216
4216
  }
4217
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpIndexAccessOrigin, "convertFromCapnpIndexAccessOrigin");
4217
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpIndexAccessOrigin, "convertFromCapnpIndexAccessOrigin");
4218
4218
  function convertToCapnpBase(serializedType, result) {
4219
- if (serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.objectLiteral) {
4219
+ if (serializedType.kind === type.ReflectionKind.objectLiteral) {
4220
4220
  const objectLiteral = result._initObjectLiteral();
4221
4221
  convertToCapnpObjectLiteral(serializedType, objectLiteral);
4222
- } else if (serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.class) {
4222
+ } else if (serializedType.kind === type.ReflectionKind.class) {
4223
4223
  const classType = result._initClassType();
4224
4224
  convertToCapnpClassType(serializedType, classType);
4225
- } else if (serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.parameter) {
4225
+ } else if (serializedType.kind === type.ReflectionKind.parameter) {
4226
4226
  const parameter = result._initParameter();
4227
4227
  convertToCapnpParameter(serializedType, parameter);
4228
- } else if (serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.function) {
4228
+ } else if (serializedType.kind === type.ReflectionKind.function) {
4229
4229
  const functionType = result._initFunction();
4230
4230
  convertToCapnpFunction(serializedType, functionType);
4231
- } else if (serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.method) {
4231
+ } else if (serializedType.kind === type.ReflectionKind.method) {
4232
4232
  const methodType = result._initMethod();
4233
4233
  convertToCapnpMethod(serializedType, methodType);
4234
- } else if (serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.infer) {
4234
+ } else if (serializedType.kind === type.ReflectionKind.infer) {
4235
4235
  const inferType = result._initInfer();
4236
4236
  convertToCapnpInfer(serializedType, inferType);
4237
- } else if (serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.union) {
4237
+ } else if (serializedType.kind === type.ReflectionKind.union) {
4238
4238
  const unionType = result._initUnion();
4239
4239
  convertToCapnpUnion(serializedType, unionType);
4240
- } else if (serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.array) {
4240
+ } else if (serializedType.kind === type.ReflectionKind.array) {
4241
4241
  const arrayType = result._initArray();
4242
4242
  convertToCapnpArray(serializedType, arrayType);
4243
- } else if (serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.intersection) {
4243
+ } else if (serializedType.kind === type.ReflectionKind.intersection) {
4244
4244
  const intersectionType = result._initIntersection();
4245
4245
  convertToCapnpIntersection(serializedType, intersectionType);
4246
- } else if (serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.enum) {
4246
+ } else if (serializedType.kind === type.ReflectionKind.enum) {
4247
4247
  const enumType = result._initEnum();
4248
4248
  convertToCapnpEnum(serializedType, enumType);
4249
- } else if (serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.property) {
4249
+ } else if (serializedType.kind === type.ReflectionKind.property) {
4250
4250
  const propertyType = result._initProperty();
4251
4251
  convertToCapnpProperty(serializedType, propertyType);
4252
- } else if (serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.tuple) {
4252
+ } else if (serializedType.kind === type.ReflectionKind.tuple) {
4253
4253
  const tupleType = result._initTuple();
4254
4254
  convertToCapnpTuple(serializedType, tupleType);
4255
- } else if (serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.tupleMember) {
4255
+ } else if (serializedType.kind === type.ReflectionKind.tupleMember) {
4256
4256
  const tupleMemberType = result._initTupleMember();
4257
4257
  convertToCapnpTupleMember(serializedType, tupleMemberType);
4258
- } else if (serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.propertySignature) {
4258
+ } else if (serializedType.kind === type.ReflectionKind.propertySignature) {
4259
4259
  const propertySignatureType = result._initPropertySignature();
4260
4260
  convertToCapnpPropertySignature(serializedType, propertySignatureType);
4261
- } else if (serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.methodSignature) {
4261
+ } else if (serializedType.kind === type.ReflectionKind.methodSignature) {
4262
4262
  const methodSignatureType = result._initMethodSignature();
4263
4263
  convertToCapnpMethodSignature(serializedType, methodSignatureType);
4264
- } else if (serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.literal) {
4264
+ } else if (serializedType.kind === type.ReflectionKind.literal) {
4265
4265
  const literalType = result._initLiteral();
4266
4266
  convertToCapnpLiteral(serializedType, literalType);
4267
- } else if (serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.never || serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.any || serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.unknown || serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.void || serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.object || serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.string || serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.number || serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.boolean || serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.symbol || serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.bigint || serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.null || serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.undefined || serializedType.kind === chunk4UQ4UDET_cjs.ReflectionKind.regexp) {
4267
+ } else if (serializedType.kind === type.ReflectionKind.never || serializedType.kind === type.ReflectionKind.any || serializedType.kind === type.ReflectionKind.unknown || serializedType.kind === type.ReflectionKind.void || serializedType.kind === type.ReflectionKind.object || serializedType.kind === type.ReflectionKind.string || serializedType.kind === type.ReflectionKind.number || serializedType.kind === type.ReflectionKind.boolean || serializedType.kind === type.ReflectionKind.symbol || serializedType.kind === type.ReflectionKind.bigint || serializedType.kind === type.ReflectionKind.null || serializedType.kind === type.ReflectionKind.undefined || serializedType.kind === type.ReflectionKind.regexp) {
4268
4268
  const simpleType = result._initSimple();
4269
4269
  convertToCapnpSimple(serializedType, simpleType);
4270
4270
  } else {
@@ -4273,7 +4273,7 @@ function convertToCapnpBase(serializedType, result) {
4273
4273
  }
4274
4274
  return result;
4275
4275
  }
4276
- chunkBGYQAVKQ_cjs.__name(convertToCapnpBase, "convertToCapnpBase");
4276
+ chunkUSNT2KNT_cjs.__name(convertToCapnpBase, "convertToCapnpBase");
4277
4277
  function convertFromCapnpBase(serializedType) {
4278
4278
  if (serializedType._isObjectLiteral) {
4279
4279
  return convertFromCapnpObjectLiteral(serializedType.objectLiteral);
@@ -4315,14 +4315,14 @@ function convertFromCapnpBase(serializedType) {
4315
4315
  throw new Error(`Unsupported serialized type kind: ${serializedType.toString()}`);
4316
4316
  }
4317
4317
  }
4318
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpBase, "convertFromCapnpBase");
4318
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpBase, "convertFromCapnpBase");
4319
4319
  function convertFromCapnpOther(serializedType) {
4320
4320
  return {
4321
4321
  kind: serializedType.kind,
4322
4322
  typeName: serializedType.typeName || void 0
4323
4323
  };
4324
4324
  }
4325
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpOther, "convertFromCapnpOther");
4325
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpOther, "convertFromCapnpOther");
4326
4326
  function convertFromCapnpSimple(serializedType) {
4327
4327
  const result = {
4328
4328
  kind: serializedType.kind,
@@ -4336,13 +4336,13 @@ function convertFromCapnpSimple(serializedType) {
4336
4336
  }
4337
4337
  return result;
4338
4338
  }
4339
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpSimple, "convertFromCapnpSimple");
4339
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpSimple, "convertFromCapnpSimple");
4340
4340
  function convertToCapnpOther(serializedType, result) {
4341
4341
  result.kind = serializedType.kind;
4342
4342
  result.typeName = serializedType.typeName || "";
4343
4343
  return result;
4344
4344
  }
4345
- chunkBGYQAVKQ_cjs.__name(convertToCapnpOther, "convertToCapnpOther");
4345
+ chunkUSNT2KNT_cjs.__name(convertToCapnpOther, "convertToCapnpOther");
4346
4346
  function convertToCapnpSimple(serializedType, result) {
4347
4347
  result.kind = serializedType.kind;
4348
4348
  result.typeName = serializedType.typeName || "";
@@ -4370,10 +4370,10 @@ function convertToCapnpSimple(serializedType, result) {
4370
4370
  }
4371
4371
  return result;
4372
4372
  }
4373
- chunkBGYQAVKQ_cjs.__name(convertToCapnpSimple, "convertToCapnpSimple");
4373
+ chunkUSNT2KNT_cjs.__name(convertToCapnpSimple, "convertToCapnpSimple");
4374
4374
  function convertFromCapnpLiteral(serializedType) {
4375
4375
  const result = {
4376
- kind: chunk4UQ4UDET_cjs.ReflectionKind.literal,
4376
+ kind: type.ReflectionKind.literal,
4377
4377
  literal: serializedType.literal._isString ? serializedType.literal.string : serializedType.literal._isNumber ? serializedType.literal.number : serializedType.literal._isBoolean ? serializedType.literal.boolean : serializedType.literal._isBigint ? {
4378
4378
  type: "bigint",
4379
4379
  value: serializedType.literal.bigint.value
@@ -4391,7 +4391,7 @@ function convertFromCapnpLiteral(serializedType) {
4391
4391
  };
4392
4392
  return result;
4393
4393
  }
4394
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpLiteral, "convertFromCapnpLiteral");
4394
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpLiteral, "convertFromCapnpLiteral");
4395
4395
  function convertToCapnpLiteral(serializedType, result) {
4396
4396
  result.kind = serializedType.kind;
4397
4397
  result.typeName = serializedType.typeName || "";
@@ -4435,10 +4435,10 @@ function convertToCapnpLiteral(serializedType, result) {
4435
4435
  }
4436
4436
  return result;
4437
4437
  }
4438
- chunkBGYQAVKQ_cjs.__name(convertToCapnpLiteral, "convertToCapnpLiteral");
4438
+ chunkUSNT2KNT_cjs.__name(convertToCapnpLiteral, "convertToCapnpLiteral");
4439
4439
  function convertFromCapnpMethodSignature(serializedType) {
4440
4440
  const result = {
4441
- kind: chunk4UQ4UDET_cjs.ReflectionKind.methodSignature,
4441
+ kind: type.ReflectionKind.methodSignature,
4442
4442
  name: serializedType.name,
4443
4443
  typeName: serializedType.typeName || void 0,
4444
4444
  decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
@@ -4448,7 +4448,7 @@ function convertFromCapnpMethodSignature(serializedType) {
4448
4448
  };
4449
4449
  return result;
4450
4450
  }
4451
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpMethodSignature, "convertFromCapnpMethodSignature");
4451
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpMethodSignature, "convertFromCapnpMethodSignature");
4452
4452
  function convertToCapnpMethodSignature(serializedType, result) {
4453
4453
  result.kind = serializedType.kind;
4454
4454
  result.name = String(serializedType.name);
@@ -4477,10 +4477,10 @@ function convertToCapnpMethodSignature(serializedType, result) {
4477
4477
  }
4478
4478
  return result;
4479
4479
  }
4480
- chunkBGYQAVKQ_cjs.__name(convertToCapnpMethodSignature, "convertToCapnpMethodSignature");
4480
+ chunkUSNT2KNT_cjs.__name(convertToCapnpMethodSignature, "convertToCapnpMethodSignature");
4481
4481
  function convertFromCapnpPropertySignature(serializedType) {
4482
4482
  const result = {
4483
- kind: chunk4UQ4UDET_cjs.ReflectionKind.propertySignature,
4483
+ kind: type.ReflectionKind.propertySignature,
4484
4484
  name: serializedType.name,
4485
4485
  typeName: serializedType.typeName || void 0,
4486
4486
  description: serializedType.description,
@@ -4495,7 +4495,7 @@ function convertFromCapnpPropertySignature(serializedType) {
4495
4495
  };
4496
4496
  return result;
4497
4497
  }
4498
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpPropertySignature, "convertFromCapnpPropertySignature");
4498
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpPropertySignature, "convertFromCapnpPropertySignature");
4499
4499
  function convertToCapnpDefault(defaultValue, result) {
4500
4500
  if (typeof defaultValue !== "undefined" && defaultValue !== "") {
4501
4501
  result._initValue();
@@ -4512,7 +4512,7 @@ function convertToCapnpDefault(defaultValue, result) {
4512
4512
  }
4513
4513
  }
4514
4514
  }
4515
- chunkBGYQAVKQ_cjs.__name(convertToCapnpDefault, "convertToCapnpDefault");
4515
+ chunkUSNT2KNT_cjs.__name(convertToCapnpDefault, "convertToCapnpDefault");
4516
4516
  function convertFromCapnpDefault(serializedType) {
4517
4517
  if (typeof serializedType.value === "undefined") {
4518
4518
  return void 0;
@@ -4526,7 +4526,7 @@ function convertFromCapnpDefault(serializedType) {
4526
4526
  return serializedType.value.string;
4527
4527
  }
4528
4528
  }
4529
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpDefault, "convertFromCapnpDefault");
4529
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpDefault, "convertFromCapnpDefault");
4530
4530
  function convertToCapnpPropertySignature(serializedType, result) {
4531
4531
  result.kind = serializedType.kind;
4532
4532
  result.name = String(serializedType.name) || "";
@@ -4564,7 +4564,7 @@ function convertToCapnpPropertySignature(serializedType, result) {
4564
4564
  }
4565
4565
  return result;
4566
4566
  }
4567
- chunkBGYQAVKQ_cjs.__name(convertToCapnpPropertySignature, "convertToCapnpPropertySignature");
4567
+ chunkUSNT2KNT_cjs.__name(convertToCapnpPropertySignature, "convertToCapnpPropertySignature");
4568
4568
  function convertToCapnpTupleMember(serializedType, result) {
4569
4569
  result.kind = serializedType.kind;
4570
4570
  result.typeName = serializedType.typeName || "";
@@ -4590,10 +4590,10 @@ function convertToCapnpTupleMember(serializedType, result) {
4590
4590
  }
4591
4591
  return result;
4592
4592
  }
4593
- chunkBGYQAVKQ_cjs.__name(convertToCapnpTupleMember, "convertToCapnpTupleMember");
4593
+ chunkUSNT2KNT_cjs.__name(convertToCapnpTupleMember, "convertToCapnpTupleMember");
4594
4594
  function convertFromCapnpTupleMember(serializedType) {
4595
4595
  const result = {
4596
- kind: chunk4UQ4UDET_cjs.ReflectionKind.tupleMember,
4596
+ kind: type.ReflectionKind.tupleMember,
4597
4597
  type: serializedType.type.id,
4598
4598
  typeName: serializedType.typeName || void 0,
4599
4599
  decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
@@ -4602,7 +4602,7 @@ function convertFromCapnpTupleMember(serializedType) {
4602
4602
  };
4603
4603
  return result;
4604
4604
  }
4605
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpTupleMember, "convertFromCapnpTupleMember");
4605
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpTupleMember, "convertFromCapnpTupleMember");
4606
4606
  function convertToCapnpTuple(serializedType, result) {
4607
4607
  result.kind = serializedType.kind;
4608
4608
  result.typeName = serializedType.typeName || "";
@@ -4631,10 +4631,10 @@ function convertToCapnpTuple(serializedType, result) {
4631
4631
  }
4632
4632
  return result;
4633
4633
  }
4634
- chunkBGYQAVKQ_cjs.__name(convertToCapnpTuple, "convertToCapnpTuple");
4634
+ chunkUSNT2KNT_cjs.__name(convertToCapnpTuple, "convertToCapnpTuple");
4635
4635
  function convertFromCapnpTuple(serializedType) {
4636
4636
  const result = {
4637
- kind: chunk4UQ4UDET_cjs.ReflectionKind.tuple,
4637
+ kind: type.ReflectionKind.tuple,
4638
4638
  typeName: serializedType.typeName || void 0,
4639
4639
  types: serializedType._hasTypes() ? serializedType.types.map((t) => convertFromCapnpTupleMember(t)) : [],
4640
4640
  decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
@@ -4643,22 +4643,22 @@ function convertFromCapnpTuple(serializedType) {
4643
4643
  };
4644
4644
  return result;
4645
4645
  }
4646
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpTuple, "convertFromCapnpTuple");
4646
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpTuple, "convertFromCapnpTuple");
4647
4647
  function convertToCapnpProperty(serializedType, result) {
4648
4648
  result.kind = serializedType.kind;
4649
4649
  result.typeName = serializedType.typeName || "";
4650
4650
  result.description = serializedType.description || "";
4651
4651
  result.optional = serializedType.optional ?? false;
4652
4652
  result.readonly = serializedType.readonly ?? false;
4653
- result.visibility = serializedType.visibility === chunk4UQ4UDET_cjs.ReflectionVisibility.public ? ReflectionVisibility2.PUBLIC : serializedType.visibility === chunk4UQ4UDET_cjs.ReflectionVisibility.protected ? ReflectionVisibility2.PROTECTED : ReflectionVisibility2.PRIVATE;
4653
+ result.visibility = serializedType.visibility === type.ReflectionVisibility.public ? ReflectionVisibility.PUBLIC : serializedType.visibility === type.ReflectionVisibility.protected ? ReflectionVisibility.PROTECTED : ReflectionVisibility.PRIVATE;
4654
4654
  result.abstract = serializedType.abstract ?? false;
4655
4655
  result.name = String(serializedType.name) || "";
4656
4656
  if (typeof serializedType.default !== "undefined") {
4657
4657
  const defaultValue = result._initDefault();
4658
4658
  convertToCapnpDefault(serializedType.default, defaultValue);
4659
4659
  }
4660
- const type = result._initType();
4661
- type.id = serializedType.type;
4660
+ const type$1 = result._initType();
4661
+ type$1.id = serializedType.type;
4662
4662
  if (serializedType.decorators?.length) {
4663
4663
  const decorators = result._initDecorators(serializedType.decorators?.length ?? 0);
4664
4664
  serializedType.decorators?.forEach((d, index) => {
@@ -4683,16 +4683,16 @@ function convertToCapnpProperty(serializedType, result) {
4683
4683
  }
4684
4684
  return result;
4685
4685
  }
4686
- chunkBGYQAVKQ_cjs.__name(convertToCapnpProperty, "convertToCapnpProperty");
4686
+ chunkUSNT2KNT_cjs.__name(convertToCapnpProperty, "convertToCapnpProperty");
4687
4687
  function convertFromCapnpProperty(serializedType) {
4688
4688
  const result = {
4689
- kind: chunk4UQ4UDET_cjs.ReflectionKind.property,
4689
+ kind: type.ReflectionKind.property,
4690
4690
  typeName: serializedType.typeName || void 0,
4691
4691
  description: serializedType.description,
4692
4692
  default: convertFromCapnpDefault(serializedType.default),
4693
4693
  optional: serializedType.optional ? true : void 0,
4694
4694
  readonly: serializedType.readonly ? true : void 0,
4695
- visibility: serializedType.visibility === ReflectionVisibility2.PUBLIC ? chunk4UQ4UDET_cjs.ReflectionVisibility.public : serializedType.visibility === ReflectionVisibility2.PROTECTED ? chunk4UQ4UDET_cjs.ReflectionVisibility.protected : chunk4UQ4UDET_cjs.ReflectionVisibility.private,
4695
+ visibility: serializedType.visibility === ReflectionVisibility.PUBLIC ? type.ReflectionVisibility.public : serializedType.visibility === ReflectionVisibility.PROTECTED ? type.ReflectionVisibility.protected : type.ReflectionVisibility.private,
4696
4696
  abstract: serializedType.abstract ? true : void 0,
4697
4697
  name: serializedType.name,
4698
4698
  type: serializedType.type.id,
@@ -4703,7 +4703,7 @@ function convertFromCapnpProperty(serializedType) {
4703
4703
  };
4704
4704
  return result;
4705
4705
  }
4706
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpProperty, "convertFromCapnpProperty");
4706
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpProperty, "convertFromCapnpProperty");
4707
4707
  function convertToCapnpEnum(serializedType, result) {
4708
4708
  result.kind = serializedType.kind;
4709
4709
  result.typeName = serializedType.typeName || "";
@@ -4745,10 +4745,10 @@ function convertToCapnpEnum(serializedType, result) {
4745
4745
  }
4746
4746
  return result;
4747
4747
  }
4748
- chunkBGYQAVKQ_cjs.__name(convertToCapnpEnum, "convertToCapnpEnum");
4748
+ chunkUSNT2KNT_cjs.__name(convertToCapnpEnum, "convertToCapnpEnum");
4749
4749
  function convertFromCapnpEnum(serializedType) {
4750
4750
  const result = {
4751
- kind: chunk4UQ4UDET_cjs.ReflectionKind.enum,
4751
+ kind: type.ReflectionKind.enum,
4752
4752
  typeName: serializedType.typeName || void 0,
4753
4753
  indexType: serializedType.indexType.id,
4754
4754
  decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
@@ -4763,7 +4763,7 @@ function convertFromCapnpEnum(serializedType) {
4763
4763
  };
4764
4764
  return result;
4765
4765
  }
4766
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpEnum, "convertFromCapnpEnum");
4766
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpEnum, "convertFromCapnpEnum");
4767
4767
  function convertToCapnpIntersection(serializedType, result) {
4768
4768
  result.kind = serializedType.kind;
4769
4769
  result.typeName = serializedType.typeName || "";
@@ -4792,10 +4792,10 @@ function convertToCapnpIntersection(serializedType, result) {
4792
4792
  }
4793
4793
  return result;
4794
4794
  }
4795
- chunkBGYQAVKQ_cjs.__name(convertToCapnpIntersection, "convertToCapnpIntersection");
4795
+ chunkUSNT2KNT_cjs.__name(convertToCapnpIntersection, "convertToCapnpIntersection");
4796
4796
  function convertFromCapnpIntersection(serializedType) {
4797
4797
  const result = {
4798
- kind: chunk4UQ4UDET_cjs.ReflectionKind.intersection,
4798
+ kind: type.ReflectionKind.intersection,
4799
4799
  typeName: serializedType.typeName || void 0,
4800
4800
  types: serializedType._hasTypes() ? serializedType.types.map((t) => t.id) : [],
4801
4801
  decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
@@ -4804,7 +4804,7 @@ function convertFromCapnpIntersection(serializedType) {
4804
4804
  };
4805
4805
  return result;
4806
4806
  }
4807
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpIntersection, "convertFromCapnpIntersection");
4807
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpIntersection, "convertFromCapnpIntersection");
4808
4808
  function convertToCapnpArray(serializedType, result) {
4809
4809
  result.kind = serializedType.kind;
4810
4810
  result.typeName = serializedType.typeName || "";
@@ -4834,10 +4834,10 @@ function convertToCapnpArray(serializedType, result) {
4834
4834
  }
4835
4835
  return result;
4836
4836
  }
4837
- chunkBGYQAVKQ_cjs.__name(convertToCapnpArray, "convertToCapnpArray");
4837
+ chunkUSNT2KNT_cjs.__name(convertToCapnpArray, "convertToCapnpArray");
4838
4838
  function convertFromCapnpArray(serializedType) {
4839
4839
  const result = {
4840
- kind: chunk4UQ4UDET_cjs.ReflectionKind.array,
4840
+ kind: type.ReflectionKind.array,
4841
4841
  typeName: serializedType.typeName || void 0,
4842
4842
  type: serializedType.type.id,
4843
4843
  decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
@@ -4847,7 +4847,7 @@ function convertFromCapnpArray(serializedType) {
4847
4847
  };
4848
4848
  return result;
4849
4849
  }
4850
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpArray, "convertFromCapnpArray");
4850
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpArray, "convertFromCapnpArray");
4851
4851
  function convertToCapnpUnion(serializedType, result) {
4852
4852
  result.kind = serializedType.kind;
4853
4853
  result.typeName = serializedType.typeName || "";
@@ -4876,10 +4876,10 @@ function convertToCapnpUnion(serializedType, result) {
4876
4876
  }
4877
4877
  return result;
4878
4878
  }
4879
- chunkBGYQAVKQ_cjs.__name(convertToCapnpUnion, "convertToCapnpUnion");
4879
+ chunkUSNT2KNT_cjs.__name(convertToCapnpUnion, "convertToCapnpUnion");
4880
4880
  function convertFromCapnpUnion(serializedType) {
4881
4881
  const result = {
4882
- kind: chunk4UQ4UDET_cjs.ReflectionKind.union,
4882
+ kind: type.ReflectionKind.union,
4883
4883
  typeName: serializedType.typeName || void 0,
4884
4884
  types: serializedType._hasTypes() ? serializedType.types.map((t) => t.id) : [],
4885
4885
  decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
@@ -4888,7 +4888,7 @@ function convertFromCapnpUnion(serializedType) {
4888
4888
  };
4889
4889
  return result;
4890
4890
  }
4891
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpUnion, "convertFromCapnpUnion");
4891
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpUnion, "convertFromCapnpUnion");
4892
4892
  function convertToCapnpInfer(serializedType, result) {
4893
4893
  result.kind = serializedType.kind;
4894
4894
  result.typeName = serializedType.typeName || "";
@@ -4912,10 +4912,10 @@ function convertToCapnpInfer(serializedType, result) {
4912
4912
  }
4913
4913
  return result;
4914
4914
  }
4915
- chunkBGYQAVKQ_cjs.__name(convertToCapnpInfer, "convertToCapnpInfer");
4915
+ chunkUSNT2KNT_cjs.__name(convertToCapnpInfer, "convertToCapnpInfer");
4916
4916
  function convertFromCapnpInfer(serializedType) {
4917
4917
  const result = {
4918
- kind: chunk4UQ4UDET_cjs.ReflectionKind.infer,
4918
+ kind: type.ReflectionKind.infer,
4919
4919
  typeName: serializedType.typeName || void 0,
4920
4920
  decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
4921
4921
  typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
@@ -4923,7 +4923,7 @@ function convertFromCapnpInfer(serializedType) {
4923
4923
  };
4924
4924
  return result;
4925
4925
  }
4926
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpInfer, "convertFromCapnpInfer");
4926
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpInfer, "convertFromCapnpInfer");
4927
4927
  function convertToCapnpFunction(serializedType, result) {
4928
4928
  result.name = String(serializedType.name) || "";
4929
4929
  result.kind = serializedType.kind;
@@ -4961,13 +4961,13 @@ function convertToCapnpFunction(serializedType, result) {
4961
4961
  }
4962
4962
  return result;
4963
4963
  }
4964
- chunkBGYQAVKQ_cjs.__name(convertToCapnpFunction, "convertToCapnpFunction");
4964
+ chunkUSNT2KNT_cjs.__name(convertToCapnpFunction, "convertToCapnpFunction");
4965
4965
  function convertToCapnpMethod(serializedType, result) {
4966
4966
  result.name = String(serializedType.name) || "";
4967
4967
  result.kind = serializedType.kind;
4968
4968
  result.typeName = serializedType.typeName || "";
4969
4969
  result.abstract = serializedType.abstract ?? false;
4970
- result.visibility = serializedType.visibility === chunk4UQ4UDET_cjs.ReflectionVisibility.public ? ReflectionVisibility2.PUBLIC : serializedType.visibility === chunk4UQ4UDET_cjs.ReflectionVisibility.protected ? ReflectionVisibility2.PROTECTED : ReflectionVisibility2.PRIVATE;
4970
+ result.visibility = serializedType.visibility === type.ReflectionVisibility.public ? ReflectionVisibility.PUBLIC : serializedType.visibility === type.ReflectionVisibility.protected ? ReflectionVisibility.PROTECTED : ReflectionVisibility.PRIVATE;
4971
4971
  if (serializedType.decorators?.length) {
4972
4972
  const decorators = result._initDecorators(serializedType.decorators.length);
4973
4973
  serializedType.decorators.forEach((d, index) => {
@@ -5001,10 +5001,10 @@ function convertToCapnpMethod(serializedType, result) {
5001
5001
  }
5002
5002
  return result;
5003
5003
  }
5004
- chunkBGYQAVKQ_cjs.__name(convertToCapnpMethod, "convertToCapnpMethod");
5004
+ chunkUSNT2KNT_cjs.__name(convertToCapnpMethod, "convertToCapnpMethod");
5005
5005
  function convertFromCapnpFunction(serializedType) {
5006
5006
  const result = {
5007
- kind: chunk4UQ4UDET_cjs.ReflectionKind.function,
5007
+ kind: type.ReflectionKind.function,
5008
5008
  name: serializedType.name,
5009
5009
  typeName: serializedType.typeName || void 0,
5010
5010
  decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
@@ -5016,20 +5016,20 @@ function convertFromCapnpFunction(serializedType) {
5016
5016
  };
5017
5017
  return result;
5018
5018
  }
5019
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpFunction, "convertFromCapnpFunction");
5019
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpFunction, "convertFromCapnpFunction");
5020
5020
  function convertFromCapnpMethod(serializedType) {
5021
5021
  const result = {
5022
- kind: chunk4UQ4UDET_cjs.ReflectionKind.method,
5022
+ kind: type.ReflectionKind.method,
5023
5023
  name: serializedType.name,
5024
5024
  typeName: serializedType.typeName || void 0,
5025
5025
  abstract: serializedType.abstract ? true : void 0,
5026
5026
  return: serializedType.return.id,
5027
- visibility: serializedType.visibility === ReflectionVisibility2.PUBLIC ? chunk4UQ4UDET_cjs.ReflectionVisibility.public : serializedType.visibility === ReflectionVisibility2.PROTECTED ? chunk4UQ4UDET_cjs.ReflectionVisibility.protected : chunk4UQ4UDET_cjs.ReflectionVisibility.private,
5027
+ visibility: serializedType.visibility === ReflectionVisibility.PUBLIC ? type.ReflectionVisibility.public : serializedType.visibility === ReflectionVisibility.PROTECTED ? type.ReflectionVisibility.protected : type.ReflectionVisibility.private,
5028
5028
  parameters: serializedType._hasParameters() ? serializedType.parameters.map((parameter) => convertFromCapnpParameter(parameter)) : []
5029
5029
  };
5030
5030
  return result;
5031
5031
  }
5032
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpMethod, "convertFromCapnpMethod");
5032
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpMethod, "convertFromCapnpMethod");
5033
5033
  function convertToCapnpClassType(serializedType, result) {
5034
5034
  result.kind = serializedType.kind;
5035
5035
  result.typeName = serializedType.typeName || "";
@@ -5077,10 +5077,10 @@ function convertToCapnpClassType(serializedType, result) {
5077
5077
  }
5078
5078
  return result;
5079
5079
  }
5080
- chunkBGYQAVKQ_cjs.__name(convertToCapnpClassType, "convertToCapnpClassType");
5080
+ chunkUSNT2KNT_cjs.__name(convertToCapnpClassType, "convertToCapnpClassType");
5081
5081
  function convertFromCapnpClassType(serializedType) {
5082
5082
  const result = {
5083
- kind: chunk4UQ4UDET_cjs.ReflectionKind.class,
5083
+ kind: type.ReflectionKind.class,
5084
5084
  typeName: serializedType.typeName || void 0,
5085
5085
  classType: serializedType.classType,
5086
5086
  globalObject: serializedType.globalObject ? true : void 0,
@@ -5095,7 +5095,7 @@ function convertFromCapnpClassType(serializedType) {
5095
5095
  };
5096
5096
  return result;
5097
5097
  }
5098
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpClassType, "convertFromCapnpClassType");
5098
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpClassType, "convertFromCapnpClassType");
5099
5099
  function convertToCapnpObjectLiteral(serializedType, result) {
5100
5100
  if (serializedType.decorators?.length) {
5101
5101
  const decorators = result._initDecorators(serializedType.decorators?.length ?? 0);
@@ -5128,10 +5128,10 @@ function convertToCapnpObjectLiteral(serializedType, result) {
5128
5128
  }
5129
5129
  return result;
5130
5130
  }
5131
- chunkBGYQAVKQ_cjs.__name(convertToCapnpObjectLiteral, "convertToCapnpObjectLiteral");
5131
+ chunkUSNT2KNT_cjs.__name(convertToCapnpObjectLiteral, "convertToCapnpObjectLiteral");
5132
5132
  function convertFromCapnpObjectLiteral(serializedType) {
5133
5133
  const result = {
5134
- kind: chunk4UQ4UDET_cjs.ReflectionKind.objectLiteral,
5134
+ kind: type.ReflectionKind.objectLiteral,
5135
5135
  typeName: serializedType.typeName || void 0,
5136
5136
  decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
5137
5137
  types: serializedType._hasTypes() ? serializedType.types.map((t) => t.id) : [],
@@ -5141,14 +5141,14 @@ function convertFromCapnpObjectLiteral(serializedType) {
5141
5141
  };
5142
5142
  return result;
5143
5143
  }
5144
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpObjectLiteral, "convertFromCapnpObjectLiteral");
5144
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpObjectLiteral, "convertFromCapnpObjectLiteral");
5145
5145
  function convertToCapnpParameter(serializedType, result) {
5146
5146
  result.kind = serializedType.kind;
5147
5147
  result.typeName = serializedType.typeName || "";
5148
5148
  result.name = serializedType.name || "";
5149
5149
  result.optional = serializedType.optional ?? false;
5150
5150
  result.readonly = serializedType.readonly ?? false;
5151
- result.visibility = serializedType.visibility === chunk4UQ4UDET_cjs.ReflectionVisibility.public ? ReflectionVisibility2.PUBLIC : serializedType.visibility === chunk4UQ4UDET_cjs.ReflectionVisibility.protected ? ReflectionVisibility2.PROTECTED : ReflectionVisibility2.PRIVATE;
5151
+ result.visibility = serializedType.visibility === type.ReflectionVisibility.public ? ReflectionVisibility.PUBLIC : serializedType.visibility === type.ReflectionVisibility.protected ? ReflectionVisibility.PROTECTED : ReflectionVisibility.PRIVATE;
5152
5152
  if (typeof serializedType.default !== "undefined") {
5153
5153
  const defaultValue = result._initDefault();
5154
5154
  convertToCapnpDefault(serializedType.default, defaultValue);
@@ -5179,16 +5179,16 @@ function convertToCapnpParameter(serializedType, result) {
5179
5179
  }
5180
5180
  return result;
5181
5181
  }
5182
- chunkBGYQAVKQ_cjs.__name(convertToCapnpParameter, "convertToCapnpParameter");
5182
+ chunkUSNT2KNT_cjs.__name(convertToCapnpParameter, "convertToCapnpParameter");
5183
5183
  function convertFromCapnpParameter(serializedType) {
5184
5184
  const result = {
5185
- kind: chunk4UQ4UDET_cjs.ReflectionKind.parameter,
5185
+ kind: type.ReflectionKind.parameter,
5186
5186
  typeName: serializedType.typeName || void 0,
5187
5187
  name: serializedType.name,
5188
5188
  default: convertFromCapnpDefault(serializedType.default),
5189
5189
  optional: serializedType.optional ? true : void 0,
5190
5190
  readonly: serializedType.readonly ? true : void 0,
5191
- visibility: serializedType.visibility === ReflectionVisibility2.PUBLIC ? chunk4UQ4UDET_cjs.ReflectionVisibility.public : serializedType.visibility === ReflectionVisibility2.PROTECTED ? chunk4UQ4UDET_cjs.ReflectionVisibility.protected : chunk4UQ4UDET_cjs.ReflectionVisibility.private,
5191
+ visibility: serializedType.visibility === ReflectionVisibility.PUBLIC ? type.ReflectionVisibility.public : serializedType.visibility === ReflectionVisibility.PROTECTED ? type.ReflectionVisibility.protected : type.ReflectionVisibility.private,
5192
5192
  type: serializedType.type.id,
5193
5193
  decorators: serializedType._hasDecorators() ? serializedType.decorators.map((d) => d.id) : void 0,
5194
5194
  typeArguments: serializedType._hasTypeArguments() ? serializedType.typeArguments.map((t) => t.id) : void 0,
@@ -5197,7 +5197,7 @@ function convertFromCapnpParameter(serializedType) {
5197
5197
  };
5198
5198
  return result;
5199
5199
  }
5200
- chunkBGYQAVKQ_cjs.__name(convertFromCapnpParameter, "convertFromCapnpParameter");
5200
+ chunkUSNT2KNT_cjs.__name(convertFromCapnpParameter, "convertFromCapnpParameter");
5201
5201
 
5202
5202
  exports.convertFromCapnp = convertFromCapnp;
5203
5203
  exports.convertFromCapnpArray = convertFromCapnpArray;