@dreamlake/dreamdb 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/node/dreamdb.cjs CHANGED
@@ -20,6 +20,20 @@ class Authoring {
20
20
  const ptr = this.__destroy_into_raw();
21
21
  wasm.__wbg_authoring_free(ptr, 0);
22
22
  }
23
+ /**
24
+ * Add one fixed-shape typed-array Constant.
25
+ *
26
+ * `field` is the same `{name, kind:'array', ...}` descriptor accepted by
27
+ * `create`, with `trackKind:'constant'` and `objectKind:'constant'`.
28
+ * `payload` is a raw or NPY payload matching that declaration.
29
+ * @param {any} field
30
+ * @param {Uint8Array} payload
31
+ * @returns {Promise<void>}
32
+ */
33
+ addArrayConstant(field, payload) {
34
+ const ret = wasm.authoring_addArrayConstant(this.__wbg_ptr, field, payload);
35
+ return ret;
36
+ }
23
37
  /**
24
38
  * Add an embedding column whose index artifacts already exist.
25
39
  *
@@ -275,6 +289,22 @@ class S3Backend {
275
289
  const ret = wasm.s3backend_get(this.__wbg_ptr, ptr0, len0, _opts);
276
290
  return ret;
277
291
  }
292
+ /**
293
+ * Stream `path` without first aggregating the response in wasm memory.
294
+ *
295
+ * Returning the length beside the browser stream satisfies the optional
296
+ * `Backend.getStream` contract. Older injected backends that implement
297
+ * only [`Self::get`] remain compatible, but cannot claim bounded memory
298
+ * for historical oversized inline Track reads.
299
+ * @param {string} path
300
+ * @returns {Promise<any>}
301
+ */
302
+ getStream(path) {
303
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
304
+ const len0 = WASM_VECTOR_LEN;
305
+ const ret = wasm.s3backend_getStream(this.__wbg_ptr, ptr0, len0);
306
+ return ret;
307
+ }
278
308
  /**
279
309
  * List object paths under `prefix`. Stub (returns empty); the current
280
310
  * consumer read paths don't require listing.
@@ -337,6 +367,36 @@ class Space {
337
367
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
338
368
  }
339
369
  }
370
+ /**
371
+ * The Space's human-readable description, or `undefined` when none is set.
372
+ *
373
+ * The read half of `Authoring.setDescription` (#129). It lives here rather
374
+ * than on `Authoring` because that type is `write-full` and so exists only
375
+ * in the Node build — a description is metadata a READER wants, and
376
+ * `Space` is the surface all three build targets share.
377
+ *
378
+ * `async` although `Dataset::description` is not: the value comes from the
379
+ * Dataset this Space opens lazily at the Manifest hash already pinned by
380
+ * this Space, so the first call may perform that open without re-resolving
381
+ * a source Ref.
382
+ *
383
+ * Deliberately routed through `Dataset::description` rather than read out
384
+ * of `self.manifest`'s registry, which would be shorter and would also
385
+ * serve the cached decoded Manifest. `Dataset::recover_meta` is not a prefix
386
+ * filter: it accepts the legacy `vortex.*` namespace as well as
387
+ * `dreamdb.*`, canonicalises, and drops structural keys. Matching
388
+ * `dreamdb.description` here would silently return nothing for a legacy
389
+ * Space whose description is on disk and readable from Rust — the exact
390
+ * defect `recover_meta`'s own comment records.
391
+ *
392
+ * `Option<String>` marshals to `string | undefined`, NOT to `""`. An unset
393
+ * description and an empty one stay distinguishable across the boundary.
394
+ * @returns {Promise<string | undefined>}
395
+ */
396
+ description() {
397
+ const ret = wasm.space_description(this.__wbg_ptr);
398
+ return ret;
399
+ }
340
400
  /**
341
401
  * Open a Space from a `.../refs/<name>` or `.../manifests/<hash>` URI,
342
402
  * resolving the ref (if any) and loading the manifest. If `backend` is
@@ -486,6 +546,30 @@ class Space {
486
546
  const ret = wasm.space_queryVector(this.__wbg_ptr, ptr0, len0, ptr1, len1, opts);
487
547
  return ret;
488
548
  }
549
+ /**
550
+ * Read an Event/Unbucketed or Continuous/TimeBatch typed-array field as
551
+ * `Map<anchorString, {values, shape, ...}>`.
552
+ * @param {string} field
553
+ * @returns {Promise<Map<any, any>>}
554
+ */
555
+ readArrayColumn(field) {
556
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
557
+ const len0 = WASM_VECTOR_LEN;
558
+ const ret = wasm.space_readArrayColumn(this.__wbg_ptr, ptr0, len0);
559
+ return ret;
560
+ }
561
+ /**
562
+ * Read a typed-array Constant and decode it to a JS TypedArray plus its
563
+ * authoritative shape and semantic metadata.
564
+ * @param {string} field
565
+ * @returns {Promise<any>}
566
+ */
567
+ readArrayConstant(field) {
568
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
569
+ const len0 = WASM_VECTOR_LEN;
570
+ const ret = wasm.space_readArrayConstant(this.__wbg_ptr, ptr0, len0);
571
+ return ret;
572
+ }
489
573
  /**
490
574
  * Read a scalar track as a `Map<anchorString, value>`. Single-anchor
491
575
  * entries resolve from the track index; multi-anchor entries fetch (and
@@ -498,6 +582,22 @@ class Space {
498
582
  const ret = wasm.space_readScalarColumn(this.__wbg_ptr, track, _opts);
499
583
  return ret;
500
584
  }
585
+ /**
586
+ * Fetch verified initialization and complete Fragments overlapping one
587
+ * item-relative half-open range. This materializes the selected bytes; it
588
+ * is not a streaming API.
589
+ * @param {string} field
590
+ * @param {Uint8Array} item_key
591
+ * @param {any} relative_start_ns
592
+ * @param {any} relative_end_ns
593
+ * @returns {Promise<any>}
594
+ */
595
+ readVideoItemRange(field, item_key, relative_start_ns, relative_end_ns) {
596
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
597
+ const len0 = WASM_VECTOR_LEN;
598
+ const ret = wasm.space_readVideoItemRange(this.__wbg_ptr, ptr0, len0, item_key, relative_start_ns, relative_end_ns);
599
+ return ret;
600
+ }
501
601
  /**
502
602
  * Fetch a track object and return its `object_index` (array of CBOR
503
603
  * entries). Inline indexes only — paged indexes are not resolved (matching
@@ -509,6 +609,40 @@ class Space {
509
609
  const ret = wasm.space_resolveObjectIndex(this.__wbg_ptr, track);
510
610
  return ret;
511
611
  }
612
+ /**
613
+ * Semantic-cache capacity in bytes (spec/0006 §3.6). Default 1 GiB.
614
+ * @returns {Promise<number>}
615
+ */
616
+ semanticCacheCapacity() {
617
+ const ret = wasm.space_semanticCacheCapacity(this.__wbg_ptr);
618
+ return ret;
619
+ }
620
+ /**
621
+ * Semantic-cache occupancy as `{ entries, bytesUsed, maxBytes }`.
622
+ * @returns {Promise<object>}
623
+ */
624
+ semanticCacheStats() {
625
+ const ret = wasm.space_semanticCacheStats(this.__wbg_ptr);
626
+ return ret;
627
+ }
628
+ /**
629
+ * Set the semantic-cache capacity in bytes, evicting down to it before
630
+ * returning. Returns the bytes evicted. `0` disables the cache.
631
+ *
632
+ * An index whose accounted size exceeds the cap is not cached and is
633
+ * re-fetched on every query, reported honestly as a miss. The default is
634
+ * not raised globally to suit one corpus.
635
+ *
636
+ * Sizing is workload- and architecture-dependent, and figures measured on
637
+ * a 64-bit host do NOT carry over here: `usize` is 32 bits on `wasm32`, so
638
+ * every offset and length inside a decoded index accounts differently.
639
+ * @param {number} n_bytes
640
+ * @returns {Promise<number>}
641
+ */
642
+ setSemanticCacheCapacity(n_bytes) {
643
+ const ret = wasm.space_setSemanticCacheCapacity(this.__wbg_ptr, n_bytes);
644
+ return ret;
645
+ }
512
646
  /**
513
647
  * Base32 hash of the manifest's first timeline.
514
648
  * @returns {string}
@@ -540,7 +674,10 @@ class Space {
540
674
  const ptr0 = passStringToWasm0(key_or_modality, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
541
675
  const len0 = WASM_VECTOR_LEN;
542
676
  const ret = wasm.space_trackFor(this.__wbg_ptr, ptr0, len0);
543
- return ret;
677
+ if (ret[2]) {
678
+ throw takeFromExternrefTable0(ret[1]);
679
+ }
680
+ return takeFromExternrefTable0(ret[0]);
544
681
  }
545
682
  /**
546
683
  * List resolved tracks from this manifest.
@@ -548,6 +685,35 @@ class Space {
548
685
  */
