@nxtedition/types 1.2.5 → 1.2.7

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.
@@ -1,12 +1,12 @@
1
1
  import __typia from "typia";
2
2
  export const isBlock = input => {
3
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
3
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
4
4
  const $io1 = input => "string" === typeof input.message;
5
5
  return "object" === typeof input && null !== input && $io0(input);
6
6
  };
7
7
  export const assertBlock = (input, errorFactory) => {
8
8
  const __is = input => {
9
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
9
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
10
10
  const $io1 = input => "string" === typeof input.message;
11
11
  return "object" === typeof input && null !== input && $io0(input);
12
12
  };
@@ -41,25 +41,25 @@ export const assertBlock = (input, errorFactory) => {
41
41
  path: _path + ".offset",
42
42
  expected: "number & Minimum<0>",
43
43
  value: input.offset
44
- }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295 || $guard(_exceptionable, {
44
+ }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000 || $guard(_exceptionable, {
45
45
  path: _path + ".offset",
46
- expected: "number & Type<\"uint32\">",
46
+ expected: "number & Type<\"uint64\">",
47
47
  value: input.offset
48
48
  }, errorFactory)) || $guard(_exceptionable, {
49
49
  path: _path + ".offset",
50
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
50
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
51
51
  value: input.offset
52
52
  }, errorFactory)) && ("number" === typeof input.size && (0 <= input.size || $guard(_exceptionable, {
53
53
  path: _path + ".size",
54
54
  expected: "number & Minimum<0>",
55
55
  value: input.size
56
- }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295 || $guard(_exceptionable, {
56
+ }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000 || $guard(_exceptionable, {
57
57
  path: _path + ".size",
58
- expected: "number & Type<\"uint32\">",
58
+ expected: "number & Type<\"uint64\">",
59
59
  value: input.size
60
60
  }, errorFactory)) || $guard(_exceptionable, {
61
61
  path: _path + ".size",
62
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
62
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
63
63
  value: input.size
64
64
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
65
65
  path: _path + ".hash",
@@ -73,13 +73,13 @@ export const assertBlock = (input, errorFactory) => {
73
73
  path: _path + ".btime",
74
74
  expected: "number & Minimum<0>",
75
75
  value: input.btime
76
- }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295 || $guard(_exceptionable, {
76
+ }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000 || $guard(_exceptionable, {
77
77
  path: _path + ".btime",
78
- expected: "number & Type<\"uint32\">",
78
+ expected: "number & Type<\"uint64\">",
79
79
  value: input.btime
80
80
  }, errorFactory)) || $guard(_exceptionable, {
81
81
  path: _path + ".btime",
82
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
82
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
83
83
  value: input.btime
84
84
  }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
85
85
  path: _path + ".path",
@@ -151,9 +151,9 @@ export const randomBlock = generator => {
151
151
  value: 0
152
152
  },
153
153
  {
154
- name: "Type<\"uint32\">",
154
+ name: "Type<\"uint64\">",
155
155
  kind: "type",
156
- value: "uint32"
156
+ value: "uint64"
157
157
  }
158
158
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
159
159
  size: (generator?.customs ?? $generator.customs)?.number?.([
@@ -163,9 +163,9 @@ export const randomBlock = generator => {
163
163
  value: 0
164
164
  },
165
165
  {
166
- name: "Type<\"uint32\">",
166
+ name: "Type<\"uint64\">",
167
167
  kind: "type",
168
- value: "uint32"
168
+ value: "uint64"
169
169
  }
170
170
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
171
171
  hash: (generator?.customs ?? $generator.customs)?.string?.([
@@ -182,9 +182,9 @@ export const randomBlock = generator => {
182
182
  value: 0
183
183
  },
184
184
  {
185
- name: "Type<\"uint32\">",
185
+ name: "Type<\"uint64\">",
186
186
  kind: "type",
187
- value: "uint32"
187
+ value: "uint64"
188
188
  }
189
189
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
190
190
  path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
@@ -200,7 +200,7 @@ export const randomBlock = generator => {
200
200
  };
201
201
  export const assertGuardBlock = (input, errorFactory) => {
202
202
  const __is = input => {
203
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
203
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
204
204
  const $io1 = input => "string" === typeof input.message;
205
205
  return "object" === typeof input && null !== input && $io0(input);
206
206
  };
@@ -235,25 +235,25 @@ export const assertGuardBlock = (input, errorFactory) => {
235
235
  path: _path + ".offset",
236
236
  expected: "number & Minimum<0>",
237
237
  value: input.offset
238
- }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295 || $guard(_exceptionable, {
238
+ }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000 || $guard(_exceptionable, {
239
239
  path: _path + ".offset",
240
- expected: "number & Type<\"uint32\">",
240
+ expected: "number & Type<\"uint64\">",
241
241
  value: input.offset
242
242
  }, errorFactory)) || $guard(_exceptionable, {
243
243
  path: _path + ".offset",
244
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
244
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
245
245
  value: input.offset
246
246
  }, errorFactory)) && ("number" === typeof input.size && (0 <= input.size || $guard(_exceptionable, {
247
247
  path: _path + ".size",
248
248
  expected: "number & Minimum<0>",
249
249
  value: input.size
250
- }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295 || $guard(_exceptionable, {
250
+ }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000 || $guard(_exceptionable, {
251
251
  path: _path + ".size",
252
- expected: "number & Type<\"uint32\">",
252
+ expected: "number & Type<\"uint64\">",
253
253
  value: input.size
254
254
  }, errorFactory)) || $guard(_exceptionable, {
255
255
  path: _path + ".size",
256
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
256
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
257
257
  value: input.size
258
258
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
259
259
  path: _path + ".hash",
@@ -267,13 +267,13 @@ export const assertGuardBlock = (input, errorFactory) => {
267
267
  path: _path + ".btime",
268
268
  expected: "number & Minimum<0>",
269
269
  value: input.btime
270
- }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295 || $guard(_exceptionable, {
270
+ }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000 || $guard(_exceptionable, {
271
271
  path: _path + ".btime",
272
- expected: "number & Type<\"uint32\">",
272
+ expected: "number & Type<\"uint64\">",
273
273
  value: input.btime
274
274
  }, errorFactory)) || $guard(_exceptionable, {
275
275
  path: _path + ".btime",
276
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
276
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
277
277
  value: input.btime
278
278
  }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
279
279
  path: _path + ".path",
@@ -320,7 +320,7 @@ export const stringifyBlock = input => {
320
320
  };
321
321
  export const assertStringifyBlock = (input, errorFactory) => { const assert = (input, errorFactory) => {
322
322
  const __is = input => {
323
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
323
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
324
324
  const $io1 = input => "string" === typeof input.message;
325
325
  return "object" === typeof input && null !== input && $io0(input);
326
326
  };
@@ -355,25 +355,25 @@ export const assertStringifyBlock = (input, errorFactory) => { const assert = (i
355
355
  path: _path + ".offset",
356
356
  expected: "number & Minimum<0>",
357
357
  value: input.offset
358
- }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295 || $guard(_exceptionable, {
358
+ }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000 || $guard(_exceptionable, {
359
359
  path: _path + ".offset",
360
- expected: "number & Type<\"uint32\">",
360
+ expected: "number & Type<\"uint64\">",
361
361
  value: input.offset
362
362
  }, errorFactory)) || $guard(_exceptionable, {
363
363
  path: _path + ".offset",
364
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
364
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
365
365
  value: input.offset
366
366
  }, errorFactory)) && ("number" === typeof input.size && (0 <= input.size || $guard(_exceptionable, {
367
367
  path: _path + ".size",
368
368
  expected: "number & Minimum<0>",
369
369
  value: input.size
370
- }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295 || $guard(_exceptionable, {
370
+ }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000 || $guard(_exceptionable, {
371
371
  path: _path + ".size",
372
- expected: "number & Type<\"uint32\">",
372
+ expected: "number & Type<\"uint64\">",
373
373
  value: input.size
374
374
  }, errorFactory)) || $guard(_exceptionable, {
375
375
  path: _path + ".size",
376
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
376
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
377
377
  value: input.size
378
378
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
379
379
  path: _path + ".hash",
@@ -387,13 +387,13 @@ export const assertStringifyBlock = (input, errorFactory) => { const assert = (i
387
387
  path: _path + ".btime",
388
388
  expected: "number & Minimum<0>",
389
389
  value: input.btime
390
- }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295 || $guard(_exceptionable, {
390
+ }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000 || $guard(_exceptionable, {
391
391
  path: _path + ".btime",
392
- expected: "number & Type<\"uint32\">",
392
+ expected: "number & Type<\"uint64\">",
393
393
  value: input.btime
394
394
  }, errorFactory)) || $guard(_exceptionable, {
395
395
  path: _path + ".btime",
396
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
396
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
397
397
  value: input.btime
398
398
  }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
399
399
  path: _path + ".path",
@@ -439,13 +439,13 @@ export const assertStringifyBlock = (input, errorFactory) => { const assert = (i
439
439
  return $so0(input);
440
440
  }; return stringify(assert(input, errorFactory)); };
441
441
  export const isBlockStats = input => {
442
- const $io0 = input => "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 4294967295)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
442
+ const $io0 = input => "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
443
443
  const $io1 = input => "string" === typeof input.message;
444
444
  return "object" === typeof input && null !== input && $io0(input);
445
445
  };
446
446
  export const assertBlockStats = (input, errorFactory) => {
447
447
  const __is = input => {
448
- const $io0 = input => "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 4294967295)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
448
+ const $io0 = input => "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
449
449
  const $io1 = input => "string" === typeof input.message;
450
450
  return "object" === typeof input && null !== input && $io0(input);
451
451
  };
@@ -456,13 +456,13 @@ export const assertBlockStats = (input, errorFactory) => {
456
456
  path: _path + ".position",
457
457
  expected: "number & Minimum<0>",
458
458
  value: input.position
459
- }, errorFactory)) && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 4294967295 || $guard(_exceptionable, {
459
+ }, errorFactory)) && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000 || $guard(_exceptionable, {
460
460
  path: _path + ".position",
461
- expected: "number & Type<\"uint32\">",
461
+ expected: "number & Type<\"uint64\">",
462
462
  value: input.position
463
463
  }, errorFactory)) || $guard(_exceptionable, {
464
464
  path: _path + ".position",
465
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
465
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
466
466
  value: input.position
467
467
  }, errorFactory)) && ("string" === typeof input.id && (/^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) || $guard(_exceptionable, {
468
468
  path: _path + ".id",
@@ -492,25 +492,25 @@ export const assertBlockStats = (input, errorFactory) => {
492
492
  path: _path + ".offset",
493
493
  expected: "number & Minimum<0>",
494
494
  value: input.offset
495
- }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295 || $guard(_exceptionable, {
495
+ }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000 || $guard(_exceptionable, {
496
496
  path: _path + ".offset",
497
- expected: "number & Type<\"uint32\">",
497
+ expected: "number & Type<\"uint64\">",
498
498
  value: input.offset
499
499
  }, errorFactory)) || $guard(_exceptionable, {
500
500
  path: _path + ".offset",
501
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
501
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
502
502
  value: input.offset
503
503
  }, errorFactory)) && ("number" === typeof input.size && (0 <= input.size || $guard(_exceptionable, {
504
504
  path: _path + ".size",
505
505
  expected: "number & Minimum<0>",
506
506
  value: input.size
507
- }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295 || $guard(_exceptionable, {
507
+ }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000 || $guard(_exceptionable, {
508
508
  path: _path + ".size",
509
- expected: "number & Type<\"uint32\">",
509
+ expected: "number & Type<\"uint64\">",
510
510
  value: input.size
511
511
  }, errorFactory)) || $guard(_exceptionable, {
512
512
  path: _path + ".size",
513
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
513
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
514
514
  value: input.size
515
515
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
516
516
  path: _path + ".hash",
@@ -524,13 +524,13 @@ export const assertBlockStats = (input, errorFactory) => {
524
524
  path: _path + ".btime",
525
525
  expected: "number & Minimum<0>",
526
526
  value: input.btime
527
- }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295 || $guard(_exceptionable, {
527
+ }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000 || $guard(_exceptionable, {
528
528
  path: _path + ".btime",
529
- expected: "number & Type<\"uint32\">",
529
+ expected: "number & Type<\"uint64\">",
530
530
  value: input.btime
531
531
  }, errorFactory)) || $guard(_exceptionable, {
532
532
  path: _path + ".btime",
533
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
533
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
534
534
  value: input.btime
535
535
  }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
536
536
  path: _path + ".path",
@@ -581,9 +581,9 @@ export const randomBlockStats = generator => {
581
581
  value: 0
582
582
  },
583
583
  {
584
- name: "Type<\"uint32\">",
584
+ name: "Type<\"uint64\">",
585
585
  kind: "type",
586
- value: "uint32"
586
+ value: "uint64"
587
587
  }
588
588
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
589
589
  id: (generator?.customs ?? $generator.customs)?.string?.([
@@ -614,9 +614,9 @@ export const randomBlockStats = generator => {
614
614
  value: 0
615
615
  },
616
616
  {
617
- name: "Type<\"uint32\">",
617
+ name: "Type<\"uint64\">",
618
618
  kind: "type",
619
- value: "uint32"
619
+ value: "uint64"
620
620
  }
621
621
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
622
622
  size: (generator?.customs ?? $generator.customs)?.number?.([
@@ -626,9 +626,9 @@ export const randomBlockStats = generator => {
626
626
  value: 0
627
627
  },
628
628
  {
629
- name: "Type<\"uint32\">",
629
+ name: "Type<\"uint64\">",
630
630
  kind: "type",
631
- value: "uint32"
631
+ value: "uint64"
632
632
  }
633
633
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
634
634
  hash: (generator?.customs ?? $generator.customs)?.string?.([
@@ -645,9 +645,9 @@ export const randomBlockStats = generator => {
645
645
  value: 0
646
646
  },
647
647
  {
648
- name: "Type<\"uint32\">",
648
+ name: "Type<\"uint64\">",
649
649
  kind: "type",
650
- value: "uint32"
650
+ value: "uint64"
651
651
  }
652
652
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
653
653
  path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
@@ -663,7 +663,7 @@ export const randomBlockStats = generator => {
663
663
  };
664
664
  export const assertGuardBlockStats = (input, errorFactory) => {
665
665
  const __is = input => {
666
- const $io0 = input => "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 4294967295)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
666
+ const $io0 = input => "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
667
667
  const $io1 = input => "string" === typeof input.message;
668
668
  return "object" === typeof input && null !== input && $io0(input);
669
669
  };
@@ -674,13 +674,13 @@ export const assertGuardBlockStats = (input, errorFactory) => {
674
674
  path: _path + ".position",
675
675
  expected: "number & Minimum<0>",
676
676
  value: input.position
677
- }, errorFactory)) && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 4294967295 || $guard(_exceptionable, {
677
+ }, errorFactory)) && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000 || $guard(_exceptionable, {
678
678
  path: _path + ".position",
679
- expected: "number & Type<\"uint32\">",
679
+ expected: "number & Type<\"uint64\">",
680
680
  value: input.position
681
681
  }, errorFactory)) || $guard(_exceptionable, {
682
682
  path: _path + ".position",
683
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
683
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
684
684
  value: input.position
685
685
  }, errorFactory)) && ("string" === typeof input.id && (/^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) || $guard(_exceptionable, {
686
686
  path: _path + ".id",
@@ -710,25 +710,25 @@ export const assertGuardBlockStats = (input, errorFactory) => {
710
710
  path: _path + ".offset",
711
711
  expected: "number & Minimum<0>",
712
712
  value: input.offset
713
- }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295 || $guard(_exceptionable, {
713
+ }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000 || $guard(_exceptionable, {
714
714
  path: _path + ".offset",
715
- expected: "number & Type<\"uint32\">",
715
+ expected: "number & Type<\"uint64\">",
716
716
  value: input.offset
717
717
  }, errorFactory)) || $guard(_exceptionable, {
718
718
  path: _path + ".offset",
719
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
719
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
720
720
  value: input.offset
721
721
  }, errorFactory)) && ("number" === typeof input.size && (0 <= input.size || $guard(_exceptionable, {
722
722
  path: _path + ".size",
723
723
  expected: "number & Minimum<0>",
724
724
  value: input.size
725
- }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295 || $guard(_exceptionable, {
725
+ }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000 || $guard(_exceptionable, {
726
726
  path: _path + ".size",
727
- expected: "number & Type<\"uint32\">",
727
+ expected: "number & Type<\"uint64\">",
728
728
  value: input.size
729
729
  }, errorFactory)) || $guard(_exceptionable, {
730
730
  path: _path + ".size",
731
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
731
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
732
732
  value: input.size
733
733
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
734
734
  path: _path + ".hash",
@@ -742,13 +742,13 @@ export const assertGuardBlockStats = (input, errorFactory) => {
742
742
  path: _path + ".btime",
743
743
  expected: "number & Minimum<0>",
744
744
  value: input.btime
745
- }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295 || $guard(_exceptionable, {
745
+ }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000 || $guard(_exceptionable, {
746
746
  path: _path + ".btime",
747
- expected: "number & Type<\"uint32\">",
747
+ expected: "number & Type<\"uint64\">",
748
748
  value: input.btime
749
749
  }, errorFactory)) || $guard(_exceptionable, {
750
750
  path: _path + ".btime",
751
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
751
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
752
752
  value: input.btime
753
753
  }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
754
754
  path: _path + ".path",
@@ -795,7 +795,7 @@ export const stringifyBlockStats = input => {
795
795
  };
796
796
  export const assertStringifyBlockStats = (input, errorFactory) => { const assert = (input, errorFactory) => {
797
797
  const __is = input => {
798
- const $io0 = input => "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 4294967295)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
798
+ const $io0 = input => "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
799
799
  const $io1 = input => "string" === typeof input.message;
800
800
  return "object" === typeof input && null !== input && $io0(input);
801
801
  };
@@ -806,13 +806,13 @@ export const assertStringifyBlockStats = (input, errorFactory) => { const assert
806
806
  path: _path + ".position",
807
807
  expected: "number & Minimum<0>",
808
808
  value: input.position
809
- }, errorFactory)) && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 4294967295 || $guard(_exceptionable, {
809
+ }, errorFactory)) && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000 || $guard(_exceptionable, {
810
810
  path: _path + ".position",
811
- expected: "number & Type<\"uint32\">",
811
+ expected: "number & Type<\"uint64\">",
812
812
  value: input.position
813
813
  }, errorFactory)) || $guard(_exceptionable, {
814
814
  path: _path + ".position",
815
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
815
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
816
816
  value: input.position
817
817
  }, errorFactory)) && ("string" === typeof input.id && (/^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) || $guard(_exceptionable, {
818
818
  path: _path + ".id",
@@ -842,25 +842,25 @@ export const assertStringifyBlockStats = (input, errorFactory) => { const assert
842
842
  path: _path + ".offset",
843
843
  expected: "number & Minimum<0>",
844
844
  value: input.offset
845
- }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295 || $guard(_exceptionable, {
845
+ }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000 || $guard(_exceptionable, {
846
846
  path: _path + ".offset",
847
- expected: "number & Type<\"uint32\">",
847
+ expected: "number & Type<\"uint64\">",
848
848
  value: input.offset
849
849
  }, errorFactory)) || $guard(_exceptionable, {
850
850
  path: _path + ".offset",
851
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
851
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
852
852
  value: input.offset
853
853
  }, errorFactory)) && ("number" === typeof input.size && (0 <= input.size || $guard(_exceptionable, {
854
854
  path: _path + ".size",
855
855
  expected: "number & Minimum<0>",
856
856
  value: input.size
857
- }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295 || $guard(_exceptionable, {
857
+ }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000 || $guard(_exceptionable, {
858
858
  path: _path + ".size",
859
- expected: "number & Type<\"uint32\">",
859
+ expected: "number & Type<\"uint64\">",
860
860
  value: input.size
861
861
  }, errorFactory)) || $guard(_exceptionable, {
862
862
  path: _path + ".size",
863
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
863
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
864
864
  value: input.size
865
865
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
866
866
  path: _path + ".hash",
@@ -874,13 +874,13 @@ export const assertStringifyBlockStats = (input, errorFactory) => { const assert
874
874
  path: _path + ".btime",
875
875
  expected: "number & Minimum<0>",
876
876
  value: input.btime
877
- }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295 || $guard(_exceptionable, {
877
+ }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000 || $guard(_exceptionable, {
878
878
  path: _path + ".btime",
879
- expected: "number & Type<\"uint32\">",
879
+ expected: "number & Type<\"uint64\">",
880
880
  value: input.btime
881
881
  }, errorFactory)) || $guard(_exceptionable, {
882
882
  path: _path + ".btime",
883
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
883
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
884
884
  value: input.btime
885
885
  }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
886
886
  path: _path + ".path",
@@ -926,13 +926,13 @@ export const assertStringifyBlockStats = (input, errorFactory) => { const assert
926
926
  return $so0(input);
927
927
  }; return stringify(assert(input, errorFactory)); };
928
928
  export const isBlocks = input => {
929
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
929
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
930
930
  const $io1 = input => "string" === typeof input.message;
931
931
  return Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && $io0(elem));
932
932
  };
933
933
  export const assertBlocks = (input, errorFactory) => {
934
934
  const __is = input => {
935
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
935
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
936
936
  const $io1 = input => "string" === typeof input.message;
937
937
  return Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && $io0(elem));
938
938
  };
@@ -967,25 +967,25 @@ export const assertBlocks = (input, errorFactory) => {
967
967
  path: _path + ".offset",
968
968
  expected: "number & Minimum<0>",
969
969
  value: input.offset
970
- }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295 || $guard(_exceptionable, {
970
+ }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000 || $guard(_exceptionable, {
971
971
  path: _path + ".offset",
972
- expected: "number & Type<\"uint32\">",
972
+ expected: "number & Type<\"uint64\">",
973
973
  value: input.offset
974
974
  }, errorFactory)) || $guard(_exceptionable, {
975
975
  path: _path + ".offset",
976
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
976
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
977
977
  value: input.offset
978
978
  }, errorFactory)) && ("number" === typeof input.size && (0 <= input.size || $guard(_exceptionable, {
979
979
  path: _path + ".size",
980
980
  expected: "number & Minimum<0>",
981
981
  value: input.size
982
- }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295 || $guard(_exceptionable, {
982
+ }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000 || $guard(_exceptionable, {
983
983
  path: _path + ".size",
984
- expected: "number & Type<\"uint32\">",
984
+ expected: "number & Type<\"uint64\">",
985
985
  value: input.size
986
986
  }, errorFactory)) || $guard(_exceptionable, {
987
987
  path: _path + ".size",
988
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
988
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
989
989
  value: input.size
990
990
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
991
991
  path: _path + ".hash",
@@ -999,13 +999,13 @@ export const assertBlocks = (input, errorFactory) => {
999
999
  path: _path + ".btime",
1000
1000
  expected: "number & Minimum<0>",
1001
1001
  value: input.btime
1002
- }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295 || $guard(_exceptionable, {
1002
+ }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000 || $guard(_exceptionable, {
1003
1003
  path: _path + ".btime",
1004
- expected: "number & Type<\"uint32\">",
1004
+ expected: "number & Type<\"uint64\">",
1005
1005
  value: input.btime
1006
1006
  }, errorFactory)) || $guard(_exceptionable, {
1007
1007
  path: _path + ".btime",
1008
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
1008
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
1009
1009
  value: input.btime
1010
1010
  }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1011
1011
  path: _path + ".path",
@@ -1085,9 +1085,9 @@ export const randomBlocks = generator => {
1085
1085
  value: 0
1086
1086
  },
1087
1087
  {
1088
- name: "Type<\"uint32\">",
1088
+ name: "Type<\"uint64\">",
1089
1089
  kind: "type",
1090
- value: "uint32"
1090
+ value: "uint64"
1091
1091
  }
1092
1092
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
1093
1093
  size: (generator?.customs ?? $generator.customs)?.number?.([
@@ -1097,9 +1097,9 @@ export const randomBlocks = generator => {
1097
1097
  value: 0
1098
1098
  },
1099
1099
  {
1100
- name: "Type<\"uint32\">",
1100
+ name: "Type<\"uint64\">",
1101
1101
  kind: "type",
1102
- value: "uint32"
1102
+ value: "uint64"
1103
1103
  }
1104
1104
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
1105
1105
  hash: (generator?.customs ?? $generator.customs)?.string?.([
@@ -1116,9 +1116,9 @@ export const randomBlocks = generator => {
1116
1116
  value: 0
1117
1117
  },
1118
1118
  {
1119
- name: "Type<\"uint32\">",
1119
+ name: "Type<\"uint64\">",
1120
1120
  kind: "type",
1121
- value: "uint32"
1121
+ value: "uint64"
1122
1122
  }
1123
1123
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
1124
1124
  path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
@@ -1134,7 +1134,7 @@ export const randomBlocks = generator => {
1134
1134
  };
1135
1135
  export const assertGuardBlocks = (input, errorFactory) => {
1136
1136
  const __is = input => {
1137
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
1137
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
1138
1138
  const $io1 = input => "string" === typeof input.message;
1139
1139
  return Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && $io0(elem));
1140
1140
  };
@@ -1169,25 +1169,25 @@ export const assertGuardBlocks = (input, errorFactory) => {
1169
1169
  path: _path + ".offset",
1170
1170
  expected: "number & Minimum<0>",
1171
1171
  value: input.offset
1172
- }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295 || $guard(_exceptionable, {
1172
+ }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000 || $guard(_exceptionable, {
1173
1173
  path: _path + ".offset",
1174
- expected: "number & Type<\"uint32\">",
1174
+ expected: "number & Type<\"uint64\">",
1175
1175
  value: input.offset
1176
1176
  }, errorFactory)) || $guard(_exceptionable, {
1177
1177
  path: _path + ".offset",
1178
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
1178
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
1179
1179
  value: input.offset
1180
1180
  }, errorFactory)) && ("number" === typeof input.size && (0 <= input.size || $guard(_exceptionable, {
1181
1181
  path: _path + ".size",
1182
1182
  expected: "number & Minimum<0>",
1183
1183
  value: input.size
1184
- }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295 || $guard(_exceptionable, {
1184
+ }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000 || $guard(_exceptionable, {
1185
1185
  path: _path + ".size",
1186
- expected: "number & Type<\"uint32\">",
1186
+ expected: "number & Type<\"uint64\">",
1187
1187
  value: input.size
1188
1188
  }, errorFactory)) || $guard(_exceptionable, {
1189
1189
  path: _path + ".size",
1190
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
1190
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
1191
1191
  value: input.size
1192
1192
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
1193
1193
  path: _path + ".hash",
@@ -1201,13 +1201,13 @@ export const assertGuardBlocks = (input, errorFactory) => {
1201
1201
  path: _path + ".btime",
1202
1202
  expected: "number & Minimum<0>",
1203
1203
  value: input.btime
1204
- }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295 || $guard(_exceptionable, {
1204
+ }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000 || $guard(_exceptionable, {
1205
1205
  path: _path + ".btime",
1206
- expected: "number & Type<\"uint32\">",
1206
+ expected: "number & Type<\"uint64\">",
1207
1207
  value: input.btime
1208
1208
  }, errorFactory)) || $guard(_exceptionable, {
1209
1209
  path: _path + ".btime",
1210
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
1210
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
1211
1211
  value: input.btime
1212
1212
  }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1213
1213
  path: _path + ".path",
@@ -1262,7 +1262,7 @@ export const stringifyBlocks = input => {
1262
1262
  };
1263
1263
  export const assertStringifyBlocks = (input, errorFactory) => { const assert = (input, errorFactory) => {
1264
1264
  const __is = input => {
1265
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
1265
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
1266
1266
  const $io1 = input => "string" === typeof input.message;
1267
1267
  return Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && $io0(elem));
1268
1268
  };
@@ -1297,25 +1297,25 @@ export const assertStringifyBlocks = (input, errorFactory) => { const assert = (
1297
1297
  path: _path + ".offset",
1298
1298
  expected: "number & Minimum<0>",
1299
1299
  value: input.offset
1300
- }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295 || $guard(_exceptionable, {
1300
+ }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000 || $guard(_exceptionable, {
1301
1301
  path: _path + ".offset",
1302
- expected: "number & Type<\"uint32\">",
1302
+ expected: "number & Type<\"uint64\">",
1303
1303
  value: input.offset
1304
1304
  }, errorFactory)) || $guard(_exceptionable, {
1305
1305
  path: _path + ".offset",
1306
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
1306
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
1307
1307
  value: input.offset
1308
1308
  }, errorFactory)) && ("number" === typeof input.size && (0 <= input.size || $guard(_exceptionable, {
1309
1309
  path: _path + ".size",
1310
1310
  expected: "number & Minimum<0>",
1311
1311
  value: input.size
1312
- }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295 || $guard(_exceptionable, {
1312
+ }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000 || $guard(_exceptionable, {
1313
1313
  path: _path + ".size",
1314
- expected: "number & Type<\"uint32\">",
1314
+ expected: "number & Type<\"uint64\">",
1315
1315
  value: input.size
1316
1316
  }, errorFactory)) || $guard(_exceptionable, {
1317
1317
  path: _path + ".size",
1318
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
1318
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
1319
1319
  value: input.size
1320
1320
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
1321
1321
  path: _path + ".hash",
@@ -1329,13 +1329,13 @@ export const assertStringifyBlocks = (input, errorFactory) => { const assert = (
1329
1329
  path: _path + ".btime",
1330
1330
  expected: "number & Minimum<0>",
1331
1331
  value: input.btime
1332
- }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295 || $guard(_exceptionable, {
1332
+ }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000 || $guard(_exceptionable, {
1333
1333
  path: _path + ".btime",
1334
- expected: "number & Type<\"uint32\">",
1334
+ expected: "number & Type<\"uint64\">",
1335
1335
  value: input.btime
1336
1336
  }, errorFactory)) || $guard(_exceptionable, {
1337
1337
  path: _path + ".btime",
1338
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
1338
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
1339
1339
  value: input.btime
1340
1340
  }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1341
1341
  path: _path + ".path",