@restatedev/restate-sdk-cloudflare-workers 1.4.0 → 1.5.0
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/dist/esm/src/common_api.d.ts +5 -5
- package/dist/esm/src/common_api.d.ts.map +1 -1
- package/dist/esm/src/common_api.js +1 -1
- package/dist/esm/src/common_api.js.map +1 -1
- package/dist/esm/src/context.d.ts +68 -10
- package/dist/esm/src/context.d.ts.map +1 -1
- package/dist/esm/src/context.js +20 -8
- package/dist/esm/src/context.js.map +1 -1
- package/dist/esm/src/context_impl.d.ts +28 -58
- package/dist/esm/src/context_impl.d.ts.map +1 -1
- package/dist/esm/src/context_impl.js +196 -425
- package/dist/esm/src/context_impl.js.map +1 -1
- package/dist/esm/src/endpoint/endpoint_builder.d.ts +4 -5
- package/dist/esm/src/endpoint/endpoint_builder.d.ts.map +1 -1
- package/dist/esm/src/endpoint/endpoint_builder.js +21 -16
- package/dist/esm/src/endpoint/endpoint_builder.js.map +1 -1
- package/dist/esm/src/endpoint/fetch_endpoint.d.ts +3 -4
- package/dist/esm/src/endpoint/fetch_endpoint.d.ts.map +1 -1
- package/dist/esm/src/endpoint/fetch_endpoint.js +0 -4
- package/dist/esm/src/endpoint/fetch_endpoint.js.map +1 -1
- package/dist/esm/src/endpoint/handlers/fetch.d.ts.map +1 -1
- package/dist/esm/src/endpoint/handlers/fetch.js +1 -0
- package/dist/esm/src/endpoint/handlers/fetch.js.map +1 -1
- package/dist/esm/src/endpoint/handlers/generic.d.ts +7 -13
- package/dist/esm/src/endpoint/handlers/generic.d.ts.map +1 -1
- package/dist/esm/src/endpoint/handlers/generic.js +110 -51
- package/dist/esm/src/endpoint/handlers/generic.js.map +1 -1
- package/dist/esm/src/endpoint/handlers/lambda.d.ts.map +1 -1
- package/dist/esm/src/endpoint/handlers/lambda.js +15 -3
- package/dist/esm/src/endpoint/handlers/lambda.js.map +1 -1
- package/dist/esm/src/endpoint/handlers/vm/sdk_shared_core_wasm_bindings.d.ts +37 -208
- package/dist/esm/src/endpoint/handlers/vm/sdk_shared_core_wasm_bindings_bg.js +667 -930
- package/dist/esm/src/endpoint/handlers/vm/sdk_shared_core_wasm_bindings_bg.wasm +0 -0
- package/dist/esm/src/endpoint/handlers/vm/sdk_shared_core_wasm_bindings_bg.wasm.d.ts +66 -63
- package/dist/esm/src/endpoint/lambda_endpoint.d.ts +3 -4
- package/dist/esm/src/endpoint/lambda_endpoint.d.ts.map +1 -1
- package/dist/esm/src/endpoint/lambda_endpoint.js +0 -4
- package/dist/esm/src/endpoint/lambda_endpoint.js.map +1 -1
- package/dist/esm/src/endpoint/node_endpoint.d.ts +3 -4
- package/dist/esm/src/endpoint/node_endpoint.d.ts.map +1 -1
- package/dist/esm/src/endpoint/node_endpoint.js +12 -4
- package/dist/esm/src/endpoint/node_endpoint.js.map +1 -1
- package/dist/esm/src/endpoint.d.ts +6 -37
- package/dist/esm/src/endpoint.d.ts.map +1 -1
- package/dist/esm/src/generated/version.d.ts +1 -1
- package/dist/esm/src/generated/version.js +1 -1
- package/dist/esm/src/io.d.ts +25 -0
- package/dist/esm/src/io.d.ts.map +1 -0
- package/dist/esm/src/io.js +73 -0
- package/dist/esm/src/io.js.map +1 -0
- package/dist/esm/src/logging/console_logger_transport.d.ts +5 -0
- package/dist/esm/src/logging/console_logger_transport.d.ts.map +1 -0
- package/dist/esm/src/{logger.js → logging/console_logger_transport.js} +40 -90
- package/dist/esm/src/logging/console_logger_transport.js.map +1 -0
- package/dist/esm/src/logging/logger.d.ts +11 -0
- package/dist/esm/src/logging/logger.d.ts.map +1 -0
- package/dist/esm/src/logging/logger.js +57 -0
- package/dist/esm/src/logging/logger.js.map +1 -0
- package/dist/esm/src/logging/logger_transport.d.ts +52 -0
- package/dist/esm/src/logging/logger_transport.d.ts.map +1 -0
- package/dist/esm/src/logging/logger_transport.js +55 -0
- package/dist/esm/src/logging/logger_transport.js.map +1 -0
- package/dist/esm/src/promises.d.ts +110 -0
- package/dist/esm/src/promises.d.ts.map +1 -0
- package/dist/esm/src/promises.js +311 -0
- package/dist/esm/src/promises.js.map +1 -0
- package/dist/esm/src/types/components.d.ts +11 -3
- package/dist/esm/src/types/components.d.ts.map +1 -1
- package/dist/esm/src/types/components.js +36 -3
- package/dist/esm/src/types/components.js.map +1 -1
- package/dist/esm/src/types/discovery.d.ts +4 -0
- package/dist/esm/src/types/discovery.d.ts.map +1 -1
- package/dist/esm/src/types/errors.d.ts +8 -0
- package/dist/esm/src/types/errors.d.ts.map +1 -1
- package/dist/esm/src/types/errors.js +10 -0
- package/dist/esm/src/types/errors.js.map +1 -1
- package/dist/esm/src/types/rpc.d.ts +66 -41
- package/dist/esm/src/types/rpc.d.ts.map +1 -1
- package/dist/esm/src/types/rpc.js +25 -76
- package/dist/esm/src/types/rpc.js.map +1 -1
- package/dist/esm/src/user_agent.d.ts +1 -1
- package/dist/esm/src/utils/buffer.d.ts +1 -0
- package/dist/esm/src/utils/buffer.d.ts.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/esm/src/logger.d.ts +0 -35
- package/dist/esm/src/logger.d.ts.map +0 -1
- package/dist/esm/src/logger.js.map +0 -1
|
@@ -6,48 +6,6 @@ export function __wbg_set_wasm(val) {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
const heap = new Array(128).fill(undefined);
|
|
10
|
-
|
|
11
|
-
heap.push(undefined, null, true, false);
|
|
12
|
-
|
|
13
|
-
function getObject(idx) { return heap[idx]; }
|
|
14
|
-
|
|
15
|
-
let heap_next = heap.length;
|
|
16
|
-
|
|
17
|
-
function dropObject(idx) {
|
|
18
|
-
if (idx < 132) return;
|
|
19
|
-
heap[idx] = heap_next;
|
|
20
|
-
heap_next = idx;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function takeObject(idx) {
|
|
24
|
-
const ret = getObject(idx);
|
|
25
|
-
dropObject(idx);
|
|
26
|
-
return ret;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function isLikeNone(x) {
|
|
30
|
-
return x === undefined || x === null;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
let cachedDataViewMemory0 = null;
|
|
34
|
-
|
|
35
|
-
function getDataViewMemory0() {
|
|
36
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
37
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
38
|
-
}
|
|
39
|
-
return cachedDataViewMemory0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function addHeapObject(obj) {
|
|
43
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
44
|
-
const idx = heap_next;
|
|
45
|
-
heap_next = heap[idx];
|
|
46
|
-
|
|
47
|
-
heap[idx] = obj;
|
|
48
|
-
return idx;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
9
|
let WASM_VECTOR_LEN = 0;
|
|
52
10
|
|
|
53
11
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -115,6 +73,30 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
115
73
|
return ptr;
|
|
116
74
|
}
|
|
117
75
|
|
|
76
|
+
let cachedDataViewMemory0 = null;
|
|
77
|
+
|
|
78
|
+
function getDataViewMemory0() {
|
|
79
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
80
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
81
|
+
}
|
|
82
|
+
return cachedDataViewMemory0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function addToExternrefTable0(obj) {
|
|
86
|
+
const idx = wasm.__externref_table_alloc();
|
|
87
|
+
wasm.__wbindgen_export_4.set(idx, obj);
|
|
88
|
+
return idx;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function handleError(f, args) {
|
|
92
|
+
try {
|
|
93
|
+
return f.apply(this, args);
|
|
94
|
+
} catch (e) {
|
|
95
|
+
const idx = addToExternrefTable0(e);
|
|
96
|
+
wasm.__wbindgen_exn_store(idx);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
118
100
|
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
119
101
|
|
|
120
102
|
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
@@ -126,6 +108,15 @@ function getStringFromWasm0(ptr, len) {
|
|
|
126
108
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
127
109
|
}
|
|
128
110
|
|
|
111
|
+
function isLikeNone(x) {
|
|
112
|
+
return x === undefined || x === null;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
116
|
+
ptr = ptr >>> 0;
|
|
117
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
118
|
+
}
|
|
119
|
+
|
|
129
120
|
function debugString(val) {
|
|
130
121
|
// primitive types
|
|
131
122
|
const type = typeof val;
|
|
@@ -167,7 +158,7 @@ function debugString(val) {
|
|
|
167
158
|
// Test for built-in
|
|
168
159
|
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
169
160
|
let className;
|
|
170
|
-
if (builtInMatches.length > 1) {
|
|
161
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
171
162
|
className = builtInMatches[1];
|
|
172
163
|
} else {
|
|
173
164
|
// Failed to match the standard '[object ClassName]'
|
|
@@ -191,15 +182,16 @@ function debugString(val) {
|
|
|
191
182
|
return className;
|
|
192
183
|
}
|
|
193
184
|
/**
|
|
194
|
-
* Setups the WASM module
|
|
195
|
-
*/
|
|
185
|
+
* Setups the WASM module
|
|
186
|
+
*/
|
|
196
187
|
export function start() {
|
|
197
188
|
wasm.start();
|
|
198
189
|
}
|
|
199
190
|
|
|
200
191
|
/**
|
|
201
|
-
*
|
|
202
|
-
|
|
192
|
+
* This will set the log level of the overall log subscriber.
|
|
193
|
+
* @param {LogLevel} level
|
|
194
|
+
*/
|
|
203
195
|
export function set_log_level(level) {
|
|
204
196
|
wasm.set_log_level(level);
|
|
205
197
|
}
|
|
@@ -209,21 +201,28 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
209
201
|
const mem = getDataViewMemory0();
|
|
210
202
|
const result = [];
|
|
211
203
|
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
212
|
-
result.push(
|
|
204
|
+
result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
|
|
213
205
|
}
|
|
206
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
214
207
|
return result;
|
|
215
208
|
}
|
|
216
209
|
|
|
217
210
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
218
211
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
219
|
-
const mem = getDataViewMemory0();
|
|
220
212
|
for (let i = 0; i < array.length; i++) {
|
|
221
|
-
|
|
213
|
+
const add = addToExternrefTable0(array[i]);
|
|
214
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
222
215
|
}
|
|
223
216
|
WASM_VECTOR_LEN = array.length;
|
|
224
217
|
return ptr;
|
|
225
218
|
}
|
|
226
219
|
|
|
220
|
+
function takeFromExternrefTable0(idx) {
|
|
221
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
222
|
+
wasm.__externref_table_dealloc(idx);
|
|
223
|
+
return value;
|
|
224
|
+
}
|
|
225
|
+
|
|
227
226
|
function passArray8ToWasm0(arg, malloc) {
|
|
228
227
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
229
228
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -246,23 +245,29 @@ function passArray32ToWasm0(arg, malloc) {
|
|
|
246
245
|
WASM_VECTOR_LEN = arg.length;
|
|
247
246
|
return ptr;
|
|
248
247
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}
|
|
248
|
+
/**
|
|
249
|
+
* @returns {number}
|
|
250
|
+
*/
|
|
251
|
+
export function cancel_handle() {
|
|
252
|
+
const ret = wasm.cancel_handle();
|
|
253
|
+
return ret >>> 0;
|
|
256
254
|
}
|
|
255
|
+
|
|
257
256
|
/**
|
|
258
|
-
|
|
259
|
-
|
|
257
|
+
* @enum {0 | 1 | 2 | 3 | 4}
|
|
258
|
+
*/
|
|
259
|
+
export const LogLevel = Object.freeze({
|
|
260
|
+
TRACE: 0, "0": "TRACE",
|
|
261
|
+
DEBUG: 1, "1": "DEBUG",
|
|
262
|
+
INFO: 2, "2": "INFO",
|
|
263
|
+
WARN: 3, "3": "WARN",
|
|
264
|
+
ERROR: 4, "4": "ERROR",
|
|
265
|
+
});
|
|
260
266
|
|
|
261
267
|
const WasmHeaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
262
268
|
? { register: () => {}, unregister: () => {} }
|
|
263
269
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmheader_free(ptr >>> 0, 1));
|
|
264
|
-
|
|
265
|
-
*/
|
|
270
|
+
|
|
266
271
|
export class WasmHeader {
|
|
267
272
|
|
|
268
273
|
static __wrap(ptr) {
|
|
@@ -292,47 +297,39 @@ export class WasmHeader {
|
|
|
292
297
|
wasm.__wbg_wasmheader_free(ptr, 0);
|
|
293
298
|
}
|
|
294
299
|
/**
|
|
295
|
-
|
|
296
|
-
|
|
300
|
+
* @returns {string}
|
|
301
|
+
*/
|
|
297
302
|
get key() {
|
|
298
303
|
let deferred1_0;
|
|
299
304
|
let deferred1_1;
|
|
300
305
|
try {
|
|
301
|
-
const
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
deferred1_0 = r0;
|
|
306
|
-
deferred1_1 = r1;
|
|
307
|
-
return getStringFromWasm0(r0, r1);
|
|
306
|
+
const ret = wasm.__wbg_get_wasmheader_key(this.__wbg_ptr);
|
|
307
|
+
deferred1_0 = ret[0];
|
|
308
|
+
deferred1_1 = ret[1];
|
|
309
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
308
310
|
} finally {
|
|
309
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
310
311
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
311
312
|
}
|
|
312
313
|
}
|
|
313
314
|
/**
|
|
314
|
-
|
|
315
|
-
|
|
315
|
+
* @returns {string}
|
|
316
|
+
*/
|
|
316
317
|
get value() {
|
|
317
318
|
let deferred1_0;
|
|
318
319
|
let deferred1_1;
|
|
319
320
|
try {
|
|
320
|
-
const
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
deferred1_0 = r0;
|
|
325
|
-
deferred1_1 = r1;
|
|
326
|
-
return getStringFromWasm0(r0, r1);
|
|
321
|
+
const ret = wasm.__wbg_get_wasmheader_value(this.__wbg_ptr);
|
|
322
|
+
deferred1_0 = ret[0];
|
|
323
|
+
deferred1_1 = ret[1];
|
|
324
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
327
325
|
} finally {
|
|
328
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
329
326
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
330
327
|
}
|
|
331
328
|
}
|
|
332
329
|
/**
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
330
|
+
* @param {string} key
|
|
331
|
+
* @param {string} value
|
|
332
|
+
*/
|
|
336
333
|
constructor(key, value) {
|
|
337
334
|
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
338
335
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -348,8 +345,7 @@ export class WasmHeader {
|
|
|
348
345
|
const WasmIdentityVerifierFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
349
346
|
? { register: () => {}, unregister: () => {} }
|
|
350
347
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmidentityverifier_free(ptr >>> 0, 1));
|
|
351
|
-
|
|
352
|
-
*/
|
|
348
|
+
|
|
353
349
|
export class WasmIdentityVerifier {
|
|
354
350
|
|
|
355
351
|
__destroy_into_raw() {
|
|
@@ -364,46 +360,31 @@ export class WasmIdentityVerifier {
|
|
|
364
360
|
wasm.__wbg_wasmidentityverifier_free(ptr, 0);
|
|
365
361
|
}
|
|
366
362
|
/**
|
|
367
|
-
|
|
368
|
-
|
|
363
|
+
* @param {string[]} keys
|
|
364
|
+
*/
|
|
369
365
|
constructor(keys) {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
376
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
377
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
378
|
-
if (r2) {
|
|
379
|
-
throw takeObject(r1);
|
|
380
|
-
}
|
|
381
|
-
this.__wbg_ptr = r0 >>> 0;
|
|
382
|
-
WasmIdentityVerifierFinalization.register(this, this.__wbg_ptr, this);
|
|
383
|
-
return this;
|
|
384
|
-
} finally {
|
|
385
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
366
|
+
const ptr0 = passArrayJsValueToWasm0(keys, wasm.__wbindgen_malloc);
|
|
367
|
+
const len0 = WASM_VECTOR_LEN;
|
|
368
|
+
const ret = wasm.wasmidentityverifier_new(ptr0, len0);
|
|
369
|
+
if (ret[2]) {
|
|
370
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
386
371
|
}
|
|
372
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
373
|
+
WasmIdentityVerifierFinalization.register(this, this.__wbg_ptr, this);
|
|
374
|
+
return this;
|
|
387
375
|
}
|
|
388
376
|
/**
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
377
|
+
* @param {string} path
|
|
378
|
+
* @param {WasmHeader[]} headers
|
|
379
|
+
*/
|
|
392
380
|
verify_identity(path, headers) {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
401
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
402
|
-
if (r1) {
|
|
403
|
-
throw takeObject(r0);
|
|
404
|
-
}
|
|
405
|
-
} finally {
|
|
406
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
381
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
382
|
+
const len0 = WASM_VECTOR_LEN;
|
|
383
|
+
const ptr1 = passArrayJsValueToWasm0(headers, wasm.__wbindgen_malloc);
|
|
384
|
+
const len1 = WASM_VECTOR_LEN;
|
|
385
|
+
const ret = wasm.wasmidentityverifier_verify_identity(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
386
|
+
if (ret[1]) {
|
|
387
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
407
388
|
}
|
|
408
389
|
}
|
|
409
390
|
}
|
|
@@ -411,8 +392,7 @@ export class WasmIdentityVerifier {
|
|
|
411
392
|
const WasmInputFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
412
393
|
? { register: () => {}, unregister: () => {} }
|
|
413
394
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasminput_free(ptr >>> 0, 1));
|
|
414
|
-
|
|
415
|
-
*/
|
|
395
|
+
|
|
416
396
|
export class WasmInput {
|
|
417
397
|
|
|
418
398
|
static __wrap(ptr) {
|
|
@@ -435,73 +415,57 @@ export class WasmInput {
|
|
|
435
415
|
wasm.__wbg_wasminput_free(ptr, 0);
|
|
436
416
|
}
|
|
437
417
|
/**
|
|
438
|
-
|
|
439
|
-
|
|
418
|
+
* @returns {string}
|
|
419
|
+
*/
|
|
440
420
|
get invocation_id() {
|
|
441
421
|
let deferred1_0;
|
|
442
422
|
let deferred1_1;
|
|
443
423
|
try {
|
|
444
|
-
const
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
deferred1_0 = r0;
|
|
449
|
-
deferred1_1 = r1;
|
|
450
|
-
return getStringFromWasm0(r0, r1);
|
|
424
|
+
const ret = wasm.__wbg_get_wasminput_invocation_id(this.__wbg_ptr);
|
|
425
|
+
deferred1_0 = ret[0];
|
|
426
|
+
deferred1_1 = ret[1];
|
|
427
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
451
428
|
} finally {
|
|
452
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
453
429
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
454
430
|
}
|
|
455
431
|
}
|
|
456
432
|
/**
|
|
457
|
-
|
|
458
|
-
|
|
433
|
+
* @returns {string}
|
|
434
|
+
*/
|
|
459
435
|
get key() {
|
|
460
436
|
let deferred1_0;
|
|
461
437
|
let deferred1_1;
|
|
462
438
|
try {
|
|
463
|
-
const
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
deferred1_0 = r0;
|
|
468
|
-
deferred1_1 = r1;
|
|
469
|
-
return getStringFromWasm0(r0, r1);
|
|
439
|
+
const ret = wasm.__wbg_get_wasminput_key(this.__wbg_ptr);
|
|
440
|
+
deferred1_0 = ret[0];
|
|
441
|
+
deferred1_1 = ret[1];
|
|
442
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
470
443
|
} finally {
|
|
471
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
472
444
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
473
445
|
}
|
|
474
446
|
}
|
|
475
447
|
/**
|
|
476
|
-
|
|
477
|
-
|
|
448
|
+
* @returns {WasmHeader[]}
|
|
449
|
+
*/
|
|
478
450
|
get headers() {
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
484
|
-
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
485
|
-
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
|
486
|
-
return v1;
|
|
487
|
-
} finally {
|
|
488
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
489
|
-
}
|
|
451
|
+
const ret = wasm.__wbg_get_wasminput_headers(this.__wbg_ptr);
|
|
452
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
453
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
454
|
+
return v1;
|
|
490
455
|
}
|
|
491
456
|
/**
|
|
492
|
-
|
|
493
|
-
|
|
457
|
+
* @returns {Uint8Array}
|
|
458
|
+
*/
|
|
494
459
|
get input() {
|
|
495
460
|
const ret = wasm.__wbg_get_wasminput_input(this.__wbg_ptr);
|
|
496
|
-
return
|
|
461
|
+
return ret;
|
|
497
462
|
}
|
|
498
463
|
}
|
|
499
464
|
|
|
500
465
|
const WasmResponseHeadFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
501
466
|
? { register: () => {}, unregister: () => {} }
|
|
502
467
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmresponsehead_free(ptr >>> 0, 1));
|
|
503
|
-
|
|
504
|
-
*/
|
|
468
|
+
|
|
505
469
|
export class WasmResponseHead {
|
|
506
470
|
|
|
507
471
|
static __wrap(ptr) {
|
|
@@ -524,35 +488,27 @@ export class WasmResponseHead {
|
|
|
524
488
|
wasm.__wbg_wasmresponsehead_free(ptr, 0);
|
|
525
489
|
}
|
|
526
490
|
/**
|
|
527
|
-
|
|
528
|
-
|
|
491
|
+
* @returns {number}
|
|
492
|
+
*/
|
|
529
493
|
get status_code() {
|
|
530
494
|
const ret = wasm.__wbg_get_wasmresponsehead_status_code(this.__wbg_ptr);
|
|
531
495
|
return ret;
|
|
532
496
|
}
|
|
533
497
|
/**
|
|
534
|
-
|
|
535
|
-
|
|
498
|
+
* @returns {WasmHeader[]}
|
|
499
|
+
*/
|
|
536
500
|
get headers() {
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
542
|
-
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
543
|
-
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
|
544
|
-
return v1;
|
|
545
|
-
} finally {
|
|
546
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
547
|
-
}
|
|
501
|
+
const ret = wasm.__wbg_get_wasmresponsehead_headers(this.__wbg_ptr);
|
|
502
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
503
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
504
|
+
return v1;
|
|
548
505
|
}
|
|
549
506
|
}
|
|
550
507
|
|
|
551
508
|
const WasmVMFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
552
509
|
? { register: () => {}, unregister: () => {} }
|
|
553
510
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmvm_free(ptr >>> 0, 1));
|
|
554
|
-
|
|
555
|
-
*/
|
|
511
|
+
|
|
556
512
|
export class WasmVM {
|
|
557
513
|
|
|
558
514
|
__destroy_into_raw() {
|
|
@@ -567,1009 +523,790 @@ export class WasmVM {
|
|
|
567
523
|
wasm.__wbg_wasmvm_free(ptr, 0);
|
|
568
524
|
}
|
|
569
525
|
/**
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
581
|
-
if (r2) {
|
|
582
|
-
throw takeObject(r1);
|
|
583
|
-
}
|
|
584
|
-
this.__wbg_ptr = r0 >>> 0;
|
|
585
|
-
WasmVMFinalization.register(this, this.__wbg_ptr, this);
|
|
586
|
-
return this;
|
|
587
|
-
} finally {
|
|
588
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
526
|
+
* @param {WasmHeader[]} headers
|
|
527
|
+
* @param {LogLevel} log_level
|
|
528
|
+
* @param {number} logger_id
|
|
529
|
+
*/
|
|
530
|
+
constructor(headers, log_level, logger_id) {
|
|
531
|
+
const ptr0 = passArrayJsValueToWasm0(headers, wasm.__wbindgen_malloc);
|
|
532
|
+
const len0 = WASM_VECTOR_LEN;
|
|
533
|
+
const ret = wasm.wasmvm_new(ptr0, len0, log_level, logger_id);
|
|
534
|
+
if (ret[2]) {
|
|
535
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
589
536
|
}
|
|
537
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
538
|
+
WasmVMFinalization.register(this, this.__wbg_ptr, this);
|
|
539
|
+
return this;
|
|
590
540
|
}
|
|
591
541
|
/**
|
|
592
|
-
|
|
593
|
-
|
|
542
|
+
* @returns {WasmResponseHead}
|
|
543
|
+
*/
|
|
594
544
|
get_response_head() {
|
|
595
545
|
const ret = wasm.wasmvm_get_response_head(this.__wbg_ptr);
|
|
596
546
|
return WasmResponseHead.__wrap(ret);
|
|
597
547
|
}
|
|
598
548
|
/**
|
|
599
|
-
|
|
600
|
-
|
|
549
|
+
* @param {Uint8Array} buffer
|
|
550
|
+
*/
|
|
601
551
|
notify_input(buffer) {
|
|
602
552
|
const ptr0 = passArray8ToWasm0(buffer, wasm.__wbindgen_malloc);
|
|
603
553
|
const len0 = WASM_VECTOR_LEN;
|
|
604
554
|
wasm.wasmvm_notify_input(this.__wbg_ptr, ptr0, len0);
|
|
605
555
|
}
|
|
606
|
-
/**
|
|
607
|
-
*/
|
|
608
556
|
notify_input_closed() {
|
|
609
557
|
wasm.wasmvm_notify_input_closed(this.__wbg_ptr);
|
|
610
558
|
}
|
|
611
559
|
/**
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
notify_error(error_message,
|
|
560
|
+
* @param {string} error_message
|
|
561
|
+
* @param {string | null} [stacktrace]
|
|
562
|
+
*/
|
|
563
|
+
notify_error(error_message, stacktrace) {
|
|
616
564
|
const ptr0 = passStringToWasm0(error_message, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
617
565
|
const len0 = WASM_VECTOR_LEN;
|
|
618
|
-
var ptr1 = isLikeNone(
|
|
566
|
+
var ptr1 = isLikeNone(stacktrace) ? 0 : passStringToWasm0(stacktrace, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
619
567
|
var len1 = WASM_VECTOR_LEN;
|
|
620
568
|
wasm.wasmvm_notify_error(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
621
569
|
}
|
|
622
570
|
/**
|
|
623
|
-
|
|
624
|
-
|
|
571
|
+
* @returns {any}
|
|
572
|
+
*/
|
|
625
573
|
take_output() {
|
|
626
574
|
const ret = wasm.wasmvm_take_output(this.__wbg_ptr);
|
|
627
|
-
return
|
|
575
|
+
return ret;
|
|
628
576
|
}
|
|
629
577
|
/**
|
|
630
|
-
|
|
631
|
-
|
|
578
|
+
* @returns {boolean}
|
|
579
|
+
*/
|
|
632
580
|
is_ready_to_execute() {
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
637
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
638
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
639
|
-
if (r2) {
|
|
640
|
-
throw takeObject(r1);
|
|
641
|
-
}
|
|
642
|
-
return r0 !== 0;
|
|
643
|
-
} finally {
|
|
644
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
581
|
+
const ret = wasm.wasmvm_is_ready_to_execute(this.__wbg_ptr);
|
|
582
|
+
if (ret[2]) {
|
|
583
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
645
584
|
}
|
|
585
|
+
return ret[0] !== 0;
|
|
646
586
|
}
|
|
647
587
|
/**
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
588
|
+
* @param {number} handle
|
|
589
|
+
* @returns {boolean}
|
|
590
|
+
*/
|
|
591
|
+
is_completed(handle) {
|
|
592
|
+
const ret = wasm.wasmvm_is_completed(this.__wbg_ptr, handle);
|
|
593
|
+
return ret !== 0;
|
|
652
594
|
}
|
|
653
595
|
/**
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
664
|
-
if (r2) {
|
|
665
|
-
throw takeObject(r1);
|
|
666
|
-
}
|
|
667
|
-
return takeObject(r0);
|
|
668
|
-
} finally {
|
|
669
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
596
|
+
* @param {Uint32Array} handles
|
|
597
|
+
* @returns {WasmDoProgressResult}
|
|
598
|
+
*/
|
|
599
|
+
do_progress(handles) {
|
|
600
|
+
const ptr0 = passArray32ToWasm0(handles, wasm.__wbindgen_malloc);
|
|
601
|
+
const len0 = WASM_VECTOR_LEN;
|
|
602
|
+
const ret = wasm.wasmvm_do_progress(this.__wbg_ptr, ptr0, len0);
|
|
603
|
+
if (ret[2]) {
|
|
604
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
670
605
|
}
|
|
606
|
+
return takeFromExternrefTable0(ret[0]);
|
|
671
607
|
}
|
|
672
608
|
/**
|
|
673
|
-
|
|
674
|
-
|
|
609
|
+
* @param {number} handle
|
|
610
|
+
* @returns {WasmAsyncResultValue}
|
|
611
|
+
*/
|
|
612
|
+
take_notification(handle) {
|
|
613
|
+
const ret = wasm.wasmvm_take_notification(this.__wbg_ptr, handle);
|
|
614
|
+
if (ret[2]) {
|
|
615
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
616
|
+
}
|
|
617
|
+
return takeFromExternrefTable0(ret[0]);
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* @returns {WasmInput}
|
|
621
|
+
*/
|
|
675
622
|
sys_input() {
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
680
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
681
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
682
|
-
if (r2) {
|
|
683
|
-
throw takeObject(r1);
|
|
684
|
-
}
|
|
685
|
-
return WasmInput.__wrap(r0);
|
|
686
|
-
} finally {
|
|
687
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
623
|
+
const ret = wasm.wasmvm_sys_input(this.__wbg_ptr);
|
|
624
|
+
if (ret[2]) {
|
|
625
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
688
626
|
}
|
|
627
|
+
return WasmInput.__wrap(ret[0]);
|
|
689
628
|
}
|
|
690
629
|
/**
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
630
|
+
* @param {string} key
|
|
631
|
+
* @returns {number}
|
|
632
|
+
*/
|
|
694
633
|
sys_get_state(key) {
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
701
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
702
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
703
|
-
if (r2) {
|
|
704
|
-
throw takeObject(r1);
|
|
705
|
-
}
|
|
706
|
-
return r0 >>> 0;
|
|
707
|
-
} finally {
|
|
708
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
634
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
635
|
+
const len0 = WASM_VECTOR_LEN;
|
|
636
|
+
const ret = wasm.wasmvm_sys_get_state(this.__wbg_ptr, ptr0, len0);
|
|
637
|
+
if (ret[2]) {
|
|
638
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
709
639
|
}
|
|
640
|
+
return ret[0] >>> 0;
|
|
710
641
|
}
|
|
711
642
|
/**
|
|
712
|
-
|
|
713
|
-
|
|
643
|
+
* @returns {number}
|
|
644
|
+
*/
|
|
714
645
|
sys_get_state_keys() {
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
719
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
720
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
721
|
-
if (r2) {
|
|
722
|
-
throw takeObject(r1);
|
|
723
|
-
}
|
|
724
|
-
return r0 >>> 0;
|
|
725
|
-
} finally {
|
|
726
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
646
|
+
const ret = wasm.wasmvm_sys_get_state_keys(this.__wbg_ptr);
|
|
647
|
+
if (ret[2]) {
|
|
648
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
727
649
|
}
|
|
650
|
+
return ret[0] >>> 0;
|
|
728
651
|
}
|
|
729
652
|
/**
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
653
|
+
* @param {string} key
|
|
654
|
+
* @param {Uint8Array} buffer
|
|
655
|
+
*/
|
|
733
656
|
sys_set_state(key, buffer) {
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
if (r1) {
|
|
742
|
-
throw takeObject(r0);
|
|
743
|
-
}
|
|
744
|
-
} finally {
|
|
745
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
657
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
658
|
+
const len0 = WASM_VECTOR_LEN;
|
|
659
|
+
const ptr1 = passArray8ToWasm0(buffer, wasm.__wbindgen_malloc);
|
|
660
|
+
const len1 = WASM_VECTOR_LEN;
|
|
661
|
+
const ret = wasm.wasmvm_sys_set_state(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
662
|
+
if (ret[1]) {
|
|
663
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
746
664
|
}
|
|
747
665
|
}
|
|
748
666
|
/**
|
|
749
|
-
|
|
750
|
-
|
|
667
|
+
* @param {string} key
|
|
668
|
+
*/
|
|
751
669
|
sys_clear_state(key) {
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
758
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
759
|
-
if (r1) {
|
|
760
|
-
throw takeObject(r0);
|
|
761
|
-
}
|
|
762
|
-
} finally {
|
|
763
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
670
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
671
|
+
const len0 = WASM_VECTOR_LEN;
|
|
672
|
+
const ret = wasm.wasmvm_sys_clear_state(this.__wbg_ptr, ptr0, len0);
|
|
673
|
+
if (ret[1]) {
|
|
674
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
764
675
|
}
|
|
765
676
|
}
|
|
766
|
-
/**
|
|
767
|
-
*/
|
|
768
677
|
sys_clear_all_state() {
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
773
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
774
|
-
if (r1) {
|
|
775
|
-
throw takeObject(r0);
|
|
776
|
-
}
|
|
777
|
-
} finally {
|
|
778
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
678
|
+
const ret = wasm.wasmvm_sys_clear_all_state(this.__wbg_ptr);
|
|
679
|
+
if (ret[1]) {
|
|
680
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
779
681
|
}
|
|
780
682
|
}
|
|
781
683
|
/**
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
684
|
+
* @param {bigint} millis
|
|
685
|
+
* @returns {number}
|
|
686
|
+
*/
|
|
785
687
|
sys_sleep(millis) {
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
790
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
791
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
792
|
-
if (r2) {
|
|
793
|
-
throw takeObject(r1);
|
|
794
|
-
}
|
|
795
|
-
return r0 >>> 0;
|
|
796
|
-
} finally {
|
|
797
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
688
|
+
const ret = wasm.wasmvm_sys_sleep(this.__wbg_ptr, millis);
|
|
689
|
+
if (ret[2]) {
|
|
690
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
798
691
|
}
|
|
692
|
+
return ret[0] >>> 0;
|
|
799
693
|
}
|
|
800
694
|
/**
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
const ptr0 = passStringToWasm0(service, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
811
|
-
const len0 = WASM_VECTOR_LEN;
|
|
812
|
-
const ptr1 = passStringToWasm0(handler, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
813
|
-
const len1 = WASM_VECTOR_LEN;
|
|
814
|
-
var ptr2 = isLikeNone(key) ? 0 : passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
815
|
-
var len2 = WASM_VECTOR_LEN;
|
|
816
|
-
wasm.wasmvm_sys_call(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, addHeapObject(buffer), ptr2, len2);
|
|
817
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
818
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
819
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
820
|
-
if (r2) {
|
|
821
|
-
throw takeObject(r1);
|
|
822
|
-
}
|
|
823
|
-
return r0 >>> 0;
|
|
824
|
-
} finally {
|
|
825
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
695
|
+
* @param {string} invocation_id
|
|
696
|
+
* @returns {number}
|
|
697
|
+
*/
|
|
698
|
+
sys_attach_invocation(invocation_id) {
|
|
699
|
+
const ptr0 = passStringToWasm0(invocation_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
700
|
+
const len0 = WASM_VECTOR_LEN;
|
|
701
|
+
const ret = wasm.wasmvm_sys_attach_invocation(this.__wbg_ptr, ptr0, len0);
|
|
702
|
+
if (ret[2]) {
|
|
703
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
826
704
|
}
|
|
705
|
+
return ret[0] >>> 0;
|
|
827
706
|
}
|
|
828
707
|
/**
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
708
|
+
* @param {string} invocation_id
|
|
709
|
+
* @returns {number}
|
|
710
|
+
*/
|
|
711
|
+
sys_get_invocation_output(invocation_id) {
|
|
712
|
+
const ptr0 = passStringToWasm0(invocation_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
713
|
+
const len0 = WASM_VECTOR_LEN;
|
|
714
|
+
const ret = wasm.wasmvm_sys_get_invocation_output(this.__wbg_ptr, ptr0, len0);
|
|
715
|
+
if (ret[2]) {
|
|
716
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
717
|
+
}
|
|
718
|
+
return ret[0] >>> 0;
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* @param {string} service
|
|
722
|
+
* @param {string} handler
|
|
723
|
+
* @param {Uint8Array} buffer
|
|
724
|
+
* @param {string | null | undefined} key
|
|
725
|
+
* @param {WasmHeader[]} headers
|
|
726
|
+
* @param {string | null} [idempotency_key]
|
|
727
|
+
* @returns {WasmCallHandle}
|
|
728
|
+
*/
|
|
729
|
+
sys_call(service, handler, buffer, key, headers, idempotency_key) {
|
|
730
|
+
const ptr0 = passStringToWasm0(service, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
731
|
+
const len0 = WASM_VECTOR_LEN;
|
|
732
|
+
const ptr1 = passStringToWasm0(handler, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
733
|
+
const len1 = WASM_VECTOR_LEN;
|
|
734
|
+
const ptr2 = passArray8ToWasm0(buffer, wasm.__wbindgen_malloc);
|
|
735
|
+
const len2 = WASM_VECTOR_LEN;
|
|
736
|
+
var ptr3 = isLikeNone(key) ? 0 : passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
737
|
+
var len3 = WASM_VECTOR_LEN;
|
|
738
|
+
const ptr4 = passArrayJsValueToWasm0(headers, wasm.__wbindgen_malloc);
|
|
739
|
+
const len4 = WASM_VECTOR_LEN;
|
|
740
|
+
var ptr5 = isLikeNone(idempotency_key) ? 0 : passStringToWasm0(idempotency_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
741
|
+
var len5 = WASM_VECTOR_LEN;
|
|
742
|
+
const ret = wasm.wasmvm_sys_call(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5);
|
|
743
|
+
if (ret[2]) {
|
|
744
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
852
745
|
}
|
|
746
|
+
return takeFromExternrefTable0(ret[0]);
|
|
853
747
|
}
|
|
854
748
|
/**
|
|
855
|
-
|
|
856
|
-
|
|
749
|
+
* @param {string} service
|
|
750
|
+
* @param {string} handler
|
|
751
|
+
* @param {Uint8Array} buffer
|
|
752
|
+
* @param {string | null | undefined} key
|
|
753
|
+
* @param {WasmHeader[]} headers
|
|
754
|
+
* @param {bigint | null} [delay]
|
|
755
|
+
* @param {string | null} [idempotency_key]
|
|
756
|
+
* @returns {WasmSendHandle}
|
|
757
|
+
*/
|
|
758
|
+
sys_send(service, handler, buffer, key, headers, delay, idempotency_key) {
|
|
759
|
+
const ptr0 = passStringToWasm0(service, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
760
|
+
const len0 = WASM_VECTOR_LEN;
|
|
761
|
+
const ptr1 = passStringToWasm0(handler, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
762
|
+
const len1 = WASM_VECTOR_LEN;
|
|
763
|
+
const ptr2 = passArray8ToWasm0(buffer, wasm.__wbindgen_malloc);
|
|
764
|
+
const len2 = WASM_VECTOR_LEN;
|
|
765
|
+
var ptr3 = isLikeNone(key) ? 0 : passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
766
|
+
var len3 = WASM_VECTOR_LEN;
|
|
767
|
+
const ptr4 = passArrayJsValueToWasm0(headers, wasm.__wbindgen_malloc);
|
|
768
|
+
const len4 = WASM_VECTOR_LEN;
|
|
769
|
+
var ptr5 = isLikeNone(idempotency_key) ? 0 : passStringToWasm0(idempotency_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
770
|
+
var len5 = WASM_VECTOR_LEN;
|
|
771
|
+
const ret = wasm.wasmvm_sys_send(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, !isLikeNone(delay), isLikeNone(delay) ? BigInt(0) : delay, ptr5, len5);
|
|
772
|
+
if (ret[2]) {
|
|
773
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
774
|
+
}
|
|
775
|
+
return takeFromExternrefTable0(ret[0]);
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* @returns {WasmAwakeable}
|
|
779
|
+
*/
|
|
857
780
|
sys_awakeable() {
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
862
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
863
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
864
|
-
if (r2) {
|
|
865
|
-
throw takeObject(r1);
|
|
866
|
-
}
|
|
867
|
-
return takeObject(r0);
|
|
868
|
-
} finally {
|
|
869
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
781
|
+
const ret = wasm.wasmvm_sys_awakeable(this.__wbg_ptr);
|
|
782
|
+
if (ret[2]) {
|
|
783
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
870
784
|
}
|
|
785
|
+
return takeFromExternrefTable0(ret[0]);
|
|
871
786
|
}
|
|
872
787
|
/**
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
788
|
+
* @param {string} id
|
|
789
|
+
* @param {Uint8Array} buffer
|
|
790
|
+
*/
|
|
876
791
|
sys_complete_awakeable_success(id, buffer) {
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
if (r1) {
|
|
885
|
-
throw takeObject(r0);
|
|
886
|
-
}
|
|
887
|
-
} finally {
|
|
888
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
792
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
793
|
+
const len0 = WASM_VECTOR_LEN;
|
|
794
|
+
const ptr1 = passArray8ToWasm0(buffer, wasm.__wbindgen_malloc);
|
|
795
|
+
const len1 = WASM_VECTOR_LEN;
|
|
796
|
+
const ret = wasm.wasmvm_sys_complete_awakeable_success(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
797
|
+
if (ret[1]) {
|
|
798
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
889
799
|
}
|
|
890
800
|
}
|
|
891
801
|
/**
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
802
|
+
* @param {string} id
|
|
803
|
+
* @param {WasmFailure} value
|
|
804
|
+
*/
|
|
895
805
|
sys_complete_awakeable_failure(id, value) {
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
902
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
903
|
-
if (r1) {
|
|
904
|
-
throw takeObject(r0);
|
|
905
|
-
}
|
|
906
|
-
} finally {
|
|
907
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
806
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
807
|
+
const len0 = WASM_VECTOR_LEN;
|
|
808
|
+
const ret = wasm.wasmvm_sys_complete_awakeable_failure(this.__wbg_ptr, ptr0, len0, value);
|
|
809
|
+
if (ret[1]) {
|
|
810
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
908
811
|
}
|
|
909
812
|
}
|
|
910
813
|
/**
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
814
|
+
* @param {string} key
|
|
815
|
+
* @returns {number}
|
|
816
|
+
*/
|
|
914
817
|
sys_get_promise(key) {
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
921
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
922
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
923
|
-
if (r2) {
|
|
924
|
-
throw takeObject(r1);
|
|
925
|
-
}
|
|
926
|
-
return r0 >>> 0;
|
|
927
|
-
} finally {
|
|
928
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
818
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
819
|
+
const len0 = WASM_VECTOR_LEN;
|
|
820
|
+
const ret = wasm.wasmvm_sys_get_promise(this.__wbg_ptr, ptr0, len0);
|
|
821
|
+
if (ret[2]) {
|
|
822
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
929
823
|
}
|
|
824
|
+
return ret[0] >>> 0;
|
|
930
825
|
}
|
|
931
826
|
/**
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
827
|
+
* @param {string} key
|
|
828
|
+
* @returns {number}
|
|
829
|
+
*/
|
|
935
830
|
sys_peek_promise(key) {
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
942
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
943
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
944
|
-
if (r2) {
|
|
945
|
-
throw takeObject(r1);
|
|
946
|
-
}
|
|
947
|
-
return r0 >>> 0;
|
|
948
|
-
} finally {
|
|
949
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
831
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
832
|
+
const len0 = WASM_VECTOR_LEN;
|
|
833
|
+
const ret = wasm.wasmvm_sys_peek_promise(this.__wbg_ptr, ptr0, len0);
|
|
834
|
+
if (ret[2]) {
|
|
835
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
950
836
|
}
|
|
837
|
+
return ret[0] >>> 0;
|
|
951
838
|
}
|
|
952
839
|
/**
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
840
|
+
* @param {string} key
|
|
841
|
+
* @param {Uint8Array} buffer
|
|
842
|
+
* @returns {number}
|
|
843
|
+
*/
|
|
957
844
|
sys_complete_promise_success(key, buffer) {
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
966
|
-
if (r2) {
|
|
967
|
-
throw takeObject(r1);
|
|
968
|
-
}
|
|
969
|
-
return r0 >>> 0;
|
|
970
|
-
} finally {
|
|
971
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
845
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
846
|
+
const len0 = WASM_VECTOR_LEN;
|
|
847
|
+
const ptr1 = passArray8ToWasm0(buffer, wasm.__wbindgen_malloc);
|
|
848
|
+
const len1 = WASM_VECTOR_LEN;
|
|
849
|
+
const ret = wasm.wasmvm_sys_complete_promise_success(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
850
|
+
if (ret[2]) {
|
|
851
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
972
852
|
}
|
|
853
|
+
return ret[0] >>> 0;
|
|
973
854
|
}
|
|
974
855
|
/**
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
856
|
+
* @param {string} key
|
|
857
|
+
* @param {WasmFailure} value
|
|
858
|
+
* @returns {number}
|
|
859
|
+
*/
|
|
979
860
|
sys_complete_promise_failure(key, value) {
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
986
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
987
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
988
|
-
if (r2) {
|
|
989
|
-
throw takeObject(r1);
|
|
990
|
-
}
|
|
991
|
-
return r0 >>> 0;
|
|
992
|
-
} finally {
|
|
993
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
861
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
862
|
+
const len0 = WASM_VECTOR_LEN;
|
|
863
|
+
const ret = wasm.wasmvm_sys_complete_promise_failure(this.__wbg_ptr, ptr0, len0, value);
|
|
864
|
+
if (ret[2]) {
|
|
865
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
994
866
|
}
|
|
867
|
+
return ret[0] >>> 0;
|
|
995
868
|
}
|
|
996
869
|
/**
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1007
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1008
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1009
|
-
if (r2) {
|
|
1010
|
-
throw takeObject(r1);
|
|
1011
|
-
}
|
|
1012
|
-
return takeObject(r0);
|
|
1013
|
-
} finally {
|
|
1014
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
870
|
+
* @param {string} name
|
|
871
|
+
* @returns {number}
|
|
872
|
+
*/
|
|
873
|
+
sys_run(name) {
|
|
874
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
875
|
+
const len0 = WASM_VECTOR_LEN;
|
|
876
|
+
const ret = wasm.wasmvm_sys_run(this.__wbg_ptr, ptr0, len0);
|
|
877
|
+
if (ret[2]) {
|
|
878
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1015
879
|
}
|
|
880
|
+
return ret[0] >>> 0;
|
|
1016
881
|
}
|
|
1017
882
|
/**
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1028
|
-
if (r2) {
|
|
1029
|
-
throw takeObject(r1);
|
|
1030
|
-
}
|
|
1031
|
-
return r0 >>> 0;
|
|
1032
|
-
} finally {
|
|
1033
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
883
|
+
* @param {number} handle
|
|
884
|
+
* @param {Uint8Array} buffer
|
|
885
|
+
*/
|
|
886
|
+
propose_run_completion_success(handle, buffer) {
|
|
887
|
+
const ptr0 = passArray8ToWasm0(buffer, wasm.__wbindgen_malloc);
|
|
888
|
+
const len0 = WASM_VECTOR_LEN;
|
|
889
|
+
const ret = wasm.wasmvm_propose_run_completion_success(this.__wbg_ptr, handle, ptr0, len0);
|
|
890
|
+
if (ret[1]) {
|
|
891
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1034
892
|
}
|
|
1035
893
|
}
|
|
1036
894
|
/**
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1045
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1046
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1047
|
-
if (r2) {
|
|
1048
|
-
throw takeObject(r1);
|
|
1049
|
-
}
|
|
1050
|
-
return r0 >>> 0;
|
|
1051
|
-
} finally {
|
|
1052
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
895
|
+
* @param {number} handle
|
|
896
|
+
* @param {WasmFailure} value
|
|
897
|
+
*/
|
|
898
|
+
propose_run_completion_failure(handle, value) {
|
|
899
|
+
const ret = wasm.wasmvm_propose_run_completion_failure(this.__wbg_ptr, handle, value);
|
|
900
|
+
if (ret[1]) {
|
|
901
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1053
902
|
}
|
|
1054
903
|
}
|
|
1055
904
|
/**
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1071
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1072
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1073
|
-
if (r2) {
|
|
1074
|
-
throw takeObject(r1);
|
|
1075
|
-
}
|
|
1076
|
-
return r0 >>> 0;
|
|
1077
|
-
} finally {
|
|
1078
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
905
|
+
* @param {number} handle
|
|
906
|
+
* @param {string} error_message
|
|
907
|
+
* @param {string | null | undefined} error_stacktrace
|
|
908
|
+
* @param {bigint} attempt_duration
|
|
909
|
+
* @param {WasmExponentialRetryConfig} config
|
|
910
|
+
*/
|
|
911
|
+
propose_run_completion_failure_transient(handle, error_message, error_stacktrace, attempt_duration, config) {
|
|
912
|
+
const ptr0 = passStringToWasm0(error_message, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
913
|
+
const len0 = WASM_VECTOR_LEN;
|
|
914
|
+
var ptr1 = isLikeNone(error_stacktrace) ? 0 : passStringToWasm0(error_stacktrace, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
915
|
+
var len1 = WASM_VECTOR_LEN;
|
|
916
|
+
const ret = wasm.wasmvm_propose_run_completion_failure_transient(this.__wbg_ptr, handle, ptr0, len0, ptr1, len1, attempt_duration, config);
|
|
917
|
+
if (ret[1]) {
|
|
918
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1079
919
|
}
|
|
1080
920
|
}
|
|
1081
921
|
/**
|
|
1082
|
-
|
|
1083
|
-
|
|
922
|
+
* @param {string} target_invocation_id
|
|
923
|
+
*/
|
|
924
|
+
sys_cancel_invocation(target_invocation_id) {
|
|
925
|
+
const ptr0 = passStringToWasm0(target_invocation_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
926
|
+
const len0 = WASM_VECTOR_LEN;
|
|
927
|
+
const ret = wasm.wasmvm_sys_cancel_invocation(this.__wbg_ptr, ptr0, len0);
|
|
928
|
+
if (ret[1]) {
|
|
929
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
/**
|
|
933
|
+
* @param {Uint8Array} buffer
|
|
934
|
+
*/
|
|
1084
935
|
sys_write_output_success(buffer) {
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
if (r1) {
|
|
1091
|
-
throw takeObject(r0);
|
|
1092
|
-
}
|
|
1093
|
-
} finally {
|
|
1094
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
936
|
+
const ptr0 = passArray8ToWasm0(buffer, wasm.__wbindgen_malloc);
|
|
937
|
+
const len0 = WASM_VECTOR_LEN;
|
|
938
|
+
const ret = wasm.wasmvm_sys_write_output_success(this.__wbg_ptr, ptr0, len0);
|
|
939
|
+
if (ret[1]) {
|
|
940
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1095
941
|
}
|
|
1096
942
|
}
|
|
1097
943
|
/**
|
|
1098
|
-
|
|
1099
|
-
|
|
944
|
+
* @param {WasmFailure} value
|
|
945
|
+
*/
|
|
1100
946
|
sys_write_output_failure(value) {
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1105
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1106
|
-
if (r1) {
|
|
1107
|
-
throw takeObject(r0);
|
|
1108
|
-
}
|
|
1109
|
-
} finally {
|
|
1110
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
947
|
+
const ret = wasm.wasmvm_sys_write_output_failure(this.__wbg_ptr, value);
|
|
948
|
+
if (ret[1]) {
|
|
949
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1111
950
|
}
|
|
1112
951
|
}
|
|
1113
|
-
/**
|
|
1114
|
-
*/
|
|
1115
952
|
sys_end() {
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1120
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1121
|
-
if (r1) {
|
|
1122
|
-
throw takeObject(r0);
|
|
1123
|
-
}
|
|
1124
|
-
} finally {
|
|
1125
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
953
|
+
const ret = wasm.wasmvm_sys_end(this.__wbg_ptr);
|
|
954
|
+
if (ret[1]) {
|
|
955
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1126
956
|
}
|
|
1127
957
|
}
|
|
1128
958
|
/**
|
|
1129
|
-
|
|
1130
|
-
|
|
959
|
+
* @returns {boolean}
|
|
960
|
+
*/
|
|
1131
961
|
is_processing() {
|
|
1132
962
|
const ret = wasm.wasmvm_is_processing(this.__wbg_ptr);
|
|
1133
963
|
return ret !== 0;
|
|
1134
964
|
}
|
|
1135
|
-
/**
|
|
1136
|
-
* @returns {boolean}
|
|
1137
|
-
*/
|
|
1138
|
-
is_inside_run() {
|
|
1139
|
-
const ret = wasm.wasmvm_is_inside_run(this.__wbg_ptr);
|
|
1140
|
-
return ret !== 0;
|
|
1141
|
-
}
|
|
1142
|
-
/**
|
|
1143
|
-
* @param {Uint32Array} handles
|
|
1144
|
-
* @returns {number | undefined}
|
|
1145
|
-
*/
|
|
1146
|
-
sys_try_complete_all_combinator(handles) {
|
|
1147
|
-
try {
|
|
1148
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1149
|
-
const ptr0 = passArray32ToWasm0(handles, wasm.__wbindgen_malloc);
|
|
1150
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1151
|
-
wasm.wasmvm_sys_try_complete_all_combinator(retptr, this.__wbg_ptr, ptr0, len0);
|
|
1152
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1153
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1154
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1155
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
1156
|
-
if (r3) {
|
|
1157
|
-
throw takeObject(r2);
|
|
1158
|
-
}
|
|
1159
|
-
return r0 === 0 ? undefined : r1 >>> 0;
|
|
1160
|
-
} finally {
|
|
1161
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1162
|
-
}
|
|
1163
|
-
}
|
|
1164
|
-
/**
|
|
1165
|
-
* @param {Uint32Array} handles
|
|
1166
|
-
* @returns {number | undefined}
|
|
1167
|
-
*/
|
|
1168
|
-
sys_try_complete_any_combinator(handles) {
|
|
1169
|
-
try {
|
|
1170
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1171
|
-
const ptr0 = passArray32ToWasm0(handles, wasm.__wbindgen_malloc);
|
|
1172
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1173
|
-
wasm.wasmvm_sys_try_complete_any_combinator(retptr, this.__wbg_ptr, ptr0, len0);
|
|
1174
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1175
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1176
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1177
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
1178
|
-
if (r3) {
|
|
1179
|
-
throw takeObject(r2);
|
|
1180
|
-
}
|
|
1181
|
-
return r0 === 0 ? undefined : r1 >>> 0;
|
|
1182
|
-
} finally {
|
|
1183
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
/**
|
|
1187
|
-
* @param {Uint32Array} handles
|
|
1188
|
-
* @returns {number | undefined}
|
|
1189
|
-
*/
|
|
1190
|
-
sys_try_complete_all_settled_combinator(handles) {
|
|
1191
|
-
try {
|
|
1192
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1193
|
-
const ptr0 = passArray32ToWasm0(handles, wasm.__wbindgen_malloc);
|
|
1194
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1195
|
-
wasm.wasmvm_sys_try_complete_all_settled_combinator(retptr, this.__wbg_ptr, ptr0, len0);
|
|
1196
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1197
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1198
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1199
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
1200
|
-
if (r3) {
|
|
1201
|
-
throw takeObject(r2);
|
|
1202
|
-
}
|
|
1203
|
-
return r0 === 0 ? undefined : r1 >>> 0;
|
|
1204
|
-
} finally {
|
|
1205
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
/**
|
|
1209
|
-
* @param {Uint32Array} handles
|
|
1210
|
-
* @returns {number | undefined}
|
|
1211
|
-
*/
|
|
1212
|
-
sys_try_complete_race_combinator(handles) {
|
|
1213
|
-
try {
|
|
1214
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1215
|
-
const ptr0 = passArray32ToWasm0(handles, wasm.__wbindgen_malloc);
|
|
1216
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1217
|
-
wasm.wasmvm_sys_try_complete_race_combinator(retptr, this.__wbg_ptr, ptr0, len0);
|
|
1218
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1219
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1220
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1221
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
1222
|
-
if (r3) {
|
|
1223
|
-
throw takeObject(r2);
|
|
1224
|
-
}
|
|
1225
|
-
return r0 === 0 ? undefined : r1 >>> 0;
|
|
1226
|
-
} finally {
|
|
1227
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1228
|
-
}
|
|
1229
|
-
}
|
|
1230
965
|
}
|
|
1231
966
|
|
|
1232
|
-
export function
|
|
1233
|
-
|
|
967
|
+
export function __wbg_String_eecc4a11987127d6(arg0, arg1) {
|
|
968
|
+
const ret = String(arg1);
|
|
969
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
970
|
+
const len1 = WASM_VECTOR_LEN;
|
|
971
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
972
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1234
973
|
};
|
|
1235
974
|
|
|
1236
|
-
export function
|
|
1237
|
-
|
|
975
|
+
export function __wbg_buffer_609cc3eee51ed158(arg0) {
|
|
976
|
+
const ret = arg0.buffer;
|
|
977
|
+
return ret;
|
|
1238
978
|
};
|
|
1239
979
|
|
|
1240
|
-
export function
|
|
1241
|
-
const
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1245
|
-
};
|
|
980
|
+
export function __wbg_call_672a4d21634d4a24() { return handleError(function (arg0, arg1) {
|
|
981
|
+
const ret = arg0.call(arg1);
|
|
982
|
+
return ret;
|
|
983
|
+
}, arguments) };
|
|
1246
984
|
|
|
1247
|
-
export function
|
|
1248
|
-
const ret =
|
|
985
|
+
export function __wbg_call_7cccdd69e0791ae2() { return handleError(function (arg0, arg1, arg2) {
|
|
986
|
+
const ret = arg0.call(arg1, arg2);
|
|
1249
987
|
return ret;
|
|
1250
|
-
};
|
|
988
|
+
}, arguments) };
|
|
1251
989
|
|
|
1252
|
-
export function
|
|
1253
|
-
const ret =
|
|
1254
|
-
return
|
|
990
|
+
export function __wbg_crypto_ed58b8e10a292839(arg0) {
|
|
991
|
+
const ret = arg0.crypto;
|
|
992
|
+
return ret;
|
|
1255
993
|
};
|
|
1256
994
|
|
|
1257
|
-
export function
|
|
1258
|
-
|
|
1259
|
-
|
|
995
|
+
export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
996
|
+
let deferred0_0;
|
|
997
|
+
let deferred0_1;
|
|
998
|
+
try {
|
|
999
|
+
deferred0_0 = arg0;
|
|
1000
|
+
deferred0_1 = arg1;
|
|
1001
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
1002
|
+
} finally {
|
|
1003
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1004
|
+
}
|
|
1260
1005
|
};
|
|
1261
1006
|
|
|
1262
|
-
export function
|
|
1263
|
-
const ret =
|
|
1264
|
-
return
|
|
1007
|
+
export function __wbg_from_2a5d3e218e67aa85(arg0) {
|
|
1008
|
+
const ret = Array.from(arg0);
|
|
1009
|
+
return ret;
|
|
1265
1010
|
};
|
|
1266
1011
|
|
|
1267
|
-
export function
|
|
1268
|
-
|
|
1012
|
+
export function __wbg_getRandomValues_bcb4912f16000dc4() { return handleError(function (arg0, arg1) {
|
|
1013
|
+
arg0.getRandomValues(arg1);
|
|
1014
|
+
}, arguments) };
|
|
1015
|
+
|
|
1016
|
+
export function __wbg_getTime_46267b1c24877e30(arg0) {
|
|
1017
|
+
const ret = arg0.getTime();
|
|
1269
1018
|
return ret;
|
|
1270
1019
|
};
|
|
1271
1020
|
|
|
1272
|
-
export function
|
|
1273
|
-
const ret =
|
|
1021
|
+
export function __wbg_getwithrefkey_6550b2c093d2eb18(arg0, arg1) {
|
|
1022
|
+
const ret = arg0[arg1];
|
|
1274
1023
|
return ret;
|
|
1275
1024
|
};
|
|
1276
1025
|
|
|
1277
|
-
export function
|
|
1278
|
-
|
|
1026
|
+
export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
|
|
1027
|
+
let result;
|
|
1028
|
+
try {
|
|
1029
|
+
result = arg0 instanceof ArrayBuffer;
|
|
1030
|
+
} catch (_) {
|
|
1031
|
+
result = false;
|
|
1032
|
+
}
|
|
1033
|
+
const ret = result;
|
|
1279
1034
|
return ret;
|
|
1280
1035
|
};
|
|
1281
1036
|
|
|
1282
|
-
export function
|
|
1283
|
-
|
|
1284
|
-
|
|
1037
|
+
export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
|
|
1038
|
+
let result;
|
|
1039
|
+
try {
|
|
1040
|
+
result = arg0 instanceof Uint8Array;
|
|
1041
|
+
} catch (_) {
|
|
1042
|
+
result = false;
|
|
1043
|
+
}
|
|
1044
|
+
const ret = result;
|
|
1045
|
+
return ret;
|
|
1285
1046
|
};
|
|
1286
1047
|
|
|
1287
|
-
export function
|
|
1288
|
-
const ret =
|
|
1048
|
+
export function __wbg_isSafeInteger_343e2beeeece1bb0(arg0) {
|
|
1049
|
+
const ret = Number.isSafeInteger(arg0);
|
|
1289
1050
|
return ret;
|
|
1290
1051
|
};
|
|
1291
1052
|
|
|
1292
|
-
export function
|
|
1293
|
-
const
|
|
1294
|
-
|
|
1295
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1296
|
-
var len1 = WASM_VECTOR_LEN;
|
|
1297
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1298
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1053
|
+
export function __wbg_length_a446193dc22c12f8(arg0) {
|
|
1054
|
+
const ret = arg0.length;
|
|
1055
|
+
return ret;
|
|
1299
1056
|
};
|
|
1300
1057
|
|
|
1301
|
-
export function
|
|
1302
|
-
const
|
|
1303
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
1058
|
+
export function __wbg_msCrypto_0a36e2ec3a343d26(arg0) {
|
|
1059
|
+
const ret = arg0.msCrypto;
|
|
1304
1060
|
return ret;
|
|
1305
1061
|
};
|
|
1306
1062
|
|
|
1307
|
-
export function
|
|
1308
|
-
const ret = new
|
|
1309
|
-
return
|
|
1063
|
+
export function __wbg_new0_f788a2397c7ca929() {
|
|
1064
|
+
const ret = new Date();
|
|
1065
|
+
return ret;
|
|
1310
1066
|
};
|
|
1311
1067
|
|
|
1312
|
-
export function
|
|
1313
|
-
const ret =
|
|
1068
|
+
export function __wbg_new_405e22f390576ce2() {
|
|
1069
|
+
const ret = new Object();
|
|
1314
1070
|
return ret;
|
|
1315
1071
|
};
|
|
1316
1072
|
|
|
1317
|
-
export function
|
|
1318
|
-
const
|
|
1319
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
1073
|
+
export function __wbg_new_78feb108b6472713() {
|
|
1074
|
+
const ret = new Array();
|
|
1320
1075
|
return ret;
|
|
1321
1076
|
};
|
|
1322
1077
|
|
|
1323
|
-
export function
|
|
1324
|
-
const ret =
|
|
1325
|
-
return
|
|
1078
|
+
export function __wbg_new_8a6f238a6ece86ea() {
|
|
1079
|
+
const ret = new Error();
|
|
1080
|
+
return ret;
|
|
1326
1081
|
};
|
|
1327
1082
|
|
|
1328
|
-
export function
|
|
1329
|
-
|
|
1083
|
+
export function __wbg_new_a12002a7f91c75be(arg0) {
|
|
1084
|
+
const ret = new Uint8Array(arg0);
|
|
1085
|
+
return ret;
|
|
1330
1086
|
};
|
|
1331
1087
|
|
|
1332
|
-
export function
|
|
1333
|
-
const ret = new
|
|
1334
|
-
return
|
|
1088
|
+
export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
|
|
1089
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1090
|
+
return ret;
|
|
1335
1091
|
};
|
|
1336
1092
|
|
|
1337
|
-
export function
|
|
1338
|
-
const ret =
|
|
1339
|
-
|
|
1340
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1341
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1342
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1093
|
+
export function __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a(arg0, arg1, arg2) {
|
|
1094
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1095
|
+
return ret;
|
|
1343
1096
|
};
|
|
1344
1097
|
|
|
1345
|
-
export function
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
try {
|
|
1349
|
-
deferred0_0 = arg0;
|
|
1350
|
-
deferred0_1 = arg1;
|
|
1351
|
-
console.error(getStringFromWasm0(arg0, arg1));
|
|
1352
|
-
} finally {
|
|
1353
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1354
|
-
}
|
|
1098
|
+
export function __wbg_newwithlength_a381634e90c276d4(arg0) {
|
|
1099
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
1100
|
+
return ret;
|
|
1355
1101
|
};
|
|
1356
1102
|
|
|
1357
|
-
export function
|
|
1358
|
-
const ret =
|
|
1359
|
-
|
|
1360
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1361
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1362
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1103
|
+
export function __wbg_node_02999533c4ea02e3(arg0) {
|
|
1104
|
+
const ret = arg0.node;
|
|
1105
|
+
return ret;
|
|
1363
1106
|
};
|
|
1364
1107
|
|
|
1365
|
-
export function
|
|
1366
|
-
const ret =
|
|
1367
|
-
return
|
|
1108
|
+
export function __wbg_now_807e54c39636c349() {
|
|
1109
|
+
const ret = Date.now();
|
|
1110
|
+
return ret;
|
|
1368
1111
|
};
|
|
1369
1112
|
|
|
1370
|
-
export function
|
|
1371
|
-
|
|
1113
|
+
export function __wbg_process_5c1d670bc53614b8(arg0) {
|
|
1114
|
+
const ret = arg0.process;
|
|
1115
|
+
return ret;
|
|
1372
1116
|
};
|
|
1373
1117
|
|
|
1374
|
-
export function
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1118
|
+
export function __wbg_randomFillSync_ab2cfe79ebbf2740() { return handleError(function (arg0, arg1) {
|
|
1119
|
+
arg0.randomFillSync(arg1);
|
|
1120
|
+
}, arguments) };
|
|
1121
|
+
|
|
1122
|
+
export function __wbg_require_79b1e9274cde3c87() { return handleError(function () {
|
|
1123
|
+
const ret = module.require;
|
|
1124
|
+
return ret;
|
|
1125
|
+
}, arguments) };
|
|
1378
1126
|
|
|
1379
|
-
export function
|
|
1380
|
-
|
|
1381
|
-
return addHeapObject(ret);
|
|
1127
|
+
export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
|
|
1128
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1382
1129
|
};
|
|
1383
1130
|
|
|
1384
|
-
export function
|
|
1385
|
-
|
|
1386
|
-
return addHeapObject(ret);
|
|
1131
|
+
export function __wbg_set_3807d5f0bfc24aa7(arg0, arg1, arg2) {
|
|
1132
|
+
arg0[arg1] = arg2;
|
|
1387
1133
|
};
|
|
1388
1134
|
|
|
1389
|
-
export function
|
|
1390
|
-
|
|
1391
|
-
return addHeapObject(ret);
|
|
1135
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
1136
|
+
arg0[arg1] = arg2;
|
|
1392
1137
|
};
|
|
1393
1138
|
|
|
1394
|
-
export function
|
|
1395
|
-
|
|
1396
|
-
return ret;
|
|
1139
|
+
export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
1140
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
1397
1141
|
};
|
|
1398
1142
|
|
|
1399
|
-
export function
|
|
1400
|
-
const ret =
|
|
1401
|
-
|
|
1402
|
-
|
|
1143
|
+
export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
1144
|
+
const ret = arg1.stack;
|
|
1145
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1146
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1147
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1148
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1149
|
+
};
|
|
1403
1150
|
|
|
1404
|
-
export function
|
|
1405
|
-
const ret =
|
|
1406
|
-
return
|
|
1151
|
+
export function __wbg_static_accessor_GLOBAL_88a902d13a557d07() {
|
|
1152
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1153
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1407
1154
|
};
|
|
1408
1155
|
|
|
1409
|
-
export function
|
|
1410
|
-
|
|
1411
|
-
|
|
1156
|
+
export function __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0() {
|
|
1157
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1158
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1159
|
+
};
|
|
1412
1160
|
|
|
1413
|
-
export function
|
|
1414
|
-
|
|
1415
|
-
|
|
1161
|
+
export function __wbg_static_accessor_SELF_37c5d418e4bf5819() {
|
|
1162
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1163
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1164
|
+
};
|
|
1416
1165
|
|
|
1417
|
-
export function
|
|
1418
|
-
const ret =
|
|
1419
|
-
return
|
|
1166
|
+
export function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
|
|
1167
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1168
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1420
1169
|
};
|
|
1421
1170
|
|
|
1422
|
-
export function
|
|
1423
|
-
const ret =
|
|
1171
|
+
export function __wbg_subarray_aa9065fa9dc5df96(arg0, arg1, arg2) {
|
|
1172
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1424
1173
|
return ret;
|
|
1425
1174
|
};
|
|
1426
1175
|
|
|
1427
|
-
export function
|
|
1428
|
-
const ret =
|
|
1429
|
-
return
|
|
1176
|
+
export function __wbg_versions_c71aa1626a93e0a1(arg0) {
|
|
1177
|
+
const ret = arg0.versions;
|
|
1178
|
+
return ret;
|
|
1430
1179
|
};
|
|
1431
1180
|
|
|
1432
|
-
export function
|
|
1433
|
-
|
|
1434
|
-
return addHeapObject(ret);
|
|
1435
|
-
}, arguments) };
|
|
1436
|
-
|
|
1437
|
-
export function __wbg_new_525245e2b9901204() {
|
|
1438
|
-
const ret = new Object();
|
|
1439
|
-
return addHeapObject(ret);
|
|
1181
|
+
export function __wbg_vmlog_4e1bd90ac3b7b4c0(arg0, arg1, arg2, arg3) {
|
|
1182
|
+
vm_log(arg0, getArrayU8FromWasm0(arg1, arg2), arg3 === 0x100000001 ? undefined : arg3);
|
|
1440
1183
|
};
|
|
1441
1184
|
|
|
1442
|
-
export function
|
|
1443
|
-
const ret =
|
|
1444
|
-
return
|
|
1445
|
-
}
|
|
1446
|
-
|
|
1447
|
-
export function __wbg_window_3bcfc4d31bc012f8() { return handleError(function () {
|
|
1448
|
-
const ret = window.window;
|
|
1449
|
-
return addHeapObject(ret);
|
|
1450
|
-
}, arguments) };
|
|
1451
|
-
|
|
1452
|
-
export function __wbg_globalThis_86b222e13bdf32ed() { return handleError(function () {
|
|
1453
|
-
const ret = globalThis.globalThis;
|
|
1454
|
-
return addHeapObject(ret);
|
|
1455
|
-
}, arguments) };
|
|
1185
|
+
export function __wbg_wasmheader_new(arg0) {
|
|
1186
|
+
const ret = WasmHeader.__wrap(arg0);
|
|
1187
|
+
return ret;
|
|
1188
|
+
};
|
|
1456
1189
|
|
|
1457
|
-
export function
|
|
1458
|
-
const ret =
|
|
1459
|
-
return
|
|
1460
|
-
}
|
|
1190
|
+
export function __wbg_wasmheader_unwrap(arg0) {
|
|
1191
|
+
const ret = WasmHeader.__unwrap(arg0);
|
|
1192
|
+
return ret;
|
|
1193
|
+
};
|
|
1461
1194
|
|
|
1462
|
-
export function
|
|
1463
|
-
|
|
1195
|
+
export function __wbindgen_bigint_from_u64(arg0) {
|
|
1196
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1197
|
+
return ret;
|
|
1464
1198
|
};
|
|
1465
1199
|
|
|
1466
|
-
export function
|
|
1467
|
-
const
|
|
1468
|
-
|
|
1200
|
+
export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
|
|
1201
|
+
const v = arg1;
|
|
1202
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1203
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1204
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1469
1205
|
};
|
|
1470
1206
|
|
|
1471
|
-
export function
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
result = getObject(arg0) instanceof ArrayBuffer;
|
|
1475
|
-
} catch (_) {
|
|
1476
|
-
result = false;
|
|
1477
|
-
}
|
|
1478
|
-
const ret = result;
|
|
1207
|
+
export function __wbindgen_boolean_get(arg0) {
|
|
1208
|
+
const v = arg0;
|
|
1209
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
1479
1210
|
return ret;
|
|
1480
1211
|
};
|
|
1481
1212
|
|
|
1482
|
-
export function
|
|
1483
|
-
const ret =
|
|
1484
|
-
|
|
1485
|
-
|
|
1213
|
+
export function __wbindgen_debug_string(arg0, arg1) {
|
|
1214
|
+
const ret = debugString(arg1);
|
|
1215
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1216
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1217
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1218
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1219
|
+
};
|
|
1486
1220
|
|
|
1487
|
-
export function
|
|
1488
|
-
const ret =
|
|
1221
|
+
export function __wbindgen_error_new(arg0, arg1) {
|
|
1222
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1489
1223
|
return ret;
|
|
1490
1224
|
};
|
|
1491
1225
|
|
|
1492
|
-
export function
|
|
1493
|
-
const ret =
|
|
1226
|
+
export function __wbindgen_in(arg0, arg1) {
|
|
1227
|
+
const ret = arg0 in arg1;
|
|
1494
1228
|
return ret;
|
|
1495
1229
|
};
|
|
1496
1230
|
|
|
1497
|
-
export function
|
|
1498
|
-
const
|
|
1499
|
-
|
|
1231
|
+
export function __wbindgen_init_externref_table() {
|
|
1232
|
+
const table = wasm.__wbindgen_export_4;
|
|
1233
|
+
const offset = table.grow(4);
|
|
1234
|
+
table.set(0, undefined);
|
|
1235
|
+
table.set(offset + 0, undefined);
|
|
1236
|
+
table.set(offset + 1, null);
|
|
1237
|
+
table.set(offset + 2, true);
|
|
1238
|
+
table.set(offset + 3, false);
|
|
1239
|
+
;
|
|
1500
1240
|
};
|
|
1501
1241
|
|
|
1502
|
-
export function
|
|
1503
|
-
const ret =
|
|
1242
|
+
export function __wbindgen_is_bigint(arg0) {
|
|
1243
|
+
const ret = typeof(arg0) === 'bigint';
|
|
1504
1244
|
return ret;
|
|
1505
1245
|
};
|
|
1506
1246
|
|
|
1507
|
-
export function
|
|
1508
|
-
const ret =
|
|
1509
|
-
return
|
|
1247
|
+
export function __wbindgen_is_function(arg0) {
|
|
1248
|
+
const ret = typeof(arg0) === 'function';
|
|
1249
|
+
return ret;
|
|
1510
1250
|
};
|
|
1511
1251
|
|
|
1512
|
-
export function
|
|
1513
|
-
const
|
|
1514
|
-
|
|
1252
|
+
export function __wbindgen_is_object(arg0) {
|
|
1253
|
+
const val = arg0;
|
|
1254
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
1255
|
+
return ret;
|
|
1515
1256
|
};
|
|
1516
1257
|
|
|
1517
|
-
export function
|
|
1518
|
-
const ret =
|
|
1519
|
-
return
|
|
1258
|
+
export function __wbindgen_is_string(arg0) {
|
|
1259
|
+
const ret = typeof(arg0) === 'string';
|
|
1260
|
+
return ret;
|
|
1520
1261
|
};
|
|
1521
1262
|
|
|
1522
|
-
export function
|
|
1523
|
-
|
|
1263
|
+
export function __wbindgen_is_undefined(arg0) {
|
|
1264
|
+
const ret = arg0 === undefined;
|
|
1265
|
+
return ret;
|
|
1524
1266
|
};
|
|
1525
1267
|
|
|
1526
|
-
export function
|
|
1527
|
-
const ret =
|
|
1268
|
+
export function __wbindgen_jsval_eq(arg0, arg1) {
|
|
1269
|
+
const ret = arg0 === arg1;
|
|
1528
1270
|
return ret;
|
|
1529
1271
|
};
|
|
1530
1272
|
|
|
1531
|
-
export function
|
|
1532
|
-
|
|
1533
|
-
try {
|
|
1534
|
-
result = getObject(arg0) instanceof Uint8Array;
|
|
1535
|
-
} catch (_) {
|
|
1536
|
-
result = false;
|
|
1537
|
-
}
|
|
1538
|
-
const ret = result;
|
|
1273
|
+
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
|
1274
|
+
const ret = arg0 == arg1;
|
|
1539
1275
|
return ret;
|
|
1540
1276
|
};
|
|
1541
1277
|
|
|
1542
|
-
export function
|
|
1543
|
-
const ret =
|
|
1544
|
-
return
|
|
1278
|
+
export function __wbindgen_memory() {
|
|
1279
|
+
const ret = wasm.memory;
|
|
1280
|
+
return ret;
|
|
1545
1281
|
};
|
|
1546
1282
|
|
|
1547
|
-
export function
|
|
1548
|
-
const
|
|
1549
|
-
|
|
1283
|
+
export function __wbindgen_number_get(arg0, arg1) {
|
|
1284
|
+
const obj = arg1;
|
|
1285
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1286
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1287
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1550
1288
|
};
|
|
1551
1289
|
|
|
1552
|
-
export function
|
|
1553
|
-
const
|
|
1554
|
-
|
|
1555
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1556
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1290
|
+
export function __wbindgen_number_new(arg0) {
|
|
1291
|
+
const ret = arg0;
|
|
1292
|
+
return ret;
|
|
1557
1293
|
};
|
|
1558
1294
|
|
|
1559
|
-
export function
|
|
1560
|
-
const
|
|
1561
|
-
const
|
|
1562
|
-
|
|
1295
|
+
export function __wbindgen_string_get(arg0, arg1) {
|
|
1296
|
+
const obj = arg1;
|
|
1297
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1298
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1299
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1563
1300
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1564
1301
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1565
1302
|
};
|
|
1566
1303
|
|
|
1567
|
-
export function
|
|
1568
|
-
|
|
1304
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
1305
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1306
|
+
return ret;
|
|
1569
1307
|
};
|
|
1570
1308
|
|
|
1571
|
-
export function
|
|
1572
|
-
|
|
1573
|
-
return addHeapObject(ret);
|
|
1309
|
+
export function __wbindgen_throw(arg0, arg1) {
|
|
1310
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1574
1311
|
};
|
|
1575
1312
|
|