549
686
  tracks() {
550
687
  const ret = wasm.space_tracks(this.__wbg_ptr);
688
+ if (ret[2]) {
689
+ throw takeFromExternrefTable0(ret[1]);
690
+ }
691
+ return takeFromExternrefTable0(ret[0]);
692
+ }
693
+ /**
694
+ * Look up the logical VideoItem containing one absolute Timeline anchor
695
+ * without fetching media. Exact nanosecond values are returned as bigint.
696
+ * @param {string} field
697
+ * @param {any} anchor_ns
698
+ * @returns {Promise<any>}
699
+ */
700
+ videoItemAt(field, anchor_ns) {
701
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
702
+ const len0 = WASM_VECTOR_LEN;
703
+ const ret = wasm.space_videoItemAt(this.__wbg_ptr, ptr0, len0, anchor_ns);
704
+ return ret;
705
+ }
706
+ /**
707
+ * Look up one logical VideoItem by its stable opaque key without fetching
708
+ * initialization or Fragment bytes.
709
+ * @param {string} field
710
+ * @param {Uint8Array} item_key
711
+ * @returns {Promise<any>}
712
+ */
713
+ videoItemByKey(field, item_key) {
714
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
715
+ const len0 = WASM_VECTOR_LEN;
716
+ const ret = wasm.space_videoItemByKey(this.__wbg_ptr, ptr0, len0, item_key);
551
717
  return ret;
552
718
  }
