@dreamlake/dreamdb 0.5.1 → 0.5.3
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/LICENSE-APACHE +20 -0
- package/LICENSE-MIT +21 -0
- package/README.md +24 -3
- package/browser/dreamdb.d.ts +185 -2
- package/browser/dreamdb.js +1 -1
- package/browser/dreamdb_bg.js +723 -5
- package/browser/dreamdb_bg.wasm +0 -0
- package/browser/dreamdb_bg.wasm.d.ts +35 -2
- package/browser-extras.mjs +82 -7
- package/browser.mjs +7 -0
- package/index.d.ts +328 -8
- package/node/dreamdb.cjs +858 -9
- package/node/dreamdb.d.cts +250 -6
- package/node/dreamdb_bg.wasm +0 -0
- package/node/dreamdb_bg.wasm.d.ts +42 -3
- package/node.mjs +5 -4
- package/package.json +4 -2
- package/web/dreamdb.d.ts +220 -4
- package/web/dreamdb.js +730 -5
- package/web/dreamdb_bg.wasm +0 -0
- package/web/dreamdb_bg.wasm.d.ts +35 -2
- package/web.mjs +5 -0
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
|
*
|
|
@@ -43,9 +57,11 @@ class Authoring {
|
|
|
43
57
|
* @param {boolean} rerank
|
|
44
58
|
* @param {number | null | undefined} version
|
|
45
59
|
* @param {Array<any>} samples
|
|
60
|
+
* @param {number | null} [bucket_max_bytes]
|
|
61
|
+
* @param {Uint8Array | null} [embed_spec]
|
|
46
62
|
* @returns {Promise<void>}
|
|
47
63
|
*/
|
|
48
|
-
addEmbeddingLayer(name, parent_field, dim, algorithm, spatial_index, compressor, rerank, version, samples) {
|
|
64
|
+
addEmbeddingLayer(name, parent_field, dim, algorithm, spatial_index, compressor, rerank, version, samples, bucket_max_bytes, embed_spec) {
|
|
49
65
|
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
50
66
|
const len0 = WASM_VECTOR_LEN;
|
|
51
67
|
const ptr1 = passStringToWasm0(parent_field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -56,7 +72,9 @@ class Authoring {
|
|
|
56
72
|
const len3 = WASM_VECTOR_LEN;
|
|
57
73
|
const ptr4 = passStringToWasm0(compressor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
58
74
|
const len4 = WASM_VECTOR_LEN;
|
|
59
|
-
|
|
75
|
+
var ptr5 = isLikeNone(embed_spec) ? 0 : passArray8ToWasm0(embed_spec, wasm.__wbindgen_malloc);
|
|
76
|
+
var len5 = WASM_VECTOR_LEN;
|
|
77
|
+
const ret = wasm.authoring_addEmbeddingLayer(this.__wbg_ptr, ptr0, len0, ptr1, len1, dim, ptr2, len2, ptr3, len3, ptr4, len4, rerank, isLikeNone(version) ? Number.MAX_SAFE_INTEGER : (version) >>> 0, samples, isLikeNone(bucket_max_bytes) ? Number.MAX_SAFE_INTEGER : (bucket_max_bytes) >>> 0, ptr5, len5);
|
|
60
78
|
return ret;
|
|
61
79
|
}
|
|
62
80
|
/**
|
|
@@ -109,6 +127,18 @@ class Authoring {
|
|
|
109
127
|
const ret = wasm.authoring_addScalarLayer(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, samples);
|
|
110
128
|
return ret;
|
|
111
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* Append `[anchor, vector]` pairs, adopting a raw graph as Fresh Vamana.
|
|
132
|
+
* @param {string} field
|
|
133
|
+
* @param {Array<any>} samples
|
|
134
|
+
* @returns {Promise<any>}
|
|
135
|
+
*/
|
|
136
|
+
appendGraphNodes(field, samples) {
|
|
137
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
138
|
+
const len0 = WASM_VECTOR_LEN;
|
|
139
|
+
const ret = wasm.authoring_appendGraphNodes(this.__wbg_ptr, ptr0, len0, samples);
|
|
140
|
+
return ret;
|
|
141
|
+
}
|
|
112
142
|
/**
|
|
113
143
|
* Fork the current manifest to a new ref name.
|
|
114
144
|
* @param {string} new_name
|
|
@@ -120,6 +150,31 @@ class Authoring {
|
|
|
120
150
|
const ret = wasm.authoring_branch(this.__wbg_ptr, ptr0, len0);
|
|
121
151
|
return ret;
|
|
122
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
* Merge one or more branches into this ref. Returns the new manifest hash.
|
|
155
|
+
* Build a raw Vamana field. Samples are `[anchor, vector]` pairs; anchors
|
|
156
|
+
* use the same lossless representation as addEmbeddingLayer.
|
|
157
|
+
* @param {string} name
|
|
158
|
+
* @param {string} parent_field
|
|
159
|
+
* @param {number} dim
|
|
160
|
+
* @param {Array<any>} samples
|
|
161
|
+
* @param {number} r
|
|
162
|
+
* @param {Uint8Array} seed
|
|
163
|
+
* @param {Uint8Array | null} [embed_spec]
|
|
164
|
+
* @returns {Promise<void>}
|
|
165
|
+
*/
|
|
166
|
+
buildGraphIndex(name, parent_field, dim, samples, r, seed, embed_spec) {
|
|
167
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
168
|
+
const len0 = WASM_VECTOR_LEN;
|
|
169
|
+
const ptr1 = passStringToWasm0(parent_field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
170
|
+
const len1 = WASM_VECTOR_LEN;
|
|
171
|
+
const ptr2 = passArray8ToWasm0(seed, wasm.__wbindgen_malloc);
|
|
172
|
+
const len2 = WASM_VECTOR_LEN;
|
|
173
|
+
var ptr3 = isLikeNone(embed_spec) ? 0 : passArray8ToWasm0(embed_spec, wasm.__wbindgen_malloc);
|
|
174
|
+
var len3 = WASM_VECTOR_LEN;
|
|
175
|
+
const ret = wasm.authoring_buildGraphIndex(this.__wbg_ptr, ptr0, len0, ptr1, len1, dim, samples, r, ptr2, len2, ptr3, len3);
|
|
176
|
+
return ret;
|
|
177
|
+
}
|
|
123
178
|
/**
|
|
124
179
|
* Collapse per-cell fragments. Returns
|
|
125
180
|
* `{cellsExamined, cellsCompacted, fragmentsCollapsed, manifest?}`.
|
|
@@ -139,6 +194,33 @@ class Authoring {
|
|
|
139
194
|
const ret = wasm.authoring_compact(this.__wbg_ptr, ptr0, len0, threshold, max_cells);
|
|
140
195
|
return ret;
|
|
141
196
|
}
|
|
197
|
+
/**
|
|
198
|
+
* Compress a raw graph with canonical VectorCompressor CBOR. The raw
|
|
199
|
+
* lineage is retained; rerank selects exact scoring of the candidate pool.
|
|
200
|
+
* @param {string} field
|
|
201
|
+
* @param {Uint8Array} compressor
|
|
202
|
+
* @param {boolean} rerank
|
|
203
|
+
* @returns {Promise<void>}
|
|
204
|
+
*/
|
|
205
|
+
compressGraphIndex(field, compressor, rerank) {
|
|
206
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
207
|
+
const len0 = WASM_VECTOR_LEN;
|
|
208
|
+
const ptr1 = passArray8ToWasm0(compressor, wasm.__wbindgen_malloc);
|
|
209
|
+
const len1 = WASM_VECTOR_LEN;
|
|
210
|
+
const ret = wasm.authoring_compressGraphIndex(this.__wbg_ptr, ptr0, len0, ptr1, len1, rerank);
|
|
211
|
+
return ret;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Caller-driven region consolidation; does not erase tombstones or ids.
|
|
215
|
+
* @param {string} field
|
|
216
|
+
* @returns {Promise<any>}
|
|
217
|
+
*/
|
|
218
|
+
consolidateGraph(field) {
|
|
219
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
220
|
+
const len0 = WASM_VECTOR_LEN;
|
|
221
|
+
const ret = wasm.authoring_consolidateGraph(this.__wbg_ptr, ptr0, len0);
|
|
222
|
+
return ret;
|
|
223
|
+
}
|
|
142
224
|
/**
|
|
143
225
|
* Create a new dataset and publish `refs/<name>`.
|
|
144
226
|
*
|
|
@@ -186,7 +268,6 @@ class Authoring {
|
|
|
186
268
|
return ret;
|
|
187
269
|
}
|
|
188
270
|
/**
|
|
189
|
-
* Merge one or more branches into this ref. Returns the new manifest hash.
|
|
190
271
|
* @param {string[]} branches
|
|
191
272
|
* @returns {Promise<string>}
|
|
192
273
|
*/
|
|
@@ -247,6 +328,68 @@ class Authoring {
|
|
|
247
328
|
if (Symbol.dispose) Authoring.prototype[Symbol.dispose] = Authoring.prototype.free;
|
|
248
329
|
exports.Authoring = Authoring;
|
|
249
330
|
|
|
331
|
+
class GeometryReader {
|
|
332
|
+
static __wrap(ptr) {
|
|
333
|
+
const obj = Object.create(GeometryReader.prototype);
|
|
334
|
+
obj.__wbg_ptr = ptr;
|
|
335
|
+
GeometryReaderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
336
|
+
return obj;
|
|
337
|
+
}
|
|
338
|
+
__destroy_into_raw() {
|
|
339
|
+
const ptr = this.__wbg_ptr;
|
|
340
|
+
this.__wbg_ptr = 0;
|
|
341
|
+
GeometryReaderFinalization.unregister(this);
|
|
342
|
+
return ptr;
|
|
343
|
+
}
|
|
344
|
+
free() {
|
|
345
|
+
const ptr = this.__destroy_into_raw();
|
|
346
|
+
wasm.__wbg_geometryreader_free(ptr, 0);
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Returns only the new suffix at this total logical byte budget.
|
|
350
|
+
* @param {any} key
|
|
351
|
+
* @param {any} budget
|
|
352
|
+
* @returns {Promise<Uint8Array>}
|
|
353
|
+
*/
|
|
354
|
+
extendCellPrefix(key, budget) {
|
|
355
|
+
const ret = wasm.geometryreader_extendCellPrefix(this.__wbg_ptr, key, budget);
|
|
356
|
+
return ret;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Declaration plus cells/LODs; no payload transfer. u64 values are BigInt.
|
|
360
|
+
* @returns {any}
|
|
361
|
+
*/
|
|
362
|
+
metadata() {
|
|
363
|
+
const ret = wasm.geometryreader_metadata(this.__wbg_ptr);
|
|
364
|
+
if (ret[2]) {
|
|
365
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
366
|
+
}
|
|
367
|
+
return takeFromExternrefTable0(ret[0]);
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* @param {any} level
|
|
371
|
+
* @returns {Promise<Uint8Array>}
|
|
372
|
+
*/
|
|
373
|
+
readMeshLod(level) {
|
|
374
|
+
const ret = wasm.geometryreader_readMeshLod(this.__wbg_ptr, level);
|
|
375
|
+
return ret;
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* @param {any} min
|
|
379
|
+
* @param {any} max
|
|
380
|
+
* @returns {Array<any>}
|
|
381
|
+
*/
|
|
382
|
+
selectCells(min, max) {
|
|
383
|
+
const ret = wasm.geometryreader_selectCells(this.__wbg_ptr, min, max);
|
|
384
|
+
if (ret[2]) {
|
|
385
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
386
|
+
}
|
|
387
|
+
return takeFromExternrefTable0(ret[0]);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
if (Symbol.dispose) GeometryReader.prototype[Symbol.dispose] = GeometryReader.prototype.free;
|
|
391
|
+
exports.GeometryReader = GeometryReader;
|
|
392
|
+
|
|
250
393
|
/**
|
|
251
394
|
* A `fetch`-backed backend rooted at a base URL.
|
|
252
395
|
*/
|
|
@@ -275,6 +418,22 @@ class S3Backend {
|
|
|
275
418
|
const ret = wasm.s3backend_get(this.__wbg_ptr, ptr0, len0, _opts);
|
|
276
419
|
return ret;
|
|
277
420
|
}
|
|
421
|
+
/**
|
|
422
|
+
* Stream `path` without first aggregating the response in wasm memory.
|
|
423
|
+
*
|
|
424
|
+
* Returning the length beside the browser stream satisfies the optional
|
|
425
|
+
* `Backend.getStream` contract. Older injected backends that implement
|
|
426
|
+
* only [`Self::get`] remain compatible, but cannot claim bounded memory
|
|
427
|
+
* for historical oversized inline Track reads.
|
|
428
|
+
* @param {string} path
|
|
429
|
+
* @returns {Promise<any>}
|
|
430
|
+
*/
|
|
431
|
+
getStream(path) {
|
|
432
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
433
|
+
const len0 = WASM_VECTOR_LEN;
|
|
434
|
+
const ret = wasm.s3backend_getStream(this.__wbg_ptr, ptr0, len0);
|
|
435
|
+
return ret;
|
|
436
|
+
}
|
|
278
437
|
/**
|
|
279
438
|
* List object paths under `prefix`. Stub (returns empty); the current
|
|
280
439
|
* consumer read paths don't require listing.
|
|
@@ -320,6 +479,29 @@ class Space {
|
|
|
320
479
|
const ptr = this.__destroy_into_raw();
|
|
321
480
|
wasm.__wbg_space_free(ptr, 0);
|
|
322
481
|
}
|
|
482
|
+
/**
|
|
483
|
+
* Validate all referenced Items, including tombstoned payloads.
|
|
484
|
+
* @param {string} field
|
|
485
|
+
* @returns {Promise<bigint>}
|
|
486
|
+
*/
|
|
487
|
+
auditArrayField(field) {
|
|
488
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
489
|
+
const len0 = WASM_VECTOR_LEN;
|
|
490
|
+
const ret = wasm.space_auditArrayField(this.__wbg_ptr, ptr0, len0);
|
|
491
|
+
return ret;
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Validate all graph pages and, when declared, exact-source correspondence.
|
|
495
|
+
* The returned count is exactly representable (GraphIndex node_count is u32).
|
|
496
|
+
* @param {string} field
|
|
497
|
+
* @returns {Promise<number>}
|
|
498
|
+
*/
|
|
499
|
+
auditGraphIndex(field) {
|
|
500
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
501
|
+
const len0 = WASM_VECTOR_LEN;
|
|
502
|
+
const ret = wasm.space_auditGraphIndex(this.__wbg_ptr, ptr0, len0);
|
|
503
|
+
return ret;
|
|
504
|
+
}
|
|
323
505
|
/**
|
|
324
506
|
* The base URL objects are fetched relative to (consumers build their own
|
|
325
507
|
* object URLs from this — e.g. `dreamdb-demo`'s track readers).
|
|
@@ -337,6 +519,36 @@ class Space {
|
|
|
337
519
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
338
520
|
}
|
|
339
521
|
}
|
|
522
|
+
/**
|
|
523
|
+
* The Space's human-readable description, or `undefined` when none is set.
|
|
524
|
+
*
|
|
525
|
+
* The read half of `Authoring.setDescription` (#129). It lives here rather
|
|
526
|
+
* than on `Authoring` because that type is `write-full` and so exists only
|
|
527
|
+
* in the Node build — a description is metadata a READER wants, and
|
|
528
|
+
* `Space` is the surface all three build targets share.
|
|
529
|
+
*
|
|
530
|
+
* `async` although `Dataset::description` is not: the value comes from the
|
|
531
|
+
* Dataset this Space opens lazily at the Manifest hash already pinned by
|
|
532
|
+
* this Space, so the first call may perform that open without re-resolving
|
|
533
|
+
* a source Ref.
|
|
534
|
+
*
|
|
535
|
+
* Deliberately routed through `Dataset::description` rather than read out
|
|
536
|
+
* of `self.manifest`'s registry, which would be shorter and would also
|
|
537
|
+
* serve the cached decoded Manifest. `Dataset::recover_meta` is not a prefix
|
|
538
|
+
* filter: it accepts the legacy `vortex.*` namespace as well as
|
|
539
|
+
* `dreamdb.*`, canonicalises, and drops structural keys. Matching
|
|
540
|
+
* `dreamdb.description` here would silently return nothing for a legacy
|
|
541
|
+
* Space whose description is on disk and readable from Rust — the exact
|
|
542
|
+
* defect `recover_meta`'s own comment records.
|
|
543
|
+
*
|
|
544
|
+
* `Option<String>` marshals to `string | undefined`, NOT to `""`. An unset
|
|
545
|
+
* description and an empty one stay distinguishable across the boundary.
|
|
546
|
+
* @returns {Promise<string | undefined>}
|
|
547
|
+
*/
|
|
548
|
+
description() {
|
|
549
|
+
const ret = wasm.space_description(this.__wbg_ptr);
|
|
550
|
+
return ret;
|
|
551
|
+
}
|
|
340
552
|
/**
|
|
341
553
|
* Open a Space from a `.../refs/<name>` or `.../manifests/<hash>` URI,
|
|
342
554
|
* resolving the ref (if any) and loading the manifest. If `backend` is
|
|
@@ -353,6 +565,17 @@ class Space {
|
|
|
353
565
|
const ret = wasm.space_fromUri(ptr0, len0, backend);
|
|
354
566
|
return ret;
|
|
355
567
|
}
|
|
568
|
+
/**
|
|
569
|
+
* Read at this pinned Manifest. Returns null for never-created keys;
|
|
570
|
+
* deleted keys retain metadata with sample=null. Integer keys and anchors
|
|
571
|
+
* are BigInt; sample values use the Writer's tagged field shapes.
|
|
572
|
+
* @param {any} key
|
|
573
|
+
* @returns {Promise<any>}
|
|
574
|
+
*/
|
|
575
|
+
getEntity(key) {
|
|
576
|
+
const ret = wasm.space_getEntity(this.__wbg_ptr, key);
|
|
577
|
+
return ret;
|
|
578
|
+
}
|
|
356
579
|
/**
|
|
357
580
|
* Walk the manifest DAG from HEAD, up to `max_depth` entries. Each entry:
|
|
358
581
|
* `{ manifestHash, ts, writer, tracks: [{modality, address}] }`.
|
|
@@ -379,6 +602,18 @@ class Space {
|
|
|
379
602
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
380
603
|
}
|
|
381
604
|
}
|
|
605
|
+
/**
|
|
606
|
+
* Open one pinned geometry Item. Missing/deleted anchors return undefined.
|
|
607
|
+
* @param {string} field
|
|
608
|
+
* @param {any} anchor
|
|
609
|
+
* @returns {Promise<GeometryReader | undefined>}
|
|
610
|
+
*/
|
|
611
|
+
openGeometryItem(field, anchor) {
|
|
612
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
613
|
+
const len0 = WASM_VECTOR_LEN;
|
|
614
|
+
const ret = wasm.space_openGeometryItem(this.__wbg_ptr, ptr0, len0, anchor);
|
|
615
|
+
return ret;
|
|
616
|
+
}
|
|
382
617
|
/**
|
|
383
618
|
* Hybrid search fusing a lexical (BM25) sub-query and a dense (vector)
|
|
384
619
|
* sub-query per spec/0015 §5/§6. Returns the fused `[{ anchor, score }]`
|
|
@@ -401,8 +636,8 @@ class Space {
|
|
|
401
636
|
* ```
|
|
402
637
|
*
|
|
403
638
|
* Delegates to the real (tested) `dreamdb-dataset::Dataset::query_hybrid`.
|
|
404
|
-
*
|
|
405
|
-
* scalar
|
|
639
|
+
* Optional `scalarField` / `scalarOp` / `scalarValue` properties select
|
|
640
|
+
* the same scalar pre/post-filter planner used by the native API.
|
|
406
641
|
* @param {Float32Array} vector
|
|
407
642
|
* @param {any} opts
|
|
408
643
|
* @returns {Promise<Array<any>>}
|
|
@@ -413,6 +648,21 @@ class Space {
|
|
|
413
648
|
const ret = wasm.space_queryHybrid(this.__wbg_ptr, ptr0, len0, opts);
|
|
414
649
|
return ret;
|
|
415
650
|
}
|
|
651
|
+
/**
|
|
652
|
+
* Hybrid query with an observable `{hits, trace}` result. `opts` accepts
|
|
653
|
+
* `maxLatencyMs`, `costModel`, and the optional scalar triple
|
|
654
|
+
* `scalarField`/`scalarOp`/`scalarValue` in addition to `queryHybrid`'s
|
|
655
|
+
* existing properties.
|
|
656
|
+
* @param {Float32Array} vector
|
|
657
|
+
* @param {any} opts
|
|
658
|
+
* @returns {Promise<any>}
|
|
659
|
+
*/
|
|
660
|
+
queryHybridPlanned(vector, opts) {
|
|
661
|
+
const ptr0 = passArrayF32ToWasm0(vector, wasm.__wbindgen_malloc);
|
|
662
|
+
const len0 = WASM_VECTOR_LEN;
|
|
663
|
+
const ret = wasm.space_queryHybridPlanned(this.__wbg_ptr, ptr0, len0, opts);
|
|
664
|
+
return ret;
|
|
665
|
+
}
|
|
416
666
|
/**
|
|
417
667
|
* Scalar-index lookup: every anchor whose `field` satisfies `op value`
|
|
418
668
|
* (spec/0011). Returns a `BigUint64Array`-style `Array` of anchors,
|
|
@@ -486,6 +736,43 @@ class Space {
|
|
|
486
736
|
const ret = wasm.space_queryVector(this.__wbg_ptr, ptr0, len0, ptr1, len1, opts);
|
|
487
737
|
return ret;
|
|
488
738
|
}
|
|
739
|
+
/**
|
|
740
|
+
* Read an Event/Unbucketed or Continuous/TimeBatch typed-array field as
|
|
741
|
+
* `Map<anchorString, {values, shape, ...}>`.
|
|
742
|
+
* @param {string} field
|
|
743
|
+
* @returns {Promise<Map<any, any>>}
|
|
744
|
+
*/
|
|
745
|
+
readArrayColumn(field) {
|
|
746
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
747
|
+
const len0 = WASM_VECTOR_LEN;
|
|
748
|
+
const ret = wasm.space_readArrayColumn(this.__wbg_ptr, ptr0, len0);
|
|
749
|
+
return ret;
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* Read a typed-array Constant and decode it to a JS TypedArray plus its
|
|
753
|
+
* authoritative shape and semantic metadata.
|
|
754
|
+
* @param {string} field
|
|
755
|
+
* @returns {Promise<any>}
|
|
756
|
+
*/
|
|
757
|
+
readArrayConstant(field) {
|
|
758
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
759
|
+
const len0 = WASM_VECTOR_LEN;
|
|
760
|
+
const ret = wasm.space_readArrayConstant(this.__wbg_ptr, ptr0, len0);
|
|
761
|
+
return ret;
|
|
762
|
+
}
|
|
763
|
+
/**
|
|
764
|
+
* Point read; full-u64 BigInt anchors are supported. Returned components
|
|
765
|
+
* are owned typed arrays (one Item's bytes), never unaligned aliases.
|
|
766
|
+
* @param {string} field
|
|
767
|
+
* @param {any} anchor
|
|
768
|
+
* @returns {Promise<any>}
|
|
769
|
+
*/
|
|
770
|
+
readArrayItem(field, anchor) {
|
|
771
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
772
|
+
const len0 = WASM_VECTOR_LEN;
|
|
773
|
+
const ret = wasm.space_readArrayItem(this.__wbg_ptr, ptr0, len0, anchor);
|
|
774
|
+
return ret;
|
|
775
|
+
}
|
|
489
776
|
/**
|
|
490
777
|
* Read a scalar track as a `Map<anchorString, value>`. Single-anchor
|
|
491
778
|
* entries resolve from the track index; multi-anchor entries fetch (and
|
|
@@ -498,6 +785,22 @@ class Space {
|
|
|
498
785
|
const ret = wasm.space_readScalarColumn(this.__wbg_ptr, track, _opts);
|
|
499
786
|
return ret;
|
|
500
787
|
}
|
|
788
|
+
/**
|
|
789
|
+
* Fetch verified initialization and complete Fragments overlapping one
|
|
790
|
+
* item-relative half-open range. This materializes the selected bytes; it
|
|
791
|
+
* is not a streaming API.
|
|
792
|
+
* @param {string} field
|
|
793
|
+
* @param {Uint8Array} item_key
|
|
794
|
+
* @param {any} relative_start_ns
|
|
795
|
+
* @param {any} relative_end_ns
|
|
796
|
+
* @returns {Promise<any>}
|
|
797
|
+
*/
|
|
798
|
+
readVideoItemRange(field, item_key, relative_start_ns, relative_end_ns) {
|
|
799
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
800
|
+
const len0 = WASM_VECTOR_LEN;
|
|
801
|
+
const ret = wasm.space_readVideoItemRange(this.__wbg_ptr, ptr0, len0, item_key, relative_start_ns, relative_end_ns);
|
|
802
|
+
return ret;
|
|
803
|
+
}
|
|
501
804
|
/**
|
|
502
805
|
* Fetch a track object and return its `object_index` (array of CBOR
|
|
503
806
|
* entries). Inline indexes only — paged indexes are not resolved (matching
|
|
@@ -509,6 +812,40 @@ class Space {
|
|
|
509
812
|
const ret = wasm.space_resolveObjectIndex(this.__wbg_ptr, track);
|
|
510
813
|
return ret;
|
|
511
814
|
}
|
|
815
|
+
/**
|
|
816
|
+
* Semantic-cache capacity in bytes (spec/0006 §3.6). Default 1 GiB.
|
|
817
|
+
* @returns {Promise<number>}
|
|
818
|
+
*/
|
|
819
|
+
semanticCacheCapacity() {
|
|
820
|
+
const ret = wasm.space_semanticCacheCapacity(this.__wbg_ptr);
|
|
821
|
+
return ret;
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* Semantic-cache occupancy as `{ entries, bytesUsed, maxBytes }`.
|
|
825
|
+
* @returns {Promise<object>}
|
|
826
|
+
*/
|
|
827
|
+
semanticCacheStats() {
|
|
828
|
+
const ret = wasm.space_semanticCacheStats(this.__wbg_ptr);
|
|
829
|
+
return ret;
|
|
830
|
+
}
|
|
831
|
+
/**
|
|
832
|
+
* Set the semantic-cache capacity in bytes, evicting down to it before
|
|
833
|
+
* returning. Returns the bytes evicted. `0` disables the cache.
|
|
834
|
+
*
|
|
835
|
+
* An index whose accounted size exceeds the cap is not cached and is
|
|
836
|
+
* re-fetched on every query, reported honestly as a miss. The default is
|
|
837
|
+
* not raised globally to suit one corpus.
|
|
838
|
+
*
|
|
839
|
+
* Sizing is workload- and architecture-dependent, and figures measured on
|
|
840
|
+
* a 64-bit host do NOT carry over here: `usize` is 32 bits on `wasm32`, so
|
|
841
|
+
* every offset and length inside a decoded index accounts differently.
|
|
842
|
+
* @param {number} n_bytes
|
|
843
|
+
* @returns {Promise<number>}
|
|
844
|
+
*/
|
|
845
|
+
setSemanticCacheCapacity(n_bytes) {
|
|
846
|
+
const ret = wasm.space_setSemanticCacheCapacity(this.__wbg_ptr, n_bytes);
|
|
847
|
+
return ret;
|
|
848
|
+
}
|
|
512
849
|
/**
|
|
513
850
|
* Base32 hash of the manifest's first timeline.
|
|
514
851
|
* @returns {string}
|
|
@@ -540,7 +877,10 @@ class Space {
|
|
|
540
877
|
const ptr0 = passStringToWasm0(key_or_modality, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
541
878
|
const len0 = WASM_VECTOR_LEN;
|
|
542
879
|
const ret = wasm.space_trackFor(this.__wbg_ptr, ptr0, len0);
|
|
543
|
-
|
|
880
|
+
if (ret[2]) {
|
|
881
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
882
|
+
}
|
|
883
|
+
return takeFromExternrefTable0(ret[0]);
|
|
544
884
|
}
|
|
545
885
|
/**
|
|
546
886
|
* List resolved tracks from this manifest.
|
|
@@ -548,6 +888,35 @@ class Space {
|
|
|
548
888
|
*/
|
|
549
889
|
tracks() {
|
|
550
890
|
const ret = wasm.space_tracks(this.__wbg_ptr);
|
|
891
|
+
if (ret[2]) {
|
|
892
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
893
|
+
}
|
|
894
|
+
return takeFromExternrefTable0(ret[0]);
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* Look up the logical VideoItem containing one absolute Timeline anchor
|
|
898
|
+
* without fetching media. Exact nanosecond values are returned as bigint.
|
|
899
|
+
* @param {string} field
|
|
900
|
+
* @param {any} anchor_ns
|
|
901
|
+
* @returns {Promise<any>}
|
|
902
|
+
*/
|
|
903
|
+
videoItemAt(field, anchor_ns) {
|
|
904
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
905
|
+
const len0 = WASM_VECTOR_LEN;
|
|
906
|
+
const ret = wasm.space_videoItemAt(this.__wbg_ptr, ptr0, len0, anchor_ns);
|
|
907
|
+
return ret;
|
|
908
|
+
}
|
|
909
|
+
/**
|
|
910
|
+
* Look up one logical VideoItem by its stable opaque key without fetching
|
|
911
|
+
* initialization or Fragment bytes.
|
|
912
|
+
* @param {string} field
|
|
913
|
+
* @param {Uint8Array} item_key
|
|
914
|
+
* @returns {Promise<any>}
|
|
915
|
+
*/
|
|
916
|
+
videoItemByKey(field, item_key) {
|
|
917
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
918
|
+
const len0 = WASM_VECTOR_LEN;
|
|
919
|
+
const ret = wasm.space_videoItemByKey(this.__wbg_ptr, ptr0, len0, item_key);
|
|
551
920
|
return ret;
|
|
552
921
|
}
|
|
553
922
|
}
|
|
@@ -574,6 +943,17 @@ class Writer {
|
|
|
574
943
|
const ptr = this.__destroy_into_raw();
|
|
575
944
|
wasm.__wbg_writer_free(ptr, 0);
|
|
576
945
|
}
|
|
946
|
+
/**
|
|
947
|
+
* Atomically hot-append a complete Sample batch. Embeddings retain v1;
|
|
948
|
+
* scalar/text values use v2. Identified embeddings require embeddingSpecs.
|
|
949
|
+
* @param {Array<any>} samples
|
|
950
|
+
* @param {object | null} [embedding_specs]
|
|
951
|
+
* @returns {Promise<number>}
|
|
952
|
+
*/
|
|
953
|
+
appendHot(samples, embedding_specs) {
|
|
954
|
+
const ret = wasm.writer_appendHot(this.__wbg_ptr, samples, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
|
|
955
|
+
return ret;
|
|
956
|
+
}
|
|
577
957
|
/**
|
|
578
958
|
* Append records and commit in one call.
|
|
579
959
|
*
|
|
@@ -592,6 +972,17 @@ class Writer {
|
|
|
592
972
|
const ret = wasm.writer_appendMany(this.__wbg_ptr, samples);
|
|
593
973
|
return ret;
|
|
594
974
|
}
|
|
975
|
+
/**
|
|
976
|
+
* Append records with a field-to-`spec_id` map for identified embeddings.
|
|
977
|
+
* Values are full canonical base32 multihashes.
|
|
978
|
+
* @param {Array<any>} samples
|
|
979
|
+
* @param {object} embedding_specs
|
|
980
|
+
* @returns {Promise<number>}
|
|
981
|
+
*/
|
|
982
|
+
appendManyWithSpecs(samples, embedding_specs) {
|
|
983
|
+
const ret = wasm.writer_appendManyWithSpecs(this.__wbg_ptr, samples, embedding_specs);
|
|
984
|
+
return ret;
|
|
985
|
+
}
|
|
595
986
|
/**
|
|
596
987
|
* Flush staged entries and publish a new manifest.
|
|
597
988
|
*
|
|
@@ -605,6 +996,38 @@ class Writer {
|
|
|
605
996
|
const ret = wasm.writer_commit(this.__wbg_ptr);
|
|
606
997
|
return ret;
|
|
607
998
|
}
|
|
999
|
+
/**
|
|
1000
|
+
* Producer policy only: TTL is evaluated on append, not by a timer.
|
|
1001
|
+
* @param {number} flush_threshold
|
|
1002
|
+
* @param {number} ttl_seconds
|
|
1003
|
+
*/
|
|
1004
|
+
configureHotShard(flush_threshold, ttl_seconds) {
|
|
1005
|
+
const ret = wasm.writer_configureHotShard(this.__wbg_ptr, flush_threshold, ttl_seconds);
|
|
1006
|
+
if (ret[1]) {
|
|
1007
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
* Create a never-used key. Sample uses appendMany's tagged fields, no anchor.
|
|
1012
|
+
* @param {any} key
|
|
1013
|
+
* @param {object} sample
|
|
1014
|
+
* @param {object | null} [embedding_specs]
|
|
1015
|
+
* @returns {Promise<object>}
|
|
1016
|
+
*/
|
|
1017
|
+
createEntity(key, sample, embedding_specs) {
|
|
1018
|
+
const ret = wasm.writer_createEntity(this.__wbg_ptr, key, sample, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
|
|
1019
|
+
return ret;
|
|
1020
|
+
}
|
|
1021
|
+
/**
|
|
1022
|
+
* Delete exactly a live revision, retaining its key and stable identity.
|
|
1023
|
+
* @param {any} key
|
|
1024
|
+
* @param {Uint8Array} expected
|
|
1025
|
+
* @returns {Promise<object>}
|
|
1026
|
+
*/
|
|
1027
|
+
deleteEntity(key, expected) {
|
|
1028
|
+
const ret = wasm.writer_deleteEntity(this.__wbg_ptr, key, expected);
|
|
1029
|
+
return ret;
|
|
1030
|
+
}
|
|
608
1031
|
/**
|
|
609
1032
|
* Tombstone records by anchor. Returns the new manifest hash.
|
|
610
1033
|
* @param {BigUint64Array} anchors
|
|
@@ -619,6 +1042,73 @@ class Writer {
|
|
|
619
1042
|
const ret = wasm.writer_deleteRecords(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
620
1043
|
return ret;
|
|
621
1044
|
}
|
|
1045
|
+
/**
|
|
1046
|
+
* Enable one exact typed entity namespace: string, bytes or int.
|
|
1047
|
+
* @param {string} key_kind
|
|
1048
|
+
* @returns {Promise<void>}
|
|
1049
|
+
*/
|
|
1050
|
+
enableEntityKeys(key_kind) {
|
|
1051
|
+
const ptr0 = passStringToWasm0(key_kind, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1052
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1053
|
+
const ret = wasm.writer_enableEntityKeys(this.__wbg_ptr, ptr0, len0);
|
|
1054
|
+
return ret;
|
|
1055
|
+
}
|
|
1056
|
+
/**
|
|
1057
|
+
* Explicitly fold every pending hot field into cold Tracks in one publish.
|
|
1058
|
+
* @returns {Promise<void>}
|
|
1059
|
+
*/
|
|
1060
|
+
flushHot() {
|
|
1061
|
+
const ret = wasm.writer_flushHot(this.__wbg_ptr);
|
|
1062
|
+
return ret;
|
|
1063
|
+
}
|
|
1064
|
+
/**
|
|
1065
|
+
* Ingest a pre-fragmented CMAF (fragmented-MP4) video into a Video field
|
|
1066
|
+
* as a `spec/0007` §5 media Track — the thing that makes a video Track
|
|
1067
|
+
* time-seekable and MSE-playable rather than one opaque blob.
|
|
1068
|
+
*
|
|
1069
|
+
* ```js
|
|
1070
|
+
* const out = await writer.ingestCmaf('video', initBytes, [
|
|
1071
|
+
* [frag0, 0n, 2_000_000_000n],
|
|
1072
|
+
* [frag1, 2_000_000_000n, 4_000_000_000n],
|
|
1073
|
+
* ])
|
|
1074
|
+
* ```
|
|
1075
|
+
*
|
|
1076
|
+
* - `init` is the initialization segment (`ftyp`+`moov`).
|
|
1077
|
+
* - each fragment is `[Uint8Array, tStartNs, tEndNs]`, half-open, already
|
|
1078
|
+
* offset to the timeline anchor the caller wants. Pass `bigint`s:
|
|
1079
|
+
* wall-clock nanosecond anchors are far past `Number.MAX_SAFE_INTEGER`
|
|
1080
|
+
* and a rounded `tStart` writes the fragment into a 60 s bucket that
|
|
1081
|
+
* does not match the address it is indexed at.
|
|
1082
|
+
*
|
|
1083
|
+
* Calling it again on the SAME field APPENDS (one episode per call on a
|
|
1084
|
+
* shared timeline) and reuses the track's existing init segment; a clip
|
|
1085
|
+
* whose init differs — different codec, resolution, fps or audio config —
|
|
1086
|
+
* is refused, because a Track carries exactly one init segment and the
|
|
1087
|
+
* mismatch would produce fragments that decode against the wrong one.
|
|
1088
|
+
*
|
|
1089
|
+
* Returns `{field, modality, initHash, fragmentCount, coverage: [bigint,
|
|
1090
|
+
* bigint], trackHash, manifestHash}`. `coverage` is `bigint` for the
|
|
1091
|
+
* reason above; `fragmentCount` is the track's total after the append,
|
|
1092
|
+
* not the number passed in.
|
|
1093
|
+
*
|
|
1094
|
+
* **Node only** (`write-full`). This takes every fragment's bytes as an
|
|
1095
|
+
* argument, so peak memory is the whole clip; the native path form streams
|
|
1096
|
+
* fragment-by-fragment off disk, which wasm32 cannot do because it has no
|
|
1097
|
+
* filesystem. Fragmenting a multi-GB source inside a browser tab's 32-bit
|
|
1098
|
+
* address space is not a workflow worth pretending to support.
|
|
1099
|
+
* @param {string} field
|
|
1100
|
+
* @param {Uint8Array} init
|
|
1101
|
+
* @param {Array<any>} fragments
|
|
1102
|
+
* @returns {Promise<any>}
|
|
1103
|
+
*/
|
|
1104
|
+
ingestCmaf(field, init, fragments) {
|
|
1105
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1106
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1107
|
+
const ptr1 = passArray8ToWasm0(init, wasm.__wbindgen_malloc);
|
|
1108
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1109
|
+
const ret = wasm.writer_ingestCmaf(this.__wbg_ptr, ptr0, len0, ptr1, len1, fragments);
|
|
1110
|
+
return ret;
|
|
1111
|
+
}
|
|
622
1112
|
/**
|
|
623
1113
|
* Current manifest hash, base32.
|
|
624
1114
|
* @returns {string}
|
|
@@ -663,6 +1153,36 @@ class Writer {
|
|
|
663
1153
|
const ret = wasm.writer_open(ptr0, len0, backend);
|
|
664
1154
|
return ret;
|
|
665
1155
|
}
|
|
1156
|
+
/**
|
|
1157
|
+
* Publish prequantized fixed-stride records. Coordinates is
|
|
1158
|
+
* {origin:[x,y,z],step:[x,y,z],units:string}; depth is 0..16.
|
|
1159
|
+
* @param {string} field
|
|
1160
|
+
* @param {any} anchor
|
|
1161
|
+
* @param {any} coordinates
|
|
1162
|
+
* @param {any} depth
|
|
1163
|
+
* @param {Uint8Array} records
|
|
1164
|
+
* @returns {Promise<string>}
|
|
1165
|
+
*/
|
|
1166
|
+
publishGeometryCells(field, anchor, coordinates, depth, records) {
|
|
1167
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1168
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1169
|
+
const ret = wasm.writer_publishGeometryCells(this.__wbg_ptr, ptr0, len0, anchor, coordinates, depth, records);
|
|
1170
|
+
return ret;
|
|
1171
|
+
}
|
|
1172
|
+
/**
|
|
1173
|
+
* Each level is {errorGrid,vertices,triangles,bytes:Uint8Array}.
|
|
1174
|
+
* @param {string} field
|
|
1175
|
+
* @param {any} anchor
|
|
1176
|
+
* @param {any} coordinates
|
|
1177
|
+
* @param {Array<any>} levels
|
|
1178
|
+
* @returns {Promise<string>}
|
|
1179
|
+
*/
|
|
1180
|
+
publishGeometryMesh(field, anchor, coordinates, levels) {
|
|
1181
|
+
const ptr0 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1182
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1183
|
+
const ret = wasm.writer_publishGeometryMesh(this.__wbg_ptr, ptr0, len0, anchor, coordinates, levels);
|
|
1184
|
+
return ret;
|
|
1185
|
+
}
|
|
666
1186
|
/**
|
|
667
1187
|
* The ref this writer advances.
|
|
668
1188
|
* @returns {string}
|
|
@@ -690,6 +1210,30 @@ class Writer {
|
|
|
690
1210
|
const ret = wasm.writer_snapshot(this.__wbg_ptr, ptr0, len0);
|
|
691
1211
|
return ret;
|
|
692
1212
|
}
|
|
1213
|
+
/**
|
|
1214
|
+
* Replace only a live revision, atomically hiding its old physical row.
|
|
1215
|
+
* @param {any} key
|
|
1216
|
+
* @param {object} sample
|
|
1217
|
+
* @param {Uint8Array} expected
|
|
1218
|
+
* @param {object | null} [embedding_specs]
|
|
1219
|
+
* @returns {Promise<object>}
|
|
1220
|
+
*/
|
|
1221
|
+
supersedeEntity(key, sample, expected, embedding_specs) {
|
|
1222
|
+
const ret = wasm.writer_supersedeEntity(this.__wbg_ptr, key, sample, expected, isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
|
|
1223
|
+
return ret;
|
|
1224
|
+
}
|
|
1225
|
+
/**
|
|
1226
|
+
* Create with no expected token, or replace/restore exactly that revision.
|
|
1227
|
+
* @param {any} key
|
|
1228
|
+
* @param {object} sample
|
|
1229
|
+
* @param {Uint8Array | null} [expected]
|
|
1230
|
+
* @param {object | null} [embedding_specs]
|
|
1231
|
+
* @returns {Promise<object>}
|
|
1232
|
+
*/
|
|
1233
|
+
upsertEntity(key, sample, expected, embedding_specs) {
|
|
1234
|
+
const ret = wasm.writer_upsertEntity(this.__wbg_ptr, key, sample, isLikeNone(expected) ? 0 : addToExternrefTable0(expected), isLikeNone(embedding_specs) ? 0 : addToExternrefTable0(embedding_specs));
|
|
1235
|
+
return ret;
|
|
1236
|
+
}
|
|
693
1237
|
}
|
|
694
1238
|
if (Symbol.dispose) Writer.prototype[Symbol.dispose] = Writer.prototype.free;
|
|
695
1239
|
exports.Writer = Writer;
|
|
@@ -1013,6 +1557,25 @@ function timeBucket(t_start, duration) {
|
|
|
1013
1557
|
}
|
|
1014
1558
|
exports.timeBucket = timeBucket;
|
|
1015
1559
|
|
|
1560
|
+
/**
|
|
1561
|
+
* Decode one spec/0025 item using the same declaration and payload path as
|
|
1562
|
+
* `Space.readArrayColumn`, without requiring storage IO. This is the SDK's
|
|
1563
|
+
* pure conformance entry point for language-neutral vectors.
|
|
1564
|
+
* @param {any} item_type
|
|
1565
|
+
* @param {Uint8Array} payload
|
|
1566
|
+
* @returns {any}
|
|
1567
|
+
*/
|
|
1568
|
+
function typedArrayDecode(item_type, payload) {
|
|
1569
|
+
const ptr0 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
|
|
1570
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1571
|
+
const ret = wasm.typedArrayDecode(item_type, ptr0, len0);
|
|
1572
|
+
if (ret[2]) {
|
|
1573
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1574
|
+
}
|
|
1575
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1576
|
+
}
|
|
1577
|
+
exports.typedArrayDecode = typedArrayDecode;
|
|
1578
|
+
|
|
1016
1579
|
/**
|
|
1017
1580
|
* Package version — useful for consumers to confirm which build is loaded.
|
|
1018
1581
|
* @returns {string}
|
|
@@ -1102,6 +1665,10 @@ function __wbg_get_imports() {
|
|
|
1102
1665
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1103
1666
|
return ret;
|
|
1104
1667
|
},
|
|
1668
|
+
__wbg___wbindgen_is_string_dde0fd9020db4434: function(arg0) {
|
|
1669
|
+
const ret = typeof(arg0) === 'string';
|
|
1670
|
+
return ret;
|
|
1671
|
+
},
|
|
1105
1672
|
__wbg___wbindgen_is_undefined_35bb9f4c7fd651d5: function(arg0) {
|
|
1106
1673
|
const ret = arg0 === undefined;
|
|
1107
1674
|
return ret;
|
|
@@ -1142,6 +1709,10 @@ function __wbg_get_imports() {
|
|
|
1142
1709
|
const ret = Authoring.__wrap(arg0);
|
|
1143
1710
|
return ret;
|
|
1144
1711
|
},
|
|
1712
|
+
__wbg_body_acbb5ec9cd18657f: function(arg0) {
|
|
1713
|
+
const ret = arg0.body;
|
|
1714
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1715
|
+
},
|
|
1145
1716
|
__wbg_call_084ee3e860ee9f92: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1146
1717
|
const ret = arg0.call(arg1, arg2, arg3, arg4);
|
|
1147
1718
|
return ret;
|
|
@@ -1158,6 +1729,10 @@ function __wbg_get_imports() {
|
|
|
1158
1729
|
const ret = arg0.call(arg1, arg2, arg3);
|
|
1159
1730
|
return ret;
|
|
1160
1731
|
}, arguments); },
|
|
1732
|
+
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
1733
|
+
const ret = arg0.crypto;
|
|
1734
|
+
return ret;
|
|
1735
|
+
},
|
|
1161
1736
|
__wbg_done_54b8da57023b7ed2: function(arg0) {
|
|
1162
1737
|
const ret = arg0.done;
|
|
1163
1738
|
return ret;
|
|
@@ -1169,6 +1744,28 @@ function __wbg_get_imports() {
|
|
|
1169
1744
|
__wbg_error_f085d7e62279b703: function(arg0) {
|
|
1170
1745
|
console.error(arg0);
|
|
1171
1746
|
},
|
|
1747
|
+
__wbg_from_fa561fa561dc8031: function(arg0) {
|
|
1748
|
+
const ret = Array.from(arg0);
|
|
1749
|
+
return ret;
|
|
1750
|
+
},
|
|
1751
|
+
__wbg_geometryreader_new: function(arg0) {
|
|
1752
|
+
const ret = GeometryReader.__wrap(arg0);
|
|
1753
|
+
return ret;
|
|
1754
|
+
},
|
|
1755
|
+
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
1756
|
+
arg0.getRandomValues(arg1);
|
|
1757
|
+
}, arguments); },
|
|
1758
|
+
__wbg_getReader_c8a7370df46b86f6: function(arg0) {
|
|
1759
|
+
const ret = arg0.getReader();
|
|
1760
|
+
return ret;
|
|
1761
|
+
},
|
|
1762
|
+
__wbg_get_0b3f3bb74d16b7ad: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1763
|
+
const ret = arg1.get(getStringFromWasm0(arg2, arg3));
|
|
1764
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1765
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1766
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1767
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1768
|
+
}, arguments); },
|
|
1172
1769
|
__wbg_get_3e9a707ab7d352eb: function() { return handleError(function (arg0, arg1) {
|
|
1173
1770
|
const ret = Reflect.get(arg0, arg1);
|
|
1174
1771
|
return ret;
|
|
@@ -1185,6 +1782,10 @@ function __wbg_get_imports() {
|
|
|
1185
1782
|
const ret = arg0[arg1 >>> 0];
|
|
1186
1783
|
return ret;
|
|
1187
1784
|
},
|
|
1785
|
+
__wbg_headers_18f39f24d3837dc1: function(arg0) {
|
|
1786
|
+
const ret = arg0.headers;
|
|
1787
|
+
return ret;
|
|
1788
|
+
},
|
|
1188
1789
|
__wbg_headers_4cfb0c75793d7a8d: function(arg0) {
|
|
1189
1790
|
const ret = arg0.headers;
|
|
1190
1791
|
return ret;
|
|
@@ -1239,6 +1840,16 @@ function __wbg_get_imports() {
|
|
|
1239
1840
|
const ret = result;
|
|
1240
1841
|
return ret;
|
|
1241
1842
|
},
|
|
1843
|
+
__wbg_instanceof_ReadableStream_9a3d74fc91aa9c55: function(arg0) {
|
|
1844
|
+
let result;
|
|
1845
|
+
try {
|
|
1846
|
+
result = arg0 instanceof ReadableStream;
|
|
1847
|
+
} catch (_) {
|
|
1848
|
+
result = false;
|
|
1849
|
+
}
|
|
1850
|
+
const ret = result;
|
|
1851
|
+
return ret;
|
|
1852
|
+
},
|
|
1242
1853
|
__wbg_instanceof_Response_ecfc823e8fb354e2: function(arg0) {
|
|
1243
1854
|
let result;
|
|
1244
1855
|
try {
|
|
@@ -1271,18 +1882,58 @@ function __wbg_get_imports() {
|
|
|
1271
1882
|
const ret = Symbol.iterator;
|
|
1272
1883
|
return ret;
|
|
1273
1884
|
},
|
|
1885
|
+
__wbg_keys_682010b680c9b1f8: function(arg0) {
|
|
1886
|
+
const ret = Object.keys(arg0);
|
|
1887
|
+
return ret;
|
|
1888
|
+
},
|
|
1889
|
+
__wbg_length_0adf2f3c5da33087: function(arg0) {
|
|
1890
|
+
const ret = arg0.length;
|
|
1891
|
+
return ret;
|
|
1892
|
+
},
|
|
1274
1893
|
__wbg_length_13e61aa81636ec86: function(arg0) {
|
|
1275
1894
|
const ret = arg0.length;
|
|
1276
1895
|
return ret;
|
|
1277
1896
|
},
|
|
1897
|
+
__wbg_length_1c094f6c75753f5f: function(arg0) {
|
|
1898
|
+
const ret = arg0.length;
|
|
1899
|
+
return ret;
|
|
1900
|
+
},
|
|
1278
1901
|
__wbg_length_2591a0f4f659a55c: function(arg0) {
|
|
1279
1902
|
const ret = arg0.length;
|
|
1280
1903
|
return ret;
|
|
1281
1904
|
},
|
|
1905
|
+
__wbg_length_3a1b902b6cde9e2c: function(arg0) {
|
|
1906
|
+
const ret = arg0.length;
|
|
1907
|
+
return ret;
|
|
1908
|
+
},
|
|
1282
1909
|
__wbg_length_56fcd3e2b7e0299d: function(arg0) {
|
|
1283
1910
|
const ret = arg0.length;
|
|
1284
1911
|
return ret;
|
|
1285
1912
|
},
|
|
1913
|
+
__wbg_length_911750a64e2f4f88: function(arg0) {
|
|
1914
|
+
const ret = arg0.length;
|
|
1915
|
+
return ret;
|
|
1916
|
+
},
|
|
1917
|
+
__wbg_length_a4365e969857a2c9: function(arg0) {
|
|
1918
|
+
const ret = arg0.length;
|
|
1919
|
+
return ret;
|
|
1920
|
+
},
|
|
1921
|
+
__wbg_length_c7ce929623e7a230: function(arg0) {
|
|
1922
|
+
const ret = arg0.length;
|
|
1923
|
+
return ret;
|
|
1924
|
+
},
|
|
1925
|
+
__wbg_length_dc239675ea61db1b: function(arg0) {
|
|
1926
|
+
const ret = arg0.length;
|
|
1927
|
+
return ret;
|
|
1928
|
+
},
|
|
1929
|
+
__wbg_length_efe2271ed86b56cc: function(arg0) {
|
|
1930
|
+
const ret = arg0.length;
|
|
1931
|
+
return ret;
|
|
1932
|
+
},
|
|
1933
|
+
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
1934
|
+
const ret = arg0.msCrypto;
|
|
1935
|
+
return ret;
|
|
1936
|
+
},
|
|
1286
1937
|
__wbg_new_02d162bc6cf02f60: function() {
|
|
1287
1938
|
const ret = new Object();
|
|
1288
1939
|
return ret;
|
|
@@ -1303,6 +1954,10 @@ function __wbg_get_imports() {
|
|
|
1303
1954
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1304
1955
|
return ret;
|
|
1305
1956
|
},
|
|
1957
|
+
__wbg_new_from_slice_7a419f18ea6472bf: function(arg0, arg1) {
|
|
1958
|
+
const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
|
|
1959
|
+
return ret;
|
|
1960
|
+
},
|
|
1306
1961
|
__wbg_new_typed_c072c4ce9a2a0cdf: function(arg0, arg1) {
|
|
1307
1962
|
try {
|
|
1308
1963
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -1321,6 +1976,46 @@ function __wbg_get_imports() {
|
|
|
1321
1976
|
state0.a = 0;
|
|
1322
1977
|
}
|
|
1323
1978
|
},
|
|
1979
|
+
__wbg_new_with_length_1278c16a5c5b497f: function(arg0) {
|
|
1980
|
+
const ret = new Float64Array(arg0 >>> 0);
|
|
1981
|
+
return ret;
|
|
1982
|
+
},
|
|
1983
|
+
__wbg_new_with_length_22e34f6824b87f53: function(arg0) {
|
|
1984
|
+
const ret = new BigUint64Array(arg0 >>> 0);
|
|
1985
|
+
return ret;
|
|
1986
|
+
},
|
|
1987
|
+
__wbg_new_with_length_58dc420af34edb59: function(arg0) {
|
|
1988
|
+
const ret = new Float32Array(arg0 >>> 0);
|
|
1989
|
+
return ret;
|
|
1990
|
+
},
|
|
1991
|
+
__wbg_new_with_length_662ce8fda8456c6c: function(arg0) {
|
|
1992
|
+
const ret = new Uint16Array(arg0 >>> 0);
|
|
1993
|
+
return ret;
|
|
1994
|
+
},
|
|
1995
|
+
__wbg_new_with_length_6ab0b677ba8ffdc4: function(arg0) {
|
|
1996
|
+
const ret = new BigInt64Array(arg0 >>> 0);
|
|
1997
|
+
return ret;
|
|
1998
|
+
},
|
|
1999
|
+
__wbg_new_with_length_78398b95fa59feae: function(arg0) {
|
|
2000
|
+
const ret = new Int32Array(arg0 >>> 0);
|
|
2001
|
+
return ret;
|
|
2002
|
+
},
|
|
2003
|
+
__wbg_new_with_length_96785292f4aab914: function(arg0) {
|
|
2004
|
+
const ret = new Int8Array(arg0 >>> 0);
|
|
2005
|
+
return ret;
|
|
2006
|
+
},
|
|
2007
|
+
__wbg_new_with_length_99887c91eae4abab: function(arg0) {
|
|
2008
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
2009
|
+
return ret;
|
|
2010
|
+
},
|
|
2011
|
+
__wbg_new_with_length_bab0ddb25b1a2cc7: function(arg0) {
|
|
2012
|
+
const ret = new Int16Array(arg0 >>> 0);
|
|
2013
|
+
return ret;
|
|
2014
|
+
},
|
|
2015
|
+
__wbg_new_with_length_f128f2c16ad4f906: function(arg0) {
|
|
2016
|
+
const ret = new Uint32Array(arg0 >>> 0);
|
|
2017
|
+
return ret;
|
|
2018
|
+
},
|
|
1324
2019
|
__wbg_new_with_str_and_init_ffe9977c986ea039: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1325
2020
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1326
2021
|
return ret;
|
|
@@ -1333,6 +2028,10 @@ function __wbg_get_imports() {
|
|
|
1333
2028
|
const ret = arg0.next();
|
|
1334
2029
|
return ret;
|
|
1335
2030
|
}, arguments); },
|
|
2031
|
+
__wbg_node_84ea875411254db1: function(arg0) {
|
|
2032
|
+
const ret = arg0.node;
|
|
2033
|
+
return ret;
|
|
2034
|
+
},
|
|
1336
2035
|
__wbg_now_81363d44c96dd239: function() {
|
|
1337
2036
|
const ret = Date.now();
|
|
1338
2037
|
return ret;
|
|
@@ -1341,6 +2040,10 @@ function __wbg_get_imports() {
|
|
|
1341
2040
|
const ret = arg0.ok;
|
|
1342
2041
|
return ret;
|
|
1343
2042
|
},
|
|
2043
|
+
__wbg_process_44c7a14e11e9f69e: function(arg0) {
|
|
2044
|
+
const ret = arg0.process;
|
|
2045
|
+
return ret;
|
|
2046
|
+
},
|
|
1344
2047
|
__wbg_prototypesetcall_5f9bdc8d75e07276: function(arg0, arg1, arg2) {
|
|
1345
2048
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1346
2049
|
},
|
|
@@ -1358,14 +2061,45 @@ function __wbg_get_imports() {
|
|
|
1358
2061
|
__wbg_queueMicrotask_b39ea83c7f01971a: function(arg0) {
|
|
1359
2062
|
queueMicrotask(arg0);
|
|
1360
2063
|
},
|
|
2064
|
+
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
2065
|
+
arg0.randomFillSync(arg1);
|
|
2066
|
+
}, arguments); },
|
|
2067
|
+
__wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
|
|
2068
|
+
const ret = module.require;
|
|
2069
|
+
return ret;
|
|
2070
|
+
}, arguments); },
|
|
1361
2071
|
__wbg_resolve_d17db9352f5a220e: function(arg0) {
|
|
1362
2072
|
const ret = Promise.resolve(arg0);
|
|
1363
2073
|
return ret;
|
|
1364
2074
|
},
|
|
2075
|
+
__wbg_set_517261bc500078e6: function(arg0, arg1, arg2) {
|
|
2076
|
+
arg0.set(getArrayI16FromWasm0(arg1, arg2));
|
|
2077
|
+
},
|
|
2078
|
+
__wbg_set_5bffd0c00e65c280: function(arg0, arg1, arg2) {
|
|
2079
|
+
arg0.set(getArrayF64FromWasm0(arg1, arg2));
|
|
2080
|
+
},
|
|
2081
|
+
__wbg_set_5d860a0c0949a838: function(arg0, arg1, arg2) {
|
|
2082
|
+
arg0.set(getArrayF32FromWasm0(arg1, arg2));
|
|
2083
|
+
},
|
|
2084
|
+
__wbg_set_8c4bf3c22a64e1df: function(arg0, arg1, arg2) {
|
|
2085
|
+
arg0.set(getArrayI8FromWasm0(arg1, arg2));
|
|
2086
|
+
},
|
|
2087
|
+
__wbg_set_90474108ec025ba3: function(arg0, arg1, arg2) {
|
|
2088
|
+
arg0.set(getArrayU32FromWasm0(arg1, arg2));
|
|
2089
|
+
},
|
|
2090
|
+
__wbg_set_943e5a384dda27eb: function(arg0, arg1, arg2) {
|
|
2091
|
+
arg0.set(getArrayI32FromWasm0(arg1, arg2));
|
|
2092
|
+
},
|
|
1365
2093
|
__wbg_set_a0e911be3da02782: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1366
2094
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1367
2095
|
return ret;
|
|
1368
2096
|
}, arguments); },
|
|
2097
|
+
__wbg_set_c9acd362199fe8b8: function(arg0, arg1, arg2) {
|
|
2098
|
+
arg0.set(getArrayI64FromWasm0(arg1, arg2));
|
|
2099
|
+
},
|
|
2100
|
+
__wbg_set_d4121491cc61da07: function(arg0, arg1, arg2) {
|
|
2101
|
+
arg0.set(getArrayU16FromWasm0(arg1, arg2));
|
|
2102
|
+
},
|
|
1369
2103
|
__wbg_set_d57e5106f0271787: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1370
2104
|
arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1371
2105
|
}, arguments); },
|
|
@@ -1373,6 +2107,9 @@ function __wbg_get_imports() {
|
|
|
1373
2107
|
const ret = arg0.set(arg1, arg2);
|
|
1374
2108
|
return ret;
|
|
1375
2109
|
},
|
|
2110
|
+
__wbg_set_fb3115a057014152: function(arg0, arg1, arg2) {
|
|
2111
|
+
arg0.set(getArrayU64FromWasm0(arg1, arg2));
|
|
2112
|
+
},
|
|
1376
2113
|
__wbg_space_new: function(arg0) {
|
|
1377
2114
|
const ret = Space.__wrap(arg0);
|
|
1378
2115
|
return ret;
|
|
@@ -1397,6 +2134,10 @@ function __wbg_get_imports() {
|
|
|
1397
2134
|
const ret = arg0.status;
|
|
1398
2135
|
return ret;
|
|
1399
2136
|
},
|
|
2137
|
+
__wbg_subarray_7c6a0da8f3b4a1ba: function(arg0, arg1, arg2) {
|
|
2138
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
2139
|
+
return ret;
|
|
2140
|
+
},
|
|
1400
2141
|
__wbg_then_837494e384b37459: function(arg0, arg1) {
|
|
1401
2142
|
const ret = arg0.then(arg1);
|
|
1402
2143
|
return ret;
|
|
@@ -1409,12 +2150,16 @@ function __wbg_get_imports() {
|
|
|
1409
2150
|
const ret = arg0.value;
|
|
1410
2151
|
return ret;
|
|
1411
2152
|
},
|
|
2153
|
+
__wbg_versions_276b2795b1c6a219: function(arg0) {
|
|
2154
|
+
const ret = arg0.versions;
|
|
2155
|
+
return ret;
|
|
2156
|
+
},
|
|
1412
2157
|
__wbg_writer_new: function(arg0) {
|
|
1413
2158
|
const ret = Writer.__wrap(arg0);
|
|
1414
2159
|
return ret;
|
|
1415
2160
|
},
|
|
1416
2161
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1417
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2162
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 948, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1418
2163
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___wasm_bindgen_f7c54996eb9137d9___JsValue__core_7d5f0a2ba6a62c33___result__Result_____wasm_bindgen_f7c54996eb9137d9___JsError___true_);
|
|
1419
2164
|
return ret;
|
|
1420
2165
|
},
|
|
@@ -1434,16 +2179,21 @@ function __wbg_get_imports() {
|
|
|
1434
2179
|
return ret;
|
|
1435
2180
|
},
|
|
1436
2181
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
2182
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
2183
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
2184
|
+
return ret;
|
|
2185
|
+
},
|
|
2186
|
+
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
1437
2187
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1438
2188
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1439
2189
|
return ret;
|
|
1440
2190
|
},
|
|
1441
|
-
|
|
2191
|
+
__wbindgen_cast_0000000000000007: function(arg0) {
|
|
1442
2192
|
// Cast intrinsic for `U64 -> Externref`.
|
|
1443
2193
|
const ret = BigInt.asUintN(64, arg0);
|
|
1444
2194
|
return ret;
|
|
1445
2195
|
},
|
|
1446
|
-
|
|
2196
|
+
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
1447
2197
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
1448
2198
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
1449
2199
|
// Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
|
|
@@ -1480,6 +2230,9 @@ function wasm_bindgen_f7c54996eb9137d9___convert__closures_____invoke___js_sys_a
|
|
|
1480
2230
|
const AuthoringFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1481
2231
|
? { register: () => {}, unregister: () => {} }
|
|
1482
2232
|
: new FinalizationRegistry(ptr => wasm.__wbg_authoring_free(ptr, 1));
|
|
2233
|
+
const GeometryReaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2234
|
+
? { register: () => {}, unregister: () => {} }
|
|
2235
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_geometryreader_free(ptr, 1));
|
|
1483
2236
|
const S3BackendFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1484
2237
|
? { register: () => {}, unregister: () => {} }
|
|
1485
2238
|
: new FinalizationRegistry(ptr => wasm.__wbg_s3backend_free(ptr, 1));
|
|
@@ -1570,6 +2323,31 @@ function getArrayF32FromWasm0(ptr, len) {
|
|
|
1570
2323
|
return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
1571
2324
|
}
|
|
1572
2325
|
|
|
2326
|
+
function getArrayF64FromWasm0(ptr, len) {
|
|
2327
|
+
ptr = ptr >>> 0;
|
|
2328
|
+
return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2331
|
+
function getArrayI16FromWasm0(ptr, len) {
|
|
2332
|
+
ptr = ptr >>> 0;
|
|
2333
|
+
return getInt16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
function getArrayI32FromWasm0(ptr, len) {
|
|
2337
|
+
ptr = ptr >>> 0;
|
|
2338
|
+
return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2341
|
+
function getArrayI64FromWasm0(ptr, len) {
|
|
2342
|
+
ptr = ptr >>> 0;
|
|
2343
|
+
return getBigInt64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
function getArrayI8FromWasm0(ptr, len) {
|
|
2347
|
+
ptr = ptr >>> 0;
|
|
2348
|
+
return getInt8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
2349
|
+
}
|
|
2350
|
+
|
|
1573
2351
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
1574
2352
|
ptr = ptr >>> 0;
|
|
1575
2353
|
const mem = getDataViewMemory0();
|
|
@@ -1581,11 +2359,34 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
1581
2359
|
return result;
|
|
1582
2360
|
}
|
|
1583
2361
|
|
|
2362
|
+
function getArrayU16FromWasm0(ptr, len) {
|
|
2363
|
+
ptr = ptr >>> 0;
|
|
2364
|
+
return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
2368
|
+
ptr = ptr >>> 0;
|
|
2369
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
function getArrayU64FromWasm0(ptr, len) {
|
|
2373
|
+
ptr = ptr >>> 0;
|
|
2374
|
+
return getBigUint64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
|
|
2375
|
+
}
|
|
2376
|
+
|
|
1584
2377
|
function getArrayU8FromWasm0(ptr, len) {
|
|
1585
2378
|
ptr = ptr >>> 0;
|
|
1586
2379
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
1587
2380
|
}
|
|
1588
2381
|
|
|
2382
|
+
let cachedBigInt64ArrayMemory0 = null;
|
|
2383
|
+
function getBigInt64ArrayMemory0() {
|
|
2384
|
+
if (cachedBigInt64ArrayMemory0 === null || cachedBigInt64ArrayMemory0.byteLength === 0) {
|
|
2385
|
+
cachedBigInt64ArrayMemory0 = new BigInt64Array(wasm.memory.buffer);
|
|
2386
|
+
}
|
|
2387
|
+
return cachedBigInt64ArrayMemory0;
|
|
2388
|
+
}
|
|
2389
|
+
|
|
1589
2390
|
let cachedBigUint64ArrayMemory0 = null;
|
|
1590
2391
|
function getBigUint64ArrayMemory0() {
|
|
1591
2392
|
if (cachedBigUint64ArrayMemory0 === null || cachedBigUint64ArrayMemory0.byteLength === 0) {
|
|
@@ -1610,10 +2411,58 @@ function getFloat32ArrayMemory0() {
|
|
|
1610
2411
|
return cachedFloat32ArrayMemory0;
|
|
1611
2412
|
}
|
|
1612
2413
|
|
|
2414
|
+
let cachedFloat64ArrayMemory0 = null;
|
|
2415
|
+
function getFloat64ArrayMemory0() {
|
|
2416
|
+
if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {
|
|
2417
|
+
cachedFloat64ArrayMemory0 = new Float64Array(wasm.memory.buffer);
|
|
2418
|
+
}
|
|
2419
|
+
return cachedFloat64ArrayMemory0;
|
|
2420
|
+
}
|
|
2421
|
+
|
|
2422
|
+
let cachedInt16ArrayMemory0 = null;
|
|
2423
|
+
function getInt16ArrayMemory0() {
|
|
2424
|
+
if (cachedInt16ArrayMemory0 === null || cachedInt16ArrayMemory0.byteLength === 0) {
|
|
2425
|
+
cachedInt16ArrayMemory0 = new Int16Array(wasm.memory.buffer);
|
|
2426
|
+
}
|
|
2427
|
+
return cachedInt16ArrayMemory0;
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2430
|
+
let cachedInt32ArrayMemory0 = null;
|
|
2431
|
+
function getInt32ArrayMemory0() {
|
|
2432
|
+
if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
|
|
2433
|
+
cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer);
|
|
2434
|
+
}
|
|
2435
|
+
return cachedInt32ArrayMemory0;
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2438
|
+
let cachedInt8ArrayMemory0 = null;
|
|
2439
|
+
function getInt8ArrayMemory0() {
|
|
2440
|
+
if (cachedInt8ArrayMemory0 === null || cachedInt8ArrayMemory0.byteLength === 0) {
|
|
2441
|
+
cachedInt8ArrayMemory0 = new Int8Array(wasm.memory.buffer);
|
|
2442
|
+
}
|
|
2443
|
+
return cachedInt8ArrayMemory0;
|
|
2444
|
+
}
|
|
2445
|
+
|
|
1613
2446
|
function getStringFromWasm0(ptr, len) {
|
|
1614
2447
|
return decodeText(ptr >>> 0, len);
|
|
1615
2448
|
}
|
|
1616
2449
|
|
|
2450
|
+
let cachedUint16ArrayMemory0 = null;
|
|
2451
|
+
function getUint16ArrayMemory0() {
|
|
2452
|
+
if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
|
|
2453
|
+
cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
|
|
2454
|
+
}
|
|
2455
|
+
return cachedUint16ArrayMemory0;
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
let cachedUint32ArrayMemory0 = null;
|
|
2459
|
+
function getUint32ArrayMemory0() {
|
|
2460
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
2461
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
2462
|
+
}
|
|
2463
|
+
return cachedUint32ArrayMemory0;
|
|
2464
|
+
}
|
|
2465
|
+
|
|
1617
2466
|
let cachedUint8ArrayMemory0 = null;
|
|
1618
2467
|
function getUint8ArrayMemory0() {
|
|
1619
2468
|
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|