553
719
  }
@@ -619,6 +785,54 @@ class Writer {
619
785
  const ret = wasm.writer_deleteRecords(this.__wbg_ptr, ptr0, len0, ptr1, len1);
620
786
  return ret;
621
787
  }
788
+ /**
789
+ * Ingest a pre-fragmented CMAF (fragmented-MP4) video into a Video field
790
+ * as a `spec/0007` §5 media Track — the thing that makes a video Track
791
+ * time-seekable and MSE-playable rather than one opaque blob.
792
+ *
793
+ * ```js
794
+ * const out = await writer.ingestCmaf('video', initBytes, [
795
+ * [frag0, 0n, 2_000_000_000n],
796
+ * [frag1, 2_000_000_000n, 4_000_000_000n],
797
+ * ])
798
+ * ```
799
+ *
800
+ * - `init` is the initialization segment (`ftyp`+`moov`).
801
+ * - each fragment is `[Uint8Array, tStartNs, tEndNs]`, half-open, already
802
+ * offset to the timeline anchor the caller wants. Pass `bigint`s:
803
+ * wall-clock nanosecond anchors are far past `Number.MAX_SAFE_INTEGER`
804
+ * and a rounded `tStart` writes the fragment into a 60 s bucket that
805
+ * does not match the address it is indexed at.
806
+ *
807
+ * Calling it again on the SAME field APPENDS (one episode per call on a
808
+ * shared timeline) and reuses the track's existing init segment; a clip
809
+ * whose init differs — different codec, resolution, fps or audio config —
810
+ * is refused, because a Track carries exactly one init segment and the
811
+ * mismatch would produce fragments that decode against the wrong one.
812
+ *
813
+ * Returns `{field, modality, initHash, fragmentCount, coverage: [bigint,
814
+ * bigint], trackHash, manifestHash}`. `coverage` is `bigint` for the
815
+ * reason above; `fragmentCount` is the track's total after the append,
816
+ * not the number passed in.
817
+ *
818
+ * **Node only** (`write-full`). This takes every fragment's bytes as an
819
+ * argument, so peak memory is the whole clip; the native path form streams
820
+ * fragment-by-fragment off disk, which wasm32 cannot do because it has no
821
+ * filesystem. Fragmenting a multi-GB source inside a browser tab's 32-bit
822
+ * address space is not a workflow worth pretending to support.
823
+ * @param {string} field
824
+ * @param {Uint8Array} init
825
+ * @param {Array<any>} fragments
826
+ * @returns {Promise<any>}
827
+ */
828
+ ingestCmaf(field, init, fragments) {
829
+ const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
830
+ const len0 = WASM_VECTOR_LEN;
831
+ const ptr1 = passArray8ToWasm0(init, wasm.__wbindgen_malloc);
832
+ const len1 = WASM_VECTOR_LEN;
833
+ const ret = wasm.writer_ingestCmaf(this.__wbg_ptr, ptr0, len0, ptr1, len1, fragments);
834
+ return ret;
835
+ }
622
836
  /**
623
837
  * Current manifest hash, base32.
624
838
  * @returns {string}
@@ -1013,6 +1227,25 @@ function timeBucket(t_start, duration) {
1013
1227
  }
1014
1228
  exports.timeBucket = timeBucket;
1015
1229
 
1230
+ /**
1231
+ * Decode one spec/0025 item using the same declaration and payload path as
1232
+ * `Space.readArrayColumn`, without requiring storage IO. This is the SDK's
1233
+ * pure conformance entry point for language-neutral vectors.
1234
+ * @param {any} item_type
1235
+ * @param {Uint8Array} payload
1236
+ * @returns {any}
1237
+ */
1238
+ function typedArrayDecode(item_type, payload) {
1239
+ const ptr0 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
1240
+ const len0 = WASM_VECTOR_LEN;
1241
+ const ret = wasm.typedArrayDecode(item_type, ptr0, len0);
1242
+ if (ret[2]) {
1243
+ throw takeFromExternrefTable0(ret[1]);
1244
+ }
1245
+ return takeFromExternrefTable0(ret[0]);
1246
+ }
1247
+ exports.typedArrayDecode = typedArrayDecode;
1248
+
1016
1249
  /**
1017
1250
  * Package version — useful for consumers to confirm which build is loaded.
1018
1251
  * @returns {string}
@@ -1102,6 +1335,10 @@ function __wbg_get_imports() {
1102
1335
  const ret = typeof(val) === 'object' && val !== null;
1103
1336
  return ret;
1104
1337
  },
1338
+ __wbg___wbindgen_is_string_dde0fd9020db4434: function(arg0) {
1339
+ const ret = typeof(arg0) === 'string';
1340
+ return ret;
1341
+ },
1105
1342
  __wbg___wbindgen_is_undefined_35bb9f4c7fd651d5: function(arg0) {
1106
1343
  const ret = arg0 === undefined;
1107
1344
  return ret;
@@ -1142,6 +1379,10 @@ function __wbg_get_imports() {
1142
1379
  const ret = Authoring.__wrap(arg0);
1143
1380
  return ret;
1144
1381
  },
1382
+ __wbg_body_acbb5ec9cd18657f: function(arg0) {
1383
+ const ret = arg0.body;
1384
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1385
+ },
1145
1386
  __wbg_call_084ee3e860ee9f92: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1146
1387
  const ret = arg0.call(arg1, arg2, arg3, arg4);
1147
1388
  return ret;
@@ -1154,6 +1395,14 @@ function __wbg_get_imports() {
1154
1395
  const ret = arg0.call(arg1, arg2);
1155
1396
  return ret;
1156
1397
  }, arguments); },
1398
+ __wbg_call_faa0a261f288f846: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1399
+ const ret = arg0.call(arg1, arg2, arg3);
1400
+ return ret;
1401
+ }, arguments); },
1402
+ __wbg_crypto_38df2bab126b63dc: function(arg0) {
1403
+ const ret = arg0.crypto;
1404
+ return ret;
1405
+ },
1157
1406
  __wbg_done_54b8da57023b7ed2: function(arg0) {
1158
1407
  const ret = arg0.done;
1159
1408
  return ret;
@@ -1165,6 +1414,20 @@ function __wbg_get_imports() {
1165
1414
  __wbg_error_f085d7e62279b703: function(arg0) {
1166
1415
  console.error(arg0);
1167
1416
  },
1417
+ __wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
1418
+ arg0.getRandomValues(arg1);
1419
+ }, arguments); },
1420
+ __wbg_getReader_c8a7370df46b86f6: function(arg0) {
1421
+ const ret = arg0.getReader();
1422
+ return ret;
1423
+ },
1424
+ __wbg_get_0b3f3bb74d16b7ad: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1425
+ const ret = arg1.get(getStringFromWasm0(arg2, arg3));
1426
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1427
+ var len1 = WASM_VECTOR_LEN;
1428
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1429
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1430
+ }, arguments); },
1168
1431
  __wbg_get_3e9a707ab7d352eb: function() { return handleError(function (arg0, arg1) {
1169
1432
  const ret = Reflect.get(arg0, arg1);
1170
1433
  return ret;
@@ -1181,6 +1444,10 @@ function __wbg_get_imports() {
1181
1444
  const ret = arg0[arg1 >>> 0];
1182
1445
  return ret;
1183
1446
  },
1447
+ __wbg_headers_18f39f24d3837dc1: function(arg0) {
1448
+ const ret = arg0.headers;
1449
+ return ret;
1450
+ },
1184
1451
  __wbg_headers_4cfb0c75793d7a8d: function(arg0) {
1185
1452
  const ret = arg0.headers;
1186
1453
  return ret;
@@ -1235,6 +1502,16 @@ function __wbg_get_imports() {
1235
1502
  const ret = result;
1236
1503
  return ret;
1237
1504
  },
1505
+ __wbg_instanceof_ReadableStream_9a3d74fc91aa9c55: function(arg0) {
1506
+ let result;
1507
+ try {
1508
+ result = arg0 instanceof ReadableStream;
1509
+ } catch (_) {
1510
+ result = false;
1511
+ }
1512
+ const ret = result;
1513
+ return ret;
1514
+ },
1238
1515
  __wbg_instanceof_Response_ecfc823e8fb354e2: function(arg0) {
1239
1516
  let result;
1240
1517
  try {
@@ -1267,18 +1544,54 @@ function __wbg_get_imports() {
1267
1544
  const ret = Symbol.iterator;
1268
1545
  return ret;
1269
1546
  },
1547
+ __wbg_length_0adf2f3c5da33087: function(arg0) {
1548
+ const ret = arg0.length;
1549
+ return ret;
1550
+ },
1270
1551
  __wbg_length_13e61aa81636ec86: function(arg0) {
1271
1552
  const ret = arg0.length;
1272
1553
  return ret;
1273
1554
  },
1555
+ __wbg_length_1c094f6c75753f5f: function(arg0) {
1556
+ const ret = arg0.length;
1557
+ return ret;
1558
+ },
1274
1559
  __wbg_length_2591a0f4f659a55c: function(arg0) {
1275
1560
  const ret = arg0.length;
1276
1561
  return ret;
1277
1562
  },
1563
+ __wbg_length_3a1b902b6cde9e2c: function(arg0) {
1564
+ const ret = arg0.length;
1565
+ return ret;
1566
+ },
1278
1567
  __wbg_length_56fcd3e2b7e0299d: function(arg0) {
1279
1568
  const ret = arg0.length;
1280
1569
  return ret;
1281
1570
  },
1571
+ __wbg_length_911750a64e2f4f88: function(arg0) {
1572
+ const ret = arg0.length;
1573
+ return ret;
1574
+ },
1575
+ __wbg_length_a4365e969857a2c9: function(arg0) {
1576
+ const ret = arg0.length;
1577
+ return ret;
1578
+ },
1579
+ __wbg_length_c7ce929623e7a230: function(arg0) {
1580
+ const ret = arg0.length;
1581
+ return ret;
1582
+ },
1583
+ __wbg_length_dc239675ea61db1b: function(arg0) {
1584
+ const ret = arg0.length;
1585
+ return ret;
1586
+ },
1587
+ __wbg_length_efe2271ed86b56cc: function(arg0) {
1588
+ const ret = arg0.length;
1589
+ return ret;
1590
+ },
1591
+ __wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
1592
+ const ret = arg0.msCrypto;
1593
+ return ret;
1594
+ },
1282
1595
  __wbg_new_02d162bc6cf02f60: function() {
1283
1596
  const ret = new Object();
1284
1597
  return ret;
@@ -1317,6 +1630,46 @@ function __wbg_get_imports() {
1317
1630
  state0.a = 0;
1318
1631
  }
1319
1632
  },
1633
+ __wbg_new_with_length_1278c16a5c5b497f: function(arg0) {
1634
+ const ret = new Float64Array(arg0 >>> 0);
1635
+ return ret;
1636
+ },
1637
+ __wbg_new_with_length_22e34f6824b87f53: function(arg0) {
1638
+ const ret = new BigUint64Array(arg0 >>> 0);
1639
+ return ret;
1640
+ },
1641
+ __wbg_new_with_length_58dc420af34edb59: function(arg0) {
1642
+ const ret = new Float32Array(arg0 >>> 0);
1643
+ return ret;
1644
+ },
1645
+ __wbg_new_with_length_662ce8fda8456c6c: function(arg0) {
1646
+ const ret = new Uint16Array(arg0 >>> 0);
1647
+ return ret;
1648
+ },
1649
+ __wbg_new_with_length_6ab0b677ba8ffdc4: function(arg0) {
1650
+ const ret = new BigInt64Array(arg0 >>> 0);
1651
+ return ret;
1652
+ },
1653
+ __wbg_new_with_length_78398b95fa59feae: function(arg0) {
1654
+ const ret = new Int32Array(arg0 >>> 0);
1655
+ return ret;
1656
+ },
1657
+ __wbg_new_with_length_96785292f4aab914: function(arg0) {
1658
+ const ret = new Int8Array(arg0 >>> 0);
1659
+ return ret;
1660
+ },
1661
+ __wbg_new_with_length_99887c91eae4abab: function(arg0) {
1662
+ const ret = new Uint8Array(arg0 >>> 0);
1663
+ return ret;
1664
+ },
1665
+ __wbg_new_with_length_bab0ddb25b1a2cc7: function(arg0) {
1666
+ const ret = new Int16Array(arg0 >>> 0);
1667
+ return ret;
1668
+ },
1669
+ __wbg_new_with_length_f128f2c16ad4f906: function(arg0) {
1670
+ const ret = new Uint32Array(arg0 >>> 0);
1671
+ return ret;
1672
+ },
1320
1673
  __wbg_new_with_str_and_init_ffe9977c986ea039: function() { return handleError(function (arg0, arg1, arg2) {
1321
1674
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
1322
1675
  return ret;
@@ -1329,6 +1682,10 @@ function __wbg_get_imports() {
1329
1682
  const ret = arg0.next();
1330
1683
  return ret;
1331
1684
  }, arguments); },
1685
+ __wbg_node_84ea875411254db1: function(arg0) {
1686
+ const ret = arg0.node;
1687
+ return ret;
1688
+ },
1332
1689
  __wbg_now_81363d44c96dd239: function() {
1333
1690
  const ret = Date.now();
1334
1691
  return ret;
@@ -1337,6 +1694,10 @@ function __wbg_get_imports() {
1337
1694
  const ret = arg0.ok;
1338
1695
  return ret;
1339
1696
  },
1697
+ __wbg_process_44c7a14e11e9f69e: function(arg0) {
1698
+ const ret = arg0.process;
1699
+ return ret;
1700
+ },
1340
1701
  __wbg_prototypesetcall_5f9bdc8d75e07276: function(arg0, arg1, arg2) {
1341
1702
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1342
1703
  },
@@ -1354,14 +1715,45 @@ function __wbg_get_imports() {
1354
1715
  __wbg_queueMicrotask_b39ea83c7f01971a: function(arg0) {
1355
1716
  queueMicrotask(arg0);
1356
1717
  },
1718
+ __wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
1719
+ arg0.randomFillSync(arg1);
1720
+ }, arguments); },
1721
+ __wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
1722
+ const ret = module.require;
1723
+ return ret;
1724
+ }, arguments); },
1357
1725
  __wbg_resolve_d17db9352f5a220e: function(arg0) {
1358
1726
  const ret = Promise.resolve(arg0);
1359
1727
  return ret;
1360
1728
  },
1729
+ __wbg_set_517261bc500078e6: function(arg0, arg1, arg2) {
1730
+ arg0.set(getArrayI16FromWasm0(arg1, arg2));
1731
+ },
1732
+ __wbg_set_5bffd0c00e65c280: function(arg0, arg1, arg2) {
1733
+ arg0.set(getArrayF64FromWasm0(arg1, arg2));
1734
+ },
1735
+ __wbg_set_5d860a0c0949a838: function(arg0, arg1, arg2) {
1736
+ arg0.set(getArrayF32FromWasm0(arg1, arg2));
1737
+ },
1738
+ __wbg_set_8c4bf3c22a64e1df: function(arg0, arg1, arg2) {
1739
+ arg0.set(getArrayI8FromWasm0(arg1, arg2));
1740
+ },
1741
+ __wbg_set_90474108ec025ba3: function(arg0, arg1, arg2) {
1742
+ arg0.set(getArrayU32FromWasm0(arg1, arg2));
1743
+ },
1744
+ __wbg_set_943e5a384dda27eb: function(arg0, arg1, arg2) {
1745
+ arg0.set(getArrayI32FromWasm0(arg1, arg2));
1746
+ },
1361
1747
  __wbg_set_a0e911be3da02782: function() { return handleError(function (arg0, arg1, arg2) {
1362
1748
  const ret = Reflect.set(arg0, arg1, arg2);
1363
1749
  return ret;
1364
1750
  }, arguments); },
1751
+ __wbg_set_c9acd362199fe8b8: function(arg0, arg1, arg2) {
1752
+ arg0.set(getArrayI64FromWasm0(arg1, arg2));
1753
+ },
1754
+ __wbg_set_d4121491cc61da07: function(arg0, arg1, arg2) {
1755
+ arg0.set(getArrayU16FromWasm0(arg1, arg2));
1756
+ },
1365
1757
  __wbg_set_d57e5106f0271787: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1366
1758
  arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1367
1759
  }, arguments); },
@@ -1369,6 +1761,9 @@ function __wbg_get_imports() {
1369
1761
  const ret = arg0.set(arg1, arg2);
1370
1762
  return ret;
1371
1763
  },
1764
+ __wbg_set_fb3115a057014152: function(arg0, arg1, arg2) {
1765
+ arg0.set(getArrayU64FromWasm0(arg1, arg2));
1766
+ },
1372
1767
  __wbg_space_new: function(arg0) {
1373
1768
  const ret = Space.__wrap(arg0);
1374
1769
  return ret;
@@ -1393,6 +1788,10 @@ function __wbg_get_imports() {
1393
1788
  const ret = arg0.status;
1394
1789
  return ret;
1395
1790
  },
1791
+ __wbg_subarray_7c6a0da8f3b4a1ba: function(arg0, arg1, arg2) {
1792
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1793
+ return ret;
1794
+ },
1396
1795
  __wbg_then_837494e384b37459: function(arg0, arg1) {
1397
1796
  const ret = arg0.then(arg1);
1398
1797
  return ret;
@@ -1405,12 +1804,16 @@ function __wbg_get_imports() {
1405
1804
  const ret = arg0.value;
1406
1805
  return ret;
1407
1806
  },
1807
+ __wbg_versions_276b2795b1c6a219: function(arg0) {
1808
+ const ret = arg0.versions;
1809
+ return ret;
1810
+ },
1408
1811
  __wbg_writer_new: function(arg0) {
1409
1812
  const ret = Writer.__wrap(arg0);
1410
1813
  return ret;
1411
1814
  },
1412
1815
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
1413
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 580, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1816
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 792, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1414
1817
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___wasm_bindgen_f7c54996eb9137d9___JsValue__core_7d5f0a2ba6a62c33___result__Result_____wasm_bindgen_f7c54996eb9137d9___JsError___true_);
1415
1818
  return ret;
1416
1819
  },
@@ -1430,16 +1833,21 @@ function __wbg_get_imports() {
1430
1833
  return ret;
1431
1834
  },
1432
1835
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
1836
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1837
+ const ret = getArrayU8FromWasm0(arg0, arg1);
1838
+ return ret;
1839
+ },
1840
+ __wbindgen_cast_0000000000000006: function(arg0, arg1) {
1433
1841
  // Cast intrinsic for `Ref(String) -> Externref`.
1434
1842
  const ret = getStringFromWasm0(arg0, arg1);
1435
1843
  return ret;
1436
1844
  },
1437
- __wbindgen_cast_0000000000000006: function(arg0) {
1845
+ __wbindgen_cast_0000000000000007: function(arg0) {
1438
1846
  // Cast intrinsic for `U64 -> Externref`.
1439
1847
  const ret = BigInt.asUintN(64, arg0);
1440
1848
  return ret;
1441
1849
  },
1442
- __wbindgen_cast_0000000000000007: function(arg0, arg1) {
1850
+ __wbindgen_cast_0000000000000008: function(arg0, arg1) {
1443
1851
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
1444
1852
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
1445
1853
  // Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
@@ -1566,6 +1974,31 @@ function getArrayF32FromWasm0(ptr, len) {
1566
1974
  return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
1567
1975
  }
1568
1976
 
1977
+ function getArrayF64FromWasm0(ptr, len) {
1978
+ ptr = ptr >>> 0;
1979
+ return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
1980
+ }
1981
+
1982
+ function getArrayI16FromWasm0(ptr, len) {
1983
+ ptr = ptr >>> 0;
1984
+ return getInt16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
1985
+ }
1986
+
1987
+ function getArrayI32FromWasm0(ptr, len) {
1988
+ ptr = ptr >>> 0;
1989
+ return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
1990
+ }
1991
+
1992
+ function getArrayI64FromWasm0(ptr, len) {
1993
+ ptr = ptr >>> 0;
1994
+ return getBigInt64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
1995
+ }
1996
+
1997
+ function getArrayI8FromWasm0(ptr, len) {
1998
+ ptr = ptr >>> 0;
1999
+ return getInt8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
2000
+ }
2001
+
1569
2002
  function getArrayJsValueFromWasm0(ptr, len) {
1570
2003
  ptr = ptr >>> 0;
1571
2004
  const mem = getDataViewMemory0();
@@ -1577,11 +2010,34 @@ function getArrayJsValueFromWasm0(ptr, len) {
1577
2010
  return result;
1578
2011
  }
1579
2012
 
2013
+ function getArrayU16FromWasm0(ptr, len) {
2014
+ ptr = ptr >>> 0;
2015
+ return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
2016
+ }
2017
+
2018
+ function getArrayU32FromWasm0(ptr, len) {
2019
+ ptr = ptr >>> 0;
2020
+ return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
2021
+ }
2022
+
2023
+ function getArrayU64FromWasm0(ptr, len) {
2024
+ ptr = ptr >>> 0;
2025
+ return getBigUint64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
2026
+ }
2027
+
1580
2028
  function getArrayU8FromWasm0(ptr, len) {
1581
2029
  ptr = ptr >>> 0;
1582
2030
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
1583
2031
  }
1584
2032
 
2033
+ let cachedBigInt64ArrayMemory0 = null;
2034
+ function getBigInt64ArrayMemory0() {
2035
+ if (cachedBigInt64ArrayMemory0 === null || cachedBigInt64ArrayMemory0.byteLength === 0) {
2036
+ cachedBigInt64ArrayMemory0 = new BigInt64Array(wasm.memory.buffer);
2037
+ }
2038
+ return cachedBigInt64ArrayMemory0;
2039
+ }
2040
+
1585
2041
  let cachedBigUint64ArrayMemory0 = null;
1586
2042
  function getBigUint64ArrayMemory0() {
1587
2043
  if (cachedBigUint64ArrayMemory0 === null || cachedBigUint64ArrayMemory0.byteLength === 0) {
@@ -1606,10 +2062,58 @@ function getFloat32ArrayMemory0() {
1606
2062
  return cachedFloat32ArrayMemory0;
1607
2063
  }
1608
2064
 
2065
+ let cachedFloat64ArrayMemory0 = null;
2066
+ function getFloat64ArrayMemory0() {
2067
+ if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {
2068
+ cachedFloat64ArrayMemory0 = new Float64Array(wasm.memory.buffer);
2069
+ }
2070
+ return cachedFloat64ArrayMemory0;
2071
+ }
2072
+
2073
+ let cachedInt16ArrayMemory0 = null;
2074
+ function getInt16ArrayMemory0() {
2075
+ if (cachedInt16ArrayMemory0 === null || cachedInt16ArrayMemory0.byteLength === 0) {
2076
+ cachedInt16ArrayMemory0 = new Int16Array(wasm.memory.buffer);
2077
+ }
2078
+ return cachedInt16ArrayMemory0;
2079
+ }
2080
+
2081
+ let cachedInt32ArrayMemory0 = null;
2082
+ function getInt32ArrayMemory0() {
2083
+ if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
2084
+ cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer);
2085
+ }
2086
+ return cachedInt32ArrayMemory0;
2087
+ }
2088
+
2089
+ let cachedInt8ArrayMemory0 = null;
2090
+ function getInt8ArrayMemory0() {
2091
+ if (cachedInt8ArrayMemory0 === null || cachedInt8ArrayMemory0.byteLength === 0) {
2092
+ cachedInt8ArrayMemory0 = new Int8Array(wasm.memory.buffer);
2093
+ }
2094
+ return cachedInt8ArrayMemory0;
2095
+ }
2096
+
1609
2097
  function getStringFromWasm0(ptr, len) {
1610
2098
  return decodeText(ptr >>> 0, len);
1611
2099
  }
1612
2100
 
2101
+ let cachedUint16ArrayMemory0 = null;
2102
+ function getUint16ArrayMemory0() {
2103
+ if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
2104
+ cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
2105
+ }
2106
+ return cachedUint16ArrayMemory0;
2107
+ }
2108
+
2109
+ let cachedUint32ArrayMemory0 = null;
2110
+ function getUint32ArrayMemory0() {
2111
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
2112
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
2113
+ }
2114
+ return cachedUint32ArrayMemory0;
2115
+ }
2116
+
1613
2117
  let cachedUint8ArrayMemory0 = null;
1614
2118
  function getUint8ArrayMemory0() {
1615
2119
  if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {